@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/geist-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist Pixel"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geist-pixel-square.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geist-mono-latin.woff2") format("woff2"); }

:root {
  --bg: #101010;
  --bg-deep: #080808;
  --line: #212121;
  --line-strong: #3b3d45;
  --text: #f3f3f3;
  --muted: #9c9c9c;
  --live: #98ff38;
  --lead: #c1c1c1;
  --dim: #6b6e78;
  --press: #ffffff;
  --display: "Bricolage Grotesque", "Geist", "Inter", system-ui, sans-serif;
  --w-display: 500;
  --pixel: "Geist Pixel", "Geist Mono", ui-monospace, Consolas, monospace;
  --sans: "Geist", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 60rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* type roles: display and heading steps are far apart, label/ui/body steps are small but each has one job */
  --t-body: 1.0625rem;
  --t-ui: 0.9375rem;
  --t-label: 0.875rem;
  --lh-body: 1.6;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scrollbar-color: var(--line-strong) var(--bg); accent-color: var(--live); caret-color: var(--live); }
::selection { background: var(--live); color: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
p, dd { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 30; padding: 10px 16px; background: var(--press); color: var(--bg); border-radius: 9999px; font-size: var(--t-ui); transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--live); outline-offset: 4px; border-radius: 4px; }
main:focus { outline: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* headings that decode from data. Hidden until JS starts the effect. */
.js [data-scramble] { visibility: hidden; }
/* section headings wipe in from the left, like a line being set; the page heading and hero keep the decode */
.js [data-wipe] { opacity: 0; }
.js [data-wipe].in { opacity: 1; animation: wipe .8s var(--ease) both; }
@keyframes wipe { from { clip-path: inset(-0.2em 100% -0.25em 0); } to { clip-path: inset(-0.2em -0.1em -0.25em 0); } }
/* if main.js never marks the page as ready (html.js-ok), hidden content still appears */
.js:not(.js-ok) [data-scramble], .js:not(.js-ok) [data-wipe], .js:not(.js-ok) .reveal, .js:not(.js-ok) .hero p, .js:not(.js-ok) .hero .actions { animation: failsafe-show .01s 1.2s forwards; }
@keyframes failsafe-show { to { visibility: visible; opacity: 1; transform: none; clip-path: none; } }
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; text-align: center; }

/* scroll progress hairline (only where scroll-driven animation exists) */
.progress { display: none; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; height: calc(4rem + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.nav.solid { background: var(--bg); border-bottom-color: var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand::after { content: "."; color: var(--live); }
.brand { font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.nav ul { list-style: none; padding: 0; display: flex; gap: clamp(4px, 3vw, 28px); font-size: var(--t-ui); color: var(--muted); }
.nav ul a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; transition: color .2s; }
@media (max-width: 400px) { .nav ul { gap: 0; font-size: 0.875rem; } .nav ul a { padding-inline: 5px; } }
@media (max-width: 700px) { .nav { background: var(--bg); border-bottom-color: var(--line); } }
@media (max-width: 360px) { .nav ul a { padding-inline: 3px; } .brand { margin-right: 8px; } }
.nav ul a::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 8px; height: 1px; background: var(--live); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease); }
.nav ul a:hover { color: var(--text); }
.nav ul a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav ul a[aria-current="page"] { color: var(--text); }
.nav ul a[aria-current="page"]::after { transform: scaleX(1); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; height: 2.75rem; padding: 0 1.5rem;
  border-radius: 9999px; font-size: var(--t-label); font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
  white-space: nowrap; transition: transform .15s, translate .25s var(--ease), background .2s, border-color .2s;
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--press); color: var(--bg); }
.btn-solid:hover { background: var(--live); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--live); }

