/* =========================================================================
   ABE LAM REALTY — white cinematic luxury design system
   OKLCH only · never #fff / #000 · one warm bronze accent
   ========================================================================= */

:root {
  /* Single warm hue drives the whole off-white ramp. 70 = warm cream. */
  --hue: 255;

  --paper-0: oklch(99.2% 0.004 var(--hue)); /* lifted near-white      */
  --paper-1: oklch(97.6% 0.006 var(--hue)); /* page background (cream)*/
  --paper-2: oklch(95.6% 0.008 var(--hue)); /* raised cards           */
  --paper-3: oklch(93.2% 0.010 var(--hue)); /* deeper panels          */

  --ink-0: oklch(17% 0.014 var(--hue));     /* near-black display      */
  --ink-1: oklch(26% 0.013 var(--hue));     /* primary text            */
  --ink-2: oklch(47% 0.011 var(--hue));     /* secondary text          */
  --ink-3: oklch(62% 0.010 var(--hue));     /* faint / meta            */

  --line:   oklch(89% 0.010 var(--hue));    /* hairline borders        */
  --line-2: oklch(83% 0.012 var(--hue));    /* stronger borders        */

  /* Monochrome only — no color. Accents resolve to ink / charcoal. */
  --accent:      oklch(30% 0.006 255);
  --accent-deep: oklch(20% 0.006 255);
  --accent-soft: oklch(30% 0.006 255 / 0.07);
  --accent-line: oklch(30% 0.006 255 / 0.26);

  /* Ink surface for the rare dark band (footer) */
  --ink-bg:  oklch(19% 0.013 var(--hue));
  --ink-bg2: oklch(24% 0.013 var(--hue));

  --shadow-1: 0 1px 2px oklch(20% 0.02 var(--hue) / .05),
              0 6px 18px oklch(20% 0.02 var(--hue) / .06);
  --shadow-2: 0 2px 6px oklch(20% 0.02 var(--hue) / .07),
              0 24px 60px oklch(20% 0.02 var(--hue) / .12);

  --ease: cubic-bezier(0.23, 1, 0.32, 1);     /* strong ease-out      */
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1); /* in-out for movement  */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --maxw: 1240px;
  --gutter: clamp(22px, 5vw, 90px);
  --serif: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--paper-1);
  color: var(--ink-1);
  font-weight: 400;
  line-height: 1.6;
  font-size: clamp(15px, 1.05vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: var(--ink-0); }

img { display: block; max-width: 100%; }

/* (full-page grain blend removed — it repainted every scroll frame and hurt smoothness) */

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vh, 150px); }

.eyebrow {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 0.8em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent-line);
}
.eyebrow.center::before { display: none; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink-0); font-weight: 700; line-height: 1.06; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.7rem, 6.6vw, 5.6rem); font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.95rem); }
.serif-italic { font-style: italic; }
em, .accent-word { font-style: italic; }

.lead { font-size: clamp(1.05rem, 1.55vw, 1.28rem); color: var(--ink-1); line-height: 1.6; max-width: 60ch; font-weight: 400; }
p { max-width: 70ch; }
.muted { color: var(--ink-2); }

/* ----------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .45s var(--ease), backdrop-filter .45s var(--ease), padding .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.on {
  background: oklch(98% 0.006 var(--hue) / 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
.brand { display: flex; align-items: baseline; gap: 0.55rem; text-decoration: none; color: var(--ink-0); z-index: 810; }
.brand b { font-family: var(--serif); font-weight: 400; font-size: 1.28rem; letter-spacing: -0.01em; }
.brand span { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 30px); }
.nav-links a {
  position: relative; text-decoration: none; color: var(--ink-1);
  font-size: 0.84rem; font-weight: 400; letter-spacing: 0.01em;
  padding: 6px 2px; transition: color .3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink-0); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .4s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

/* dropdown for Knowledge Hub */
.has-menu { position: relative; }
/* invisible hover bridge so the cursor can travel from the label to the menu
   without the menu closing in the gap */
.has-menu::after { content: ""; position: absolute; top: 100%; left: -10px; right: -10px; height: 18px; }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--paper-0); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; min-width: 200px; box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 0.86rem; }
.menu a::after { display: none; }
.menu a:hover { background: var(--paper-2); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--ink-0); color: var(--paper-0);
  padding: 11px 20px; border-radius: 100px; font-size: 0.84rem; font-weight: 500;
  text-decoration: none; transition: transform .3s var(--ease), background .3s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-deep); }
.nav-cta:active { transform: scale(0.97); }

