/* ═══════════════════════════════════════════════════════════════════
   JURIANSZ ESTATE SERVICES — CORE DESIGN SYSTEM (v9)
   Shared across home, services, team, resources. Page-specific CSS
   lives in each page's own stylesheet. Editorial / financial-register
   aesthetic: navy + gold, Playfair display, Space Grotesk body,
   JetBrains Mono for tabular datelines.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --navy:    #0F2942;
  --navy-l:  #183d5e;
  --navy-d:  #081A2E;
  --ink:     #060d16;
  --gold:    #C5B382;
  --gold-d:  #A89460;
  --gold-l:  #D9C9A1;
  --white:   #FFFFFF;
  --paper:   #F6F2E9;
  --slate:   #F4F1EB;
  --char:    #2D3748;
  --char-l:  #4A5568;
  --rule:    rgba(15,41,66,.10);
  --rule-d:  rgba(197,179,130,.18);
  --fh:      'Playfair Display', Georgia, serif;
  --fb:      'Space Grotesk', system-ui, sans-serif;
  --fm:      'JetBrains Mono', ui-monospace, Menlo, monospace;
  --pad:     clamp(72px, 7vw, 120px);
  --wrap:    min(1240px, calc(100% - 48px));
  --ease:    cubic-bezier(.16,1,.3,1);
  --sh-hard: 6px 6px 0 rgba(197,179,130,.32);
  --sh-dk:   6px 6px 0 rgba(15,41,66,.18);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--fb); color: var(--char); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--fb); }
::selection { background: var(--gold); color: var(--navy); }
img { max-width: 100%; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button:focus-visible, a:focus-visible { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ─── GRAIN + PROGRESS ───────────────────────────────────────────── */
.grain { position: fixed; inset: 0; z-index: 997; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px; }
#progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--gold); z-index: 9999; pointer-events: none; will-change: transform; }

/* ─── MASTHEAD ───────────────────────────────────────────────────── */
.masthead { background: var(--ink); color: rgba(255,255,255,.5); border-bottom: 1px solid rgba(197,179,130,.14);
  font-family: var(--fm); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px clamp(20px,5vw,80px); position: relative; z-index: 101; min-height: 38px; gap: 18px; }
.mh-l, .mh-c, .mh-r { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.mh-c { color: rgba(197,179,130,.62); }
.mh-r a { transition: color .2s var(--ease); padding: 8px 4px; margin: -8px -4px; display: inline-flex; align-items: center; min-height: 30px; }
.mh-r a:hover { color: var(--gold); }
.mh-dot { color: rgba(197,179,130,.22); }
@media(max-width:1100px){ .mh-c { display: none; } }
@media(max-width:740px){ .mh-l { display: none; } .masthead { font-size: .56rem; justify-content: flex-end; } }

/* ─── NAVIGATION ─────────────────────────────────────────────────── */
#nav { position: sticky; top: 0; height: 76px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px,5vw,80px);
  background: var(--ink); border-bottom: 1px solid rgba(197,179,130,.10);
  transition: background .35s, box-shadow .35s; }
.nav-logo { display: flex; align-items: center; gap: 14px; line-height: 1; color: var(--gold); }
.nav-monogram { flex-shrink: 0; color: var(--gold); transition: width .25s var(--ease), height .25s var(--ease); }
.nl-text { display: flex; flex-direction: column; gap: 4px; line-height: 1; align-items: flex-start; }
.nav-mark { font-family: var(--fh); font-weight: 700; font-size: 1.55rem; color: var(--gold); letter-spacing: -.003em; line-height: 1; transition: font-size .25s var(--ease); }
.nav-rule { display: block; width: 38px; height: 1px; background: rgba(197,179,130,.5); margin: 1px 0; }
.nav-sub  { font-family: var(--fm); font-weight: 500; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(197,179,130,.82); white-space: nowrap; line-height: 1; }
@media(max-width:1180px){ .nav-sub { font-size: .58rem; letter-spacing: .2em; } .nav-mark { font-size: 1.32rem; } }