/* hero */
.hero { position: relative; min-height: 80vh; min-height: 80svh; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.12) 55%, #000 88%), linear-gradient(180deg, transparent 0, transparent calc(4rem + env(safe-area-inset-top)), #000 calc(7rem + env(safe-area-inset-top)));
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.12) 55%, #000 88%), linear-gradient(180deg, transparent 0, transparent calc(4rem + env(safe-area-inset-top)), #000 calc(7rem + env(safe-area-inset-top)));
          mask-composite: intersect;
}
@media (max-width: 700px) {
  .hero canvas { -webkit-mask-composite: source-over; mask-composite: add; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 38%, rgba(0,0,0,.09) 58%, rgba(0,0,0,.09) 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 38%, rgba(0,0,0,.09) 58%, rgba(0,0,0,.09) 100%); }
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(40px, 8vh, 80px); padding-top: 6rem; }
/* on wide screens the text block starts about 38% down, clear of the sun, instead of sitting at the very bottom */
@media (min-width: 701px) { .hero { align-items: flex-start; } .hero .wrap { padding-top: max(7rem, 34svh); } }
/* the character art stays loud on the right and fades out behind the text column and the buttons */
.hero .wrap::before { content: ""; position: absolute; z-index: -1; inset: 1rem calc(-1 * var(--gutter)) 0 calc(-1 * var(--gutter)); pointer-events: none;
  background: radial-gradient(ellipse 62% 78% at 28% 60%, rgba(16,16,16,.88) 0%, rgba(16,16,16,.7) 48%, rgba(16,16,16,0) 100%); }
.hero .btn-ghost { border-color: var(--muted); }
h1, h2, h3 { text-wrap: balance; }
h1, h2, h3 { font-family: var(--display); }
h1, h2 { font-weight: var(--w-display); letter-spacing: -0.022em; line-height: 1.04; }
.accent { color: var(--live); }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 21ch; }
/* page headings are set in the pixel face: it is drawn from the same grid as the character art, and it has one weight and wants no tracking */
h1 { font-family: var(--pixel); font-weight: 400; letter-spacing: 0; line-height: 1.12; }
.hero p { margin-top: 24px; max-width: 38ch; color: var(--lead); font-size: 1.1875rem; line-height: 1.5; }
.hero .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.js .hero p, .js .hero .actions { opacity: 0; animation: rise .6s var(--ease) forwards; }
.js .hero p { animation-delay: .1s; }
.js .hero .actions { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* sections */
section.block { padding-block: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); scroll-margin-top: 2rem; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
/* numbered section label above a home heading: a short name for the section, in the data face */
.index { margin-bottom: 20px; font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--muted); }
.lede { margin-top: 24px; color: var(--muted); max-width: 46ch; }

/* inner pages: the first block clears the fixed nav and opens with a smaller h1 than the home hero */
section.block.page-head { position: relative; padding-top: clamp(6.5rem, 11vw, 9rem); }
.page-head > .wrap { position: relative; }
.page-drift { position: absolute; inset: 0 0 auto 0; width: 100%; height: min(100%, 22rem); pointer-events: none; opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 55%, transparent 100%), linear-gradient(180deg, transparent 0, transparent calc(4rem + env(safe-area-inset-top)), #000 calc(7rem + env(safe-area-inset-top))); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 55%, transparent 100%), linear-gradient(180deg, transparent 0, transparent calc(4rem + env(safe-area-inset-top)), #000 calc(7rem + env(safe-area-inset-top))); mask-composite: intersect; }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); max-width: none; }
.block .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.block .actions.page-end { margin-top: clamp(48px, 7vw, 88px); }
.block > .wrap > .link { margin-top: clamp(28px, 4vw, 44px); }

/* work list */
.rows { margin-top: clamp(32px, 4.5vw, 52px); border-top: 1px solid var(--line); }
.row {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-block: clamp(22px, 3vw, 36px); border-bottom: 1px solid var(--line);
}
.row h2, .row h3 { font-weight: var(--w-display); font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -0.015em; line-height: 1.1; }
.row .meta { font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0; color: var(--muted); text-align: right; }
.row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--live); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
@media (hover: hover) and (min-width: 900px) {
  .row h2, .row h3 { transition: transform .5s var(--ease); }
  .row:hover h2, .row:focus-visible h2, .row:hover h3, .row:focus-visible h3 { transform: translateX(16px); }
  .row:hover::after, .row:focus-visible::after { transform: scaleX(1); }
}
@media (max-width: 899px) { .row { flex-wrap: wrap; } }

