/* ============================================================
   Truistic Media — marketing site
   "Chrome on black": #0D0E11 canvas, silver text, one electric
   blue. Michroma display (the wordmark face), Alan Sans body.
   Tokens mirror truistic-hub's globals.css — values copied, not
   code (the hub and this site share brand only).
   ============================================================ */

:root {
  --bg: #0d0e11;
  --bg-raised: #13151a;
  --bg-lifted: #191c23;
  --line: #23262e;
  --text: #d6d7d9;
  --text-dim: #8e9095;
  --silver: #b6b7b8;
  --highlight: #fefefe;
  --primary: #24a8eb;
  --primary-ink: #06070b;
  --brand: #4fbdf5;
  --brand-soft: #8ad2f8;
  --font-display: "Michroma", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Alan Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --measure: 38rem;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 78% -8%, rgba(36, 168, 235, 0.07), transparent 65%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* Film grain over the whole canvas — the "shot on something real" layer. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-soft); }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { left: 0.75rem; }

/* ---------- Type treatments (canonical, from the brand) ---------- */

/* Michroma runs ~35% wide at a single 400 weight — size display text a
   step smaller than a normal face and let letterspacing do the talking. */
.font-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis-weight: none;
  text-transform: uppercase;
  line-height: 1.16;
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.34em;
  color: var(--text-dim);
}
.eyebrow .tick { color: var(--primary); }

.tagline {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand);
  text-shadow: 0 0 18px rgba(79, 189, 245, 0.45);
}

.chrome-text {
  background: linear-gradient(180deg,
    var(--highlight) 0%,
    var(--silver) 55%,
    #6f7073 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3 { color: var(--highlight); }

.h-display {
  font-size: clamp(1.6rem, 4.6vw, 3.4rem);
  letter-spacing: 0.02em;
}

.h-section {
  font-size: clamp(1.25rem, 2.9vw, 2.1rem);
  letter-spacing: 0.03em;
}

.h-section-xl { font-size: clamp(1.6rem, 4.2vw, 3rem); }

/* A word drawn only in outline — chrome's negative space. */
.outline-word {
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in oklab, var(--silver) 75%, transparent);
}

.head-count { color: var(--brand); letter-spacing: 0.2em; }

.h-item {
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  letter-spacing: 0.05em;
}

.lede {
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1.6vw, 1.2rem);
  color: var(--text);
}

.dim { color: var(--text-dim); }

/* ---------- Layout primitives ---------- */

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

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }

.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .eyebrow { display: block; margin-bottom: 1rem; }

.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid var(--line);
  color: var(--highlight);
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out,
    background 160ms ease-out, color 160ms ease-out;
}
.btn:hover { border-color: var(--brand); color: var(--highlight); }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}
.btn-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--primary-ink);
  box-shadow: 0 0 28px rgba(79, 189, 245, 0.35);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}
/* Opaque shield above the header: iOS extends the page canvas behind the
   status bar while scrolling, which let content peek out over the short
   nav. This blocks anything from showing above it. */
.nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 100vh;
  background: var(--bg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.65rem;
}

/* Full brand lockup (ring + wordmark + glint) — same drawing as the hub's
   TruisticMark; nav and footer render it at different heights. */
