/* =============================================================
   ALANA GUSEYNOVA — Strategy Consulting  (v2 · modern sans)
   ============================================================= */

:root {
  /* Color */
  --paper: #f4f0e6;
  --paper-2: #ece6d8;
  --ink: #14110d;
  --ink-2: #2a2520;
  --muted: #7a7166;
  --rule: #d8cfbd;
  --rule-soft: rgba(20, 17, 13, 0.08);
  --accent: #c4a04a;
  --accent-deep: #8e6f24;
  --accent-soft: #e8d9a8;

  /* Type — all modern sans */
  --sans: "Geist", -apple-system, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Spacing */
  --pad-x: clamp(24px, 5vw, 96px);
  --section-y: clamp(80px, 12vh, 160px);
  --max: 1440px;
}

[data-theme="ink"] {
  --paper: #0e0d0a;
  --paper-2: #161410;
  --ink: #f1ecdf;
  --ink-2: #d9d2c0;
  --muted: #8c8474;
  --rule: #2c2920;
  --rule-soft: rgba(241, 236, 223, 0.10);
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; }

/* Subtle paper grain (very low opacity) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0 0.05  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
[data-theme="ink"] body::before { mix-blend-mode: screen; opacity: 0.14; }

/* ------------- Typography primitives ------------- */
.eyebrow, .mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.h-display {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(48px, 7.6vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.h-section {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.035em;
}

.h-sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.accent { color: var(--accent-deep); font-weight: 500; }
[data-theme="ink"] .accent { color: var(--accent); }

.lede {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ------------- Layout ------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  position: relative;
  z-index: 2;
}
section { position: relative; z-index: 2; }
.section-pad { padding-block: var(--section-y); }
.divider { height: 1px; background: var(--rule); width: 100%; }

/* ------------- Buttons ------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  background: var(--ink);
  color: var(--paper);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-deep); }
.btn .arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.btn:hover .arrow { transform: rotate(-45deg); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--ink);
  transition: color .2s, border-color .2s, gap .25s;
}
.btn-ghost:hover { color: var(--accent-deep); border-color: var(--accent); gap: 14px; }

/* ------------- Nav ------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 18px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; gap: 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.nav-links a { transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 880px) { .nav-links { display: none; } }

/* ------------- Hero ------------- */
.hero {
  padding-block: clamp(48px, 9vh, 100px) clamp(72px, 11vh, 160px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: end;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
}

.hero-meta {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 48px;
}
.hero-meta .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-meta .rule {
  flex: 1; height: 1px; background: var(--rule);
  max-width: 240px;
}

.hero-title { margin-bottom: 32px; }
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 4px; /* prevents descender clipping */
}
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: revealUp 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.10s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.20s; }
.hero-title .line:nth-child(4) > span { animation-delay: 0.30s; }

@keyframes revealUp { to { transform: translateY(0); } }

.hero-lede {
  margin-top: 18px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeIn 1s ease 0.55s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-actions {
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 1s ease 0.75s forwards;
}

.hero-trust {
  margin-top: 88px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1s ease 0.95s forwards;
}
.hero-trust .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.trust-logos {
  display: flex; gap: 40px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.015em;
  flex-wrap: wrap;
}
.trust-logos span {
  opacity: 0.55;
  transition: opacity .25s, color .25s;
  cursor: default;
}
.trust-logos span:hover { opacity: 1; color: var(--accent-deep); }

/* Hero photo */
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.4s forwards;
}
.hero-photo .slot-wrap {
  position: absolute; inset: 0;
  background: var(--paper-2);
  overflow: hidden;
}
.hero-photo image-slot { width: 100%; height: 100%; }
.hero-photo .caption {
  position: absolute;
  left: 0; bottom: -36px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-photo .badge {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
  font-weight: 500;
}
.hero-photo .badge .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-stat {
  position: absolute;
  right: -28px; bottom: 36px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 150px;
  box-shadow: 0 18px 40px -24px rgba(0,0,0,0.18);
}
.hero-stat .n {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.hero-stat .l {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 980px) {
  .hero-photo { margin-inline: auto; max-width: 380px; }
  .hero-stat { right: 0; }
}

/* ------------- Marquee ------------- */
.whisper {
  border-block: 1px solid var(--rule);
  overflow: hidden;
  padding-block: 30px;
  background: var(--paper);
}
.whisper-track {
  display: flex; gap: 64px;
  animation: scroll 38s linear infinite;
  white-space: nowrap;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 64px);
  color: var(--ink);
  letter-spacing: -0.035em;
  width: max-content;
}
.whisper-track .grp { display: flex; align-items: center; gap: 64px; }
.whisper-track .star {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.whisper-track .acc { color: var(--accent-deep); font-weight: 400; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ------------- Section header ------------- */
.sec-head {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: clamp(28px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(56px, 7vh, 100px);
}
.sec-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  align-self: start;
  padding-top: 14px;
  text-transform: uppercase;
}
.sec-head h2 { text-wrap: balance; }
.sec-head .right { color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }

@media (max-width: 880px) {
  .sec-head { grid-template-columns: 1fr; gap: 18px; }
  .sec-head .num { padding-top: 0; }
}

/* ------------- Services ------------- */
.services { border-top: 1px solid var(--rule); }
.svc-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.3fr;
  gap: clamp(20px, 4vw, 80px);
  padding-block: clamp(40px, 6vh, 72px);
  border-bottom: 1px solid var(--rule);
  align-items: start;
  position: relative;
  transition: background .4s ease;
}
.svc-row:hover { background: color-mix(in oklab, var(--accent) 5%, transparent); }
.svc-row .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  padding-top: 10px;
  text-transform: uppercase;
}
.svc-row:hover .idx { color: var(--accent-deep); }
.svc-title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  text-wrap: balance;
}
.svc-row:hover .svc-title { transform: translateX(8px); }
.svc-desc {
  display: block;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: -0.005em;
  font-weight: 400;
  line-height: 1.5;
  max-width: 32ch;
}
.svc-list {
  list-style: none;
  display: grid;
  gap: 16px;
  padding-top: 6px;
}
.svc-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
}
.svc-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  margin-top: 9px;
  transition: background .25s;
}
.svc-row:hover .svc-list li::before { background: var(--accent); }

