/* =========================================================================
   PR HOUND · 2026
   Dark navy editorial with a hound-amber spine.
   Display: Bricolage Grotesque · Body: Hanken Grotesk
   ========================================================================= */

/* ---- Reset ---------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Tokens --------------------------------------------------------------*/
:root {
  /* Surfaces */
  --navy-900: #181922;   /* deepest (footer)           */
  --navy-800: #1c1e28;   /* hero/contrast bands        */
  --navy-700: #21222d;   /* base background            */
  --navy-600: #2a2c39;   /* raised surface             */
  --navy-500: #34374a;   /* card / input               */
  --line:     rgba(243,241,236,.10);
  --line-2:   rgba(243,241,236,.16);

  /* Ink */
  --ink:      #f3f1ec;
  --ink-soft: #c7c9d4;
  --muted:    #9298a9;
  --faint:    #686d80;

  /* Brand */
  --amber:      #ec6a00;
  --amber-hi:   #ff8a1f;
  --amber-deep: #c44e00;
  --amber-glow: rgba(236,106,0,.45);

  /* Paw beans (brand secondary) */
  --bean-yellow: #fec404;
  --bean-red:    #f42e31;
  --bean-blue:   #0774de;
  --bean-green:  #58ad34;

  /* Type */
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* Metrics */
  --wrap: 1240px;
  --wrap-tight: 920px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --header-h: 80px;
}

/* ---- Base ----------------------------------------------------------------*/
body {
  font-family: var(--body);
  background: var(--navy-700);
  color: var(--ink);
  line-height: 1.62;
  font-size: clamp(1rem, .96rem + .25vw, 1.125rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}

/* Film grain across everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: overlay;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--amber); color: #fff; }

/* ---- Typography ----------------------------------------------------------*/
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.9rem, 1.6rem + 6.2vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.03em;
}
.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber-hi);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--amber);
  display: inline-block;
}
.lead { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); color: var(--ink-soft); line-height: 1.5; }

/* Hand-scribble underline on emphasis words */
.scribble { position: relative; color: var(--ink); white-space: nowrap; }
.scribble::after {
  content: "";
  position: absolute;
  left: -.06em; right: -.06em;
  bottom: -.12em;
  height: .42em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 40 6, 80 6, 120 11 S 180 18, 197 9' fill='none' stroke='%23ec6a00' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease-out) .25s;
}
.reveal.is-in .scribble::after, .scribble.is-in::after { transform: scaleX(1); }
.amber { color: var(--amber-hi); }

/* ---- Layout helpers ------------------------------------------------------*/
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.6rem); }
.wrap--tight { max-width: var(--wrap-tight); }
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section--band { background: var(--navy-800); }
.section--deep { background: var(--navy-900); }

/* ---- Buttons -------------------------------------------------------------*/
.btn {
  --pad-y: .92em; --pad-x: 1.5em;
  display: inline-flex; align-items: center; gap: .6em;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--display);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(180deg, var(--amber-hi), var(--amber));
  color: #fff;
  box-shadow: 0 10px 26px -10px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn--primary:hover { box-shadow: 0 16px 38px -12px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,.32); }
.btn--primary:hover svg { transform: translateX(4px); }

.btn--ghost {
  background: rgba(243,241,236,.04);
  color: var(--ink);
  border-color: var(--line-2);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--amber); background: rgba(236,106,0,.10); }

.btn--lg { font-size: 1.08rem; --pad-y: 1.05em; --pad-x: 1.8em; }

