/* qasimbarikzai.com — "drawn, then built". Light architectural system.
   Tokens first; every component uses logical properties so Dari, Pashto and Urdu (RTL) need few overrides. */

@font-face { font-family: "Zodiak"; src: url("../fonts/zodiak-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../fonts/zodiak-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../fonts/zodiak-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ground: #f6f1e7; --stone: #ece4d3; --stone-2: #e2d8c3; --paper: #fbf8f1;
  --ink: #1a1d1c; --ink-2: #2b302d; --muted: #575b55; --line: rgba(26, 29, 28, .14); --line-2: rgba(26, 29, 28, .26);
  --blue: #7a5c26; --blue-deep: #1c5a45; --blue-2: #c9a45c; --blue-wash: rgba(201, 164, 92, .12);
  --field: #0f3d2e; --field-2: #1c5a45; --on-field: #f6f1e7; --on-field-muted: #d9d1bf;
  --ok: #1d7a4f; --err: #b3261e;
  --serif: "Zodiak", "Iowan Old Style", Georgia, serif;
  --sans: "Switzer", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --t-hero: clamp(2.6rem, 1.3rem + 4.6vw, 5.6rem);
  --t-xl: clamp(2.1rem, 1.3rem + 3vw, 4rem);
  --t-l: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  --t-m: clamp(1.2rem, 1.08rem + .5vw, 1.5rem);
  --t-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gut: clamp(16px, 2.4vw, 32px);
  --max: 1360px;
  --hdr: 76px;
  --r: 2px;
  color-scheme: light;
}
html[dir="rtl"] { --serif: "Noto Naskh Arabic", "Zodiak", serif; --sans: "Noto Sans Arabic", "Switzer", system-ui, sans-serif; }
html[lang="hi"] { --serif: "Noto Serif Devanagari", "Zodiak", serif; --sans: "Noto Sans Devanagari", "Switzer", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--ground); }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; color: var(--ink); font: 400 var(--t-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
html[dir="rtl"] body { line-height: 1.85; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p a, .prose a, li a, dd a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--r); }
.on-field :focus-visible, .ftr :focus-visible { outline-color: #dcc08a; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.02em; line-height: 1.06; text-wrap: balance; }
html[dir="rtl"] :is(h1, h2, h3, h4), html[lang="hi"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: var(--t-hero); letter-spacing: -.035em; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-m); line-height: 1.2; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--blue); }
html[dir="rtl"] :is(h1, h2, h3) em, html[lang="hi"] :is(h1, h2, h3) em { font-style: normal; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }
.mono { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .mono, html[lang="hi"] .mono { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ph { background: #fff2a8; color: #4a3b00; padding: 0 .3em; border-radius: var(--r); font-family: var(--mono); font-size: .85em; white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 8px; top: 8px; z-index: 200; background: var(--blue); color: #fff; padding: .7rem 1rem; transform: translateY(-160%); transition: transform .2s; text-decoration: none; }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: clamp(72px, 10vw, 148px); position: relative; }
.sec-stone { background: var(--stone); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head p { margin: 0; color: var(--muted); max-width: 34rem; }
.sec-head .mono { grid-column: 1 / -1; margin-bottom: -.4rem; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* Buttons: drafting corners, the fill draws up from the baseline on hover */
.btn { --bc: var(--ink); --bg: transparent; --fg: var(--ink); --hb: var(--ink); --hf: var(--ground);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .7rem 1.3rem;
  border: 1px solid var(--bc); border-radius: var(--r); background: var(--bg); color: var(--fg); font: 500 .98rem/1.2 var(--sans);
  text-decoration: none; isolation: isolate; overflow: hidden; transition: color .45s var(--ease), border-color .45s var(--ease); white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hb); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--hf); border-color: var(--hb); }
.btn:active { transform: translateY(1px); }
.btn .arr { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
html[dir="rtl"] .btn .arr { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.btn-blue { --bc: #c9a45c; --bg: #c9a45c; --fg: #1a1d1c; --hb: var(--field); --hf: #f6f1e7; }
.btn-ink { --bc: var(--field); --bg: var(--field); --fg: var(--ground); --hb: #c9a45c; --hf: #1a1d1c; }
.btn-line { --bc: var(--line-2); }
.btn-light { --bc: rgba(238, 242, 251, .5); --fg: var(--on-field); --hb: var(--on-field); --hf: var(--field); }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .92rem; }
/* corner ticks */
.tick { position: relative; }
.tick::after { content: ""; position: absolute; inset: -6px; pointer-events: none; border: 0 solid var(--blue);
  background:
    linear-gradient(var(--blue), var(--blue)) 0 0 / 10px 1px no-repeat, linear-gradient(var(--blue), var(--blue)) 0 0 / 1px 10px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 100% 100% / 10px 1px no-repeat, linear-gradient(var(--blue), var(--blue)) 100% 100% / 1px 10px no-repeat;
  opacity: .9; }
.link-arrow { display: inline-flex; gap: .45rem; align-items: center; color: var(--blue); font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .45s var(--ease); }
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Header */
.hdr { position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--hdr); transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .45s var(--ease); }
.hdr.scrolled { background: rgba(245, 243, 238, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.hdr.tucked { transform: translateY(-100%); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 42px; height: 42px; }
.brand-txt { display: grid; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.22rem; letter-spacing: -.01em; }
.brand-role { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .brand-role, html[lang="hi"] .brand-role { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: .78rem; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; text-decoration: none; font-size: .95rem; color: var(--ink-2); }
.nav a::after { content: ""; position: absolute; inset-inline: .75rem; bottom: 8px; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
html[dir="rtl"] .nav a::after { transform-origin: 100% 50%; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--blue); }
.hdr-cta { display: flex; align-items: center; gap: .6rem; }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; position: relative; }
.menu-btn span { position: absolute; inset-inline: 13px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.menu-btn span:nth-child(1) { top: 18px; } .menu-btn span:nth-child(2) { top: 28px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 1240px) { .hdr-call .lbl { display: none; } }
@media (max-width: 1100px) { .nav, .hdr .lang { display: none; } .menu-btn { display: block; } .hdr-cta { margin-inline-start: auto; } }
@media (max-width: 520px) { .hdr-call { display: none; } .brand-role { display: none; } :root { --hdr: 66px; } .brand svg { width: 38px; height: 38px; } }
.drawer { position: fixed; inset: 0; z-index: 45; padding: calc(var(--hdr) + 24px) var(--gut) 40px; background: var(--ground); overflow-y: auto;
  background-image: linear-gradient(var(--blue-wash) 1px, transparent 1px), linear-gradient(90deg, var(--blue-wash) 1px, transparent 1px); background-size: 32px 32px;
  visibility: hidden; opacity: 0; transition: opacity .4s var(--ease), visibility .4s; }
.menu-open .drawer { visibility: visible; opacity: 1; }
.menu-open { overflow: hidden; }
.menu-open .hdr { background: var(--ground); }
.drawer ul.drawer-nav { list-style: none; margin: 0; padding: 0; }
.drawer a.big { display: flex; align-items: baseline; gap: 1rem; font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); line-height: 1.3; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); padding-block: .3rem; }
.drawer a.big[aria-current="page"] { color: var(--blue); }
.drawer .drawer-foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .7rem; }

/* Language switcher (inserted by i18n-core.js) */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: .45rem; height: 44px; padding: 0 .85rem; border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: .88rem; transition: border-color .3s, background .3s; }
.lang-btn:hover, .lang.open .lang-btn { border-color: var(--blue); background: var(--blue-wash); }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 170px; margin: 0; padding: .35rem; list-style: none; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); box-shadow: 0 20px 40px rgba(26, 29, 28, .12); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; z-index: 60; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; min-height: 44px; padding: .4rem .8rem; text-decoration: none; color: var(--ink-2); }
.lang-menu a:hover { background: var(--blue-wash); color: var(--blue); }
.lang-menu a[aria-current] { color: var(--blue); font-weight: 600; }
.lang-inline { list-style: none; margin: 1.6rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem; }
.lang-inline a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; color: var(--ink-2); }
.lang-inline a[aria-current] { border-color: var(--blue); color: var(--blue); }

/* Blueprint paper: the grid every "drawing" sits on */
.bp { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background-image:
    linear-gradient(rgba(201, 164, 92, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 164, 92, .10) 1px, transparent 1px),
    linear-gradient(rgba(201, 164, 92, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 164, 92, .05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 62% 45%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 80% 75% at 62% 45%, #000 30%, transparent 85%); }
.bp-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.bp-lines path, .bp-lines line, .bp-lines circle { fill: none; stroke: var(--blue); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bp-lines .faint { stroke-opacity: .28; }

/* HOME HERO */
.hero { position: relative; min-height: 100svh; padding-top: var(--hdr); display: grid; overflow: hidden; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 2rem; align-items: center; padding-block: clamp(24px, 4vw, 56px) clamp(32px, 5vw, 72px); }
.hero-copy { position: relative; z-index: 3; }
.hero-copy .mono { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem; }
.hero-copy .mono::before { content: ""; width: 28px; height: 1px; background: var(--blue); }
.hero h1 { max-width: 13ch; }
html[dir="rtl"] .hero h1, html[lang="hi"] .hero h1 { max-width: 16ch; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem); }
.hero-story { margin: 1.6rem 0 2rem; max-width: 36rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); }
.quick { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.quick .btn { min-height: 46px; }
.hero-stage { position: relative; align-self: stretch; min-height: min(78svh, 720px); }
.hero3d { position: absolute; inset: 4% -6% 6% -10%; z-index: 1; }
.hero3d canvas { width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); }
.hero3d.is-ready canvas { opacity: 1; }
.hero3d-fallback { position: absolute; inset: 8% 0 12% -4%; z-index: 0; width: 100%; height: 84%; color: var(--blue); }
.hero3d.is-ready ~ .hero3d-fallback { opacity: 0; transition: opacity .8s; }
.portrait-cut { position: absolute; z-index: 2; inset-inline-end: 2%; bottom: 0; width: min(78%, 520px); aspect-ratio: 1; pointer-events: none; }
.portrait-cut img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; -webkit-mask-image: linear-gradient(#000 72%, transparent 97%); mask-image: linear-gradient(#000 72%, transparent 97%); }
.dim { position: absolute; z-index: 3; font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; color: var(--blue); white-space: nowrap; display: flex; align-items: center; gap: .5rem; padding: .25rem .5rem .25rem 0; background: rgba(245, 243, 238, .9); }
.dim::before { content: ""; width: 34px; height: 9px; border-inline: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) 50% 50% / 100% 1px no-repeat; }
html[dir="rtl"] .dim, html[lang="hi"] .dim { font-family: var(--sans); font-size: .8rem; }
.dim-1 { top: 4%; inset-inline-start: 2%; }
.dim-2 { top: 40%; inset-inline-end: -2%; }
.dim-3 { bottom: 10%; inset-inline-start: 0; }
.hero-foot { position: relative; z-index: 3; display: flex; justify-content: space-between; gap: 1rem; padding-block: 0 1.4rem; border-top: 1px solid var(--line); padding-top: 1rem; }
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 4px; }
  .hero-stage { min-height: 0; height: min(46svh, 420px); width: 100%; margin-bottom: .4rem; order: 0; }
  .hero-copy { order: 1; }
  .portrait-cut { width: min(62%, 340px); inset-inline-end: -3%; }
  .hero3d { inset: -4% 0 0 -18%; }
  .dim { font-size: .64rem; }
  .hero-copy .mono { margin-bottom: 1rem; }
  .hero h1 { font-size: clamp(2.4rem, 1.2rem + 6vw, 3.6rem); }
  .hero-story { margin: 1.2rem 0 1.6rem; }
  .dim-1 { top: 2%; } .dim-3 { bottom: 6%; }
  .dim-2 { display: none; }
  .hero-foot { display: none; }
}
@media (max-width: 520px) {
  .quick { display: grid; grid-template-columns: 1fr 1fr; }
  .quick li:last-child { grid-column: 1 / -1; }
  .quick .btn { width: 100%; padding-inline: .6rem; }
}

/* Inner page hero */
.phero { position: relative; padding: calc(var(--hdr) + clamp(40px, 7vw, 96px)) 0 clamp(48px, 7vw, 96px); overflow: hidden; border-bottom: 1px solid var(--line); }
.phero .bp { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent); }
.phero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2rem 4rem; align-items: end; }
.phero h1 { font-size: clamp(2.5rem, 1.3rem + 4.2vw, 5rem); max-width: 16ch; }
.phero .lead { margin-top: 1.4rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.6rem; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: .4rem; color: var(--line-2); }
.crumbs a { color: var(--muted); display: inline-block; padding-block: .35rem; min-width: 28px; text-align: center; }
.sheet { border: 1px solid var(--ink); background: var(--paper); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.sheet div { display: grid; grid-template-columns: 7.5rem 1fr; border-bottom: 1px solid var(--line-2); }
.sheet div:last-child { border-bottom: 0; }
.sheet dt, .sheet dd { margin: 0; padding: .55rem .7rem; }
.sheet dt { color: var(--muted); border-inline-end: 1px solid var(--line-2); }
.sheet dd { color: var(--ink); }
html[dir="rtl"] .sheet, html[lang="hi"] .sheet { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: .85rem; }
@media (max-width: 860px) { .phero-grid { grid-template-columns: 1fr; } .sheet { max-width: 420px; } }

/* Title block (credentials strip) */
.tblock { border: 1px solid var(--ink); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--paper); }
.tcell { padding: 1rem 1.1rem 1.2rem; border-inline-end: 1px solid var(--line-2); min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; gap: .8rem; }
.tcell:last-child { border-inline-end: 0; }
.tcell b { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; line-height: 1.25; }
.tcell .mono { font-size: .68rem; }
.tcell .id { font-family: var(--mono); font-size: .74rem; color: var(--blue); }
@media (max-width: 1100px) { .tblock { grid-template-columns: repeat(3, 1fr); } .tcell:nth-child(3n) { border-inline-end: 0; } .tcell:nth-child(-n+3) { border-bottom: 1px solid var(--line-2); } }
@media (max-width: 600px) { .tblock { grid-template-columns: 1fr 1fr; } .tcell { min-height: 112px; border-bottom: 1px solid var(--line-2); } .tcell:nth-child(3n) { border-inline-end: 1px solid var(--line-2); } .tcell:nth-child(2n) { border-inline-end: 0; } .tcell:nth-last-child(-n+2) { border-bottom: 0; } }