/* Logo variants */
.nav-logo[data-logo="crest"] .nav-monogram { width: 40px; height: 40px; }
.nav-logo[data-logo="inline"] .nl-text { flex-direction: row; align-items: center; gap: 14px; }
.nav-logo[data-logo="inline"] .nav-monogram { width: 34px; height: 34px; }
.nav-logo[data-logo="inline"] .nav-mark { font-size: 1.5rem; }
.nav-logo[data-logo="inline"] .nav-rule { width: 1px; height: 22px; margin: 0; background: rgba(197,179,130,.55); }
.nav-logo[data-logo="inline"] .nav-sub  { font-size: .68rem; color: rgba(197,179,130,.85); }
.nav-logo[data-logo="tower"] .nav-monogram { display: none; }
.nav-logo[data-logo="tower"] .nav-mark { font-family: var(--fh); font-weight: 800; font-size: 1.42rem; text-transform: uppercase; letter-spacing: .14em; }
.nav-logo[data-logo="tower"] .nav-rule { width: 56px; margin: 5px 0; background: var(--gold); }
.nav-logo[data-logo="tower"] .nav-sub  { font-size: .68rem; letter-spacing: .3em; color: rgba(197,179,130,.88); }
.nav-logo[data-logo="plaque"] { padding: 7px 13px 7px 11px; border: 1px solid rgba(197,179,130,.42); background: rgba(197,179,130,.03); gap: 10px; }
.nav-logo[data-logo="plaque"] .nav-monogram { width: 28px; height: 28px; }
.nav-logo[data-logo="plaque"] .nav-mark { font-size: 1.32rem; }
.nav-logo[data-logo="plaque"] .nav-rule { display: none; }
.nav-logo[data-logo="plaque"] .nav-sub  { font-size: .6rem; letter-spacing: .22em; }
.nav-logo[data-logo="editorial"] .nav-monogram { display: none; }
.nav-logo[data-logo="editorial"] .nav-mark { font-style: italic; font-weight: 700; font-size: 1.85rem; letter-spacing: -.012em; }
.nav-logo[data-logo="editorial"] .nav-rule { width: 24px; height: 1px; margin: 4px 0 2px; }
.nav-logo[data-logo="editorial"] .nav-sub  { font-size: .62rem; letter-spacing: .28em; }
@media(max-width:1180px){
  .nav-logo[data-logo="inline"] .nl-text { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-logo[data-logo="inline"] .nav-rule { display: none; }
}

.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links a { font-family: var(--fb); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); transition: color .25s; white-space: nowrap; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--navy); font-family: var(--fb); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 8px 8px 8px 22px; border-radius: 0; white-space: nowrap; transition: background .22s var(--ease), color .22s var(--ease), transform .15s var(--ease); min-height: 44px; }
.nav-cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: rgba(15,41,66,.1); font-family: var(--fm); font-size: .82rem; transition: transform .25s var(--ease), background .25s var(--ease); }
.nav-cta:hover { background: var(--white); }
.nav-cta:hover .nav-cta-icon { background: rgba(15,41,66,.12); transform: translate(2px,-2px); }
.nav-cta:active { transform: scale(.97); }
.nav-right { display: flex; align-items: center; gap: clamp(16px,2vw,30px); }
.nav-util { display: flex; align-items: center; gap: 13px; font-family: var(--fm); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); white-space: nowrap; }
.nav-util a { color: rgba(197,179,130,.72); transition: color .2s var(--ease); padding: 8px 4px; margin: -8px -4px; display: inline-flex; align-items: center; min-height: 30px; }
.nav-util a:hover { color: var(--gold); }
@media(max-width:1180px){ .nav-util { display: none; } }
.nav-ham { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 10px; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; }
.nav-ham span { display: block; width: 22px; height: 1.5px; background: var(--gold); transition: transform .25s var(--ease), opacity .2s; }
body.menu-open .nav-ham span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav-ham span:nth-child(2) { opacity: 0; }
body.menu-open .nav-ham span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media(max-width:1040px){
  .nav-links { display: flex; position: fixed; inset: 114px 0 0 0; flex-direction: column; background: var(--ink); padding: 32px clamp(20px,5vw,80px); gap: 0; transform: translateX(100%); transition: transform .35s var(--ease); z-index: 99; border-top: 1px solid rgba(197,179,130,.14); align-items: stretch; }
  body.menu-open .nav-links { transform: translateX(0); }
  .nav-links li { border-bottom: 1px solid rgba(197,179,130,.08); }
  .nav-links a { display: block; padding: 18px 0; font-size: .92rem; letter-spacing: .08em; }
  .nav-links a::after { display: none; }
  .nav-ham { display: flex; }
}
@media(max-width:540px){ .nav-cta { padding: 9px 14px; font-size: .62rem; } .nav-links { inset: 114px 0 0 0; } }