.burger { display: none; background: none; border: 0; cursor: pointer; z-index: 810; width: 30px; height: 22px; position: relative; }
.burger span { position: absolute; left: 0; height: 1.6px; width: 100%; background: var(--ink-0); transition: transform .4s var(--ease), opacity .3s var(--ease); }
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 18px; }
.burger.x span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.x span:nth-child(2) { opacity: 0; }
.burger.x span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 15px 28px; border-radius: 100px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink-0); color: var(--paper-0); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink-0); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-0); background: var(--paper-0); }
.btn-accent { background: var(--accent); color: var(--paper-0); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-light { background: var(--paper-0); color: var(--ink-0); }
.btn-light:hover { background: var(--paper-2); }

/* ---------------------------------------------------------------- hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: clamp(112px, 15vh, 168px); padding-bottom: clamp(48px, 8vh, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 64px); align-items: center; width: 100%; }
.hero h1 { margin: 0.3em 0 0.46em; line-height: 1.0; letter-spacing: -0.03em; font-weight: 700; }
.hero .lead { margin-bottom: 2.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-figure {
  position: relative; aspect-ratio: 3.6 / 4.4; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-2); background: linear-gradient(150deg, var(--paper-3), var(--accent-soft));
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; will-change: transform; filter: grayscale(0.16) contrast(1.06) brightness(1.02); }
.hero-reveal { animation: heroIn 1.1s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .hero-reveal { animation: none; } }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: var(--paper-0);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-2);
}
.hero-badge .n { font-family: var(--serif); font-size: 2rem; color: var(--ink-0); line-height: 1; }
.hero-badge .l { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }

/* hero word reveal */
.ww { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.06em; }
.w { display: inline-block; transform: translateY(115%); will-change: transform; }
.w.up { transform: translateY(0); transition: transform .85s var(--ease); }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink-bg2); border: 1px solid var(--ink-bg2); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-2); }
.stat { background: var(--ink-bg); padding: clamp(30px, 3.4vw, 52px) clamp(20px, 2.4vw, 34px); transition: background .5s var(--ease); position: relative; }
.stat:hover { background: var(--ink-bg2); }
.stat .n { font-family: var(--serif); font-size: clamp(2.6rem, 5.2vw, 4.4rem); color: oklch(98% 0.004 255); line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
.stat .n .suf { color: oklch(70% 0 0); }
.stat .l { margin-top: 14px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: oklch(68% 0 0); }
.stats.three { grid-template-columns: repeat(3, 1fr); }
/* colossal number moment — data as the cinematic object */
.bignum { display: flex; align-items: flex-end; gap: clamp(22px, 4.5vw, 64px); flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: clamp(22px, 3vh, 40px); margin: 16px 0 clamp(40px, 6vh, 70px); }
.bignum-fig { font-family: var(--serif); font-weight: 800; font-size: clamp(5rem, 23vw, 16rem); line-height: 0.76; letter-spacing: -0.055em; color: var(--ink-0); }
.bignum-fig .suf { color: var(--ink-3); }
.bignum-cap { max-width: 30ch; font-size: clamp(1rem, 1.55vw, 1.32rem); color: var(--ink-2); line-height: 1.5; padding-bottom: 0.7em; }

/* ---------------------------------------------------------------- services */
.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 88px 1.1fr 1.4fr; gap: clamp(16px, 3vw, 48px);
  align-items: start; padding: clamp(28px, 4vw, 52px) 0; border-bottom: 1px solid var(--line);
  transition: background .5s var(--ease);
}
.svc:hover { background: var(--paper-0); }
.svc .idx { font-family: var(--serif); font-size: 1.1rem; color: var(--accent-deep); padding-top: 6px; }
.svc h3 { margin-bottom: 0; }
.svc .copy { color: var(--ink-2); max-width: 52ch; }
.svc .copy p + p { margin-top: 0.8em; }

/* interactive accordion (replaces the static service rows) */
.acc { border-bottom: 1px solid var(--line); }
.acc-item { border-top: 1px solid var(--line); }
.acc-head {
  width: 100%; display: grid; grid-template-columns: 72px 1fr 44px; align-items: center;
  gap: clamp(12px, 2vw, 28px); padding: clamp(22px, 3.2vw, 42px) 0;
  background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit;
}
.acc-idx { font-size: 0.82rem; letter-spacing: 0.14em; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .4s var(--ease); }
.acc-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.6rem); letter-spacing: -0.028em; color: var(--ink-0); transition: transform .55s var(--ease); }
.acc-head:hover .acc-title { transform: translateX(12px); }
.acc-item.open .acc-idx { color: var(--ink-0); }
.acc-mark { position: relative; width: 22px; height: 22px; justify-self: end; }
.acc-mark::before, .acc-mark::after { content: ""; position: absolute; background: var(--ink-0); transition: transform .5s var(--ease), opacity .4s var(--ease); }
.acc-mark::before { top: 10px; left: 0; width: 22px; height: 2px; }
.acc-mark::after { left: 10px; top: 0; width: 2px; height: 22px; }
.acc-item.open .acc-mark::after { transform: scaleY(0); opacity: 0; }
.acc-item.open .acc-mark::before { transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .58s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-body { padding: 2px 44px clamp(24px, 3.2vw, 44px) 72px; max-width: 76ch; color: var(--ink-2); opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease) .08s, transform .5s var(--ease) .08s; }
.acc-item.open .acc-body { opacity: 1; transform: translateY(0); }
.acc-body p + p { margin-top: 0.85em; }
@media (max-width: 640px) {
  .acc-head { grid-template-columns: 1fr 28px; }
  .acc-idx { display: none; }
  .acc-body { padding-left: 0; padding-right: 0; }
}

/* generic cards (used sparingly) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cards.four { grid-template-columns: 1fr; } }
.card { background: var(--paper-0); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 2.6vw, 34px); transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: var(--line-2); }
.card .k { font-family: var(--serif); font-size: 1.5rem; color: var(--accent-deep); }
.card h3 { margin: 14px 0 8px; font-size: 1.2rem; }
.card p { color: var(--ink-2); font-size: 0.96rem; }

/* split / feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; aspect-ratio: 5/4; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-1); background: var(--paper-3); }
.split-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

/* founder portrait (about) */
.portrait { position: relative; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-2); border: 1px solid var(--line); background: linear-gradient(155deg, var(--paper-3), var(--paper-2)); margin: 0; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 20px 18px; display: flex; flex-direction: column; gap: 5px; background: linear-gradient(to top, oklch(14% 0.01 255 / .72), transparent); color: oklch(98% 0 0); }
.portrait-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em; }
.portrait-note { font-size: 0.72rem; letter-spacing: 0.03em; color: oklch(86% 0 0); }
.portrait-empty { display: grid; place-items: center; }
.portrait-empty .portrait-cap { position: static; background: none; color: var(--ink-2); text-align: center; align-items: center; padding: 24px; }
.portrait-empty .portrait-name { color: var(--ink-0); font-size: clamp(1.4rem, 2.4vw, 2rem); }
.portrait-empty .portrait-note { color: var(--ink-3); }