/* design work: four covers from Behance. The 7/5 split swaps on the second row, and images crop to the row height */
.gallery { margin-top: clamp(32px, 4.5vw, 52px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 40px) clamp(14px, 2vw, 24px); }
.shot { position: relative; display: block; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 808 / 632; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-deep); transition: border-color .3s; }
.shot-cap { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.shot-cap h3 { font-weight: var(--w-display); font-size: clamp(1.05rem, 1.7vw, 1.3rem); letter-spacing: -0.015em; line-height: 1.1; }
.shot-cap .meta { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); transition: color .2s; }
.shot:hover img, .shot:focus-visible img { border-color: var(--live); }
.shot:hover .meta, .shot:focus-visible .meta { color: var(--text); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
/* the home strip: the same four covers as a quiet row under the So-m Work teaser */
.strip { margin-top: clamp(32px, 4.5vw, 52px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); }
.strip a { display: block; }
.strip-cap { display: block; padding-top: 10px; font-size: var(--t-ui); line-height: 1.3; color: var(--muted); transition: color .2s; }
.strip a:hover .strip-cap, .strip a:focus-visible .strip-cap { color: var(--text); }
.strip img { display: block; width: 100%; height: auto; aspect-ratio: 808 / 632; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; transition: border-color .3s; }
.strip a:hover img, .strip a:focus-visible img { border-color: var(--live); }

/* somwork */
.feature-title { margin-top: clamp(32px, 4.5vw, 52px); font-weight: var(--w-display); font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.022em; line-height: 1.04; }
.soon { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); }
.feature { margin-top: clamp(32px, 4.5vw, 52px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: stretch; }
.feature .copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.feature .stage { position: relative; min-height: 380px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-deep); }
.feature .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .feature .stage.reveal { opacity: 1; transform: none; clip-path: inset(0 0 100% 0 round 8px); transition: clip-path 1.1s var(--ease); }
.js .feature .stage.reveal.in { clip-path: inset(0 0 0 0 round 8px); }
.link { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-ui); border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; width: fit-content; transition: border-color .2s, gap .35s var(--ease); }
.link:hover { border-color: var(--live); gap: 18px; }
.link span[aria-hidden] { color: var(--live); }
@media (pointer: coarse) { .link, .mail { min-height: 44px; } .link { align-items: center; } .elsewhere a, .form-status a { padding-block: 13px; margin-block: -13px; } }
/* touch has no hover, so a press gets the same lime edge hover gives a pointer */
/* on phones the strip is two across, with the third cover spanning both, so each is large enough to read */
@media (max-width: 700px) { .strip { grid-template-columns: 1fr 1fr; } .strip a:nth-child(3) { grid-column: 1 / -1; } }
@media (hover: none) { .shot:active img, .strip a:active img { border-color: var(--live); } .btn-ghost:active { border-color: var(--live); } }
@media (max-width: 899px) { .feature { grid-template-columns: 1fr; } .feature .stage { min-height: 260px; order: -1; } }

