/* Creative Sync — site styles
   Tokens first. Every colour, type and spacing decision on the site comes from here. */

/* fonts: self-hosted, latin subset, SIL Open Font License (assets/fonts/OFL-*.txt) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  /* colour */
  --bg: #000000;          /* page ground */
  --bg-2: #0d0d0d;        /* raised panels, tiles */
  --bg-3: #161616;        /* frames, cards */
  --fg: #f2f0ec;          /* primary type, off-white */
  --fg-2: #cfcac2;        /* secondary type */
  --muted: #8a867f;       /* captions, meta */
  --line: #1f1f1f;        /* rules and borders, kept faint */
  --purple: #9345f9;      /* brand purple, from the logo */
  --teal: #3bbebe;        /* brand teal, from the logo */
  --teal-soft: #7fbcc0;   /* teal for text on black (passes contrast) */
  --paper: #f2f0ec;       /* white sections */
  --ink: #000000;         /* type on white sections */

  /* type */
  --display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* scale */
  --t-hero: clamp(44px, 6.6vw, 96px);
  --t-h1: clamp(36px, 4.4vw, 64px);
  --t-h2: clamp(28px, 3vw, 44px);
  --t-h3: clamp(22px, 2.2vw, 32px);
  --t-lead: clamp(17px, 1.4vw, 20px);
  --t-body: 16px;
  --t-small: 13px;
  --t-label: 11px;

  /* layout */
  --gutter: clamp(20px, 3.3vw, 48px);
  --max: 1440px;
  --gap: 20px;
  --radius: 0px;      /* square. No rounded corners anywhere on the site */
  --radius-s: 0px;

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: .6s;
  --dur-slow: .9s;

  /* the S mark as a mask: the Work tile "window" rest state */
  --mark-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjgwIDgwIDk0MCA4MjAiPjxwYXRoIGRhdGEtbWFyaz0icHVycGxlIiBmaWxsPSIjZmZmIiBkPSJNNzQ2LjA0LDY1NC42bC0zNTUuNzUtLjI3Yy03My41NywwLTEzNy4zOC0yNi4zNy0xODkuNjEtNzguMzYtNTIuMTMtNTIuNC03OC41My0xMTYuMjQtNzguNTMtMTg5LjgxczI2LjM1LTEzNy4wMSw3OC4zNC0xODkuMjdjNTIuNDMtNTIuMTYsMTE2LjI2LTc4LjU2LDE4OS44MS03OC41Nmw1MTkuOC0uMWMzNi40MywwLDY2LjA3LDI5LjY0LDY2LjA3LDY2LjA3cy0yOS42NCw2Ni4wNy02Ni4wNyw2Ni4wN2wtNTE5LjgtLjFjLTM4LjM5LDAtNjguOSwxMi43MS05Ni4wMyw0MC4wMi0yNy4yMSwyNy4yMS0zOS44NCw1Ny42NC0zOS44NCw5NS44NnMxMi42Myw2OS4wMiwzOS43NSw5Ni4xM2MyNy4xNCwyNy4xNCw1Ny42OSwzOS43Nyw5Ni4xMywzOS43N2wzNTUuNzUtLjA1YzM2LjU1LDAsNjYuMjksMjkuNzQsNjYuMjksNjYuMjlzLTI5Ljc0LDY2LjI5LTY2LjI5LDY2LjI5Wk0zOTAuMjksMTY4LjY4Yy01OS43NSwwLTExMS42NCwyMS40Ni0xNTQuMjEsNjMuODEtNDIuMTUsNDIuMzgtNjMuNTksOTQuMTItNjMuNTksMTUzLjY3czIxLjQ2LDExMS42Nyw2My43OCwxNTQuMjFjNDIuMzgsNDIuMTgsOTQuMjQsNjMuNjEsMTU0LjAyLDYzLjYxbDM1Ny43Ny4zN2M2Ljc4LS4xLDEzLjk0LTcuMjUsMTMuOTQtMTYuMDVzLTYuNjEtMTUuMzktMTQuOTItMTUuOTNsLTEuNDcuMDJoLTM1NS4zMWMtNTEuOTYsMC05NS4wNS0xNy44Mi0xMzEuNzItNTQuNTItMzYuNjctMzYuNjctNTQuNDktNzkuNzYtNTQuNDktMTMxLjcyczE3Ljg1LTk0LjcxLDU0LjU0LTEzMS40YzM2LjYyLTM2Ljg3LDc5Ljc0LTU0LjgxLDEzMS42Ny01NC44MWw1MjEuMjcuMDJjNy45OS0uNzQsMTQuMjYtNy40NywxNC4yNi0xNS42NnMtNi40Mi0xNS4wNy0xNC41NS0xNS42OGwtMi4yNC4wNUgzOTAuMjlaIi8+IDxwYXRoIGRhdGEtbWFyaz0idGVhbCIgZmlsbD0iI2ZmZiIgZD0iTTIwNS42NCw4NTMuOGMtMzYuNDMsMC02Ni4wNy0yOS42NC02Ni4wNy02Ni4wNywwLTI4LjIyLDE3Ljc3LTUyLjMzLDQyLjctNjEuNzksMCwwLDguNzEtMy4zMiwxNC43Ny00LjA4LDYuMDctLjc2LDEwLjQtLjIyLDEwLjQtLjIyaDUyMC41NGMzOC4zOSwwLDY4LjktMTIuNzEsOTYuMDEtNDAuMDQsMjcuMjMtMjcuMTksMzkuODctNTcuNjIsMzkuODctOTUuODRzLTEyLjYzLTY5LjAyLTM5Ljc1LTk2LjEzYy0yNy4xNC0yNy4xNC01Ny42OS0zOS43Ny05Ni4xMy0zOS43NywwLDAtMzUzLjYzLDIuNS0zNjMuMTMsMC05LjUtMi41LTE0LjU1LTUuOS0xNC41NS01LjktMjQuNjMtOS43MS00MS45My0zMy43LTQxLjkzLTYxLjMsMC00MC4xNCwzNi4zMy03Mi4yNiw3Ny4zNS02NS4wNmgzNDIuMjZjNzMuNTcsMCwxMzcuMzgsMjYuMzcsMTg5LjYxLDc4LjM2bC4xLjFjNTIuMDQsNTIuMzEsNzguNDMsMTE2LjE0LDc4LjQzLDE4OS43MXMtMjYuMzUsMTM2Ljk4LTc4LjM0LDE4OS4yN2MtNTIuNCw1Mi4xMy0xMTYuMjQsNzguNTMtMTg5LjgxLDc4LjUzbC01MjIuMzMuMjVaTTIwNC40Niw3NzIuMDVjLTguMTQuNTktMTQuNTUsNy40LTE0LjU1LDE1LjY4czcuMDUsMTUuNzMsMTUuNzMsMTUuNzNsNTIyLjMzLS4yNWM1OS43OCwwLDExMS42Ny0yMS40NiwxNTQuMjEtNjMuNzgsNDIuMTUtNDIuNCw2My41OS05NC4xNCw2My41OS0xNTMuNjdzLTIxLjQzLTExMS42NC02My43NC0xNTQuMTdjLTQyLjQ3LTQyLjI1LTk0LjMxLTYzLjY2LTE1NC4wNy02My42NmwtMzUwLjIyLS42MWMtMTEuMjgtMi40OC0xOS4wMiw1LjYzLTE5LjA1LDE1LjM0LDAsOC4xNCw2LjQ0LDE0Ljk0LDE0LjY3LDE1LjQ5bDE5LjA1LDEuMzhoMzM1LjU1YzUxLjk2LDAsOTUuMDUsMTcuODIsMTMxLjcyLDU0LjUyLDM2LjY3LDM2LjY3LDU0LjQ5LDc5Ljc2LDU0LjQ5LDEzMS43MnMtMTcuODUsOTQuNzEtNTQuNTQsMTMxLjM4Yy0zNi42MiwzNi44Ny03OS43MSw1NC44NC0xMzEuNjcsNTQuODRsLTUyMy41MS4wN1oiLz48L3N2Zz4=");

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: var(--t-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 50; background: var(--fg); color: var(--ink); padding: 10px 16px; font-size: 15px; }
.skip:focus { top: 12px; }
::selection { background: var(--purple); color: #fff; }

.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* type */
h1, h2, h3, .display { font-family: var(--display); font-weight: 300; letter-spacing: -.035em; line-height: 1; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-h1); } h2 { font-size: var(--t-h2); letter-spacing: -.02em; } h3, .h3 { font-size: var(--t-h3); letter-spacing: -.02em; }
.hero-title { font-size: var(--t-hero); line-height: .98; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--fg-2); }
.muted { color: var(--muted); }
.label { font-size: var(--t-small); color: var(--muted); }
.accent { color: var(--teal-soft); }
.num { font-family: var(--display); font-weight: 300; font-size: var(--t-small); color: var(--teal-soft); font-variant-numeric: tabular-nums; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 0; background: var(--fg); color: var(--ink); border: 0; border-radius: var(--radius-s); padding: 13px 22px; font-size: 15px; font-weight: 500; cursor: pointer; overflow: hidden; transition: padding .3s var(--ease); }
.btn::after { content: ""; width: 0; height: 1px; background: currentColor; margin-left: 0; transition: width .3s var(--ease), margin-left .3s var(--ease); }
.btn:hover { opacity: 1; padding-right: 18px; }
.btn:hover::after { width: 18px; margin-left: 12px; }
.btn.purple { background: var(--purple); color: #fff; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.on-paper { background: var(--ink); color: var(--paper); }
.link { font-size: 15px; color: var(--teal-soft); }

/* site header: logo left, nav and CTA right. Sticky; slides away while reading down, returns on scroll up */
.site-head { position: sticky; top: 0; z-index: 60; transition: transform .45s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease); }
.site-head.solid { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.site-head.away { transform: translateY(-100%); box-shadow: none; }
.top { display: flex; align-items: center; gap: 36px; padding-block: 28px; transition: padding .4s var(--ease); }
.site-head.solid .top { padding-block: 14px; }
.top .logo { display: block; margin-right: auto; }
.top .logo svg { width: clamp(176px, 15vw, 232px); height: auto; display: block; overflow: visible; transition: width .4s var(--ease); }
.site-head.solid .logo svg { width: clamp(144px, 11vw, 172px); }
.primary { display: flex; gap: 32px; }
.primary a, .menu-btn { font-size: 15px; font-weight: 500; }
.primary a[aria-current="page"] { color: var(--teal-soft); }
.menu-btn { display: none; background: none; border: 0; padding: 10px 0; color: var(--fg); cursor: pointer; }
@media (max-width: 860px) { .primary, .head-cta { display: none; } .menu-btn { display: block; } }

/* phone menu: full-screen black panel under the header, large links like the footer */
.menu-panel { position: fixed; inset: 0; z-index: 55; background: var(--bg); padding: 150px max(var(--gutter), env(safe-area-inset-left, 0px)) 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 36px; overflow-y: auto; }
.menu-panel[hidden] { display: none; }
.menu-panel .big a { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(40px, 11vw, 64px); line-height: 1.15; letter-spacing: -.03em; }
.menu-panel .big a[aria-current="page"] { color: var(--teal-soft); }
body.menu-open { overflow: hidden; }
body.menu-open .site-head { transform: none; background: var(--bg); }


/* logo motion: Sync in on first load, magnet on hover */
.logo [data-mark="purple"], .logo [data-mark="teal"] { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease); }
.logo:hover [data-mark="purple"] { transform: translate(-40px, -30px); }
.logo:hover [data-mark="teal"] { transform: translate(40px, 30px); }
body.intro .logo [data-mark="purple"] { animation: cs-slL 1.1s var(--ease) both; }
body.intro .logo [data-mark="teal"] { animation: cs-slR 1.1s var(--ease) .12s both; }
body.intro .logo [data-wordmark] { animation: cs-rise .8s var(--ease) .7s both; }
@keyframes cs-slL { from { transform: translateX(-900px); opacity: 0; } }
@keyframes cs-slR { from { transform: translateX(900px); opacity: 0; } }
@keyframes cs-rise { from { transform: translateY(140px); opacity: 0; } }