/* editorial float grid */
.float-stage { position: relative; height: clamp(420px, 52vw, 600px); }
.fi { position: absolute; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-2); background: var(--paper-3); }
.fi img { width: 100%; height: 100%; object-fit: cover; }
.fi:nth-child(1){ width: 30%; aspect-ratio: 3/4; top: 0; left: 2%; transform: rotate(-3deg); }
.fi:nth-child(2){ width: 25%; aspect-ratio: 4/5; top: 12%; left: 36%; transform: rotate(1.8deg); z-index: 2; }
.fi:nth-child(3){ width: 32%; aspect-ratio: 16/10; top: 44%; left: 18%; transform: rotate(-1.2deg); z-index: 3; }
.fi:nth-child(4){ width: 27%; aspect-ratio: 3/4; top: 6%; right: 3%; transform: rotate(2.6deg); }
.fi:nth-child(5){ width: 22%; aspect-ratio: 1/1; bottom: 2%; right: 14%; transform: rotate(-2.4deg); z-index: 2; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 26px; }
.mtrack { display: flex; gap: 56px; width: max-content; will-change: transform; }
.mtrack span { font-family: var(--serif); font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; font-size: clamp(1.5rem, 3.4vw, 3rem); color: var(--ink-1); display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.mtrack span::after { content: "/"; color: var(--ink-3); font-weight: 300; font-size: 0.8em; }
@keyframes mleft { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* benefits */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.benefit { background: var(--paper-1); padding: clamp(30px, 3.4vw, 56px); transition: background .55s var(--ease); position: relative; }
.benefit:hover { background: var(--paper-0); }
.benefit .bn { font-family: var(--serif); color: var(--ink-3); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; transition: color .45s var(--ease); display: block; }
.benefit:hover .bn { color: var(--ink-0); }
.benefit h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); margin: 22px 0 12px; letter-spacing: -0.02em; }
.benefit p { color: var(--ink-2); font-size: 0.98rem; max-width: 42ch; }
@media (max-width: 700px) { .benefits { grid-template-columns: 1fr; } }

/* tilt card */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.shine { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 1rem; color: var(--ink-0);
  background: var(--paper-0); border: 1px solid var(--line-2); border-radius: 11px;
  padding: 13px 15px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.form-note { font-size: 0.82rem; color: var(--ink-3); margin-top: 10px; }
.form-status { font-size: 0.9rem; margin-top: 12px; min-height: 1.2em; }
.form-status.ok { color: var(--accent-deep); }
.form-status.err { color: oklch(52% 0.16 28); }

.panel { background: var(--paper-0); border: 1px solid var(--line); border-radius: 20px; padding: clamp(26px, 3.4vw, 48px); box-shadow: var(--shadow-1); }

/* ebook band */
.band-accent { background: var(--ink-bg); color: oklch(96% 0.006 var(--hue)); border-radius: 24px; padding: clamp(36px, 5vw, 72px); position: relative; overflow: hidden; }
.band-accent h2, .band-accent h3 { color: oklch(97% 0.006 var(--hue)); }
.band-accent .muted { color: oklch(78% 0.01 var(--hue)); }
.band-accent .field input { background: oklch(26% 0.012 var(--hue)); border-color: oklch(34% 0.012 var(--hue)); color: oklch(97% 0.006 var(--hue)); }
.band-accent .field label { color: oklch(74% 0.01 var(--hue)); }
.band-accent .consent { color: oklch(74% 0.01 var(--hue)); }
.ebook-cover { width: clamp(150px, 17vw, 210px); margin-bottom: 26px; border-radius: 6px; box-shadow: 0 26px 54px oklch(8% 0 0 / .55); transform: rotate(-3deg); transition: transform .6s var(--ease); }
.band-accent:hover .ebook-cover { transform: rotate(0deg) translateY(-5px); }
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.blob.b1 { width: 640px; height: 640px; background: radial-gradient(ellipse at center, oklch(100% 0 0 / .09) 0%, transparent 66%); top: -240px; right: -160px; animation: blob1 22s ease-in-out infinite; }
.blob.b2 { width: 520px; height: 520px; background: radial-gradient(ellipse at center, oklch(100% 0 0 / .05) 0%, transparent 66%); bottom: -200px; left: -120px; animation: blob2 27s ease-in-out infinite; }
@keyframes blob1 { 0%,100%{transform:translate(0,0)} 40%{transform:translate(-50px,40px)} 70%{transform:translate(30px,-40px)} }
@keyframes blob2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(46px,-30px)} }

/* quote / pull */
.pull { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.16; color: var(--ink-0); font-weight: 700; letter-spacing: -0.025em; max-width: 22ch; }
.pull .accent-word { font-style: italic; }
.sign { margin-top: 22px; font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }

/* page hero (interior pages) */
.page-hero { padding-top: clamp(132px, 18vh, 200px); padding-bottom: clamp(36px, 6vh, 72px); }
.page-hero h1 { margin: 0.3em 0 0.3em; max-width: 18ch; }
.page-hero .lead { margin-top: 0.4em; }

/* faqs */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center; font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.45rem); color: var(--ink-0); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pl { flex: none; width: 22px; height: 22px; position: relative; transition: transform .4s var(--ease); }
.faq summary .pl::before, .faq summary .pl::after { content: ""; position: absolute; background: var(--accent); transition: opacity .3s var(--ease); }
.faq summary .pl::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq summary .pl::after { left: 10px; top: 0; width: 2px; height: 22px; }
.faq[open] summary .pl { transform: rotate(45deg); }
.faq .ans { padding: 0 0 24px; color: var(--ink-2); max-width: 72ch; }

