@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/inter-tight-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-tight-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-tight-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inter-tight-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }
/* Spencer Shores, "Spec" direction: a spec sheet more than a website.
   Mono-led type, pixel icons, a rigid 12-column grid you can see, off-white and light gray,
   orange as the signal colour and black used once, on the care label. */
:root {
  --bg: #f2eee3;
  --stage: #e7e3d8;
  --ink: #231912;
  --ink2: #4b443c;
  --ink3: #6d665c;
  --ink4: #bebaaf;
  --rule: #d6d2c7;
  --col: #e3dfd4;
  --accent: #ff5a1f;
  --on-accent: #231912;
  --pad: 24px;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--ink); font: 12px/1.55 var(--mono); letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
canvas { display: block; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.caps { text-transform: uppercase; letter-spacing: 0.06em; }
.dim { color: var(--ink3); }
.acc { color: var(--accent); }
.sans { font-family: var(--sans); letter-spacing: -0.02em; }

/* pixel icons */
.px { display: inline-flex; vertical-align: middle; line-height: 0; }
.px svg { display: block; flex: none; } /* drawn at whole-pixel sizes by px.js; never scaled by CSS */

/* the grid: twelve columns, ruled, visible behind everything */
.page { margin: 0 var(--pad); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  background-image: linear-gradient(90deg, var(--col) 1px, transparent 1px); background-size: calc(100% / 12) 100%; background-position: -1px 0; }
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: 1px solid var(--rule); position: relative; }
.g > * { min-width: 0; }
.cell { padding: 14px 14px 16px; }
.ruled > * + * { box-shadow: inset 1px 0 var(--rule); }
.s1 { grid-column: span 1; } .s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; }
.s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; }
.s9 { grid-column: span 9; } .s10 { grid-column: span 10; } .s12 { grid-column: span 12; }
.fill { background: var(--bg); }

/* crosshairs and square marks on grid intersections, like film credits */
.x { position: absolute; width: 11px; height: 11px; pointer-events: none; z-index: 3; transform: translate(-50%, -50%); }
.x::before, .x::after { content: ''; position: absolute; background: var(--ink3); }
.x::before { left: 5px; top: 0; width: 1px; height: 11px; }
.x::after { top: 5px; left: 0; height: 1px; width: 11px; }
.sq { position: absolute; width: 4px; height: 4px; background: var(--ink3); transform: translate(-50%, -50%); pointer-events: none; z-index: 3; }

/* header */
.head { border-top: 0; min-height: 58px; align-items: stretch; }
.head > * { display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.wordmark { font: 700 22px/1 var(--sans); letter-spacing: -0.035em; }
.nav { gap: 0 !important; padding: 0 !important; }
.nav a, .nav span { flex: 1; height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 14px; box-shadow: inset 1px 0 var(--rule); }
.nav a:hover { background: var(--stage); }
.nav .on { box-shadow: inset 1px 0 var(--rule), inset 0 -2px 0 var(--accent); }
.nav .soon { color: var(--ink4); }
.nav b { font-weight: 400; color: var(--ink3); }
.brief { justify-content: space-between; background: var(--ink); color: var(--bg); }
.brief:hover { background: var(--accent); color: var(--on-accent); }

/* hero: the web on the light gray stage, with measurement overlays */
.hero { border-top: 1px solid var(--rule); }
.stage { position: relative; height: clamp(400px, calc(100vh - 58px - 176px), 720px); background: var(--stage); overflow: hidden; cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21'><path d='M10.5 0v21M0 10.5h21' stroke='%23ff5a1f' stroke-width='1.5'/></svg>") 10 10, crosshair; /* the usual + crosshair, in orange */ }
.stage .live { position: absolute; inset: 0; }
.stage .live canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.annot { position: absolute; inset: 0; pointer-events: none; z-index: 2; transition: transform 0.2s linear; }
.annot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.annot line { stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
/* each node is a zero-size point exactly on a line end: the square is centred on it, the label sits beside it */
.annot .node { position: absolute; width: 0; height: 0; white-space: nowrap; }
.annot .node::before { content: ''; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; background: var(--accent); }
.annot .node > span { position: absolute; left: 10px; top: -10px; background: var(--bg); padding: 1px 5px; }
.annot .base { position: absolute; transform: translate(-50%, 0); background: var(--bg); border: 1px solid var(--rule); padding: 3px 8px; white-space: nowrap; }
.tagline { position: absolute; z-index: 2; background: var(--bg); padding: 4px 8px; }
.tl { left: 14px; top: 14px; } .tr { right: 14px; top: 14px; }

/* the readout strip under the hero */
.strip > .cell { padding-top: 16px; padding-bottom: 18px; }
.formula { margin: 0 0 12px; font-size: 13px; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 76px 1fr 38px; gap: 10px; align-items: center; }
.bar i { height: 8px; background: var(--stage); position: relative; display: block; }
.bar i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--v, 0%); background: var(--ink); transition: width 0.15s linear; }
.bar[data-bar="breeze"] i::after { background: var(--accent); }
.bar span:last-child { text-align: right; }
.lede { margin: 0; font: 300 clamp(22px, 2vw, 28px)/1.16 var(--sans); letter-spacing: -0.02em; max-width: 560px; }
.modes { display: grid; }
.modes button { font: inherit; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink3); background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 7px 0; text-align: left; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.modes button .px { color: var(--ink4); }
.modes button:hover { color: var(--ink); }
.modes button.on { color: var(--ink); }
.modes button.on .px { color: var(--accent); }
.open { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 10px; border: 1px solid var(--ink); }
.open:hover { background: var(--ink); color: var(--bg); }
.open .cat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* sections */
.label { display: flex; flex-direction: column; gap: 8px; }
.label .n { color: var(--accent); }
.big { margin: 0; font: 300 clamp(22px, 2vw, 28px)/1.16 var(--sans); letter-spacing: -0.02em; }
.big.xl { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.14; letter-spacing: -0.025em; }
.kv { display: grid; grid-template-columns: auto 1fr; align-content: start; }
.kv > * { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.kv > :nth-child(odd) { color: var(--ink3); padding-right: 14px; }
.kv > :nth-child(even) { text-align: right; }
.about { padding-top: 40px; padding-bottom: 40px; }

/* departments: a catalogue index */
.idx { align-items: stretch; transition: background 0.15s; }
.idx:hover { background: var(--stage); }
.idx .no { font-size: 34px; line-height: 1; color: var(--ink3); }
.idx:hover .no { color: var(--accent); }
.idx h3 { margin: 0 0 6px; font: 500 20px/1.15 var(--sans); letter-spacing: -0.015em; display: flex; gap: 10px; align-items: center; }
.idx p { margin: 0; color: var(--ink2); }
.status { display: inline-flex; gap: 8px; align-items: center; }
.status::before { content: ''; width: 6px; height: 6px; background: var(--accent); }
.status.off::before { background: none; box-shadow: inset 0 0 0 1px var(--ink3); }
.thumb { padding: 0 !important; position: relative; min-height: 150px; background: var(--stage); }
.thumb .live { position: absolute; inset: 0; }
.thumb .live canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.thumb .wip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink3); }
.idx.later h3, .idx.later p { color: var(--ink3); }

/* lookbook */
.lookframe { position: relative; height: clamp(380px, 62vh, 620px); padding: 0 !important; background: var(--stage); }
.lookframe .live { position: absolute; inset: 0; }
.lookframe .live canvas { width: 100%; height: 100%; }
.side { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }

/* care label: the one black object on the page */
.care { padding-top: 56px; padding-bottom: 56px; align-items: center; }
.labelcard { background: #111; color: #eae6db; padding: 30px 32px 28px; position: relative; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 40px -24px rgba(0, 0, 0, 0.35); }
.labelcard::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(0deg, #111 0 2px, #2c2018 2px 4px); }
.labelcard .icons { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 22px; color: #eae6db; }
.labelcard ul { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.55; letter-spacing: 0.05em; }
.labelcard .foot { display: flex; justify-content: space-between; margin-top: 18px; color: #8d8b86; font-size: 10px; letter-spacing: 0.08em; }

/* journal */
.entry { align-items: stretch; }
.entry:hover { background: var(--stage); }
.entry h3 { margin: 0; font: 500 20px/1.2 var(--sans); letter-spacing: -0.015em; }
.entry p { margin: 0; color: var(--ink2); }

/* contact as a credits block */
.credits { padding: 56px 14px 44px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.credits .rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 2px; text-transform: uppercase; letter-spacing: 0.06em; width: min(620px, 100%); }
.credits .rows > :nth-child(odd) { text-align: right; color: var(--ink3); }
.credits .rows > :nth-child(even) { text-align: left; }
.credits .cta { display: inline-flex; gap: 14px; align-items: center; padding: 14px 20px; background: var(--accent); color: var(--on-accent); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.credits .cta:hover { background: var(--ink); color: var(--bg); }
.credits .legal { color: var(--ink3); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; max-width: 560px; }

/* footer: stripe, then the wordmark on the tunnel */
.stripe { height: 8px; background-image: repeating-linear-gradient(-45deg, var(--accent) 0 8px, transparent 8px 16px); border-top: 1px solid var(--rule); }
.wordbox { position: relative; overflow: hidden; padding: 40px 14px 0; margin: 0 calc(-1 * var(--pad)); padding-left: calc(var(--pad) + 14px); }
.wordbox .live { position: absolute; inset: 0; }
.wordbox .live canvas { width: 100%; height: 100%; }
.wordbox .name { position: relative; font: 700 14.2vw/0.8 var(--sans); letter-spacing: -0.06em; white-space: nowrap; color: var(--accent); margin-left: -0.04em; }

@media (max-width: 900px) {
  .g { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .page { background-size: calc(100% / 6) 100%; }
  .m6 { grid-column: span 6 !important; }
  .m3 { grid-column: span 3 !important; }
  .m2 { grid-column: span 2 !important; }
  .m4 { grid-column: span 4 !important; }
  .ruled > .m6 { box-shadow: inset 0 1px var(--rule); }
  .hidem { display: none !important; }
}
@media (max-width: 600px) {
  :root { --pad: 12px; }
  .wordmark { font-size: 19px; }
  .nav a, .nav span { padding: 0 8px; font-size: 10.5px; white-space: nowrap; justify-content: center; }
  .nav b { display: none; }
  .head { min-height: 0; }
  .head > .wordmark { min-height: 52px; }
  .head > .nav { min-height: 40px; box-shadow: inset 0 1px var(--rule); }
  .nav { overflow-x: auto; }
  .lede { font-size: 21px; }
  .stage { height: 64vh; min-height: 420px; }
  .annot .node:nth-of-type(n+3) { display: none; }
  .labelcard { padding: 22px 20px; }
  .labelcard ul { font-size: 12.5px; }
  .credits .rows { grid-template-columns: 1fr; }
  .credits .rows > * { text-align: center !important; }
  .credits .rows > :nth-child(even) { margin-bottom: 8px; }
}

/* horizontal rows (departments, journal) hide the column guides and keep only their main breaks */
.idx, .entry, .rowfill { background: var(--bg); }
.idx:hover, .entry:hover { background: var(--stage); }
.bl { box-shadow: inset 1px 0 var(--rule); }
@media (max-width: 900px) { .bl.m6 { box-shadow: none; } }
.modes button .px { width: 18px; justify-content: flex-start; flex: none; }

/* the page ends on the orange marks over off-white, with the name in white on top */
.wordbox { background: var(--bg); }
.wordbox .name { color: var(--bg); }
/* the legal line sits flush left in the contact column, not centred */
.credits .legal { align-self: stretch; text-align: left; max-width: none; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }
/* nothing sits on a column guide: content cells are solid, so only the cell dividers show behind type and shapes */
.cell, .credits { background: var(--bg); }
.idx:hover .cell, .entry:hover .cell { background: var(--stage); }

/* track record: reference points from the founder's experience */
.trk .val { font: 500 34px/1 var(--mono); letter-spacing: -0.02em; }
.trk h3 { margin: 0 0 6px; font: 500 20px/1.2 var(--sans); letter-spacing: -0.015em; }
.trk p { margin: 0; color: var(--ink2); }
.trk .tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; align-content: flex-start; }
.trk .tags span { background: var(--stage); padding: 6px calc(6px - 0.06em) 6px 6px; line-height: 1; display: inline-block; }
.trk:hover .val { color: var(--accent); }
.trk { background: var(--bg); }

/* services sheet */
.svc h3, .disc h3 { margin: 0 0 12px; font: 500 20px/1.2 var(--sans); letter-spacing: -0.015em; display: flex; gap: 10px; align-items: center; }
.svc ol { margin: 0; padding: 0; list-style: none; }
.svc li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); }
.svc li b { font-weight: 400; color: var(--ink3); }
.disc p { margin: 0; color: var(--ink2); }
.disc > .cell { padding-bottom: 22px; }
/* assembly title */
.asm-title { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: 28px; padding-bottom: 24px; }
.asm-title h1 { margin: 0; font: 700 clamp(56px, 6.4vw, 104px)/0.88 var(--sans); letter-spacing: -0.055em; }
.asm-title h1 .px { margin-bottom: 18px; }
.asm-stage { height: auto; min-height: 560px; }
.credits .rows a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.credits .rows a:hover { color: var(--accent); }
/* track record rows get room to breathe */
.trk > .cell { padding-top: 28px; padding-bottom: 30px; }
.trk h3 { margin-bottom: 8px; }
#record .rowfill > .cell { padding-top: 22px; padding-bottom: 26px; }
/* more air: track record rows and the services sheet */
.trk > .cell { padding-top: 40px; padding-bottom: 42px; }
#record .rowfill > .cell { padding-top: 32px; padding-bottom: 36px; }
#services .rowfill > .cell { padding-top: 32px; padding-bottom: 36px; }
.svc > .cell { padding-top: 30px; padding-bottom: 36px; }
.svc h3 { margin-bottom: 18px; }
.svc li { padding: 13px 0; }

/* care: principles as care-label rows, in the same grid language as the other sections */
#care .rowfill > .cell { padding-top: 32px; padding-bottom: 36px; }
.care-row { background: var(--bg); }
.care-row > .cell { padding-top: 28px; padding-bottom: 30px; }
.care-row .px { color: var(--ink); }
.care-row:hover .px { color: var(--accent); }
.care-row h3 { margin: 0 0 8px; font: 500 15px/1.3 var(--mono); letter-spacing: 0.06em; }
.care-row p { margin: 0; color: var(--ink2); max-width: 560px; }

/* large icons are sized per pixel, so every icon in a set has the same dot size whatever its shape */
.care-row > .cell:first-child { display: flex; align-items: center; justify-content: center; }

/* care as five columns, one per instruction */
.care-cols > .cell { padding-top: 32px; padding-bottom: 36px; }
.care-col { display: flex; flex-direction: column; gap: 10px; }
.care-col .ic { display: flex; align-items: flex-end; height: 40px; margin: 8px 0 14px; color: var(--ink); }
.care-col:hover .ic { color: var(--accent); }
.care-col h3 { margin: 0; font: 500 14px/1.35 var(--mono); letter-spacing: 0.06em; }
.care-col p { margin: 6px 0 0; color: var(--ink2); }
@media (max-width: 900px) { .care-cols > .care-col:last-child { grid-column: span 6; } .care-cols > .cell { box-shadow: inset 0 1px var(--rule), inset 1px 0 var(--rule); } }
.care-col h3 { min-height: 2.7em; } /* two-line titles keep codes and notes on one baseline across the row */
.care-cols > .care-col { padding-top: 14px; } /* code sits as close to the top edge as to the left */
/* track record: short inset dividers between number, title, note and tags, stopping short of the row rules */
.trk > .cell { position: relative; }
.trk > .cell + .cell::before { content: ''; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px; background: var(--rule); }
@media (max-width: 900px) { .trk > .cell:nth-child(3)::before, .trk > .cell:nth-child(4)::before { display: none; } }
.trk > .cell.tags::before { display: none; }

/* phones and small tablets: the grid stacks, so the desktop breathing room becomes dead space.
   Tighter, consistent padding keeps each item's parts reading as one unit. */
@media (max-width: 900px) {
  .cell { padding: 12px 14px 14px; }
  .label { gap: 4px; }
  .about { padding-top: 6px; padding-bottom: 18px; }
  #record .rowfill > .cell, #services .rowfill > .cell, #care .rowfill > .cell { padding-top: 14px; padding-bottom: 16px; }
  #record .rowfill > .cell:first-child, #services .rowfill > .cell:first-child, #care .rowfill > .cell:first-child { padding-bottom: 0; }
  .trk > .cell { padding-top: 6px; padding-bottom: 6px; }
  .trk > .cell:nth-child(1), .trk > .cell:nth-child(2) { padding-top: 18px; }
  .trk > .cell:last-child { padding-bottom: 18px; padding-top: 10px; }
  .trk .val { font-size: 28px; }
  .svc > .cell { padding-top: 16px; padding-bottom: 14px; }
  .svc h3 { margin-bottom: 10px; }
  .svc li { padding: 9px 0; }
  .care-cols > .cell, .care-cols > .care-col { padding: 14px; }
  .care-col .ic { height: auto; margin: 4px 0 6px; }
  .care-col h3 { min-height: 0; }
  .idx > .cell { padding-top: 12px; padding-bottom: 12px; }
  .idx .no { font-size: 28px; }
  .thumb { min-height: 120px; }
  .lookframe { height: 46vh; min-height: 300px; }
  .side { gap: 10px; }
  .entry > .cell { padding-top: 10px; padding-bottom: 10px; }
  .credits { padding: 28px 14px 24px; gap: 18px; }
  .strip > .cell { padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 900px) {
  .care-cols > .care-col:last-child { grid-column: span 6 !important; }
  .credits .x:nth-last-of-type(-n+2) { display: none; }
}
/* phone: departments stack into three bands (name, brief, status + pattern), ruled apart */
@media (max-width: 900px) {
  .idx > .cell:nth-child(3) { box-shadow: inset 0 1px var(--rule); }
  .idx > .cell:nth-child(4) { box-shadow: inset 0 1px var(--rule); }
  .idx > .thumb { box-shadow: inset 0 1px var(--rule), inset 1px 0 var(--rule); }
}
@media (max-width: 900px) { .idx .status { align-items: flex-start; } .idx .status::before { flex: none; margin-top: 0.45em; } }

/* simplified track record: number, title, one line of detail */
.trk > .cell { padding-top: 24px; padding-bottom: 24px; }
.trk h3 { margin: 0; }
.trk .meta { display: flex; align-items: center; }
.trk > .cell.meta::before { display: none; }
.trk .val { font-size: 30px; }
.care-col h3 { min-height: 0; }
.care-cols > .cell { padding-bottom: 22px; }
@media (max-width: 900px) {
  .trk > .cell { padding-top: 14px; padding-bottom: 6px; }
  .trk > .cell.meta { padding-top: 0; padding-bottom: 14px; }
  .trk > .cell:nth-child(2)::before { display: none; }
}
/* header: solid, so no column guides run behind the name or nav; nav items share one cell, no dividers between them */
.head { background: var(--bg); }
.nav a, .nav span { box-shadow: none; flex: none; padding: 0 14px; }
.nav a:first-child, .nav span:first-child { padding-left: 14px; }
.nav .on { box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 600px) { .nav a, .nav span { flex: 1; padding: 0 8px; } }
.care-col h3 { font-size: 12px; font-weight: 400; line-height: 1.55; letter-spacing: 0.06em; } /* same size as the label column */

/* contact: details on the left, the brief on the right */
.contact-info { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding-top: 28px; padding-bottom: 20px; }
.ci { display: grid; grid-template-columns: 130px 1fr; row-gap: 0; }
.ci > * { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.ci > :nth-child(odd) { color: var(--ink3); }
.ci a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ci a:hover { color: var(--accent); }
.contact-info .legal { margin: 0; color: var(--ink3); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-cta { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 28px; padding-top: 28px; padding-bottom: 20px; }
.contact-cta .cta { display: inline-flex; gap: 14px; align-items: center; padding: 14px 20px; background: var(--accent); color: var(--on-accent); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-cta .cta:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 900px) { .contact-cta { padding-top: 18px; } .contact-info { padding-top: 16px; } }
/* ASCII patterns are live text: real characters on the engine's grid */
.livetext { position: absolute; inset: 0; margin: 0; overflow: hidden; white-space: pre; font-kerning: none; font-variant-ligatures: none; text-rendering: optimizeSpeed; pointer-events: none; }

.annot .node i { font-style: normal; }

/* ---------- hero overlay options ---------- */
.ov { position: absolute; inset: 0; pointer-events: none; z-index: 2; display: none; }
.ov-corner { display: block; }
.ov b { font-weight: 500; }
/* A: a spec block in the corner, ruled like the rest of the page */
.ov-corner { inset: auto 14px 14px auto; width: 240px; background: var(--bg); border: 1px solid var(--rule); }
.ov-corner .ov-h { display: flex; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.ov-corner .ov-h > :first-child { color: var(--accent); }
.ov-kv { display: grid; grid-template-columns: 1fr auto; padding: 0 10px; }
.ov-kv > * { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.ov-kv > :nth-last-child(-n+2) { border-bottom: 0; }
.ov-kv > :nth-child(odd) { color: var(--ink3); }
/* B: a crosshair that follows the cursor, with a ruled tag */
.ov-cross .cx-h { position: absolute; left: 0; right: 0; top: var(--py, 50%); height: 1px; background: var(--rule); }
.ov-cross .cx-v { position: absolute; top: 0; bottom: 0; left: var(--px, 50%); width: 1px; background: var(--rule); }
.ov-cross .cx-box { position: absolute; left: calc(var(--px, 50%) + 10px); top: calc(var(--py, 50%) + 10px); display: grid; gap: 2px; background: var(--bg); border: 1px solid var(--rule); padding: 6px 9px; white-space: nowrap; }
.ov-cross .cx-box > :first-child { color: var(--accent); }
.ov-cross .cx-box i { font-style: normal; color: var(--ink3); }
.ov-cross::after { content: ''; position: absolute; left: var(--px, 50%); top: var(--py, 50%); width: 7px; height: 7px; margin: -3px 0 0 -3px; background: var(--accent); }
/* C: tick rulers along the edges, with markers at the cursor */
.ov-ruler .rl-top, .ov-ruler .rl-left { position: absolute; background-repeat: repeat; }
.ov-ruler .rl-top { left: 0; right: 0; top: 0; height: 12px; background-image: linear-gradient(90deg, var(--ink4) 1px, transparent 1px), linear-gradient(90deg, var(--ink3) 1px, transparent 1px); background-size: 12px 6px, 120px 12px; background-repeat: repeat-x; }
.ov-ruler .rl-left { top: 0; bottom: 0; left: 0; width: 12px; background-image: linear-gradient(var(--ink4) 1px, transparent 1px), linear-gradient(var(--ink3) 1px, transparent 1px); background-size: 6px 12px, 12px 120px; background-repeat: repeat-y; }
.ov-ruler .rl-mx { position: absolute; top: 0; left: var(--px, 50%); width: 2px; height: 18px; margin-left: -1px; background: var(--accent); }
.ov-ruler .rl-my { position: absolute; left: 0; top: var(--py, 50%); height: 2px; width: 18px; margin-top: -1px; background: var(--accent); }
.ov-ruler .rl-read { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 16px; background: var(--bg); padding: 4px 8px; }
.ov-ruler .rl-read i { font-style: normal; color: var(--ink3); }
/* D: a row of readout cells across the foot of the stage, like the header */
.ov-strip { inset: auto 0 0 0; display: none; grid-template-columns: repeat(5, 1fr); background: var(--bg); border-top: 1px solid var(--rule); }
.stage[data-ov="strip"] .ov-strip { display: grid; }
.ov-strip > span { padding: 9px 14px; display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; overflow: hidden; }
.ov-strip > span + span { box-shadow: inset 1px 0 var(--rule); }
.ov-strip > span:first-child b { color: var(--accent); }
.stage .tagline.tr { display: none; }
@media (max-width: 600px) { .ov-strip { grid-template-columns: repeat(3, 1fr); } .ov-strip > span:nth-child(n+4) { display: none; } .ov-corner { width: 200px; } }

/* impact: the cursor's push on the scene, drawn in orange on the 24px grid */
.impact { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* numbered section headers sit on a light gray band, so each section starts clearly */
:root { --head: #eae6db; }
.g.hd, .g.hd > .cell, .g.hd .credits { background: var(--head); }

.head > * { white-space: nowrap; }

/* ---------- further pages: Supply Room, Journal, Brief ---------- */
.cta { display: inline-flex; gap: 14px; align-items: center; padding: 14px 20px; background: var(--accent); color: var(--on-accent); font: inherit; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; border: 0; cursor: pointer; }
.cta:hover { background: var(--ink); color: var(--bg); }
.lookgrid > .lookcell { display: flex; flex-direction: column; background: var(--bg); }
.lookgrid > .lookcell + .lookcell { box-shadow: inset 1px 0 var(--rule); }
.thumb.square { width: 100%; aspect-ratio: 1 / 1; min-height: 0; flex: none; }
.lookcell h3 { margin: 0 0 8px; font: 500 20px/1.2 var(--sans); letter-spacing: -0.015em; display: flex; gap: 10px; align-items: center; }
.lookcell p { margin: 0; color: var(--ink2); }
.lookcell:hover { background: var(--stage); }
.lookcell:hover .cell { background: var(--stage); }
.post-title { margin: 0; font: 700 clamp(36px, 4.2vw, 64px)/0.95 var(--sans); letter-spacing: -0.045em; }
.post { padding-top: 36px; padding-bottom: 44px; }
.post p { margin: 0 0 18px; max-width: 620px; font: 400 17px/1.5 var(--sans); letter-spacing: -0.005em; color: var(--ink); }
.post .cta { margin-top: 10px; }
.kv a, .label a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.briefform { display: grid; gap: 22px; padding-top: 28px; padding-bottom: 40px; }
.briefform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.briefform label { display: grid; gap: 8px; }
.briefform label > span, .briefform legend { color: var(--ink3); }
.briefform input:not([type=radio]), .briefform textarea { font: 400 15px/1.4 var(--mono); color: var(--ink); background: var(--stage); border: 0; border-bottom: 1px solid var(--ink3); padding: 12px; width: 100%; border-radius: 0; }
.briefform input:focus, .briefform textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.briefform .bad { border-bottom-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.briefform textarea { resize: vertical; }
.briefform ::placeholder { color: var(--ink3); opacity: 1; }
.briefform fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.briefform legend { padding: 0; margin-bottom: 8px; }
.briefform .pick { display: inline-flex; grid-template-columns: none; }
.briefform .pick input { position: absolute; opacity: 0; pointer-events: none; }
.briefform .pick span { padding: 10px 12px; background: var(--stage); color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
.briefform .pick input:checked + span { background: var(--ink); color: var(--bg); }
.briefform .pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.briefform .send { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.briefform .send[hidden], .briefform .sent[hidden] { display: none; }
.briefform .send a { text-decoration: underline; text-underline-offset: 3px; }
.briefform .hp { position: absolute; left: -9999px; }
.briefform .sent { display: grid; gap: 12px; }
@media (max-width: 900px) {
  .lookgrid > .lookcell { grid-column: span 3 !important; box-shadow: inset 0 1px var(--rule); }
  .lookgrid > .lookcell:nth-child(even) { box-shadow: inset 0 1px var(--rule), inset 1px 0 var(--rule); }
  .briefform .row2 { grid-template-columns: 1fr; }
  .post-title { font-size: 40px; }
}
.thumb.square::before { content: ""; display: block; padding-top: 100%; }

/* ---------- v2: story sections ---------- */
/* the promise under the hero */
.promise { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.lede.xl { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 400; max-width: 760px; }
.promise p.caps { margin: 0; }
.tally-note { margin: 12px 0 0; }
.about .sub { margin: 22px 0 0; max-width: 640px; color: var(--ink2); font: 400 16px/1.5 var(--sans); letter-spacing: -0.005em; }

/* procedure: four stages, each a level that fills */
#procedure .rowfill > .cell, #departments .rowfill > .cell, #journal .rowfill > .cell { padding-top: 32px; padding-bottom: 36px; }
.proc > .step { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; padding-bottom: 22px; background: var(--bg); transition: background .15s; }
.proc > .step:hover { background: var(--stage); }
.step-top { display: flex; justify-content: space-between; align-items: center; }
.lvl { display: inline-flex; gap: 3px; }
.lvl i { width: 8px; height: 8px; box-shadow: inset 0 0 0 1px var(--ink3); }
.lvl i.on { background: var(--accent); box-shadow: none; }
.step h3 { margin: 18px 0 0; font: 500 clamp(28px, 2.6vw, 40px)/1 var(--sans); letter-spacing: -0.035em; }
.step p { margin: 0; color: var(--ink2); font: 400 15px/1.45 var(--sans); letter-spacing: -0.005em; flex: 1; }
.out { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); }
.out dt { color: var(--ink3); }
.out dd { margin: 0; }

/* proof band */
.proof > .cell { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding-top: 28px; padding-bottom: 36px; }
.proof .thumb { min-height: 300px; }
.proof .thumb .tagline { color: var(--ink2); }

/* founder's file */
.founder > .cell { padding-top: 24px; padding-bottom: 26px; }
.founder h3 { margin: 0 0 8px; font: 500 20px/1.2 var(--sans); letter-spacing: -0.015em; }
.founder p { margin: 0; color: var(--ink2); max-width: 560px; }
.notes-hd { border-top: 1px solid var(--rule); }
.notes-hd > .cell { padding-top: 28px; padding-bottom: 14px; }
.notes > .note { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; padding-bottom: 26px; }
.notes .note b { font-weight: 500; }
.notes .note p { margin: 0; font: 400 19px/1.3 var(--sans); letter-spacing: -0.015em; }
.notes .note:hover b { color: var(--ink); }

/* inspection stamp */
.stamp { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 14px 7px; border: 2px solid var(--accent); color: var(--accent); background: var(--bg); transform: rotate(-4deg); line-height: 1; }
.stamp > span { font: 700 30px/1 var(--mono); letter-spacing: 0.08em; }
.stamp small { font-size: 9.5px; letter-spacing: 0.08em; }
.stamp.small > span { font-size: 18px; }
.hero-stamp { position: absolute; right: 28px; top: 26px; z-index: 4; transform: rotate(-6deg) scale(1); transform-origin: 50% 50%; animation: stampin .32s cubic-bezier(.2,1.6,.4,1) both; pointer-events: none; } /* top right, clear of the scene */
.hero-stamp[hidden] { display: none; }
@keyframes stampin { from { transform: rotate(-14deg) scale(1.9); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-stamp { animation: none; } }
.cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
/* the inspection seal: QC in the middle, "inspected by hand" round the rim */
.seal { width: 96px; height: 96px; color: var(--accent); transform: rotate(-8deg); flex: none; }
.seal-ring { font: 500 8.6px/1 var(--mono); letter-spacing: 0; fill: currentColor; text-transform: uppercase; }
.seal-qc { font: 700 21px/1 var(--mono); letter-spacing: 0.06em; fill: currentColor; }

@media (max-width: 900px) {
  .proc > .step + .step, .notes > .note + .note { box-shadow: inset 0 1px var(--rule); }
  .step h3 { margin-top: 6px; }
  .proof .thumb { min-height: 220px; }
  .notes .note p { font-size: 17px; }
  #procedure .rowfill > .cell, #departments .rowfill > .cell, #journal .rowfill > .cell { padding-top: 14px; padding-bottom: 16px; }
}

/* day and night: night scenes put the hero on a dark stage; the page around it stays light */
.stage { transition: background-color .35s ease; }
.stage.night { background: #231912; }
.stage.night .x::before, .stage.night .x::after, .stage.night .sq { background: #8f8d88; }
@media (prefers-reduced-motion: reduce) { .stage { transition: none; } }

/* a quiet way on to the rest of a section, on its own page */
.about .more { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.about .more:hover { color: var(--accent); border-color: var(--accent); }
.about .ci { max-width: 640px; }
.about .rd-list { margin-top: 18px; line-height: 1.8; }
.entry .thumb { min-height: 200px; }
.motiongrid h3 .count { font-size: 11px; margin-left: 6px; vertical-align: middle; }
.motiongrid h3 .count { font-size: 11px; margin-left: 6px; vertical-align: middle; }
/* studio site */
.worktile .code, .lookcell .code { display: block; margin-bottom: 8px; }
.capgrid .outs { margin-top: 14px; line-height: 1.7; }
.stat { display: block; font: 300 clamp(30px, 3.4vw, 52px)/1 var(--sans, 'Inter Tight', sans-serif); letter-spacing: -0.02em; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font: inherit; background: none; border: 1px solid var(--rule); padding: 6px 12px; color: var(--ink); cursor: pointer; }
.chip.on, .chip:hover { border-color: var(--accent); color: var(--accent); }
.workrow[hidden] { display: none; }
.case-hero h1 { margin: 14px 0 22px; }
.more-big { font: 300 clamp(26px, 3vw, 44px)/1.1 var(--sans, 'Inter Tight', sans-serif); text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 16px; }
.more-big:hover { color: var(--accent); }
/* real photos */
.thumb img, .photo img, .fig .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.square img { position: absolute; }
.photo { cursor: default; }
.case-hero .ci { margin-top: 28px; }
.gallery .fig { margin: 0; padding: 0; display: flex; flex-direction: column; }
.fig .ph { position: relative; background: var(--stage); overflow: hidden; }
.fig.f-sq .ph { aspect-ratio: 1 / 1; }
.fig.f-wide .ph { aspect-ratio: 2 / 1; }
.fig.f-half .ph { aspect-ratio: 3 / 2; }
.fig.f-full .ph { aspect-ratio: 21 / 9; }
.fig figcaption { padding-top: 12px; padding-bottom: 14px; }
@media (max-width: 760px) { .fig .ph { aspect-ratio: 3 / 2 !important; } .case-hero .photo { min-height: 300px; } }

/* photo rework: tall frames, video frames, and the contact-sheet strip */
.fig.f-tall .ph { aspect-ratio: 3 / 4; }
.fig .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet { border-top: 1px solid var(--rule); overflow: hidden; position: relative; background: var(--bg); }
.sheet-hd { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.sheet-track { display: flex; width: max-content; animation: sheet 90s linear infinite; }
.sheet:hover .sheet-track, .sheet:focus-within .sheet-track { animation-play-state: paused; }
.sheet-frame { flex: none; width: clamp(220px, 24vw, 360px); box-shadow: inset -1px 0 var(--rule); display: block; }
.sheet-frame .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stage); }
.sheet-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .35s ease; }
.sheet-frame:hover img, .sheet-frame:focus-visible img { filter: none; }
.sheet-frame .lab { display: flex; justify-content: space-between; padding: 8px 12px 10px; border-top: 1px solid var(--rule); }
.sheet-frame .lab b { font-weight: 500; color: var(--accent); }
@keyframes sheet { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sheet { overflow-x: auto; } .sheet-track { animation: none; } .sheet-track [aria-hidden] { display: none; } }

/* quiet end: no footer, the grid just closes */
.page > main { border-bottom: 1px solid var(--rule); }
.page { margin-bottom: 64px; }

/* photos keep their own proportions: justified rows, nothing cropped */
.jg .jrow { display: flex; border-top: 1px solid var(--rule); }
.jg .fig { flex: var(--a) 1 0; min-width: 0; margin: 0; display: flex; flex-direction: column; }
.jg .fig + .fig { box-shadow: inset 1px 0 var(--rule); }
.jg .fig .ph, .jg .fig.f-sq .ph { aspect-ratio: var(--a); }
@media (max-width: 760px) { .jg .jrow { flex-direction: column; } .jg .fig + .fig { box-shadow: inset 0 1px var(--rule); } .jg .fig .ph { aspect-ratio: var(--a) !important; } }
.case-hero .photo img { object-fit: contain; padding: 28px; }
.worktile .thumb.square { aspect-ratio: 3 / 2; }
.worktile .thumb.square::before { padding-top: 66.667%; }
.sheet-frame { width: auto; }
.sheet-frame .ph { aspect-ratio: auto; height: clamp(180px, 20vw, 280px); }
.sheet-frame img { position: static; width: auto; height: 100%; }

/* credits: one role per row */
.crd { grid-template-columns: minmax(160px, 260px) 1fr; max-width: 820px; }
.crd > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 760px) { .crd { grid-template-columns: 1fr; } .crd > :nth-child(odd) { padding-bottom: 0; border-bottom: 0; } }
.crd-wrap { display: grid; gap: 28px; }
.crd-h { display: block; color: var(--accent); padding-bottom: 9px; border-bottom: 1px solid var(--ink4); }
.crd-g .crd > :nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
.crd-wrap { max-width: 820px; }

/* gutters: each photo reads as its own piece */
.jg { padding: 20px; border-top: 1px solid var(--rule); background: var(--bg); display: grid; gap: 20px; }
.jg .jrow { gap: 20px; border-top: 0; }
.jg .fig + .fig { box-shadow: none; }
@media (max-width: 760px) { .jg { padding: 14px; gap: 14px; } .jg .jrow { gap: 14px; } .jg .fig + .fig { box-shadow: none; } }

/* dithered header: the lead image of each case study, full bleed inside the frame */
.case-head { border-top: 1px solid var(--rule); background: #231912; line-height: 0; }
.case-head img { display: block; width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; image-rendering: pixelated; }
.case-hero .case-ci { display: flex; flex-direction: column; justify-content: flex-end; }
.case-hero .case-ci .ci { margin-top: 0; }
@media (max-width: 760px) { .case-head img { aspect-ratio: 4 / 3; } }

/* numbered steps inside a case study */
.steps { border-top: 0; }
.steps > .step + .step { box-shadow: inset 1px 0 var(--rule); }
.step h3 { margin: 10px 0 8px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; }
.step p { margin: 0; color: var(--ink2); }
@media (max-width: 760px) { .steps > .step + .step { box-shadow: inset 0 1px var(--rule); } }

/* R & D: each animation sits on its own, with room around it */
.rd-grid > .lookcell .thumb.square { width: auto; margin: 20px 20px 0; }
@media (max-width: 760px) { .rd-grid > .lookcell .thumb.square { margin: 14px 14px 0; } }

/* what i do: one row per service, linked to the work that proves it */
.svc-row:hover, .svc-row:hover .cell { background: var(--bg); }
.svc-row h3 .px { color: var(--accent); }
.svc-proof { display: flex; flex-direction: column; gap: 6px; }
.svc-proof a { display: inline-flex; align-items: center; gap: 6px; }
.svc-proof a:hover { color: var(--accent); }

/* lab: one tool leads, its hidden toys sit beneath */
.lab-lead { background: var(--bg); }
.lab-lead:hover, .lab-lead:hover .cell { background: var(--stage); }
.lab-stage { padding: 20px; }
.lab-stage .thumb { height: 100%; min-height: 360px; }
.lab-copy { display: flex; flex-direction: column; gap: 14px; }
.lab-copy h3 { margin: 0; font: 500 34px/1.05 var(--sans); letter-spacing: -0.03em; }
.lab-copy .big { margin: 0; }
.lab-copy .more { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; }
.lab-sub .cell { padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 760px) { .lab-stage { padding: 14px; } .lab-stage .thumb { min-height: 240px; } }

/* what i do, simplified: service and one line */
.svc-row { background: var(--bg); }
.svc-row h3 { margin: 0; font: 500 20px/1.2 var(--sans); letter-spacing: -0.015em; display: flex; gap: 10px; align-items: center; }
.svc-row p { margin: 0; color: var(--ink2); font: 300 20px/1.35 var(--sans); letter-spacing: -0.01em; }
@media (max-width: 760px) { .svc-row p { font-size: 17px; } .svc-row > .cell + .cell { padding-top: 0; box-shadow: none; } }

/* padded images line up with the text inset (the .cell padding, 14px) */
.rd-grid > .lookcell .thumb.square { margin: 14px 14px 0; }
.lab-stage { padding: 14px; }
.jg { padding: 14px; gap: 14px; }
.jg .jrow { gap: 14px; }
.night-thumb { background: #231912; }
.crd a { text-decoration: underline; text-decoration-color: var(--ink4); text-underline-offset: 3px; }
.crd a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* previous / next project bar at the end of every case study */
.pager > a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); padding-top: 22px; padding-bottom: 26px; }
.pager > a:hover { background: var(--stage); color: var(--accent); }
.pager-next { align-items: flex-end; text-align: right; box-shadow: inset 1px 0 var(--rule); }
.pager-name { display: inline-flex; align-items: center; gap: 14px; font: 300 clamp(22px, 3vw, 44px)/1.1 var(--sans); letter-spacing: -0.02em; }
.px.flip { transform: scaleX(-1); }
@media (max-width: 760px) { .pager-name { font-size: 20px; gap: 10px; } }

/* work tiles: project code sits on the photo, top right */
.worktile .thumb { position: relative; }
.tile-tag { position: absolute; top: 12px; right: 12px; z-index: 2; color: #fff; text-shadow: 0 0 1px rgba(0,0,0,.55), 0 1px 8px rgba(0,0,0,.45); pointer-events: none; }
.tile-tag { top: 10px; right: 10px; padding: 5px 8px 4px; background: rgba(20, 20, 20, 0.55); text-shadow: none; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* one left hangline: section labels move to the top-right corner on desktop */
@media (min-width: 761px) {
  .g > .label:first-child {
    position: absolute; top: 0; right: 0; z-index: 1;
    width: calc(100% / 6); align-items: flex-end; text-align: right;
    background: transparent; box-shadow: none;
  }
  /* keep reading lines comfortable now that text starts at the edge */
  .g > .label:first-child ~ .about p, .g > .label:first-child ~ .cell > p:not(.big) { max-width: 760px; }
  .g > .label:first-child ~ .cell > p.big, .g > .label:first-child ~ .about p.big { max-width: 980px; }
  /* sub-headings stay as headings, on the hangline */
  .lab-sub > .label:first-child { position: static; width: auto; align-items: flex-start; text-align: left; grid-column: 1 / -1; }
  .lab-sub > .label:first-child + .cell { display: none; }
}
.work-all .more { display: inline-flex; gap: 8px; align-items: center; }

/* header nav: five equal buttons, light gray rule between each */
.nav { display: flex; }
.nav a, .nav span { flex: 1 1 0; justify-content: center; padding: 0 10px; box-shadow: inset 1px 0 var(--rule); white-space: nowrap; }
.nav a:first-child, .nav span:first-child { padding-left: 10px; }
.nav a:last-child { box-shadow: inset 1px 0 var(--rule), inset -1px 0 var(--rule); }
.nav .on { box-shadow: inset 1px 0 var(--rule), inset 0 -2px 0 var(--accent); }

/* nav labels sit left in their buttons */
.nav a, .nav span { justify-content: flex-start; padding: 0 14px; }
.nav a:first-child, .nav span:first-child { padding-left: 14px; }

/* every section header bar: same padding, same height */
@media (min-width: 761px) {
  .g.hd.rowfill > .cell, .g.hd > .cell { padding-top: 22px !important; padding-bottom: 26px !important; }
  .g.hd { min-height: 92px; }
  /* the [0x] label: one fixed inset from the top-right corner, everywhere */
  .g > .label:first-child { padding: 14px 14px 0 !important; }
}

/* Lab: the T-01 code sits in the top-right of the Supply Room box */
.lab-copy { position: relative; }
.lab-copy > .code { position: absolute; top: 14px; right: 14px; }
.lab-copy h3 { margin-top: 0; }
@media (min-width: 761px) {
  .g.hd.rowfill > .label:first-child, .g.hd > .label:first-child, .g > .label:first-child { padding: 14px 14px 0 !important; }
  .g > .label:first-child > span { line-height: 1; }
}

/* R & D: unpublished work wears an inspection sticker */
#rd .thumb { position: relative; }
.redact { position: absolute; left: 50%; top: 50%; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 16px 10px; background: #f2eee3; color: #231912; border: 1px solid #231912; outline: 3px solid #f2eee3;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; pointer-events: none; }
.redact b { font-weight: 500; font-size: 15px; letter-spacing: .12em; }
.redact span { font-size: 9.5px; color: var(--accent); }
.redact.r1 { transform: translate(-50%,-50%) rotate(-6deg); }
.redact.r2 { transform: translate(-46%,-58%) rotate(4deg); }
.redact.r3 { transform: translate(-54%,-44%) rotate(-3deg); }
.redact.r4 { transform: translate(-50%,-52%) rotate(7deg); }
@media (max-width: 760px) { .redact { padding: 9px 11px 8px; } .redact b { font-size: 12px; } .redact span { font-size: 8px; } }
.redact span, .redact b { white-space: nowrap; }
.thumb > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }

/* with the label lifted out, the row's last block runs to the right edge, so the label sits on the row's
   own background instead of over empty columns with the page guides showing through */
@media (min-width: 761px) {
  .g > .label:first-child { bottom: 0; background: var(--bg) !important; }
  .g.hd > .label:first-child { background: var(--head) !important; }
  .lab-sub > .label:first-child { background: transparent !important; }
}

/* footer: the inspection seal on top of a pile of process stickers */
.cta-row { align-items: center; }
.pile { position: relative; width: 330px; height: 190px; flex: none; }
.pile .seal { position: absolute; left: 118px; top: 46px; z-index: 6; width: 100px; height: 100px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.stk { position: absolute; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 12px 7px;
  font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 8px 16px -10px rgba(0,0,0,.45); }
.stk small { font-size: 8.5px; font-weight: 500; letter-spacing: .1em; opacity: .8; }
.stk-review { background: #231912; color: #f2eee3; }
.stk-review.r1 { left: 6px;  top: 10px; transform: rotate(-9deg); z-index: 1; }
.stk-review.r2 { left: 20px; top: 26px; transform: rotate(-3deg); z-index: 2; }
.stk-review.r3 { left: 34px; top: 42px; transform: rotate(5deg);  z-index: 3; }
.stk-revision { background: var(--accent); color: #231912; right: 8px; top: 4px; transform: rotate(7deg); z-index: 2; flex-direction: row; gap: 8px; }
.stk-revision b { font-weight: 700; }
.stk-final { background: #fff; color: #231912; border: 1px solid #231912; left: 14px; bottom: 8px; transform: rotate(4deg); z-index: 4; }
.stk-approved { background: #fff; color: var(--accent); border: 2px solid var(--accent); right: 2px; bottom: 18px; transform: rotate(-11deg); z-index: 5; font-size: 16px; font-weight: 700; padding: 9px 14px 8px; }
@media (max-width: 760px) { .pile { transform: scale(.82); transform-origin: left center; margin-right: -60px; } .cta-row { flex-wrap: wrap; gap: 18px; } }

/* ---------- one interaction system ----------
   cards (whole-tile links): the tile shades, the title turns orange, any arrow nudges forward
   arrow links (text + arrow): the text turns orange, the arrow nudges forward
   inline links (underlined): text and underline turn orange
   buttons: they swap to their opposite (black Start -> orange, orange CTA -> black) */
a .px[data-px="arrow"] { transition: transform .18s ease; }
a, a h3, .pager-name { transition: color .15s ease, background-color .15s ease; }

/* cards */
a.card:hover, a.card:focus-visible, a.lookcell:hover, a.lookcell:focus-visible, a.idx:hover, a.idx:focus-visible, .pager > a:hover, .pager > a:focus-visible { background: var(--stage); }
a.card:hover .cell, a.card:focus-visible .cell, a.lookcell:hover .cell, a.idx:hover .cell { background: var(--stage); }
a.card:hover h3, a.card:focus-visible h3, a.lookcell:hover h3, a.idx:hover h3, .pager > a:hover .pager-name, .pager > a:focus-visible .pager-name { color: var(--accent); }
a.card:hover .px[data-px="arrow"], a.lookcell:hover .px[data-px="arrow"], a.idx:hover .px[data-px="arrow"], .pager-next:hover .px[data-px="arrow"] { transform: translateX(4px); }
.pager-prev:hover .px.flip { transform: scaleX(-1) translateX(4px); }

/* arrow links */
a.more:hover, a.more:focus-visible, .more-big:hover, .svc-proof a:hover, a:hover > .more, a.card:hover .more { color: var(--accent); }
a.more:hover .px[data-px="arrow"], a.more:focus-visible .px[data-px="arrow"], a.card:hover .more .px[data-px="arrow"] { transform: translateX(4px); }

/* inline links */
.ci a:hover, .crd a:hover, .kv a:hover, .label a:hover, .about a:hover, .credits a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* buttons */
.brief:hover, .brief:focus-visible { background: var(--accent); color: var(--on-accent, #231912); }
.cta:hover, .cta:focus-visible, .contact-cta .cta:hover { background: var(--ink); color: var(--bg); }
.brief:hover .px[data-px="arrow"], .cta:hover .px[data-px="arrow"] { transform: translateX(4px); }

/* nav: shade only, no colour change, so the active underline stays the one orange thing */
.nav a:hover, .nav a:focus-visible { background: var(--stage); }

/* footer: list inset matches the left inset; copyright pinned to the bottom at the same inset */
#contact .contact-info { padding: 14px !important; justify-content: flex-start; gap: 0; }
#contact .contact-info .ci { margin-top: 0; }
#contact .contact-info .legal { margin-top: auto; padding-top: 28px; }

/* stickers: one row beside the button, each laid over the one before it, left to right, inside the row's height */
#contact .cta-row { flex-wrap: nowrap; gap: 26px; align-items: center; }
#contact .pile { position: relative; width: auto; height: 78px; display: flex; align-items: center; flex: 0 1 auto; transform: none; margin: 0; }
#contact .pile > * { position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; flex: none; }
#contact .pile > * + * { margin-left: -26px; }
#contact .pile .stk { font-size: 11px; padding: 7px 10px 6px; }
#contact .pile .stk small { font-size: 7.5px; }
#contact .pile .stk-review.r1 { transform: rotate(-8deg); z-index: 1; }
#contact .pile .stk-review.r2 { transform: rotate(-2deg) translateY(4px); z-index: 2; }
#contact .pile .stk-review.r3 { transform: rotate(6deg); z-index: 3; }
#contact .pile .stk-revision { transform: rotate(-5deg) translateY(-6px); z-index: 4; }
#contact .pile .stk-final { transform: rotate(4deg) translateY(6px); z-index: 5; }
#contact .pile .stk-approved { transform: rotate(-9deg); z-index: 6; font-size: 13px; padding: 8px 12px 7px; }
#contact .pile .seal { width: 78px; height: 78px; z-index: 7; transform: rotate(-8deg); margin-left: -20px; }
@media (max-width: 760px) {
  #contact .cta-row { flex-wrap: wrap; gap: 16px; }
  #contact .pile { transform: scale(.78); transform-origin: left center; margin-right: -90px; }
}
@media (min-width: 761px) {
  #contact > .label:first-child { background: transparent !important; bottom: auto; }
}
#contact .pile > * + * { margin-left: -10px; }
#contact .pile .stk-review.r2, #contact .pile .stk-review.r3 { margin-left: -58px; }
#contact .pile .seal { margin-left: -12px; }
@media (max-width: 760px) { #contact .pile { transform: scale(.7); margin-right: -140px; } }
#contact .pile .stk-approved { background: #231912; color: var(--accent); border-color: var(--accent); }
#contact .pile .stk-approved { transform: rotate(-9deg) translateY(-7px); }
#contact .pile .stk-final { border: 0; }
#contact .pile .stk-review.r1 { transform: rotate(-8deg) translateY(-15px); }
#contact .pile .stk-review.r2 { margin-left: -44px; transform: rotate(-2deg) translateY(1px); }
#contact .pile .stk-review.r3 { margin-left: -44px; transform: rotate(5deg) translateY(17px); }
/* bigger stickers to fill the row */
#contact .pile { height: 96px; }
#contact .pile .stk { font-size: 14px; padding: 9px 13px 8px; }
#contact .pile .stk small { font-size: 9.5px; }
#contact .pile .stk-approved { font-size: 17px; padding: 10px 15px 9px; }
#contact .pile .stk-review.r2, #contact .pile .stk-review.r3 { margin-left: -56px; }
#contact .pile .stk-review.r1 { transform: rotate(-8deg) translateY(-19px); }
#contact .pile .stk-review.r3 { transform: rotate(5deg) translateY(21px); }
#contact .pile { height: 78px; overflow: visible; }
@media (min-width: 761px) and (max-width: 1180px) { #contact .pile { transform: scale(.86); transform-origin: left center; margin-right: -70px; } }
/* Lab: the Supply Room animation runs full frame */
.lab-stage { padding: 0 !important; }
.lab-stage .thumb { height: 100%; min-height: 100%; }
@media (max-width: 760px) { .lab-stage .thumb { min-height: 240px; } }
/* Approved tucks further over Final.Final. */
#contact .pile .stk-approved { margin-left: -26px; transform: rotate(-9deg) translateY(-12px); }
#contact .pile .stk-approved { margin-left: -19px; }
#lab .rd-grid > .lookcell .thumb.square { margin: 0 !important; }
.g.hd.lab-sub { min-height: 0 !important; } .g.hd.lab-sub > .label { padding-top: 12px !important; padding-bottom: 12px !important; }
.g.hd.lab-sub > .label { padding: 14px !important; justify-content: center; }
.g.hd.lab-sub > .label > span { line-height: 1.2; }
.g.hd.rowfill.lab-sub > .label:first-child { padding: 14px !important; }
.g.hd.lab-sub > .label + .cell { display: none !important; }
@media (min-width: 761px) {
  main .g.hd:not(.lab-sub):not(#contact) { min-height: 0; }
  main .g.hd:not(.lab-sub):not(#contact) > .cell:not(.label) { padding-top: 22px !important; padding-bottom: 22px !important; }
  main .g.hd:not(.lab-sub):not(#contact) p.big { margin-top: 0; margin-bottom: 0; }
}

/* R & D page: the lantern turns full frame beside its spec */
.rd-hero { align-items: stretch; }
.rd-stage { position: relative; min-height: 520px; }
.rd-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.rd-copy { display: flex; flex-direction: column; gap: 16px; position: relative; }
.rd-copy h1 { margin: 0; font: 600 clamp(36px, 4.4vw, 64px)/1 var(--sans); letter-spacing: -0.04em; }
.rd-copy .big { margin: 0; }
.rd-copy .ci { margin-top: auto; }
@media (max-width: 760px) { .rd-stage { min-height: 320px; } }
#experiences .rd-grid > .lookcell .thumb.square { margin: 0 !important; }

/* Work tiles: the dithered header shows first; the photo fades in on hover */
.worktile .thumb .tile-dither, .worktile .thumb .tile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.worktile .thumb .tile-dither { image-rendering: pixelated; }
.worktile .thumb .tile-photo { opacity: 0; transition: opacity .35s ease; }
.worktile:hover .tile-photo, .worktile:focus-visible .tile-photo { opacity: 1; }
@media (hover: none) { .worktile .thumb .tile-photo { opacity: 1; } .worktile .thumb .tile-dither { display: none; } }
.lantern-live { position: absolute; inset: 0; background: #231912; }
.lantern-live canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* About: Colophon and Elsewhere share one row */
.duo { align-items: stretch; }
.duo > .duo-half { border-top: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.duo > .duo-half + .duo-half { box-shadow: inset 1px 0 var(--rule); }
.duo > .duo-half > .cell.about { grid-column: 1 / -1; padding-right: 120px; }
.duo .about .big { max-width: none !important; }
@media (max-width: 760px) { .duo > .duo-half { grid-column: 1 / -1; } .duo > .duo-half + .duo-half { box-shadow: inset 0 1px var(--rule); } .duo > .duo-half > .cell.about { padding-right: 14px; } }
@media (min-width: 761px) { .duo-half > .label:first-child { width: auto !important; white-space: nowrap; } }

/* hero HUD: status reads "Under review…" (breathing) until all three scenes are inspected, then "Passed" */
.qc-status { display: inline-flex; gap: 8px; align-items: baseline; white-space: nowrap; }
.qc-status .st-count { color: var(--ink3); }
.qc-status.reviewing .st-text { animation: review 1.8s ease-in-out infinite; }
.qc-status.reviewing .st-text::after { content: '…'; }
.qc-status.passed .st-text { color: var(--accent); animation: verdict .45s ease-out both; }
@keyframes review { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes verdict { from { opacity: 0; letter-spacing: .3em; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .qc-status .st-text { animation: none !important; } }

/* HUD: keep a gap so a long value never crowds its label */
.ov-kv { column-gap: 18px; grid-template-columns: max-content 1fr; }


/* hero on touch screens: a finger draws instead of scrolling the page */
[data-hero] { touch-action: none; -webkit-user-select: none; user-select: none; }

/* registration marks: double weight */
.x { width: 12px; height: 12px; }
.x::before { left: 5px; top: 0; width: 2px; height: 12px; }
.x::after { top: 5px; left: 0; height: 2px; width: 12px; }
/* gray marks on the Looks tiles */
.lookgrid .thumb { position: relative; }
.looks-x .x::before, .looks-x .x::after { background: #8f8d88; }
.looks-x .x { z-index: 4; }

/* footer stickers: desktop only */
@media (max-width: 760px) { #contact .pile { display: none; } }
/* Looks: marks sit on the tile corners and are clipped to L shapes, like the header stage */
.looks-x { overflow: hidden; }
/* footer: an orange rule separates it from the rest of the page */
#contact { border-top: 2px solid var(--accent) !important; }
.looks-x .x { width: 28px; height: 28px; }
.looks-x .x::before { left: 13px; top: 0; width: 2px; height: 28px; }
.looks-x .x::after { top: 13px; left: 0; height: 2px; width: 28px; }
.looks-x .x::before, .looks-x .x::after { background: #a9a7a1; }
.duo > .duo-half + .duo-half { border-left: 1px solid var(--rule); box-shadow: none; }
@media (max-width: 760px) { .duo > .duo-half + .duo-half { border-left: 0; border-top: 1px solid var(--rule); } }

/* Looks: smaller L marks with a heavier horizontal stroke */
.looks-x .x { width: 18px; height: 18px; }
.looks-x .x::before { left: 8px; top: 0; width: 2px; height: 18px; }
.looks-x .x::after { top: 7.5px; left: 0; height: 3px; width: 18px; }

/* mobile hero: the readout becomes one slim bar along the bottom edge: scene, then status */
@media (max-width: 760px) {
  .ov-corner { inset: auto 0 0 0; width: auto; border-left: 0; border-right: 0; border-bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
  .ov-corner .ov-h { border-bottom: 0; padding: 7px 0; gap: 10px; }
  .ov-corner .ov-h > :last-child { display: none; }
  .ov-corner .ov-kv { display: flex; padding: 0; }
  .ov-corner .ov-kv > * { display: none; border: 0; padding: 7px 0; }
  .ov-corner .ov-kv > :nth-last-child(1) { display: inline-flex; }
}

/* phones: the hero waits on a still frame; one quiet cue, gone on the first tap */
.tap-cue { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none;
  padding: 8px 12px; background: var(--bg); border: 1px solid var(--rule); color: var(--ink); white-space: nowrap; font-size: 11px; letter-spacing: .08em; }
.tap-cue .acc { color: var(--accent); }
.stage.asleep .tap-cue, .stage.again .tap-cue { display: block; }

/* the closing line wraps short of the corner label */
#contact .contact-cta .big { max-width: 17ch; }

/* the space under the last box matches the space either side of it */
.page { margin-bottom: var(--pad); }

/* a little more air between the place and the time */
.head i.px[data-px="clock"] { margin-left: 14px; }

/* each frame's saved first picture, shown until it is drawn live */
.live-poster, .live-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; z-index: 1; transition: opacity .3s; image-rendering: pixelated; }
.live-poster.gone { opacity: 0; }

/* the role and the result, under each project's line */
.row-meta { margin-top: 10px; font-size: 11px; }

/* archive: the role and the result get columns of their own */
.workrow .wr-role, .workrow .wr-stat { display: flex; flex-direction: column; gap: 8px; }
.workrow .wr-role p { color: var(--ink); font-size: 12px; }
.workrow .wr-stat .stat { font-size: clamp(24px, 2.2vw, 34px); }
.workrow .wr-stat p { font-size: 11px; }

/* growth arrows use the site's own pixel arrow */
.stat .stat-arr { margin: 0 .28em; vertical-align: .08em; }
.meta-arr { margin: 0 .4em; vertical-align: -1px; }

/* archive: the description keeps clear of the rule beside it */
.workrow > .cell.bl:nth-child(2) { padding-right: 28px; }
@media (max-width: 900px) { .workrow > .cell.bl:nth-child(2) { padding-right: 14px; } .workrow .wr-role.bl { box-shadow: inset 0 1px var(--rule); } .workrow .wr-stat.bl { box-shadow: inset 1px 0 var(--rule), inset 0 1px var(--rule); } }

/* tile text sits on the tile, so the rules drawn on the tile edges show the full height */
.lookgrid > .lookcell > .cell, .lookgrid > .lookcell:hover > .cell { background: transparent; }

/* about: the clockwork runs square to the right edge, its section label laid over it */
.has-sq > .sq-right { align-self: start; }
@media (min-width: 761px) { .has-sq > .label:first-child { z-index: 3; bottom: auto; background: transparent !important; } }

/* a section label laid over a black frame reads light */
@media (min-width: 761px) { .sq-night > .label:first-child { color: #e7e3d8; } }

/* Outcome and How it works read left to right: the label is the first column, and every column is equal */
@media (min-width: 761px) {
  .g.lead { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .g.lead > .label:first-child { position: static; width: auto; align-items: flex-start; text-align: left; background: var(--bg) !important; padding: 14px 14px 16px !important; }
  .g.lead > *, .g.lead > .steps > * { grid-column: auto !important; }
  .g.lead > .steps { display: contents; }
  .g.lead > * + *, .g.lead > .steps > * { box-shadow: inset 1px 0 var(--rule); }
}
@media (min-width: 761px) { .g.lead > * { background: var(--bg); } }

/* project pages: a section's own title sits on the left, in one column the width of the hangline, with the
   content beside it. Outcome and How it works keep that column and share the rest equally */
@media (min-width: 761px) {
  .g.titled > .label:first-child, .g.lead > .label:first-child { position: static; width: auto; grid-column: span 2; align-items: flex-start; text-align: left; background: var(--bg) !important; padding: 14px 14px 16px !important; z-index: auto; }
  .g.titled > .label:first-child + * { box-shadow: inset 1px 0 var(--rule); }
  .g.lead { grid-template-columns: calc(100% / 6); }
  .g.lead > .label:first-child { grid-column: auto !important; }
}

/* project codes carry the icon of each kind of work they belong to */
.code-ic { display: inline-flex; align-items: center; gap: 10px; }
.code-ic .ics { display: inline-flex; gap: 6px; }

/* supply room: rows of five stills, one source shown every way */
.lookgrid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lookgrid.five > .lookcell { grid-column: auto; }
.thumb > .sr-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
@media (max-width: 900px) { .lookgrid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sr-spec { grid-template-columns: minmax(120px, 16%) 1fr; }
.sr-spec > :nth-child(even) { text-align: left; color: var(--ink); }
@media (max-width: 900px) {
  .lookgrid.five > .lookcell { grid-column: span 1 !important; box-shadow: inset 0 1px var(--rule); }
  .lookgrid.five > .lookcell:nth-child(even) { box-shadow: inset 0 1px var(--rule), inset 1px 0 var(--rule); }
  .lookgrid.five > .lookcell:last-child:nth-child(odd) { grid-column: span 2 !important; }
}
@media (max-width: 900px) {
  /* an odd tile left over at the end of a two-up grid takes the whole row, so nothing hangs half-empty */
  .lookgrid > .lookcell:last-child:nth-child(odd) { grid-column: 1 / -1 !important; box-shadow: inset 0 1px var(--rule); }
  .lookgrid > .lookcell:last-child:nth-child(odd) .thumb.square { aspect-ratio: 2 / 1; }
  /* archive: the picture leads each project */
  .workrow > .thumb { order: -1; }
  .workrow > .cell:first-of-type { box-shadow: inset 0 1px var(--rule); }
}

/* Supply Room: the motion sets as a table, with one preview that follows the row */
.mprev { position: relative; background: var(--stage); }
.mprev .mp { position: absolute; inset: 0; display: none; }
.mprev .mp.on { display: block; }
.mtable { padding-top: 0; padding-bottom: 0; display: flex; flex-direction: column; }
.mrow { display: grid; grid-template-columns: minmax(0, 2.2fr) 0.8fr minmax(0, 5fr) 20px; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.mrow:last-child { border-bottom: 0; }
.mrow h3 { margin: 0; font: 500 20px/1.2 var(--sans); letter-spacing: -0.015em; }
.mrow p { margin: 0; color: var(--ink2); }
.mrow .px { opacity: 0; transition: opacity .15s; justify-self: end; }
.mrow.on h3, .mrow.on .px { color: var(--accent); }
.mrow.on .px, .mrow:hover .px { opacity: 1; }
.mhead { padding: 10px 0; font-size: 11px; }
.mtable .mrow:not(.mhead) { flex: 1; align-content: center; }
@media (max-width: 900px) {
  .mrow { grid-template-columns: minmax(0, 1fr) auto 20px; row-gap: 4px; }
  .mrow p { grid-column: 1 / -1; grid-row: 2; }
  .mhead span:nth-child(3) { display: none; }
}

/* About: the portrait fills its cell less an equal margin on every side, cropping to fit */
.pframe { container-type: inline-size; display: grid; padding: var(--pm) !important; --pm: 40px; }
.pframe .portrait { display: block; width: 100%; height: 100%; min-width: 0; min-height: calc(100cqw - 2 * var(--pm)); object-fit: cover; object-position: 50% 30%; justify-self: stretch; align-self: stretch; }
@media (max-width: 760px) {
  .pframe { padding: 20% 20% !important; box-shadow: inset 0 1px var(--rule); }
  .pframe .portrait { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
}
/* archive: the role sits under the project's name */
.workrow .wr-r { color: var(--ink); font-size: 12px; margin: 6px 0 10px; }
@media (max-width: 900px) { .workrow .wr-stat.bl { box-shadow: inset 0 1px var(--rule); } }

/* footer stickers sit flat, no shadow */
.pile .stk, .pile .seal { box-shadow: none !important; filter: none !important; }
/* an embedded post sits in a gallery cell like a photo */
.li-embed .ph { background: #fff; }
.li-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.li-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); }
.li-embed iframe { z-index: 1; }

/* diagrams sit on white with breathing room */
.fig.diagram .ph { background: #f2eee3; }
.fig.diagram .ph img { object-fit: contain; padding: 0; }
.approach-figs .jrow { margin-top: 16px; }
.approach-figs .sub { max-width: 640px; }
/* re:Invent sight-line diagrams, inside the approach */
.approach-figs .jrow { display: flex; gap: 12px; margin-top: 16px; }
.approach-figs .fig { margin: 0; flex: var(--a) 1 0; min-width: 0; }
.approach-figs .fig .ph { aspect-ratio: var(--a); }
@media (max-width: 760px) { .approach-figs .jrow { flex-direction: column; } .approach-figs .fig .ph { aspect-ratio: var(--a) !important; } }
/* sight-line diagrams read as small annotations, not heroes */
.approach-figs .jrow { gap: 20px; margin-top: 0; max-width: none; }
@media (max-width: 760px) { .approach-figs .jrow { flex-direction: row; flex-wrap: wrap; gap: 12px; } .approach-figs .fig { flex: 0 0 calc(50% - 6px); } .approach-figs .fig:last-child { flex-basis: 100%; } }
@media (max-width: 760px) { .approach-figs > .cell.bl { box-shadow: inset 0 1px var(--rule); } }
/* sight lines: copy and diagrams as two stacked rows */
.sl-stack { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.sl-row { padding: 14px 14px 16px; }
.sl-row + .sl-row { box-shadow: inset 0 1px var(--rule); }
.sl-figs .jrow { max-width: 1000px; }
@media (max-width: 760px) { .sl-stack { box-shadow: inset 0 1px var(--rule); } .sl-row { padding: 14px 14px 16px; } }
/* credits end on the rule before the last outcome figure */
@media (min-width: 761px) {
  .crd-wrap[style*="--span"] { max-width: none; width: calc(100% * var(--span) + 14px); }
  .crd-wrap[style*="--span"] .crd { max-width: none; }
}
/* LinkedIn can't be embedded here, so the post is a tile that links out */
.li-tile { display: flex !important; flex-direction: column; justify-content: space-between; padding: 22px 20px; background: var(--ink) !important; color: var(--bg); text-decoration: none; }
.li-tile .li-k { color: var(--ink4); }
.li-tile .li-t { font: 300 clamp(22px, 2.2vw, 34px)/1.12 var(--sans); letter-spacing: -0.02em; color: var(--bg); }
.li-tile .li-cta { color: var(--accent); display: inline-flex; gap: 8px; align-items: center; }
.li-tile:hover .li-t { color: var(--accent); }
.li-tile { background: linear-gradient(180deg, rgba(17,13,36,.0) 40%, rgba(17,13,36,.85) 100%), var(--img) center / cover no-repeat, #110d24 !important; justify-content: flex-end !important; gap: 18px; }
.li-tile .li-k { color: #f2eee3; }
.li-tile .li-play { align-self: center; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid #f2eee3; display: grid; place-items: center; }
.li-tile { background: #231912 !important; position: relative; }
.li-tile .li-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; z-index: 0; }
.li-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,25,18,0) 45%, rgba(35,25,18,.92) 100%); z-index: 0; }
.li-tile > span { position: relative; z-index: 1; }
/* the dithered build-out sits inset, as a framed image above the text */
.li-tile { justify-content: flex-start !important; gap: 16px; }
.li-tile::after { content: none; }
.li-tile .li-frame { position: relative; flex: 1 1 auto; min-height: 0; border: 1px solid rgba(242,238,227,.18); overflow: hidden; }
.li-tile .li-frame .li-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.li-tile .li-t { font-size: clamp(20px, 1.8vw, 28px); }
.mood-img img { display: block; width: 100%; height: auto; }

/* large windows: the gallery takes the same left column as the section titles, so photos sit in the content column */
@media (min-width: 1100px) {
  .gallery.jg { position: relative; padding-left: calc(100% / 6 + 20px); }
  .gallery.jg::before { content: 'Gallery'; position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% / 6); box-sizing: border-box; padding: 14px 14px 16px; box-shadow: inset -1px 0 var(--rule); text-transform: uppercase; letter-spacing: 0.06em; }
}

/* About: the intro and the paragraphs under it share one line length */
.g.has-sq > .label:first-child ~ .about p, .g.has-sq > .label:first-child ~ .about p.big { max-width: 860px; }

/* About: titles on the left like the project pages; the portrait gets its own frame that stops growing on wide windows */
@media (min-width: 761px) {
  .g.about-frame { grid-template-columns: calc(100% / 6) minmax(0, 1fr) min(calc(100% / 3), 600px); }
  .g.about-frame > * { grid-column: auto !important; }
  .g.about-frame > .pframe { box-shadow: inset 1px 0 var(--rule); align-self: stretch; }
  .g.about-frame > .pframe .portrait { align-self: start; min-height: 0; height: auto; aspect-ratio: 1 / 1; }
  .g.about-frame > .about { padding-right: 40px; }
}

/* About: the portrait sits under its section title */
.label .label-portrait { display: block; width: 100%; max-width: 200px; height: auto; aspect-ratio: 1 / 1; margin-top: 14px; text-transform: none; }
@media (max-width: 760px) { .label .label-portrait { max-width: 160px; margin-top: 12px; } }
