/* ============================================================
   Creatist & Co
   ============================================================ */

:root {
  --bg: #f5f3ee;
  --bg-2: #ecE9e2;
  --surface: #ffffff;
  --ink: #161512;
  --ink-2: #3a3833;
  --muted: #6e6a61;
  --line: rgba(22, 21, 18, 0.12);
  --line-strong: rgba(22, 21, 18, 0.22);
  --accent: #ff5a1f;
  --accent-ink: #161512; /* dark text on orange: 6:1 (white was 3.1:1) */
  --invert-bg: #161512;
  --invert-ink: #f5f3ee;
  --invert-muted: #a19c91;
  --invert-line: rgba(245, 243, 238, 0.14);

  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0d;
    --bg-2: #181815;
    --surface: #1c1c19;
    --ink: #f2efe8;
    --ink-2: #d6d2c8;
    --muted: #9b968b;
    --line: rgba(242, 239, 232, 0.12);
    --line-strong: rgba(242, 239, 232, 0.24);
    --accent: #ff6a33;
    --invert-bg: #f2efe8;
    --invert-ink: #161512;
    --invert-muted: #5f5b53;
    --invert-line: rgba(22, 21, 18, 0.14);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; }

/* ---------- Type ---------- */

.display {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(3rem, 8.2vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.display em { font-size: 1.08em; letter-spacing: -0.02em; }

.h2 {
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.h2 em { font-size: 1.08em; letter-spacing: -0.015em; color: var(--muted); }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 36ch; line-height: 1.5; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--lg { height: 58px; padding: 0 30px; font-size: 18px; }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--ink-2); white-space: nowrap;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: border-color 0.2s, gap 0.2s;
}
.link-arrow::after { content: "↗"; font-size: 0.9em; }
.link-arrow:hover { border-color: var(--ink); gap: 9px; }
.link-arrow--int::after { content: "→"; }
.case__name a, .product__name a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.3s var(--ease); }
.case__name a:hover, .product__name a:hover { background-size: 100% 1px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav__links { display: flex; gap: 32px; font-size: 15px; color: var(--ink-2); }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.logo { font-weight: 600; font-size: 20px; letter-spacing: -0.03em; white-space: nowrap; }
.amp { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.3em; color: var(--accent); margin: 0 1px; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__inner { height: 64px; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px;
  padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 112px);
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.proof {
  display: grid; grid-template-columns: repeat(3, auto); gap: 32px; justify-content: start;
  padding-top: 28px; border-top: 1px solid var(--line); margin-top: 8px;
}
.proof dt { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.proof dd { font-size: 14px; color: var(--muted); line-height: 1.35; margin-top: 4px; }

.hero__art { position: relative; height: 600px; }
.fan { position: absolute; inset: 0; }
.fan__card {
  position: absolute; top: 50%; left: 50%;
  width: 240px; aspect-ratio: 640 / 1386; object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35), 0 0 0 1px var(--line);
  transition: transform 0.9s var(--ease);
}
.fan__card--l { transform: translate(-112%, -46%) rotate(-9deg); }
.fan__card--c { transform: translate(-50%, -54%); z-index: 2; }
.fan__card--r { transform: translate(12%, -46%) rotate(9deg); }
.hero__art:hover .fan__card--l { transform: translate(-122%, -46%) rotate(-12deg); }
.hero__art:hover .fan__card--r { transform: translate(22%, -46%) rotate(12deg); }
.hero__art:hover .fan__card--c { transform: translate(-50%, -57%); }

.sticker {
  position: absolute; right: 2%; bottom: 6%; z-index: 3;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-content: center; text-align: center; gap: 2px;
  transform: rotate(-12deg);
  box-shadow: 0 16px 30px -10px rgba(255, 90, 31, 0.55);
}
.sticker span { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1; }
.sticker strong { font-size: 14px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero__art { height: 480px; }
  .fan__card { width: 200px; }
}
@media (max-width: 520px) {
  .hero__art { height: 380px; }
  .fan__card { width: 150px; border-radius: 18px; }
  .sticker { width: 104px; height: 104px; right: 0; bottom: 0; }
  .sticker span { font-size: 18px; }
  .sticker strong { font-size: 12px; }
  .proof { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .proof dt { font-size: 24px; }
}

/* ---------- Strip ---------- */

.strip {
  border-block: 1px solid var(--line);
  overflow: hidden; padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  font-size: clamp(22px, 3vw, 34px); font-weight: 500; letter-spacing: -0.03em;
  animation: marquee 38s linear infinite;
}
.strip__track i { font-style: normal; color: var(--accent); font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(80px, 11vw, 150px); }
.section--tinted { background: var(--bg-2); }
.section--ink { background: var(--invert-bg); color: var(--invert-ink); }
.section--ink .eyebrow, .section--ink .section__sub { color: var(--invert-muted); }

.section__head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); max-width: 760px; }
.section__sub { color: var(--muted); font-size: 18px; max-width: 54ch; }

/* ---------- Client cases ---------- */

.cases { display: grid; gap: clamp(28px, 4vw, 48px); }

.case {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background: var(--surface); overflow: hidden;
}
.case:nth-child(even) .case__body { order: 2; }
.case__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 22px; }

