/* =========================================================
   Cornerstone Creative — Revival-inspired redesign
   Palette (from cornerstonecreative.net):
     ink     #000000        (black)
     paper   #fafafa        (off-white)
     accent  hsl(197.58 100% 57.84%)  ~ #29c0ff (sky blue)
   Type: Anton (display) + Epilogue (body)
   ========================================================= */

:root {
  --paper: #fafafa;
  --paper-2: #f1f1f0;
  --ink: #0a0a0a;
  --ink-soft: #2b2b2b;
  --muted: #6c6c6c;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.9);

  --accent: hsl(197.58, 100%, 57.84%);
  --accent-deep: hsl(197.58, 92%, 44%);
  --accent-wash: hsla(197.58, 100%, 57.84%, 0.12);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Epilogue", system-ui, -apple-system, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 10vw, 9rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 100%;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- display type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: none;
}
h1.display { font-size: clamp(2.9rem, 9vw, 8.5rem); text-transform: uppercase; }
h2.display { font-size: clamp(2.3rem, 6vw, 5.2rem); }
h3.display { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.display em, .accent-word {
  font-style: italic;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--accent-deep);
}
.lead { font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem); line-height: 1.5; color: var(--ink-soft); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--accent); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--accent); }
.btn--ghost { border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); gap: 0.8rem; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: hsla(0, 0%, 98%, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.nav__logo { display: inline-flex; align-items: center; position: relative; }
.nav__logo img { height: 46px; width: auto; transition: opacity 0.45s var(--ease); }
.nav__logo .logo-dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.site-header.scrolled .nav__logo .logo-light { opacity: 0; }
.site-header.scrolled .nav__logo .logo-dark { opacity: 1; }
/* mobile open panel is light → match the dark menu words */
body.menu-open .nav__logo .logo-light { opacity: 0; }
body.menu-open .nav__logo .logo-dark { opacity: 1; }
/* transparent state = white text over hero */
.nav__links a:not(.btn) { color: #fff; }
.nav__toggle span { background: #fff; }
.site-header.scrolled .nav__links a:not(.btn) { color: var(--ink); }
.site-header.scrolled .nav__toggle span { background: var(--ink); }
/* mobile open panel is light → force dark text regardless of scroll */
body.menu-open .nav__links a:not(.btn) { color: var(--ink); }
body.menu-open .nav__toggle span { background: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-weight: 600; font-size: 0.95rem; position: relative; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__links a:not(.btn):hover::after,
.nav__links a.is-active::after { width: 100%; }

/* dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 0.35rem; }
/* invisible bridge so the cursor can travel from trigger to menu without closing it */
.has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.6rem; min-width: 248px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.25);
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.site-header .nav__links .dropdown a {
  display: block; padding: 0.7rem 0.9rem; border-radius: 9px; font-size: 0.92rem; font-weight: 600;
  color: var(--ink-soft) !important; /* panel is always light, so force dark text regardless of header scroll state */
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--accent-wash); color: var(--accent-deep); }

.nav__toggle { display: none; width: 30px; height: 22px; position: relative; }
.nav__toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 10px; }
.nav__toggle span:nth-child(3) { top: 20px; }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__toggle { display: block; z-index: 110; }
  .nav__links {
    position: fixed; inset: 78px 0 0 0;
    background: var(--paper);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 0.4rem; padding: 2rem var(--gutter); overflow-y: auto;
    transform: translateX(100%); transition: transform 0.4s var(--ease);
  }
  body.menu-open .nav__links { transform: translateX(0); }
  .nav__links > * { width: 100%; }
  .nav__links a { font-size: 1.4rem; font-family: var(--font-display); text-transform: uppercase; padding-block: 0.5rem; }
  .nav__links .btn { font-family: var(--font-body); text-transform: none; justify-content: center; margin-top: 0.5rem; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 0 0 0 1rem; min-width: 0; background: transparent; }
  .dropdown a { font-family: var(--font-body); font-size: 1rem; text-transform: none; padding: 0.4rem 0; }
  .has-dropdown > a .chev { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: clamp(3rem, 8vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero__inner { display: grid; gap: 2.5rem; }
.hero h1 { margin-bottom: 0.5rem; }
.hero__sub { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: end; justify-content: space-between; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 7; margin-top: 1rem;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,0,0,0.18), transparent 55%); }

/* floating meta row */
.meta-row { display: flex; flex-wrap: wrap; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); margin-top: 2.5rem; }
.meta-row .meta { }
.meta-row .meta b { font-family: var(--font-display); font-size: 2.6rem; display: block; line-height: 1; }
.meta-row .meta span { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }

/* ---------- full-bleed image hero ---------- */
.hero-image {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-image__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transform-origin: center; animation: heroPan 24s ease-in-out infinite alternate; }
@keyframes heroPan {
  0% { transform: scale(1.06) translate(0, 0); }
  50% { transform: scale(1.13) translate(-1.5%, 1.5%); }
  100% { transform: scale(1.06) translate(1.5%, -1%); }
}
@media (prefers-reduced-motion: reduce) { .hero-image__bg { animation: none; } }
.hero-image__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,10,14,0.55) 0%, rgba(8,10,14,0.42) 45%, rgba(8,10,14,0.62) 100%),
    radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(8,10,14,0.4) 100%);
}
.hero-image__content { position: relative; z-index: 2; color: #fff; padding-block: clamp(2.5rem, 6vw, 5rem); width: 100%; min-width: 0; max-width: 1140px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.hero-image__content h1 { color: #fff; margin: 1rem 0 1.4rem; font-size: clamp(2.3rem, 6.2vw, 5.5rem); overflow-wrap: break-word; }
.hero-image__content h1 em { color: var(--accent); }
/* Hero brand word: keep the accent color but match the display font */
.hero-image__content h1 em.hero-word { font-family: var(--font-display); font-style: normal; font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; }
.hero-image__content .lead { color: rgba(255,255,255,0.92); max-width: 60ch; margin-inline: auto; }
.hero-image__content .hero__cta { margin-top: 2.2rem; justify-content: center; }
.hero-image__content .eyebrow { justify-content: center; }
.eyebrow--light { color: rgba(255,255,255,0.85); }
.eyebrow--light::before { background: var(--accent); }
.btn--ghost-light { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,0.7); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.scroll-cue span { width: 1px; height: 34px; background: rgba(255,255,255,0.5); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%,100%{opacity:.3; transform:scaleY(.6);} 50%{opacity:1; transform:scaleY(1);} }
.hero-image__content > * { max-width: 100%; }
/* case-study photo hero (client pages) */
.hero-image--case { min-height: min(74vh, 660px); }
.hero-image__content .breadcrumbs { color: rgba(255,255,255,0.78); justify-content: center; }
.hero-image__content .breadcrumbs a:hover { color: #fff; }
.hero-image__content .tag-row { margin-top: 1.7rem; }
.hero-image__content .tag-row .tag { background: rgba(255,255,255,0.16); color: #fff; backdrop-filter: blur(4px); }
/* client name: big, all-caps, all-white, always one line */
.case-name { color: #fff !important; white-space: nowrap; font-size: clamp(1rem, 6.2vw, 4.8rem); margin: 0.4rem 0 0.6rem; }
.case-name em { color: #fff !important; font-style: normal; font-family: var(--font-display); }
.case-sub { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.25rem, 3vw, 2.1rem); line-height: 1.12; color: rgba(255,255,255,0.92); max-width: 26ch; }
.case-sub em { font-style: italic; color: var(--accent); }
@media (max-width: 640px) {
  .hero-image { min-height: 82vh; }
  .hero-image__content h1 { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  .hero-image__content .lead { font-size: 1rem; }
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.12em; }
}

/* =========================================================
   SPLIT / STATEMENT
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--media-right { }
.split__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split p + p { margin-top: 1.1rem; }
/* media stretches to match the height of the text column */
.split--stretch { align-items: stretch; }
.split--stretch .split__media { aspect-ratio: auto; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split__media, .split--stretch .split__media { aspect-ratio: 16/10; order: -1; } }

.statement { max-width: 22ch; }
.statement-block { max-width: 900px; }
.statement-block .display { margin-bottom: 1.5rem; }

/* =========================================================
   SERVICES LIST (numbered rows, Revival-style)
   ========================================================= */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2rem;
  align-items: center; padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative; transition: padding 0.35s var(--ease);
}
.svc-row__num { font-family: var(--font-display); color: var(--muted); font-size: 1.1rem; }
.svc-row__title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.5rem, 3.5vw, 2.6rem); line-height: 1; transition: color 0.3s var(--ease), transform 0.35s var(--ease); }
.svc-row__desc { color: var(--muted); max-width: 42ch; font-size: 0.98rem; }
.svc-row__go { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.35s var(--ease); flex-shrink: 0; }
.svc-row:hover { padding-inline: 1rem; }
.svc-row:hover .svc-row__title { color: var(--accent-deep); transform: translateX(6px); }
.svc-row:hover .svc-row__go { background: var(--accent); color: var(--ink); transform: rotate(-45deg); border-color: var(--accent); }
@media (max-width: 720px) {
  .svc-row { grid-template-columns: auto 1fr; }
  .svc-row__desc { grid-column: 1 / -1; }
  .svc-row__go { grid-row: 1; grid-column: 2; justify-self: end; width: 42px; height: 42px; }
}

/* =========================================================
   SERVICE CARDS (homepage grid, Squarespace-style)
   ========================================================= */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.svc-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 28px 55px -28px rgba(0,0,0,0.4); }
