/* loglog.ai — landing v4 */

/* Fraunces text cut, self-hosted (only the poster line uses it now). */
@font-face {
  font-family: "Fraunces Text";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("assets/fonts/fraunces-text-normal.woff2") format("woff2");
}

:root {
  --graphite: #0B0B0C;
  --ivory: #F6F4ED;
  --cobalt: #2F5BFF;
  --sand: #D7C9BB;
  --cobalt-soft: #8EA6FF; /* cobalt lifted for small text on graphite */

  --ink-2: rgba(11, 11, 12, .68);
  --ink-3: rgba(11, 11, 12, .46);
  --line: rgba(11, 11, 12, .14);
  --light-2: rgba(246, 244, 237, .74);
  --light-3: rgba(246, 244, 237, .48);
  --line-dark: rgba(246, 244, 237, .14);

  /* Wordmark + poster: Fraunces. Headlines, labels and logs: IBM Plex Mono. */
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --serif-text: "Fraunces Text", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --head-weight: 300;
  --head-track: -.03em;

  --gutter: clamp(16px, 4.5vw, 64px);
  --maxw: 1280px;
  --nav-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --grain-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .04  0 0 0 0 .04  0 0 0 0 .05  .75 0 0 0 -.3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .96  0 0 0 0 .95  0 0 0 0 .93  .75 0 0 0 -.3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  background: var(--graphite);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--cobalt); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ivory); color: var(--graphite);
  padding: 10px 14px; font-size: 13px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Type */
.head {
  font-family: var(--mono);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-track);
}
.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Paper grain */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background-image: var(--grain-light);
  background-size: 220px 220px;
  opacity: .5;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 42px; padding: 0 18px;
  border-radius: 3px;
  font: 500 13px/1 var(--sans);
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn--light { background: var(--ivory); color: var(--graphite); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--graphite); color: var(--ivory); height: 52px; padding: 0 26px; font-size: 14px; }
.btn--dark:hover { background: var(--cobalt); }
.btn .arr { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
/* opens another site: the arrow points up and out, not at what sits next to it */
.btn .arr--out { transform: rotate(-45deg); }
.btn:hover .arr--out { transform: translate(2px, -2px) rotate(-45deg); }

/* Nav: links left, emblem + name centred, CTA right */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.nav.is-solid {
  background: rgba(11, 11, 12, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-dark);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-h);
  transition: height .35s var(--ease);
}
.nav.is-solid .nav-inner { height: 64px; }
.nav-links { display: flex; gap: clamp(24px, 3vw, 44px); }
.nav-links a {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--light-2); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ivory); }
.nav-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); text-decoration: none; }
.nav-emblem {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-dark);
  transition: border-color .25s;
}
.nav-brand:hover .nav-emblem { border-color: var(--light-3); }
.nav-emblem svg { width: 24px; height: 22px; fill: currentColor; }
.nav-word {
  font-family: var(--serif);
  font-weight: 360;
  font-size: 23px;
  line-height: 1;
  letter-spacing: -.035em;
  transform: translateY(-1px);
}
.nav-right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.nav-cta { height: 40px; padding: 0 16px; font-size: 13px; }

/* Hero (v1 layout) */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 640px; max-height: 1080px;
  background: var(--graphite);
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-canvas, .hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .hero-canvas { opacity: 0; transition: opacity 1.6s ease; }
.js .hero-canvas.is-ready { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 11, 12, .9) 0%, rgba(11, 11, 12, .55) 34%, rgba(11, 11, 12, 0) 58%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(56px, 11vh, 128px); }
.hero h1 {
  font-size: clamp(1.9rem, 4.3vw, 4.3rem);
  line-height: 1.06;
  margin: 0 0 24px;
}
.hero-sub {
  margin-top: -10px;
  max-width: 31em;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--light-2);
}
/* See evals: an outlined button holding a three-bar preview of the leaderboard (the nav keeps the solid button) */
.hero-cta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 30px; height: 50px; padding: 0 18px 0 16px;
  border: 1px solid var(--light-3); border-radius: 3px;
  background: rgba(11, 11, 12, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--ivory); text-decoration: none;
  font: 500 14px/1 var(--sans); letter-spacing: .03em;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.hero-cta:hover { border-color: var(--ivory); background: rgba(246, 244, 237, .06); }
