/* Macworks 360. One stylesheet, six pages, no exceptions. */

:root {
  --paper:    #FFFFFF;
  --ink:      #0A0A0A;
  --soft-ink: #2a2a2a;
  --quiet:    #6e6e73;
  --rule:     #E5E5E5;
  --sand:     #EFEAE0;
  --warm:     #1d1d1f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
em, i { font-family: 'GFS Didot', serif; font-style: italic; font-weight: 400; }

/* ----- Accessibility primitives ----- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  background: var(--ink); color: var(--paper);
  padding: 14px 20px;
  z-index: 2000;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: top 0.2s ease-out;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}
.ai-announce a:focus-visible { outline-color: var(--paper); }

.deco-arrow { display: inline-block; }

/* ----- Navigation ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 56px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}
.nav-mark {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 4px;
  line-height: 1;
}
.nav-mark img {
  display: block;
  height: 45px;
  width: auto;
  /* Logo carries its own colour. No filter, just sit it on the paper. */
}
.nav-mark .three { font-weight: 300; opacity: 0.6; }

@media (max-width: 900px) {
  .nav-mark img { height: 37px; }
}

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  display: inline-block;
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.75;
  padding: 14px 2px;
  line-height: 1;
  transition: opacity 0.3s;
}
.nav-links a:hover,
.nav-links a:focus-visible { opacity: 1; }
.nav-links a.is-current,
.nav-links a[aria-current="page"] {
  opacity: 1;
  box-shadow: inset 0 -1px 0 var(--ink);
}

/* Nav appears over dark sections without a white plate */
.nav.is-light {
  background: rgba(29,29,31,0.9);
  border-bottom-color: rgba(255,255,255,0.1);
  color: var(--paper);
}

/* ----- Containers ----- */
.frame { max-width: 1600px; margin: 0 auto; }
.hr { max-width: 1600px; margin: 0 auto; border-top: 1px solid var(--rule); }

/* ----- Hero patterns ----- */
.hero {
  min-height: 100vh;
  padding: 200px 56px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  max-width: 1600px;
  margin: 0 auto;
}
.hero--single {
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 86vh;
  padding-top: 220px;
}
.hero--center {
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
  min-height: 80vh;
}

.hero-eyebrow {
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: 40px;
}

h1.hero-h {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin-bottom: 0;
}
h1.hero-h em { letter-spacing: -0.01em; }

.hero-side {
  max-width: 380px;
  justify-self: end;
  padding-bottom: 12px;
}
.hero-side p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--soft-ink);
  font-weight: 400;
  margin-bottom: 24px;
}
.hero-side .meta {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--quiet);
}

/* ----- Stage (image moment) ----- */
.stage {
  padding: 140px 56px;
  max-width: 1600px; margin: 0 auto;
  text-align: center;
}
.stage .index {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--quiet); margin-bottom: 60px;
}
.stage-art {
  width: 100%; max-width: 560px; aspect-ratio: 4/3;
  margin: 0 auto 60px;
  background: var(--sand);
  position: relative;
  overflow: hidden;
}
.stage-art::before {
  content: '';
  position: absolute;
  bottom: 22%; left: 20%; right: 20%; height: 3px;
  background: var(--ink);
}
.stage-art::after {
  content: '';
  position: absolute;
  bottom: 22%; left: 30%; right: 30%; top: 26%;
  background: linear-gradient(180deg, var(--warm) 0%, var(--warm) 88%, #888 88%, #888 100%);
}
.stage h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 26ch;
  margin: 0 auto 24px;
}
.stage .caption {
  font-size: 0.85rem; color: var(--quiet); max-width: 38ch; margin: 0 auto;
  line-height: 1.6;
}

/* ----- Editorial header & 3-up ----- */
.editorial {
  padding: 160px 56px;
  max-width: 1600px; margin: 0 auto;
}
.ed-header {
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px;
  margin-bottom: 100px;
}
.ed-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--quiet);
}
.ed-statement {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ed-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}
.ed-item .num {
  font-family: 'GFS Didot', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--quiet);
  margin-bottom: 24px;
}
.ed-item h3 {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 1.15rem; letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.ed-item p {
  font-size: 0.92rem; line-height: 1.65;
  color: var(--soft-ink);
}

/* ----- Long-form essay block (practice, intelligence, audit) ----- */
.essay {
  padding: 140px 56px;
  max-width: 1600px; margin: 0 auto;
}
.essay + .essay { padding-top: 0; }
.essay-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 100px;
  align-items: start;
}
.essay-row + .essay-row { margin-top: 120px; padding-top: 120px; border-top: 1px solid var(--rule); }

