/* KATES ESSENTIALS studio stylesheet
 * Black and white. Archivo (condensed) for interface and display type,
 * Archivo (normal width) for long reading, Geist Mono for codes and small meta.
 * Square corners, no shadows, no gradients, no accent colour.
 */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --grey: #6e6e6e;
  --line: #e6e6e6;
  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gut: clamp(16px, 2.4vw, 36px);
  --hh: 52px;
  --col-code: clamp(96px, 9vw, 140px);
  --col-meta: clamp(160px, 20vw, 300px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--hh); }
html.is-locked { overflow: hidden; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-stretch: 75%;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gut); top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mono {
  font-family: var(--mono);
  font-stretch: 100%;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.grey { color: var(--grey); }
.lc { text-transform: none; letter-spacing: 0.02em; }

.prose {
  font-stretch: 100%;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  max-width: 65ch;
}
.prose p + p { margin-top: 1.1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  padding: 6px 10px;
  font-family: var(--font);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-io), color 0.2s var(--ease-io);
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--bg); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* ---------- header ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hh);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gut);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hd-logo { display: inline-flex; align-items: center; }
.hd-logo img { width: 30px; height: 30px; }
.hd-nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.hd-nav a { font-weight: 600; font-size: 13px; letter-spacing: 0.06em; padding: 6px 0; border-bottom: 1px solid transparent; }
.hd-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.hd-toggle { display: none; width: 44px; height: 44px; margin-right: -8px; align-items: center; justify-content: center; }
.mt {
  width: 28px; height: 28px;
  fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.5s var(--ease-io);
}
.mt path:first-child { stroke-dasharray: 12 63; transition: stroke-dasharray 0.5s var(--ease-io), stroke-dashoffset 0.5s var(--ease-io); }
.hd-toggle[aria-expanded="true"] .mt { transform: rotate(-45deg); }
.hd-toggle[aria-expanded="true"] .mt path:first-child { stroke-dasharray: 20 300; stroke-dashoffset: -32.42px; }

/* ---------- full-screen menu ---------- */
.mn {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--hh) + 28px) var(--gut) 28px;
  background: var(--bg);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
  overflow-y: auto;
}
.mn.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease), visibility 0s; }
.mn-links { display: flex; flex-direction: column; gap: 4px; margin: auto 0; }
.roll { position: relative; display: block; overflow: hidden; font-weight: 700; font-size: clamp(56px, 20.5vw, 170px); line-height: 0.86; letter-spacing: -0.005em; padding-top: 0.04em; }
.roll-in { display: block; transform: translateY(110%); transition: transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + 120ms); }
.mn.is-open .roll-in { transform: none; }
.roll .r1, .roll .r2 { display: block; white-space: nowrap; }
.roll .r2 { position: absolute; inset: 0; padding-top: 0.04em; }
.roll .l { display: inline-block; transition: transform 0.4s var(--ease-io); transition-delay: calc(var(--d, 0) * 35ms); white-space: pre; }
.roll .r2 .l { transform: translateY(100%); }
.roll:hover .r1 .l, .roll:focus-visible .r1 .l { transform: translateY(-100%); }
.roll:hover .r2 .l, .roll:focus-visible .r2 .l { transform: translateY(0); }
.mn-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .hd-nav { display: none; }
  .hd-toggle { display: inline-flex; }
  .mn { display: flex; }
}

