/* Dowel - style.css
   Colours and fonts live in :root. Sizes follow three widths: desktop (1200+), tablet (810-1199), phone (up to 809). */
:root {
  --bg: #ece8e1;          /* bone: page background */
  --ink: #161513;         /* text, buttons, footer */
  --mute: rgba(22, 21, 19, .5);
  --faint: rgba(22, 21, 19, .16);  /* inactive titles, the dim letters of a lead text */
  --line: rgba(22, 21, 19, .14);
  --on-ink: #ece8e1;      /* text on the dark footer and menu */
  --accent: #d4571f;      /* signal orange: small marks only */
  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --pad: 60px;            /* side margin */
  --gap: 20px;
  --radius: 0px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --head-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 600 20px/1.2 var(--font); letter-spacing: -.04em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
sup { font-size: .32em; vertical-align: top; position: relative; top: .12em; margin-left: .04em; letter-spacing: 0; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip, .sr { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; }

/* ---------- header (ours: logo, links in the middle, a button; Menu below 1024) ---------- */
.head { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 32px; transition: background-color .4s, box-shadow .4s, transform .5s var(--ease); }
.head.is-solid { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.head.is-hidden { transform: translateY(-100%); }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -.05em; text-transform: uppercase; justify-self: start; }
.logo sup { font-size: .5em; top: .05em; }
.nav { display: flex; gap: 36px; }
.nav a, .menu-btn { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.head-cta { justify-self: end; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; overflow: hidden; position: relative; }
.menu-btn { display: none; justify-self: end; height: 40px; }
body.legal-page .head:not(.is-solid) { color: var(--on-ink); }
body.legal-page .head:not(.is-solid) .head-cta { background: var(--on-ink); color: var(--ink); }
body.menu-open .head { background: transparent; box-shadow: none; color: var(--on-ink); }

/* menu: a dark curtain fades over the page, the links follow (as the reference) */
.menu { position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--on-ink); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity .45s ease; }
.menu.on { opacity: 1; }
[hidden] { display: none !important; } /* the menu, select list and other hidden layers must never catch clicks */
.menu-nav { display: flex; flex-direction: column; align-items: center; }
.menu-nav a { font-size: clamp(40px, 9vw, 64px); font-weight: 800; text-transform: uppercase; letter-spacing: -.05em; line-height: 1.12; opacity: 0; transform: translateY(25px); transition: opacity .6s ease, transform .8s var(--ease); }
.menu.on .menu-nav a { opacity: 1; transform: none; }
.menu.on .menu-nav a:nth-child(2) { transition-delay: .05s; } .menu.on .menu-nav a:nth-child(3) { transition-delay: .1s; }
.menu.on .menu-nav a:nth-child(4) { transition-delay: .15s; } .menu.on .menu-nav a:nth-child(5) { transition-delay: .2s; }
.menu-nav a[aria-current] { color: var(--accent); }
.menu-foot { position: absolute; bottom: 28px; left: 20px; right: 20px; display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; opacity: .7; }

/* ---------- hero (ours: an object on a light ground, the name grows out of the bottom edge) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; padding: calc(var(--head-h) + 32px) 32px 0; overflow: hidden; }
.hero-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; position: relative; z-index: 3; }
.hero-intro { font-size: 24px; font-weight: 700; line-height: 1.1; max-width: 380px; }
.hero-list { grid-column: 3; justify-self: end; width: 260px; }
.hero-lab { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; color: var(--mute); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.hero-list ol { margin-bottom: 18px; }
.hero-list li a { display: flex; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; transition: padding .5s var(--ease), color .3s; }
.hero-list li a span { color: var(--mute); font-variant-numeric: tabular-nums; }
.hero-list li a:hover { padding-left: 8px; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
.hero-cta svg { transition: transform .5s var(--ease); }
.hero-cta:hover svg { transform: translateX(5px); }
.hero-photo { position: absolute; left: 50%; top: calc(var(--head-h) + 32px); bottom: calc(var(--name-h, 22vw) * .5 + 22px); width: min(30vw, 440px); transform: translateX(-50%); z-index: 1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: calc(100% + 14px); bottom: calc(var(--name-h, 22vw) * .5 + 8px); width: 140px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; color: var(--mute); }
.hero-name { position: absolute; left: 32px; right: 32px; bottom: 0; z-index: 2; font-size: 26vw; font-weight: 900; line-height: .74; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; bottom: 22px; } /* gaps come from main.js 5a (even nearest points) */
.hero-name > span { display: inline-block; padding: .3em .2em .16em; margin: -.3em -.2em -.16em; clip-path: inset(0); } /* one clip for the whole name: letters can overlap each other, only the bottom edge hides them */
.hero-name sup { font-size: .26em; top: .1em; font-weight: 800; margin-left: -.55em; }
.hero-name .ch { display: inline-block; vertical-align: top; }
.hero-name .ch > i { display: inline-block; font-style: normal; }
/* hero entrance: the letters rise together out of the bottom edge, the photo rises the same way out of its own bottom edge, the small texts appear at 1.2 s */
.hero-photo { clip-path: inset(0 -400px 0 0); } /* hides the photo below its bottom edge, the caption on the right stays visible */
.js .hero-photo img { transform: translateY(100%); transition: transform 1.1s var(--ease) .35s; } /* Davor 21.11.: no fade, the photo rises from below together with the name */
.js body:has(.hero:not(.go)) .head { transform: translateY(-100%); } /* Davor 21.11.: the header drops in from the top at the same moment as the name */
.js body:has(.hero.go) .head { animation: head-drop 1.1s var(--ease) .47s backwards; }
@keyframes head-drop { from { transform: translateY(-100%); } to { transform: none; } }
.js .hero-name .ch > i { transform: translateY(1.05em); transition: transform 1.1s var(--ease) .47s; } /* all letters rise together, no stagger (Davor 20.11.); start just after the photo (Davor 21.11.) */
/* Davor 21.11.: the small texts slide in from the sides (no fade): left ones from the left edge, right ones from the right edge */
.js .hero-intro[data-hero-fade] { transform: translateX(calc(-100% - 48px)); }
.js .hero-list[data-hero-fade], .js .hero-photo figcaption[data-hero-fade] { transform: translateX(100vw); }
.js [data-hero-fade] { transition: transform 1.1s var(--ease) 1.1s; }
.hero.go .hero-photo img { transform: none; }
.hero.go .hero-name .ch > i { transform: none; }
.js .hero-name sup.ch > i { transform: translateY(4.4em); } /* the mark is small: it drops by the full name height, not its own */
.hero.go .hero-name sup.ch > i { transform: none; }
.js .hero.go [data-hero-fade][data-hero-fade] { transform: none; }

/* ---------- shared blocks ---------- */
.sec { padding: 100px var(--pad); }
.pill { display: inline-block; border: 1px solid var(--ink); padding: 7px 15px 8px; font-size: 20px; font-weight: 700; line-height: 20px; text-transform: uppercase; letter-spacing: -.04em; white-space: nowrap; }
.sec > .pill { margin-bottom: 56px; }
.split > .pill { justify-self: start; }
.split { display: grid; grid-template-columns: 34.3% 1fr; align-items: start; }
.lead { font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -.04em; }
.lead .w { display: inline-block; white-space: nowrap; }
.lead .l { opacity: .16; transition: opacity .25s linear; }
.lead .l.on { opacity: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* entrance of the reference: blocks rise 25 px and fade in; photos fade in from 1.2x */
.js [data-up] { opacity: 0; transform: translateY(25px); transition: opacity .9s ease, transform 1.1s var(--ease); }
.js [data-up].in { opacity: 1; transform: none; }
.js [data-img] { overflow: hidden; }
.js [data-img] img { opacity: 0; transform: scale(1.2); transition: opacity 1s ease, transform 1.4s var(--ease); }
.js [data-img].in img { opacity: 1; transform: none; }

/* project card: the photo sits 18 px in from the card edge, name left, [year] right */
.pcard { display: block; }
.pcard-img { display: block; margin: 0 18px; aspect-ratio: 3 / 2; overflow: hidden; }
.pcard-img img, .jcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.pcard-meta b, .jcard > b { font-size: 20px; font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: -.04em; }
.pcard:hover .pcard-img img, .jcard:hover .jcard-img img { transform: scale(1.04); transition: transform 1.2s var(--ease); }
.jcard { display: block; }
.jcard-img { display: block; aspect-ratio: 650 / 433; overflow: hidden; margin-bottom: 16px; }
.jcard > b { display: block; }
.grid2 > [hidden] { display: none; }

/* ---------- about ---------- */
.about { padding-bottom: 130px; position: relative; z-index: 4; background: var(--bg); }
.hero { z-index: 0; will-change: transform; }
.hero-name { transform-origin: 50% 100%; will-change: transform; } /* grows from its bottom middle on scroll (main.js 5b) */
.about .split + .split { margin-top: 110px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.stat-n { font-size: 96px; font-weight: 700; line-height: 1; letter-spacing: -.04em; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-variant-numeric: tabular-nums; }
.stat-l { margin-top: 10px; font-size: 20px; font-weight: 700; text-transform: uppercase; line-height: 1; }

/* ---------- services: the block stays while four steps pass ---------- */
.svc { position: relative; height: 260vh; }
.svc-pin { position: sticky; top: 0; height: 100vh; padding: 100px var(--pad) 0; display: flex; flex-direction: column; }
.svc-pin > .pill { align-self: flex-start; margin-bottom: 0; }
.svc-body { flex: 1; display: grid; grid-template-columns: 1fr 433px; align-items: center; padding-bottom: 40px; }
.svc-titles li { font-size: 64px; font-weight: 800; line-height: .8; letter-spacing: -.04em; text-transform: uppercase; color: var(--faint); transition: color .5s ease; }
.svc-titles li + li { margin-top: 32px; }
.svc-titles li.on { color: var(--ink); }
.svc-cards { display: grid; }
.svc-card { grid-area: 1 / 1; opacity: 0; transition: opacity .5s ease; }
.svc-card.on { opacity: 1; }
.svc-img { display: block; aspect-ratio: 1; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-card figcaption, .svc-m p { margin-top: 14px; font-size: 20px; line-height: 1.2; font-weight: 600; }
.svc-mobile { display: none; }

/* ---------- featured photo: pinned, grows from 38 % to the full screen ---------- */
.feat { position: relative; height: 200vh; }
.feat-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.feat-img { width: 100%; height: 100%; transform: scale(var(--s, .38)); will-change: transform; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- testimonials ---------- */
.rev { display: grid; grid-template-columns: 454px 1fr; gap: 32px; }
.rev-img { position: relative; aspect-ratio: 454 / 480; overflow: hidden; }
.rev-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.rev-img img.on { opacity: 1; }
.rev-body { position: relative; display: flex; flex-direction: column; }
.rev-slide { display: none; flex: 1; flex-direction: column; justify-content: space-between; }
.rev-slide.on { display: flex; }
.rev-q { font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -.04em; max-width: 834px; }
.rev-who { display: flex; flex-direction: column; font-size: 20px; font-weight: 800; text-transform: uppercase; line-height: 1; padding-right: 90px; }
.rev-who span { color: var(--mute); }
.rev-arrows { position: absolute; right: 0; bottom: 0; display: flex; gap: 6px; }
.rev-arrows button { width: 40px; height: 40px; border: 1px solid var(--ink); display: grid; place-items: center; transition: background-color .3s, color .3s; }
.rev-arrows button:hover { background: var(--ink); color: var(--bg); }

/* ---------- clients ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos li { height: 260px; display: flex; align-items: center; justify-content: center; gap: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 800; letter-spacing: -.05em; text-transform: uppercase; }

/* ---------- let's talk ---------- */
.talk { padding: 120px var(--pad) 140px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.talk-title, .page-title { font-size: 96px; font-weight: 800; line-height: .8; letter-spacing: -.04em; text-transform: uppercase; }
.talk-mail { margin-top: 64px; display: flex; flex-direction: column; font-size: 24px; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.talk-mail span { color: var(--mute); }
.talk-mail a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.form { width: 688px; max-width: 100%; margin-top: 90px; text-align: left; }
.field { display: block; margin-bottom: 44px; }
.field > span { display: block; font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.field input, .field textarea, .pick-btn { width: 100%; font: 500 20px/28px var(--font); letter-spacing: -.04em; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--mute); padding: 0 0 6px; border-radius: 0; outline: none; transition: border-color .3s; }
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: var(--mute); opacity: 1; }
.field input:focus, .field textarea:focus, .pick-btn:focus-visible { border-bottom-color: var(--ink); }
.field.bad input, .field.bad textarea { border-bottom-color: var(--accent); }
.pick { position: relative; }
.pick-btn { display: flex; justify-content: space-between; align-items: center; text-align: left; }
.pick-btn svg { transition: transform .3s; }
.pick.open .pick-btn svg { transform: rotate(180deg); }
.pick-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; background: var(--bg); border: 1px solid var(--ink); }
.pick-list li { padding: 10px 14px; font-size: 18px; font-weight: 600; cursor: pointer; }
.pick-list li:hover, .pick-list li:focus, .pick-list li[aria-selected="true"] { background: var(--ink); color: var(--bg); outline: none; }
.send { width: 100%; height: 56px; margin-top: 4px; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: -.04em; }
.send svg { transition: transform .5s var(--ease); }
.send:hover svg { transform: translateX(5px); }
.form-note { margin-top: 16px; min-height: 24px; font-size: 18px; text-align: center; }
.form-note.bad { color: var(--accent); }
.contact-page .talk { padding-top: calc(var(--head-h) + 70px); }

/* copied note for mail links */
.copied-tip { position: absolute; z-index: 60; padding: 4px 8px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; text-transform: uppercase; pointer-events: none; animation: tip 1.4s ease forwards; }
@keyframes tip { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- footer: the page lifts off it; the giant name slides in ---------- */
main { position: relative; z-index: 1; background: var(--bg); }
.foot { position: sticky; bottom: 0; z-index: 0; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.foot-in { padding: 64px var(--pad) 28px; }
.foot-top { display: grid; grid-template-columns: 1fr 330px 330px; }
.foot-line, .foot-col a { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.foot-col { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.foot-col a { transition: opacity .3s; }
.foot-col a:hover { opacity: .6; }
.foot-name { margin: 80px 0 40px; font-weight: 900; text-transform: uppercase; letter-spacing: -.065em; line-height: .76; white-space: nowrap; font-size: 22vw; }
.foot-name { pointer-events: none; } /* decorative, it must never cover the links below it */
.foot-name > span { display: inline-block; will-change: transform; }
.foot-name sup { font-size: .26em; top: .08em; font-weight: 800; margin-left: -.55em; }
.foot-bottom { position: relative; z-index: 1; display: flex; align-items: center; gap: 32px; border-top: 1px solid rgba(236, 232, 225, .25); padding: 24px 32px 0; font-size: 18px; font-weight: 700; }
.foot-bottom p:first-child { flex: 1; }
.foot-legal { display: flex; gap: 24px; }
.foot-legal a:hover, .foot-top-link:hover { opacity: .6; }
.foot-top-link { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; font-weight: 800; }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: var(--bg); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top.on.low { opacity: 0; pointer-events: none; }

/* ---------- inner pages ---------- */
.page-head { padding: 250px var(--pad) 0; text-align: center; }
.listing { padding-top: 160px; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 70px; }
.filters button { border: 1px solid var(--ink); padding: 7px 13px 8px; font-size: 20px; font-weight: 700; line-height: 20px; text-transform: uppercase; transition: background-color .3s, color .3s; }
.filters button.on, .filters button:hover { background: var(--ink); color: var(--bg); }
.jgrid { row-gap: 32px; }
.listing .grid2 { row-gap: 20px; }

.studio-intro { padding-top: 200px; }
.studio-img { display: block; width: 419px; max-width: 92%; aspect-ratio: 1; }
.studio-img img { width: 100%; height: 100%; object-fit: cover; }
.awards { padding-top: 140px; }
.table { width: 100%; border-collapse: collapse; font-size: 24px; font-weight: 700; letter-spacing: -.04em; text-align: left; }
.table th { font-weight: 700; color: var(--mute); padding: 0 0 12px; border-bottom: 1px solid var(--ink); }
.table td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.table th:first-child, .table td:first-child { width: 34%; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-img { display: block; aspect-ratio: 427 / 555; margin-bottom: 16px; }
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-grid b, .team-grid li > span:last-child { display: block; font-size: 20px; font-weight: 800; text-transform: uppercase; line-height: 1.3; }
.team-grid li > span:last-child { color: var(--mute); }

.p-about { padding-top: 260px; padding-bottom: 120px; }
.p-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 80px; padding-top: 20px; border-top: 1px solid var(--ink); }
.p-meta dt { color: var(--mute); }
.p-meta dt, .p-meta dd { font-size: 20px; font-weight: 600; line-height: 1.2; }
.p-meta dd { text-transform: uppercase; margin-top: 4px; }
.full { overflow: hidden; }
.full img { width: 100%; height: 100vh; object-fit: cover; }
.p-text { padding-top: 110px; padding-bottom: 110px; }
.p-text .split + .split { margin-top: 110px; }
.p-copy { font-size: 24px; font-weight: 700; line-height: 1.1; }
.p-gallery { display: grid; gap: 4px; }
.more-title { font-size: 64px; font-weight: 800; line-height: .8; letter-spacing: -.04em; text-transform: uppercase; margin-bottom: 56px; }
.more { padding-top: 120px; }

.post-head { padding: 200px var(--pad) 120px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; }
.post-title { font-size: 64px; font-weight: 800; line-height: .8; letter-spacing: -.04em; text-transform: uppercase; max-width: 800px; }
.post-cover img { height: auto; aspect-ratio: 3 / 2; max-height: 960px; }
.post-body { display: grid; grid-template-columns: 422px 1fr; gap: 80px; align-items: start; }
.post-side { position: sticky; top: calc(var(--head-h) + 24px); }
.post-side dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.post-side dt { font-size: 20px; font-weight: 700; color: var(--mute); }
.post-side dd { font-size: 20px; font-weight: 600; }
.share { display: flex; gap: 14px; }
.share a, .share button { display: grid; place-items: center; width: 20px; height: 20px; transition: opacity .3s; }
.share a:hover, .share button:hover { opacity: .55; }
.post-text h2 { font-size: 32px; font-weight: 800; line-height: .9; letter-spacing: -.03em; text-transform: uppercase; margin: 0 0 18px; }
.post-text p { font-size: 20px; font-weight: 600; line-height: 1.2; }
.post-text p + h2 { margin-top: 44px; }

.legal-head { background: var(--ink); color: var(--on-ink); padding: 200px var(--pad) 190px; text-align: center; }
.legal-title { font-size: 96px; font-weight: 800; line-height: .8; letter-spacing: -.04em; text-transform: uppercase; }
.legal-date { margin-top: 32px; font-size: 24px; font-weight: 700; }
.legal-date span { opacity: .55; }
.legal-body { counter-reset: legal; width: 768px; max-width: calc(100% - 2 * var(--pad)); margin: 0 auto; padding: 110px 0 60px; }
.legal-body h2::before { counter-increment: legal; content: counter(legal) ". "; }
.legal-body h2 { font-size: 32px; font-weight: 800; line-height: .9; letter-spacing: -.03em; text-transform: uppercase; margin: 0 0 20px; }
.legal-body p { font-size: 20px; font-weight: 600; line-height: 1.2; margin-bottom: 40px; }

.nf { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px var(--pad); }
.nf-n { font-size: 200px; font-weight: 800; line-height: .8; letter-spacing: -.05em; }
.nf-t { margin-top: 40px; font-size: 32px; font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: -.04em; }
.nf-link { margin-top: 40px; font-size: 24px; font-weight: 800; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ---------- tablet ---------- */
@media (max-width: 1199px) {
  :root { --pad: 32px; }
  .nav { gap: 22px; }
  .lead, .rev-q { font-size: 38px; }
  .stat-n { font-size: 72px; }
  .svc-titles li { font-size: 52px; }
  .svc-body { grid-template-columns: 1fr 340px; }
  .rev { grid-template-columns: 340px 1fr; }
  .logos li { height: 200px; }
  .foot-top { grid-template-columns: 1fr 220px 220px; }
  .post-body { grid-template-columns: 300px 1fr; gap: 48px; }
  .hero-photo { width: 34vw; }
}
@media (max-width: 1023px) {
  .nav, .head-cta { display: none; }
  .menu-btn { display: block; grid-column: 3; }
  .head { grid-template-columns: 1fr auto; padding: 0 20px; }
}

/* ---------- phone ---------- */
@media (max-width: 809px) {
  :root { --pad: 20px; --head-h: 56px; }
  body { font-size: 18px; }
  .hero { padding: calc(var(--head-h) + 16px) 20px 0; }
  .hero-top { grid-template-columns: 1fr; gap: 16px; }
  .hero-intro { font-size: 20px; max-width: 300px; }
  .hero-list { grid-column: 1; justify-self: start; width: auto; }
  .hero-lab, .hero-list ol { display: none; }
  .hero-photo { top: auto; bottom: calc(var(--name-h, 22vw) * .5); height: 50svh; width: 64vw; }
  .hero-photo figcaption { display: none; }
  .hero-name { left: 20px; right: 20px; }
  .sec { padding-top: 72px; padding-bottom: 72px; }
  .sec > .pill { margin-bottom: 36px; }
  .pill, .filters button { font-size: 16px; line-height: 16px; padding: 7px 12px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split > span:empty { display: none; }
  .lead { font-size: 30px; }
  .about .split + .split { margin-top: 64px; }
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .stat-n { font-size: 80px; }
  .stat-l { font-size: 16px; }
  .grid2 { grid-template-columns: 1fr; gap: 28px; }
  .pcard-img { margin: 0; }
  .pcard-meta b, .jcard > b { font-size: 16px; }
  .svc { height: auto; padding: 72px var(--pad); }
  .svc-pin { display: none; }
  .svc-mobile { display: block; }
  .svc-mobile::before { content: none; }
  .svc-m + .svc-m { margin-top: 56px; }
  .svc-m h3 { font-size: 38px; font-weight: 800; line-height: .85; letter-spacing: -.04em; text-transform: uppercase; margin-bottom: 18px; }
  .svc-m p { font-size: 17px; }
  .feat { height: 160vh; }
  .rev { grid-template-columns: 1fr; gap: 24px; }
  .rev-q { font-size: 28px; }
  .rev-slide { gap: 32px; }
  .rev-who { font-size: 16px; padding-right: 100px; }
  .logos { grid-template-columns: 1fr 1fr; }
  .logos li { height: 120px; font-size: 18px; }
  .logos svg { width: 20px; height: 20px; }
  .talk { padding: 90px var(--pad) 100px; }
  .talk-title, .page-title, .legal-title { font-size: 52px; }
  .talk-mail { margin-top: 36px; font-size: 18px; }
  .form { margin-top: 48px; }
  .field > span { font-size: 17px; }
  .field input, .field textarea, .pick-btn { font-size: 17px; }
  .field { margin-bottom: 32px; }
  .send { font-size: 17px; height: 52px; }
  .foot-in { padding: 48px var(--pad) 22px; }
  .foot-top { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot-line { grid-column: 1 / -1; }
  .foot-line, .foot-col a { font-size: 22px; }
  .foot-name { margin: 48px 0 28px; }
  .foot-bottom { flex-wrap: wrap; gap: 10px 20px; padding: 18px 0 0; font-size: 14px; }
  .foot-bottom p:first-child { flex-basis: 100%; }
  .foot-top-link { margin-left: auto; }
  .page-head { padding-top: 150px; }
  .listing { padding-top: 64px; }
  .filters { margin-bottom: 40px; gap: 8px; }
  .studio-intro { padding-top: 90px; }
  .studio-img { width: 100%; max-width: none; }
  .awards { padding-top: 40px; }
  .table { font-size: 18px; }
  .team-grid { grid-template-columns: 1fr; gap: 32px; }
  .team-grid b, .team-grid li > span:last-child { font-size: 16px; }
  .p-about { padding-top: 90px; padding-bottom: 64px; }
  .p-meta { margin-top: 48px; grid-template-columns: 1fr 1fr; }
  .p-meta dt, .p-meta dd { font-size: 16px; }
  .full img { height: 70svh; }
  .p-text .split + .split { margin-top: 56px; }
  .p-copy { font-size: 20px; }
  .more-title { font-size: 40px; margin-bottom: 32px; }
  .more { padding-top: 72px; }
  .post-head { padding: 130px var(--pad) 64px; gap: 28px; }
  .post-title { font-size: 40px; }
  .post-cover img { height: auto; }
  .post-body { grid-template-columns: 1fr; gap: 40px; }
  .post-side { position: static; }
  .post-side dt, .post-side dd { font-size: 16px; }
  .post-text h2 { font-size: 26px; }
  .post-text p { font-size: 17px; }
  .legal-head { padding: 140px var(--pad) 100px; }
  .legal-date { font-size: 18px; }
  .legal-body { padding-top: 64px; }
  .legal-body h2::before { counter-increment: legal; content: counter(legal) ". "; }
.legal-body h2 { font-size: 24px; }
  .legal-body p { font-size: 17px; }
  .nf-n { font-size: 120px; }
  .nf-t { font-size: 22px; }
  .nf-link { font-size: 18px; }
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-up], .js [data-img] img { opacity: 1; transform: none; }
}

/* ---------- custom cursor (mouse only, main.js 16): dot on the pointer, a disc over everything clickable ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .has-cursor textarea { cursor: text !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 100; width: 0; height: 0; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .25s; }
.cursor::before { content: ""; position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 50%; background: #ece8e1; transform: scale(.14); transition: transform .45s var(--ease); }
.cursor.on { opacity: 1; }
.cursor.hot::before { transform: scale(1); }
.cursor.hot.down::before { transform: scale(.82); }
.cursor.text { opacity: 0; }

/* ---------- article with "cover_style": "under" (journal.json): the cover photo stays pinned and, as you scroll,
   the article slides up onto it, so the photo becomes the ground under the text (nothing covers it on load) ---------- */
.post-wrap.under { position: relative; }
.post-wrap.under .post-cover { position: sticky; top: 0; height: 100vh; height: 100svh; z-index: 0; }
.post-wrap.under .post-cover img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; }
.post-wrap.under .post-body { position: relative; z-index: 1; margin-top: 0; padding-top: 12vh; padding-bottom: 50vh; } /* starts below the photo: the text enters only after the photo has pinned */
.post-wrap.under .post-text, .post-wrap.under .post-side { text-shadow: 0 0 1px var(--bg), 0 0 2px var(--bg), 0 0 3px var(--bg), 0 0 12px rgba(236, 232, 225, .9); } /* thin bone outline + soft halo: dark text stays readable on any photo, even colourful ones */
.post-wrap.under .post-side svg { filter: drop-shadow(0 0 1px var(--bg)) drop-shadow(0 0 2px var(--bg)); }
.post-wrap.under .post-side { top: calc(var(--head-h) + 40px); }
.post-wrap.under .post-side dt { color: var(--ink); opacity: .7; }
.post-wrap.under .post-side dl > div { border-color: rgba(22, 21, 19, .25); }
@media (max-width: 809px) { .post-wrap.under .post-body { padding-top: 10vh; padding-bottom: 30vh; } }
/* dark cover photo (build.py measures it): light text with a thin dark glow */
.post-wrap.under.tone-dark .post-text, .post-wrap.under.tone-dark .post-side { color: var(--bg); text-shadow: 0 0 1px var(--ink), 0 0 2px var(--ink), 0 0 3px var(--ink), 0 0 12px rgba(22, 21, 19, .9); }
.post-wrap.under.tone-dark .post-side dt { color: var(--bg); opacity: .8; }
.post-wrap.under.tone-dark .post-side dl > div { border-color: rgba(236, 232, 225, .35); }
.post-wrap.under.tone-dark .post-side svg { filter: drop-shadow(0 0 1px var(--ink)) drop-shadow(0 0 2px var(--ink)); }
/* a light wash over the pinned photo in the text's colour, so busy photos stay readable; the photo still shows */
.post-wrap.under .post-cover::after { content: ""; position: absolute; inset: 0; background: rgba(236, 232, 225, .38); pointer-events: none; }
.post-wrap.under.tone-dark .post-cover::after { background: rgba(22, 21, 19, .42); }