.essay-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: 16px;
}
.essay-num {
  font-family: 'GFS Didot', serif; font-style: italic;
  font-size: 1.1rem; color: var(--quiet);
  margin-bottom: 14px;
}
.essay h2 {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 14ch;
}
.essay-body p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--soft-ink);
  margin-bottom: 22px;
  max-width: 60ch;
}
.essay-body p:last-child { margin-bottom: 0; }
.essay-body p .lead-cap {
  font-family: 'GFS Didot', serif; font-style: italic;
  color: var(--ink);
}

/* ----- Service group (intelligence page) ----- */
.cluster {
  padding: 120px 56px;
  max-width: 1600px; margin: 0 auto;
}
.cluster + .cluster { padding-top: 0; }
.cluster-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  padding-top: 60px;
  margin-bottom: 60px;
}
.cluster-head .roman {
  font-family: 'GFS Didot', serif; font-style: italic;
  font-size: 1.4rem; color: var(--quiet);
}
.cluster-head h3 {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.svc h4 {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.svc h4 em { font-weight: 400; }
.svc p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--soft-ink);
}

/* ----- Dark "AI" panel ----- */
.ai-announce {
  background: var(--warm); color: var(--paper);
  padding: 180px 56px;
}
.ai-inner { max-width: 1600px; margin: 0 auto; }
.ai-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  opacity: 0.72; margin-bottom: 56px;
}
.ai-h {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.05; letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: 60px;
}
.ai-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.ai-grid p {
  font-size: 0.95rem; line-height: 1.7;
  opacity: 0.78;
}
.ai-grid p strong { color: var(--paper); font-weight: 500; opacity: 1; }
.ai-link {
  display: inline-block;
  margin-top: 56px;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 4px;
  color: var(--paper);
}
.ai-link:hover { border-bottom-color: var(--paper); }

/* ----- Engagement two-col ----- */
.engage {
  padding: 160px 56px;
  max-width: 1600px; margin: 0 auto;
}
.engage-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 100px;
  margin-top: 80px;
}
.engage-col h3 {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 1.4rem; letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.engage-col .label {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--quiet); margin-bottom: 28px;
}
.engage-col p {
  font-size: 0.95rem; line-height: 1.7; color: var(--soft-ink);
  margin-bottom: 28px;
}

/* ----- In-text quiet links ----- */
.read-on {
  font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
  display: inline-block;
}
.read-on:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); padding: 4px 8px; }

.next-quiet {
  display: block;
  margin-top: 80px;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--soft-ink);
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.next-quiet em { color: var(--ink); }
.next-quiet:hover em { border-bottom: 1px solid var(--ink); }

/* ----- Clients list ----- */
.clients {
  padding: 160px 56px;
  max-width: 1600px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px;
}
.clients h2 {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: -0.015em;
}
.clients-list {
  column-count: 2; column-gap: 60px;
}
.clients-list li {
  list-style: none;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  break-inside: avoid;
}
.clients-list li:last-child { border-bottom: 1px solid var(--rule); }

/* ----- Final closing ----- */
.final {
  padding: 200px 56px;
  max-width: 1600px; margin: 0 auto;
  text-align: center;
}
.final h2 {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.1; letter-spacing: -0.03em;
  max-width: 22ch; margin: 0 auto 60px;
}
.final .phone {
  font-family: 'GFS Didot', serif; font-style: italic;
  font-size: 1.6rem; display: inline-block; margin-bottom: 16px;
}
.final .quiet {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--quiet);
}

