/* ==========================================================================
   Alex Idachaba — design system
   Palette: white (dominant) · blue #1674AB · black · grey #E0E7EB
   Type: Cabinet Grotesk (display) · Switzer (text)
   ========================================================================== */

@font-face{font-family:'Cabinet Grotesk';src:url('/assets/fonts/CabinetGrotesk-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Cabinet Grotesk';src:url('/assets/fonts/CabinetGrotesk-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Cabinet Grotesk';src:url('/assets/fonts/CabinetGrotesk-800.woff2') format('woff2');font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:'Switzer';src:url('/assets/fonts/Switzer-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Switzer';src:url('/assets/fonts/Switzer-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Switzer';src:url('/assets/fonts/Switzer-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}

:root {
  --white: #ffffff;
  --blue: #1674AB;
  --blue-deep: #115a85;
  --black: #000000;
  --ink-soft: #3a444e;
  --grey: #E0E7EB;
  --grey-deep: #cbd6dc;

  --section-y: clamp(32px, 4vw, 56px);
  --shadow: 0 0 0 1px var(--grey), 0 18px 40px -22px var(--grey-deep);
  --shadow-hover: 0 0 0 1px var(--grey-deep), 0 24px 48px -22px #a9b8c1;

  --font-display: 'Cabinet Grotesk', 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Switzer', 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --header-h: 76px;
  --gutter: clamp(20px, 4vw, 48px);
  --container: 1240px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a, button, [data-expand] { -webkit-tap-highlight-color: rgba(22, 116, 171, .14); }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--black); color: var(--white);
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 8px;
  font: 600 1rem/1 var(--font-text);
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--grey); }
.btn-white:active { transform: translateY(1px); }

/* ==========================================================================
   1. HEADER
   Motion answers the reader only: hairline + soft blur once the page scrolls,
   underline draw on hover, and the current section stays underlined.
   (The page's one unprompted motion moment is reserved for the Hero.)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--grey);
  box-shadow: 0 8px 24px -16px rgba(11, 15, 20, .18);
}
.nav {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  justify-self: start;
  font: 800 1.5rem/1 var(--font-display);
  letter-spacing: -.035em;
  text-decoration: none; color: var(--black);
  transition: color .25s var(--ease);
}
.brand:hover { color: var(--blue); }

.nav-menu { display: contents; }

.nav-links {
  grid-column: 2;
  display: flex; align-items: center; gap: clamp(20px, 3vw, 40px);
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  position: relative; display: inline-block;
  padding: 8px 0;
  font: 500 1rem/1 var(--font-text);
  color: var(--black); text-decoration: none;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--blue);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { grid-column: 3; justify-self: end; min-height: 44px; padding: 0 24px; }

.nav-toggle {
  display: none;
  justify-self: end; grid-column: 3;
  width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; border-radius: 12px; cursor: pointer; color: var(--black);
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s ease, top .35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.site-header.is-open .nav-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* Tablet & phone: menu becomes a drawer under the header */
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-toggle { display: block; grid-column: 2; }

  .nav-menu {
    display: flex; flex-direction: column; gap: 8px;
    position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 28px;
    background: var(--white);
    border-bottom: 1px solid var(--grey);
    box-shadow: 0 24px 40px -24px rgba(11, 15, 20, .25);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .site-header.is-open .nav-menu {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .nav-links { grid-column: auto; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--grey); }
  .nav-links a {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 58px; padding: 0;
    font: 700 1.5rem/1 var(--font-display); letter-spacing: -.01em;
  }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="true"] { color: var(--blue); }
  .nav-cta { grid-column: auto; justify-self: stretch; margin-top: 14px; min-height: 56px; font-size: 1.0625rem; }
}

/* ==========================================================================
   Shared section pieces
   ========================================================================== */
.section { padding-block: var(--section-y); }

.section-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.section-title {
  margin: 0;
  font: 800 clamp(2.125rem, 4.4vw, 3.5rem)/1.04 var(--font-display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.section-lead {
  margin: 18px 0 0; max-width: 56ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55;
  color: var(--ink-soft);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow .35s var(--ease);
}
.card:active { box-shadow: var(--shadow-hover); }
@media (hover: hover) { .card:hover { box-shadow: var(--shadow-hover); } }

.text-link {
  color: var(--blue); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
  transition: text-underline-offset .3s var(--ease), color .25s var(--ease);
}
.text-link:hover { color: var(--blue-deep); text-underline-offset: 7px; }

/* Expanders shared by Services and How I Work.
   Motion answers the reader: the panel opens by height, the label rolls, the plus turns into a minus. */
.more {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .5s var(--ease), visibility 0s linear .5s;
}
.more-inner { overflow: hidden; min-height: 0; }
.more-inner p { margin: 0; padding-top: 14px; color: var(--ink-soft); }
.is-open .more {
  grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows .5s var(--ease), visibility 0s;
}
html:not(.js) .more { grid-template-rows: 1fr; visibility: visible; }
html:not(.js) .toggle { display: none; }

[data-expand] { cursor: pointer; }

.toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; margin: 6px 0 0; padding: 0;
  background: none; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--font-text); color: var(--blue);
}
.roll { display: block; height: 1.25em; line-height: 1.25; overflow: hidden; }
.roll span { display: block; transition: transform .45s var(--ease); }
[data-expand]:active .roll span { transform: translateY(-100%); }
@media (hover: hover) { [data-expand]:hover .roll span { transform: translateY(-100%); } }
.toggle-icon { position: relative; width: 18px; height: 18px; flex: none; }
.toggle-icon::before, .toggle-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: currentColor; border-radius: 2px;
  transition: transform .4s var(--ease);
}
.toggle-icon::after { transform: rotate(90deg); }
.is-open .toggle-icon::after { transform: rotate(0deg); }

/* ==========================================================================
   2. HERO
   One unprompted motion moment for the whole page: the network draws itself in
   on load, then drifts. Everything else on the page responds to the reader.
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(580px, calc(100svh - var(--header-h)), 800px);
  background: var(--blue); color: var(--white);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) max(48%, calc(max(var(--gutter), (100% - var(--container)) / 2) + 640px)), #fff 100%);
  pointer-events: none;
}
.hero-net { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 3; padding-block: 72px; }
.hero-copy { max-width: 600px; }

.hero-title {
  margin: 0;
  font: 800 clamp(2.25rem, 4.6vw, 3.75rem)/1.02 var(--font-display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero-role {
  display: flex; align-items: flex-start; gap: 14px;
  margin: 26px 0 0;
  font: 600 1.125rem/1.3 var(--font-text); color: rgba(255, 255, 255, .95);
}
.hero-role::before { content: ""; width: 36px; height: 2px; margin-top: calc(.65em - 1px); background: currentColor; flex: none; }
.hero-lead {
  margin: 22px 0 0; max-width: 54ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6;
  color: var(--white);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-actions .btn { min-height: 54px; padding: 0 30px; }
.hero :focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }

.net-line {
  stroke: rgba(255, 255, 255, .62); stroke-width: 1.25; fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: net-draw 1.5s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.net-node { fill: var(--white); opacity: 0; animation: net-pop .6s var(--ease) forwards; animation-delay: var(--d, 0s); }
.net-halo { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1; opacity: 0; animation: net-pop .6s var(--ease) forwards; animation-delay: var(--d, 0s); }
.net-pulse { fill: var(--white); opacity: 0; }
.hero-net[data-static] .net-line { animation: none; stroke-dashoffset: 0; }
.hero-net[data-static] .net-node, .hero-net[data-static] .net-halo { animation: none; opacity: 1; }
@keyframes net-draw { to { stroke-dashoffset: 0; } }
@keyframes net-pop { to { opacity: 1; } }

@media (max-width: 900px) {
  .hero { align-items: flex-start; min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 52%, #fff 100%); }
  .hero-inner { padding-top: 56px; padding-bottom: 264px; }
}
@media (max-width: 640px) {
  .hero-role::before { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   3. SERVICES — cards expand in place
   ========================================================================== */
.svc-grid { display: grid; gap: 20px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.svc-grid > .svc { grid-column: span 2; }
.svc-grid > .svc:nth-child(4) { grid-column: 2 / span 2; }
.svc-grid > .svc:nth-child(5) { grid-column: 4 / span 2; }
.svc { position: relative; padding: 28px; }
.svc-icon {
  display: block; width: 48px; height: 48px; margin-bottom: 20px;
  background: var(--blue);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.svc-name {
  margin: 0;
  font: 700 clamp(1.25rem, 1.8vw, 1.5rem)/1.2 var(--font-display);
  letter-spacing: -.02em;
  transition: color .3s var(--ease);
}
.svc:active .svc-name { color: var(--blue); }
@media (hover: hover) { .svc:hover .svc-name { color: var(--blue); } }
.svc-summary { margin: 14px 0 0; color: var(--ink-soft); }

@media (max-width: 1023px) {
  .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svc-grid > .svc:nth-child(4) { grid-column: span 2; }
  .svc-grid > .svc:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-grid > .svc, .svc-grid > .svc:nth-child(4), .svc-grid > .svc:nth-child(5) { grid-column: auto; }
  .svc { padding: 24px; }
}

/* ==========================================================================
   4. WORK — one card per project, each a link to its case study
   To add a project, copy a .work card. The grid reflows on its own.
   ========================================================================== */
.work-grid {
  display: grid; gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
}
.work {
  display: flex; flex-direction: column; overflow: hidden;
  text-decoration: none; color: var(--black);
}
.work-media {
  aspect-ratio: 16 / 9; overflow: hidden;
  background: #f4f1ec; border-bottom: 1px solid var(--grey);
}
.work-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%;
  transition: object-position .9s var(--ease);
}
.work:hover .work-media img, .work:active .work-media img { object-position: 100% 50%; transition-duration: 7s; transition-timing-function: ease-in-out; }
.work:focus-visible .work-media img { object-position: 100% 50%; transition-duration: 7s; transition-timing-function: ease-in-out; }

.work-body { display: flex; flex-direction: column; flex: 1; padding: 28px 28px 30px; }
.work-name { margin: 0; font: 700 clamp(1.375rem, 2vw, 1.75rem)/1.2 var(--font-display); letter-spacing: -.025em; }
.work-summary { margin: 14px 0 22px; color: var(--ink-soft); max-width: 60ch; }
.work-link {
  margin-top: auto; align-self: flex-start;
  font-weight: 600; color: var(--black);
  transition: color .3s var(--ease);
}
.work:hover .work-link, .work:active .work-link, .work:focus-visible .work-link { color: var(--blue); }

@media (max-width: 640px) {
  .work-media { aspect-ratio: 4 / 3; }
  .work-body { padding: 22px 22px 26px; }
}

@media (hover: none) {
  .work.is-seen .work-media img { animation: work-pan 9s ease-in-out infinite alternate; }
  .work.is-seen .work-link { color: var(--blue); }
}
@keyframes work-pan { from { object-position: 0% 50%; } to { object-position: 100% 50%; } }

/* ==========================================================================
   5. HOW I WORK — numbered steps, expand in place
   ========================================================================== */
.how-layout {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}
.how-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.how-cta { margin-top: 32px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px;
  padding: 26px 30px;
}
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: 50%; border: 2px solid #7b909e;
  font: 800 1.25rem/1 var(--font-display); color: var(--blue);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.step:active .step-num { background: var(--blue); border-color: var(--blue); color: var(--white); }
@media (hover: hover) { .step:hover .step-num { background: var(--blue); border-color: var(--blue); color: var(--white); } }
.step-title {
  margin: 4px 0 0;
  font: 700 clamp(1.25rem, 1.9vw, 1.5rem)/1.2 var(--font-display); letter-spacing: -.02em;
}
.step-summary { margin: 10px 0 0; color: var(--ink-soft); max-width: 62ch; }

@media (max-width: 1023px) {
  .how-layout { grid-template-columns: 1fr; }
  .how-intro { position: static; }
}
@media (max-width: 640px) {
  .step { gap: 16px; padding: 22px 20px; }
  .step-num { width: 44px; height: 44px; font-size: 1.0625rem; }
}

/* ==========================================================================
   6. ABOUT — portrait unmasks once as it scrolls in
   ========================================================================== */
.about-grid {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 7vw, 104px);
}
.portrait { position: sticky; top: calc(var(--header-h) + 40px); margin: 0; }
.portrait::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  background: var(--blue); border-radius: 22px; z-index: 0;
}
.portrait-frame {
  position: relative; z-index: 1; overflow: hidden;
  border-radius: 22px; background: var(--grey);
  aspect-ratio: 1;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.js .portrait-frame { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.js .portrait-frame img { transform: scale(1.12); transition: transform 1.4s var(--ease); }
.js .portrait::before { opacity: 0; transform: translate(-18px, -18px); transition: opacity .6s var(--ease) .5s, transform .9s var(--ease) .5s; }
.js .portrait.is-in::before { opacity: 1; transform: none; }
.js .portrait.is-in .portrait-frame { clip-path: inset(0); }
.js .portrait.is-in .portrait-frame img { transform: none; }

.about-text .section-title { margin-bottom: 28px; }
.about-lead { margin: 0 0 8px; max-width: 58ch; font: 500 clamp(1.1875rem, 1.9vw, 1.4375rem)/1.5 var(--font-text); }
.about-text h3 {
  margin: 2.4em 0 .6em;
  font: 700 clamp(1.375rem, 2vw, 1.75rem)/1.2 var(--font-display); letter-spacing: -.025em;
}
.about-text p { max-width: 64ch; }
.about-text p:not(.about-lead) { margin: 0 0 1.1em; color: var(--ink-soft); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: relative; top: auto; width: min(100%, 340px); margin-right: 18px; margin-bottom: 18px; }
}

/* ==========================================================================
   7. CONTACT
   ========================================================================== */
.contact { background: var(--grey); padding-block: var(--section-y); }
.contact-grid {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 88px);
}
.contact .section-title { font-size: clamp(2.125rem, 4.6vw, 3.75rem); max-width: 18ch; }
.contact-copy p { margin: 24px 0 0; max-width: 56ch; font-size: 1.125rem; color: var(--ink-soft); }
.contact-copy .section-title + p { color: var(--black); font-size: clamp(1.125rem, 1.7vw, 1.3125rem); }

.contact-asks { margin: 18px 0 0; padding-left: 1.25em; max-width: 56ch; font-size: 1.125rem; color: var(--ink-soft); }
.contact-asks li { margin-top: 8px; }
.contact-panel > .c-channels { display: block; margin: 22px 0 -10px; }
.contact-panel { background: var(--white); border-radius: 20px; padding: clamp(24px, 3.4vw, 40px); }
.contact-btn { width: 100%; min-height: 58px; font-size: 1.125rem; }
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; }
.contact-list li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--grey); }
.c-label { font: 500 .9375rem/1.2 var(--font-text); color: var(--ink-soft); }
.c-link {
  justify-self: start; padding-block: 2px; overflow-wrap: anywhere;
  font: 700 clamp(1.0625rem, 1.6vw, 1.25rem)/1.35 var(--font-display); letter-spacing: -.01em;
  color: var(--black); text-decoration: none;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat;
  transition: background-size .45s var(--ease), color .25s var(--ease);
}
.c-link:hover, .c-link:focus-visible { background-size: 100% 2px; color: var(--blue); }
.c-note { margin: 14px 0 0; font-size: .9375rem; color: var(--ink-soft); }
.contact-list + .c-note { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--grey); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact .section-title { max-width: none; }
}