.hero-cta-bars { display: grid; gap: 3px; width: 34px; }
.hero-cta-bars i { display: block; height: 3px; width: calc(100% * var(--w)); background: rgba(246, 244, 237, .45); }
.hero-cta-bars i:first-child { background: var(--cobalt); }
.hero-cta-arr { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .25s var(--ease); }
.hero-cta:hover .hero-cta-arr { transform: translateY(3px) rotate(90deg); }
.js .hero-inner > * { opacity: 0; transform: translateY(14px); animation: rise 1.1s var(--ease) forwards; }
.js .hero-inner > :nth-child(1) { animation-delay: .15s; }
.js .hero-inner > :nth-child(2) { animation-delay: .25s; }
.js .hero-inner > :nth-child(3) { animation-delay: .4s; }
.js .hero-inner > :nth-child(4) { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Shared dark section rhythm */
.loop, .case { padding-block: clamp(56px, 6.5vw, 96px); border-top: 1px solid var(--line-dark); }
.loop .kicker, .case .kicker { color: var(--light-3); }
.loop-intro, .case-intro { color: var(--light-2); font-size: 17px; max-width: 36em; margin-top: 24px; }

/* How it works */
.loop-diagram { margin-top: clamp(56px, 7vw, 104px); }
.loop-icons { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 26px; }
.loop-icons svg { width: 80px; height: 56px; overflow: visible; }
.ico-dots, .ico-dots * { fill: var(--ivory); }
.ico-dim, .ico-dots .ico-dim { fill: rgba(246, 244, 237, .3); }
.ico-dots .ico-hot { fill: var(--cobalt); }
.ico-link path { fill: none; stroke: rgba(246, 244, 237, .45); stroke-width: 1; stroke-dasharray: 1 3; stroke-linecap: round; }
.ico-ring { fill: none; stroke: rgba(246, 244, 237, .5); stroke-width: 1; stroke-dasharray: 1 3; stroke-linecap: round; }
.ico-ring--soft { stroke: rgba(47, 91, 255, .7); stroke-dasharray: none; }
.ico-rim { fill: none; stroke: var(--cobalt); stroke-width: 2; }
.ico-agent { fill: var(--cobalt); }
.ico-frame { fill: none; stroke: rgba(246, 244, 237, .5); stroke-width: 1; }

.loop-svg { width: 100%; height: auto; overflow: visible; }
.loop-line { stroke: rgba(246, 244, 237, .55); stroke-width: 1.4; stroke-dasharray: .1 6; stroke-linecap: round; fill: none; }
.loop-arc { stroke: var(--cobalt); stroke-width: 1.4; stroke-dasharray: .1 6; stroke-linecap: round; fill: none; }
.loop-label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; fill: var(--cobalt-soft); }
.loop-dots circle { fill: var(--ivory); }
.loop-dots circle.back { fill: var(--cobalt); }
.loop-node { fill: var(--graphite); stroke: var(--ivory); stroke-width: 1.4; }
.loop-node--agent { fill: var(--cobalt); stroke: var(--cobalt); }
.loop-node--end { fill: var(--ivory); stroke: none; }
.loop-ping { fill: none; stroke: var(--cobalt); stroke-width: 1; }
.loop-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.loop-steps li { padding-right: 28px; }
.loop-steps h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.15; margin: 10px 0 10px; }
.loop-steps p { color: var(--light-2); font-size: 15px; max-width: 22em; }

/* Case: X Ads */
.case-label {
  display: flex; align-items: center; gap: 12px;
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ivory);
}
.case-label + .case-intro { margin-top: 20px; }
.case-label span { padding: 4px 8px 3px; border: 1px solid var(--cobalt); color: var(--cobalt-soft); font-size: 11px; }

