/* ============================================================
   PAGES — v2: full-width layouts, no portrait, no numbered
   hierarchy, premium interactions.
   ============================================================ */

/* ---------- mobile nav ---------- */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); cursor: pointer;
}
.nav-contact { color: var(--ink-3); }
.nav-mobile { display: none; }
@media (max-width: 820px){
  .nav { display: none !important; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile {
    display: flex; flex-direction: column; gap: var(--space-2);
    padding: var(--space-5) var(--space-5) var(--space-6);
    border-top: 1px solid var(--line); background: var(--paper);
  }
  .nav-mobile .nav-link { text-align: left; font-size: 19px; padding: 8px 0; font-family: var(--font-serif); }
  .nav-mobile-foot { margin-top: var(--space-3); }
}

/* ---------- creative: system map ---------- */
.system-map { display: block; height: auto; }
.system-map line { stroke: var(--line-strong); stroke-width: 1; }
.system-map .sm-node { fill: var(--ink-4); }
.system-map .sm-node.accent { fill: var(--accent); }
@media (prefers-reduced-motion: no-preference){
  .system-map line { stroke-dasharray: 280; stroke-dashoffset: 280; }
  .system-map.in line { animation: smDraw 820ms var(--ease) forwards; animation-delay: calc(var(--d) * 70ms); }
  .system-map .sm-node { opacity: 0; transform: scale(0.3); transform-origin: center; transform-box: fill-box; }
  .system-map.in .sm-node { animation: smPop 420ms var(--ease) forwards; animation-delay: calc(var(--d) * 55ms + 320ms); }
}
@keyframes smDraw { to { stroke-dashoffset: 0; } }
@keyframes smPop { to { opacity: 1; transform: scale(1); } }

/* ---------- creative: fine grid field ---------- */
.field-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 10%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 90% at 80% 10%, #000 0%, transparent 70%);
  opacity: 0.55;
}

/* ---------- hero (full width, no portrait) ---------- */
.hero { position: relative; padding: var(--space-10) 0 var(--space-9); overflow: hidden; }
.hero .container { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-7); }
.hero-full { position: relative; z-index: 1; flex: 1; max-width: 780px; }
.hero-accent { position: relative; z-index: 0; flex: none; padding-top: var(--space-7); }

.hero-headline {
  font-family: var(--font-serif); font-weight: 400; font-size: var(--text-display);
  line-height: var(--lh-tight); letter-spacing: var(--ls-display); color: var(--ink);
  margin: var(--space-5) 0 var(--space-5); text-wrap: balance;
}
.hero-headline em { font-style: italic; color: var(--accent); }
.hero-lead {
  font-family: var(--font-serif); font-size: var(--text-lead); line-height: var(--lh-relaxed);
  color: var(--ink-2); margin: 0 0 var(--space-4); max-width: 52ch;
}
.hero-role {
  font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-3);
  letter-spacing: 0.01em; margin: 0 0 var(--space-6); display: inline-flex;
  align-items: center; gap: 10px;
}
.hero-role::before {
  content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block;
}
.hero .actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

@media (max-width: 880px){
  .hero { padding: var(--space-8) 0 var(--space-7); }
  .hero-accent { display: none; }
  .hero-headline { font-size: clamp(2.5rem, 8vw, var(--text-display)); }
}

/* ---------- section-intro-full (no eyebrow column, full width) ---------- */
.section-intro-full { margin-bottom: var(--space-7); }
.section-intro-full .eyebrow { margin-bottom: var(--space-4); display: block; }
.section-intro-full .si-statement {
  font-family: var(--font-serif); font-weight: 400; font-size: var(--text-h1); line-height: var(--lh-snug);
  letter-spacing: var(--ls-head); color: var(--ink); margin: 0; max-width: 22ch; text-wrap: balance;
}
.section-intro-full .si-sub {
  font-size: var(--text-body); line-height: var(--lh-body); color: var(--ink-3);
  margin: var(--space-4) 0 0; max-width: 60ch;
}

/* ---------- section statement (full width, no eyebrow) ---------- */
.section-statement {
  font-family: var(--font-serif); font-weight: 400; font-size: var(--text-h1); line-height: var(--lh-snug);
  letter-spacing: var(--ls-head); color: var(--ink); margin: 0 0 var(--space-4); text-wrap: balance;
}
.section-sub {
  font-size: var(--text-body); line-height: var(--lh-body); color: var(--ink-3);
  margin: 0 0 var(--space-7); max-width: 64ch;
}

