/* Pat's Design: refresh, November 2026
   Three voices: Newsreader for ideas, Instrument Sans for the interface,
   JetBrains Mono for numbers and labels. */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f1eee7;
  --paper-2: #e8e3d9;
  --paper-3: #faf8f4;
  --ink: #12161d;
  --ink-2: #505663;
  --blue: #005fcc;
  --blue-deep: #00479b;
  --blue-soft: #a9caff;
  --night: #070d22;
  --cream: #f6f3ec;
  --rule: rgba(18, 22, 29, 0.14);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 5.2vw, 84px);
  /* one left edge for the whole page: the gutter, or the 1240px column on wide screens */
  --edge: max(var(--gutter), calc((100vw - 1240px) / 2));
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --accent: var(--blue);
  --bg: var(--paper);
}
:root[data-tone="light"] { --fg: var(--cream); --fg-2: #cdd6ea; --accent: var(--blue-soft); }
:root[data-blue] { --fg-2: #e9eefb; --accent: #ffffff; } /* on the bright blue chapter: lighter, for contrast */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.022em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 5vw, 4.9rem); }
h2 { font-size: clamp(2.05rem, 3.7vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.1vw, 2rem); letter-spacing: -0.015em; }
/* Headings are set plain. No italic accent words anywhere (Pat, 14 November 2026). */
.eyebrow { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-2); }
.eyebrow b { font-weight: 500; color: var(--accent); margin-right: 0.9em; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; background: var(--blue); color: #fff; font-weight: 500; font-size: 0.97rem; text-decoration: none; border-radius: 2px; transition: background 0.2s, transform 0.2s; }
.btn:hover { background: var(--blue-deep); }
.btn:active { transform: translateY(1px); }
:root[data-tone="light"] .stage .btn, .btn--light { background: var(--cream); color: #0b1a3a; }
:root[data-tone="light"] .stage .btn:hover, .btn--light:hover { background: #fff; }
/* the second button beside a main one: outlined, in whichever ink the chapter is using */
.btn--ghost, :root[data-tone="light"] .stage .btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 46%, transparent); cursor: pointer; }
.btn--ghost:hover, :root[data-tone="light"] .stage .btn--ghost:hover { background: color-mix(in srgb, var(--fg) 9%, transparent); }
.link { display: inline-block; font-weight: 500; font-size: 0.97rem; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; padding: 6px 0; margin-right: 22px; }
.link:hover { text-decoration-thickness: 2px; }
.link--quiet { color: var(--fg-2); font-weight: 400; }

/* ------------------------------------------------------------------ nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 18px var(--edge); color: var(--fg); transition: background 0.3s, color 0.2s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.is-solid { color: var(--ink); background: color-mix(in srgb, var(--paper-3) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
.nav.is-solid.is-dark { color: var(--cream); background: color-mix(in srgb, var(--night) 82%, transparent); border-bottom-color: rgba(246, 243, 236, 0.14); }
.wordmark { display: inline-flex; align-items: baseline; gap: 0.13em; font-family: var(--serif); font-size: 1.42rem; font-weight: 400; letter-spacing: -0.02em; text-decoration: none; color: inherit; }
.wordmark__dot { width: 0.36em; height: 0.36em; border-radius: 50%; background: var(--blue); transform: translateY(-0.02em); transition: background 0.3s, box-shadow 0.3s; }
:root[data-tone="light"] .nav:not(.is-solid) .wordmark__dot, .nav.is-dark .wordmark__dot { background: #ffe2b6; box-shadow: 0 0 14px 3px rgba(255, 222, 176, 0.5); }
/* The mark: one dot and two drawn lines (p one way up, d the other). Its dot is 1.25 x-heights across and sits on the
   words' baseline like a letter, so the dropped line hangs below the line of text. */
.wordmark__mark { flex: none; width: 0.689em; height: 1.286em; margin-right: 0.17em; transform: translateY(0.3675em); fill: currentColor; overflow: visible; }
.wordmark__mark circle { fill: var(--blue); transition: fill 0.3s; }
:root[data-tone="light"] .nav:not(.is-solid) .wordmark__mark circle, .nav.is-dark .wordmark__mark circle { fill: #ffe2b6; }
/* The header's logo is live: on arrival the mark appears and opens into the name (refresh/js/logo-motion.js). At rest it
   is the name. arrive.js marks an arrival before the page is drawn, so the name is not shown first and then taken away. */
.wordmark--live { position: relative; }
.wordmark--live .lm__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity 0.35s ease-out; }
.wordmark--live.is-live .lm__art { opacity: 1; }
.wordmark--live .lm__ink { fill: currentColor; }
.wordmark--live .lm__light { fill: var(--blue); transition: fill 0.3s; }
:root[data-tone="light"] .nav:not(.is-solid) .lm__light, .nav.is-dark .lm__light { fill: #ffe2b6; }
html.logo-arrive .wordmark--live:not(.is-live) .lm__word, html.logo-arrive .wordmark--live:not(.is-live) .wordmark__dot { opacity: 0; animation: lm-safe 0.4s 6s forwards; }   /* if the script never comes, the name shows after six seconds */
@keyframes lm-safe { to { opacity: 1; } }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a, .nav__cta { font-size: 0.93rem; font-weight: 500; text-decoration: none; padding: 8px 0; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav__cta { border-bottom: 1px solid currentColor; white-space: nowrap; }
.nav__cta-short { display: none; }
@media (max-width: 410px) { .nav__cta-long { display: none; } .nav__cta-short { display: inline; } }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 0.9rem; font-weight: 500; padding: 8px 0; min-height: 40px; display: flex; align-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { text-decoration: underline; text-underline-offset: 5px; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 210px; padding: 8px; background: var(--paper-3); color: var(--ink); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 18px 40px -18px rgba(18, 22, 29, 0.4); }
.menu nav a { padding: 12px 12px; font-weight: 500; text-decoration: none; border-radius: 2px; }
.menu nav a:hover { background: var(--paper-2); }

/* ---------------------------------------------------------------- stage */
.stage { position: relative; background: var(--paper); }
.stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--fg); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; outline: none; }
#scene.is-dragging { cursor: grabbing; }
.stage__poster { display: none; }
.is-clean .nav, .is-clean .chapters, .is-clean .viewswitch, .is-clean .draghint, .is-clean .labels { visibility: hidden; }

/* without script or WebGL: one still of the model, and the chapters read as a list */
.no-webgl #scene, .no-webgl .viewswitch, .no-webgl .draghint, .no-webgl .labels, .no-webgl .namefield,
html:not(.js) #scene, html:not(.js) .viewswitch, html:not(.js) .draghint, html:not(.js) .labels, html:not(.js) .namefield, html:not(.js) .chapter--turn { display: none; }
.no-webgl .stage__poster, html:not(.js) .stage__poster { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.no-webgl .chapter, html:not(.js) .chapter { min-height: 80vh; }
.no-webgl .chapter--hero, html:not(.js) .chapter--hero { min-height: 100vh; }
.no-webgl .chapter--right .chapter__body, html:not(.js) .chapter--right .chapter__body { margin-left: 0; }
.no-webgl .chapter__body, html:not(.js) .chapter__body { background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 24px; border-radius: 4px; }
/* wide screens: the still dissolves into the page on the text side, so the words sit on plain paper with no hard edge */
@media (min-width: 1101px) {
  .no-webgl .stage__sticky::after, html:not(.js) .stage__sticky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 40%, color-mix(in srgb, var(--paper) 0%, transparent) 64%); pointer-events: none; }
  .no-webgl .chapter__body, html:not(.js) .chapter__body { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
  .no-webgl .chapter--hero .chapter__body, html:not(.js) .chapter--hero .chapter__body { padding-top: clamp(104px, 19vh, 190px); }
}

.chapters { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; pointer-events: none; color: var(--fg); }
.chapter { min-height: 150vh; min-height: 150svh; padding: 0 var(--edge); }
.chapter__body { position: sticky; top: 27vh; width: min(31rem, 38vw); opacity: var(--o, 1); pointer-events: auto; transition: color 0.2s; }
.chapter--right .chapter__body { margin-left: auto; }
.chapter__body > * + * { margin-top: 20px; }
.chapter__body > .eyebrow + h2, .chapter__body > .eyebrow + h1 { margin-top: 16px; }
.chapter__body p:not(.eyebrow) { color: var(--fg-2); max-width: 27rem; }
.chapter--hero { min-height: 112vh; min-height: 112svh; position: relative; }
.chapter[data-ch="back"] { min-height: 175vh; min-height: 175svh; } /* the fullest block of words, and a diagram that takes a few seconds to run */
.chapter--hero .chapter__body { top: 0; padding-top: clamp(104px, 19vh, 190px); width: min(37rem, 45vw); } /* held in place while it fades, so it never slides under the navigation */
.lede { font-size: 1.17rem; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }

.namefield { margin-top: 30px; max-width: 24rem; }
.namefield label { display: block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.namefield__row { display: block; border-bottom: 1.5px solid var(--accent); }
.namefield input { width: 100%; font: 400 1.5rem/1.2 var(--serif); letter-spacing: -0.01em; color: var(--fg); background: transparent; border: 0; padding: 6px 0 9px; outline: none; border-radius: 0; }
.namefield input::placeholder { color: color-mix(in srgb, var(--fg) 42%, transparent); }
.namefield__row:focus-within { border-bottom-width: 3px; }

/* sits at the foot of the window: placed from the hero's text block, which is pinned while it fades */
.scrollcue { position: absolute; left: 0; top: calc(100svh - 58px); margin: 0 !important; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-2); }
.scrollcue span { width: 1px; height: 30px; background: currentColor; transform-origin: top; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* view switch */
.viewswitch { position: absolute; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; padding: 4px; border: 1px solid color-mix(in srgb, var(--fg) 26%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: var(--ui, 1); }
.viewswitch__label { align-self: center; padding: 0 6px 0 14px; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
.viewswitch button { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 17px; min-height: 42px; border-radius: 999px; color: var(--fg); transition: background 0.25s, color 0.25s; }
.viewswitch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.draghint { position: absolute; z-index: 4; right: var(--edge); bottom: 36px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-2); transition: opacity 0.5s; }
.draghint.is-gone { opacity: 0; }

/* labels pinned to the model */
.labels { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.tag { position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; will-change: transform, opacity; }
.tag--dim { color: var(--accent); background: var(--bg); padding: 2px 7px; }
.legend { counter-reset: part; list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 12px; color: var(--fg); font-size: 1rem; }
.legend li::before { counter-increment: part; content: counter(part); }
.tag--part b, .legend li::before { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f6f3ec; color: #003f8f; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; flex: none; }
.tag--part b { box-shadow: 0 0 0 5px rgba(246, 243, 236, 0.22), 0 8px 22px rgba(0, 20, 70, 0.4); transition: transform 0.35s, box-shadow 0.35s, opacity 0.35s; }
/* while the pulse runs, each step waits dimmed and lights as the pulse reaches it */
.legend li { transition: opacity 0.35s; }
.legend li::before { transition: box-shadow 0.35s; }
.legend.is-run li:not(.is-on) { opacity: 0.62; }
.legend.is-run li.is-on::before { box-shadow: 0 0 0 4px rgba(246, 243, 236, 0.3); }
.tag--part.is-run:not(.is-on) b { opacity: 0.62; box-shadow: 0 0 0 3px rgba(246, 243, 236, 0.14), 0 8px 22px rgba(0, 20, 70, 0.4); }
.tag--part.is-on b { transform: scale(1.16); box-shadow: 0 0 0 7px rgba(246, 243, 236, 0.3), 0 8px 22px rgba(0, 20, 70, 0.4); }

/* swatches */
.swatches { display: grid; grid-template-columns: repeat(4, max-content); gap: 8px; }
.swatches button, .layer__finishes button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 14px 6px 8px; border: 1px solid color-mix(in srgb, var(--fg) 24%, transparent); border-radius: 999px; font-size: 0.9rem; font-weight: 500; background: color-mix(in srgb, var(--bg) 55%, transparent); transition: border-color 0.2s, background 0.2s; }
.swatches button i, .layer__finishes button i { width: 26px; height: 26px; border-radius: 50%; background: var(--sw, #888); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); flex: none; }
.swatches button[aria-pressed="true"], .layer__finishes button[aria-pressed="true"] { border-color: var(--fg); background: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); }

/* the floor layer */
#ch-back span { display: inline-block; } /* each sentence stays whole where there is room */
.chapter--turn { min-height: 190vh; min-height: 190svh; }
.chapter--turn .chapter__body { top: max(12vh, 92px); width: min(27rem, 36vw); }
.chapter--turn .chapter__body > * + * { margin-top: 14px; }
.layer { margin-top: 18px; padding: 16px; background: color-mix(in srgb, var(--paper-3) 84%, transparent); border: 1px solid var(--rule); border-radius: 4px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.layer__finishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.layer__finishes button { flex-direction: column; align-items: flex-start; gap: 8px; border-radius: 4px; padding: 10px; font-size: 0.86rem; line-height: 1.2; text-align: left; }
.layer__finishes button > span { display: grid; gap: 3px; }
.layer__finishes b { font-weight: 500; min-height: 2.4em; } /* two lines for every name, so the prices line up */
.layer__finishes small { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0; color: var(--fg-2); font-weight: 500; }
.hold { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 58px; margin-top: 12px; background: var(--blue); color: #fff; font-weight: 600; font-size: 1.02rem; border-radius: 3px; user-select: none; -webkit-user-select: none; touch-action: none; transition: background 0.2s, transform 0.12s; }
.hold:hover { background: var(--blue-deep); }
.hold.is-holding { transform: scale(0.985); background: var(--blue-deep); }
.hold svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.hold circle { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 4; }
.hold .hold__ring { stroke: #fff; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); stroke-linecap: round; }
.hold[disabled] { background: none; color: var(--fg); cursor: default; min-height: 0; padding: 4px 0; justify-content: flex-start; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; }
.hold[disabled] svg { width: 18px; height: 18px; }
.hold[disabled] circle { stroke: color-mix(in srgb, var(--fg) 22%, transparent); }
.hold[disabled] .hold__ring { stroke: var(--blue); }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.readout dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); }
.readout dd { font-family: var(--mono); font-size: 1.1rem; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 3px; letter-spacing: -0.01em; }
.layer__note { margin-top: 12px !important; font-size: 0.82rem; color: var(--fg-2); }
.layer__done { margin-top: 14px !important; display: grid; gap: 10px; justify-items: start; font-size: 0.93rem; max-width: none !important; color: var(--fg) !important; }
.layer__done[hidden] { display: none; }
.layer__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* -------------------------------------------------------------- sections */
.sec-head { max-width: 46rem; }
.sec-head > * + * { margin-top: 18px; }
.sec-head p:not(.eyebrow) { color: var(--ink-2); max-width: 34rem; }
.screens, .work, .about, .contact, .iris { --fg: var(--ink); --fg-2: var(--ink-2); --accent: var(--blue); position: relative; z-index: 3; }
.screens { background: var(--paper-3); padding: clamp(84px, 12vw, 168px) 0 clamp(72px, 10vw, 140px); border-top: 1px solid var(--rule); }
.screens__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.2vw, 30px); align-items: start; }
.phone { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.9s; }
.phone--mid { margin-top: clamp(28px, 5vw, 76px); }
.js .phone:not(.is-in) { transform: translateY(46px); opacity: 0; }
.phone:nth-child(2) { transition-delay: 0.12s; }
.phone:nth-child(3) { transition-delay: 0.24s; }
.phone__screen { background: #fbfaf7; border: clamp(4px, 0.55vw, 7px) solid #12161d; border-radius: clamp(16px, 2.2vw, 30px); overflow: hidden; box-shadow: 0 34px 60px -30px rgba(18, 22, 29, 0.5); }
.phone__bar { display: flex; align-items: center; gap: 7px; padding: 9px 10px 8px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); white-space: nowrap; overflow: hidden; }
.phone__bar i { width: 15px; height: 15px; border-radius: 50%; background: var(--blue); flex: none; }
.phone__bar b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #0c0f14 center / cover no-repeat; }
.phone__film { position: relative; display: block; background: #0c0f14 center / cover no-repeat; }
.js .phone__film video { opacity: 0; transition: opacity 0.4s; background: none; }
.js .phone__film video.is-live { opacity: 1; }
.phone__actions { display: flex; gap: 9px; padding: 9px 11px 11px; }
.phone__actions i { width: 13px; height: 13px; border: 1.5px solid var(--ink); border-radius: 50%; }
.phone__actions i:nth-child(2) { border-radius: 3px; }
.phone__actions i:nth-child(3) { margin-left: auto; border-radius: 2px 2px 50% 50%; }
.phone figcaption { margin-top: 14px; font-weight: 500; font-size: 0.93rem; line-height: 1.3; }
.phone figcaption span { display: block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.screens__more { margin-top: 26px !important; }

.work { background: var(--paper); padding: clamp(84px, 11vw, 150px) 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: clamp(36px, 5vw, 64px); }
.card { display: block; text-decoration: none; color: inherit; }
.card__img { overflow: hidden; background: var(--paper-2); }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 50%; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card--wide { grid-column: 1 / -1; }
.card--wide img { aspect-ratio: 21 / 9; max-height: 62vh; }
.card > div:last-child { padding-top: 18px; display: grid; gap: 8px; max-width: 34rem; }
.card:hover img { transform: scale(1.015); }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.card p:not(.eyebrow) { color: var(--ink-2); }

.about { background: var(--paper-2); padding: clamp(84px, 11vw, 150px) 0; }
.about__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.about h2 { font-size: clamp(1.9rem, 3.3vw, 3.1rem); line-height: 1.08; }
.about p { color: var(--ink-2); }
.about__grid > div > p + p { margin-top: 16px; }
.about__grid > div > p .link { margin: 0 0 0 4px; padding: 0; }
.about__agency { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.about__agency .eyebrow { display: block; margin-bottom: 10px; }
.about__agency .link { display: block; margin-top: 8px; }

.contact { --fg: var(--cream); --fg-2: #cdd6ea; --accent: var(--blue-soft); background: var(--night); color: var(--cream); padding: clamp(96px, 13vw, 190px) 0; overflow: hidden; min-height: min(94vh, 980px); display: grid; align-items: center; }
/* The photograph sits to the right; the left of the section is solid night blue
   that dissolves into the picture, so the words never cross the shop. */
.contact__photo { position: absolute; top: 0; bottom: 0; left: 15%; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #070d22 0%, #070d22 15%, rgba(7, 13, 34, 0.94) 27%, rgba(7, 13, 34, 0.62) 40%, rgba(7, 13, 34, 0.12) 54%, rgba(7, 13, 34, 0) 64%), linear-gradient(180deg, rgba(7, 13, 34, 0.45) 0%, rgba(7, 13, 34, 0) 20%); pointer-events: none; }
.contact__sign { position: absolute; left: 0; top: 0; z-index: 0; width: 1000px; height: 100px; margin: 0 !important; max-width: none !important; display: flex; align-items: center; justify-content: center; transform-origin: 0 0; pointer-events: none; }
.contact__sign[hidden] { display: none; }
.contact__sign span { font-family: var(--serif); font-weight: 400; font-size: 58px; line-height: 1; letter-spacing: 0.13em; margin-right: -0.13em; text-transform: uppercase; white-space: nowrap; color: #f2e6cc; opacity: 0.94; filter: blur(0.35px); text-shadow: 0 0 10px rgba(255, 226, 170, 0.28); }
.contact .wrap { position: relative; z-index: 2; }
.contact__label { position: absolute; z-index: 2; right: var(--edge); bottom: 22px; margin: 0 !important; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(246, 243, 236, 0.85) !important; }
.contact h2 { margin-top: 16px; font-size: clamp(2.4rem, 4.3vw, 4.2rem); max-width: 8.6em; }
.contact p { margin-top: 22px; color: #cdd6ea; max-width: 23rem; }
.contact .eyebrow { color: #cdd6ea; margin-top: 0; }
.contact__addr a { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.04em; color: var(--cream); text-underline-offset: 5px; }

/* Iris: a quiet band under the closing photograph, in the same night blue, so it reads as the foot of that section */
.contact__ask { margin-top: 14px !important; visibility: hidden; }
.contact__ask.is-on { visibility: visible; }
.contact__ask .link { color: var(--blue-soft); margin-right: 0; }
.iris { --fg: var(--cream); --fg-2: #cdd6ea; --accent: var(--blue-soft); background: linear-gradient(180deg, var(--night) 0%, #050916 100%); color: var(--cream); padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 112px); border-top: 1px solid rgba(246, 243, 236, 0.1); scroll-margin-top: 64px; }
.iris[hidden] { display: none; }
.iris__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.iris__intro { display: grid; grid-template-columns: clamp(132px, 12vw, 168px) minmax(0, 1fr); grid-template-areas: "face head" "face words"; column-gap: clamp(24px, 3vw, 44px); align-content: start; }
.iris__face { grid-area: face; align-self: start; position: relative; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: #02050c; box-shadow: 0 0 0 1px rgba(169, 202, 255, 0.26), 0 24px 60px -24px rgba(0, 95, 204, 0.55); }
.iris__face .holo { position: absolute; inset: 0; }
.iris__face canvas { width: 100%; height: 100%; }
.iris__head { grid-area: head; }
.iris__words { grid-area: words; }
.iris__words > * { margin-top: 16px; }
.iris h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); margin-top: 14px; }
.iris__words > p { color: #cdd6ea; max-width: 27rem; }
.iris .eyebrow { color: #cdd6ea; }
.iris__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px !important; }
.btn--line { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(246, 243, 236, 0.5); }
.btn--line:hover { background: rgba(246, 243, 236, 0.1); }
.iris .btn { cursor: pointer; }
.iris .btn:disabled { opacity: 0.5; cursor: default; }
.iris__note { margin-top: 20px !important; font-size: 0.82rem; color: #aeb9d2 !important; }
.iris__note a { color: inherit; text-underline-offset: 4px; }
/* three questions to start from; a press opens a typed chat with that question */
.iris__try[hidden], .iris__chat[hidden], .iris__form[hidden], .iris__enquiry[hidden] { display: none; }
.iris__try ul { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid rgba(246, 243, 236, 0.16); }
.iris__try li { border-bottom: 1px solid rgba(246, 243, 236, 0.16); }
.iris__try button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 12px 2px; text-align: left; font-family: var(--serif); font-weight: 300; font-size: clamp(1.2rem, 1.7vw, 1.5rem); letter-spacing: -0.012em; line-height: 1.2; color: var(--cream); transition: color 0.2s, padding 0.25s; }
.iris__try button::after { content: ""; flex: none; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.55; transition: opacity 0.2s, transform 0.25s; }
.iris__try button:hover { color: #fff; padding-left: 8px; }
.iris__try button:hover::after { opacity: 1; }
.iris__try button:disabled { opacity: 0.5; cursor: default; }
.iris__log { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow: auto; padding: 2px; }
.iris__msg { max-width: 92%; padding: 10px 14px; border-radius: 4px; font-size: 0.95rem; line-height: 1.45; }
.iris__msg--iris { align-self: flex-start; background: rgba(246, 243, 236, 0.1); color: var(--cream); }
.iris__msg--you { align-self: flex-end; background: var(--blue); color: #fff; }
.iris__msg--note { align-self: center; max-width: none; padding: 2px 8px; font-size: 0.82rem; color: #aeb9d2; text-align: center; }
.iris__form { display: flex; gap: 8px; margin-top: 12px; }
.iris__form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; font: inherit; font-size: 1rem; color: var(--cream); background: rgba(246, 243, 236, 0.07); border: 1px solid rgba(246, 243, 236, 0.32); border-radius: 2px; }
.iris__form input::placeholder { color: rgba(246, 243, 236, 0.55); }
.iris__enquiry { margin-top: 14px; }
.iris__chat .link { margin-top: 8px; font-size: 0.86rem; color: #cdd6ea; }

.foot { position: relative; z-index: 3; background: #050916; color: #aeb6c8; padding: 34px 0; font-size: 0.86rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.foot .wordmark { color: var(--cream); font-size: 1.2rem; }
.foot nav { margin-left: auto; display: flex; gap: 22px; }
.foot a { text-underline-offset: 4px; }

/* ------------------------------------------- short desktop windows */
@media (min-width: 1101px) and (max-height: 800px) {
  .chapter--turn:has(.layer.is-done) .turn__intro { display: none; }
  .chapter--turn .chapter__body { top: max(10vh, 92px); }
  .chapter--turn h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
  .turn__intro { font-size: 0.95rem; }
}
@media (min-width: 1101px) and (max-width: 1239px) { .swatches { grid-template-columns: repeat(2, max-content); } }
@media (max-width: 1299px) { .layer__finishes small span { display: block; } } /* a narrow panel: the price sits on two lines by design */
@media (min-width: 1101px) and (max-height: 700px) {
  .scrollcue, .turn__how { display: none; }
  .chapter--turn:has(.layer.is-done) .turn__intro { display: none; }
  .chapter--hero .chapter__body { padding-top: 92px; }
  h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); }
}

/* -------- stacked stage: model above, words in a card below (tablet and phone) */
@media (max-width: 1100px) {
  .chapter { padding: 0 12px; display: flex; flex-direction: column; justify-content: flex-end; }
  .chapter__body, .chapter--turn .chapter__body { top: auto; bottom: 12px; width: min(34rem, 100%); margin: 0; padding: 18px 18px 20px; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 6px; }
  .chapter--right .chapter__body { margin-left: 0; }
  .chapter__body > * + * { margin-top: 12px; }
  .chapter--hero { min-height: 128svh; justify-content: flex-start; }
  .chapter--hero .chapter__body { top: 50svh; bottom: auto; width: min(36rem, 100%); padding: 0 8px; margin-top: 50svh; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .scrollcue, .draghint { display: none; }
  .no-webgl .chapter--hero .chapter__body, html:not(.js) .chapter--hero .chapter__body { padding: 18px 18px 20px; background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .viewswitch { bottom: auto; top: 66px; }
  .turn__how { display: none; }
  .turn__intro { font-size: 0.93rem; }
  .chapter--turn:has(.layer.is-done) .turn__intro { display: none; }
  .legend { margin-top: 12px; gap: 7px; }
  .legend li { font-size: 0.93rem; }
  .layer { margin-top: 10px; padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .layer.is-done .layer__finishes { display: none; }
  /* below a wide laptop the closing words sit above the photograph instead of across it */
  .contact { display: flex; flex-direction: column; padding: clamp(72px, 10vw, 110px) 0 0; min-height: 0; }
  .contact::before { display: none; }
  .contact h2 { max-width: none; }
  .contact__photo { position: relative; left: 0; order: 2; height: auto; aspect-ratio: 16 / 10; object-position: 70% 60%; margin-top: clamp(44px, 7vw, 72px); }
  .contact__label { bottom: 12px; right: 14px; }
  .contact__sign { z-index: 1; } /* the photograph is re-ordered below the words here, so the lettering needs lifting above it */
  .iris__grid { grid-template-columns: 1fr; gap: 36px; }
  .iris__side { max-width: 34rem; }
}

/* -------------------------------------------------------------- phone */
@media (max-width: 820px) {
  .nav { padding: 12px 16px; gap: 16px; }
  .nav__links { display: none; }
  .menu { display: block; margin-left: auto; position: static; }
  .menu nav { left: 12px; right: 12px; top: calc(100% + 4px); min-width: 0; padding: 6px; }
  .menu nav a { padding: 13px 14px; }
  .nav__cta { font-size: 0.86rem; }
  h1 { font-size: clamp(2.05rem, 9vw, 2.9rem); }
  .chapter h2 { font-size: clamp(1.7rem, 7.4vw, 2.3rem); }
  .lede { font-size: 1.02rem; }
  .namefield { margin-top: 18px; }
  .namefield input { font-size: 1.25rem; }
  .hero__actions { margin-top: 18px; }
  .viewswitch { top: 62px; }
  .viewswitch button { padding: 8px 12px; min-height: 38px; }
  .swatches { grid-template-columns: repeat(2, max-content); }
  .layer__finishes { gap: 6px; }
  .layer__finishes button { gap: 6px; padding: 8px; font-size: 0.8rem; }
  .hold { min-height: 54px; margin-top: 10px; }
  .readout { margin-top: 10px; padding-top: 10px; }
  .readout dd { font-size: 0.98rem; }
  .layer__note { margin-top: 8px !important; font-size: 0.78rem; }
  .layer__room { display: none; }
  .layer__finishes small span { display: block; }
  .screens__grid { grid-template-columns: 1fr; }
  /* one film at a time, swiped sideways */
  .phones { display: flex; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone { flex: 0 0 64%; scroll-snap-align: center; }
  .phone--mid { margin-top: 0; }
  .js .phone:not(.is-in) { transform: none; opacity: 1; }
  .cards { grid-template-columns: 1fr; }
  .card--wide img { aspect-ratio: 16 / 10; }
  .about__grid { grid-template-columns: 1fr; }
  .contact__photo { aspect-ratio: 5 / 4; object-position: 78% 60%; }
  .foot nav { margin-left: 0; }
  .iris__intro { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "face head" "words words"; column-gap: 18px; align-items: center; }
  .iris h2 { margin-top: 8px; }
  .iris__words > :first-child { margin-top: 20px; }
  .iris__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* narrow phones: the view switch never shows above an open menu, and has no room for its label */
@media (max-width: 820px) {
  .viewswitch__label { display: none; }
  .nav:has(.menu[open]) ~ main .viewswitch { visibility: hidden; }
  /* without 3D the still is shown whole above the words, not cropped to a corner of it */
  .no-webgl .stage__poster, html:not(.js) .stage__poster { object-fit: contain; object-position: 50% 74px; }
}
@media (max-width: 820px) and (max-height: 830px) { .chapter--hero .chapter__body { top: 45svh; margin-top: 45svh; } }
/* short phone windows (a phone with its browser bars showing): everything in the hero and the calculator must fit */
@media (max-width: 820px) and (max-height: 740px) {
  .chapter--hero .chapter__body { top: 40svh; margin-top: 40svh; }
  .chapter--hero h1 { font-size: clamp(1.8rem, 7.6vw, 2.3rem); }
  .chapter--hero .chapter__body > * + * { margin-top: 10px; }
  .lede { font-size: 0.96rem; line-height: 1.42; }
  .namefield { margin-top: 12px !important; }
  .namefield label { margin-bottom: 2px; }
  .namefield input { font-size: 1.12rem; padding: 3px 0 6px; }
  .hero__actions { margin-top: 12px !important; }
  .hero__actions .link { display: none; }
  .chapter--turn .turn__intro { display: none; }
  .chapter--turn h2 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); }
  .chapter--turn .chapter__body { padding: 14px 14px 14px; }
  .chapter--turn .chapter__body > * + * { margin-top: 8px; }
  .layer__finishes button { flex-direction: row; align-items: center; gap: 8px; padding: 7px 8px; }
  .layer__finishes button i { width: 20px; height: 20px; }
  .layer__finishes b { min-height: 0; }
  .hold { min-height: 48px; margin-top: 8px; font-size: 0.96rem; }
}
@media (max-width: 820px) and (max-height: 600px) {
  .chapter--hero .chapter__body { top: 34svh; margin-top: 34svh; }
  .lede__more { display: none; }
  .chapter--hero .eyebrow { display: none; }
  .layer__note { display: none; }
  .chapter[data-ch="back"] .chapter__body > p:not(.eyebrow):not(:last-child) { display: none; } /* the list says it; the model stays in view */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scrollcue span { animation: none; }
  .js .phone:not(.is-in) { transform: none; opacity: 1; }
  * { transition-duration: 0.01ms !important; }
}

/* footer with its lists */
.foot--full { padding: clamp(48px, 6vw, 80px) 0 30px; }
.foot--full .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); gap: 36px clamp(32px, 6vw, 96px); align-items: start; }
.foot__brand p { margin-top: 14px; max-width: 17rem; line-height: 1.5; }
.foot--full .foot__cols { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.foot__cols h2 { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: #8f99b0; line-height: 1.4; }
.foot__cols ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.foot__cols a { display: inline-block; padding: 5px 0; color: #d5dbe8; text-decoration: none; }
.foot__cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot__legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(246, 243, 236, 0.12); color: #8f99b0; font-size: 0.82rem; }
.foot__legal a { color: #b9c2d6; }
@media (max-width: 1100px) { .foot--full .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { .foot--full .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* five links need more room than four: the menu takes over a little earlier */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .menu { display: block; margin-left: auto; position: static; }
  .menu nav { left: 12px; right: 12px; top: calc(100% + 4px); min-width: 0; padding: 6px; }
  .menu nav a { padding: 13px 14px; }
}