/* Same budget, different targeting: board, map and controls on the left; the brief and its levers on the right */
.xc { margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line-dark); padding-top: 22px; }
.xc-intro { margin: 0 0 26px; }
.xc-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 32px; }
.xc-briefs { display: flex; gap: 24px; border-bottom: 1px solid var(--line-dark); }
.xc-briefs button { position: relative; padding: 10px 0 9px; font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--light-3); white-space: nowrap; }
.xc-briefs button:hover { color: var(--light-2); }
.xc-briefs button[aria-selected="true"] { color: var(--ivory); }
.xc-briefs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cobalt); }
.xc-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: 28px; align-items: start; }
.xc-board { display: grid; grid-template-columns: 1fr 1fr; }
.xc-board > div + div { padding-left: 18px; border-left: 1px solid var(--line-dark); }
.xc-board dt { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--light-3); }
.xc-board .is-truth dt { color: var(--cobalt-soft); }
.xc-board dd { display: grid; margin-top: 10px; }
.xc-board b { font: 300 clamp(28px, 4vw, 44px)/1 var(--mono); letter-spacing: -.03em; color: var(--ivory); font-variant-numeric: tabular-nums; }
.xc-board span { margin-top: 6px; font-size: 13.5px; color: var(--light-2); }
.xc-board small { margin-top: 8px; font: 12px var(--mono); color: var(--light-3); font-variant-numeric: tabular-nums; }
.xc-verdict { min-height: 1.6em; margin: 14px 0 6px; font: 13px/1.6 var(--mono); color: var(--light-2); }
.xc-verdict b { font-weight: 500; color: var(--ivory); }
.xc-verdict b.is-up { color: var(--cobalt-soft); }
.xc-canvas { display: block; width: 100%; height: auto; }
.xc-clock { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--light-3); font-size: 10.5px; }
.xc-clock span:first-child, .xc-clock span:last-child { flex: none; font-variant-numeric: tabular-nums; }
.xc-track { position: relative; flex: 1; height: 1px; background: var(--line-dark); }
.xc-track i { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--ivory); }
.xc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 12px; color: var(--light-3); }
.xc-legend li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; vertical-align: 1px; }
.xc-legend .is-can::before { background: var(--cobalt); }
.xc-legend .is-cant::before { background: rgba(246, 244, 237, .4); }
.xc-legend .is-conv::before { width: 7px; height: 7px; background: var(--ivory); outline: 1px solid rgba(246, 244, 237, .45); outline-offset: 2px; }
.xc-legend [hidden] { display: none; }
.xc-quote { margin: 0; padding: 2px 0 2px 16px; border-left: 1px solid var(--line-dark); font-size: 15px; line-height: 1.6; color: var(--light-2); }
.xc-quote mark { background: none; color: var(--ivory); box-shadow: inset 0 -1px 0 var(--cobalt); }
.xc-quote cite { display: block; margin-top: 10px; font: normal 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--light-3); }
.xc-ctl { margin-top: 24px; border-top: 1px solid var(--line-dark); }
.xc-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 0 12px; padding: 9px 0; border-bottom: 1px solid var(--line-dark); }
.xc-row > span { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--light-3); }
.xc-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.xc-seg button { min-height: 34px; padding: 7px 11px; border: 1px solid var(--line-dark); border-radius: 3px; font-size: 13px; color: var(--light-2); transition: border-color .2s, color .2s, background-color .2s; }
.xc-seg button:hover { border-color: var(--light-3); color: var(--ivory); }
.xc-seg button[aria-pressed="true"] { background: var(--ivory); border-color: var(--ivory); color: var(--graphite); }
.xc-words { grid-column: 2; margin-top: 8px; font: 11px/1.55 var(--mono); color: var(--light-3); }
.xc-words[hidden] { display: none; }
.xc-note { margin-top: 18px; font: 11px/1.65 var(--mono); letter-spacing: .02em; color: var(--light-3); }