/* gallery */
/* balanced portfolio grid (fills a rectangle, no ragged bottom) */
.pgrid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(160px, 23vh, 250px); gap: 16px; grid-template-areas: "a a a a b b" "c c d d b b"; }
.pgrid figure { position: relative; margin: 0; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow-1); background: var(--paper-3); }
.pgrid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.pgrid figure:hover img { transform: scale(1.06); }
.pgrid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 16px; color: oklch(98% 0 0); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; background: linear-gradient(to top, oklch(14% 0.01 255 / .82), transparent); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pgrid figure:hover figcaption { opacity: 1; transform: translateY(0); }
.g-a { grid-area: a; } .g-b { grid-area: b; } .g-c { grid-area: c; } .g-d { grid-area: d; }
@media (max-width: 760px) { .pgrid { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b b" "c d"; grid-auto-rows: clamp(150px, 32vw, 220px); } }

.gal { columns: 3 260px; column-gap: 16px; }
.gal figure { break-inside: avoid; margin-bottom: 16px; border-radius: 14px; overflow: hidden; position: relative; box-shadow: var(--shadow-1); background: var(--paper-3); }
.gal figure img { width: 100%; height: auto; transition: transform 1.1s var(--ease); }
.gal figure:hover img { transform: scale(1.05); }
.gal figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 14px; color: oklch(97% 0.006 var(--hue)); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; background: linear-gradient(to top, oklch(15% 0.02 var(--hue) / .82), transparent); opacity: 0; transition: opacity .5s var(--ease); }
.gal figure:hover figcaption { opacity: 1; }

/* blog / case study list */
.posts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: 0.7fr 2fr 0.7fr; gap: clamp(16px, 3vw, 44px); padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); align-items: baseline; text-decoration: none; transition: background .5s var(--ease); }
.post:hover { background: var(--paper-0); }
.post .meta { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.post h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); transition: color .3s var(--ease); }
.post:hover h3 { color: var(--accent-deep); }
.post p { color: var(--ink-2); font-size: 0.96rem; margin-top: 8px; }
.post .go { font-size: 0.82rem; color: var(--accent-deep); justify-self: end; }

/* prose for long-form pages */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 1.6em 0 0.5em; }
.prose h3 { margin: 1.4em 0 0.4em; }
.prose p { color: var(--ink-1); margin-bottom: 1em; }
.prose ul { margin: 0 0 1.2em 1.1em; color: var(--ink-1); }
.prose li { margin-bottom: 0.5em; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--ink-bg); color: oklch(86% 0.008 var(--hue)); padding-top: clamp(56px, 8vh, 96px); }
.footer h4, .footer .fbrand b { color: oklch(97% 0.006 var(--hue)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 56px; border-bottom: 1px solid oklch(34% 0.012 var(--hue)); }
.fbrand b { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.fbrand p { color: oklch(72% 0.01 var(--hue)); margin-top: 14px; max-width: 36ch; font-size: 0.95rem; }
.footer h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: oklch(70% 0.01 var(--hue)); font-weight: 600; margin-bottom: 16px; }
.fcol a, .fcol p { display: block; color: oklch(82% 0.008 var(--hue)); text-decoration: none; font-size: 0.92rem; margin-bottom: 10px; transition: color .3s var(--ease); }
.fcol a:hover { color: oklch(97% 0.006 var(--hue)); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-block: 26px; color: oklch(64% 0.01 var(--hue)); font-size: 0.82rem; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid oklch(36% 0.012 var(--hue)); border-radius: 50%; color: oklch(82% 0.008 var(--hue)); transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.socials a:hover { border-color: var(--accent); color: oklch(97% 0.006 var(--hue)); transform: translateY(-2px); }

/* cursor glow holder */
.glow-host { position: relative; overflow: hidden; }

/* ===== Cinematic full-bleed video hero ===== */
.hero-cine { position: relative; min-height: 100svh; display: grid; align-items: end; justify-items: start; padding: clamp(120px, 16vh, 180px) 0 clamp(64px, 11vh, 120px); overflow: hidden; background: var(--ink-bg); }
.hero-cine-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: saturate(0.8) contrast(1.08) brightness(0.92); }
.hero-cine-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, oklch(11% 0 0 / .86) 0%, oklch(11% 0 0 / .30) 46%, oklch(11% 0 0 / .55) 100%); }
.hero-cine-inner { position: relative; z-index: 2; width: 100%; }
.hero-cine .eyebrow { color: oklch(84% 0 0); }
.hero-cine .eyebrow::before { background: oklch(84% 0 0 / .5); }
.hero-cine h1 { color: oklch(99% 0 0); font-size: clamp(3.4rem, 9.4vw, 8rem); line-height: 0.9; font-weight: 800; letter-spacing: -0.04em; margin: 0.26em 0 0.46em; text-wrap: balance; }
.hero-cine .lead { color: oklch(90% 0.005 var(--hue)); max-width: 48ch; font-size: clamp(1.02rem, 1.5vw, 1.22rem); }
.hero-cine .btn-ghost { border-color: oklch(100% 0 0 / .42); color: oklch(99% 0 0); }
.hero-cine .btn-ghost:hover { border-color: oklch(100% 0 0); background: oklch(100% 0 0 / .1); }
.hero-cine-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: oklch(92% 0 0 / .72); font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; }
.hero-cine-cue::after { content: ""; display: block; width: 1px; height: 26px; margin: 10px auto 0; background: oklch(92% 0 0 / .4); }
/* light nav while it sits over the dark cinematic hero (flips to dark once .on) */
.nav.over-dark:not(.on) .brand b { color: oklch(99% 0 0); }
.nav.over-dark:not(.on) .brand span { color: oklch(82% 0 0); }
.nav.over-dark:not(.on) .nav-links a { color: oklch(93% 0 0); }
.nav.over-dark:not(.on) .nav-links a:hover { color: oklch(100% 0 0); }
.nav.over-dark:not(.on) .nav-cta { background: oklch(99% 0 0); color: var(--ink-0); }
.nav.over-dark:not(.on) .burger span { background: oklch(99% 0 0); }