/* arrow link */
.arrow-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--display); font-weight: 700; color: var(--amber-hi);
  transition: gap .3s var(--ease);
}
.arrow-link svg { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.arrow-link:hover { gap: .85em; }
.arrow-link:hover svg { transform: translateX(3px); }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 64px;
  background: color-mix(in srgb, var(--navy-800) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.header-inner { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.6rem); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand img { width: 40px; height: auto; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: -.03em; }
.brand__name b { color: var(--amber-hi); font-weight: 800; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  font-weight: 600; font-size: .96rem; color: var(--ink-soft);
  padding: .5rem .8rem; border-radius: 999px; position: relative;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .28rem;
  height: 2px; background: var(--amber); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { margin-left: .4rem; }

.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: .4rem; }
.nav-toggle svg { width: 28px; height: 28px; }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: color-mix(in srgb, var(--navy-900) 96%, transparent);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem clamp(1.2rem, 6vw, 3rem);
  /* visibility keeps the closed menu's links out of the tab order */
  transform: translateY(-100%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
}
.mobile-nav[data-open] { transform: translateY(0); visibility: visible; transition: transform .5s var(--ease); }
.mobile-nav ul { display: flex; flex-direction: column; gap: .4rem; }
.mobile-nav a { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -.03em; color: var(--ink); }
.mobile-nav a:hover { color: var(--amber-hi); }
.mobile-nav__close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: 0; color: var(--ink); cursor: pointer; }
.mobile-nav__close svg { width: 32px; height: 32px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 3rem); padding-bottom: 5rem;
  background: var(--navy-800);
  overflow: hidden;
}
/* amber aurora glow */
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 90vw; max-width: 1000px; aspect-ratio: 1; border-radius: 50%;
  top: -20%; right: -10%;
  background: radial-gradient(circle at center, var(--amber-glow), transparent 62%);
  filter: blur(30px); opacity: .8;
  transform: translateY(var(--p-slow, 0));
}
.hero__glow--2 {
  top: auto; bottom: -30%; right: auto; left: -15%;
  width: 60vw; max-width: 640px;
  background: radial-gradient(circle at center, rgba(7,116,222,.20), transparent 62%);
}
/* giant watermark paw */
.hero__paw {
  position: absolute; z-index: 0; right: -6%; bottom: -12%;
  width: min(46vw, 560px); opacity: .05; pointer-events: none;
  transform: rotate(8deg) translateY(var(--p-mid, 0));
}
/* scent trail */
.scent {
  position: absolute; z-index: 1; pointer-events: none;
  left: 50%; transform: translateX(-50%);
  width: 240px; height: 100%; top: 0;
  opacity: .5;
}
.scent path { stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 2 14; stroke-linecap: round; fill: none; }

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero .display { max-width: 16ch; }
.hero .display .line { display: block; overflow: hidden; }
.hero .display .line > span { display: block; transform: translateY(110%); }
.hero.is-in .display .line > span { transform: translateY(0); transition: transform 1s var(--ease-out); }
.hero.is-in .display .line:nth-child(2) > span { transition-delay: .12s; }
.hero.is-in .display .line:nth-child(3) > span { transition-delay: .24s; }

.hero__sub { max-width: 52ch; margin-top: 1.8rem; opacity: 0; transform: translateY(20px); }
.hero.is-in .hero__sub { opacity: 1; transform: none; transition: all .9s var(--ease-out) .5s; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; opacity: 0; transform: translateY(20px); }
.hero.is-in .hero__cta { opacity: 1; transform: none; transition: all .9s var(--ease-out) .65s; }

.hero__meta {
  position: absolute; bottom: 2rem; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .82rem; color: var(--muted); letter-spacing: .04em;
  opacity: 0;
}
.hero.is-in .hero__meta { opacity: 1; transition: opacity 1s ease 1s; }
.hero__scroll { display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; }
.hero__scroll span { width: 1px; height: 34px; background: linear-gradient(var(--amber), transparent); animation: scrollpulse 2s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100%{ transform: scaleY(.5); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* =========================================================================
   MARQUEE (clients)
   ========================================================================= */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--navy-700);
  padding-block: clamp(1.5rem, 3vw, 2.4rem);
  overflow: hidden;
  position: relative;
}
.marquee__label { text-align: center; color: var(--faint); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1.4rem; }
.marquee__track {
  display: flex; gap: clamp(2.5rem, 6vw, 5rem); width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: clamp(30px, 4vw, 44px); width: auto; object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1); opacity: .55;
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.marquee__track img:hover { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--navy-700), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--navy-700), transparent); }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__head h2 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4rem); }
.about__head .lead { margin-top: 1.5rem; }
.about__body p { color: var(--ink-soft); }
.about__body p + p { margin-top: 1.1rem; }
.about__pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .95rem; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .85rem; color: var(--ink-soft); background: rgba(243,241,236,.02);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; }

/* =========================================================================
   SERVICES
   ========================================================================= */
.section-head { max-width: 60ch; margin-bottom: clamp(2.4rem, 5vw, 3.8rem); }
.section-head h2 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4rem); margin-top: 1rem; }
.section-head .lead { margin-top: 1.1rem; }