/* Services: tilt cards with a detail panel that slides up */
.svc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); perspective: 1400px; }
.svc { grid-column: span 6; position: relative; min-height: 380px; border: 1px solid var(--line-2); background: var(--paper); overflow: hidden; transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .6s var(--ease); display: flex; flex-direction: column; }
.svc:nth-child(1) { grid-column: span 7; } .svc:nth-child(2) { grid-column: span 5; } .svc:nth-child(3) { grid-column: span 5; } .svc:nth-child(4) { grid-column: span 7; }
.svc:hover { box-shadow: 0 30px 60px -30px rgba(15, 61, 46, .35); }
.svc-top { padding: 1.6rem 1.6rem 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.svc-ico { width: 56px; height: 56px; color: var(--blue); flex: none; }
.svc-ico path, .svc-ico rect, .svc-ico circle, .svc-ico line, .svc-ico polyline { fill: none; stroke: currentColor; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.svc-body { padding: 1.6rem; margin-top: auto; }
.svc h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); margin-bottom: .6rem; }
.svc p { color: var(--muted); max-width: 32rem; margin: 0; }
.svc-panel { position: absolute; inset: 0 0 auto 0; z-index: 2; padding: 1.5rem 1.6rem 1.4rem; background: var(--field); color: var(--on-field); transform: translateY(-101%); transition: transform .6s var(--ease); }
.svc-body p { transition: opacity .4s var(--ease); }
.svc:hover .svc-body p, .svc:focus-within .svc-body p, .svc.is-active .svc-body p { opacity: 0; }
.svc-panel ul { margin: 0 0 1.2rem; padding: 0; list-style: none; display: grid; gap: .45rem; }
.svc-panel li { display: flex; gap: .7rem; align-items: baseline; }
.svc-panel li::before { content: ""; flex: none; width: 10px; height: 1px; background: var(--blue-2); translate: 0 -.3em; }
.svc-panel .btn { --bc: var(--on-field); --fg: var(--on-field); --hb: var(--on-field); --hf: var(--field); }
.svc:hover .svc-panel, .svc:focus-within .svc-panel, .svc.is-active .svc-panel { transform: none; }
.svc-more { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--blue); background: none; border: 0; padding: 0; min-height: 44px; }
html[dir="rtl"] .svc-more, html[lang="hi"] .svc-more { font-family: var(--sans); text-transform: none; font-size: .9rem; }
@media (hover: hover) and (pointer: fine) { .svc-more { display: none; } }
@media (max-width: 860px) { .svc-grid .svc { grid-column: 1 / -1; min-height: 400px; } }

/* "How I protect your purchase": the dark blueprint sheet */
.on-field { background: var(--field); color: var(--on-field); }
.on-field .muted, .on-field .sec-head p, .on-field .mono { color: var(--on-field-muted); }
.on-field h2 em { color: #dcc08a; }
.on-field a { color: #e6dcc6; }
.on-field .bp { background-image: linear-gradient(rgba(220, 192, 138, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 192, 138, .12) 1px, transparent 1px), linear-gradient(rgba(220, 192, 138, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 192, 138, .05) 1px, transparent 1px); -webkit-mask-image: none; mask-image: none; }
.inspect-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.inspect { padding-block: clamp(56px, 8vh, 96px); }
.checks { list-style: none; margin: 1.6rem 0 0; padding: 0; counter-reset: c; }
.checks li { counter-increment: c; display: grid; grid-template-columns: 2.6rem 1fr; gap: .1rem .8rem; padding-block: .65rem; border-top: 1px solid rgba(185, 198, 232, .22); transition: opacity .5s var(--ease); }
.checks li::before { content: counter(c, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); font-size: .8rem; color: var(--blue-2); padding-top: .25rem; }
.checks b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.checks span { color: var(--on-field-muted); font-size: .9rem; line-height: 1.45; }
.js-scan .checks li { opacity: .38; }
.js-scan .checks li.lit { opacity: 1; }
.scan { position: relative; aspect-ratio: 3 / 2; border: 1px solid rgba(185, 198, 232, .4); overflow: hidden; background: var(--field-2); }
.scan img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.scan-shade { position: absolute; inset: 0; background: rgba(15, 61, 46, .55); clip-path: inset(0 0 0 var(--scan, 0%)); }
html[dir="rtl"] .scan-shade { clip-path: inset(0 var(--scan, 0%) 0 0); }
.scan-line { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--scan, 0%); width: 2px; margin-inline-start: -1px; background: #dcc08a; box-shadow: 0 0 24px 4px rgba(220, 192, 138, .7); }
.scan-line::before, .scan-line::after { content: ""; position: absolute; inset-inline-start: -6px; width: 14px; height: 1px; background: #dcc08a; }
.scan-line::before { top: 10px; } .scan-line::after { bottom: 10px; }
.tag { position: absolute; z-index: 2; display: flex; align-items: center; gap: .45rem; padding: .3rem .55rem; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: .7rem; letter-spacing: .03em; text-transform: uppercase; border-radius: var(--r); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); transform: translate(-50%, -50%); white-space: nowrap; transition: opacity .45s var(--ease), transform .45s var(--ease); }
html[dir="rtl"] .tag { transform: translate(50%, -50%); }
html[dir="rtl"] .tag, html[lang="hi"] .tag { font-family: var(--sans); text-transform: none; font-size: .8rem; }
.tag::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--blue); border-radius: 50%; background: #fff; flex: none; }
.js-scan .tag { opacity: 0; transform: translate(-50%, -30%); }
html[dir="rtl"].js-scan .tag, html[dir="rtl"] .js-scan .tag { transform: translate(50%, -30%); }
.js-scan .tag.on { opacity: 1; transform: translate(-50%, -50%); }
html[dir="rtl"] .js-scan .tag.on { transform: translate(50%, -50%); }
.scan-cap { display: flex; justify-content: space-between; gap: 1rem; margin-top: .8rem; }
@media (max-width: 960px) { .inspect-grid { grid-template-columns: 1fr; } .tag { font-size: .62rem; padding: .25rem .4rem; } }

/* Path: engineer to broker, drawn as a plan line */
.path { position: relative; }
.path-line { position: absolute; inset-inline: 0; top: 34px; height: 60px; width: 100%; overflow: visible; color: var(--blue); }
.path-line path { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.path-line .tk { stroke-width: 1; }
.path ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gut); }
.path li { padding-top: 112px; position: relative; }
.path li::before { content: ""; position: absolute; top: 58px; inset-inline-start: 0; width: 13px; height: 13px; border: 1.5px solid var(--blue); background: var(--ground); transform: rotate(45deg); }
.path .yr { display: block; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); margin-bottom: .6rem; }
html[dir="rtl"] .path .yr, html[lang="hi"] .path .yr { font-family: var(--sans); text-transform: none; font-size: .85rem; }
.path h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.path p { font-size: .96rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) {
  .path-line { display: none; }
  .path ol { grid-template-columns: 1fr; gap: 0; border-inline-start: 1px solid var(--blue); margin-inline-start: 6px; }
  .path li { padding: 0 0 2rem 1.6rem; }
  .path li::before { top: .35rem; inset-inline-start: -7px; }
}