/* services */
.items { margin-top: clamp(32px, 4.5vw, 52px); border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: baseline; padding-block: clamp(22px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.item h2, .item h3 { font-weight: var(--w-display); font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -0.015em; line-height: 1.1; }
.item { position: relative; }
.item p { color: var(--lead); font-size: 1.1875rem; line-height: 1.5; max-width: 46ch; }
/* the Services page has only four rows, so they get more scale and more air than the Home index */
.item-body { display: grid; gap: 12px; }
.item .tags { font-family: var(--mono); font-size: var(--t-label); line-height: 1.4; color: var(--muted); max-width: none; }
.items-lg .item { padding-block: clamp(32px, 4.5vw, 60px); }
.items-lg .item h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.item-link { position: relative; }
.item-link::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--live); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
@media (hover: hover) and (min-width: 900px) {
  .item-link h3 { transition: transform .5s var(--ease); }
  .item-link:hover h3, .item-link:focus-visible h3 { transform: translateX(16px); }
  .item-link:hover::after, .item-link:focus-visible::after { transform: scaleX(1); }
}
@media (max-width: 899px) { .item { grid-template-columns: 1fr; gap: 8px; } }

/* process */
.steps { list-style: none; padding: 0; margin-top: clamp(32px, 4.5vw, 52px); border-top: 1px solid var(--line); }
.step { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: 20px clamp(32px, 6vw, 80px); align-items: start; padding-block: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.step-head { display: flex; align-items: baseline; gap: 20px; }
.step-head { align-items: center; }
.step-head .num { flex: 0 0 clamp(2.5rem, 4vw, 3.25rem); color: var(--live); }
.step-detail div:last-child dt { color: var(--live); }
.step-detail div:first-child dd { color: var(--text); }
.step-detail div:nth-child(2) { padding-top: 20px; }
.step-detail { border-top: 0; }
.step-detail div { grid-template-columns: 8rem 1fr; padding-block: 12px; border-bottom: 0; }
.step-detail div:first-child { padding-top: 0; }
.step-detail dt { padding-top: 4px; }
.step-detail dd { color: var(--muted); max-width: 46ch; }
/* process numerals are set in the pixel face at display size: they give each step a visual anchor */
.step .num { font-family: var(--pixel); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--live); font-variant-numeric: tabular-nums; }
.step h3 { font-weight: var(--w-display); font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -0.015em; line-height: 1.1; }
.step p { color: var(--muted); max-width: 46ch; }
@media (max-width: 899px) { .step { grid-template-columns: 1fr; gap: 12px; } }

/* home process track: five steps in one row. A lime line is drawn across each step as it prints in, then fades, so only the numerals stay lime */
.track { --tg: clamp(16px, 2.4vw, 32px); list-style: none; padding: 0; margin-top: clamp(32px, 4.5vw, 52px); display: grid; grid-template-columns: repeat(5, 1fr); column-gap: var(--tg); }
.track-step { position: relative; padding-top: 28px; padding-bottom: 8px; }
.track-step::before, .track-step::after { content: ""; position: absolute; top: 0; left: 0; height: 1px; width: calc(100% + var(--tg)); }
.track-step:last-child::before, .track-step:last-child::after { width: 100%; }
.track-step::before { background: var(--line); }
.track-step::after { background: var(--live); opacity: 0; transform-origin: 0 50%; }
.js .track-step.in::after { animation: sweep 1.3s var(--ease) var(--d, 0s) both; }
@keyframes sweep { 0% { opacity: 1; transform: scaleX(0); } 55% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }
.track-step .num { display: block; font-family: var(--pixel); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--live); font-variant-numeric: tabular-nums; }
.track-step h3 { margin-top: 12px; font-weight: var(--w-display); font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -0.015em; line-height: 1.1; }
.track-step p { margin-top: 12px; color: var(--lead); max-width: 22ch; }
@media (max-width: 899px) {
  .track { grid-template-columns: 1fr; }
  .track-step { display: grid; grid-template-columns: 3rem 1fr; column-gap: 16px; padding-block: 24px; }
  .track-step::before, .track-step::after { width: 100%; }
  .track-step .num { grid-row: 1 / span 2; }
  .track-step h3 { margin-top: 0; }
  .track-step p { margin-top: 6px; max-width: 46ch; }
  .track-step:last-child { border-bottom: 1px solid var(--line); }
}

/* home process, compressed: five words in one row under the services list */
.flow { margin-top: clamp(32px, 4.5vw, 52px); padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.flow-label { font-family: var(--mono); font-weight: 400; font-size: var(--t-label); letter-spacing: 0; color: var(--muted); }
.flow-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px clamp(20px, 4vw, 56px); font-family: var(--display); font-weight: var(--w-display); font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -0.015em; line-height: 1.1; }
.flow-list li { display: flex; align-items: baseline; gap: 10px; }
.flow-list .num { font-family: var(--pixel); font-size: 1em; letter-spacing: 0; color: var(--live); font-variant-numeric: tabular-nums; }

/* three-step version of the track, used on Contact */
.track-3 { grid-template-columns: repeat(3, 1fr); }
.track-3 .track-step p { max-width: 30ch; }
@media (max-width: 899px) { .track-3 { grid-template-columns: 1fr; } }
#next .lede { margin-top: clamp(32px, 5vw, 56px); max-width: 52ch; color: var(--lead); }

/* about intro: same 5/7 grid as the process steps. The first paragraph is the statement; the rest is supporting text */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 28px clamp(32px, 6vw, 80px); align-items: start; }
.about-head h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.about-copy { padding-top: 0.5rem; }
.about-lead { display: flex; flex-direction: column; gap: clamp(24px, 4vw, 44px); }
.about-art { position: relative; width: 100%; max-width: 26rem; aspect-ratio: 1.15; }
/* on the About head the "A." fills the space under the heading, so it sits at the middle of the column instead of hanging from the heading */
.about-head .about-art { flex: 1 1 auto; aspect-ratio: auto; min-height: 16rem; max-width: none; margin-block: clamp(20px, 3vw, 40px) clamp(8px, 1.5vw, 20px); }
.about-head .about-lead { gap: 0; }
/* on the About head the two columns read as one block: the heading and the statement start together, the art and the last paragraph end together */
.about-head .about-grid { align-items: stretch; }
.about-head .about-copy { display: flex; flex-direction: column; justify-content: space-between; }
.about-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 899px) { .about-art, .about-head .about-art { flex: none; aspect-ratio: 2 / 1; min-height: 0; max-width: none; margin-block: 0; } .about-head .about-lead { gap: 24px; } }

