/*
 * nolabelimmersive.com, one stylesheet for every page below the hero (v3: compact, slick).
 * Identity: black and white, following the system (no switch). Accents from
 * taleor's player: teal, pink, orange, blue. Type: Fraunces for everything;
 * the NOLABEL IMMERSIVE logo stays its PNG. Everything sits in taleor's 1200
 * column with 40 px gutters (16 px on phones).
 *
 * Motion lives at the end and applies only while html.motion is set
 * (src/motion.ts); without it every element rests in its final state.
 * The hero's own styles are in hero.css (the landing's styles.css + chrome.css).
 */

@font-face { font-family: 'Fraunces'; src: url('/fonts/Fraunces-VF.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/Fraunces-Italic-VF.ttf') format('truetype'); font-weight: 100 900; font-style: italic; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --teal: #10C790; --orange: #FF8A3D; --pink: #FF4D6D; --blue: #3B82F6;
  --font: 'Fraunces', Georgia, 'Times New Roman', serif;
  --max: 1200px; --gutter: 40px;
  --header-h: 64px; --progress-h: 28px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* light */
  --ground: #FFFFFF; --surface: #F5F5F5; --panel: #FFFFFF; --panel2: #F0F0F0;
  --text: #000000; --muted: #666666; --line: #8A8A8A;
  --hairline: rgba(0, 0, 0, .12); --edge: rgba(0, 0, 0, .10); --edge2: rgba(0, 0, 0, .20); --chip: rgba(0, 0, 0, .04);
  --tint-strength: 3%; --lift: 0 10px 30px rgba(0, 0, 0, .08);
  --teal-text: #0B8762; --orange-text: #A4521C; --pink-text: #C9324F; --blue-text: #2C61B8;
  --grain-opacity: .16;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #000000; --surface: #0B0B0B; --panel: #0B0B0B; --panel2: #151515;
    --text: #FFFFFF; --muted: #9A9A9A; --line: #7A7A7A;
    --hairline: rgba(255, 255, 255, .16); --edge: rgba(255, 255, 255, .12); --edge2: rgba(255, 255, 255, .22); --chip: rgba(255, 255, 255, .06);
    --tint-strength: 5%; --lift: 0 10px 30px rgba(0, 0, 0, .5);
    --teal-text: var(--teal); --orange-text: var(--orange); --pink-text: var(--pink); --blue-text: var(--blue);
    --grain-opacity: .22;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #000000; --surface: #0B0B0B; --panel: #0B0B0B; --panel2: #151515;
  --text: #FFFFFF; --muted: #9A9A9A; --line: #7A7A7A;
  --hairline: rgba(255, 255, 255, .16); --edge: rgba(255, 255, 255, .12); --edge2: rgba(255, 255, 255, .22); --chip: rgba(255, 255, 255, .06);
  --tint-strength: 5%; --lift: 0 10px 30px rgba(0, 0, 0, .5);
  --teal-text: var(--teal); --orange-text: var(--orange); --pink-text: var(--pink); --blue-text: var(--blue);
  --grain-opacity: .22;
  color-scheme: dark;
}
@media (max-width: 720px) { :root { --gutter: 16px; --header-h: 56px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; background: var(--ground); color: var(--text); font-family: var(--font); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
body { font-size: 16px; line-height: 1.55; overflow-x: clip; min-height: 100svh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
p, h1, h2, h3, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--panel); color: var(--text); border: 1px solid var(--edge2); border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.skip:focus { top: 10px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.h2 { font-size: clamp(30px, 2.9vw, 42px); line-height: 1.08; font-weight: 340; letter-spacing: -.012em; font-variation-settings: "opsz" 96, "SOFT" 20; max-width: 20ch; margin: 10px 0 14px; text-wrap: balance; }
.h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; font-weight: 380; font-variation-settings: "opsz" 48, "SOFT" 20; max-width: 32ch; text-wrap: balance; }
.lede { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; color: var(--text); max-width: 48ch; font-variation-settings: "opsz" 24; }
.body { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 60ch; font-variation-settings: "opsz" 16; }
.body + .body { margin-top: 14px; }
.small { font-size: 13px; color: var(--muted); }
.kick { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .06em; color: var(--muted); font-variation-settings: "opsz" 12; }
.kick--center { justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; background: var(--line); }
.dot--teal { background: var(--teal); } .dot--orange { background: var(--orange); } .dot--pink { background: var(--pink); } .dot--blue { background: var(--blue); }
svg.g { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.link { display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 1px; color: var(--text); font-size: 15px; transition: border-color .2s var(--ease); }
.link:hover { border-color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 18px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.btn--solid { background: var(--text); color: var(--ground); }
.btn--solid:hover { transform: translateY(-1px); }
.btn--line { border-color: var(--edge2); color: var(--text); background: var(--chip); }
.btn--line:hover { border-color: var(--text); }

/* ---------- header (the landing's chrome.css styles it; here: fixed on every page, a surface once scrolled,
   and its content inside the same 1200 column as everything else, as taleor.net does) ---------- */
.site-header { position: fixed; display: block; padding: 0; transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease); border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; }
.site-header.is-scrolled, .site-header--page { background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--hairline); }
.is-page main { padding-top: calc(var(--header-h) + 24px); }

/* ---------- hero: the landing's presentation, held in the same column (its tint stays full-width behind it) ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); background: transparent; transition: none; }
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; z-index: 0; background: color-mix(in srgb, var(--tint) var(--tint-pct), var(--ground)); transition: background-color 1.6s ease; }
.hero > * { position: relative; z-index: 1; }
.hero-copy { padding-left: 0; }

/* ---------- sections ---------- */
.sec { padding: 68px 0; border-top: 1px solid var(--hairline); }
.sec--skills, .sec--studio, .sec--contact { background: var(--surface); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: start; }
.sec-head--tight { grid-template-columns: 1fr; }

/* ---------- Skills Studio: four compact cards in a grid inside the column ---------- */
.skills-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.skill { --accent: var(--line); position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px 20px 20px; background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; transition: border-color .3s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
.skill::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; background: var(--accent); border-radius: 0 0 2px 2px; opacity: .9; }
.skill--teal { --accent: var(--teal); } .skill--blue { --accent: var(--blue); } .skill--orange { --accent: var(--orange); } .skill--pink { --accent: var(--pink); }
.skill:hover { border-color: var(--edge2); transform: translateY(-2px); box-shadow: var(--lift); }
.skill-name { font-size: 19px; line-height: 1.2; font-weight: 400; font-variation-settings: "opsz" 24, "SOFT" 20; text-wrap: balance; }
.skill-line { font-size: 14px; line-height: 1.5; color: var(--muted); }
.skill-cta { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 0;
  font-size: 13px; letter-spacing: .04em; font-variation-settings: "opsz" 14; color: var(--text); white-space: nowrap; }
.skill-cta:hover span, .skill-cta:focus-visible span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- The journey: Shape, Build, Craft, Run (one pinned section) ----------
   Left: THE ROOM, one continuous line drawing (canvas, src/journey.ts), sticky and centred in the viewport.
   Right: four text blocks, each about a viewport tall; the active one is full, the others recede.
   The ground takes a faint tint of the active part, as the hero does. */
.sec--journey { --accent: var(--pink); padding: 0; background: color-mix(in srgb, var(--accent) var(--tint-strength), var(--ground)); transition: background-color 1.2s var(--ease); }
.sec--journey[data-active="build"] { --accent: var(--orange); }
.sec--journey[data-active="craft"] { --accent: var(--blue); }
.sec--journey[data-active="run"] { --accent: var(--teal); }
.journey-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 64px; align-items: start; }
.journey-stick { --vis: min(480px, calc(100vh - 220px)); position: sticky; top: calc((100vh - var(--vis)) / 2 - 20px); padding-top: 0; }
.journey-visual { position: relative; width: var(--vis); max-width: 100%; aspect-ratio: 1; margin: 0 auto; }
/* the canvases bleed a little past their box (the glows need room); the drawing itself is inset by the same amount in src/journey.ts */
.journey-visual canvas { position: absolute; inset: -28px; width: calc(100% + 56px); height: calc(100% + 56px); display: block; pointer-events: none; }
.journey-part-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.journey-dots { display: flex; justify-content: center; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.journey-dots li { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--line); transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease); }
.journey-dots li.is-done { background: var(--line); }
.journey-dots li.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.journey-part { min-height: 70vh; display: flex; align-items: center; padding: 48px 0; opacity: .3; transition: opacity .7s var(--ease); scroll-margin-top: 0; }
.journey-part.is-active { opacity: 1; }
.journey-part-visual { display: none; }
.journey-text { width: 100%; }
.journey-text .h2 { max-width: 16ch; margin: 12px 0 12px; }
.journey-text .lede { max-width: 36ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; max-width: 48ch; }
.tag { font-size: 12.5px; line-height: 1; padding: 6px 10px 7px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--chip); color: var(--text); font-variation-settings: "opsz" 12; letter-spacing: .01em; white-space: nowrap; }
.journey-note { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted); font-style: italic; }
@media (prefers-reduced-motion: reduce) { .journey-part { opacity: 1; } .sec--journey, .journey-part, .journey-dots li { transition: none; } }