/* Video band */
.vband { position: relative; min-height: min(86svh, 760px); display: grid; align-items: end; overflow: hidden; background: #e9ebee; }
.vband video, .vband .vposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vband video { opacity: 0; transition: opacity 1.2s var(--ease); }
.vband video.on { opacity: 1; }
.vband video, .vband .vposter { object-position: 50% 100%; }
.vband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245, 243, 238, .95) 0%, rgba(245, 243, 238, .7) 26%, rgba(245, 243, 238, 0) 46%); pointer-events: none; }
.vband-copy { position: absolute; z-index: 2; top: clamp(40px, 6vw, 80px); inset-inline: 0; }
.vband-copy p { margin: 0; max-width: 30ch; font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.6rem); line-height: 1.15; letter-spacing: -.015em; }
@media (max-width: 760px) { .vband { min-height: 560px; } .vband video, .vband .vposter { object-position: 40% 100%; } }
.vband-copy cite { display: block; margin-top: 1rem; font-style: normal; }
.vtoggle { position: absolute; z-index: 3; bottom: 20px; inset-inline-start: 20px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(245, 243, 238, .85); color: var(--ink); }
.vtoggle svg { width: 14px; height: 14px; }

/* Rows: text + photo */
.row2 { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.row2 + .row2 { margin-top: clamp(64px, 9vw, 128px); }
.row2.flip .row2-media { order: -1; }
.row2 h2 { font-size: var(--t-l); margin-bottom: 1.2rem; }
.row2-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line-2); background: var(--stone); }
.row2-media img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.row2-media figcaption { position: absolute; inset-inline-start: 0; bottom: 0; z-index: 3; padding: .45rem .7rem; background: var(--paper); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
html[dir="rtl"] .row2-media figcaption, html[lang="hi"] .row2-media figcaption { font-family: var(--sans); text-transform: none; font-size: .8rem; }
.bullets { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .8rem; }
.bullets li { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; align-items: start; }
.bullets li::before { content: ""; width: 14px; height: 14px; margin-top: .3rem; border: 1.5px solid var(--blue); transform: rotate(45deg) scale(.75); }
@media (max-width: 860px) { .row2 { grid-template-columns: 1fr; } .row2.flip .row2-media { order: 0; } .row2-media { aspect-ratio: 4 / 3; } }

/* Explode-into-blueprint tiles (fx3d.js) */
.tiles { position: absolute; z-index: 2; pointer-events: none; }
.tiles i { position: absolute; background-repeat: no-repeat; transition: transform .7s var(--ease), opacity .7s var(--ease), box-shadow .7s var(--ease); will-change: transform; }
.is-exploding .tiles i { transform: var(--to); box-shadow: inset 0 0 0 1px rgba(220, 192, 138, .9); }
.is-exploding > img { opacity: 0; }
.tiles + .bp-over { position: absolute; inset: 0; z-index: 1; background: var(--field); opacity: 0; transition: opacity .6s var(--ease); }
.is-exploding .bp-over { opacity: 1; }

/* Process steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); counter-reset: s; }
.steps li { counter-increment: s; padding: 1.4rem 1.4rem 1.6rem 0; border-inline-end: 1px solid var(--line); position: relative; }
.steps li + li { padding-inline-start: 1.4rem; }
.steps li:last-child { border-inline-end: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--mono); font-size: .78rem; color: var(--blue); margin-bottom: 2.2rem; }
.steps li::after { content: ""; position: absolute; top: -1px; inset-inline-start: 0; height: 3px; width: 0; background: var(--blue); transition: width 1.1s var(--ease); }
.steps li.in::after { width: 100%; }
.steps h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(2n) { border-inline-end: 0; } .steps li:nth-child(odd) { padding-inline-start: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { border-inline-end: 0; padding-inline-start: 0 !important; border-bottom: 1px solid var(--line); } }

/* Program list (home loans) */
.progs { border-top: 1px solid var(--ink); }
.prog { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; gap: 1rem 3rem; align-items: baseline; padding-block: 1.4rem; border-bottom: 1px solid var(--line); transition: background .4s var(--ease), padding .4s var(--ease); }
.prog:hover { background: var(--blue-wash); padding-inline: 1rem; }
.prog h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); }
.prog p { margin: 0; color: var(--muted); }
.prog .mono { color: var(--blue); }
@media (max-width: 760px) { .prog { grid-template-columns: 1fr; gap: .4rem; } }

/* Apply box */
.apply { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: center; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--ink); background: var(--paper); }
.apply .note { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }
@media (max-width: 860px) { .apply { grid-template-columns: 1fr; } }