/* ===== Cinematic full-screen scroll sections (Villa-Horizon style) ===== */
.cine { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; background: var(--ink-bg); }
.cine-vid, .cine-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cine-img { filter: saturate(0.48) contrast(1.06) brightness(0.9); }
.cine-kb { animation: cineKB 22s ease-in-out infinite alternate; will-change: transform; transform-origin: center; }
.kb-a { transform-origin: 32% 42%; }
.kb-b { transform-origin: 68% 62%; animation-duration: 26s; }
.kb-c { transform-origin: 50% 28%; animation-duration: 24s; }
@keyframes cineKB { from { transform: scale(1.06); } to { transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .cine-kb { animation: none !important; transform: scale(1.05); } }
.cine-veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, oklch(12% 0 0 / .42) 0%, oklch(9% 0 0 / .82) 100%); }
.cine-inner { position: relative; z-index: 2; color: oklch(98% 0 0); padding-inline: var(--gutter); }
.cine .eyebrow { color: oklch(82% 0 0); justify-content: center; }
.cine .eyebrow::before { display: none; }
.cine-h { color: oklch(99% 0 0); font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 5.6vw, 4.8rem); line-height: 1.02; letter-spacing: -0.03em; margin-top: 18px; max-width: 18ch; margin-inline: auto; }
.cine-h em { font-style: italic; color: oklch(85% 0 0); }
.cine-sub { color: oklch(85% 0.005 var(--hue)); margin: 20px auto 0; max-width: 40ch; font-size: clamp(1.02rem, 1.6vw, 1.3rem); line-height: 1.55; }
.cine-cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cine .btn-ghost { border-color: oklch(100% 0 0 / .42); color: oklch(99% 0 0); }
.cine .btn-ghost:hover { border-color: oklch(100% 0 0); background: oklch(100% 0 0 / .1); }

/* ===== Luxury intro overlay (Ferrari/watch-style on-load reveal) ===== */
.intro { position: fixed; inset: 0; z-index: 100000; background: var(--ink-bg); display: grid; place-items: center; will-change: transform; }
.intro-inner { display: grid; place-items: center; gap: 30px; width: min(640px, 86vw); will-change: transform, opacity; }
.intro-mark { width: 100%; height: auto; overflow: visible; }
.intro-mark text { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 130px; letter-spacing: -5px; fill: transparent; stroke: oklch(97% 0 0); stroke-width: 1.1; }
.intro-line { width: 72%; height: 2px; background: oklch(38% 0 0); overflow: hidden; }
.intro-line span { display: block; height: 100%; width: 100%; background: oklch(98% 0 0); transform: scaleX(0); transform-origin: left; }
.intro-count { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.34em; color: oklch(72% 0 0); }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } }

/* scroll progress bar */
.scroll-prog { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--ink-0); z-index: 950; will-change: width; }

/* custom cursor */
.cursor-dot { position: fixed; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: oklch(99% 0 0); pointer-events: none; z-index: 9990; mix-blend-mode: difference; will-change: transform; transition: width .25s var(--ease), height .25s var(--ease); }
.cursor-dot.big { width: 48px; height: 48px; }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none !important; } }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .acc-head, body.has-cursor input, body.has-cursor textarea, body.has-cursor select { cursor: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-dot { display: none; } }

/* scroll reveal — refined: rise + gentle blur-in */
.ri { opacity: 0; transform: translateY(26px); will-change: transform, opacity; }
.ri.up { opacity: 1; transform: translateY(0); transition: opacity .8s var(--ease), transform .85s var(--ease); }