.case__top { display: flex; align-items: center; gap: 14px; }
.case__icon {
  width: 56px; height: 56px; border-radius: 14px; flex: none;
  box-shadow: 0 0 0 1px var(--line);
}
.case__mono {
  display: grid; place-items: center; background: var(--ink); color: var(--bg);
  font-family: var(--serif); font-size: 32px; font-style: italic;
}
.case__meta { display: grid; gap: 2px; }
.case__name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.case__kind { font-size: 14px; color: var(--muted); }

.case__headline { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; }
.case__summary { color: var(--ink-2); }

.case__delivered { display: grid; gap: 10px; }
.case__delivered li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; }
.case__delivered li::before { content: "✦"; color: var(--accent); font-size: 11px; transform: translateY(-1px); }

.case__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }

.case__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.rating small { color: var(--muted); font-weight: 400; font-size: 14px; }
.case__year { margin-left: auto; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.case__media {
  position: relative; min-height: 520px; overflow: hidden;
  background: var(--tint, #111);
}
.reel {
  position: absolute; inset: 0;
  display: flex; gap: 16px; align-items: center;
  padding: 40px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }
.reel img {
  height: 86%; max-height: 520px; width: auto; aspect-ratio: 640 / 1386; flex: none;
  border-radius: 18px; scroll-snap-align: center;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.55);
}

.browser-stack { position: absolute; inset: 0; padding: 44px 0 0 44px; }
.browser {
  position: absolute; width: 118%; border-radius: 12px; overflow: hidden;
  background: #222; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  transition: transform 0.7s var(--ease);
}
.browser__bar { height: 26px; display: flex; gap: 6px; align-items: center; padding: 0 10px; background: #2b2a28; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #55534e; }
.browser img { width: 100%; }
.browser-stack .browser:nth-child(1) { left: 44px; top: 44px; z-index: 3; }
.browser-stack .browser:nth-child(2) { left: 120px; top: 250px; z-index: 2; }
.browser-stack .browser:nth-child(3) { display: none; }
.browser-stack .browser:nth-child(2) img { filter: brightness(0.82); }
.case:hover .browser-stack .browser:nth-child(1) { transform: translate(-6px, -6px); }

@media (max-width: 920px) {
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__body { order: 0; }
  .case__media { min-height: 440px; }
  .reel { padding: 28px; }
  .reel img { max-height: 400px; }
}
@media (max-width: 520px) {
  .case__media { min-height: 380px; }
  .reel img { max-height: 340px; }
  .browser-stack .browser:nth-child(1) { left: 20px; top: 24px; }
  .browser-stack .browser:nth-child(2) { left: 64px; top: 150px; }
}

/* ---------- Products bento ---------- */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.product {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.3); }
.product--wide { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.product--wide:nth-of-type(2) { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.product--wide:nth-of-type(2) .product__media { order: 2; }

.product__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product--wide .product__body { padding: clamp(28px, 4vw, 48px); justify-content: center; gap: 18px; }

.product__head { display: flex; align-items: center; gap: 12px; }
.product__icon { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line); }
.product__name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.product__year { margin-left: auto; color: var(--muted); font-size: 14px; }
.product__tagline { font-size: 26px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; }
.product--wide .product__tagline { font-size: clamp(28px, 3.4vw, 40px); }
.product__tagline em { color: var(--muted); }
.product__summary { color: var(--ink-2); font-size: 15.5px; }
.product__stack { display: flex; flex-wrap: wrap; gap: 6px; }
.product__foot { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.badge--apple::before {
  content: ""; width: 12px; height: 14px; background: currentColor;
  -webkit-mask: url("assets/apple.svg") center / contain no-repeat;
  mask: url("assets/apple.svg") center / contain no-repeat;
}

.product__media {
  position: relative; background: var(--tint); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product--wide .product__media { min-height: 520px; padding: 40px 24px; gap: 16px; }
.product--wide .product__media img {
  width: 30%; max-width: 210px; border-radius: 22px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.08);
  transition: transform 0.6s var(--ease);
}
.product--wide .product__media img:nth-child(2) { transform: translateY(-18px); }
.product--wide:hover .product__media img:nth-child(1) { transform: translateY(-8px) rotate(-2deg); }
.product--wide:hover .product__media img:nth-child(2) { transform: translateY(-28px); }
.product--wide:hover .product__media img:nth-child(3) { transform: translateY(-8px) rotate(2deg); }

.product__media--art { aspect-ratio: 4 / 3; }
.product__media--art img { width: 100%; height: 100%; object-fit: cover; }
.product__media--art.is-contain img { object-fit: contain; padding: 22px; }
.product__media svg { width: 70%; height: 80%; }

@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .product--wide, .product--wide:nth-of-type(2) { grid-column: span 2; grid-template-columns: 1fr; }
  .product--wide:nth-of-type(2) .product__media { order: 0; }
  .product--wide .product__media { min-height: 0; padding: 32px 16px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .product--wide, .product--wide:nth-of-type(2) { grid-column: span 1; }
  .product--wide .product__media { gap: 10px; }
  .product--wide .product__media img { border-radius: 14px; }
}

/* ---------- Services ---------- */

.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.services li {
  padding: 32px 28px 40px 0; border-bottom: 1px solid var(--line);
  display: grid; gap: 12px; align-content: start;
}
.services li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.services__n { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent); }
.services h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.services p { color: var(--muted); font-size: 16px; }

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr 1fr; }
  .services li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .services li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .services li:nth-child(even) { padding-left: 0; border-left: 0; }
  .services li { padding: 26px 0 30px; }
}