.svc-card__media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.06); }
.svc-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,10,14,0.35), transparent 55%); opacity: 0; transition: opacity 0.4s var(--ease); }
.svc-card:hover .svc-card__media::after { opacity: 1; }
.svc-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.svc-card__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.45rem; line-height: 1; margin-bottom: 0.7rem; }
.svc-card__desc { color: var(--muted); font-size: 0.95rem; flex: 1; }
.svc-card__link { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.9rem; color: var(--accent-deep); transition: gap 0.3s var(--ease); }
.svc-card:hover .svc-card__link { gap: 0.8rem; }
@media (max-width: 900px) { .svc-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-cards { grid-template-columns: 1fr; } }
/* home page: 4 on top, 3 centered on bottom */
.svc-cards--4 { display: flex; flex-wrap: wrap; justify-content: center; }
.svc-cards--4 > .svc-card { flex: 0 1 calc(25% - 1.2rem); }
@media (max-width: 1100px) { .svc-cards--4 > .svc-card { flex-basis: calc(33.333% - 1rem); } }
@media (max-width: 820px) { .svc-cards--4 > .svc-card { flex-basis: calc(50% - 0.8rem); } }
@media (max-width: 520px) { .svc-cards--4 > .svc-card { flex-basis: 100%; } }

/* ---------- work gallery (scroll-driven, no gaps) ---------- */
.marquee-section { overflow: hidden; }
.marquee { display: flex; flex-direction: column; }
.marquee__row {
  display: flex; width: max-content;
  cursor: grab; will-change: transform;
}
.marquee__row.is-dragging { cursor: grabbing; }
.marquee__row img {
  height: clamp(150px, 21vw, 300px); width: auto;
  object-fit: cover; flex-shrink: 0; display: block;
  -webkit-user-drag: none; user-select: none;
}

/* ---------- social media page ---------- */
.social-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.5rem, 1.2vw, 0.9rem); }
.social-gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: calc(var(--radius) - 6px); display: block; }
@media (max-width: 620px) { .social-gallery { grid-template-columns: repeat(2, 1fr); } }
/* full-bleed variant on white: one edge-to-edge row of tiles, like the home carousel */
.social-gallery--bleed { grid-template-columns: repeat(6, 1fr); padding-inline: clamp(0.8rem, 2vw, 1.6rem); }
@media (max-width: 1200px) { .social-gallery--bleed { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px)  { .social-gallery--bleed { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .social-gallery--bleed { grid-template-columns: repeat(2, 1fr); } }
.social-work { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.social-work img { width: 100%; border-radius: var(--radius); display: block; }
@media (max-width: 700px) { .social-work { grid-template-columns: 1fr; } }

/* website showcase: landscape browser tiles on a dark band */
.web-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); }
/* full-bleed variant: span the whole viewport width, like the home carousel */
.web-grid--bleed { padding-inline: clamp(1rem, 2.4vw, 1.8rem); }
.web-grid figure {
  margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10;
  background: #14161c; box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.web-grid figure:hover { transform: translateY(-8px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75); }
.web-grid img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
@media (max-width: 820px) { .web-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .web-grid { grid-template-columns: 1fr; } }

/* ---------- full-bleed video embeds (YouTube, click-to-play) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.8rem, 2vw, 1.6rem); }
.video-grid--bleed { padding-inline: clamp(1rem, 2.4vw, 1.8rem); }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }
.video-embed {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  margin: 0; padding: 0; border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px; overflow: hidden; cursor: pointer; background: #000;
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.7);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.video-embed:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.video-embed__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.video-embed:hover .video-embed__thumb { transform: scale(1.05); }
.video-embed::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.55) 100%); transition: opacity 0.4s var(--ease); }
.video-embed__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: clamp(58px, 6vw, 80px); height: clamp(58px, 6vw, 80px); border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.video-embed:hover .video-embed__play { transform: translate(-50%, -50%) scale(1.09); background: #fff; }
.video-embed__play::before {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #0a0a0a;
}
.video-embed__label { position: absolute; left: clamp(1rem, 2vw, 1.4rem); bottom: clamp(0.9rem, 1.8vw, 1.2rem); z-index: 2; color: #fff; font-weight: 600; font-size: clamp(0.9rem, 1.4vw, 1.05rem); letter-spacing: 0.01em; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.video-embed.is-playing::after, .video-embed.is-playing .video-embed__play, .video-embed.is-playing .video-embed__label, .video-embed.is-playing .video-embed__thumb { display: none; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* =========================================================
   WORK / PORTFOLIO GRID
   ========================================================= */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2rem); }