/* clip reveal for media */
.clip { clip-path: inset(0 0 100% 0); will-change: clip-path; }
.clip.open { clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .svc { grid-template-columns: 1fr; gap: 12px; }
  .svc .idx { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post { grid-template-columns: 1fr; gap: 6px; }
  .post .go { justify-self: start; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100dvh; display: none; flex-direction: column; justify-content: center; gap: 22px; background: oklch(98% 0.006 var(--hue)); z-index: 805; overflow-y: auto; }
  .nav-links.open { display: flex !important; }
  .nav-links a { font-size: 1.3rem; font-family: var(--serif); }
  /* drawer has a light background, so force dark text + dark close-X even over the dark hero */
  .nav .nav-links a { color: var(--ink-1) !important; }
  .nav .nav-links a:hover, .nav .nav-links a[aria-current="page"] { color: var(--ink-0) !important; }
  .nav .burger.x span { background: var(--ink-0) !important; }
  /* Knowledge Hub collapses in the drawer: tap to expand its items (not all shown at once) */
  .nav-links .menu { display: none; position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; background: transparent; text-align: center; padding: 0; margin-top: 4px; }
  .nav-links .has-menu.expanded .menu { display: block; }
  .nav-links .menu a { font-size: 0.98rem; font-family: var(--sans); color: var(--ink-2); padding: 7px 0; }
  .burger { display: block; }
  .gal { columns: 2 160px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .gal { columns: 1; }
}

/* =========================================================================
   SIGNATURE (bespoke for Abraham) — Apple-style pinned scroll-scrub
   Defaults are the FINISHED state, so no-JS / reduced-motion shows everything.
   JS sets the hidden start state only when it animates.
   ========================================================================= */
:root {
  --e-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --e-quint: cubic-bezier(0.83, 0, 0.17, 1);
}

/* word-split primitives */
.cw { display: inline-block; overflow: clip; vertical-align: bottom; padding-bottom: 0.06em; }
.cw > span { display: inline-block; will-change: transform, opacity; }

/* ---- Brick by Brick: full-bleed cinematic scrub ---- */
.cinema { position: relative; background: var(--ink-bg); }
.cinema-pin { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.cinema-bg { position: absolute; inset: 0; will-change: transform; }
.cinema-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: opacity; }
.cinema-bg img:first-child { opacity: 1; }
.cinema-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cinema-veil { position: absolute; inset: 0; background:
   linear-gradient(to bottom, oklch(18% 0.02 60 / .62) 0%, oklch(18% 0.02 60 / .30) 42%, oklch(18% 0.02 60 / .70) 100%); }
.cinema-grain { position: absolute; inset: 0; opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cinema-stage {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(40px, 8vh, 90px);
  color: oklch(97% 0.006 var(--hue));
}
.cinema-eyebrow { color: oklch(84% 0 0); margin-bottom: 24px; }
.cinema-eyebrow::before { background: oklch(84% 0 0 / .5); }
.cinema h2 { color: oklch(98% 0.006 var(--hue)); font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; }
.cinema h2 .line { display: block; }
.cinema h2 .line-accent { color: oklch(99% 0 0); font-style: italic; }
.cinema-sub { font-size: clamp(1.02rem, 1.7vw, 1.42rem); font-weight: 300; max-width: 26ch; margin: clamp(18px, 2.6vh, 32px) auto 0; line-height: 1.4; color: oklch(92% 0.01 var(--hue)); font-family: var(--serif); font-style: italic; }
.cinema-meter { margin-top: clamp(24px, 4vh, 48px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cinema-meter .n { font-family: var(--serif); font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: 1; color: oklch(98% 0.006 var(--hue)); font-weight: 700; letter-spacing: -0.03em; }
.cinema-meter .n::after { content: "+"; }
.cinema-meter .lab { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: oklch(82% 0 0); max-width: 30ch; text-align: center; line-height: 1.5; }
.cinema-scrollcue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: oklch(90% 0.01 var(--hue) / .7); }

/* ---- The Compounding Engine: pinned data draw ---- */
.engine { position: relative; background: var(--paper-1); }
.engine-pin { height: 100vh; min-height: 600px; display: grid; align-content: center; overflow: hidden; }
.engine-grid { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.engine-copy .pull { max-width: 16ch; }
.engine-chart { position: relative; width: 100%; aspect-ratio: 16/10; }
.engine-chart svg { width: 100%; height: 100%; overflow: visible; }
.engine-line { fill: none; stroke: var(--ink-0); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.engine-dot { fill: var(--ink-0); }
.engine-ring { fill: none; stroke: var(--ink-0); stroke-width: 1; opacity: 0.28; }
.engine-area { fill: url(#areaGrad); }
.engine-axis { stroke: var(--line-2); stroke-width: 1; }
.engine-grid-l { stroke: var(--line); stroke-width: 1; }

/* ===== About: principles ledger (distinct) ===== */
.ledger { border-top: 1px solid var(--line); }
.led-row { display: grid; grid-template-columns: 110px 1fr; gap: clamp(16px, 3vw, 48px); align-items: baseline; padding: clamp(26px, 3.4vw, 46px) 0; border-bottom: 1px solid var(--line); transition: background .5s var(--ease), padding-left .5s var(--ease); }
.led-row:hover { background: var(--paper-0); padding-left: 14px; }
.led-n { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.4rem); color: var(--ink-3); letter-spacing: -0.03em; transition: color .5s var(--ease); }
.led-row:hover .led-n { color: var(--ink-0); }
.led-c h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 8px; letter-spacing: -0.02em; }
.led-c p { color: var(--ink-2); max-width: 60ch; }
@media (max-width: 600px) { .led-row { grid-template-columns: 1fr; gap: 6px; } }

/* ===== Case Studies: alternating image-feature rows (distinct) ===== */
.feat { display: grid; gap: clamp(44px, 8vh, 100px); }
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.feat-row:nth-child(even) .feat-media { order: 2; }
.feat-media { aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-1); background: var(--paper-3); }
.feat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); filter: grayscale(0.15) contrast(1.04); }
.feat-row:hover .feat-media img { transform: scale(1.05); }
.feat-c .meta { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.feat-c h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 12px 0 12px; letter-spacing: -0.025em; }
.feat-c p { color: var(--ink-2); max-width: 50ch; }
@media (max-width: 760px) { .feat-row, .feat-row:nth-child(even) .feat-media { grid-template-columns: 1fr; order: 0; } }

/* ===== Contact: big editorial (distinct) ===== */
.contact-hero { padding-top: clamp(140px, 20vh, 220px); padding-bottom: clamp(28px, 5vh, 56px); }
.contact-big { font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 8vw, 6.4rem); line-height: 0.98; letter-spacing: -0.04em; }
.contact-big em { font-style: italic; color: var(--ink-2); }

/* ===== Invest: membership stack (distinct) ===== */
.mstack { border-top: 1px solid var(--line); }
.mrow { display: grid; grid-template-columns: 60px 1fr; gap: clamp(14px, 2vw, 32px); padding: clamp(22px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); align-items: start; transition: padding-left .5s var(--ease); }
.mrow:hover { padding-left: 12px; }
.mrow .mk { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 0.95rem; color: var(--ink-0); transition: background .4s var(--ease), color .4s var(--ease); }
.mrow:hover .mk { background: var(--ink-0); color: var(--paper-0); }
.mrow h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); margin-bottom: 6px; letter-spacing: -0.02em; }
.mrow p { color: var(--ink-2); max-width: 58ch; }