/* ---------- How we work ---------- */

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillars article {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--invert-line);
  display: grid; gap: 12px; align-content: start;
}
.pillars h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.pillars p { color: var(--invert-muted); font-size: 15.5px; }

.process {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px;
  counter-reset: step; position: relative;
}
.process li { position: relative; padding: 28px 24px 0 0; border-top: 1px solid var(--invert-line); display: grid; gap: 6px; }
.process li::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent);
}
.process span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--invert-muted); }
.process strong { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.process p { color: var(--invert-muted); font-size: 15px; }

@media (max-width: 980px) {
  .pillars, .process { grid-template-columns: 1fr 1fr; }
  .process { row-gap: 36px; }
}
@media (max-width: 600px) {
  .pillars, .process { grid-template-columns: 1fr; }
}

/* ---------- Team ---------- */

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: var(--surface); display: grid; gap: 16px; align-content: start;
}
.member__photo {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  background: var(--bg-2); box-shadow: 0 0 0 1px var(--line);
}
.member__initial {
  display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 42px;
  background: var(--accent); color: var(--accent-ink); box-shadow: none;
}
.member__name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.member__role { color: var(--muted); font-size: 15px; margin-top: 2px; }
.member__note { color: var(--ink-2); font-size: 15.5px; }
.member__links { display: flex; gap: 18px; font-size: 15px; }

.member--join {
  background: transparent; border-style: dashed; border-color: var(--line-strong);
  align-content: center; justify-items: start;
}
.member--join .member__photo {
  display: grid; place-items: center; background: transparent;
  box-shadow: 0 0 0 1px var(--line-strong); font-size: 32px; color: var(--muted);
}