/* surface band */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- philosophy grid (no numbers) ---------- */
.think-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-8);
  margin-top: var(--space-7); border-top: 1px solid var(--line-strong);
}
@media (max-width: 760px){ .think-grid { grid-template-columns: 1fr; } }
.think-item {
  padding: var(--space-6) 0; border-bottom: 1px solid var(--line);
  transition: background 300ms var(--ease);
}
.think-item:hover { background: var(--surface); }
.think-item h3 {
  font-family: var(--font-serif); font-weight: 500; font-size: var(--text-h3);
  color: var(--ink); margin: 0 0 10px;
  transition: color var(--dur-fast) var(--ease);
}
.think-item:hover h3 { color: var(--accent); }
.think-item p { margin: 0; font-size: var(--text-sm); line-height: 1.62; color: var(--ink-3); max-width: 52ch; }

/* ---------- capabilities (pillars, no numbers) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-7); margin-top: var(--space-7); }
@media (max-width: 880px){ .pillars { grid-template-columns: 1fr; gap: var(--space-6); } }
.pillar {
  border-top: 2px solid var(--accent); padding-top: var(--space-5);
  transition: transform 400ms var(--ease);
}
.pillar:hover { transform: translateY(-3px); }
.pillar h3 {
  font-family: var(--font-serif); font-weight: 500; font-size: var(--text-h3); color: var(--ink);
  margin: 0 0 var(--space-3); line-height: 1.25;
}
.pillar p { margin: 0; font-size: var(--text-sm); line-height: 1.62; color: var(--ink-3); }

/* ---------- problem areas (no numbers) ---------- */
.help-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-8); margin-top: var(--space-7);
  border-top: 1px solid var(--line-strong);
}
@media (max-width: 760px){ .help-grid { grid-template-columns: 1fr; } }
.help-item {
  padding: var(--space-5) 0; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 7px;
  transition: background 300ms var(--ease);
}
.help-item:hover { background: var(--surface); }
.help-item .hi-title { display: flex; align-items: baseline; gap: 12px; }
.help-item .hi-mark { color: var(--accent); font-family: var(--font-mono); font-size: 13px; line-height: 1;
  transition: transform var(--dur-fast) var(--ease); }
.help-item:hover .hi-mark { transform: rotate(90deg); }
.help-item h3 {
  font-family: var(--font-serif); font-weight: 500; font-size: var(--text-h4); color: var(--ink); margin: 0;
  transition: color var(--dur-fast) var(--ease);
}
.help-item:hover h3 { color: var(--accent); }
.help-item p { margin: 0; font-size: var(--text-sm); color: var(--ink-3); line-height: 1.5; max-width: 52ch; padding-left: 26px; }

/* ---------- working model (no numbers) ---------- */
.model-roles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-7);
  border-top: 1px solid var(--line); padding-top: var(--space-6);
}
@media (max-width: 880px){ .model-roles { grid-template-columns: 1fr; gap: var(--space-5); } }
.model-role {
  transition: transform 400ms var(--ease);
}
.model-role:hover { transform: translateY(-3px); }
.model-role h3 {
  font-family: var(--font-sans); font-weight: 600; font-size: var(--text-h4); color: var(--ink);
  margin: 0 0 8px; border-left: 2px solid var(--accent); padding-left: var(--space-4);
}
.model-role p { margin: 0; font-size: var(--text-sm); color: var(--ink-3); line-height: 1.6; }
.model-quote {
  font-family: var(--font-serif); font-style: italic; font-size: var(--text-h3); line-height: 1.45;
  color: var(--ink); margin: var(--space-8) 0 0; padding-left: var(--space-5);
  border-left: 2px solid var(--accent); max-width: 40ch;
}

/* ---------- contact ---------- */
.contact { scroll-margin-top: 100px; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-8); align-items: start; }
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; gap: var(--space-6); } }
.contact-h {
  font-family: var(--font-serif); font-weight: 400; font-size: var(--text-h1); line-height: var(--lh-snug);
  letter-spacing: var(--ls-head); color: var(--ink); margin: var(--space-4) 0 var(--space-5); max-width: 18ch; text-wrap: balance;
}
.contact-lead {
  font-family: var(--font-serif); font-size: var(--text-lead); line-height: var(--lh-relaxed);
  color: var(--ink-2); margin: 0; max-width: 44ch;
}
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper);
  padding: var(--space-6);
  transition: border-color var(--dur-base) var(--ease);
}
.contact-card:hover { border-color: var(--line-strong); }
.contact-link {
  display: flex; align-items: center; gap: 14px; padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.contact-link:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-link:first-child { padding-top: 0; }
.contact-link:hover { color: var(--accent); transform: translateX(4px); }
.contact-link svg { width: 18px; height: 18px; color: var(--ink-3); flex: none;
  transition: color var(--dur-fast) var(--ease); }
.contact-link:hover svg { color: var(--accent); }
.contact-link .cl-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-4); }
.contact-link .cl-v { font-size: 15px; }
.contact-link .cl-text { display: flex; flex-direction: column; gap: 3px; }