/* ===== Signature morph: house draws, then becomes text ===== */
.ethos { background: var(--paper-1); }
.ethos-inner { position: relative; min-height: 100vh; display: grid; place-items: center; }
.house { width: clamp(240px, 32vw, 460px); height: auto; overflow: visible; opacity: 0; grid-area: 1 / 1; }
.house-line { fill: none; stroke: var(--ink-0); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ethos-text { grid-area: 1 / 1; font-family: var(--serif); font-weight: 700; font-size: clamp(2.4rem, 7vw, 6rem); letter-spacing: -0.03em; color: var(--ink-0); text-align: center; }
.ethos-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3); }

/* ===== Logo wordmark draws itself ===== */
.logodraw { background: var(--paper-1); padding-block: clamp(60px, 11vh, 130px); }
.ld-svg { display: block; width: min(720px, 90%); margin-inline: auto; height: auto; overflow: visible; }
.ld-text { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 120px; letter-spacing: -4px; fill: var(--ink-0); stroke: var(--ink-0); stroke-width: 1.1; }

/* ===== Horizontal property strip (scroll-driven, non-pinned) ===== */
.pstrip { background: var(--paper-1); padding-block: clamp(50px, 9vh, 110px); overflow: hidden; }
.pstrip-head { max-width: var(--maxw); margin: 0 auto clamp(24px, 4vh, 44px); padding-inline: var(--gutter); }
.pstrip-track { display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; padding-inline: var(--gutter); will-change: transform; }
.pstrip-track figure { margin: 0; width: clamp(280px, 32vw, 460px); aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-1); position: relative; background: var(--paper-3); }
.pstrip-track img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.18) contrast(1.05); }
.pstrip-track figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px; color: oklch(98% 0 0); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; background: linear-gradient(to top, oklch(14% 0.01 255 / .8), transparent); }

/* ===== Giant kinetic stat (chars assemble) ===== */
.kstat { background: var(--ink-bg); padding-block: clamp(80px, 15vh, 180px); text-align: center; overflow: hidden; }
.kstat .eyebrow { color: oklch(80% 0 0); }
.kstat .eyebrow::before { background: oklch(80% 0 0 / .5); }
.kstat-big { font-family: var(--serif); font-weight: 700; color: oklch(98% 0 0); font-size: clamp(3rem, 12vw, 9rem); line-height: 1; letter-spacing: -0.04em; margin-top: 22px; }
.kstat-big .kw { display: inline-block; white-space: nowrap; }
.kstat-big .kc { display: inline-block; will-change: transform, opacity; }
.kstat-sub { color: oklch(76% 0 0); margin: 22px auto 0; max-width: 40ch; }

/* ===== Split-image reveal (two halves slide apart) ===== */
.split-reveal { position: relative; height: clamp(420px, 70vh, 640px); overflow: hidden; background: var(--ink-bg); display: grid; place-items: center; }
.sr-half { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; z-index: 2; will-change: transform; }
.sr-half img { position: absolute; top: 0; height: 100%; width: 100vw; max-width: none; object-fit: cover; filter: grayscale(0.2) contrast(1.05); }
.sr-left { left: 0; } .sr-left img { left: 0; }
.sr-right { right: 0; } .sr-right img { right: 0; }
.sr-center { position: relative; z-index: 1; text-align: center; color: oklch(98% 0 0); padding-inline: var(--gutter); }
.sr-center h2 { color: oklch(98% 0 0); font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.03em; }
.sr-center p { color: oklch(80% 0 0); margin: 14px auto 0; max-width: 44ch; }

/* ===== Skyline that rises as you scroll (big, non-pinned) ===== */
.skyline { background: var(--ink-bg); padding-block: clamp(80px, 14vh, 160px); overflow: hidden; }
.skyline-inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skyline-head { color: oklch(98% 0 0); font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.03em; max-width: 20ch; margin-bottom: clamp(28px, 5vh, 56px); }
.skyline-head em { font-style: italic; color: oklch(78% 0 0); }
.skyline-row { display: flex; align-items: flex-end; gap: clamp(6px, 1.1vw, 15px); height: clamp(200px, 32vh, 360px); }
.sky-tower { flex: 1; background: linear-gradient(var(--ink-bg2), oklch(32% 0 0)); border-radius: 3px 3px 0 0; transform-origin: bottom; position: relative; }
.sky-tower::after { content: ""; position: absolute; inset: 10px 5px 0; background-image: repeating-linear-gradient(to bottom, oklch(70% 0 0 / 0.22) 0 2px, transparent 2px 15px); opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .sky-tower { transform: none !important; } }

/* ===== Contact: underline draws under the big heading ===== */
.contact-big { position: relative; }
.contact-big::after { content: ""; display: block; height: 3px; width: min(300px, 55%); background: var(--ink-0); margin-top: 0.34em; transform: scaleX(0); transform-origin: left; animation: ulineIn 1.1s var(--ease) 0.35s forwards; }
@keyframes ulineIn { to { transform: scaleX(1); } }

/* ===== Blog: posts wipe in left-to-right ===== */
.posts.wipe .post { clip-path: inset(0 100% 0 0); opacity: 0; transition: clip-path .85s var(--ease), opacity .6s var(--ease); }
.posts.wipe .post.win { clip-path: inset(0 0 0 0); opacity: 1; }