/* services: the care block is the page's second act, at hero scale */
section.block.care { padding-block: clamp(80px, 10vw, 128px); }
.care h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 14ch; }
.care .maint-grid { margin-top: clamp(48px, 7vw, 96px); gap: clamp(40px, 7vw, 112px); }
.care .terms p, .home-care .terms p { font-family: var(--display); font-weight: var(--w-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; letter-spacing: -0.015em; color: var(--text); max-width: 20em; }
.care .terms p + p, .home-care .terms p + p { margin-top: 1.1em; color: var(--lead); }
.home-care .terms .link { margin-top: clamp(28px, 4vw, 44px); }
.home-care h2 { max-width: 12ch; }
.home-care .maint { margin-top: clamp(32px, 5vw, 56px); }
/* the signal line fills the empty column under the heading: a wave of digits with a lime pulse, "running" drawn literally */
.care-art { position: relative; width: 100%; height: clamp(7rem, 13vw, 10rem); margin-top: clamp(32px, 5vw, 64px); -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%); mask-image: linear-gradient(90deg, #000 55%, transparent 100%); }
.care-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 899px) { .care-art { height: 6rem; } }
/* the bio and the care band are lighter sections than Services and Work, so they get less air */
section.block.intro { padding-block: clamp(40px, 5vw, 64px); }
section.block.home-care { padding-block: clamp(56px, 7vw, 88px); }
.care dd { font-size: 1.1875rem; }
/* the two agreed terms sit side by side over the full-width care list */
.care .maint-grid { grid-template-columns: 1fr; }
.care .terms { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); }
.care .terms p + p { margin-top: 0; }
@media (max-width: 899px) { .care .terms { grid-template-columns: 1fr; gap: 1.1em; } }