/* ---------- intro (home) ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: var(--gut);
  align-items: end;
  padding: clamp(40px, 7vw, 104px) var(--gut) clamp(32px, 5vw, 72px);
}
.intro h1 { font-weight: 600; font-size: clamp(28px, 4vw, 56px); line-height: 0.98; letter-spacing: 0; text-wrap: balance; }
.intro-side { display: grid; gap: 6px; justify-items: start; }
.intro-side a { border-bottom: 1px solid var(--ink); }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; align-items: start; } }

/* ---------- project index (reveal images) ---------- */
.idx { border-top: 1px solid var(--line); }
.idx-row {
  position: relative;
  display: grid;
  grid-template-columns: var(--col-code) minmax(0, 1fr) var(--col-meta);
  align-items: center;
  gap: var(--gut);
  padding: clamp(14px, 1.8vw, 26px) var(--gut);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.idx-code { color: var(--grey); }
.idx-title {
  font-weight: 600;
  font-size: clamp(32px, 6.2vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-wrap: balance;
  transition: opacity 0.5s var(--ease-io);
}
.idx-meta { text-align: right; color: var(--grey); display: grid; gap: 2px; }

.idx-fan {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: calc(var(--col-meta) + var(--gut) * 2 + 24px);
  width: clamp(120px, 13vw, 200px);
  height: clamp(150px, 16.5vw, 250px);
  translate: 0 -50%;
  pointer-events: none;
}
.fan-a, .fan-b { position: absolute; inset: 0; }
.fan-b { transform: translate(0, 0) rotate(0); transition: transform 0.5s var(--ease-io) 0.15s; }
.fan-img {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--line);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s var(--ease-io) 0.1s, opacity 0.5s var(--ease-io) 0.1s;
}
.fan-b .fan-img { transition-duration: 0.2s; }
.fan-img img { width: 100%; height: 100%; object-fit: cover; }

@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .idx-row:hover .idx-title, .idx-row:focus-visible .idx-title { opacity: 0.4; }
  .idx-row:hover .fan-img, .idx-row:focus-visible .fan-img { transform: scale(1); opacity: 1; }
  .idx-row:hover .fan-b, .idx-row:focus-visible .fan-b { transform: translate(24px, 24px) rotate(12deg); }
}
/* touch and narrow screens: one small thumbnail inline, no fan */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .idx-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "code thumb" "title thumb" "meta thumb";
    row-gap: 8px;
    align-items: start;
  }
  .idx-code { grid-area: code; }
  .idx-title { grid-area: title; font-size: clamp(30px, 9vw, 56px); }
  .idx-meta { grid-area: meta; text-align: left; }
  .idx-fan { position: relative; grid-area: thumb; right: auto; top: auto; translate: none; width: 76px; height: 96px; align-self: center; }
  .fan-a { display: none; }
  .fan-b { transform: none; transition: none; }
  .fan-b .fan-img { transform: none; opacity: 1; transition: none; }
}

/* ---------- about strip ---------- */
.about {
  display: grid;
  grid-template-columns: var(--col-code) minmax(0, 1fr);
  gap: var(--gut);
  padding: clamp(56px, 9vw, 140px) var(--gut);
  border-bottom: 1px solid var(--line);
}
.about-label { color: var(--grey); padding-top: 0.5em; }
.about p.stmt { font-weight: 500; font-size: clamp(22px, 2.7vw, 40px); line-height: 1.08; max-width: 32em; text-wrap: pretty; }
.about .w { transition: none; }
.about-caps { margin-top: clamp(28px, 4vw, 56px); color: var(--grey); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- contact strip ---------- */
.cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gut);
  flex-wrap: wrap;
  padding: clamp(48px, 8vw, 128px) var(--gut) clamp(40px, 6vw, 88px);
}
.cta-link { font-weight: 700; font-size: clamp(44px, 11vw, 188px); line-height: 0.88; letter-spacing: -0.01em; display: inline-block; }
.cta-link span[data-ht] { display: inline-block; }
.cta-mail { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* ---------- footer ---------- */
.ft { margin-top: auto; border-top: 1px solid var(--line); }
.ft-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px clamp(16px, 2.2vw, 32px);
  padding: 18px var(--gut);
}
.ft-row a, .ft-row button { color: var(--ink); }
.ft-row a:hover, .ft-row button:hover { text-decoration: underline; text-underline-offset: 3px; }
.ft-copy { margin-left: auto; color: var(--grey); }
.wm { padding: 0 var(--gut) clamp(14px, 2vw, 28px); }
.wm svg { width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.wm text { font-family: var(--font); font-weight: 700; font-stretch: 62%; font-size: 44px; text-transform: uppercase; }
.wm .wm-line { fill: none; stroke: var(--ink); stroke-width: 0.6; stroke-dasharray: 400 1000; stroke-dashoffset: 400; }
.wm.is-in .wm-line { animation: wm-draw 4s var(--ease-io) forwards; }
.wm.is-static .wm-line { stroke-dashoffset: 0; animation: none; }
.wm .wm-cover { fill: var(--bg); stroke: none; }
.wm .wm-fill { fill: var(--ink); stroke: none; opacity: 0; transition: opacity 0.3s var(--ease-io); }
.wm.is-hover .wm-fill { opacity: 1; }
@keyframes wm-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 900px) { .wm .wm-line { stroke-width: 1.1; } }
@media (max-width: 480px) { .wm .wm-line { stroke-width: 1.8; } }
@media (max-width: 620px) { .ft-copy { margin-left: 0; width: 100%; } }