@media (max-width: 980px) {
  .svc-row { grid-template-columns: 1fr; gap: 20px; }
  .svc-row .idx { padding-top: 0; }
}

/* ------------- Outcomes ------------- */
.outcomes {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 56px);
  margin-top: 60px;
}
.outcome-card {
  display: flex; flex-direction: column;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  position: relative;
}
.outcome-card .num {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(64px, 7.5vw, 110px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.outcome-card .num .accent { font-weight: 400; }
.outcome-card h4 {
  font-family: var(--sans);
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.outcome-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 32ch;
}

@media (max-width: 880px) { .outcomes-grid { grid-template-columns: 1fr; } }

/* ------------- Cases ------------- */
.cases { border-top: 1px solid var(--rule); }
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3vw, 56px);
  margin-top: 40px;
}
.case-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(28px, 3vw, 48px);
  display: flex; flex-direction: column;
  gap: 28px;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
.case-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.case-card .head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
}
.case-card .case-num {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 56px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.case-card .case-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.case-card .io { display: flex; flex-direction: column; gap: 8px; }
.case-card .io-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
}
[data-theme="ink"] .case-card .io-label { color: var(--accent); }
.case-card .io-text {
  font-family: var(--sans);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: pretty;
}
.case-card .io-text.body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.case-card .divline {
  height: 1px; background: var(--rule);
  position: relative;
}
.case-card .divline::after {
  content: ""; position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 10px; background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.cta-band {
  margin-top: clamp(48px, 6vh, 80px);
  padding-block: clamp(56px, 8vh, 100px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.cta-band h3 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.cta-band .arrow-anim {
  display: inline-block;
  font-size: 28px;
  color: var(--accent-deep);
  animation: arrowDown 2s ease-in-out infinite;
}
@keyframes arrowDown { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

@media (max-width: 980px) { .case-grid { grid-template-columns: 1fr; } }

/* ------------- Scenarios (dark) ------------- */
.scenarios {
  background: #0e0d0a;
  color: #f1ecdf;
  --rule: rgba(241, 236, 223, 0.14);
  --ink: #f1ecdf;
  --ink-2: #c9c1ad;
  --muted: #8a8273;
  position: relative;
}
.scenarios .sec-head .num { color: var(--muted); }
.scenarios .sec-head h2 { color: #f1ecdf; }
.scenarios .sec-head .right { color: var(--ink-2); }

.scen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
}
.scen-card {
  border-bottom: 1px solid var(--rule);
  padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column;
  gap: 28px;
  position: relative;
  transition: background .4s;
  min-height: 360px;
}
.scen-card:nth-child(odd) { border-right: 1px solid var(--rule); }
.scen-card:hover { background: rgba(196, 160, 74, 0.06); }
.scen-card .quote-mark {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 80px;
  line-height: 0.6;
  color: var(--accent);
  height: 32px;
  letter-spacing: -0.05em;
}
.scen-card .text {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.03em;
  text-wrap: pretty;
  color: #f1ecdf;
}
.scen-card .text .acc { color: var(--accent-soft); font-weight: 400; }
.scen-card .text .inner-q {
  display: block;
  color: var(--accent-soft);
  margin: 10px 0;
  font-weight: 400;
}
.scen-card .signoff {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-weight: 500;
}

@media (max-width: 880px) {
  .scen-grid { grid-template-columns: 1fr; }
  .scen-card:nth-child(odd) { border-right: none; }
}

/* ------------- Founder ------------- */
.founder { border-top: 1px solid var(--rule); }
.founder-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 5vw, 100px);
  align-items: start;
  margin-bottom: clamp(72px, 9vh, 140px);
}
.founder-hero .photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
}
.founder-hero .photo image-slot { width: 100%; height: 100%; }
.founder-hero .photo .label {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--paper);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  font-weight: 500;
}
.founder-hero .pull .h-sub {
  margin-bottom: 32px;
  text-wrap: pretty;
}
.founder-hero .pull .sig {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 36px;
}
.founder-hero .pull .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(40px, 5vw, 100px);
  border-top: 1px solid var(--rule);
  padding-top: 60px;
}
.timeline > h3 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(28px, 2.8vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  position: sticky;
  top: 100px;
  align-self: start;
  text-wrap: balance;
}
.tl-list { display: flex; flex-direction: column; }
.tl-item {
  display: grid;
  grid-template-columns: 130px 1fr 2fr;
  gap: 32px;
  padding: clamp(28px, 3vh, 40px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: padding-left .4s;
}
.tl-item:hover { padding-left: 12px; }
.tl-item:last-child { border-bottom: none; }
.tl-year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-top: 6px;
  font-weight: 500;
  text-transform: uppercase;
}
.tl-co {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.tl-desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 56ch;
}