.work-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.work-card__media { aspect-ratio: 4/3; overflow: hidden; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.05); }
.work-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.work-card__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.work-card__tags { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--accent-wash); color: var(--accent-deep); }
.work-card__go { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background 0.3s var(--ease), transform 0.35s var(--ease); }
.work-card:hover .work-card__go { background: var(--accent); transform: rotate(-45deg); border-color: var(--accent); }
.work-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .work-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .work-grid, .work-grid--3 { grid-template-columns: 1fr; } }

/* =========================================================
   FEATURE GRID (value cards)
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.feature {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.feature:hover { transform: translateY(-6px); border-color: transparent; background: #fff; box-shadow: 0 24px 50px -28px rgba(0,0,0,0.35); }
.feature__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-wash); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 1.1rem; }
.feature__num { font-family: var(--font-display); color: var(--accent); font-size: 1.4rem; margin-bottom: 0.8rem; }
.feature h4 { font-size: 1.15rem; margin-bottom: 0.5rem; font-weight: 700; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- process: winding path drawn on scroll ---------- */
.process__track { position: relative; margin-top: clamp(1rem, 3vw, 2rem); }
.process__svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; overflow: visible;
}
.process__line {
  stroke: var(--accent); stroke-width: 3; stroke-linecap: round; fill: none;
  filter: drop-shadow(0 0 6px hsla(197.58, 100%, 57.84%, 0.55));
}
.process__steps {
  position: relative; z-index: 1; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-rows: repeat(4, 1fr);
  min-height: clamp(580px, 80vh, 820px);
}
.process__step {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  column-gap: clamp(1rem, 4vw, 3rem);
}
.process__num {
  grid-column: 2; z-index: 2;
  width: clamp(46px, 6vw, 62px); height: clamp(46px, 6vw, 62px); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.5);
  background: #14161c; border: 1.5px solid rgba(255, 255, 255, 0.18);
  transition: color 0.4s var(--ease), background 0.4s var(--ease),
              border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.process__body { max-width: 320px; }
.process__body h4 {
  font-family: var(--font-display); text-transform: uppercase; color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1; margin-bottom: 0.5rem;
}
.process__body p { color: rgba(255, 255, 255, 0.62); font-size: 0.95rem; }
.process__step:nth-child(odd) .process__body { grid-column: 1; justify-self: end; text-align: right; }
.process__step:nth-child(even) .process__body { grid-column: 3; justify-self: start; text-align: left; }