.brand { display: inline-flex; }
.brand-mark { display: block; height: 3.1rem; width: auto; }
.footer-mark { height: 2.7rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 1.8rem);
  list-style: none;
}
.nav-links a {
  white-space: nowrap;
}
.nav-links a:not(.btn) {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nav-links a:not(.btn):hover { color: var(--highlight); }
.nav-links .btn { padding: 0.55rem 1.1rem; font-size: 0.6rem; }

@media (max-width: 860px) {
  .nav-links li.hide-m { display: none; }
}

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

.hero {
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 9rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-mark {
  position: absolute;
  right: 4vw;
  top: 50%;
  translate: 0 -50%;
  width: min(44rem, 56vw);
  opacity: 0.16;
  pointer-events: none;
  animation: mark-float 11s ease-in-out infinite alternate;
}

/* The ring draws itself on load; the glint breathes. */
.hero-mark ellipse {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ring-draw 2s 250ms cubic-bezier(0.3, 0, 0.2, 1) forwards;
}
.hero-mark path {
  transform-box: fill-box;
  transform-origin: center;
  animation: glint-pulse 4.2s ease-in-out 2.2s infinite;
}

@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes glint-pulse {
  0%, 100% { scale: 1; opacity: 1; }
  50% { scale: 0.78; opacity: 0.7; }
}
@keyframes mark-float {
  from { transform: translateY(-8px); }
  to { transform: translateY(10px); }
}

.hero .eyebrow { display: block; margin-bottom: 1.4rem; }

.hero h1 {
  max-width: 17ch;
  margin-bottom: 1.6rem;
}

/* Headline lands line by line — lift, unblur, settle. Each line carries
   its own slice of the chrome gradient: the animated filter/transform give
   the spans stacking contexts, so a parent background-clip:text would
   never paint into them. */
.hero-title .hl {
  display: block;
  background: linear-gradient(180deg, var(--highlight), var(--silver));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  translate: 0 26px;
  filter: blur(10px);
  animation: hl-in 800ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-title .hl:nth-child(2) {
  animation-delay: 140ms;
  background-image: linear-gradient(180deg,
    color-mix(in oklab, var(--highlight) 45%, var(--silver)),
    color-mix(in oklab, var(--silver) 70%, #6f7073));
}
.hero-title .hl:nth-child(3) {
  animation-delay: 280ms;
  background-image: linear-gradient(180deg,
    color-mix(in oklab, var(--silver) 80%, #6f7073),
    #6f7073);
}

@keyframes hl-in {
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}

.hero .lede { margin-bottom: 2.4rem; }

/* Stagger the rest of the hero in behind the headline. */
.hero .lede.reveal { transition-delay: 120ms; }
.hero-ctas.reveal { transition-delay: 220ms; }
.hero-tag.reveal { transition-delay: 320ms; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.hero-tag {
  margin-top: 3rem;
  font-size: 0.66rem;
}

/* ---------- Discipline strip (static) ---------- */

.disciplines {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem 2rem;
  border-block: 1px solid var(--line);
  padding: 1.05rem var(--pad);
  user-select: none;
}
.disciplines span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
}
.disciplines .dot { color: var(--primary); text-shadow: 0 0 12px rgba(36,168,235,.6); }

/* ---------- Stats band (open editorial columns, no box) ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 0.5rem 1.6rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }

.stat::before {
  content: "✦";
  display: block;
  margin-bottom: 0.8rem;
  color: var(--brand);
  font-size: 0.7rem;
  text-shadow: 0 0 12px rgba(36, 168, 235, 0.6);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  margin-bottom: 0.55rem;
}
.stat small {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
  display: block;
}

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 0; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ---------- Work rows (editorial index) ---------- */

.work-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.work-row:last-of-type { border-bottom: 1px solid var(--line); }
.work-row.flip .work-media { order: 2; }
@media (max-width: 860px) {
  .work-row, .work-row.flip { grid-template-columns: 1fr; }
  .work-row.flip .work-media { order: 0; }
}

.work-media {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.85);
}
/* Soft light sweep across the frame's top corner. */
.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(254, 254, 254, 0.07), transparent 38%);
}
.work-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* --py is the scroll-parallax offset set by site.js; the base scale
     gives the drift room so edges never show. */
  transform: translateY(var(--py, 0));
  scale: 1.08;
  filter: saturate(0.92);
  transition: scale 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 400ms ease-out;
}
.work-row:hover .work-media img { scale: 1.13; filter: saturate(1.06); }

/* Graphic art (decks, story frames, wide key art) shows whole, matted in
   the frame — no cover-crop, no zoom or parallax (contain leaves no room). */
.work-media.fit img {
  object-fit: contain;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  transform: none;
  scale: 1;
}
.work-row:hover .work-media.fit img { scale: 1; }

/* Giant outlined numeral ghosting behind each entry's copy. */
.work-ghost {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in oklab, var(--silver) 35%, transparent);
  margin-bottom: -0.36em;
  user-select: none;
  transition: -webkit-text-stroke-color 300ms ease-out, text-shadow 300ms ease-out;
}
.work-row:hover .work-ghost {
  -webkit-text-stroke-color: color-mix(in oklab, var(--brand) 60%, transparent);
  text-shadow: 0 0 30px rgba(79, 189, 245, 0.25);
}
.work-copy > :not(.work-ghost) { position: relative; }

.work-copy .eyebrow { display: block; margin-bottom: 0.9rem; }
.work-copy h3 { margin-bottom: 0.9rem; }
.work-copy .h-item { font-size: clamp(1.15rem, 2.2vw, 1.6rem); }
.work-copy p { max-width: 34rem; margin-bottom: 1.4rem; }

.work-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}
.work-stat::before {
  content: "✦";
  font-size: 0.85em;
  text-shadow: 0 0 12px rgba(36, 168, 235, 0.6);
}

.link-arrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.link-arrow::after {
  content: "→";
  display: inline-block;
  margin-left: 0.5em;
  transition: translate 200ms ease-out;
}
.link-arrow:hover::after { translate: 5px 0; }

/* Cursor-follow "view" pill over work media (fine pointers only). */
.peek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  translate: -50% calc(-100% - 14px);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-ink);
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  scale: 0.6;
  transform-origin: bottom center;
  transition: opacity 160ms ease-out, scale 160ms ease-out;
  box-shadow: 0 0 24px rgba(79, 189, 245, 0.35);
}
.peek.on { opacity: 1; scale: 1; }