@supports (animation-timeline: scroll()) {
  #nav { animation: navStick linear both; animation-timeline: scroll(); animation-range: 0 200px; }
  @keyframes navStick {
    to { background: rgba(6,13,22,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(197,179,130,.16); }
  }
}

/* ─── SHARED PRIMITIVES ──────────────────────────────────────────── */
.wrap { width: var(--wrap); margin: 0 auto; }
.section { padding: var(--pad) 0; position: relative; }
.sx { display: flex; align-items: center; gap: 14px; font-family: var(--fm); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 26px; }
.sx-num { color: rgba(197,179,130,.55); }
.sx-bar { flex: 0 0 36px; height: 1px; background: var(--gold-d); opacity: .5; }
.sx-dot { width: 5px; height: 5px; background: var(--gold-d); border-radius: 50%; }
.sx-on-dk { color: var(--gold); }
.sx-on-dk .sx-num { color: rgba(197,179,130,.55); }
.sx-on-dk .sx-bar { background: var(--gold); }
.sx-on-dk .sx-dot { background: var(--gold); }
.s-title { font-family: var(--fh); font-size: clamp(1.95rem,3.8vw,3.2rem); font-weight: 700; color: var(--navy); line-height: 1.12; letter-spacing: -.018em; text-wrap: balance; margin-bottom: 18px; }
.s-title em { font-style: italic; color: var(--gold-d); }
.s-title.on-dk { color: var(--white); }
.s-title.on-dk em { color: var(--gold); }
.s-lead { font-size: 1rem; line-height: 1.78; color: var(--char-l); max-width: 640px; text-wrap: pretty; }
.s-lead.on-dk { color: rgba(255,255,255,.55); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay:.08s; }
.reveal[data-delay="2"]{ transition-delay:.16s; }
.reveal[data-delay="3"]{ transition-delay:.24s; }
.reveal[data-delay="4"]{ transition-delay:.32s; }
.reveal[data-delay="5"]{ transition-delay:.40s; }
@supports not (animation-timeline: view()) { .no-io .reveal { opacity: 1; transform: none; } }

/* Buttons */
.btn-p { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--navy); font-family: var(--fb); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; padding: 14px 26px; transition: background .22s var(--ease), transform .15s var(--ease); min-height: 44px; position: relative; overflow: hidden; isolation: isolate; }
.btn-p::after { content: '→'; font-family: var(--fm); transition: transform .25s var(--ease); }
.btn-p:hover { background: var(--white); }
.btn-p:hover::after { transform: translateX(4px); }
.btn-p:active { transform: scale(.97); }
.btn-p.no-arrow::after { content: none; }
.btn-o { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.78); font-family: var(--fb); font-size: .72rem; font-weight: 400; letter-spacing: .13em; text-transform: uppercase; padding: 13px 26px; transition: border-color .28s var(--ease), color .28s var(--ease), transform .15s var(--ease); min-height: 44px; }
.btn-o:hover { border-color: var(--gold); color: var(--gold); }
.btn-o:active { transform: scale(.97); }
.btn-o.dark { border-color: rgba(15,41,66,.22); color: var(--char-l); }
.btn-o.dark:hover { border-color: var(--navy); color: var(--navy); }
.btn-p, .nav-cta { position: relative; overflow: hidden; isolation: isolate; }
.btn-p::before, .nav-cta::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease); z-index: -1;
}
.btn-p:hover::before, .nav-cta:hover::before { transform: translateX(120%); }