/* sections */
.section { padding-block: clamp(96px, 12vw, 180px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 40px; }
.section-head.strong { border-color: var(--fg); }

/* services strip */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.service { border-top: 1px solid var(--line); padding-top: 24px; }
.service .num { display: block; margin-bottom: 40px; color: var(--muted); }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--muted); }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }

/* stone-lay work grid: 12 columns, 40px rows */
.stone { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 40px; grid-auto-flow: row dense; gap: var(--gap); }
/* tile sizes, set per project in content/projects.json; all on a 4-column module so the grid always packs */
.tile.large { grid-column: span 8; grid-row: span 12; }
.tile.wide { grid-column: span 8; grid-row: span 6; }
.tile.tall { grid-column: span 4; grid-row: span 12; }
.tile.small { grid-column: span 4; grid-row: span 6; }
.stone.more .tile { grid-column: span 4; grid-row: span 8; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); display: block; }
.tile .ph { position: absolute; inset: 0; background: var(--ph, #1b1917); transition: transform var(--dur-slow) var(--ease), opacity var(--dur) var(--ease); }
.tile .ph.win { -webkit-mask: var(--mark-mask) no-repeat center / 115% auto; mask: var(--mark-mask) no-repeat center / 115% auto; }
.tile .ph.full { opacity: 0; transform: scale(1.06); }
.tile:hover .ph.full, .tile:focus-visible .ph.full { opacity: 1; transform: none; }
.tile:hover .ph.win { opacity: 0; }
.tile .t { position: absolute; left: 22px; bottom: 22px; font-size: 15px; color: var(--fg); z-index: 2; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.tile .s { position: absolute; left: 22px; bottom: 44px; font-size: var(--t-small); color: var(--fg-2); z-index: 2; opacity: 0; transition: opacity .4s var(--ease) .05s; }
.tile:hover .t, .tile:focus-visible .t, .tile:hover .s, .tile:focus-visible .s { opacity: 1; transform: none; }
@media (hover: none) { .tile .t, .tile .s { opacity: 1; transform: none; } }
.tile:hover { opacity: 1; }
div.tile { cursor: default; }
@media (max-width: 760px) { .stone { grid-auto-rows: 32px; } .stone .tile { grid-column: 1 / -1 !important; grid-row: auto / span 8 !important; } }

/* white contrast band */
.band { background: var(--paper); color: var(--ink); text-align: left; padding-block: clamp(110px, 13vw, 180px); }
.band .display { font-size: clamp(32px, 4.5vw, 64px); line-height: 1.08; letter-spacing: -.03em; max-width: 18ch; }
.band .display span { color: #8f8b84; }
.band .display a { font-weight: 500; }

/* footer */
.foot { margin: 0 var(--gutter); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); display: grid; grid-template-columns: 1.1fr .8fr 1.3fr; column-gap: 48px; row-gap: 40px; }
.foot .big a { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.35; letter-spacing: -.02em; }
.foot .mini { font-size: 15px; color: var(--fg-2); line-height: 1.8; }
.foot .mini a { display: block; }
.foot .cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: 24px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.foot .cols a, .foot .cols span { margin-bottom: 10px; }
.foot .cols a, .foot .cols span { display: block; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter) max(40px, env(safe-area-inset-bottom, 0px)); font-size: var(--t-small); color: #7a766f; }
.legal .abn { color: #5f5b55; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s } .reveal.d2 { transition-delay: .2s } .reveal.d3 { transition-delay: .3s }

/* custom cursor: dot and ring, difference blend, desktop only */
#cs-cursor, #cs-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 100; border-radius: 50%; transform: translate(-50%, -50%); mix-blend-mode: difference; display: none; }
#cs-cursor { width: 5px; height: 5px; background: #fff; }
#cs-ring { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.7); transition: width .25s, height .25s, opacity .25s; }
#cs-ring.big { width: 64px; height: 64px; }
@media (hover: hover) and (pointer: fine) { body.cursor { cursor: none; } body.cursor a, body.cursor button { cursor: none; } #cs-cursor, #cs-ring { display: block; } }

/* browser frame and phone frame for site previews */
.browser { background: var(--bg-3); border: 1px solid var(--line); border-radius: 0; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.browser .bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #1b1b1b; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.browser .bar i:nth-child(1) { background: #ff5f57 } .browser .bar i:nth-child(2) { background: #febc2e } .browser .bar i:nth-child(3) { background: #28c840 }
.browser .bar span { margin-left: 12px; flex: 1; height: 20px; border-radius: 0; background: #0f0f0f; font-size: 12px; line-height: 20px; color: var(--muted); padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser .view { position: relative; overflow: hidden; aspect-ratio: 16/10; background: #fff; }
.browser .view img, .browser .view canvas { position: absolute; left: 0; top: 0; width: 100%; height: auto; will-change: transform; }

/* case study modules */
.stream { display: grid; gap: 28px; min-width: 0; }
.mod { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.mod .cap { position: absolute; left: 16px; bottom: 14px; font-size: var(--t-small); color: var(--fg-2); text-shadow: 0 1px 8px rgba(0,0,0,.7); z-index: 2; }
.mod.wide { aspect-ratio: 21/9; } .mod.std { aspect-ratio: 16/9; } .mod.half { aspect-ratio: 4/3; }
.mods2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 760px) { .mods2 { grid-template-columns: 1fr; } }
.pin-track { height: 280vh; }
.pin-track .browser { position: sticky; top: 10vh; }
@media (max-width: 860px) { .pin-track { height: auto; } .pin-track .browser { position: static; } }
.index { position: sticky; top: 0; z-index: 5; display: flex; gap: 26px; padding: 16px 0; background: linear-gradient(var(--bg) 70%, transparent); font-size: 15px; overflow-x: auto; }
.index a { color: var(--muted); white-space: nowrap; } .index a.on { color: var(--teal-soft); }

/* book flip */
.flip { height: 320vh; }
.flip .stage { position: sticky; top: 10vh; height: 80vh; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(ellipse 60% 70% at 50% 60%, rgba(147,69,249,.14), transparent 70%), var(--bg-2); display: grid; place-items: center; perspective: 2200px; overflow: hidden; }
.book3d { position: relative; width: min(26vw, 300px); aspect-ratio: 3/4.2; transform-style: preserve-3d; transform: translateX(0) rotateX(8deg); transition: transform .5s var(--ease); }
.book3d.open { transform: translateX(50%) rotateX(8deg); } .book3d.done { transform: translateX(100%) rotateX(8deg); }
.leaf { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; will-change: transform; }
.face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 0 3px 3px 0; overflow: hidden; background: #f2efe8; box-shadow: inset 6px 0 14px rgba(0,0,0,.08); }
.face img { width: 100%; height: 100%; object-fit: cover; }
.face.back { transform: rotateY(180deg); border-radius: 3px 0 0 3px; box-shadow: inset -6px 0 14px rgba(0,0,0,.08); }
.bookbase { position: absolute; inset: 0; background: #e8e4da; border-radius: 0 3px 3px 0; box-shadow: 12px 14px 40px rgba(0,0,0,.6); transform: translateZ(-2px); }
.flip .prog { position: absolute; top: 16px; right: 18px; font-size: var(--t-small); color: var(--muted); }
@media (max-width: 860px) { .flip { height: 220vh; } .book3d { width: 34vw; } }

/* shelf of publications */
.shelf { aspect-ratio: 16/7; display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 0 20px 34px; perspective: 1400px; background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(59,190,190,.14), transparent 70%), var(--bg-2); }
.shelf .book { width: 10%; aspect-ratio: 3/4.2; border-radius: 0 3px 3px 0; transform: rotateY(-18deg); transform-origin: left; box-shadow: 12px 18px 40px rgba(0,0,0,.6), inset 6px 0 10px rgba(0,0,0,.35); display: grid; align-content: end; padding: 8px; font: 500 clamp(9px, 1.2vw, 15px)/1 var(--display); color: #fff; transition: transform .5s var(--ease); background: var(--ph, #333); }
.shelf .book:hover { transform: rotateY(-6deg) translateY(-12px) scale(1.06); }

/* forms */
.field { display: grid; gap: 8px; }
.field label { font-size: var(--t-small); color: var(--muted); }
.field input, .field select, .field textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); padding: 12px 0; font: inherit; border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field select option { background: var(--bg-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.copy { background: none; border: 0; padding: 0 0 0 10px; color: var(--muted); font-size: var(--t-small); cursor: pointer; }
.copy:hover { color: var(--fg); }
.contact-list dt { font-size: var(--t-small); color: var(--muted); margin-top: 22px; }
.contact-list dd { margin: 4px 0 0; }

/* accordion */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 60px 1fr auto; align-items: baseline; gap: 20px; padding: 26px 0; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .num { font-size: var(--t-small); }
.acc summary h2, .acc summary h3 { font-size: var(--t-h3); }
.acc summary .plus { font-family: var(--display); font-weight: 300; font-size: 28px; color: var(--muted); transition: transform .3s var(--ease); }
.acc details[open] .plus { transform: rotate(45deg); }
.acc .body { padding: 0 0 30px 80px; color: var(--fg-2); max-width: 70ch; }
.acc .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.acc .tags { color: var(--muted); font-size: 15px; }
.acc .tags span::after { content: "  ·  "; } .acc .tags span:last-child::after { content: ""; }
@media (max-width: 600px) { .acc summary { grid-template-columns: 40px 1fr auto; } .acc .body { padding-left: 0; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--bg-2); padding: 28px 22px; }
.stats b { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(40px, 5vw, 72px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* case study head, brief and pair */
.cs-head { margin-top: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--fg); row-gap: 20px; }
.cs-head h1 { grid-column: 1 / 10; line-height: 1.02; }
.cs-meta { grid-column: 10 / 13; align-self: end; font-size: 15px; line-height: 1.7; }
.cs-head + .mod { margin-top: 40px; }
.cs-brief { padding: clamp(72px, 9vw, 120px) 0 60px; row-gap: 16px; }
.cs-brief .label { grid-column: 1 / 5; padding-top: 12px; }
.cs-brief-body { grid-column: 5 / 13; }
.cs-statement { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 24px; }
.cs-brief .lead { max-width: 760px; }
.cs-pair { padding-bottom: 80px; row-gap: 32px; }
.cs-pair > div { grid-column: span 4; border-top: 1px solid var(--line); padding-top: 20px; }
.cs-pair > div:first-child { grid-column: 5 / 9; }
.cs-pair .label { margin-bottom: 12px; } .cs-pair .label.out { color: var(--purple); } .cs-pair .label.in { color: var(--teal-soft); }
.cs-pair p { color: var(--fg-2); font-size: 18px; }
@media (max-width: 860px) { .cs-head h1, .cs-meta, .cs-brief .label, .cs-brief-body, .cs-pair > div, .cs-pair > div:first-child { grid-column: 1 / -1; } }

/* the mark in a panel (About) */
.mark-panel { width: 52%; } .mark-panel svg { width: 100%; height: auto; display: block; }

/* 404: the strokes drifted apart */
.lost { min-height: 70vh; display: grid; align-content: center; justify-items: start; gap: 24px; padding-block: 60px 140px; }
.lost-mark svg { width: clamp(140px, 18vw, 220px); height: auto; overflow: visible; }
.lost-mark { padding: 40px 0 20px 50px; }
.lost-mark [data-mark="purple"] { transform: translate(-160px, -110px); }
.lost-mark [data-mark="teal"] { transform: translate(160px, 110px); }
.lost-links { display: flex; gap: 12px; flex-wrap: wrap; }

.legal-page { padding-bottom: clamp(96px, 12vw, 180px); max-width: 900px; margin-left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  body.intro .logo * { animation: none !important; }
  .logo:hover [data-mark] { transform: none; }
  .tile .ph, .browser .view img { transition: none; }
  .site-head, .top, .top .logo svg { transition: none; }
}