/* Leaderboard: each agent's share of the best known result (geometric mean); the baseline as a line */
.lb { margin-top: clamp(28px, 3.5vw, 40px); }
.lb .kicker { color: var(--light-3); }
.lb-title { margin-top: 0; max-width: 24em; font-size: clamp(1.35rem, 2.4vw, 2.1rem); line-height: 1.18; text-wrap: balance; }
.lb-intro { margin-top: 16px; max-width: 40em; color: var(--light-2); font-size: 15.5px; }
.lb-chart { --scale: 1; --base: .6; --name: minmax(150px, 18rem); margin-top: 32px; }
.lb-axis, .lb-row { display: grid; grid-template-columns: var(--name) minmax(0, 1fr) 4.5rem; gap: 0 18px; align-items: center; }
.lb-axis { font: 10.5px var(--mono); letter-spacing: .06em; color: var(--light-3); }
.lb-scale { grid-column: 2; position: relative; height: 22px; }
.lb-scale span { position: absolute; top: 0; left: calc(100% * var(--v) / var(--scale)); transform: translateX(-50%); white-space: nowrap; }
.lb-scale span:first-child { transform: none; }
.lb-scale .is-best { transform: translateX(-100%); }
.lb-axis .is-par { color: var(--ivory); }
.lb-axis .is-best { color: var(--cobalt-soft); }
.lb-rows { position: relative; }
.lb-row { padding: 9px 0; border-top: 1px solid var(--line-dark); }
.lb-row:last-child { border-bottom: 1px solid var(--line-dark); }
.lb-name { font-size: 14px; color: var(--light-2); min-width: 0; }
.lb-val { justify-self: end; font: 13px var(--mono); color: var(--light-2); font-variant-numeric: tabular-nums; }
.lb-track { position: relative; height: 18px; }
/* the baseline, drawn on every row's track so it reads as one line through the chart */
.lb-track::before { content: ""; position: absolute; top: -9px; bottom: -9px; width: 1px; }
.lb-track::before { left: calc(100% * var(--base) / var(--scale)); background: rgba(246, 244, 237, .4); z-index: 1; }
/* each score is a bar from 0%, so its length is the score; the baseline is only a reference line */
.lb-bar { position: absolute; top: 6px; height: 6px; left: 0; width: calc(100% * min(var(--v), var(--scale)) / var(--scale)); background: rgba(246, 244, 237, .5); }
.lb-ticks { position: absolute; inset: 0; }
.lb-ticks i { position: absolute; top: 3px; width: 1px; height: 12px; background: rgba(246, 244, 237, .16); }
.lb-row.is-ours .lb-name { color: var(--ivory); }
.lb-row.is-ours .lb-val { color: var(--cobalt-soft); }
.lb-row.is-ours .lb-bar { background: var(--cobalt); }
.lb-row.is-ours .lb-ticks i { background: rgba(47, 91, 255, .4); }
.lb-row.is-base .lb-name { color: var(--light-2); }
.lb-note { margin-top: 18px; max-width: 52em; font: 11px/1.65 var(--mono); letter-spacing: .02em; color: var(--light-3); }
@media (max-width: 760px) {
  .xc-briefs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
  .xc-briefs button { white-space: normal; text-align: left; line-height: 1.4; font-size: 10.5px; }
  /* leaderboard: name and score on one line, the track full width under them */
  .lb-axis, .lb-row { grid-template-columns: minmax(0, 1fr) auto; }
  .lb-row { gap: 2px 12px; padding: 8px 0 6px; }
  .lb-name { grid-column: 1; grid-row: 1; font-size: 13.5px; }
  .lb-val { grid-column: 2; grid-row: 1; font-size: 12.5px; }
  .lb-track { grid-column: 1 / -1; grid-row: 2; height: 16px; }
  .lb-track::before { top: -1px; bottom: -3px; } /* stay off the name line */
  .lb-scale { grid-column: 1 / -1; }
}