/* ---------- Work: all eight as tiles, 4 x 2; the photo black and white with grain, colour on hover ---------- */
.pic { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: var(--ratio); background-size: cover; background-position: center; background-color: var(--panel2); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.work-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
.tile { --accent: var(--line); min-width: 0; display: grid; gap: 12px; align-content: start; scroll-margin-top: 90px; }
.tile--teal { --accent: var(--teal); } .tile--orange { --accent: var(--orange); } .tile--pink { --accent: var(--pink); } .tile--blue { --accent: var(--blue); }
.tile-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; text-align: left; }
.tile-photo .pic img { filter: grayscale(1) contrast(1.04); transition: filter .8s var(--ease), transform 1.4s var(--ease); }
/* the grain: one soft film, the same on every photo, so phone and pro photos read as one series */
.tile-photo .pic::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--grain-opacity); mix-blend-mode: soft-light; transition: opacity .8s var(--ease);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px; }
.tile:hover .tile-photo .pic img, .tile-photo:focus-visible .pic img { filter: grayscale(0) contrast(1); transform: scale(1.02); }
.tile:hover .tile-photo .pic::after, .tile-photo:focus-visible .pic::after { opacity: 0; }
.tile-photo:focus-visible { outline-offset: 3px; }
.tile-count { position: absolute; right: 10px; bottom: 10px; min-width: 24px; height: 24px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 11.5px; letter-spacing: .04em; color: #fff; background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-variant-numeric: tabular-nums; }
.tile-text { display: grid; gap: 4px; cursor: pointer; }
.tile-title { font-size: 17px; line-height: 1.25; font-weight: 420; font-variation-settings: "opsz" 24, "SOFT" 20; text-wrap: balance; }
.tile-line { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.tile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; letter-spacing: .04em; color: var(--muted); margin-top: 2px; }
.tile-place { display: inline-flex; align-items: center; gap: 5px; }
a.tile-place { border-bottom: 1px solid var(--hairline); color: var(--text); }
a.tile-place:hover { border-color: var(--text); }
a.tile-place svg { width: 11px; height: 11px; }
.tile-award, .tile-status { display: inline-flex; align-items: center; gap: 6px; }
.tile-award::before, .tile-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.tile-status { color: var(--teal-text); }
.tile-status::before { background: var(--teal); box-shadow: 0 0 8px rgba(16, 199, 144, .6); }
.work-close { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.work-close .h3 { flex: 1 1 320px; }

/* the slideshow */
html.lb-open { overflow: hidden; padding-right: var(--lb-gutter, 0px); }
html.lb-open .site-header { padding-right: var(--lb-gutter, 0px); }
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .94); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: transparent; }
.lightbox:not([open]) { display: none; }
.lb-stage { position: absolute; inset: 0 0 64px; display: flex; align-items: center; justify-content: center; }
.lb-figure { position: relative; width: 100%; height: 100%; }
.lb-figure .lb-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 56px 72px 12px; opacity: 0; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.lb-figure .lb-slide.from-right { transform: translateX(28px); }
.lb-figure .lb-slide.from-left { transform: translateX(-28px); }
.lb-figure .lb-slide.is-in { opacity: 1; transform: none; }
.lb-figure .lb-slide.is-out { opacity: 0; transition-duration: .35s; }
.lb-figure video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; background: #000; }
.lb-figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.lb-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-btn svg { width: 18px; height: 18px; }
.lb-prev { left: 16px; top: calc(50% - 56px); }
.lb-next { right: 16px; top: calc(50% - 56px); }
.lb-close { right: 16px; top: 16px; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; font-size: 15px; font-variation-settings: "opsz" 16; }
.lb-text { display: grid; gap: 2px; min-width: 0; }
.lb-caption { color: #fff; }
.lb-line { color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.4; }
.lb-line:empty { display: none; }
.lb-count { color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: .04em; }

/* ---------- Studio: three lines, one phrase at a time ---------- */
.studio-lines { margin-top: 12px; }
.studio-stick { display: flex; flex-direction: column; gap: .2em; margin: 0 0 22px; font-weight: 330; font-size: clamp(28px, 3.3vw, 46px); line-height: 1.1; letter-spacing: -.014em; font-variation-settings: "opsz" 96, "SOFT" 20; max-width: 24ch; text-wrap: balance; }
.studio-line { display: block; opacity: 1; }
.studio-line:nth-child(2) { color: var(--muted); }
.studio-line:nth-child(3) { color: var(--text); }
.studio-sub { margin-top: 4px; }
.studio-how { margin-top: 44px; display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.recognition { margin-top: 40px; }
.recognition-list { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; }
.recognition-list li { border-top: 1px solid var(--hairline); padding-top: 12px; display: grid; gap: 3px; }
.award-name { font-size: 14.5px; }
.award-for { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.sign { margin-top: 56px; text-align: center; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.3; font-weight: 340; font-style: italic; font-variation-settings: "opsz" 48, "SOFT" 40; }

/* ---------- Systems: a still wall of the marks, monochrome, one optical size (v4) ---------- */
.sec--systems { padding: 48px 0 56px; }
.brands-wall { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px 16px; }
.brands-wall li { display: flex; align-items: center; justify-content: center; height: 76px; min-width: 0; }
.brands-wall img { height: var(--h, 24px); width: auto; max-width: 84%; object-fit: contain; filter: grayscale(1); opacity: .55; transition: opacity .4s var(--ease); }
.brands-wall li:hover img { opacity: 1; }
:root[data-theme="dark"] .brands-wall img { filter: grayscale(1) invert(1) brightness(1.1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brands-wall img { filter: grayscale(1) invert(1) brightness(1.1); } }
@media (max-width: 1024px) { .brands-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .brands-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; }
  .brands-wall li { height: 60px; }
  .brands-wall img { height: calc(var(--h, 24px) * .78); }
}
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px 64px; align-items: start; }
.details { margin-top: 28px; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.details address { font-style: normal; color: var(--muted); }
.details a { border-bottom: 1px solid var(--hairline); }
.details a:hover { border-color: var(--text); }
.details .details-wa { display: inline-flex; align-items: center; gap: 8px; border-bottom: 0; }
.details .details-wa .wa { color: #25D366; }
.details .details-wa span { border-bottom: 1px solid var(--hairline); }
.details .details-wa:hover span { border-color: var(--text); }
/* /work/ and /skills-studio/: the page intro under the lede */
.page-intro { max-width: 62ch; margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.skill-cta .gh { width: 16px; height: 16px; }
.details-careers { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); color: var(--muted); }
.form { display: grid; gap: 14px; padding: 22px; background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 5px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; padding: 8px 12px; background: var(--ground); border: 1px solid var(--edge2); border-radius: 8px; color: var(--text); font-size: 14.5px; transition: border-color .2s var(--ease); }
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status[data-kind="ok"] { color: var(--teal-text); } .form-status[data-kind="err"] { color: var(--pink-text); }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Prose pages (privacy, 404) ---------- */
.prose { max-width: 720px; }
.prose .h2 { max-width: none; }
.prose .h3 { margin-top: 32px; margin-bottom: 8px; }
.prose .body { max-width: none; }
.prose .small { margin-top: 48px; }
.prose a { border-bottom: 1px solid var(--line); }
.prose .btn { border-bottom: 0; margin-top: 28px; }
.sec--404 { min-height: 60vh; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 28px 0 32px; font-size: 13.5px; color: var(--muted); }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 16px 40px; flex-wrap: wrap; }
.foot-line { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text); font-variation-settings: "opsz" 24; }
.foot-mark { color: var(--text); }
.foot-legal a { border-bottom: 1px solid var(--hairline); }
.foot-legal a:hover { color: var(--text); border-color: var(--text); }
.foot-sep { margin: 0 10px; }

/* ---------- Phones and narrow screens ---------- */
@media (max-width: 1100px) {
  .journey-grid { gap: 0 40px; }
}
@media (max-width: 1024px) {
  .sec-head, .contact { grid-template-columns: 1fr; gap: 28px; }
  .recognition-list { grid-template-columns: 1fr; gap: 14px; }
  .skills-grid, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* the journey and the work stack below 900px: no sticky; each part is its own small state of the drawing, then its text */
@media (max-width: 900px) {
  .hero-copy { padding-left: 0; padding-right: 0; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-stick { display: none; }
  .sec--journey { padding: 24px 0 16px; }
  .journey-part { min-height: 0; display: block; padding: 36px 0 44px; opacity: 1; }
  .journey-part + .journey-part { border-top: 1px solid var(--hairline); }
  .journey-part-visual { display: block; position: relative; margin: 0 calc(-1 * var(--gutter)) 4px; aspect-ratio: 4 / 3; max-height: 380px; overflow: hidden; }
  .journey-part-visual canvas { inset: 0; }
  .journey-text .h2 { max-width: 16ch; }
}
@media (max-width: 720px) {
  .sec { padding: 44px 0; }
  .skills-grid { margin-top: 24px; gap: 10px; }
  .work-grid { margin-top: 24px; gap: 22px 12px; }
  .lb-figure .lb-slide { padding: 60px 12px 12px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-close { right: 8px; top: 8px; }
  .lb-bar { padding: 0 16px; font-size: 14px; }
  .form { padding: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .sign { margin-top: 40px; }
  .foot-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .skills-grid, .work-grid { grid-template-columns: 1fr; }
  .tile { gap: 10px; }
}

/* =========================================================================
   Motion. Initial states apply ONLY while html.motion is set (src/motion.ts
   sets it when motion is allowed). Everything is a transition or a short
   animation. The journey's drawing is scroll-linked (src/journey.ts) and rests
   in its final state under prefers-reduced-motion.
   ========================================================================= */
html.motion [data-anim] .kick, html.motion [data-anim] .h2, html.motion [data-anim] .lede, html.motion [data-anim] .body,
html.motion [data-anim] .tags, html.motion [data-anim] .journey-note, html.motion [data-anim] .skill, html.motion [data-anim] .tile,
html.motion [data-anim] .recognition-list li, html.motion [data-anim] .sign, html.motion [data-anim] .form, html.motion [data-anim] .details, html.motion [data-anim] .work-close, html.motion [data-anim] .studio-how, html.motion [data-anim] .h3, html.motion [data-anim] .foot-top > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
html.motion [data-anim].in :is(.kick, .h2, .lede, .body, .tags, .journey-note, .skill, .tile, .recognition-list li, .sign, .form, .details, .work-close, .studio-how, .h3, .foot-top > *) { opacity: 1; transform: none; }
html.motion [data-anim].reset * { transition: none !important; animation: none !important; }
/* the stagger: by reading order, then by index for lists */
html.motion [data-anim].in .h2 { transition-delay: .08s; }
html.motion [data-anim].in .lede, html.motion [data-anim].in .body { transition-delay: .18s; }
html.motion [data-anim].in .tags { transition-delay: .3s; }
html.motion [data-anim].in .journey-note { transition-delay: .4s; }
html.motion [data-anim].in .skill { transition-delay: calc(.2s + var(--i, 0) * 90ms); transition-duration: 1s; }
html.motion [data-anim].in .tile { transition-delay: calc(.15s + var(--i, 0) * 70ms); transition-duration: 1s; }
html.motion [data-anim].in .recognition-list li { transition-delay: calc(.1s + var(--i, 0) * 110ms); }
html.motion [data-anim].in .form { transition-delay: .25s; }
html.motion [data-anim].in .sign { transition-delay: .3s; transition-duration: 1.4s; }

/* photos: blur-up from the inline placeholder */
html.motion .pic img { opacity: 0; filter: blur(12px); transform: scale(1.04); transition: opacity .9s var(--ease), filter 1.1s var(--ease), transform 1.4s var(--ease); }
html.motion .pic img.is-loaded { opacity: 1; filter: blur(0); transform: none; }
html.motion .tile-photo .pic img.is-loaded { filter: grayscale(1) contrast(1.04); }
html.motion .tile:hover .tile-photo .pic img.is-loaded, html.motion .tile-photo:focus-visible .pic img.is-loaded { filter: grayscale(0) contrast(1); transform: scale(1.02); }

/* the studio's lines: each rises in when its turn comes */
html.motion .studio-lines.is-paced .studio-line { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.motion .studio-lines.is-paced .studio-line.is-in { opacity: 1; transform: none; }
/* the brands: the marks fade up one after another, once */
html.motion [data-anim] .brands-wall li { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
html.motion [data-anim].in .brands-wall li { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skill, .btn, .brands-wall img, .brands-wall li, .site-header, .tile, .tile-photo .pic img, .tile-photo .pic::after, .lb-figure .lb-slide { transition: none; }
}

/* ── v5: the made-real mark after the hero line: a square sketched, turned into the top of a cube, the sides
   extruded, the faces filled teal / pink / orange, a small settle; once on load (src/site/sections.ts) ── */
.made-real-word { white-space: nowrap; }
.made-real { display: inline-block; height: .74em; width: .74em; margin-left: .12em; vertical-align: -.02em; overflow: visible; }
.made-real * { transform-box: view-box; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.made-real .mr-cube { transform-origin: 12px 12.5px; }
.made-real .mr-sq { transform-origin: 12px 8px; transform: scaleY(.57735) rotate(45deg); }
.made-real .mr-top { fill: #10C790; stroke: currentColor; stroke-width: 1.1px; }
.made-real .mr-sketch { fill: none; stroke: currentColor; stroke-width: 1.1px; }
.made-real .mr-side { stroke: currentColor; stroke-width: 1.1px; transform-origin: 12px 8px; }
.made-real .mr-left { fill: #FF4D6D; }
.made-real .mr-right { fill: #FF8A3D; }
.made-real.is-drawing .mr-sketch { stroke-dasharray: 1; animation: mr-sketch .45s cubic-bezier(.4, 0, .2, 1) .15s both; }
.made-real.is-drawing .mr-sq { animation: mr-turn .42s cubic-bezier(.5, 0, .2, 1) .6s both; }
.made-real.is-drawing .mr-top { animation: mr-top-fill .35s ease 1.0s both; }
.made-real.is-drawing .mr-side { animation: mr-extrude .38s cubic-bezier(.3, 0, .2, 1) .9s both; }
.made-real.is-drawing .mr-right { animation-delay: .96s; }
.made-real.is-drawing .mr-cube { animation: mr-settle .45s cubic-bezier(.3, 0, .3, 1) 1.22s both; }
@keyframes mr-sketch { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mr-turn { from { transform: scaleY(1) rotate(0deg); } to { transform: scaleY(.57735) rotate(45deg); } }
@keyframes mr-top-fill { from { fill: transparent; } to { fill: #10C790; } }
@keyframes mr-extrude { from { transform: scaleY(0); fill-opacity: 0; } 60% { fill-opacity: 1; } to { transform: scaleY(1); fill-opacity: 1; } }
@keyframes mr-settle { 0% { transform: rotate(0) scale(1); } 45% { transform: rotate(-3deg) scale(1.07); } 100% { transform: rotate(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .made-real.is-drawing * { animation: none !important; } }