/* ---------- Web & Software movement (browser-frame cards) ---------- */

/* Sits below the creative rows as a second, tighter movement — divider +
   air so the density shift reads as intentional. */
.work-web {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.work-web .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.web-intro { margin-bottom: clamp(2rem, 4vw, 3rem); }

.web-group-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: clamp(1.8rem, 3.5vw, 2.6rem) 0 1.2rem;
}
.web-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.web-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.web-grid.featured { grid-template-columns: repeat(2, 1fr); }
.web-grid.compact { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) {
  .web-grid.featured, .web-grid.compact { grid-template-columns: 1fr; }
}

/* The card: a stylized browser window — chrome bar + content, no photo. */
.web-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
  color: inherit;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out,
    translate 200ms ease-out;
}
.web-card:hover {
  border-color: color-mix(in oklab, var(--brand) 55%, var(--line));
  box-shadow: 0 24px 60px -38px rgba(0, 0, 0, 0.9);
  translate: 0 -4px;
}

.web-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-lifted);
  border-bottom: 1px solid var(--line);
}
.web-dots { display: inline-flex; gap: 0.32rem; flex: none; }
.web-dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--line);
}
.web-dots i:first-child { background: color-mix(in oklab, var(--primary) 70%, var(--line)); }
.web-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 60%, transparent);
  flex: 1;
  min-width: 0;
}

.web-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  flex: 1;
}
.web-body .eyebrow { display: block; }
.web-body h3 { color: var(--highlight); }
.web-body p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0.1rem 0 0.4rem;
}
.web-stack {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--silver);
  opacity: 0.75;
}
.web-cta {
  margin-top: auto;
  padding-top: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  transition: color 160ms ease-out;
}
.web-card:hover .web-cta { color: var(--brand-soft); }

