/* ==========================================================================
   Trace Design — site styles
   Edit the tokens in :root to change colours, fonts, and spacing site-wide.
   ========================================================================== */

:root {
  /* Colour */
  --paper: #f4f2ed;
  --paper-2: #ebe8e1;
  --paper-3: #e0dcd3;
  --ink: #141413;
  --ink-2: #57554f;
  --ink-3: #8a8780;
  --line: rgba(20, 20, 19, 0.12);
  --line-strong: rgba(20, 20, 19, 0.3);
  --accent: #2643e8;
  --accent-deep: #1a32bd;
  --accent-soft: rgba(38, 67, 232, 0.12);
  --wire: rgba(20, 20, 19, 0.55);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section-alt { background: var(--paper-2); }

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-lead {
  font-size: 1.1rem;
  max-width: 36em;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; }

h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.1em;
}

p { color: var(--ink-2); }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  max-width: 34em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
}
.eyebrow span {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
  transition: color 0.2s;
}
.text-link:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  line-height: 1;
  border: 1px solid var(--ink);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn:active { transform: translateY(1px); }
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-sm { padding: 0.7rem 1.1rem; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(244, 242, 237, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-mark { width: 28px; height: 28px; color: var(--ink); flex: none; }
.brand-name span { color: var(--ink-3); font-weight: 500; }

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.brand-parent {
  padding-left: 0.85rem;
  border-left: 1px solid var(--line-strong);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.2s;
}
.brand-parent:hover { color: var(--accent); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a:not(.btn) {
  position: relative;
  padding-block: 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav a.is-active { color: var(--ink); }
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 6vw, 5rem);
}
/* Drafting grid, faded toward the edges */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 68% 38%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 65% at 68% 38%, #000 15%, transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: min(76vh, 760px);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
}
.hero .lead { margin-bottom: 2.25rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-art { position: relative; }
.hero-visual {
  width: 100%;
  height: auto;
  color: var(--wire);
}
.hero-visual .trace { color: var(--accent); stroke-width: 2; }

/* Capabilities strip */
.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
}
.capabilities li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.capabilities li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Self-drawing illustration
   -------------------------------------------------------------------------- */
.draw .d1 { --dd: 0s; }
.draw .d2 { --dd: 0.3s; }
.draw .d3 { --dd: 0.6s; }
.draw .d4 { --dd: 0.85s; }
.draw .trace { --dd: 1.2s; }

.draw .d1 > *, .draw .d2 > *, .draw .d3 > *, .draw .d4 > *, .draw .trace > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.3s var(--ease) var(--dd) forwards;
}
.draw .trace > path { animation-duration: 1.8s; }

.draw .fill-accent {
  fill: var(--accent);
  fill-opacity: 0;
  stroke: var(--accent);
  animation:
    draw 1.3s var(--ease) var(--dd) forwards,
    fill-in 0.6s ease calc(var(--dd) + 1s) forwards;
}
.draw .fill-paper {
  fill: var(--paper);
  fill-opacity: 0;
  animation:
    draw 1.3s var(--ease) var(--dd) forwards,
    fill-in 0.5s ease calc(var(--dd) + 0.4s) forwards;
}
.draw .trace-dot {
  fill: var(--accent);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: pop 0.5s var(--ease) 2.9s forwards, pulse 2.4s ease-in-out 3.4s infinite;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: 1; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.5); }
}

/* --------------------------------------------------------------------------
   Services cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--accent);
}
.card-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-3);
}
.card > p { flex: 1; }

.checks li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 0.6rem;
  height: 1px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Featured work
   -------------------------------------------------------------------------- */
.work-card { display: block; }
.work-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0a0a;
  overflow: hidden;
  transition: border-color 0.3s;
}
.work-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-visual { border-color: var(--line-strong); }