/* Phones: the case as one compact instrument, so the numbers, the map and the controls fit on one screen */
@media (max-width: 600px) {
  .xc-grid { gap: 14px; margin-top: 18px; }
  .xc-quote { font-size: 14px; line-height: 1.55; padding-left: 12px; }
  .xc-quote cite { margin-top: 8px; font-size: 10px; }
  .xc-board dd { margin-top: 6px; }
  .xc-board b { font-size: 30px; }
  .xc-board span { margin-top: 4px; font-size: 12.5px; }
  .xc-board small { margin-top: 4px; font-size: 11px; }
  .xc-board > div + div { padding-left: 14px; }
  .xc-verdict { margin: 8px 0 4px; font-size: 12px; }
  .xc-legend { margin-top: 8px; font-size: 11.5px; }
  .xc-ctl { margin-top: 0; }
  .xc-row { grid-template-columns: 62px minmax(0, 1fr); gap: 0 8px; padding: 6px 0; }
  .xc-row > span { font-size: 9.5px; letter-spacing: .08em; }
  .xc-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .xc-seg::-webkit-scrollbar { display: none; }
  .xc-seg button { flex: none; min-height: 36px; padding: 6px 10px; font-size: 13px; }
  .xc-words { font-size: 10.5px; margin-top: 6px; }
  .xc-note { margin-top: 12px; font-size: 10.5px; }
  .lb { margin-top: 32px; }
  .xc { margin-top: 56px; padding-top: 18px; }
  .lb-title { font-size: 1.3rem; }
  .lb-intro { font-size: 14.5px; }
  .lb-chart { margin-top: 22px; }
}

/* Contact + poster print (ivory) */
.contact { background: var(--ivory); color: var(--graphite); padding-block: clamp(56px, 6.5vw, 96px); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
.print {
  background: #EFEBE2;
  padding: clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px) 0;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(11, 11, 12, .45);
}
.print figcaption {
  display: flex; justify-content: space-between;
  padding: 14px 0 16px;
  font-size: 10.5px;
  color: var(--ink-3);
}
.poster {
  position: relative;
  aspect-ratio: 4 / 5.4;
  background: var(--ivory);
  overflow: hidden;
  container-type: inline-size;
}
.poster canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster-copy { position: absolute; inset: 0; padding: 12cqw 8cqw; pointer-events: none; }
.poster-copy > span { display: block; }
.poster-word {
  font-family: var(--serif);
  font-weight: 360;
  font-size: 13.4cqw;
  line-height: .9;
  letter-spacing: -.045em;
}
.poster-label {
  font-family: var(--sans); font-weight: 500;
  font-size: max(8px, 1.85cqw);
  letter-spacing: .36em; text-transform: uppercase;
  margin-top: 3.6cqw;
}
.contact-copy .kicker { color: var(--ink-3); }
.contact-copy p:not(.kicker) { color: var(--ink-2); max-width: 30em; font-size: 16.5px; margin-top: 20px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 36px; }
.contact-mail {
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em;
  color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
.contact-mail:hover { color: var(--graphite); text-decoration-color: currentColor; }

/* Footer */
.footer { background: var(--graphite); padding-block: clamp(72px, 9vw, 128px) 28px; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-mark { width: 64px; height: 58px; fill: currentColor; }
.footer-line { font-size: clamp(1.2rem, 2.2vw, 2rem); }
.footer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 10.5px;
  color: var(--light-3);
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--light-2); text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--ivory); }
.footer-links button { color: var(--light-2); text-transform: inherit; letter-spacing: inherit; transition: color .2s; }
.footer-links button:hover { color: var(--ivory); }