@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact { padding-block: clamp(96px, 13vw, 180px); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; right: -10%; top: -30%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  pointer-events: none;
}
.contact__inner { position: relative; display: grid; gap: 28px; justify-items: start; }
.display--contact { font-size: clamp(3rem, 9vw, 8rem); }
.contact__addr { color: var(--muted); font-size: 16px; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding-top: 56px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__tag { color: var(--muted); margin-top: 8px; font-size: 15px; }
.footer__cols { display: flex; gap: clamp(32px, 6vw, 88px); flex-wrap: wrap; }
.footer__cols > div, .footer__cols [data-render] { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer__cols h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.footer__cols a { color: var(--ink-2); }
.footer__cols a:hover { color: var(--ink); }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 56px; padding-block: 24px;
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  color: var(--muted); font-size: 14px;
}

/* ---------- Reveal ---------- */

.reveal-pending { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-pending.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}

/* ---------- Project pages ---------- */

.cs-hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 56px); display: grid; gap: 24px; justify-items: start; }
.cs-back { font-size: 15px; color: var(--muted); }
.cs-back:hover { color: var(--ink); }
.cs-title { display: flex; align-items: center; gap: 16px; }
.cs-title .case__icon { width: 64px; height: 64px; border-radius: 16px; }
.cs-name { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; }
.cs-headline { max-width: 18ch; }

.cs-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 96px);
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.cs-story { display: grid; gap: 20px; align-content: start; }
.cs-h { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 12px; }
.cs-lede { max-width: 60ch; }
.cs-facts { display: grid; gap: 0; align-content: start; border-top: 1px solid var(--line); }
.cs-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cs-facts dt { color: var(--muted); font-size: 14px; }
.cs-facts dd { font-size: 15.5px; }
.cs-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.cs-media { padding-inline: var(--gutter); }
.cs-gallery {
  max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; border-radius: calc(var(--radius) + 6px);
  background: var(--tint); padding: clamp(24px, 5vw, 64px);
  display: flex; gap: clamp(12px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.cs-gallery::-webkit-scrollbar { display: none; }
.cs-gallery img { flex: none; width: clamp(180px, 22vw, 260px); height: auto; border-radius: 22px; scroll-snap-align: center; box-shadow: 0 24px 50px -20px rgba(0,0,0,0.45); }
.cs-gallery--web { flex-direction: column; overflow: visible; }
.cs-gallery--web .browser--flat { position: static; width: 100%; margin: 0; }
.cs-gallery--web .browser--flat img { width: 100%; border-radius: 0; box-shadow: none; }
.cs-gallery--art { justify-content: center; align-items: center; min-height: 360px; }
.cs-gallery--art img { width: min(420px, 100%); border-radius: 16px; box-shadow: none; }
.cs-gallery--art svg { width: min(420px, 80%); }

.cs-next { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding-block: clamp(64px, 9vw, 120px); }
.cs-cta { display: grid; gap: 18px; justify-items: start; }
.cs-nextlink {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface);
  display: grid; gap: 10px; align-content: end; transition: transform 0.3s var(--ease), border-color 0.3s;
}
.cs-nextlink strong { font-size: clamp(24px, 3vw, 34px); font-weight: 500; letter-spacing: -0.03em; }
.cs-nextlink:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.cs-404 { padding-block: clamp(80px, 12vw, 160px); display: grid; gap: 28px; justify-items: start; }

@media (max-width: 860px) {
  .cs-grid, .cs-next { grid-template-columns: 1fr; }
  .cs-facts > div { grid-template-columns: 110px 1fr; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; padding-block: 64px 96px; }
.legal .display { margin-top: 12px; }
.legal__date { color: var(--muted); margin-top: 12px; font-size: 15px; }
.legal h2 { font-size: 22px; font-weight: 500; margin-top: 40px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; }
.legal ul { list-style: disc; padding-left: 20px; display: grid; gap: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 4px; }

/* Dot after "Co" is in the text colour (black), like the home page navbar */
.logo__dot { color: inherit; }