/* ----- Audit page sections ----- */
.audit-section {
  padding: 120px 56px;
  max-width: 1600px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 100px;
  align-items: start;
  border-top: 1px solid var(--rule);
}
.audit-section .label-col .roman {
  font-family: 'GFS Didot', serif; font-style: italic;
  font-size: 1.1rem; color: var(--quiet);
  margin-bottom: 14px;
}
.audit-section .label-col h3 {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.audit-list {
  list-style: none;
  display: grid;
  gap: 20px;
}
.audit-list li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--soft-ink);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.audit-list li:last-child { border-bottom: 0; }
.audit-list li strong {
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.audit-fee {
  font-family: 'GFS Didot', serif; font-style: italic;
  font-size: 1.4rem;
  color: var(--ink);
}
.audit-fee + p {
  font-size: 0.92rem;
  color: var(--quiet);
  margin-top: 16px;
  max-width: 50ch;
  line-height: 1.7;
}

/* ----- Studio (about) page ----- */
.portrait-row {
  padding: 120px 56px;
  max-width: 1600px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  border-top: 1px solid var(--rule);
}
.portrait {
  aspect-ratio: 4/5;
  background: var(--sand);
  position: relative;
  overflow: hidden;
}
.portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(29,29,31,0.18) 0%, rgba(29,29,31,0) 55%),
    linear-gradient(180deg, var(--sand) 0%, #e0d8c8 100%);
}
.portrait-meta {
  margin-top: 28px;
}
.portrait-meta .role {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: 14px;
}
.portrait-meta h3 {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.portrait-meta p {
  font-size: 0.95rem; line-height: 1.7; color: var(--soft-ink);
  max-width: 38ch;
}

/* ----- Conversation page ----- */
.conversation {
  min-height: 100vh;
  padding: 220px 56px 120px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.conversation h1 {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.1; letter-spacing: -0.03em;
  max-width: 22ch;
  margin: 0 auto 100px;
}
.conversation .phone {
  font-family: 'GFS Didot', serif; font-style: italic;
  font-size: 2rem;
  display: inline-block;
  margin-bottom: 20px;
}
.conversation .address {
  font-family: 'GFS Didot', serif; font-style: italic;
  font-size: 1.3rem;
  color: var(--soft-ink);
  margin-bottom: 80px;
  line-height: 1.5;
}
.conversation .quiet-note {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--quiet);
  border-top: 1px solid var(--rule);
  padding-top: 40px;
  max-width: 40ch;
  margin: 0 auto;
  line-height: 1.8;
}

/* ----- Footer ----- */
footer {
  border-top: 1px solid var(--rule);
  padding: 50px 56px;
  max-width: 1600px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  font-size: 0.82rem;
}
footer .col-label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--quiet); margin-bottom: 14px;
}
footer p, footer a { color: var(--soft-ink); line-height: 1.7; }

/* ----- Scroll-reveal & entrance animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger child reveals inside any .reveal-stagger container */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.95s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-stagger.is-visible > *      { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.36s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.48s; }