/* reveal / active state driven by scroll */
.process__body { opacity: 0; transform: translateY(18px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.process__step.is-active .process__body { opacity: 1; transform: none; }
.process__step.is-active .process__num {
  color: var(--ink); background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 6px hsla(197.58, 100%, 57.84%, 0.14), 0 0 28px -4px var(--accent);
  transform: scale(1.06);
}

@media (max-width: 680px) {
  /* left-aligned timeline on small screens: line JS is off, so show steps + dots statically */
  .process__svg { display: none; }
  .process__body { opacity: 1; transform: none; }
  .process__num { color: var(--ink); background: var(--accent); border-color: var(--accent); }
  .process__steps { min-height: 0; gap: clamp(2rem, 8vw, 3rem); grid-template-rows: none; padding-left: 4px; }
  .process__steps::before {
    content: ""; position: absolute; left: calc(clamp(46px, 6vw, 62px) / 2 + 2px); top: 8px; bottom: 8px;
    width: 2px; background: linear-gradient(180deg, var(--accent), hsla(197.58, 100%, 57.84%, 0.15));
    z-index: 0;
  }
  .process__step { grid-template-columns: auto 1fr; column-gap: 1.1rem; }
  .process__num { grid-column: 1; }
  .process__step:nth-child(odd) .process__body,
  .process__step:nth-child(even) .process__body { grid-column: 2; justify-self: start; text-align: left; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .process__body { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   PROCESS (steps)
   ========================================================= */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(120px, 0.4fr) 1fr; gap: 2rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__k { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); color: var(--accent); line-height: 1; }
.step h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.4rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); max-width: 60ch; }
.step__tags { margin-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
@media (max-width: 640px) { .step { grid-template-columns: 1fr; gap: 0.6rem; } }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); border-radius: clamp(20px, 4vw, 36px); padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem); }
.cta-band::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); opacity: 0.55; }
.cta-band__inner { position: relative; display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta-band .display { color: var(--paper); }
.cta-band .display em { color: var(--accent); }
.cta-band .btn--solid { background: var(--paper); color: var(--ink); }
.cta-band .btn--solid:hover { background: var(--accent); color: var(--ink); }

/* =========================================================
   GRADIENT HERO (service + client pages, Squarespace-style)
   ========================================================= */
.grad-hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(5rem, 13vw, 9.5rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.grad-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(58% 80% at 16% 18%, #ff5b86 0%, transparent 55%),
    radial-gradient(55% 80% at 86% 12%, #8a5cff 0%, transparent 55%),
    radial-gradient(75% 95% at 72% 100%, #29c0ff 0%, transparent 58%),
    radial-gradient(60% 70% at 35% 80%, #6a3cff 0%, transparent 55%),
    linear-gradient(135deg, #221056 0%, #0e2a5e 55%, #0a4a73 100%);
  background-color: #15123f;
}
.grad-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(8,10,16,0.2); }
.grad-hero > * { position: relative; z-index: 1; }
.grad-hero .breadcrumbs { color: rgba(255,255,255,0.7); justify-content: center; }
.grad-hero .breadcrumbs a:hover { color: #fff; }
.grad-hero .eyebrow { color: rgba(255,255,255,0.85); justify-content: center; }
.grad-hero .eyebrow::before { background: #fff; }
.grad-hero h1 { color: #fff; margin: 1rem 0 1.2rem; }
.grad-hero h1 em { color: #fff; opacity: 0.92; }
.grad-hero h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); }
.grad-hero .lead { color: rgba(255,255,255,0.92); max-width: 60ch; margin-inline: auto; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.8rem; }
.tag-row .tag { background: rgba(255,255,255,0.15); color: #fff; backdrop-filter: blur(4px); }

/* =========================================================
   CASE STUDY GALLERY
   ========================================================= */
.case-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(0.8rem, 2vw, 1.4rem); }
.case-gallery figure { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.case-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.case-gallery figure:hover img { transform: scale(1.04); }
.g-tall { grid-column: span 4; aspect-ratio: 3/4; }
.g-wide { grid-column: span 8; aspect-ratio: 16/10; }
.g-half { grid-column: span 6; aspect-ratio: 4/3; }
.g-third { grid-column: span 4; aspect-ratio: 1/1; }
@media (max-width: 760px) {
  .g-tall, .g-wide, .g-half, .g-third { grid-column: span 6; aspect-ratio: 4/3; }
}
@media (max-width: 480px) {
  .g-tall, .g-wide, .g-half, .g-third { grid-column: span 12; }
}
/* Masonry photo collage — each frame fits its photo, no cropping */
.photo-collage { columns: 3; column-gap: clamp(0.8rem, 2vw, 1.4rem); }
.photo-collage figure { break-inside: avoid; margin: 0 0 clamp(0.8rem, 2vw, 1.4rem); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.photo-collage img { width: 100%; height: auto; display: block; transition: transform 0.7s var(--ease); }
.photo-collage figure:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .photo-collage { columns: 2; } }
@media (max-width: 560px) { .photo-collage { columns: 1; } }

/* =========================================================
   PAGE HERO (interior pages)
   ========================================================= */
.page-hero { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.page-hero .eyebrow { margin-bottom: 1.2rem; }
.page-hero h1 { margin-bottom: 1.4rem; }
.page-hero .lead { max-width: 60ch; }
.breadcrumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.4rem; display: flex; gap: 0.5rem; }
.breadcrumbs a:hover { color: var(--accent-deep); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; text-align: left; font-weight: 700; font-size: 1.1rem; }
.faq__q .pm { flex-shrink: 0; width: 26px; height: 26px; position: relative; }
.faq__q .pm::before, .faq__q .pm::after { content: ""; position: absolute; background: var(--accent-deep); transition: transform 0.3s var(--ease); }
.faq__q .pm::before { top: 12px; left: 0; width: 26px; height: 2px; }
.faq__q .pm::after { top: 0; left: 12px; width: 2px; height: 26px; }
.faq__item.open .pm::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); color: var(--muted); }
.faq__a > div { padding-bottom: 1.4rem; max-width: 70ch; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.9rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: #fff; color: var(--ink); transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.field textarea { min-height: 140px; resize: vertical; }
.contact-info { display: grid; gap: 1.6rem; }
.contact-info .ci { padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.contact-info .ci span { display: block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; color: var(--muted); margin-bottom: 0.35rem; }
.contact-info .ci a, .contact-info .ci p { font-size: 1.2rem; font-weight: 600; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.form-success { display: none; padding: 1.5rem; border-radius: 12px; background: var(--accent-wash); color: var(--accent-deep); font-weight: 700; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(4rem, 8vw, 7rem); }
.footer-cta { padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-cta .display { color: var(--paper); font-size: clamp(2.6rem, 8vw, 6.5rem); }
.footer-cta .display em { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-grid h5 { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-bottom: 1.2rem; font-weight: 700; }
.footer-grid a { color: rgba(255,255,255,0.82); display: inline-block; padding-block: 0.35rem; transition: color 0.25s var(--ease); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand img { height: 28px; filter: invert(1); margin-bottom: 1.2rem; }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 34ch; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; color: var(--paper); }
.footer-social a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-block: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: rgba(255,255,255,0.55); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* section separation — full-bleed band behind a max-width section */
.section--alt, .section--tint { position: relative; }
.section--alt::before, .section--tint::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%); z-index: -1;
}
.section--alt::before { background: var(--paper-2); }
.section--tint::before { background: linear-gradient(180deg, #eef4fb, #e7eefb); }
.section--line { border-top: 1px solid var(--line); }

/* dark section band (Revival-style) */
.section--dark { position: relative; color: #fff; }
.section--dark::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%); z-index: -1;
  background: var(--ink);
}
.section--dark .eyebrow { color: rgba(255, 255, 255, 0.7); }
.section--dark .display { color: #fff; }
.section--dark .btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); }
/* cards on the dark band keep their light background, so keep their text dark */
.section--dark .work-card { color: var(--ink); }

/* logo-only work cards: the whole picture is the button (same size as before, just no text) */
.work-card--logo { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.work-card--logo:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }

/* values on one line */
.feature-grid--row { grid-template-columns: repeat(5, 1fr); }
.feature-grid--row .feature { padding: 1.3rem 1.1rem; }
.feature-grid--row .feature h4 { font-size: 1.02rem; }
.feature-grid--row .feature p { font-size: 0.86rem; }
@media (max-width: 900px) { .feature-grid--row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid--row { grid-template-columns: 1fr; } }

/* utility */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.muted { color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .eyebrow { margin-bottom: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items:center;}
@media (max-width: 820px){ .grid-2 { grid-template-columns: 1fr; } }

/* ===== About page — editorial layout ===== */

/* hero meta detail */
.hero-meta { margin-top: 1.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; color: rgba(255, 255, 255, 0.72); }

/* belief / manifesto statement */
.statement { max-width: 1040px; }
.statement__head { font-family: var(--font-display); text-transform: uppercase; line-height: 0.9; font-size: clamp(2.8rem, 8vw, 7rem); margin-top: 0.6rem; }
.statement__sub { margin-top: clamp(1.4rem, 3vw, 2.4rem); padding-left: clamp(1rem, 2vw, 1.6rem); border-left: 3px solid var(--accent); max-width: 58ch; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); }
@media (min-width: 821px) { .statement__sub { margin-left: 34%; } }

/* values as an editorial index list */
.value-list { margin-top: clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--line-strong); }
.value-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1rem, 4vw, 3rem); align-items: baseline; padding: clamp(1.3rem, 3vw, 2.1rem) 0; border-bottom: 1px solid var(--line); transition: padding-left 0.4s var(--ease); }
.value-row:hover { padding-left: clamp(0.4rem, 2vw, 1.3rem); }
.value-row__num { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--accent); }
.value-row__name { font-family: var(--font-display); text-transform: uppercase; line-height: 0.95; font-size: clamp(1.8rem, 5vw, 3.4rem); transition: color 0.3s var(--ease); }
.value-row:hover .value-row__name { color: var(--accent-deep); }
.value-row__desc { color: var(--muted); max-width: 44ch; }
@media (max-width: 760px) {
  .value-row { grid-template-columns: 3rem 1fr; row-gap: 0.5rem; }
  .value-row__desc { grid-column: 2 / -1; }
}

/* FAQ two-column editorial */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.5fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; position: sticky; top: 110px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .section-head { position: static; margin-bottom: 1.5rem; } }

/* ---------- legal / prose pages ---------- */
.legal { max-width: 820px; }
.legal .legal-updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.4rem; }
.legal h2 { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.85rem); margin: 2.6rem 0 0.7rem; color: var(--ink); }
.legal h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; margin: 1.6rem 0 0.4rem; color: var(--ink); }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.75; }
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1.2rem 1.25rem; }
.legal li { margin-bottom: 0.45rem; }
.legal a { color: var(--accent-deep); text-decoration: underline; }
.legal a:hover { color: var(--ink); }
.legal strong { color: var(--ink); }