.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.svc {
  position: relative; overflow: hidden;
  grid-column: span 2;
  background: var(--navy-600);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  display: flex; flex-direction: column;
  min-height: 240px;
  transition: transform .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}
.svc:nth-child(1), .svc:nth-child(2) { grid-column: span 3; }
.svc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, var(--svc-tint, rgba(236,106,0,.16)), transparent 55%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.svc:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--navy-500); }
.svc:hover::after { opacity: 1; }
.svc__top { display: flex; align-items: center; justify-content: space-between; }
.svc__num { font-family: var(--display); font-weight: 800; font-size: .9rem; color: var(--faint); letter-spacing: .05em; }
.svc__dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
.svc h3 { font-size: clamp(1.3rem, 1rem + .9vw, 1.7rem); margin-top: 1.4rem; }
.svc p { color: var(--muted); font-size: .98rem; margin-top: .7rem; }
.svc__more { margin-top: auto; padding-top: 1.4rem; }
.svc__more .arrow-link { font-size: .9rem; opacity: 0; transform: translateY(6px); transition: all .4s var(--ease); }
.svc:hover .svc__more .arrow-link,
.svc:focus-within .svc__more .arrow-link { opacity: 1; transform: none; }
@media (hover: none) { .svc__more .arrow-link { opacity: 1; transform: none; } }

/* =========================================================================
   WORK (featured + grid)
   ========================================================================= */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.work-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--navy-600);
  isolation: isolate;
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.work-card__media { position: absolute; inset: 0; z-index: -1; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .8s var(--ease); }
.work-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(24,25,34,.7) 0%, rgba(24,25,34,0) 70%),
    linear-gradient(180deg, rgba(24,25,34,0) 25%, rgba(24,25,34,.72) 60%, rgba(24,25,34,.97) 100%);
}
.work-card__body { text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.work-card:hover .work-card__media img { transform: scale(1.07); }
.work-card__body { position: relative; z-index: 1; padding: clamp(1.5rem, 3vw, 2.4rem); }
.work-card__tag { display: inline-block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-hi); font-weight: 700; margin-bottom: .8rem; }
.work-card h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); }
.work-card p { color: var(--ink-soft); margin-top: .7rem; max-width: 46ch; }
.work-card__stats { display: flex; gap: 2rem; margin-top: 1.4rem; flex-wrap: wrap; }
.work-card__stats b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--amber-hi); line-height: 1; }
.work-card__stats span { font-size: .8rem; color: var(--muted); }
.work-card--wide { grid-column: span 2; min-height: 420px; }