/* ---------- page title (work, writing) ---------- */
.page-title {
  font-family: var(--font-serif); font-weight: 400; font-size: var(--text-h1);
  letter-spacing: var(--ls-head); line-height: var(--lh-snug); color: var(--ink);
  margin: var(--space-4) 0 0; max-width: 20ch; text-wrap: balance;
}
.page-lead {
  font-size: var(--text-body); line-height: var(--lh-body); color: var(--ink-3);
  margin: var(--space-5) 0 0; max-width: 60ch;
}

/* ---------- writing page ---------- */
.writing-hero { padding-bottom: var(--space-9); }
.writing-body { max-width: 60ch; margin-top: var(--space-6); }
.writing-body p {
  font-size: var(--text-body); line-height: var(--lh-body); color: var(--ink-2);
  margin: 0 0 var(--space-4);
}
.writing-body p:last-child { margin-bottom: 0; }
.writing-body strong { color: var(--ink); font-weight: 500; }
.writing-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: var(--space-6); }
.writing-topics { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 7px 15px;
  background: var(--surface); transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- about ---------- */
.about-text { max-width: 64ch; margin-top: var(--space-5); }
.about-text p {
  font-size: var(--text-body); line-height: var(--lh-body); color: var(--ink-2);
  margin: 0 0 var(--space-4);
}
.about-text .big {
  font-family: var(--font-serif); font-size: var(--text-h3); line-height: 1.45;
  color: var(--ink); margin-bottom: var(--space-5); font-weight: 400;
}
.energise { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-5); }

/* values (no number column) */
.values {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-8);
  border-top: 1px solid var(--line-strong); margin-top: var(--space-7);
}
@media (max-width: 760px){ .values { grid-template-columns: 1fr; } }
.value {
  padding: var(--space-6) 0; border-bottom: 1px solid var(--line);
  transition: background 300ms var(--ease);
}
.value:hover { background: var(--surface); }
.value h4 {
  font-family: var(--font-serif); font-weight: 500; font-size: var(--text-h3);
  color: var(--ink); margin: 0 0 8px;
  transition: color var(--dur-fast) var(--ease);
}
.value:hover h4 { color: var(--accent); }
.value p { margin: 0; font-size: var(--text-sm); color: var(--ink-3); line-height: 1.6; max-width: 52ch; }

/* ---------- case study back link ---------- */
.cs-back { margin-bottom: var(--space-6); display: flex; width: fit-content; padding-left: 0; }

/* generic outbound link button as anchor */
a.btn { text-decoration: none; }

/* ---------- premium interactions ---------- */

/* Smooth underline grow on nav links */
.nav-link::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px;
  height: 1.5px; background: var(--accent);
  transition: left var(--dur-base) var(--ease), right var(--dur-base) var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after { left: 0; right: 0; }

/* Button hover lift */
.btn-primary { transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px -4px rgba(52,80,61,0.25); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }

/* Ghost button arrow nudge */
.btn-ghost svg { transition: transform var(--dur-fast) var(--ease); }
.btn-ghost:hover svg { transform: translate(3px, -3px); }

/* Work row hover accent line */
.work-row { position: relative; }
.work-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--accent); transition: width var(--dur-base) var(--ease);
}
.work-row:hover::before { width: 3px; }
.work-row:hover { padding-left: var(--space-4); }
.work-row { transition: background var(--dur-base) var(--ease), padding var(--dur-base) var(--ease); }

/* Stat figure count-up effect placeholder (already animates via Reveal) */
.stat .figure {
  transition: color var(--dur-base) var(--ease);
}
.stat:hover .figure { color: var(--accent); }

/* Next link hover */
.next-link { transition: padding var(--dur-base) var(--ease); }
.next-link:hover { padding-left: var(--space-4); }

/* Brand hover */
.brand { transition: color var(--dur-fast) var(--ease); }
.brand:hover { color: var(--accent); }

/* Focus rings */
.btn:focus-visible,
.nav-link:focus-visible,
.contact-link:focus-visible,
.work-row:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