/* 3D credential ring (fx3d.js) */
.ring-wrap { position: relative; }
.ring-wrap.is-ring { overflow: hidden; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
.ring-stage { position: relative; height: 440px; perspective: 1500px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ring-stage:active { cursor: grabbing; }
.ring { position: absolute; inset: 0; margin: auto; width: 270px; height: 340px; transform-style: preserve-3d; }
.ring .cred { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cred { border: 1px solid var(--ink); background: var(--paper); padding: 1.3rem; display: flex; flex-direction: column; gap: .8rem; }
.cred svg:not(.ic3d) { width: 46px; height: 46px; color: var(--blue); }
.cred svg:not(.ic3d) * { fill: none; stroke: currentColor; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.cred h3 { font-size: 1.3rem; }
.cred p { margin: 0; font-size: .93rem; color: var(--muted); }
.cred .id { margin-top: auto; font-family: var(--mono); font-size: .74rem; color: var(--blue); border-top: 1px solid var(--line); padding-top: .7rem; }
.ring-ctrl { display: flex; justify-content: center; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.ring-ctrl button { width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); display: grid; place-items: center; transition: background .3s, color .3s; }
.ring-ctrl button:hover { background: var(--ink); color: var(--ground); }
html[dir="rtl"] .ring-ctrl svg { transform: scaleX(-1); }
.ring-live { min-width: 10ch; text-align: center; }
@media (max-width: 600px) { .ring { width: 220px; height: 330px; } .cred { padding: 1.1rem; } .ring-ctrl { flex-wrap: wrap; } .ring-live { order: -1; width: 100%; } }
/* Without JS (or reduced motion) the ring is a plain grid */
.creds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gut); }
.creds-grid .cred { min-height: 280px; }
.is-ring .creds-grid { display: block; }

/* Values / info cards */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.cols3 > * { padding: 1.4rem 1.6rem 1.6rem 0; border-inline-end: 1px solid var(--line); }
.cols3 > * + * { padding-inline-start: 1.6rem; }
.cols3 > *:last-child { border-inline-end: 0; }
.cols3 h3 { margin-bottom: .6rem; }
.cols3 p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .cols3 { grid-template-columns: 1fr; } .cols3 > * { border-inline-end: 0; padding-inline-start: 0 !important; border-bottom: 1px solid var(--line); } }
.langs { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.langs li { border: 1px solid var(--line-2); padding: .55rem 1rem; background: var(--paper); font-size: 1.05rem; }
.langs li span { color: var(--muted); font-size: .85rem; margin-inline-start: .5rem; }

/* Notice box (legal) */
.notice { border: 1px solid var(--ink); border-inline-start: 4px solid var(--blue); background: var(--paper); padding: 1.2rem 1.4rem; }
.notice p:last-child { margin: 0; }
.fees { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.fees th, .fees td { text-align: start; padding: .8rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fees th { font-weight: 500; }

/* FAQ */
.faqs { border-top: 1px solid var(--ink); max-width: 980px; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.3rem 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.45rem); line-height: 1.3; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; flex: none; width: 18px; height: 18px; background: linear-gradient(var(--blue), var(--blue)) 50% 50% / 100% 1.5px no-repeat, linear-gradient(var(--blue), var(--blue)) 50% 50% / 1.5px 100% no-repeat; transition: transform .45s var(--ease); }
details.faq[open] summary::after { transform: rotate(135deg); }
details.faq summary:hover { color: var(--blue); }
.faq-a { padding: 0 0 1.4rem; max-width: 46rem; color: var(--ink-2); }
.faq-a p:last-child { margin: 0; }

/* CTA */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; }
.cta h2 { font-size: clamp(2.4rem, 1.4rem + 4vw, 5.2rem); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.cta dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.cta dl div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.cta dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: .2rem; }
html[dir="rtl"] .cta dt, html[lang="hi"] .cta dt { font-family: var(--sans); text-transform: none; font-size: .85rem; }
.cta dd { margin: 0; }
.cta dd a { color: var(--ink); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

/* Forms */
.form-card { border: 1px solid var(--ink); background: var(--paper); padding: clamp(22px, 3.4vw, 44px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form .full { grid-column: 1 / -1; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form label, .form legend { display: block; font-size: .9rem; font-weight: 500; color: var(--ink-2); margin-bottom: .4rem; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: .75rem .9rem; border: 1px solid #8a8f94; border-radius: var(--r); background: #fff; color: var(--ink); font-size: 1rem; transition: border-color .25s, box-shadow .25s; }
.form textarea { min-height: 130px; resize: vertical; }
.form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 2.4rem; }
html[dir="rtl"] .form select { background-position: 20px 52%, 14px 52%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(201, 164, 92, .25); }
.form [aria-invalid="true"] { border-color: var(--err); }
.form .check { display: flex; gap: .8rem; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.form .check input { width: 24px; min-height: 24px; height: 24px; margin-top: .1rem; accent-color: var(--blue); flex: none; }
.form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.field-err { margin: .35rem 0 0; color: var(--err); font-size: .88rem; }
.form-status { grid-column: 1 / -1; padding: .9rem 1rem; display: none; border-radius: var(--r); }
.form-status.show { display: block; }
.form-status.ok { background: #e3f2ea; border: 1px solid #7cbf9c; color: #134a30; }
.form-status.err { background: #fbe9e7; border: 1px solid #e0a39c; color: #7a1a14; }
.idx { border: 1px dashed var(--blue); background: var(--blue-wash); padding: 2rem; text-align: center; color: var(--muted); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.info { border-top: 1px solid var(--ink); margin: 0; }
.info div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); font-size: .92rem; }
.info dd { margin: 0; }
.map { margin-top: clamp(48px, 6vw, 80px); border: 1px solid var(--ink); aspect-ratio: 16 / 7; background: var(--stone); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35) contrast(1.02); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } .map { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .info div { grid-template-columns: 1fr; gap: .2rem; } }

/* Legal prose */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--t-l); margin: 2.6rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 .6rem; }
.prose ul { padding-inline-start: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* Footer */
.ftr { background: var(--ink); color: #d9dcdf; padding: clamp(64px, 8vw, 110px) 0 calc(28px + env(safe-area-inset-bottom)); position: relative; overflow: hidden; }
.ftr a { color: #fff; }
.ftr-top { display: grid; grid-template-columns: minmax(0, 6fr) repeat(3, minmax(0, 2fr)); gap: 2.4rem; }
.ftr-name { font-family: var(--serif); font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); line-height: 1; letter-spacing: -.03em; color: #fff; margin: 0 0 1.2rem; }
.ftr h2 { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #a8adb2; margin-bottom: 1rem; font-weight: 400; }
html[dir="rtl"] .ftr h2, html[lang="hi"] .ftr h2 { font-family: var(--sans); text-transform: none; font-size: .9rem; letter-spacing: 0; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.ftr ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: #e6e8ea; }
.ftr ul a:hover { color: #dcc08a; text-decoration: underline; }
.dream-link { display: inline-flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r); text-decoration: none; margin-top: .6rem; transition: border-color .3s, background .3s; }
.dream-link:hover { border-color: #dcc08a; background: rgba(220, 192, 138, .08); }
.dream-link img { width: 34px; height: 34px; border-radius: var(--r); }
.dream-link span { display: grid; line-height: 1.3; font-size: .92rem; }
.dream-link small { color: #a8adb2; font-size: .78rem; }
.social { display: flex; gap: .5rem; margin-top: 1.4rem; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r); transition: background .3s, color .3s; }
.social a:hover { background: #fff; color: var(--ink); }
.social svg { width: 18px; height: 18px; }
.legal { margin-top: clamp(48px, 6vw, 72px); padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; grid-template-columns: 64px 1fr; gap: 1.4rem; font-size: .84rem; line-height: 1.6; color: #b9bec3; }
.legal p { margin: 0 0 .7rem; }
.legal a { color: #e6e8ea; }
.eho { width: 56px; height: 56px; color: #d9dcdf; }
@media (max-width: 960px) { .ftr-top { grid-template-columns: 1fr 1fr; } .ftr-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .legal { grid-template-columns: 1fr; } }

/* Mobile action bar */
.mbar { display: none; }
@media (max-width: 720px) {
  .mbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .7rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(245, 243, 238, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mbar .btn { width: 100%; padding-inline: .5rem; color: var(--fg); }
  .mbar .btn:hover, .mbar .btn:focus-visible { color: var(--hf); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .menu-open .mbar { display: none; }
}

/* WhatsApp widget (wa-chat.js) */
.wa { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 44; }
.menu-open .wa { display: none; }
.wa-fab { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: #1f7a4d; color: #fff; box-shadow: 0 12px 28px rgba(26, 29, 28, .28); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px rgba(26, 29, 28, .34); }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1f7a4d; opacity: 0; pointer-events: none; animation: waPulse 2.4s var(--ease) 2s 3; }
.wa.seen .wa-fab::before { animation: none; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-tip { position: absolute; inset-inline-end: 70px; top: 50%; translate: 0 -50%; white-space: nowrap; pointer-events: none; padding: .45rem .75rem; border-radius: var(--r); background: var(--ink); color: #fff; font-size: .85rem; opacity: 0; transform: translateX(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.wa-fab:hover .wa-tip, .wa-fab:focus-visible .wa-tip { opacity: 1; transform: none; }
.wa.is-open .wa-tip { display: none; }
@media (hover: none) { .wa-tip { display: none; } }
.wa-panel { position: absolute; inset-inline-end: 0; bottom: 72px; width: min(370px, calc(100vw - 32px)); max-height: min(72vh, 600px); overflow: auto; overscroll-behavior: contain; padding: 1.1rem 1.1rem 1.2rem; border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); box-shadow: 0 30px 60px rgba(26, 29, 28, .22); transform-origin: 100% 100%; animation: waIn .35s var(--ease); }
[dir="rtl"] .wa-panel { transform-origin: 0 100%; }
@keyframes waIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.wa-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wa-head .wa-id { display: flex; align-items: center; gap: .6rem; }
.wa-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--stone); }
.wa-head svg.mk { width: 34px; height: 34px; }
.wa-x { width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; color: var(--ink); display: grid; place-items: center; padding: 0; }
.wa-x svg { width: 18px; height: 18px; }
.wa-x:hover { background: var(--ink); color: #fff; }
.wa-title { margin: .8rem 0 .2rem; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.wa-sub { margin: 0 0 1rem; font-size: .8rem; line-height: 1.45; color: var(--muted); display: flex; gap: .5rem; align-items: baseline; }
.wa-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #1f9d5c; box-shadow: 0 0 0 3px rgba(31, 157, 92, .2); translate: 0 1px; }
.wa-body { display: grid; gap: .7rem; }
.wa-msg { margin: 0; padding: .7rem .9rem; border-radius: 12px 12px 12px 2px; background: var(--stone); font-size: .95rem; line-height: 1.5; max-width: 92%; }
[dir="rtl"] .wa-msg { border-radius: 12px 12px 2px 12px; }
.wa-you { justify-self: end; border-radius: 12px 12px 2px 12px; background: #dcefe3; }
[dir="rtl"] .wa-you { border-radius: 12px 12px 12px 2px; }
.wa-step1 { display: flex; flex-wrap: wrap; gap: .45rem; }
.wa-choice { min-height: 44px; padding: 0 .95rem; border-radius: var(--r); border: 1px solid var(--line-2); background: #fff; font-size: .9rem; transition: background .3s, color .3s, border-color .3s; }
.wa-choice:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.wa-step2 { display: grid; gap: .45rem; }
.wa-step2[hidden], .wa-step1[hidden] { display: none; }
.wa-step2 label { font-size: .85rem; font-weight: 500; margin-top: .3rem; }
.wa-step2 input, .wa-step2 textarea { width: 100%; min-height: 48px; padding: .7rem .85rem; border-radius: var(--r); border: 1px solid #8a8f94; background: #fff; font-size: 1rem; resize: vertical; }
.wa-step2 input:focus, .wa-step2 textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(201, 164, 92, .25); }
.wa-step2 [aria-invalid="true"] { border-color: var(--err); }
.wa-err { margin: 0; font-size: .88rem; color: var(--err); }
.wa-go { margin-top: .5rem; width: 100%; --bc: #1f7a4d; --bg: #1f7a4d; --fg: #fff; --hb: var(--ink); --hf: #fff; }
.wa-go svg { width: 20px; height: 20px; }
.wa-back { justify-self: start; min-height: 44px; padding: 0 .2rem; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.wa-note { margin: .2rem 0 0; font-size: .78rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 720px) { .wa { inset-inline-end: 14px; bottom: calc(70px + 12px + env(safe-area-inset-bottom)); } .wa-fab { width: 54px; height: 54px; } .wa-panel { bottom: 66px; max-height: min(62vh, 560px); } }

/* Motion layer pieces */
.curtain { position: fixed; inset: 0; z-index: 300; background: var(--ground); display: grid; place-items: center; pointer-events: none; transition: clip-path .9s var(--ease) .1s, visibility 0s 1.1s; clip-path: inset(0 0 0 0); }
.curtain svg { width: 96px; height: 96px; }
.curtain svg * { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease) forwards; }
.curtain svg g:first-child * { animation-duration: .7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.curtain.gone { clip-path: inset(0 0 100% 0); visibility: hidden; }
.no-curtain .curtain { display: none; }
.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 60; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
html[dir="rtl"] .progress { transform-origin: 100% 50%; }
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 28px; height: 28px; margin: -14px 0 0 -14px; opacity: 0; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s; }
.cursor::before, .cursor::after { content: ""; position: absolute; background: var(--blue); }
.cursor::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.cursor::after { top: 50%; left: 0; right: 0; height: 1px; }
.cursor i { position: absolute; inset: 6px; border: 1px solid var(--blue); border-radius: 50%; transition: inset .35s var(--ease); }
.cursor.on { opacity: .9; }
.cursor.link { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.cursor.link i { inset: 12px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Split headings: words rise out of their own line */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }

/* Reveal on scroll (only once JS confirms it can reveal) */
.rv-on .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv-on .rv.in { opacity: 1; transform: none; }
/* Plan lines that draw with scroll */
.draw-path { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); }
.no-js .draw-path, .rm .draw-path { stroke-dashoffset: 0; }

/* 404 */
.nf { min-height: 100svh; display: grid; align-items: center; padding-top: var(--hdr); position: relative; overflow: hidden; }
.nf h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 6rem); }
.nf .code { font-family: var(--mono); color: var(--blue); }

/* Reduced motion / Windows "Show animations" off: still, complete, readable */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv-on .rv { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .curtain, .progress, .cursor { display: none; }
  .draw-path { stroke-dashoffset: 0; }
  .js-scan .tag { opacity: 1; transform: translate(-50%, -50%); }
  html[dir="rtl"] .js-scan .tag { transform: translate(50%, -50%); }
  .js-scan .checks li { opacity: 1; }
  .scan-shade, .scan-line { display: none; }
  .steps li::after { width: 100%; }
  .vband video { display: none; }
}
@media print { .hdr, .mbar, .wa, .drawer, .curtain, .cursor, .progress, .hero3d { display: none !important; } body { background: #fff; } }

/* =====================================================================
   REDESIGN LAYER: cinematic, photo-rich, deeper rhythm (same palette + warm accent)
   ===================================================================== */
:root { --warm: #c9a45c; --warm-2: #a8833f; --glass: rgba(255, 255, 255, .1); --glass-line: rgba(255, 255, 255, .22); --shadow-1: 0 24px 60px -24px rgba(15, 61, 46, .45); }
.sec { padding-block: clamp(56px, 7vw, 104px); }
.sec-head { margin-bottom: clamp(28px, 4vw, 52px); }
.btn-warm { --bc: var(--warm); --bg: var(--warm); --fg: #1d2023; --hb: #fff; --hf: var(--field); }
.glass { background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45); }

/* Placeholders stay hidden on the live site until the real number replaces the <span class="ph"> */
.ph, .id:has(.ph), .ph-wrap:has(.ph), .sheet div:has(.ph), .fees:has(.ph) { display: none !important; }

/* 3D icons */
.ic3d { width: 72px; height: 72px; flex: none; filter: drop-shadow(0 10px 14px rgba(15, 61, 46, .18)); transition: transform .7s var(--ease); }
:is(a, article, li, div, figure):hover > .ic3d, :is(a, article, li, div, figure):hover > * > .ic3d { transform: translateY(-6px) rotate(-6deg) scale(1.06); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.ic-float { animation: bob 5s ease-in-out infinite; }

/* Header over dark heroes: light text until it becomes solid */
.hdr { --hfg: #fff; --hfg-2: rgba(255, 255, 255, .82); --hmark: #dcc08a; }
.hdr.scrolled, .menu-open .hdr { --hfg: var(--ink); --hfg-2: var(--ink-2); --hmark: var(--blue); }
.brand { color: var(--hmark); } .brand-txt { color: var(--hfg); } .brand-role { color: var(--hfg-2); opacity: .85; }
.nav a { color: var(--hfg-2); } .nav a[aria-current="page"] { color: var(--hfg); }
.hdr:not(.scrolled) .nav a::after { background: var(--warm); }
.hdr .lang-btn { color: var(--hfg); border-color: color-mix(in srgb, var(--hfg) 35%, transparent); }
.menu-btn { border-color: color-mix(in srgb, var(--hfg) 40%, transparent); } .menu-btn span { background: var(--hfg); }
body:not(.menu-open) .hdr:not(.scrolled) .hdr-call { --bc: rgba(255, 255, 255, .4); --bg: rgba(255, 255, 255, .1); --fg: #fff; --hb: var(--warm); --hf: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hdr:not(.scrolled) { background: linear-gradient(rgba(9, 38, 28, .55), transparent); }

/* HOME HERO: a movie opening on the dark blueprint sheet */
.hero { background: var(--field); color: #fff; isolation: isolate; min-height: max(100svh, 680px); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 80%; filter: grayscale(.3) contrast(1.05); transform: scale(1.06); }
.hero-media video { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-media video.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 60% 70% at 72% 55%, rgba(201, 164, 92, .28), transparent 70%),
  linear-gradient(90deg, rgba(9, 38, 28, .96) 0%, rgba(13, 50, 37, .86) 42%, rgba(15, 61, 46, .55) 75%, rgba(15, 61, 46, .45) 100%),
  linear-gradient(0deg, rgba(9, 38, 28, .9), transparent 35%); }
html[dir="rtl"] .hero-shade { transform: scaleX(-1); }
.hero .bp { background-image: linear-gradient(rgba(220, 192, 138, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 192, 138, .14) 1px, transparent 1px), linear-gradient(rgba(220, 192, 138, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 192, 138, .06) 1px, transparent 1px); }
.hero .bp-lines path, .hero .bp-lines line, .hero .bp-lines circle { stroke: #dcc08a; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero h1 em { color: #dcc08a; }
.hero-copy .mono { color: #e6dcc6; } .hero-copy .mono::before { background: var(--warm); }
.hero-story { color: rgba(238, 242, 251, .9); }
.hero .quick .btn-line { --bc: rgba(255, 255, 255, .35); --bg: rgba(255, 255, 255, .06); --fg: #fff; --hb: #fff; --hf: var(--field); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .quick .btn-blue { --bc: var(--warm); --bg: var(--warm); --fg: #1d2023; --hb: #fff; --hf: var(--field); }
.hero .hero3d-fallback { color: #dcc08a; }
.portrait-cut { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)); }
.portrait-cut::before { content: ""; position: absolute; inset: 18% 8% 0; z-index: -1; background: radial-gradient(closest-side, rgba(201, 164, 92, .45), transparent); filter: blur(10px); }
.chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem .55rem .55rem; border-radius: 999px; color: #fff; font-size: .82rem; font-weight: 500; white-space: nowrap; will-change: transform; }
.chip .ic3d { width: 34px; height: 34px; filter: none; }
.chip-1 { top: 6%; inset-inline-start: 0; } .chip-2 { top: 34%; inset-inline-end: -4%; } .chip-3 { bottom: 22%; inset-inline-start: -6%; } .chip-4 { bottom: 6%; inset-inline-end: 4%; }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -10px); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-8px, 8px); } }
.chip-1, .chip-4 { animation: drift1 7s ease-in-out infinite; } .chip-2, .chip-3 { animation: drift2 8s ease-in-out infinite; }
.scroll-cue { position: absolute; z-index: 5; left: 50%; top: calc(100svh - 64px); translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--warm); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.hero-count { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: clamp(56px, 6vw, 76px); border-radius: 4px; overflow: hidden; }
.hero-count div { padding: 1rem 1.3rem; border-inline-end: 1px solid var(--glass-line); }
.hero-count div:last-child { border-inline-end: 0; }
.hero-count b { display: block; font: 400 clamp(2rem, 1.4rem + 1.6vw, 2.8rem)/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
.hero-count span { font-size: .86rem; color: #e6dcc6; }
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .chip { font-size: .72rem; padding: .4rem .7rem .4rem .4rem; } .chip .ic3d { width: 26px; height: 26px; }
  .chip-1 { top: 2%; inset-inline-start: 2%; } .chip-2 { top: 30%; inset-inline-end: 0; } .chip-3 { display: none; } .chip-4 { bottom: 4%; inset-inline-end: auto; inset-inline-start: 2%; }
  .hero-count { grid-template-columns: 1fr 1fr; margin-bottom: 1.6rem; }
  .hero-count div:nth-child(2) { border-inline-end: 0; } .hero-count div:nth-child(-n+2) { border-bottom: 1px solid var(--glass-line); }
  .scroll-cue { display: none; }
}

/* INNER PAGE PHOTO HEROES */
.phero-photo { color: #fff; border-bottom: 0; isolation: isolate; padding-bottom: clamp(56px, 8vw, 110px); min-height: min(78svh, 640px); display: flex; align-items: flex-end; }
.phero-photo > .wrap { width: 100%; }
.phero-bg { position: absolute; inset: -8% 0 0; z-index: -2; }
.phero-bg img { width: 100%; height: 100%; object-fit: cover; }
.phero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 38, 28, .94) 0%, rgba(13, 50, 37, .78) 50%, rgba(15, 61, 46, .35) 100%), linear-gradient(0deg, rgba(9, 38, 28, .85), transparent 50%); }
html[dir="rtl"] .phero-photo::before { background: linear-gradient(270deg, rgba(9, 38, 28, .94) 0%, rgba(13, 50, 37, .78) 50%, rgba(15, 61, 46, .35) 100%), linear-gradient(0deg, rgba(9, 38, 28, .85), transparent 50%); }
.phero-photo .bp { background-image: linear-gradient(rgba(220, 192, 138, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 192, 138, .12) 1px, transparent 1px); background-size: 96px 96px; }
.phero-photo h1 { color: #fff; } .phero-photo h1 em { color: #dcc08a; }
.phero-photo .lead { color: rgba(238, 242, 251, .9); }
.phero-photo .crumbs, .phero-photo .crumbs a { color: #e6dcc6; }
.phero-photo .sheet { background: rgba(255, 255, 255, .08); border-color: var(--glass-line); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.phero-photo .sheet div { border-color: var(--glass-line); } .phero-photo .sheet dt { color: #e6dcc6; border-color: var(--glass-line); } .phero-photo .sheet dd { color: #fff; }
.phero-photo .btn-blue { --bc: var(--warm); --bg: var(--warm); --fg: #1d2023; --hb: #fff; --hf: var(--field); }
.phero-photo .btn-line { --bc: rgba(255, 255, 255, .4); --fg: #fff; --hb: #fff; --hf: var(--field); }
.phero-ic { position: absolute; z-index: 2; inset-inline-end: var(--gut); top: calc(var(--hdr) + 24px); }
.phero-ic .ic3d { width: 92px; height: 92px; }
@media (max-width: 860px) { .phero-photo { min-height: 0; } .phero-ic { display: none; } }

/* Service cards with big photos */
.svc { min-height: 0; background: #fff; border-color: var(--line); box-shadow: var(--shadow-1); border-radius: 4px; }
.svc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin: 0; }
.svc:nth-child(2) .svc-media, .svc:nth-child(3) .svc-media { aspect-ratio: 4 / 3; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc:hover .svc-media img, .svc.is-active .svc-media img { transform: scale(1.08); }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(9, 38, 28, .45)); }
.svc-top { position: absolute; z-index: 3; inset-inline: 0; top: 0; padding: 1rem 1.2rem; }
.svc-top .mono { background: rgba(255, 255, 255, .92); color: var(--ink); padding: .3rem .55rem; border-radius: 2px; }
.svc-body { position: relative; padding: 1.4rem 1.6rem 1.6rem; margin-top: 0; }
.svc-body .ic3d { position: absolute; top: -46px; inset-inline-end: 1.2rem; width: 86px; height: 86px; }
@media (max-width: 860px) { .svc-media, .svc:nth-child(2) .svc-media, .svc:nth-child(3) .svc-media { aspect-ratio: 16 / 10; } }

/* Pinned horizontal gallery */
.hgal { background: var(--stone); overflow: hidden; }
.hgal-pin { padding-block: clamp(48px, 6vh, 80px); min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hgal-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.hgal-head p { margin: 0; color: var(--muted); }
.hgal-track { display: flex; gap: 20px; padding-inline: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); will-change: transform; }
.hcard { position: relative; flex: none; width: clamp(240px, min(24vw, 40vh), 400px); margin: 0; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-1); background: var(--stone-2); }
.hcard:nth-child(even) { margin-top: 48px; }
.hcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.hcard:hover img { transform: scale(1.06); }
.hcard figcaption { position: absolute; inset-inline: 12px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 3px; background: rgba(255, 255, 255, .94); font-size: .9rem; font-weight: 500; }
.hcard figcaption .ic3d { width: 30px; height: 30px; filter: none; }
.hgal-bar { height: 2px; margin: 28px auto 0; max-width: calc(var(--max) - 2 * var(--gut)); background: var(--line); }
.hgal-bar span { display: block; height: 100%; width: 0; background: var(--blue); }
@media (max-width: 960px) {
  .hgal-head { grid-template-columns: 1fr; }
  .hgal-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .hgal-track::-webkit-scrollbar { display: none; }
  .hcard { width: 74vw; scroll-snap-align: center; } .hcard:nth-child(even) { margin-top: 0; }
  .hgal-bar { display: none; }
}

/* Credentials ring on a deep sheet */
.ring-sec { background: radial-gradient(ellipse 70% 60% at 50% 60%, #1c5a45, var(--field) 70%); color: var(--on-field); }
.ring-sec .sec-head p { color: var(--on-field-muted); } .ring-sec h2 em { color: #dcc08a; }
.ring-sec .cred { border: 1px solid rgba(255, 255, 255, .5); background: linear-gradient(160deg, #fff, #efe7d6); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); color: var(--ink); }
.ring-sec .ring-ctrl button { background: rgba(255, 255, 255, .1); color: #fff; border-color: var(--glass-line); }
.ring-sec .ring-ctrl button:hover { background: #fff; color: var(--field); }
.ring-sec .ring-live, .ring-sec .small { color: var(--on-field-muted); }
.cred { border-radius: 4px; }
.cred .ic3d { width: 64px; height: 64px; }

/* Photo mosaic band with a glass statement */
.mosaic { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 14vw, 210px); gap: 6px; background: var(--field); padding: 6px; }
.mosaic figure { position: relative; margin: 0; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic .m1 { grid-column: span 2; grid-row: span 2; } .mosaic .m4 { grid-column: span 2; } .mosaic .m6 { grid-column: span 2; grid-row: span 2; } .mosaic .m7 { grid-column: span 2; }
.mosaic-quote { position: absolute; z-index: 4; left: 50%; top: 50%; translate: -50% -50%; width: min(640px, 86%); padding: clamp(22px, 3vw, 40px); border-radius: 4px; color: #fff; text-align: center; background: rgba(13, 50, 37, .62); }
.mosaic-quote p { margin: 0; font: 400 clamp(1.3rem, 1rem + 1.3vw, 2.1rem)/1.25 var(--serif); letter-spacing: -.01em; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } .mosaic .m1, .mosaic .m6 { grid-row: span 1; } .mosaic .m8, .mosaic .m9 { display: none; } .mosaic-quote { position: relative; left: auto; top: auto; translate: none; width: auto; grid-column: 1 / -1; grid-row: 3; } }

/* FAQ beside a sticky photo */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-photo { position: sticky; top: calc(var(--hdr) + 24px); margin: 0; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-1); aspect-ratio: 4 / 5; }
.faq-photo img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.faq-photo .ic3d { position: absolute; z-index: 2; inset-inline-start: 18px; bottom: 18px; }
@media (max-width: 960px) { .faq-wrap { grid-template-columns: 1fr; } .faq-photo { position: relative; top: 0; aspect-ratio: 16 / 9; } }

/* CTA over a photo, glass panel */
.cta-photo { color: #fff; isolation: isolate; border-top: 0; }
.cta-photo .cta-bg { position: absolute; inset: -10% 0; z-index: -2; }
.cta-photo .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 38, 28, .92), rgba(15, 61, 46, .62)); }
.cta-photo h2 { color: #fff; } .cta-photo h2 em { color: #dcc08a; }
.cta-photo .btn-blue { --bc: var(--warm); --bg: var(--warm); --fg: #1d2023; --hb: #fff; --hf: var(--field); }
.cta-photo .btn-line { --bc: rgba(255, 255, 255, .45); --fg: #fff; --hb: #fff; --hf: var(--field); }
.cta-photo dl { padding: .4rem 1.4rem; border-radius: 4px; border-top: 0; }
.cta-photo dl div { border-color: var(--glass-line); }
.cta-photo dt { color: #e6dcc6; } .cta-photo dd, .cta-photo dd a { color: #fff; }

/* Marquee of services and languages (every page) */
.marquee { position: relative; overflow: hidden; background: var(--blue-deep); color: #fff; padding-block: 1.1rem; }
.marquee-track { display: flex; width: max-content; will-change: transform; animation: marq 40s linear infinite; }
.marquee ul { display: flex; align-items: center; gap: 2.4rem; margin: 0; padding: 0 1.2rem; list-style: none; }
.marquee li { display: flex; align-items: center; gap: .8rem; font: 400 clamp(1.2rem, 1rem + .8vw, 1.8rem)/1.3 var(--serif); white-space: nowrap; }
.marquee li .ic3d { width: 40px; height: 40px; filter: none; }
.marquee li.lang-name { color: #dcc08a; }
@keyframes marq { to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-name: marqr; }
@keyframes marqr { to { transform: translateX(50%); } }
.marquee:hover .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
.marquee-toggle { position: absolute; z-index: 2; inset-inline-end: 10px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r); background: var(--blue-deep); color: #fff; }
.marquee-toggle svg { width: 14px; height: 14px; }

/* Steps, columns and rows get icons and depth */
.steps { border-top-color: var(--blue); }
.steps li .ic3d { width: 56px; height: 56px; display: block; margin: -1rem 0 .6rem; }
.steps li::before { margin-bottom: 1rem; }
.cols3 > * > .ic3d { margin-bottom: .8rem; display: block; }
.row2-media { border-radius: 4px; box-shadow: var(--shadow-1); border: 0; }
.form-card { border-radius: 4px; box-shadow: var(--shadow-1); border-color: var(--line-2); }
.side-photo { position: relative; margin: 0 0 1.6rem; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-1); aspect-ratio: 16 / 10; }
.side-photo img { width: 100%; height: 100%; object-fit: cover; }
.side-photo .ic3d { position: absolute; inset-inline-end: 14px; bottom: 14px; }
.prog { grid-template-columns: auto minmax(0, 4fr) minmax(0, 7fr) auto; }
.prog .ic3d { width: 52px; height: 52px; }
@media (max-width: 760px) { .prog { grid-template-columns: auto 1fr; } .prog p, .prog .mono { grid-column: 2; } }
.apply { border-radius: 4px; box-shadow: var(--shadow-1); background: linear-gradient(135deg, #fff, #f6f1e7); }
.notice, .map { border-radius: 4px; }
.map { overflow: hidden; box-shadow: var(--shadow-1); }
.ftr { background: radial-gradient(ellipse 80% 60% at 20% 0%, #1c5a45, var(--ink) 70%); }
.nf { background: var(--field); color: #fff; }
.nf h1 { color: #fff; } .nf h1 em { color: #dcc08a; } .nf .lead { color: #e6dcc6; } .nf .code { color: var(--warm); }
.nf .bp { background-image: linear-gradient(rgba(220, 192, 138, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 192, 138, .12) 1px, transparent 1px); background-size: 48px 48px; }
.nf .btn-line { --bc: rgba(255, 255, 255, .4); --fg: #fff; --hb: #fff; --hf: var(--field); }
.nf .btn-blue { --bc: var(--warm); --bg: var(--warm); --fg: #1d2023; --hb: #fff; --hf: var(--field); }

@media (prefers-reduced-motion: reduce) {
  .chip, .ic-float, .marquee-track, .scroll-cue::after { animation: none !important; }
  .marquee-track { width: auto; flex-wrap: wrap; }
  .marquee-track > ul + ul { display: none; }
  .marquee ul { flex-wrap: wrap; row-gap: .6rem; }
  .hero-media video { display: none; }
}

.side-photo img[data-parallax], .faq-photo img[data-parallax] { height: 118%; margin-top: -9%; }
.mosaic { grid-auto-flow: dense; }

/* ===== Jury fixes ===== */
/* Closed menus are removed from the page, not just made invisible */
.drawer { display: none; }
.menu-open .drawer { display: block; animation: drawerIn .4s var(--ease); }
@keyframes drawerIn { from { opacity: 0; } to { opacity: 1; } }
.lang-menu { display: none; }
.lang.open .lang-menu { display: block; animation: drawerIn .25s var(--ease); }
/* Language button gets the same fill treatment as other buttons */
.hdr .lang-btn:hover, .hdr .lang.open .lang-btn { background: var(--hfg); color: var(--field); border-color: var(--hfg); }
.hdr.scrolled .lang-btn:hover, .hdr.scrolled .lang.open .lang-btn { color: var(--ground); }
/* Cursor follower steps aside over buttons and links so labels stay clear */
.cursor.link { opacity: 0 !important; }
/* Service card label never sits on top of the open detail panel */
.svc-top { transition: opacity .3s var(--ease); }
.svc:hover .svc-top, .svc:focus-within .svc-top, .svc.is-active .svc-top { opacity: 0; }
/* Inactive checklist rows stay readable before the scan reaches them */
.js-scan .checks li { opacity: .72; }
/* Breadcrumbs on one baseline */
.crumbs { align-items: baseline; }
.crumbs li { display: inline-flex; align-items: baseline; }
/* Inline links reach a 24px target */
dd a, .legal a, .small a, p a { display: inline-block; padding-block: 3px; }
/* Photos never show as empty boxes while loading */
.side-photo, .faq-photo, .svc-media, .hcard, .mosaic figure, .row2-media { background-color: var(--field-2); background-image: linear-gradient(rgba(220, 192, 138, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 192, 138, .14) 1px, transparent 1px); background-size: 24px 24px; }
/* Page-to-page transition: the next page wipes in like a new drawing sheet */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .45s cubic-bezier(.2, .7, .1, 1) both; }
::view-transition-new(root) { animation: vtIn .6s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-24px); } }
@keyframes vtIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
/* Phones: WhatsApp lives in the bottom action bar instead of floating over text; lighter effects */
.mbar-wa { display: none; }
@media (max-width: 720px) {
  .mbar { grid-template-columns: 1fr auto 1fr; }
  .mbar-wa { display: inline-flex; width: 52px; padding: 0; --bc: #1f7a4d; --bg: #1f7a4d; --fg: #fff; --hb: var(--ink); --hf: #fff; }
  .mbar-wa svg { width: 24px; height: 24px; }
  .wa { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .wa-fab { display: none; }
  .wa-panel { bottom: 8px; }
  .glass, .chip, .hero-count, .phero-photo .sheet, .hdr.scrolled, body:not(.menu-open) .hdr:not(.scrolled) .hdr-call, .hero .quick .btn-line { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .glass, .chip { background: rgba(15, 61, 46, .78); }
  .hero-media video { display: none; }
  .chip-1, .chip-2, .chip-3, .chip-4 { animation: none; }
}
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } .menu-open .drawer, .lang.open .lang-menu { animation: none; } }

/* Notary pause switch (assets/js/site-config.js) */
[data-notary-paused] { display: none; }
.notary-paused [data-notary-paused] { display: block; }
.notary-paused [data-notary-active] { display: none !important; }
.notary-paused-msg { margin-bottom: 1.6rem; }
.fees td .fee-amt { display: block; font-weight: 500; }
.fees td .fee-note { display: block; font-size: .85rem; color: var(--muted); }

/* =====================================================================
   FILM LAYER — emerald / forest / champagne / ivory / charcoal
   ===================================================================== */
:root { --emerald: #0f3d2e; --forest: #1c5a45; --champagne: #c9a45c; --champagne-2: #dcc08a; --ivory: #f6f1e7; --charcoal: #1a1d1c; }
.btn-light { --bc: rgba(246, 241, 231, .55); --bg: transparent; --fg: var(--ivory); --hb: var(--ivory); --hf: var(--emerald); }

/* Film: a sticky stage, chapters scroll over it */
.film { position: relative; background: var(--emerald); color: var(--ivory); }
.film-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0; }
.film-still, .film-still img, .film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-still img { object-fit: cover; object-position: 60% 50%; }
html[dir="rtl"] .film-still img { object-position: 40% 50%; }
.film-canvas { opacity: 0; transition: opacity .8s var(--ease); }
.film-stage.is-playing .film-canvas { opacity: 1; }
.film-grade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 38, 28, .62) 0%, rgba(9, 38, 28, .28) 40%, rgba(9, 38, 28, 0) 62%), linear-gradient(0deg, rgba(9, 38, 28, .55), transparent 28%), linear-gradient(180deg, rgba(9, 38, 28, .45), transparent 22%); }
html[dir="rtl"] .film-grade { background: linear-gradient(270deg, rgba(9, 38, 28, .62) 0%, rgba(9, 38, 28, .28) 40%, rgba(9, 38, 28, 0) 62%), linear-gradient(0deg, rgba(9, 38, 28, .55), transparent 28%), linear-gradient(180deg, rgba(9, 38, 28, .45), transparent 22%); }
.film-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.film-lines g path, .film-lines g circle { fill: none; stroke: var(--champagne); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); }
.film-lines g .dash { stroke-dasharray: 6 8; stroke-dashoffset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.film-lines g text { fill: var(--champagne-2); font: 500 15px/1 var(--mono); letter-spacing: .08em; opacity: 0; transition: opacity .8s var(--ease) .6s; }
.film-lines g.on path, .film-lines g.on circle { stroke-dashoffset: 0; }
.film-lines g.on .dash, .film-lines g.on text { opacity: 1; }
.film-lines g circle { fill: rgba(201, 164, 92, .25); }
html[dir="rtl"] .film-lines { transform: scaleX(-1); } html[dir="rtl"] .film-lines text { display: none; }
.particles { position: absolute; inset: 0 0 auto 0; width: 100%; pointer-events: none; z-index: 1; }

/* HUD */
.hud { position: absolute; z-index: 3; inset-inline: var(--gut); bottom: 18px; display: flex; align-items: center; gap: 1.2rem; font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ivory); opacity: .92; }
.hud-ch b { color: var(--champagne); font-weight: 500; }
.hud-label { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[dir="rtl"] .hud-label, html[lang="hi"] .hud-label { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: .8rem; }
.hud-bar { flex: 0 0 120px; height: 1px; background: rgba(246, 241, 231, .25); overflow: hidden; }
.hud-bar i { display: block; height: 100%; background: var(--champagne); transform-origin: 0 50%; transform: scaleX(0); }
html[dir="rtl"] .hud-bar i { transform-origin: 100% 50%; }
.hud-geo { margin-inline-start: auto; color: var(--champagne-2); direction: ltr; }

/* Chapters */
.film-chapters { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }
.ch { position: relative; min-height: 165vh; padding-inline: var(--gut); max-width: var(--max); margin-inline: auto; }
.ch-hero { min-height: 150vh; }
.ch-last { min-height: 120vh; }
.panel { position: sticky; top: calc(var(--hdr) + 4vh); width: min(560px, 44vw); padding: clamp(24px, 2.6vw, 40px); }
.glass-film { background: rgba(9, 38, 28, .48); border: 1px solid rgba(220, 192, 138, .28); border-radius: 6px; color: var(--ivory);
  -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55); }
.panel .mono { color: var(--champagne-2); margin-bottom: 1rem; display: flex; align-items: center; gap: .7rem; }
.panel .mono::before { content: ""; width: 26px; height: 1px; background: var(--champagne); }
.panel h1 { font-size: clamp(2.4rem, 1.2rem + 3.4vw, 4.4rem); color: var(--ivory); }
.panel h2 { font-size: clamp(1.9rem, 1.1rem + 2vw, 3rem); color: var(--ivory); margin-bottom: 1rem; }
.panel h1 em, .panel h2 em { color: var(--champagne-2); }
.panel p { color: rgba(246, 241, 231, .88); }
.panel .small { color: rgba(246, 241, 231, .78); font-size: .88rem; }
.panel a:not(.btn) { color: var(--champagne-2); }
.panel .hero-story { color: rgba(246, 241, 231, .9); margin: 1.2rem 0 1.4rem; }
.panel .quick .btn-line { --bc: rgba(246, 241, 231, .4); --bg: rgba(246, 241, 231, .04); --fg: var(--ivory); --hb: var(--ivory); --hf: var(--emerald); }
.panel .quick { gap: .45rem; }
.panel .quick .btn { min-height: 44px; padding: .55rem 1rem; font-size: .92rem; }
.panel .hero-count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 1.6rem 0 0; border-top: 1px solid rgba(220, 192, 138, .28); border-radius: 0; background: none; }
.panel .hero-count div { padding: .9rem .6rem 0 0; border: 0; }
.panel .hero-count b { font: 400 1.9rem/1 var(--serif); color: var(--champagne-2); }
.panel .hero-count span { display: block; font-size: .74rem; color: rgba(246, 241, 231, .8); margin-top: .3rem; line-height: 1.3; }
.panel .checks { margin-top: 1rem; }
.panel .checks li { border-color: rgba(220, 192, 138, .22); padding-block: .5rem; opacity: 1; }
.panel .checks li::before { color: var(--champagne); }
.panel .checks b { font-size: 1.05rem; } .panel .checks span { color: rgba(246, 241, 231, .82); font-size: .86rem; }
.ticks { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: grid; gap: .55rem; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: .7rem; color: rgba(246, 241, 231, .9); }
.ticks li::before { content: ""; width: 9px; height: 9px; margin-top: .55em; border: 1px solid var(--champagne); transform: rotate(45deg); }
.panel-portrait { float: inline-end; width: 120px; height: 120px; object-fit: cover; object-position: 50% 12%; border-radius: 50%; margin: 0 0 .8rem 1rem; background: var(--forest); border: 1px solid rgba(220, 192, 138, .45); }
html[dir="rtl"] .panel-portrait { margin: 0 1rem .8rem 0; }
.path-mini { list-style: none; margin: 1.2rem 0 1.4rem; padding: 0; display: grid; gap: .45rem; clear: both; }
.path-mini li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; padding-block: .45rem; border-top: 1px solid rgba(220, 192, 138, .22); }
.path-mini .yr { font: 500 .7rem/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--champagne); }
html[dir="rtl"] .path-mini .yr, html[lang="hi"] .path-mini .yr { font-family: var(--sans); text-transform: none; font-size: .85rem; }
.path-mini b { font-weight: 400; font-family: var(--serif); font-size: 1.05rem; }
.film-dl { margin: 1.6rem 0 0; display: grid; border-top: 1px solid rgba(220, 192, 138, .28); }
.film-dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid rgba(220, 192, 138, .18); }
.film-dl dt { font: 500 .7rem/1.7 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--champagne); }
html[dir="rtl"] .film-dl dt, html[lang="hi"] .film-dl dt { font-family: var(--sans); text-transform: none; font-size: .85rem; }
.film-dl dd { margin: 0; } .film-dl dd a { color: var(--ivory); }
.film .scroll-cue { position: absolute; left: 50%; top: calc(100svh - 70px); border-color: rgba(246, 241, 231, .55); }
.film .scroll-cue::after { background: var(--champagne); }
.ch .panel { opacity: .35; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.ch.is-on .panel, .ch-hero .panel { opacity: 1; transform: none; }
.film-still-mode .ch .panel { opacity: 1; transform: none; }

/* Phones: footage on top, panel scrolls up over it */
@media (max-width: 760px) {
  .film-grade { background: linear-gradient(0deg, rgba(9, 38, 28, .85) 0%, rgba(9, 38, 28, .3) 45%, rgba(9, 38, 28, .2) 100%); }
  .ch { min-height: 0; padding-top: 44svh; padding-bottom: 18svh; }
  .ch-hero { padding-top: 34svh; }
  .panel { position: relative; top: 0; width: 100%; }
  .glass-film { background: rgba(9, 38, 28, .78); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ch .panel { opacity: 1; transform: none; }
  .panel .hero-count { grid-template-columns: 1fr 1fr; row-gap: .8rem; }
  .hud { bottom: auto; top: calc(var(--hdr) + 6px); font-size: .62rem; gap: .7rem; }
  .hud-label, .hud-geo { display: none; }
  .hud-bar { flex: 1; }
  .film-lines { opacity: .7; }
}

/* Page heroes get the same particles and gold detailing */
.phero { isolation: isolate; }
.phero .particles { z-index: 0; }
.phero-photo::before { background: linear-gradient(90deg, rgba(9, 38, 28, .94) 0%, rgba(13, 50, 37, .8) 50%, rgba(15, 61, 46, .38) 100%), linear-gradient(0deg, rgba(9, 38, 28, .85), transparent 50%); }
html[dir="rtl"] .phero-photo::before { background: linear-gradient(270deg, rgba(9, 38, 28, .94) 0%, rgba(13, 50, 37, .8) 50%, rgba(15, 61, 46, .38) 100%), linear-gradient(0deg, rgba(9, 38, 28, .85), transparent 50%); }
.phero-photo .sheet { background: rgba(9, 38, 28, .4); border-color: rgba(220, 192, 138, .35); border-radius: 6px; overflow: hidden; }
.phero-ic { display: none; }

/* Refined cursor: a champagne dot with a soft ring */
.cursor { width: 34px; height: 34px; margin: -17px 0 0 -17px; mix-blend-mode: normal; }
.cursor::before, .cursor::after { display: none; }
.cursor i { inset: 0; border: 1px solid var(--champagne); border-radius: 50%; transition: transform .4s var(--ease), opacity .3s; }
.cursor::marker { display: none; }
.cursor b, .cursor .dot { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--champagne); }
.cursor.link { opacity: .9 !important; } .cursor.link i { transform: scale(1.7); opacity: .5; }

/* Ring and FAQ in the new palette */
.ring-sec { background: radial-gradient(ellipse 70% 60% at 50% 60%, var(--forest), var(--emerald) 72%); }
.ring-sec .cred { background: linear-gradient(160deg, #fffdf8, #efe7d6); }

@media (prefers-reduced-motion: reduce) {
  .film-canvas { display: none; }
  .film-lines g path, .film-lines g circle { transition: none; }
  .ch .panel { opacity: 1; transform: none; transition: none; }
}

/* Calculator center */
.calc-sec { background: linear-gradient(180deg, var(--ivory), #efe7d6); }
.ctabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.6rem; padding: .35rem; border: 1px solid rgba(26, 29, 28, .14); border-radius: 999px; width: fit-content; max-width: 100%; background: #fbf8f1; }
.ctabs [role=tab] { min-height: 44px; padding: 0 1.2rem; border: 0; border-radius: 999px; background: transparent; color: var(--charcoal); font: 500 .95rem/1 var(--sans); transition: background .35s var(--ease), color .35s var(--ease); }
.ctabs [role=tab]:hover { background: rgba(201, 164, 92, .16); }
.ctabs [role=tab][aria-selected=true] { background: var(--emerald); color: var(--ivory); }
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.calc-controls { background: #fffdf8; border: 1px solid rgba(26, 29, 28, .12); border-radius: 6px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 24px 60px -30px rgba(15, 61, 46, .35); }
.calc .field { margin-bottom: 1.5rem; }
.rng-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; font-weight: 500; }
.rng-top output { font: 400 1.35rem/1 var(--serif); color: var(--emerald); font-variant-numeric: tabular-nums; direction: ltr; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; --p: 50%; }
.calc input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--champagne) var(--p), rgba(26, 29, 28, .16) var(--p)); }
.calc input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(26, 29, 28, .16); }
.calc input[type=range]::-moz-range-progress { height: 4px; background: var(--champagne); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--emerald); border: 3px solid var(--champagne); box-shadow: 0 4px 12px rgba(15, 61, 46, .35); transition: transform .3s var(--ease); }
.calc input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--emerald); border: 3px solid var(--champagne); }
.calc input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
html[dir="rtl"] .calc input[type=range] { direction: ltr; }
.terms { display: flex; gap: .4rem; flex-wrap: wrap; }
.terms button { min-height: 44px; padding: 0 1rem; border: 1px solid rgba(26, 29, 28, .22); border-radius: 4px; background: #fff; transition: background .3s, color .3s, border-color .3s; }
.terms button:hover { border-color: var(--champagne); }
.terms button[aria-pressed=true] { background: var(--emerald); color: var(--ivory); border-color: var(--emerald); }
.calc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.numfield label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .4rem; }
.numfield input { width: 100%; min-height: 50px; padding: .7rem .9rem; border: 1px solid #8a8f88; border-radius: 4px; background: #fff; font-size: 1.05rem; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
html[dir="rtl"] .numfield input { text-align: right; }
.numfield input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 2px rgba(201, 164, 92, .45); }
.calc-note { margin: 1.2rem 0 0; font-size: .86rem; color: var(--muted); line-height: 1.55; }
.calc-out { position: sticky; top: calc(var(--hdr) + 16px); background: radial-gradient(ellipse 120% 80% at 0% 0%, var(--forest), var(--emerald) 70%); color: var(--ivory); border-radius: 6px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 70px -30px rgba(15, 61, 46, .6); border: 1px solid rgba(220, 192, 138, .25); }
.calc-out .k { font: 500 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--champagne-2); }
html[dir="rtl"] .calc-out .k, html[lang="hi"] .calc-out .k { font-family: var(--sans); text-transform: none; font-size: .9rem; }
.calc-out .big { font: 400 clamp(2.6rem, 1.6rem + 3vw, 3.8rem)/1.05 var(--serif); margin: .5rem 0 .4rem; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
html[dir="rtl"] .calc-out .big { text-align: right; }
.calc-out .small { color: rgba(246, 241, 231, .8); }
.calc-out .bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 1.2rem 0 1rem; background: rgba(246, 241, 231, .15); }
.calc-out .bar span { height: 100%; transition: width .6s var(--ease); }
.c1 { background: var(--champagne); } .c2 { background: #7fb59c; } .c3 { background: #e9dcc0; } .c4 { background: #b5674a; }
.breakdown { display: grid; gap: 0; margin-top: .6rem; }
.breakdown div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(220, 192, 138, .2); font-size: .95rem; }
.breakdown div span:last-child { font-variant-numeric: tabular-nums; direction: ltr; }
.breakdown i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: .5rem; }
.calc-apply { margin-top: 1.4rem; }
.calc-apply .btn { width: 100%; }
.calc-apply .note { margin: .7rem 0 0; font-size: .8rem; color: rgba(246, 241, 231, .78); line-height: 1.45; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-out { position: relative; top: 0; } }
@media (max-width: 560px) { .calc-grid2 { grid-template-columns: 1fr; } .ctabs { border-radius: 8px; } .ctabs [role=tab] { flex: 1 1 45%; border-radius: 6px; padding: 0 .6rem; } }

.ftabs { margin-bottom: 1.2rem; }
.calc-apply { display: grid; gap: .5rem; }
.calc-apply .btn-light { --bc: rgba(246, 241, 231, .5); --fg: var(--ivory); --hb: var(--ivory); --hf: var(--emerald); }

/* Header over the film stays dark glass */
.over-film .hdr.scrolled { background: rgba(9, 38, 28, .72); box-shadow: 0 1px 0 rgba(220, 192, 138, .2); --hfg: #f6f1e7; --hfg-2: rgba(246, 241, 231, .82); --hmark: #dcc08a; }
.over-film body:not(.menu-open) .hdr.scrolled .hdr-call, .over-film .hdr.scrolled .hdr-call { --bc: rgba(246, 241, 231, .4); --bg: rgba(246, 241, 231, .08); --fg: #f6f1e7; --hb: #c9a45c; --hf: #1a1d1c; }

.hud { padding: .45rem .8rem; border-radius: 999px; background: rgba(9, 38, 28, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); inset-inline: auto; inset-inline-start: var(--gut); max-width: calc(100% - 2 * var(--gut) - 70px); }
@media (max-width: 760px) { .hud { inset-inline-end: var(--gut); max-width: none; -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(9, 38, 28, .7); } }

@media (min-width: 761px) { .hud { inset-inline-start: auto; inset-inline-end: calc(var(--gut) + 74px); } }

.glass-film { background: rgba(9, 38, 28, .56); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.dw { display: inline-block; overflow: hidden; vertical-align: bottom; white-space: nowrap; }
.hud { max-width: min(620px, calc(100% - 2 * var(--gut) - 74px)); }
@media (max-width: 760px) {
  .hud { display: none; }
  .hdr.scrolled { background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .over-film .hdr.scrolled { background: #0b3326; }
}

.hud { max-width: min(520px, calc(50% - 60px)); }
.hud-geo { white-space: nowrap; }
.hud-label { min-width: 0; flex: 1 1 auto; }
.hud-bar { flex: 0 0 72px; }