/* Layered screenshots on a dark stage, faded at the foot so the panels sit cleanly */
.showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 22%, rgba(10, 10, 10, 0) 48%);
}
.work-visual .sc-panel {
  z-index: 2;
  inset: auto;
  height: auto;
  object-fit: fill;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  background: #0a0a0a;
}
.work-visual .sc-left { left: 4%; bottom: 4%; width: 19%; }
.work-visual .sc-right { right: 4%; bottom: 4%; width: 36%; }
.work-card:hover .sc-base { transform: scale(1.02); }
.work-card:hover .sc-left { transform: translateY(-6px); }
.work-card:hover .sc-right { transform: translateY(-10px); }

.deliverables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.deliverable {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}
.deliverable-meta {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}
.deliverable h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.deliverable p:not(.deliverable-meta) { font-size: 0.95rem; }
.work-note { margin-top: 2.5rem; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.step {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.step p { font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
  align-items: start;
}
.about-copy h2 { margin-bottom: 1.5rem; }
.about-copy p + p { margin-top: 1.1rem; }

.parent-note {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
  max-width: 34em;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}
.parent-note-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.parent-note p:not(.parent-note-label) { font-size: 0.95rem; }
.parent-note .text-link { font-size: 0.95rem; font-weight: 500; }

.principles li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--accent);
}
.principles h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.principles p { font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem 5rem;
  align-items: start;
}
.contact-copy h2 { margin-bottom: 1.5rem; }
.contact-details {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-details .email {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
  transition: color 0.2s;
}
.contact-details .email:hover { color: var(--accent); }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.field label { font-size: 0.85rem; font-weight: 500; }
.field label span { color: var(--ink-3); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2357554f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}
.form-status { font-size: 0.9rem; }
.form-status.is-error { color: #b42318; }
.form-status.is-success { color: var(--accent-deep); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 4rem 2rem;
}
.site-footer p { color: rgba(244, 242, 237, 0.65); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(244, 242, 237, 0.14);
}
.footer-brand .brand { margin-bottom: 1rem; color: var(--paper); }
.footer-brand .brand-mark { color: var(--paper); }
.footer-brand .brand-name span { color: rgba(244, 242, 237, 0.55); }
.footer-brand p { max-width: 28em; }
.footer-brand p + p { margin-top: 0.5rem; }
.footer-brand a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 242, 237, 0.55);
}
.footer-col li + li { margin-top: 0.5rem; }
.footer-col a {
  color: rgba(244, 242, 237, 0.8);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(244, 242, 237, 0.55);
}
.footer-bottom p { color: inherit; }
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--paper); }

/* --------------------------------------------------------------------------
   Scroll reveal and hero entrance
   -------------------------------------------------------------------------- */
/* Content is visible by default. script.js adds .is-pending only to elements
   below the fold, then removes it as they scroll into view. */
.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(18px); }
.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }

/* Hero entrance */
.hero-copy > *,
.hero-art { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-art { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-art { max-width: 620px; }
  .section-head,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .brand-parent { display: none; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem var(--gutter);
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    overflow-y: auto;
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header {
    background: var(--paper);
    border-bottom-color: var(--line);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .site-nav a:not(.btn) {
    padding-block: 0.6rem;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .site-nav .nav-cta { margin-top: 1.5rem; }
  .site-nav .nav-cta .btn { font-size: 1rem; padding: 0.95rem 1.5rem; }

  .work-visual { aspect-ratio: 4 / 3; }
  .showcase .sc-base { object-position: 20% center; }
  .deliverables { grid-template-columns: 1fr; }
  .work-visual .sc-left { display: none; }
  .work-visual .sc-right { width: 56%; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal.is-pending { opacity: 1; transform: none; }
  .draw .d1 > *, .draw .d2 > *, .draw .d3 > *, .draw .d4 > *, .draw .trace > * {
    stroke-dashoffset: 0;
  }
  .draw .fill-accent, .draw .fill-paper { fill-opacity: 1; }
  .draw .trace-dot { transform: scale(1); }
}