/* Compact cards read a step smaller — supporting evidence, not headliners. */
.web-grid.compact .web-body { gap: 0.45rem; padding: clamp(1rem, 2vw, 1.35rem); }
.web-grid.compact .web-body h3 { font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.web-grid.compact .web-body p { font-size: 0.88rem; }

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

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
@media (max-width: 1020px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.service {
  border-top: 2px solid var(--line);
  padding-top: 1.4rem;
  transition: border-color 200ms ease-out;
}
.service:hover { border-top-color: var(--primary); }
.service h3 { margin-bottom: 0.9rem; }
.service > p { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 1.1rem; }
.service ul { list-style: none; }
.service li {
  padding-block: 0.42rem;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 55%, transparent);
  font-size: 0.95rem;
}
.service li::before { content: "· "; color: var(--primary); }

/* ---------- North stars ---------- */

.stars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
@media (max-width: 860px) { .stars { grid-template-columns: 1fr; } }

.star {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 0.625rem;
  padding: 1.8rem 1.6rem;
}
.star .glint { color: var(--brand); font-size: 1.1rem; }
.star h3 { margin: 0.8rem 0 0.7rem; }
.star p { font-size: 0.97rem; color: var(--text-dim); }

/* ---------- Process ---------- */

.process { counter-reset: step; list-style: none; }

.process li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 5.5rem 16rem 1fr;
  gap: 1.25rem 2rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}
.process li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
  .process li { grid-template-columns: 4rem 1fr; }
  .process li p { grid-column: 2; }
}

.process li::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding-top: 0.2rem;
}
.process h3 { font-size: 1rem; letter-spacing: 0.06em; }
.process p { color: var(--text-dim); max-width: 44rem; }
.process .flag {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 18%, transparent);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  vertical-align: middle;
}

/* ---------- Split / ways in ---------- */

.split-quote {
  max-width: 46rem;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  color: var(--highlight);
  margin-bottom: 2.5rem;
}
.split-quote em {
  font-style: normal;
  color: var(--brand);
}

.ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

.way {
  border: 1px solid var(--line);
  border-radius: 0.625rem;
  padding: 1.7rem 1.5rem;
  background: var(--bg-raised);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.way h3 { font-size: 0.95rem; letter-spacing: 0.08em; }
.way .for { font-size: 0.8rem; color: var(--brand); font-family: var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; }
.way p { font-size: 0.95rem; color: var(--text-dim); flex: 1; }

/* ---------- Collective ---------- */

.collective-intro { display: grid; gap: 1.1rem; }
.collective-intro p { max-width: var(--measure); }

.members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
}
@media (max-width: 860px) {
  .members { grid-template-columns: 1fr; max-width: 24rem; }
}

.member {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.625rem;
  overflow: hidden;
  background: var(--bg-raised);
}
/* 2:3 frames — the portraits' native ratio, so photos render uncropped.
   Non-2:3 sources get pre-extended assets (see trae-portrait-tall.webp)
   rather than cover-zoomed. */
.member img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}
.member figcaption {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.15rem 1.1rem;
  border-top: 1px solid var(--line);
}
.member figcaption b {
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--highlight);
}
.member figcaption span { font-size: 0.85rem; color: var(--text-dim); }