/* =========================================================================
   STATS BAND
   ========================================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 4vw, 3rem); text-align: center; }
.stat { position: relative; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 1.5rem + 5vw, 5rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.stat__num .unit { color: var(--amber-hi); }
.stat__label { margin-top: .8rem; color: var(--muted); font-size: .92rem; }
.stat + .stat::before {
  content: ""; position: absolute; left: calc(-1 * clamp(.75rem, 2vw, 1.5rem)); top: 10%; bottom: 10%;
  width: 1px; background: var(--line);
}

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact h2 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5rem); }
.contact .lead { margin-top: 1.4rem; max-width: 40ch; }
.contact__links { margin-top: 2rem; display: flex; flex-direction: column; gap: .9rem; }
.contact__links a { display: inline-flex; align-items: center; gap: .8rem; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); transition: color .25s var(--ease); width: fit-content; }
.contact__links a:hover { color: var(--amber-hi); }
.contact__links svg { width: 1.3em; height: 1.3em; color: var(--amber); }

.form { display: grid; gap: 1rem; background: var(--navy-600); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); }
.field { display: grid; gap: .45rem; }
.field label { font-size: .8rem; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.field input, .field textarea {
  background: var(--navy-800); border: 1px solid var(--line-2); border-radius: 12px;
  padding: .9rem 1rem; color: var(--ink); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(236,106,0,.18); }
.field textarea { resize: vertical; min-height: 120px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form button { margin-top: .4rem; justify-content: center; }
.form__note { font-size: .8rem; color: var(--faint); transition: color .25s var(--ease); }
.form__note[data-state="ok"] { color: var(--bean-green); }
.form__note[data-state="err"] { color: var(--bean-red); }

/* Prezly subscribe form */
.psub { display: grid; gap: 1rem; }
.tagset { border: 0; padding: 0; margin: 0; }
.tagset legend { font-size: .8rem; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 0; margin-bottom: .6rem; }
.tags { display: flex; flex-wrap: wrap; gap: .55rem; }
.tag { position: relative; cursor: pointer; }
.tag input { position: absolute; opacity: 0; width: 0; height: 0; }
.tag span {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .85rem; color: var(--ink-soft); background: rgba(243,241,236,.02);
  transition: all .25s var(--ease);
}
.tag span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: all .25s var(--ease); }
.tag:hover span { border-color: var(--amber); color: var(--ink); }
.tag input:checked + span { border-color: var(--amber); background: rgba(236,106,0,.14); color: var(--ink); }
.tag input:checked + span::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(236,106,0,.22); }
.tag input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Honeypot: visually hidden, off-screen, not display:none (bots skip those) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--navy-900); border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.footer-brand .brand { margin-bottom: 1.2rem; }
.footer-brand p { color: var(--muted); max-width: 36ch; font-size: .95rem; }
.footer-sub { margin-top: 1.6rem; }
.footer-sub h4 { font-family: var(--display); font-size: 1.05rem; margin-bottom: .8rem; color: var(--ink); }
.sub-form { display: flex; gap: .5rem; max-width: 380px; }
.sub-form input { flex: 1; background: var(--navy-700); border: 1px solid var(--line-2); border-radius: 999px; padding: .8rem 1.1rem; color: var(--ink); }
.sub-form input:focus { outline: none; border-color: var(--amber); }
.sub-form button { flex-shrink: 0; }
.footer-col h5 { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a { color: var(--ink-soft); transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--amber-hi); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-soft); transition: all .3s var(--ease); }
.footer-social a:hover { background: var(--amber); color: #fff; border-color: var(--amber); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

/* =========================================================================
   REVEAL (scroll-in)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* =========================================================================
   SUB-PAGE bits
   ========================================================================= */
.page-hero { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: clamp(2rem, 5vw, 4rem); background: var(--navy-800); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 1.5rem + 5vw, 5.5rem); }
.page-hero .lead { margin-top: 1.4rem; max-width: 56ch; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
.breadcrumb a:hover { color: var(--amber-hi); }

/* Case study detail pages */
.case-banner { width: 100%; aspect-ratio: 21 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: clamp(2rem, 4vw, 3rem); }
.case-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.case-block + .case-block { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); }
.case-block h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2rem); margin-bottom: .8rem; }
.case-block p { color: var(--ink-soft); max-width: 68ch; }

/* Article body for migrated posts and guides (content comes from the old CMS) */
.prose { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.75; max-width: 72ch; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-family: var(--display); line-height: 1.2; margin-top: 1.9em; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }
.prose strong, .prose b { color: var(--ink); }
.prose a { color: var(--amber-hi); text-decoration: underline; text-underline-offset: .2em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose figure { margin-block: 1.6em; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .5em; }
.prose blockquote { border-left: 3px solid var(--amber); padding-left: 1.2em; color: var(--ink); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5em .7em; text-align: left; }
.prose-video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); }
.prose-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.prose-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.prose-gallery > * { margin: 0 !important; }
.prose-gallery img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { color: var(--muted); font-size: .9rem; margin-top: 1rem; }

/* =========================================================================
   PRESS LIST SIGNUP: band on every page + modal (partial injected at build)
   ========================================================================= */