/* contact: a signal line behind the lower right; the form side stays clear */
.contact-art { inset: 0; height: 100%; opacity: .6; -webkit-mask-image: linear-gradient(90deg, transparent 48%, #000 92%); mask-image: linear-gradient(90deg, transparent 48%, #000 92%); }
@media (max-width: 899px) { .contact-art { -webkit-mask-image: linear-gradient(180deg, transparent 55%, #000 100%); mask-image: linear-gradient(180deg, transparent 55%, #000 100%); } }
.statement { font-family: var(--display); font-weight: var(--w-display); font-size: clamp(1.5rem, 2.7vw, 2.15rem); line-height: 1.3; letter-spacing: -0.015em; color: var(--text); max-width: 26em; text-wrap: balance; }
.about-body { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 1.1em; max-width: 40rem; }
.about-body p { color: var(--lead); }
/* the bio pairs a halftone portrait with the statement: dots only, fading out at the shoulders like the reference */
.intro-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.portrait { margin: 0; width: 100%; max-width: 22rem; justify-self: start; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
.portrait img { display: block; width: 100%; height: auto; }
@media (max-width: 899px) { .intro-grid { grid-template-columns: 1fr; } .portrait { max-width: 13rem; } }
.intro .statement { max-width: 24em; }
.intro .about-body { max-width: 36rem; }
@media (max-width: 899px) { .about-grid { grid-template-columns: 1fr; } .about-copy { padding-top: 0; } }
@media (max-width: 540px) { .step-detail div { grid-template-columns: 1fr; gap: 2px; } }

/* maintenance */
.maint-grid { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.terms p { color: var(--muted); max-width: 46ch; }
.terms p + p { margin-top: 1em; }
/* the care list is a 2x2 grid divided by hairlines: term over description, two columns */
.maint { display: grid; grid-template-columns: 1fr 1fr; }
.maint div { display: block; padding: clamp(22px, 3vw, 32px) clamp(16px, 2.4vw, 32px) clamp(24px, 3.4vw, 36px) 0; }
.maint div:nth-child(even) { padding-left: clamp(16px, 2.4vw, 32px); padding-right: 0; border-left: 1px solid var(--line); }
.maint dt { padding-top: 0; margin-bottom: 10px; }
/* About: facts about Angie as a hairline list, term left and description right */
.facts div { grid-template-columns: 9rem 1fr; padding-block: clamp(20px, 2.6vw, 28px); }
.facts dd { color: var(--lead); font-size: 1.1875rem; line-height: 1.5; }
.facts div:first-child dd { color: var(--text); }
#clients .facts div { grid-template-columns: 13rem 1fr; }
.feature .facts { margin-top: clamp(24px, 3vw, 36px); }
.feature .facts div { grid-template-columns: 6rem 1fr; padding-block: 14px; }
@media (max-width: 540px) { #clients .facts div { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }
.maint dd { color: var(--lead); }
@media (max-width: 899px) { .maint-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .maint { grid-template-columns: 1fr; } .maint div:nth-child(even) { padding-left: 0; border-left: 0; } }
dl { border-top: 1px solid var(--line); }
dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); }
dt { font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0; color: var(--muted); padding-top: 3px; }
dd { color: var(--text); line-height: 1.5; }

/* contact */
.contact h1, .contact h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); max-width: 18ch; }
.status { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: live 2.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
.mail { display: block; margin-top: 40px; font-family: var(--mono); font-size: clamp(1.1rem, 2.4vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.2; width: fit-content; border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; transition: border-color .2s; }
.mail:hover { border-color: var(--live); }
.elsewhere { margin-top: 24px; color: var(--muted); font-size: var(--t-ui); }
.elsewhere a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: .3em; transition: text-decoration-color .2s; }
.elsewhere a:hover { text-decoration-color: var(--live); }

/* home closing call to action: hero-scale heading over a full-height drift of digits */
.block.cta { position: relative; overflow: hidden; }
.cta > .wrap { position: relative; }
.cta .page-drift { inset: 0; height: 100%; -webkit-mask-composite: source-over; mask-composite: add; -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0,0,0,.45) 55%, transparent 100%); mask-image: linear-gradient(0deg, #000 0%, rgba(0,0,0,.45) 55%, transparent 100%); }
.cta h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 14ch; }
.cta .actions { margin-top: 36px; }
.contact-grid { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.direct .mail { margin-top: 12px; }
.contact-grid > * { min-width: 0; }
.mail { overflow-wrap: anywhere; }
.direct-label { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } .direct { order: -1; } }

/* enquiry form */
.enquiry { display: grid; gap: 28px; max-width: 38rem; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--t-ui); color: var(--text); }
.hint { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--text);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 0; padding: 12px 14px;
  transition: border-color .2s; color-scheme: dark;
}
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239c9c9c' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select option { background: var(--bg); color: var(--text); }
.field textarea { resize: vertical; min-height: 7.5rem; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--live); outline-offset: 2px; border-radius: 0; }
.field [aria-invalid="true"] { border-color: var(--text); }
.field-error { font-size: var(--t-ui); color: var(--text); }
.field-error::before { content: "Needs attention: "; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-actions .btn { cursor: pointer; border: 0; }
.form-actions .btn:disabled { opacity: .6; cursor: progress; }
.form-status { font-size: var(--t-ui); color: var(--muted); flex: 1 1 14rem; }
.form-status a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.form-status a:hover { text-decoration-color: var(--live); }
.form-note { max-width: 38rem; font-size: var(--t-label); line-height: 1.5; color: var(--muted); }
.form-note a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .3em; }
.sent { max-width: 38rem; padding-block: 8px; outline: none; }
.sent[hidden] { display: none; }
.sent h2 { font-weight: var(--w-display); font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -0.015em; line-height: 1.1; }
.sent p { margin-top: 12px; color: var(--muted); }

footer { padding-block: 32px; padding-bottom: max(32px, env(safe-area-inset-bottom)); font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* reveal */
.js .reveal { opacity: 0; transition: opacity .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; }
/* list rows are printed in line by line; the small negative inset keeps the hover line and descenders unclipped */
.js .item.reveal, .js .step.reveal, .js .row.reveal { transition: none; }
.js .track-step.reveal { transition-duration: .7s; }
.js .item.reveal.in, .js .step.reveal.in, .js .row.reveal.in { animation: print .7s var(--ease) var(--d, 0s) both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -2px 0); } }
/* every list row gets the same signature as the process track: a lime line is drawn along its rule as it prints in, then fades */
.item::before, .row::before, .step::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--live); opacity: 0; transform-origin: 0 50%; pointer-events: none; }
.js .item.in::before, .js .row.in::before, .js .step.in::before { animation: sweep 1.3s var(--ease) calc(var(--d, 0s) + .3s) both; }