/* Hero entrance: auto-fires on load, no observer needed */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero > *,
.conversation > * {
  animation: fadeUp 1.3s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
.hero > *:nth-child(2)         { animation-delay: 0.18s; }
.conversation > *:nth-child(1) { animation-delay: 0.05s; }
.conversation > *:nth-child(2) { animation-delay: 0.25s; }
.conversation > *:nth-child(3) { animation-delay: 0.40s; }
.conversation > *:nth-child(4) { animation-delay: 0.55s; }

/* Honour user's motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .hero > *,
  .conversation > * { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----- Responsive: tablet & narrow desktop ----- */
@media (max-width: 900px) {
  /* Nav (single row, compact) */
  .nav { padding: 18px 24px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.7rem; padding: 12px 2px; }
  .nav-mark img { height: 28px; }

  /* Horizontal padding everywhere */
  .hero, .editorial, .engage, .clients, .final, footer,
  .stage, .essay, .cluster, .audit-section, .portrait-row,
  .conversation, .ai-announce { padding-left: 24px; padding-right: 24px; }

  /* Vertical padding: pull every section in close. Desktop uses 120-200px
     of vertical breathing room. On phones that reads as empty space, not
     pacing. The new floor is 60-100px depending on section weight. */
  .hero            { grid-template-columns: 1fr; padding-top: 130px; padding-bottom: 80px; gap: 40px; min-height: auto; }
  .hero-side       { justify-self: start; max-width: 100%; }
  .stage           { padding-top: 80px; padding-bottom: 80px; }
  .editorial       { padding-top: 80px; padding-bottom: 80px; }
  .engage          { padding-top: 80px; padding-bottom: 80px; }
  .clients         { padding-top: 80px; padding-bottom: 80px; }
  .final           { padding-top: 100px; padding-bottom: 100px; }
  .essay           { padding-top: 80px; padding-bottom: 80px; }
  .essay-row + .essay-row { margin-top: 60px; padding-top: 60px; }
  .cluster         { padding-top: 60px; padding-bottom: 60px; }
  .cluster-head    { padding-top: 40px; margin-bottom: 40px; }
  .audit-section   { padding-top: 60px; padding-bottom: 60px; }
  .portrait-row    { padding-top: 60px; padding-bottom: 60px; }
  .conversation    { padding-top: 140px; padding-bottom: 80px; min-height: auto; }
  .ai-announce     { padding-top: 100px; padding-bottom: 100px; }
  footer           { padding-top: 40px; padding-bottom: 40px; }

  /* Grid collapse */
  .ed-header, .ai-grid, .engage-grid, .clients,
  .essay-row, .cluster-head, .audit-section, .portrait-row {
    grid-template-columns: 1fr; gap: 40px;
  }
  .ed-grid, .cluster-grid { grid-template-columns: 1fr; gap: 40px; }
  .clients-list { column-count: 1; }
  footer { grid-template-columns: 1fr; }

  /* Conversation page: large vertical rhythm shrunk for phone hand-hold */
  .conversation h1 { margin-bottom: 60px; }
  .conversation .phone { font-size: 1.7rem; padding: 8px 16px; }
  .conversation .quiet-note { padding-top: 32px; }

  /* Final closer headlines: keep the type generous but stop them from
     wrapping into thin towers on a 375px viewport. */
  .final h2 { max-width: 18ch; margin-bottom: 40px; }

  /* Portraits: a 4/5 placeholder at full width is taller than a fold,
     so cap them and centre. */
  .portrait { aspect-ratio: 4/5; max-width: 320px; }
  .portrait-meta { margin-top: 20px; }

  /* Essay paragraphs: bump body type up to 16px to read comfortably on
     phone without hand-holding the reader to zoom. */
  .essay-body p { font-size: 1rem; max-width: none; }

  /* Reveal animation: smaller travel distance feels lighter on phone. */
  .reveal { transform: translateY(16px); }
  .reveal-stagger > * { transform: translateY(12px); }
}

/* ----- Responsive: phones (≤600px) ----- */
@media (max-width: 600px) {
  /* Two-row nav: logo on row 1, links spread across row 2.
     This solves the 4-link overflow on 375px-wide phones without
     introducing a hamburger drawer (which would need JS + focus
     trap and break the no-JS fallback). */
  .nav {
    flex-wrap: wrap;
    padding: 12px 18px 6px;
    gap: 4px 0;
  }
  .nav-mark img { height: 35px; }
  .nav-mark { padding: 4px 2px; }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }
  .nav-links a {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    padding: 10px 2px;
  }
  .nav-links a.is-current,
  .nav-links a[aria-current="page"] {
    box-shadow: inset 0 -1px 0 var(--ink);
  }

  /* Skip link sits below the now-taller nav */
  .skip-link:focus { top: 12px; left: 12px; }

  /* Tighter section paddings still on the smallest screens */
  .hero            { padding-top: 120px; padding-bottom: 60px; gap: 32px; }
  .stage           { padding-top: 64px; padding-bottom: 64px; }
  .editorial       { padding-top: 64px; padding-bottom: 64px; }
  .engage          { padding-top: 64px; padding-bottom: 64px; }
  .clients         { padding-top: 64px; padding-bottom: 64px; }
  .final           { padding-top: 80px; padding-bottom: 80px; }
  .essay           { padding-top: 64px; padding-bottom: 64px; }
  .essay-row + .essay-row { margin-top: 48px; padding-top: 48px; }
  .cluster         { padding-top: 48px; padding-bottom: 48px; }
  .cluster-head    { padding-top: 32px; margin-bottom: 32px; }
  .audit-section   { padding-top: 48px; padding-bottom: 48px; }
  .portrait-row    { padding-top: 48px; padding-bottom: 48px; }
  .conversation    { padding-top: 120px; padding-bottom: 64px; }
  .ai-announce     { padding-top: 80px; padding-bottom: 80px; }
  footer           { padding-top: 36px; padding-bottom: 36px; gap: 28px; }

  /* Smaller side gutter on phones */
  .hero, .editorial, .engage, .clients, .final, footer,
  .stage, .essay, .cluster, .audit-section, .portrait-row,
  .conversation, .ai-announce { padding-left: 20px; padding-right: 20px; }

  /* AI announce eyebrow + headline tighter spacing */
  .ai-eyebrow { margin-bottom: 32px; }
  .ai-h { margin-bottom: 32px; }
  .ai-grid { margin-top: 56px; padding-top: 40px; }
  .ai-link { margin-top: 36px; }

  /* Stage art smaller so it doesn't dominate fold-1 on a phone */
  .stage .index { margin-bottom: 36px; }
  .stage-art { margin-bottom: 36px; }
  .stage h2 { margin-bottom: 16px; }

  /* Editorial 3-up: stack items closer */
  .ed-grid { gap: 32px; }
  .cluster-grid { gap: 32px; }

  /* Audit-list: each item gets its own breathing room */
  .audit-list { gap: 16px; }
  .audit-list li { padding-bottom: 16px; font-size: 0.95rem; }

  /* Conversation page typographic compaction */
  .conversation h1 { margin-bottom: 48px; }
  .conversation .phone { font-size: 1.5rem; }
  .conversation .quiet-note { padding-top: 28px; max-width: none; }

  /* Final closer: stop the headline from being awkward on narrow */
  .final h2 { max-width: 16ch; }

  /* Sub-rules in dark panel headline a touch quieter on phone */
  .ai-h { line-height: 1.1; }

  /* Body text rhythm */
  .ed-item p, .svc p, .engage-col p, .clients-list li {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  /* Hero side meta sits closer to the headline */
  .hero-side p { font-size: 0.95rem; margin-bottom: 18px; }
  .hero-side .meta { font-size: 0.7rem; }

  /* Portrait reduced again on phone */
  .portrait { max-width: 100%; aspect-ratio: 4/5; }

  /* Mockup-padding sanity on the very smallest viewports */
  .next-quiet { margin-top: 56px; padding-top: 24px; font-size: 0.95rem; }
}

/* ----- Responsive: very narrow phones (≤360px) ----- */
@media (max-width: 360px) {
  .nav-links a { font-size: 0.58rem; padding: 10px 1px; }
  .nav-mark img { height: 32px; }
}

/* =========================================================================
   Chat widget. Quiet, editorial, ink-on-paper. Injected by site.js at load.
   ========================================================================= */
.chat-launch {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.25s ease-out;
  animation: chatLaunchEnter 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 1.1s backwards;
}
.chat-launch::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--paper);
  flex-shrink: 0;
}
.chat-launch:hover,
.chat-launch:focus-visible { opacity: 0.88; }
.chat-launch:focus-visible { outline: 2px solid var(--paper); outline-offset: -4px; }
.chat-launch[aria-expanded="true"] { display: none; }