.header-join {
  display: inline-flex; align-items: center; gap: .45rem; margin-left: .6rem;
  padding: .6rem 1rem; border: 1px solid var(--line-2); border-radius: 999px;
  font-weight: 600; font-size: .92rem; color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header-join svg { width: 17px; height: 17px; color: var(--amber-hi); }
.header-join:hover { border-color: var(--amber); background: rgba(236,106,0,.10); }
@media (max-width: 1180px) { .header-join { display: none; } }

.signup-band { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.signup-band__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.8rem, 4.5vw, 3.4rem);
  border: 1px solid rgba(255,138,31,.32); border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(255,138,31,.30), transparent 62%),
    linear-gradient(135deg, #30251a 0%, var(--navy-600) 58%);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.signup-band__card::after {
  content: ""; position: absolute; z-index: -1; right: -40px; bottom: -60px; width: 260px; height: 260px;
  background: url(../images/brand/pr-hound-logo-light.png) center / contain no-repeat;
  opacity: .07; transform: rotate(-14deg);
}
.signup-band h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); line-height: 1.02; letter-spacing: -.035em; margin-top: .7rem; }
.signup-band__copy p:not(.eyebrow) { color: var(--ink-soft); margin-top: .8rem; max-width: 44ch; }
.signup-band__form {
  display: flex; gap: .5rem; padding: .45rem; border-radius: 999px;
  background: rgba(12,13,18,.5); border: 1px solid var(--line-2);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.signup-band__form:focus-within { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(236,106,0,.18); }
.signup-band__form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font: inherit; font-size: 1rem; padding: 0 .6rem 0 1.1rem; }
.signup-band__form input::placeholder { color: var(--faint); }
.signup-band__form .btn { flex-shrink: 0; }
.signup-band__meta { font-size: .82rem; color: var(--muted); margin-top: .8rem; padding-left: 1.2rem; }
@media (max-width: 880px) { .signup-band__card { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .signup-band__form { flex-direction: column; border-radius: var(--radius); padding: .6rem; }
  .signup-band__form input { padding: .7rem .6rem; }
  .signup-band__form .btn { justify-content: center; }
  .signup-band__meta { padding-left: 0; text-align: center; }
}

html:has(dialog.signup[open]) { overflow: hidden; }
.signup {
  margin: auto; /* the global reset strips the UA centring */
  padding: 0; border: 0; background: transparent; color: var(--ink);
  width: min(900px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: visible;
}
.signup:focus { outline: none; }
.signup::backdrop { background: rgba(10,11,16,.74); backdrop-filter: blur(6px); }
.signup[open] { animation: signup-in .5s var(--ease); }
.signup[open]::backdrop { animation: signup-fade .35s ease; }
@keyframes signup-in { from { opacity: 0; transform: translateY(28px) scale(.97); } }
@keyframes signup-fade { from { opacity: 0; } }
.signup__panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  max-height: calc(100dvh - 32px); overflow: hidden;
  background: var(--navy-600); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
}
.signup__pitch {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(255,138,31,.38), transparent 62%),
    linear-gradient(165deg, #3a2615 0%, var(--navy-800) 72%);
  border-right: 1px solid var(--line);
}
.signup__pitch::after {
  content: ""; position: absolute; z-index: -1; right: -70px; bottom: -70px; width: 280px; height: 280px;
  background: url(../images/brand/pr-hound-logo-light.png) center / contain no-repeat;
  opacity: .09; transform: rotate(-14deg);
}
.signup__pitch h2 { font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3rem); line-height: 1; letter-spacing: -.035em; }
.signup__perks { display: grid; gap: .8rem; margin-top: .4rem; }
.signup__perks li { position: relative; padding-left: 2rem; color: var(--ink-soft); font-size: .96rem; line-height: 1.45; }
.signup__perks li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.signup__for { margin-top: auto; padding-top: 1rem; font-size: .84rem; color: var(--muted); }
.signup__body { padding: 3.6rem clamp(1.6rem, 3vw, 2.4rem) clamp(1.6rem, 3vw, 2.4rem); overflow-y: auto; overscroll-behavior: contain; }
.signup__body .psub { gap: .9rem; }
.signup__body .form__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.signup__body .field input { width: 100%; min-width: 0; }
.signup__close {
  position: absolute; z-index: 2; top: .9rem; right: .9rem; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--ink);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.signup__close svg { width: 18px; height: 18px; }