/* ===== FAQ: progress rail draws down the side ===== */
.faq-wrap { position: relative; padding-left: 30px; }
.faq-rail { position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--line); overflow: hidden; }
.faq-rail span { position: absolute; inset: 0; background: var(--ink-0); transform: scaleY(0); transform-origin: top; }
@media (max-width: 600px) { .faq-wrap { padding-left: 0; } .faq-rail { display: none; } }
@media (prefers-reduced-motion: reduce) { .contact-big::after { transform: scaleX(1); animation: none; } .posts.wipe .post { clip-path: none; opacity: 1; } .faq-rail span { transform: scaleY(1); } }

/* ===== Blueprint: condominium line-drawing that draws, then words sprout from it ===== */
.blueprint { background: var(--ink-bg); }
.blueprint-pin { height: 100vh; min-height: 600px; display: grid; place-items: center; overflow: hidden; }
.bp-inner { position: relative; display: grid; place-items: center; padding-inline: var(--gutter); }
.bp-build { width: clamp(150px, 18vw, 250px); height: auto; overflow: visible; grid-area: 1 / 1; }
.bp-line { fill: none; stroke: oklch(88% 0 0); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bp-words { grid-area: 1 / 1; font-family: var(--serif); font-weight: 700; font-size: clamp(2.1rem, 5.6vw, 4.8rem); letter-spacing: -0.03em; color: oklch(98% 0 0); text-align: center; max-width: 16ch; line-height: 1.04; }
.bp-words span { display: inline-block; will-change: transform, opacity; }
/* mobile blueprint: building stays a clean soft backdrop behind the headline (static, can't break) */
@media (max-width: 900px) { .blueprint .bp-build { opacity: 0.5; } }

/* ===== Building-into-text morph (real condo photo collapses into letters) ===== */
.bmorph { background: var(--paper-1); padding-block: clamp(48px, 9vh, 110px); overflow: hidden; }
.bmorph-stage { position: relative; width: 100%; max-width: var(--maxw); margin-inline: auto; aspect-ratio: 12 / 5; border-radius: 4px; overflow: hidden; }
.bmorph-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2) contrast(1.06); will-change: transform; transform-origin: center; }
.bmorph-knockout { position: absolute; inset: 0; width: 100%; height: 100%; will-change: opacity; }
.bmorph-knockout .ko-rect { fill: var(--paper-1); }
.bmorph-cap { text-align: center; margin-top: 22px; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 700px) { .bmorph-stage { aspect-ratio: 12 / 5; } }
@media (max-width: 760px) {
  .hero-cine { align-items: center; padding: clamp(108px, 17vh, 150px) 0 clamp(64px, 12vh, 104px); }
  .hero-cine h1 { font-size: clamp(3rem, 13.5vw, 4.8rem); line-height: 0.92; margin: 0.2em 0 0.46em; }
  .hero-cine .lead { font-size: 1rem; max-width: 34ch; }
}

/* ===== Services: horizontal cinematic scroll (dark, full-screen panels) ===== */
.hshow { position: relative; background: var(--ink-bg); }
.hshow-pin { height: 100vh; min-height: 600px; overflow: hidden; display: flex; align-items: center; }
.htrack { display: flex; will-change: transform; }
.hpanel { flex: 0 0 100vw; height: 100vh; min-height: 600px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 80px); padding: clamp(96px, 13vh, 150px) var(--gutter); }
.hpanel-media { aspect-ratio: 5/6; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-2); background: var(--ink-bg2); }
.hpanel-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.18) contrast(1.05); }
.hpanel-copy .hp-idx { font-family: var(--serif); font-size: clamp(3rem, 8vw, 7rem); color: oklch(42% 0 0); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.hpanel-copy h3 { color: oklch(98% 0 0); font-size: clamp(1.9rem, 3.6vw, 3.2rem); margin: 14px 0 18px; letter-spacing: -0.025em; }
.hpanel-copy p { color: oklch(76% 0 0); max-width: 46ch; font-size: 1.05rem; }
.hpanel-copy .hp-eyebrow { color: oklch(80% 0 0); }
.hpanel-copy .hp-eyebrow::before { background: oklch(80% 0 0 / .5); }
.hshow-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 40px; height: 2px; background: oklch(40% 0 0); }
.hshow-progress span { display: block; height: 100%; width: 25%; background: oklch(98% 0 0); transform-origin: left; }
@media (max-width: 900px) {
  .hshow-pin { height: auto; min-height: 0; display: block; overflow: visible; }
  .htrack { flex-direction: column; }
  .hpanel { flex: 0 0 auto; height: auto; min-height: 0; grid-template-columns: 1fr; gap: 24px; padding: clamp(56px, 9vh, 90px) var(--gutter); }
  .hpanel-media { aspect-ratio: 4/3; }
  .hshow-progress { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hshow-pin { height: auto; min-height: 0; display: block; overflow: visible; }
  .htrack { flex-direction: column; }
  .hpanel { flex: 0 0 auto; height: auto; min-height: 0; }
  .hshow-progress { display: none; }
}
.engine-yr { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-3); }
.engine-readout { position: absolute; top: 0; left: 0; text-align: left; }
.engine-readout .n { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; color: var(--ink-0); }
.engine-readout .l { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }

@media (max-width: 900px) {
  .engine-grid { grid-template-columns: 1fr; gap: 26px; }
  .engine-pin { height: auto; min-height: 0; padding-block: clamp(64px, 10vh, 110px); }
  .cinema-meter .lab { max-width: 16ch; }
}

/* reduced motion: keep opacity, drop movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .12s !important; }
  .ri { opacity: 1; transform: none; filter: none; }
  .w { transform: none; }
  .clip { clip-path: none; }
  .mtrack { animation: none; }
  body::after { display: none; }
  .cinema-bg img { opacity: 1; }
  .cw > span { transform: none !important; opacity: 1 !important; }
}