/* ==========================================================================
   Case-study pages: workflow image first, then the write-up
   ========================================================================== */
.cs { padding-block: clamp(24px, 3.5vw, 44px) var(--section-y); }
.cs-back { margin: 0 0 18px; font-size: .9375rem; }
.cs-back a { color: var(--ink-soft); text-decoration: none; font-weight: 500; transition: color .25s var(--ease); }
.cs-back a:hover { color: var(--blue); }

.cs-figure { margin: 0; }
.cs-scroll {
  overflow-x: auto; overscroll-behavior-x: contain;
  background: #f4f1ec; border-radius: var(--radius); box-shadow: var(--shadow);
}
.cs-scroll img {
  display: block; width: auto; max-width: none;
  height: clamp(360px, 40vw, 520px);
}
.cs-caption { margin: 12px 0 0; font-size: .9375rem; color: var(--ink-soft); }

.cs-head { margin-top: clamp(36px, 6vw, 72px); max-width: 880px; }
.cs-title {
  margin: 0;
  font: 800 clamp(2.25rem, 5vw, 4rem)/1.04 var(--font-display);
  letter-spacing: -.04em; text-wrap: balance;
}
.cs-lead { margin: 20px 0 0; max-width: 60ch; font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.55; }

.cs-body { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--grey); }
.cs-sec {
  display: grid; gap: 10px clamp(24px, 5vw, 80px);
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  padding-block: clamp(24px, 3.4vw, 40px);
  border-bottom: 1px solid var(--grey);
}
.cs-sec h2 { margin: 0; font: 700 clamp(1.25rem, 1.8vw, 1.5rem)/1.25 var(--font-display); letter-spacing: -.02em; }
.cs-sec p { margin: 0; max-width: 62ch; color: var(--ink-soft); }
.cs-sec ul { margin: 0; padding: 0; list-style: none; max-width: 62ch; display: grid; gap: 10px; }
.cs-sec li { position: relative; padding-left: 24px; color: var(--ink-soft); }
.cs-sec li::before {
  content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--blue);
}
.cs-sec--outcome p { font: 500 clamp(1.1875rem, 1.9vw, 1.4375rem)/1.5 var(--font-text); color: var(--black); }
.cs-sec .cs-tag {
  display: inline-block; margin: 18px 0 0; padding: 4px 12px;
  border: 1px solid var(--grey-deep); border-radius: 999px;
  font-size: .875rem; font-weight: 500; color: var(--ink-soft);
}