/* Work: each cover is developed like a print, a clip wipe from the top while the image settles from a slight zoom */
.js .shot.reveal img { clip-path: inset(0 0 100% 0 round 8px); transform: scale(1.06); transition: clip-path 1s var(--ease) var(--d, 0s), transform 1.5s var(--ease) var(--d, 0s), border-color .3s; }
.js .shot.reveal.in img { clip-path: inset(0 0 0 0 round 8px); transform: none; }
/* Home: the halftone portrait comes into focus, the same idea as the headline decoding */
.js .portrait.reveal img { filter: blur(10px); transition: filter 1.2s var(--ease) var(--d, 0s); }
.js .portrait.reveal.in img { filter: none; }
.js:not(.js-ok) .shot img, .js:not(.js-ok) .portrait img { clip-path: none; transform: none; filter: none; }
/* Contact: the focused field draws a lime line along its bottom edge; a sent enquiry rises into place */
.field input, .field textarea { background-image: linear-gradient(var(--live), var(--live)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2px; transition: border-color .2s, background-size .55s var(--ease); }
.field input:focus-visible, .field textarea:focus-visible { background-size: 100% 2px; }
.sent:not([hidden]) { animation: rise .6s var(--ease) both; }

/* icons: thin drawn lines in the label colour, only on the care list, the process steps and the About facts; they turn lime where a pointer rests */
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.24em; margin-right: .6em; transition: color .25s; }
.step-head .ico { width: 1.5rem; height: 1.5rem; margin: 0 0 0 2px; color: var(--muted); }
@media (hover: hover) { .step:hover .ico, .maint div:hover .ico, .facts div:hover .ico { color: var(--live); } }

/* between pages: a short cross-fade, with the nav held still */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav { view-transition-name: nav; }
  ::view-transition-old(root) { animation: vt-out .18s ease-in both; }
  ::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; } }
}

/* scroll-driven motion, progressive enhancement */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { display: block; position: fixed; top: 0; left: 0; z-index: 20; height: 1px; width: 100%; background: var(--live); transform-origin: 0 50%; animation: grow linear both; animation-timeline: scroll(root); }
    @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    .step .num { animation: lit linear both; animation-timeline: view(); animation-range: entry 35% entry 100%; }
    @keyframes lit { from { color: var(--dim); } to { color: var(--live); } }
    .hero .wrap { animation: heroOut linear both; animation-timeline: view(); animation-range: exit 0% exit 70%; }
    @keyframes heroOut { to { opacity: 0; transform: translateY(-70px); } }
    .hero canvas { animation: drift linear both; animation-timeline: view(); animation-range: exit; }
    @keyframes drift { to { transform: translateY(90px) scale(1.06); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-scramble] { visibility: visible; }
  .js [data-wipe], .js [data-wipe].in { opacity: 1; clip-path: none; animation: none; }
  .js .reveal, .js .item.reveal, .js .step.reveal, .js .row.reveal, .js .item.reveal.in, .js .step.reveal.in, .js .row.reveal.in { opacity: 1; transform: none; clip-path: none; animation: none; transition: none; }
  .js .feature .stage.reveal { clip-path: none; transition: none; }
  .js .hero p, .js .hero .actions { opacity: 1; animation: none; }
  .status i { animation: none; }
  .js .track-step.in::after, .js .item.in::before, .js .row.in::before, .js .step.in::before { animation: none; opacity: 0; }
  .row h3, .row::after { transition: none; }
  .js .shot.reveal img, .js .shot.reveal.in img { clip-path: none; transform: none; transition: border-color .3s; }
  .js .portrait.reveal img { filter: none; transition: none; }
  .field input, .field textarea { transition: border-color .2s; }
  .sent:not([hidden]) { animation: none; }
}