/* ---------- work page ---------- */
.pg-head { padding: clamp(40px, 6vw, 88px) var(--gut) clamp(24px, 4vw, 56px); display: flex; align-items: baseline; justify-content: space-between; gap: var(--gut); flex-wrap: wrap; }
.pg-head h1 { font-weight: 700; font-size: clamp(64px, 16vw, 260px); line-height: 0.82; letter-spacing: -0.01em; }
.wk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px) var(--gut); padding: 0 var(--gut) clamp(64px, 9vw, 128px); }
.wk-fig a { display: block; }
.wk-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.wk-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform 1.2s var(--ease); }
.wk-media.fit { background: var(--ink); }
.wk-media.fit img { object-fit: contain; object-position: center; }
.wk-fig a:hover .wk-media img, .wk-fig a:focus-visible .wk-media img { transform: scale(1.02); }
.wk-cap { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 12px; align-items: baseline; }
.wk-cap .t { color: var(--ink); }
.wk-fig a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .wk-grid { grid-template-columns: 1fr; } }

/* plain scroll image reveal: clip-path inset from the bottom */
.rv { overflow: hidden; clip-path: inset(0 0 calc(100% - 2px) 0); transition: clip-path 1.1s var(--ease); }
.rv img { transform: scale(1.08); transition: transform 1.4s var(--ease); }
.rv.is-in { clip-path: inset(0 0 0 0); }
.rv.is-in img { transform: scale(1); }
.wk-fig a:hover .rv.is-in img { transform: scale(1.02); }

/* ---------- project page ---------- */
.p-head { padding: clamp(24px, 3vw, 40px) var(--gut) clamp(32px, 5vw, 64px); }
.p-back { display: inline-block; margin-bottom: clamp(28px, 5vw, 64px); border-bottom: 1px solid var(--ink); }
.p-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--grey); margin-bottom: 18px; }
.p-meta .c { color: var(--ink); }
.p-title { font-weight: 700; font-size: clamp(44px, 9.5vw, 156px); line-height: 0.88; letter-spacing: -0.01em; text-wrap: balance; max-width: 14em; }
.p-sub { margin-top: clamp(20px, 3vw, 36px); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.4; max-width: 38ch; }

.sri { position: relative; overflow: hidden; height: clamp(300px, min(82svh, calc(100vw / var(--ar, 1.5))), 1000px); background: var(--bg); clip-path: inset(0 19% 0 19%); }
.sri img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scale(1.6); will-change: transform; }

.p-body { padding: clamp(40px, 6vw, 96px) var(--gut); }
.p-body .lbl { color: var(--grey); margin-bottom: 12px; }
.p-svc li { border-top: 1px solid var(--line); padding: 8px 0; }
.p-svc li:last-child { border-bottom: 1px solid var(--line); }
.p-svc li.mono { text-transform: uppercase; }
.p-body-grid { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); gap: var(--gut); }

.p-imgs { border-top: 1px solid var(--line); }
.p-fig { border-bottom: 1px solid var(--line); background: var(--bg); }
.p-fig img { width: 100%; height: auto; max-height: calc(100svh - var(--hh)); object-fit: contain; margin: 0 auto; }
.p-fig.rv { clip-path: inset(0 0 calc(100% - 2px) 0); }
.p-fig.rv.is-in { clip-path: inset(0 0 0 0); }

.nx { display: block; padding: clamp(56px, 9vw, 144px) var(--gut); }
.nx-l { display: block; color: var(--grey); margin-bottom: 16px; }
.nx-t { display: block; font-weight: 700; font-size: clamp(36px, 7.5vw, 124px); line-height: 0.9; letter-spacing: -0.01em; text-wrap: balance; }
.nx-t span[data-ht] { display: block; }