@keyframes chatLaunchEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-launch { animation: none; }
}

.chat-panel {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 96px);
  background: var(--paper);
  border: 1px solid var(--rule);
  z-index: 1500;
  display: none;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 1px 0 var(--rule);
}
.chat-panel.is-open { display: flex; }

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}
.chat-close {
  background: none;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink);
  font-family: 'GFS Didot', serif;
}
.chat-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-msg {
  font-size: 0.92rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.chat-msg.user {
  align-self: flex-end;
  max-width: 85%;
  background: var(--sand);
  padding: 10px 14px;
  color: var(--ink);
}
.chat-msg.bot {
  align-self: flex-start;
  max-width: 92%;
  color: var(--soft-ink);
}
.chat-msg.bot em,
.chat-msg.bot i {
  font-family: 'GFS Didot', serif;
  font-style: italic;
}
.chat-msg.bot strong { color: var(--ink); font-weight: 500; }
.chat-msg.bot a {
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.chat-msg.bot a:hover { border-bottom-color: var(--ink); }
.chat-typing {
  font-family: 'GFS Didot', serif;
  font-style: italic;
  color: var(--quiet);
  font-size: 0.9rem;
  align-self: flex-start;
}

.chat-form {
  border-top: 1px solid var(--rule);
  padding: 12px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 10px 6px;
  background: transparent;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.chat-input::placeholder {
  font-family: 'GFS Didot', serif;
  font-style: italic;
  color: var(--quiet);
}
.chat-input:focus { outline: none; }
.chat-send {
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 500;
}
.chat-send:hover,
.chat-send:focus-visible { opacity: 0.85; }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 600px) {
  .chat-launch {
    bottom: 14px;
    right: 14px;
    padding: 14px 18px;
    font-size: 0.68rem;
    gap: 10px;
  }
  .chat-launch::before {
    width: 7px;
    height: 7px;
  }
  .chat-panel {
    bottom: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 75vh;
    max-height: 75vh;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-launch { transition: none; }
}