.bench {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.bench .bench-label {
  flex-basis: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.bench span {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
}
.bench i { font-style: normal; color: var(--text-dim); }

/* ---------- Dope CTA ---------- */

.dope {
  position: relative;
  text-align: center;
  padding-block: clamp(5rem, 12vw, 9rem);
  overflow: hidden;
}

.dope h2 {
  font-size: clamp(1.7rem, 6.2vw, 4.6rem);
  letter-spacing: 0.02em;
  line-height: 1.18;
}

.dope .orbit-word {
  position: relative;
  display: inline-block;
  padding: 0 0.08em;
  /* Re-apply the chrome clip locally: an inline-block child paints its own
     box, so the parent h2's background-clip:text never reaches this text —
     without this the word renders fully transparent. */
  background: linear-gradient(180deg,
    var(--highlight) 0%,
    var(--silver) 55%,
    #6f7073 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dope .orbit-word svg {
  position: absolute;
  inset: -38% -14%;
  width: 128%;
  height: 176%;
  pointer-events: none;
  overflow: visible;
}

.dope .sub {
  margin: 1.8rem auto 2.6rem;
  max-width: 34rem;
  color: var(--text-dim);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-side .tagline { display: block; margin-bottom: 1.2rem; font-size: 0.7rem; }
.contact-side p { max-width: 30rem; margin-bottom: 1.6rem; }

.socials { list-style: none; display: grid; gap: 0.5rem; }
.socials a {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

form.lead { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

label {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 0.625rem;
  color: var(--highlight);
  font: inherit;
  transition: border-color 150ms ease-out;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 189, 245, 0.15);
}
textarea { min-height: 8rem; resize: vertical; }

/* Honeypot — humans never see it. */
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 0.85rem; color: var(--text-dim); }
.form-note.ok { color: var(--brand); }
.form-note.err { color: #f2b8b5; }

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

footer.site {
  border-top: 1px solid var(--line);
  padding-block: 2.6rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-inner small { color: var(--text-dim); font-size: 0.82rem; }

/* ---------- Case-study pages ---------- */

.case-hero { padding-block: clamp(4rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4rem); }
.case-hero .eyebrow { display: block; margin-bottom: 1.3rem; }
.case-hero h1 { max-width: 20ch; margin-bottom: 1.4rem; }
.case-hero .lede { margin-bottom: 2.4rem; }

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0.625rem;
  overflow: hidden;
}
@media (max-width: 700px) { .case-meta { grid-template-columns: repeat(2, 1fr); } }
.case-meta div { background: var(--bg-raised); padding: 1.1rem 1.2rem; }
.case-meta dt {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.case-meta dd { color: var(--highlight); font-size: 0.95rem; }

.case-body h2 { margin-bottom: 1.1rem; }
/* The case body is a grid; without this, a child's intrinsic min-content
   width (an iframe, a wide strip) can force the track wider than the wrap
   and shove the whole page sideways. */
.case-body > * { min-width: 0; }
.case-body .prose { max-width: var(--measure); display: grid; gap: 1rem; }

.media-frame {
  border-radius: 0.625rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.media-frame figcaption {
  padding: 0.7rem 1rem;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
}

/* align-items: start keeps a short image's frame from stretching to its
   taller row-mate and showing a dead panel below the picture. */
.gallery { display: grid; gap: 1.25rem; align-items: start; }
.gallery img { width: 100%; }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .gallery.cols-3, .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .gallery.cols-2, .gallery.cols-3, .gallery.cols-4 { grid-template-columns: 1fr; }
}

/* Story-frame set — 9:16 frames in a wrapping grid, no sideways scroll.
   auto-fit stretches sparse rows (e.g. 3 partner frames) to fill the width. */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(10rem, 16vw, 13rem), 1fr));
  gap: 1.25rem;
}
.strip figure { margin: 0; }
.strip img { width: 100%; border-radius: 0.625rem; border: 1px solid var(--line); }
.strip figcaption {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100%, 52rem);
  margin-inline: auto;
  border-radius: 0.625rem;
  overflow: hidden;
  border: 1px solid var(--line);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.credits { max-width: 40rem; }
.credits dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 2rem; }
.credits dt {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-top: 0.25rem;
}
.credits dd { color: var(--text); }

.case-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 2.6rem;
  border-top: 1px solid var(--line);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 600ms ease-out, translate 600ms ease-out;
}
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1; translate: 0 0; }
  .hero-title .hl { animation: none; opacity: 1; translate: 0 0; filter: none; }
  .hero-mark ellipse { animation: none; stroke-dashoffset: 0; }
  .hero-mark, .hero-mark path { animation: none; }
  .peek { display: none; }
}