.signup__close:hover { border-color: var(--amber); background: rgba(236,106,0,.14); transform: rotate(90deg); }
.req { color: var(--amber-hi); }
.tagset legend { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tagset__hint {
  padding: .2rem .6rem; border-radius: 999px; background: rgba(236,106,0,.16); color: var(--amber-hi);
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.tag--all span { font-weight: 700; color: var(--ink); }
.signup__submit { width: 100%; justify-content: center; margin-top: .3rem; }
.signup__done[hidden], .psub[hidden] { display: none; }
.signup__done { display: grid; place-items: center; align-content: center; gap: .9rem; min-height: 380px; text-align: center; }
.signup__done h3 { font-family: var(--display); font-size: 2rem; letter-spacing: -.03em; }
.signup__done p { color: var(--ink-soft); max-width: 36ch; }
.signup__done a { color: var(--amber-hi); }
.signup__tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #fff; box-shadow: 0 0 0 10px rgba(236,106,0,.16); }
.signup__tick svg { width: 36px; height: 36px; }
@media (max-width: 760px) {
  .signup { width: 100vw; max-height: 94dvh; margin: auto 0 0; }
  .signup[open] { animation-name: signup-sheet; }
  @keyframes signup-sheet { from { transform: translateY(100%); } }
  .signup__panel { grid-template-columns: 1fr; max-height: 94dvh; overflow-y: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; }
  .signup__pitch { border-right: 0; border-bottom: 1px solid var(--line); gap: .8rem; padding-right: 4rem; }
  .signup__perks { gap: .5rem; }
  .signup__perks li { font-size: .9rem; }
  .signup__for { display: none; }
  .signup__body { overflow: visible; padding-top: 1.6rem; }
}

/* Cookie consent banner (production build only) */
.consent {
  position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px; max-width: 440px;
  padding: 1.2rem 1.3rem; background: var(--navy-600); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.45);
  color: var(--ink-soft); font-size: .92rem; line-height: 1.55;
}
@media (min-width: 720px) { .consent { left: auto; right: 24px; bottom: 24px; } }
.consent a { color: var(--amber-hi); text-decoration: underline; text-underline-offset: .2em; }
.consent__actions { display: flex; gap: .6rem; margin-top: 1rem; }
.consent__actions .btn { flex: 1; justify-content: center; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.footer-legal a, .footer-legal .linklike { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.footer-legal a:hover, .footer-legal .linklike:hover { color: var(--amber-hi); }

/* Press feed */
.press-list { display: grid; gap: 1rem; }
.press-item { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; padding: 1.4rem clamp(1.2rem,2.5vw,1.8rem); background: var(--navy-600); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease); }
.press-item:hover { border-color: var(--line-2); transform: translateX(4px); background: var(--navy-500); }
.press-item__date { font-family: var(--display); font-weight: 700; color: var(--amber-hi); font-size: .9rem; min-width: 92px; }
.press-item h3 { font-size: clamp(1.05rem, .9rem + .6vw, 1.3rem); font-weight: 700; }
.press-item p { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.press-item__arrow { color: var(--faint); transition: color .3s var(--ease), transform .3s var(--ease); }
.press-item:hover .press-item__arrow { color: var(--amber-hi); transform: translateX(4px); }

/* =========================================================================
   NEWSROOM GRID (live Prezly feed)
   ========================================================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.news-status { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; padding: 1.5rem 0; display: flex; align-items: center; gap: .7rem; }
.news-status .spin { width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--amber); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.news-card {
  --news-pad: clamp(1.3rem, 2vw, 1.7rem);
  display: flex; flex-direction: column; gap: .9rem;
  padding: var(--news-pad);
  background: var(--navy-600); border: 1px solid var(--line);
  border-radius: var(--radius); border-top: 3px solid var(--accent, var(--amber));
  min-height: 196px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.news-card:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--navy-500); }
.news-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.news-card__cat { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent, var(--amber-hi)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-card__date { font-size: .76rem; color: var(--faint); white-space: nowrap; flex-shrink: 0; }
.news-card__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, .92rem + .5vw, 1.28rem); line-height: 1.18; letter-spacing: -.01em; flex: 1; }
.news-card__more { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .35em; transition: color .3s var(--ease), gap .3s var(--ease); }
.news-card:hover .news-card__more { color: var(--accent, var(--amber-hi)); gap: .6em; }
.news-card--feature { grid-column: span 2; min-height: 240px; }
.news-card--feature .news-card__title { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.7rem); }

/* Photo variant: the post's header image sits above the text (key art is
   too busy to set type on), bleeding to the card edges via negative margins */
.news-card--photo { overflow: hidden; }
.news-card--photo .news-card__media {
  margin: calc(-1 * var(--news-pad)) calc(-1 * var(--news-pad)) .2rem;
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-900);
}
/* Wide (two-column) photo cards go side by side: image left at full card
   height, text right, so they match their neighbours instead of towering */
.news-card--feature.news-card--photo {
  display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto 1fr auto;
  column-gap: var(--news-pad); row-gap: .9rem;
}
.news-card--feature.news-card--photo .news-card__media {
  grid-row: 1 / -1; aspect-ratio: auto; position: relative; min-height: 220px;
  margin: calc(-1 * var(--news-pad)) 0 calc(-1 * var(--news-pad)) calc(-1 * var(--news-pad));
}
.news-card--feature.news-card--photo .news-card__media img { position: absolute; inset: 0; }
.news-card--feature.news-card--photo .news-card__title { font-size: clamp(1.15rem, .95rem + .6vw, 1.45rem); }
.news-card--photo .news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card--photo:hover .news-card__media img { transform: scale(1.05); }

/* =========================================================================
   SCREENSHOT STRIP
   ========================================================================= */
.marquee--shots .marquee__track { animation-duration: 46s; }
.marquee--shots .marquee__track img {
  height: clamp(90px, 11vw, 140px); width: auto; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); filter: none; opacity: .82;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.marquee--shots .marquee__track img:hover { opacity: 1; transform: translateY(-3px); }

/* =========================================================================
   SHOWREEL
   ========================================================================= */
.about__reel { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 9; background: #000; }
.about__reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel__mute {
  position: absolute; right: 1rem; bottom: 1rem; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(20,17,14,.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25);
  color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .3s var(--ease), transform .3s var(--ease);
}
.reel__mute:hover { background: var(--amber); transform: translateY(-2px); }
.reel__mute svg { width: 20px; height: 20px; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.testimonial {
  display: flex; flex-direction: column; gap: 1.2rem; justify-content: space-between;
  background: var(--navy-600); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.2vw, 1.8rem);
}
.testimonial blockquote { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.42; letter-spacing: -.01em; color: var(--ink); }
.testimonial figcaption { display: flex; flex-direction: column; gap: .15rem; }
.testimonial__name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.testimonial__outlet { font-size: .85rem; color: var(--amber-hi); }

/* =========================================================================
   HERO CHAOS BOARD (self-playing homage, original pixel art)
   Full-bleed, faded, sits behind the hero copy for ambient movement.
   ========================================================================= */
.hero__chaos {
  /* starts below the header so sprites never sit beside the nav buttons */
  position: absolute; inset: var(--header-h) 0 0 0; z-index: 1; overflow: hidden; pointer-events: none;
  opacity: .34;
}
.hero__chaos canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.hero__chaos::before {
  /* extra dark wash behind the copy column so text keeps its contrast */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--navy-800) 0%, rgba(26,28,38,.55) 42%, transparent 68%);
}
.hero__chaos::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: repeating-linear-gradient(rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,.18) 3px);
}
.hero__chaos-tag {
  position: absolute; z-index: 1; right: clamp(1rem, 4vw, 2.5rem); top: 1.1rem;
  font-family: var(--display); font-weight: 700; font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-hi); background: rgba(11,12,17,.45);
  padding: .3rem .65rem; border-radius: 4px; backdrop-filter: blur(3px);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  /* feature spans the first row, so an even total leaves the last card alone */
  .news-card:last-child:nth-child(even) { grid-column: span 2; }
  .news-card--photo:last-child:nth-child(even) {
    display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto 1fr auto;
    column-gap: var(--news-pad); row-gap: .9rem;
  }
  .news-card--photo:last-child:nth-child(even) .news-card__media {
    grid-row: 1 / -1; aspect-ratio: auto; position: relative; min-height: 220px;
    margin: calc(-1 * var(--news-pad)) 0 calc(-1 * var(--news-pad)) calc(-1 * var(--news-pad));
  }
  .news-card--photo:last-child:nth-child(even) .news-card__media img { position: absolute; inset: 0; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc, .svc:nth-child(1), .svc:nth-child(2) { grid-column: span 1; }
  .svc:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 880px) {
  :root { --header-h: 70px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .about__grid, .contact__grid, .footer-grid, .testimonials { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(3)::after, .stat:nth-child(4)::after { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card--wide { grid-column: span 1; }
  .footer-bottom { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card--feature, .news-card:last-child:nth-child(even) { grid-column: auto; display: flex; }
  .news-card--photo.news-card--feature .news-card__media,
  .news-card--photo:last-child:nth-child(even) .news-card__media {
    aspect-ratio: 16 / 9; min-height: 0;
    margin: calc(-1 * var(--news-pad)) calc(-1 * var(--news-pad)) .2rem;
  }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(1) { grid-column: span 1; }
  .form__row { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .press-item { grid-template-columns: 1fr; gap: .5rem; }
  .press-item__arrow { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero .display .line > span { transform: none !important; }
  .hero__sub, .hero__cta, .hero__meta { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
}