@media (max-width: 760px) { .p-body-grid { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.pg-form { padding: clamp(40px, 6vw, 88px) var(--gut) clamp(64px, 9vw, 128px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.pg-form h1, .sv-head h1 { font-weight: 700; font-size: clamp(52px, 10vw, 168px); line-height: 0.86; letter-spacing: -0.01em; text-wrap: balance; }
.pg-form-side { display: grid; gap: 10px; align-content: start; }
.pg-form-side .prose { margin-top: 20px; }
.fm { display: grid; grid-template-columns: 1fr 1fr; gap: 26px var(--gut); align-content: start; }
.fm .full { grid-column: 1 / -1; }
.fm label.f { display: block; }
.fm .lb { display: block; font-weight: 600; font-size: 12px; letter-spacing: 0.06em; color: var(--grey); margin-bottom: 4px; }
.fm input[type="text"], .fm input[type="email"], .fm input[type="tel"], .fm input[type="url"], .fm select, .fm textarea {
  width: 100%;
  font-family: var(--font);
  font-stretch: 100%;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  outline: 0;
  transition: border-color 0.2s var(--ease-io);
}
.fm textarea { min-height: 120px; resize: vertical; }
.fm input:focus, .fm select:focus, .fm textarea:focus { border-bottom-color: var(--ink); }
.fm input:focus-visible, .fm select:focus-visible, .fm textarea:focus-visible { outline: 0; border-bottom-width: 2px; padding-bottom: 9px; }
.fm [aria-invalid="true"] { border-bottom-color: var(--ink); border-bottom-width: 2px; padding-bottom: 9px; }
.fm select { appearance: none; -webkit-appearance: none; padding-right: 22px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a0a0a' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; }
.fm .chk { display: flex; gap: 12px; align-items: flex-start; font-stretch: 100%; font-weight: 400; font-size: 14px; line-height: 1.5; text-transform: none; letter-spacing: 0; }
.fm .chk a { text-decoration: underline; text-underline-offset: 3px; }
.fm input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; border: 1px solid var(--ink); background: var(--bg); cursor: pointer; }
.fm input[type="checkbox"]:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.6 2.6L10 3.5' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E") center / 12px no-repeat; }
.fm-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fm-err { color: var(--ink); border-left: 2px solid var(--ink); padding-left: 10px; }
.fm-done { padding: 8px 0; display: grid; gap: 16px; }
.fm-done h2 { font-weight: 700; font-size: clamp(36px, 5vw, 72px); line-height: 0.9; }
@media (max-width: 860px) { .pg-form { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fm { grid-template-columns: 1fr; } }

/* ---------- service pages ---------- */
.sv-head { padding: clamp(40px, 6vw, 96px) var(--gut) clamp(32px, 5vw, 72px); display: grid; gap: 20px; justify-items: start; }
.sv-head .prose { margin-top: 4px; font-size: clamp(18px, 1.8vw, 22px); }
.sv-sec { display: grid; grid-template-columns: var(--col-code) minmax(0, 1fr); gap: var(--gut); padding: clamp(32px, 5vw, 72px) var(--gut); border-top: 1px solid var(--line); }
.sv-sec > .mono { color: var(--grey); padding-top: 0.5em; }
.sv-sec h2 { font-weight: 600; font-size: clamp(26px, 3.4vw, 48px); line-height: 0.98; margin-bottom: 18px; text-wrap: balance; }
.sv-rows li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--gut); padding: 18px 0; border-top: 1px solid var(--line); }
.sv-rows li:last-child { border-bottom: 1px solid var(--line); }
.sv-rows h3 { font-weight: 600; font-size: clamp(20px, 2.2vw, 30px); line-height: 1; margin-bottom: 8px; }
.sv-rows .prose { font-size: 16px; }
.sv-list li { padding: 14px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: clamp(18px, 2vw, 26px); }
.sv-list li:last-child { border-bottom: 1px solid var(--line); }
.sv-stat { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-bottom: 20px; font-weight: 600; font-size: clamp(22px, 3vw, 40px); line-height: 1; }
.tbl { overflow-x: auto; border-top: 1px solid var(--ink); }
.tbl table { width: 100%; min-width: 760px; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
.tbl th { color: var(--grey); font-weight: 400; }
.sv-cap { margin-top: 14px; color: var(--grey); }
@media (max-width: 760px) { .sv-sec { grid-template-columns: minmax(0, 1fr); gap: 14px; } .sv-rows li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; } }

/* ---------- legal ---------- */
.legal-wrap { max-width: 800px; margin: 0 auto; padding: clamp(32px, 5vw, 80px) var(--gut) clamp(64px, 9vw, 128px); font-stretch: 100%; font-weight: 400; font-size: 16px; line-height: 1.65; letter-spacing: 0; text-transform: none; }
.legal-wrap .mono { text-transform: uppercase; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--grey); padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-wrap h1 { font-family: var(--font); font-stretch: 75%; font-weight: 700; font-size: clamp(44px, 7vw, 96px); line-height: 0.9; text-transform: uppercase; letter-spacing: -0.005em; margin-bottom: 28px; }
.legal-wrap h2 { font-family: var(--font); font-stretch: 75%; font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; margin: 56px 0 16px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.legal-wrap h3 { font-family: var(--font); font-stretch: 75%; font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: 0.03em; margin: 28px 0 8px; }
.legal-wrap p, .legal-wrap li { margin-bottom: 14px; }
.legal-wrap ul { padding-left: 22px; list-style: square; margin-bottom: 16px; }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap a { text-decoration: underline; text-underline-offset: 3px; }
.legal-wrap strong { font-weight: 600; }
.legal-wrap em { font-style: italic; }
.legal-wrap .legal-intro { font-size: 19px; line-height: 1.55; padding: 4px 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-wrap .small { font-size: 13px; color: var(--grey); }
.legal-table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.legal-table th, .legal-table td { padding: 10px 14px 10px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 110px; }
.legal-table th { font-family: var(--mono); font-stretch: 100%; font-weight: 400; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); border-bottom-color: var(--ink); }
.consent-dashboard { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 18px 0; margin: 8px 0 24px; display: grid; gap: 12px; }
.consent-dashboard__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.consent-dashboard__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.centered { min-height: 62vh; display: grid; align-content: center; justify-items: start; gap: 24px; padding: clamp(40px, 7vw, 96px) var(--gut); }
.centered h1 { font-weight: 700; font-size: clamp(64px, 14vw, 240px); line-height: 0.84; letter-spacing: -0.01em; }
.centered .prose { font-size: 19px; }

/* ---------- consent banner (markup built by consent.js) ---------- */
.ke-consent {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 9997;
  display: flex; justify-content: center; pointer-events: none;
  opacity: 0; transform: translate3d(0, 20px, 0);
  transition: opacity 340ms var(--ease), transform 340ms var(--ease);
  font-stretch: 100%; text-transform: none; letter-spacing: 0; font-weight: 400;
}
.ke-consent.is-open { opacity: 1; transform: none; }
.ke-consent.is-hiding { opacity: 0; transform: translate3d(0, 20px, 0); }
.ke-consent__card { width: 100%; max-width: 560px; background: var(--bg); color: var(--ink); border: 1px solid var(--ink); padding: 20px 22px 18px; pointer-events: auto; }
.ke-consent__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ke-consent__eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.ke-consent__dismiss { width: 28px; height: 28px; font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; color: var(--grey); }
.ke-consent__dismiss:hover { color: var(--ink); }
.ke-consent__body p { font-size: 14px; line-height: 1.55; margin-bottom: 10px; }
.ke-consent__links { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; display: flex; gap: 12px; flex-wrap: wrap; color: var(--grey); }
.ke-consent__links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ke-consent__details { margin: 8px 0 4px; }
.ke-consent__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ke-consent__row:first-child { border-top: 0; }
.ke-consent__row strong { display: block; font-size: 13px; font-weight: 600; }
.ke-consent__row em { display: block; font-style: normal; font-size: 12px; color: var(--grey); margin-top: 3px; line-height: 1.45; }
.ke-consent__toggle { position: relative; display: inline-flex; flex: 0 0 auto; width: 40px; height: 20px; }
.ke-consent__toggle input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ke-consent__toggle span { position: absolute; inset: 0; border: 1px solid var(--ink); background: var(--bg); transition: background-color 0.2s var(--ease-io); }
.ke-consent__toggle span::before { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: var(--ink); transition: transform 0.25s var(--ease), background-color 0.2s var(--ease-io); }
.ke-consent__toggle input:checked ~ span { background: var(--ink); }
.ke-consent__toggle input:checked ~ span::before { transform: translateX(20px); background: var(--bg); }
.ke-consent__toggle.is-locked span { opacity: 0.45; }
.ke-consent__toggle.is-locked span::before { transform: translateX(20px); }
.ke-consent__toggle input:focus-visible ~ span { outline: 2px solid var(--ink); outline-offset: 3px; }
.ke-consent__actions, .ke-consent__save-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.ke-consent__save-row { justify-content: flex-end; }
.ke-consent__btn { padding: 8px 12px; border: 1px solid var(--ink); font-family: var(--font); font-stretch: 75%; font-weight: 600; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; white-space: nowrap; transition: background-color 0.2s var(--ease-io), color 0.2s var(--ease-io); }
.ke-consent__btn--ghost { background: var(--bg); color: var(--ink); }
.ke-consent__btn--primary { background: var(--ink); color: var(--bg); }
.ke-consent__btn--ghost:hover { background: var(--ink); color: var(--bg); }
.ke-consent__btn--primary:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 620px) {
  .ke-consent { left: 10px; right: 10px; bottom: 10px; }
  .ke-consent__card { padding: 16px; }
  .ke-consent__btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- reduced motion: everything renders, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv, .rv.is-in, .p-fig.rv { clip-path: none; }
  .rv img { transform: none; }
  .sri { clip-path: none; }
  .sri img { transform: none; }
  .wm .wm-line { stroke-dashoffset: 0; }
  .wm .wm-cover { fill: var(--bg); stroke: none; }
.wm .wm-fill { display: none; }
  .roll-in { transform: none; }
  .mn { clip-path: none; }
  .mn:not(.is-open) { display: none; }
  .ke-consent { transform: none; }
  .fan-img { transition: none; }
}

@media (max-width: 760px) { .cta-link { font-size: 9.3vw; } }