/* ─── PAGE HERO (inner pages) ────────────────────────────────────── */
.page-hero { background: var(--navy); padding: clamp(72px,8vw,116px) 0 clamp(56px,6vw,84px); position: relative; overflow: hidden; }
.ph-glow { position: absolute; top: -30%; right: -12%; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(circle, rgba(197,179,130,.07) 0%, transparent 60%); pointer-events: none; }
.ph-rules { position: absolute; inset: 0; pointer-events: none; }
.ph-rules::before, .ph-rules::after { content: ''; position: absolute; top: 8%; bottom: 8%; width: 1px; background: rgba(197,179,130,.08); }
.ph-rules::before { left: clamp(20px,5vw,80px); }
.ph-rules::after  { right: clamp(20px,5vw,80px); }
.ph-ghost { position: absolute; bottom: -10%; right: -1%; font-family: var(--fh); font-weight: 700; font-size: clamp(72px,13vw,190px); line-height: .82; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(197,179,130,.06); letter-spacing: -.02em; user-select: none; pointer-events: none; text-align: right; }
.ph-inner { position: relative; z-index: 1; }
.ph-line { display: flex; align-items: center; gap: 14px; font-family: var(--fm); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(197,179,130,.65); margin-bottom: 30px; flex-wrap: wrap; }
.ph-line .hl-bar { width: 36px; height: 1px; background: rgba(197,179,130,.3); }
.ph-h1 { font-family: var(--fh); font-size: clamp(2.2rem,5vw,4.4rem); font-weight: 700; color: var(--white); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 22px; text-wrap: balance; }
.ph-h1 em { font-style: italic; color: var(--gold); }
.ph-lead { font-size: clamp(.96rem,1.2vw,1.07rem); font-weight: 300; color: rgba(255,255,255,.58); max-width: 560px; line-height: 1.8; text-wrap: pretty; }
.ph-act { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* ─── CTA BLOCK (inner pages) ────────────────────────────────────── */
.cta-block { border: 1px solid var(--rule-d); padding: clamp(36px,5vw,64px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; position: relative; }
.cta-block.dark { border-color: rgba(197,179,130,.2); }
.cta-title { font-family: var(--fh); font-size: clamp(1.5rem,2.8vw,2.3rem); font-weight: 700; color: var(--navy); line-height: 1.18; }
.cta-title em { font-style: italic; color: var(--gold-d); }
.cta-block.dark .cta-title { color: var(--white); }
.cta-block.dark .cta-title em { color: var(--gold); }
.cta-sub { font-size: .9rem; color: var(--char-l); margin-top: 8px; }
.cta-block.dark .cta-sub { color: rgba(255,255,255,.5); }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
footer { background: var(--ink); padding: 56px 0 24px; border-top: 1px solid rgba(197,179,130,.1); position: relative; }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(197,179,130,.1); }
@media(max-width:880px){ .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media(max-width:560px){ .ft-grid { grid-template-columns: 1fr; } }
.ft-brand { display: flex; align-items: center; gap: 14px; font-family: var(--fh); font-size: 1.4rem; font-weight: 800; color: var(--gold); letter-spacing: .02em; }
.ft-monogram { color: var(--gold); flex-shrink: 0; }
.ft-sub { font-family: var(--fm); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(197,179,130,.5); margin-top: 6px; }
.ft-desc { font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.7; margin-top: 18px; max-width: 280px; }
.ft-col h4 { font-family: var(--fm); font-size: .6rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ft-col li { font-size: .82rem; color: rgba(255,255,255,.48); line-height: 1.5; }
.ft-col a { font-family: var(--fb); font-size: .82rem; color: rgba(255,255,255,.48); transition: color .25s; }
.ft-col a:hover { color: var(--gold); }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-family: var(--fm); font-size: .62rem; letter-spacing: .12em; color: rgba(255,255,255,.28); }
.ft-bottom a { transition: color .25s; }
.ft-bottom a:hover { color: var(--gold); }

/* ─── TWEAKS PANEL ───────────────────────────────────────────────── */
#tweaks { position: fixed; bottom: 24px; right: 24px; width: 288px; background: var(--paper); border: 2px solid var(--navy); box-shadow: 6px 6px 0 rgba(15,41,66,.15); z-index: 8000; transform: translateY(12px); opacity: 0; pointer-events: none; transition: transform .38s var(--ease), opacity .28s; max-height: calc(100vh - 48px); overflow-y: auto; }
#tweaks.on { transform: translateY(0); opacity: 1; pointer-events: all; }
.tw-head { background: var(--navy); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; }
.tw-lbl { font-family: var(--fm); font-size: .62rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.tw-x { background: none; border: none; color: rgba(255,255,255,.4); font-size: .92rem; transition: color .2s; cursor: pointer; }
.tw-x:hover { color: var(--white); }
.tw-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 18px; }
.tw-gl { font-family: var(--fm); font-size: .58rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--char-l); margin-bottom: 8px; }
.tw-swatches { display: flex; gap: 6px; }
.tw-sw { width: 28px; height: 28px; cursor: pointer; border: 2px solid transparent; transition: border-color .2s; }
.tw-sw.on { border-color: var(--navy); }
.tw-opts { display: flex; gap: 5px; flex-wrap: wrap; }
.tw-opts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.tw-opt { font-family: var(--fb); font-size: .67rem; font-weight: 500; padding: 6px 11px; border: 1px solid rgba(15,41,66,.15); cursor: pointer; color: var(--char-l); transition: background .2s, color .2s, border-color .2s; text-align: center; }
.tw-opt.on { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ─── PRINT ──────────────────────────────────────────────────────── */
@media print {
  *, *::before, *::after { background: transparent !important; box-shadow: none !important; text-shadow: none !important; color: #111 !important; }
  body { font-size: 11pt; line-height: 1.5; }
  .grain, #progress, #tweaks, .nav-cta, .nav-ham, .ph-glow, .ph-rules, .ph-ghost { display: none !important; }
  #nav, .masthead { position: static; border-bottom: 1px solid #999 !important; padding: 8pt 0 !important; height: auto !important; }
  .nav-links { display: flex !important; gap: 16pt; position: static !important; transform: none !important; inset: auto !important; background: none !important; }
  .nav-links a, .nav-mark { color: #111 !important; }
  .page-hero, .section, footer { background: white !important; padding: 18pt 0 !important; }
  .ph-h1, .s-title, .cta-title { color: #111 !important; page-break-after: avoid; }
  .s-title em, .ph-h1 em, .cta-title em { color: #6b4f1d !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section { page-break-inside: avoid; }
  a { text-decoration: none; color: inherit; }
}