.cs-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 3.4vw, 40px);
  background: var(--grey); border-radius: 20px;
}
.cs-cta-text { margin: 0; font: 700 clamp(1.375rem, 2.4vw, 1.875rem)/1.2 var(--font-display); letter-spacing: -.025em; max-width: 24ch; }
.cs-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.btn-quiet { background: none; color: var(--black); padding: 0; min-height: 48px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.btn-quiet:hover { color: var(--blue-deep); }

@media (max-width: 900px) {
  .cs-sec { grid-template-columns: 1fr; }
  .cs-cta-actions .btn-primary { flex: 1 1 100%; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--white); border-top: 1px solid var(--grey); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 28px; }
.foot p { margin: 0; font-size: .9375rem; color: var(--ink-soft); }

/* ---------- 404 ---------- */
.nf { padding-block: clamp(72px, 14vw, 180px); }
.nf-title { margin: 0; font: 800 clamp(2.5rem, 6vw, 4.5rem)/1.02 var(--font-display); letter-spacing: -.04em; }
.nf-text { margin: 20px 0 0; max-width: 46ch; font-size: 1.1875rem; color: var(--ink-soft); }
.nf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-net, .nav-toggle { display: none; }
  .js .portrait-frame { clip-path: none; }
  .js .portrait-frame img { transform: none; }
  .js .portrait::before { opacity: 1; transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .net-line, .net-node, .net-halo { animation: none !important; stroke-dashoffset: 0; opacity: 1; }
  .work:hover .work-media img { transition-duration: .01ms !important; }
  .work.is-seen .work-media img { animation: none; }
  .js .portrait-frame { clip-path: none; }
  .js .portrait-frame img { transform: none; }
}