@media (max-width: 980px) {
  .founder-hero { grid-template-columns: 1fr; }
  .founder-hero .photo { max-width: 420px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline > h3 { position: static; }
  .tl-item { grid-template-columns: 90px 1fr; gap: 14px; }
  .tl-item .tl-year { grid-row: 1; }
  .tl-item .tl-co { grid-column: 1 / -1; grid-row: 2; }
  .tl-item .tl-desc { grid-column: 1 / -1; grid-row: 3; }
}

/* Credentials */
.creds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 64px;
}
.creds .cred {
  background: var(--paper);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 200px;
  transition: background .3s;
}
.creds .cred:hover { background: var(--paper-2); }
.creds .cred .ix {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
  font-weight: 500;
}
[data-theme="ink"] .creds .cred .ix { color: var(--accent); }
.creds .cred .t {
  font-family: var(--sans);
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: auto;
  text-wrap: pretty;
}

@media (max-width: 880px) { .creds { grid-template-columns: repeat(2, 1fr); } }

/* ------------- Footer ------------- */
.footer {
  background: #0e0d0a;
  color: #f1ecdf;
  --ink: #f1ecdf;
  --muted: #8a8273;
  --rule: rgba(241, 236, 223, 0.14);
  padding-block: clamp(80px, 12vh, 160px);
  position: relative;
}
.footer .eyebrow { color: var(--muted); margin-bottom: 28px; }
.footer .big {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(80px, 14vw, 240px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: #f1ecdf;
  margin-bottom: 64px;
}
.footer .big .acc { color: var(--accent); font-weight: 400; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 3vw, 56px);
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.footer-grid .col h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  font-weight: 500;
}
.footer-grid .col a, .footer-grid .col p {
  display: block;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #f1ecdf;
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-grid .col a:hover { color: var(--accent); }
.footer-grid .cta { align-self: end; text-align: right; }
.footer-grid .cta h5 { text-align: right; }
.footer-grid .cta .btn {
  background: var(--accent);
  color: #14110d;
}
.footer-grid .cta .btn:hover { background: #f1ecdf; }
.footer-grid .cta .btn .arrow { background: #14110d; color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .cta { text-align: left; grid-column: 1 / -1; }
  .footer-grid .cta h5 { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ------------- Reveal-on-scroll  +  failsafe ------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* If JS observer ever fails: show after 2s anyway */
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }
.reveal { animation: revealFallback 0s linear 2.4s forwards; }

/* Image slot defaults */
image-slot {
  --is-bg: var(--paper-2);
  --is-fg: var(--muted);
  --is-border: transparent;
}

/* Accent variants via data-attr */
[data-accent="gold"]   { --accent: #c4a04a; --accent-deep: #8e6f24; --accent-soft: #e8d9a8; }
[data-accent="rust"]   { --accent: #c75c2b; --accent-deep: #8e3614; --accent-soft: #f0c6a8; }
[data-accent="forest"] { --accent: #3f7a5a; --accent-deep: #224d39; --accent-soft: #b8d4c4; }
[data-accent="cobalt"] { --accent: #3d5cc8; --accent-deep: #1e2e7a; --accent-soft: #bfcaf2; }
[data-accent="ink"]    { --accent: #14110d; --accent-deep: #14110d; --accent-soft: #d8cfbd; }

/* Star icon helper */
.star-icon { display: inline-block; }

/* ============================================================
   Booking modal
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal[hidden] { display: none; }
.modal.open { opacity: 1; pointer-events: auto; }

body.modal-open { overflow: hidden; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 13, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="ink"] .modal-overlay { background: rgba(0, 0, 0, 0.72); }

.modal-card {
  position: relative;
  z-index: 1;
  background: var(--paper);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--rule);
  transform: translateY(24px) scale(0.985);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 32px 80px -32px rgba(0,0,0,0.35);
}
.modal.open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s, background .2s, transform .25s;
}
.modal-close:hover {
  color: var(--ink);
  background: var(--paper-2);
  transform: rotate(90deg);
}

.modal-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.modal-eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.modal-title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
  text-wrap: balance;
}

.modal-lede {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 46ch;
}

.book-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 540px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

.form-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.form-label .req {
  color: var(--accent-deep);
  margin-left: 2px;
}
[data-theme="ink"] .form-label .req { color: var(--accent); }
.form-label .optional {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
  font-weight: 400;
}

.form-input {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0 10px;
  outline: none;
  letter-spacing: -0.005em;
  width: 100%;
  border-radius: 0;
  transition: border-color .2s;
}
.form-input:focus {
  border-bottom-color: var(--accent);
}
.form-input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--paper) inset;
  transition: background-color 9999s ease-in-out 0s;
}
.form-textarea {
  resize: vertical;
  min-height: 96px;
  padding-top: 10px;
  font-family: var(--sans);
}
.form-input[aria-invalid="true"] { border-bottom-color: #c75c2b; }

.form-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.form-actions .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.form-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
  min-height: 14px;
}
.form-status.ok  { color: var(--accent-deep); }
.form-status.err { color: #c75c2b; }
[data-theme="ink"] .form-status.ok { color: var(--accent); }

.form-fine {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 540px) {
  .modal { padding: 0; align-items: stretch; }
  .modal-card {
    max-height: 100vh;
    height: 100vh;
    padding: 64px 24px 32px;
    border: 0;
  }
  .modal-close { top: 12px; right: 12px; }
}