/* ---------- blog / case studies ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.35); }
.post-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: clamp(1.1rem, 2vw, 1.5rem); display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.post-card__cat { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; }
.post-card__title { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.post-card__excerpt { color: var(--muted); font-size: 0.94rem; line-height: 1.55; flex: 1; }
.post-card__date { color: var(--muted); font-size: 0.82rem; margin-top: 0.2rem; }
.post-empty { text-align: center; color: var(--muted); padding: clamp(3rem, 8vw, 6rem) 0; }

/* article page */
.article-hero { text-align: center; }
.article-hero .eyebrow { justify-content: center; }
/* Blog hero: full-page, text layered over the photo, title capped at two lines */
.hero-image--blog { min-height: 100vh; min-height: 100svh; }
.hero-image--blog .hero-image__content h1 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  max-width: 28ch;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.hero-image--blog .article-meta { color: rgba(255,255,255,0.82); margin-top: 0.4rem; }
.article-meta { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }
.article-cover { margin-top: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius); overflow: hidden; }
.article-cover img { width: 100%; display: block; }
.article { max-width: 760px; margin-inline: auto; }
.article > * + * { margin-top: 1.2rem; }
.article h2 { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2.6rem; color: var(--ink); }
.article h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; margin-top: 1.9rem; color: var(--ink); }
.article h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-top: 1.5rem; color: var(--ink); }
.article p, .article li { color: var(--ink-soft); line-height: 1.8; font-size: 1.05rem; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-top: 0.5rem; }
.article a { color: var(--accent-deep); text-decoration: underline; }
.article a:hover { color: var(--ink); }
.article strong { color: var(--ink); }
.article blockquote { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1.2rem; margin: 2rem 0; color: var(--ink); font-style: italic; font-size: 1.15rem; }
.article__figure { margin: 2rem 0; }
.article__figure img { width: 100%; border-radius: var(--radius); display: block; }
.article__figure figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; text-align: center; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }
.article code { background: var(--paper-2); padding: 0.1em 0.4em; border-radius: 5px; font-size: 0.9em; }

/* ---------- cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 1.2rem;
  transform: translateX(-50%) translateY(180%);
  z-index: 300; width: min(1000px, calc(100vw - 2rem));
  background: var(--ink); color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0,0,0,0.4);
  padding: clamp(1rem, 2.4vw, 1.4rem) clamp(1.1rem, 3vw, 1.9rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.6rem;
  opacity: 0; transition: transform 0.55s var(--ease), opacity 0.45s var(--ease);
}
.cookie-banner.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.cookie-banner__text { flex: 1 1 320px; font-size: 0.9rem; line-height: 1.55; color: rgba(255,255,255,0.82); }
.cookie-banner__text a { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-banner__actions .btn { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: opacity 0.3s linear; } }
@media (max-width: 560px) {
  .cookie-banner { bottom: 0.6rem; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}