/* Cookie choice: a small card in the corner, never over the page */
.consent {
  position: fixed; z-index: 60;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: min(340px, calc(100vw - 32px));
  padding: 16px 18px 18px;
  background: rgba(11, 11, 12, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-dark);
  color: var(--light-2);
  font-size: 13.5px;
  line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent a { color: var(--ivory); text-underline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
/* both answers look the same: declining is as easy as accepting */
.consent-btn {
  height: 38px;
  border: 1px solid var(--light-3);
  border-radius: 3px;
  color: var(--ivory);
  font: 500 13px/1 var(--sans);
  transition: background-color .2s, color .2s, border-color .2s;
}
.consent-btn:hover { background: var(--ivory); color: var(--graphite); border-color: var(--ivory); }

/* Privacy policy: one reading column under the nav */
.legal { padding-block: calc(var(--nav-h) + clamp(48px, 8vw, 104px)) clamp(32px, 5vw, 64px); }
.legal-inner { max-width: 42rem; }
.legal-updated { color: var(--light-3); }
.legal h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.06; margin-top: 18px; text-wrap: balance; }
.legal-lede { margin-top: 28px; font-size: 18px; color: var(--light-2); }
.legal h2 { margin-top: clamp(48px, 6vw, 64px); padding-top: 18px; border-top: 1px solid var(--line-dark); color: var(--cobalt-soft); }
.legal h2 + * { margin-top: 18px; }
.legal p:not(.kicker), .legal li { color: var(--light-2); line-height: 1.7; }
.legal ul + p, .legal p + p { margin-top: 16px; }
.legal li { position: relative; padding-left: 20px; }
.legal li + li { margin-top: 12px; }
.legal li::before { content: "–"; position: absolute; left: 0; color: var(--light-3); }
.legal strong { color: var(--ivory); font-weight: 500; }
.legal code { font-family: var(--mono); font-size: .88em; color: var(--ivory); }
.legal a { text-decoration: underline; text-decoration-color: var(--light-3); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.legal a:hover { color: var(--ivory); text-decoration-color: var(--ivory); }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
}

@media (max-width: 980px) {
  .xc-grid { grid-template-columns: minmax(0, 1fr); }
  .xc-side { display: contents; }
  .xc-quote { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { order: -1; } /* the call to action first, the poster under it */
  .print { max-width: 560px; }
}

@media (max-width: 859px) {
  :root { --nav-h: 68px; }
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-right { grid-column: 2; }
  .nav-emblem { width: 38px; height: 38px; }
  .nav-word { font-size: 20px; }
  .nav-cta { height: 38px; padding: 0 14px; font-size: 12.5px; }

  .hero { height: auto; min-height: 100svh; max-height: none; align-items: flex-start; }
  .hero-inner { padding-top: calc(var(--nav-h) + clamp(40px, 9vh, 88px)); padding-bottom: 60vw; }
  .hero-scrim { background: linear-gradient(180deg, rgba(11, 11, 12, .82) 0%, rgba(11, 11, 12, .5) 50%, rgba(11, 11, 12, 0) 72%); }

  .chip { padding: 2px 6px 1px; }
  .legend { margin-left: 0; margin-right: 10px; }

  .loop-icons, .loop-svg { display: none; }
  .loop-steps { grid-template-columns: 1fr; gap: 28px; margin-top: 0; border-left: 1px dashed rgba(246, 244, 237, .4); }
  .loop-steps li { position: relative; padding: 0 0 0 26px; }
  .loop-steps li::before {
    content: ""; position: absolute; left: -5px; top: 3px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--graphite); border: 1.4px solid var(--ivory);
  }
  .loop-steps li:last-child::before { background: var(--cobalt); border-color: var(--cobalt); }

  .footer-row { flex-direction: column; gap: 14px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px 22px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: min(2.8rem, calc((100vw - 34px) / 7.6)); } /* as big as fits on one line */
  .loop, .case { padding-block: 40px; }
  .contact { padding-block: 40px; }
  .loop-intro, .case-intro { font-size: 16px; margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .hero-inner > * { opacity: 1; transform: none; transition: none; animation: none; }
  .js .hero-canvas { transition: none; }
}
