/* =========================================================
   Half Past Creative — Design System
   Editorial · Cinematic · Dark with refined burgundy
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:root { color-scheme: dark; }

/* ---------- Tokens ---------- */
:root {
  /* Colour — modernized from existing black + burgundy identity */
  --ink: #0B0A09;           /* deep warm black */
  --ink-2: #141210;         /* section alternate */
  --ink-3: #1C1916;         /* elevated surfaces */
  --paper: #F4EFE7;         /* warm cream */
  --paper-dim: #D9D2C6;
  --mute: #8A8178;          /* warm mid grey */
  --mute-dim: #5A5249;
  --line: #27231F;
  --line-soft: #1A1714;

  --burgundy: #7F2A3A;      /* pulled from the official HPC mark */
  --burgundy-bright: #B52A44;
  --burgundy-deep: #541A24;

  /* Secondary accents — drawn directly from the logo */
  --steel: #B7C8D4;          /* top chevron — powdered sky/steel */
  --steel-dim: #6F8090;
  --tan: #CA9B7A;            /* bottom chevron — warm sand */
  --tan-dim: #8E6A50;

  /* Type */
  --font-display: "Instrument Serif", "Times New Roman", ui-serif, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale — editorial */
  --fs-kicker: 0.75rem;     /* 12 */
  --fs-body: 1rem;          /* 16 */
  --fs-lede: 1.25rem;       /* 20 */
  --fs-h4: 1.375rem;        /* 22 */
  --fs-h3: 1.875rem;        /* 30 */
  --fs-h2: clamp(2.4rem, 4vw, 3.75rem);
  --fs-h1: clamp(3.2rem, 9vw, 9rem);
  --fs-mega: clamp(4rem, 14vw, 15rem);

  /* Spacing */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6.5rem;
  --sp-8: 9rem;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 200ms;
  --dur-2: 450ms;
  --dur-3: 900ms;
}

/* ---------- Base ---------- */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* Subtle film grain on dark areas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.9  0 0 0 0 0.82  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
}

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
h4, h5 { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.01em; }

.display em, .italic { font-style: italic; }

.kicker {
  font-family: var(--font-sans);
  font-size: var(--fs-kicker);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.kicker--accent { color: var(--burgundy-bright); }
.kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}

.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--paper-dim); max-width: 52ch; }

.mono { font-family: var(--font-mono); letter-spacing: 0; }

/* ---------- Layout utilities ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}
.section { padding-block: clamp(4rem, 10vw, 9rem); position: relative; z-index: 2; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--ink2 { background: var(--ink-2); }

.divider { height: 1px; background: var(--line); width: 100%; }
.section--paper .divider { background: rgba(11,10,9,0.12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.9em 1.5em;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn--primary { background: var(--burgundy); color: var(--paper); }
.btn--primary:hover { background: var(--burgundy-bright); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper-ghost { border: 1px solid rgba(11,10,9,0.25); color: var(--ink); }
.btn--paper-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--large { padding: 1.15em 2em; font-size: 0.95rem; }

.btn .arrow { width: 14px; height: 14px; transition: transform var(--dur-1) var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ---------- Brand Ribbon (tri-color bar at the very top of every page) ---------- */
.ribbon {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 101;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 3px;
  pointer-events: none;
}
.ribbon span:nth-child(1) { background: var(--steel); }
.ribbon span:nth-child(2) { background: var(--burgundy); }
.ribbon span:nth-child(3) { background: var(--tan); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 3px 0 auto 0;
  z-index: 100;
  padding: 1.15rem var(--gutter);
  transition: background var(--dur-2) var(--ease), backdrop-filter var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 10, 9, 0.7);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav__logo .mark {
  width: 36px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav__logo .mark svg { width: 100%; height: 100%; display: block; }
.nav__logo .mark svg path {
  transition: transform var(--dur-2) var(--ease), fill var(--dur-2) var(--ease);
  transform-origin: center;
}
.nav__logo:hover .mark svg path:nth-child(1) { transform: translateX(2px); }
.nav__logo:hover .mark svg path:nth-child(2) { transform: translateX(-2px); }
.nav__logo:hover .mark svg path:nth-child(3) { transform: translateX(2px); }
.nav__logo .wordmark small { display: block; font-family: var(--font-sans); font-size: 0.55rem; letter-spacing: 0.3em; color: var(--mute); text-transform: uppercase; margin-top: 2px; font-weight: 500;}
.nav__links {
  display: flex;
  justify-content: center;
  gap: 2.25rem;
  font-size: 0.875rem;
  font-weight: 400;
}
.nav__links a {
  color: var(--paper-dim);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--dur-1) var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--burgundy-bright);
  transition: right var(--dur-2) var(--ease);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }
.nav__links a.is-active { color: var(--paper); }
.nav__right { display: flex; align-items: center; gap: 0.8rem; }
.nav__social { display: flex; gap: 0.6rem; }
.nav__social a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  transition: all var(--dur-1) var(--ease);
}
.nav__social a:hover { color: var(--paper); border-color: var(--paper-dim); }
.nav__social svg { width: 14px; height: 14px; }

.nav__burger {
  width: 42px; height: 42px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.nav__burger span {
  width: 16px; height: 1.5px; background: var(--paper);
  transition: transform var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-3.25px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 99;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  gap: 1.25rem;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}
.nav.is-open .nav__mobile { display: flex; opacity: 1; }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1;
  color: var(--paper);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding-top: clamp(6rem, 14vh, 8rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* subtle radial glow accent */
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  right: -10vw;
  top: 0vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,42,58,0.24), rgba(127,42,58,0) 60%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* Hero watermark — giant ghost of the logo mark, positioned decoratively */
.hero__watermark {
  position: absolute;
  right: clamp(-8rem, -6vw, -2rem);
  top: 50%;
  transform: translateY(-45%);
  width: clamp(20rem, 42vw, 38rem);
  height: auto;
  opacity: 0.09;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: floatMark 12s ease-in-out infinite alternate;
}
.hero__watermark svg { width: 100%; height: auto; }
@keyframes floatMark {
  from { transform: translateY(-48%) rotate(-1.5deg); }
  to   { transform: translateY(-42%) rotate(1.5deg); }
}
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: clamp(3rem, 10vw, 8rem);
  gap: 2rem;
  flex-wrap: wrap;
}
.hero__meta {
  font-size: 0.8rem;
  color: var(--mute);
  font-family: var(--font-mono);
  line-height: 1.8;
  text-align: right;
}
.hero__meta strong { display: block; color: var(--paper-dim); font-weight: 500; letter-spacing: 0.05em; }
.hero h1.display {
  font-size: var(--fs-h1);
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.hero h1 .line { display: block; }
.hero h1 em { color: var(--paper); opacity: 0.75; }
.hero__sub {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.hero__lede { max-width: 42ch; color: var(--paper-dim); font-size: var(--fs-lede); }
.hero__scroll {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero__scroll .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--burgundy-bright);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 1.5rem;
  position: relative;
  z-index: 2;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--mute);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee__track span::after {
  content: "◉";
  color: var(--burgundy-bright);
  font-size: 0.6em;
}
.marquee__track span:hover { color: var(--paper); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Intro / About snippet ---------- */
.intro__header { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.intro__header h2 { font-size: var(--fs-h1); line-height: 0.92; }
.intro__header h2 em { color: var(--paper); opacity: 0.6; }
.intro__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; }
.intro__grid p { color: var(--paper-dim); font-size: 1.0625rem; line-height: 1.65; margin-bottom: 1.25rem; }
.intro__pillars { display: grid; gap: 1rem; }
.intro__pillars dl {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
.intro__pillars dl:last-child { border-bottom: 1px solid var(--line); }
.intro__pillars dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy-bright);
}
.intro__pillars dd { color: var(--paper-dim); font-size: 1rem; line-height: 1.55; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__item {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 2vw, 2rem);
  border-right: 1px solid var(--line);
  position: relative;
}
.stats__item:last-child { border-right: 0; }
.stats__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.stats__num .plus { color: var(--burgundy-bright); font-size: 0.6em; margin-left: 0.15em; vertical-align: top; }
/* Each stat takes a different brand accent — ties back to the 3 logo colors */
.stats__item:nth-child(1) .stats__num .plus { color: var(--steel); }
.stats__item:nth-child(2) .stats__num .plus { color: var(--burgundy-bright); }
.stats__item:nth-child(3) .stats__num .plus { color: var(--tan); }
.stats__item:nth-child(4) .stats__num .plus { color: var(--burgundy-bright); }
.stats__label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- Services ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  flex-wrap: wrap;
}
.section-head h2 { font-size: var(--fs-h2); max-width: 14ch; }
.section-head h2 em { color: var(--paper); opacity: 0.55; }
.section-head .sublabel { color: var(--mute); max-width: 36ch; font-size: 1rem; line-height: 1.5; }

.services__list { border-top: 1px solid var(--line); }
.services__item {
  display: grid;
  grid-template-columns: 80px 1.5fr 2fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: padding var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
  position: relative;
  cursor: pointer;
}
.services__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(138,31,51,0.06), rgba(138,31,51,0));
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
  pointer-events: none;
}
.services__item:hover::before { opacity: 1; }
.services__item:hover { padding-inline: 1rem 0.25rem; }
.services__item:hover .services__title { color: var(--paper); }
.services__item:hover .services__arrow { transform: translate(4px, -4px); color: var(--burgundy-bright); }
.services__num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--burgundy-bright);
  letter-spacing: 0.05em;
}
.services__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.05;
  color: var(--paper-dim);
  transition: color var(--dur-2) var(--ease);
}
.services__desc { color: var(--mute); font-size: 0.9375rem; line-height: 1.55; max-width: 48ch; }
.services__arrow {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper-dim);
  transition: transform var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.services__item:hover .services__arrow { border-color: var(--burgundy-bright); }
.services__arrow svg { width: 14px; height: 14px; }

/* ---------- Work / Projects ---------- */
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.project { display: grid; gap: 1.25rem; }
.project:nth-child(4n+2) { margin-top: clamp(2rem, 5vw, 4rem); }
.project:nth-child(4n+3) { margin-top: clamp(-2rem, -3vw, -1rem); }

.project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1816 0%, #0b0a09 60%, #2a1519 120%);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform var(--dur-2) var(--ease);
  cursor: pointer;
}
.project:hover .project__media { transform: translateY(-4px); }
.project__media::before {
  content: attr(data-client);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: rgba(244,239,231,0.08);
  letter-spacing: -0.02em;
  transition: color var(--dur-2) var(--ease);
}
.project:hover .project__media::before { color: rgba(244,239,231,0.13); }
.project__media[data-youtube]::before { display: none; }
.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,10,9,0.7), rgba(11,10,9,0) 60%);
  pointer-events: none;
}
.project__play {
  position: relative;
  z-index: 2;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(244,239,231,0.5);
  background: rgba(11,10,9,0.35);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: var(--paper);
  transition: all var(--dur-2) var(--ease);
}
.project:hover .project__play {
  background: var(--burgundy);
  border-color: var(--burgundy);
  transform: scale(1.08);
}
.project__play svg { width: 20px; height: 20px; margin-left: 3px; }
.project__tag {
  position: absolute;
  bottom: 1rem; left: 1rem; z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper-dim);
  padding: 0.3rem 0.6rem;
  background: rgba(11,10,9,0.6);
  backdrop-filter: blur(6px);
  border-radius: 2px;
  border: 1px solid var(--line);
}
.project__tag--accent { color: var(--paper); border-color: var(--burgundy); }

.project__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
}
.project__meta .client { color: var(--burgundy-bright); }
.project__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.125rem);
  line-height: 1.1;
  color: var(--paper);
}
.project__title em { opacity: 0.7; }
.project__desc { color: var(--mute); font-size: 0.95rem; line-height: 1.55; max-width: 56ch; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--ink-2); }
.testimonial__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.testimonial {
  background: var(--ink-2);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  gap: 1.5rem;
}
.testimonial__quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--burgundy);
  font-style: italic;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.25;
  color: var(--paper);
  font-style: italic;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--burgundy);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--paper);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.testimonial__name { font-size: 0.95rem; color: var(--paper); font-weight: 500; letter-spacing: -0.005em; }
.testimonial__role { font-size: 0.75rem; color: var(--mute); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 2px; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding-block: clamp(5rem, 12vw, 10rem);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(138,31,51,0.18), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.cta h2 {
  font-size: var(--fs-mega);
  line-height: 0.88;
  max-width: 14ch;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.cta h2 em { color: var(--burgundy-bright); font-style: italic; }
.cta__actions {
  display: inline-flex;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-2);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.footer__inner { max-width: var(--container); margin-inline: auto; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.footer__brand p { color: var(--mute); font-size: 0.95rem; margin-top: 1.5rem; max-width: 36ch; line-height: 1.55; }
.footer__brand .nav__logo { font-size: 1.35rem; }
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy-bright);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.footer__col ul { display: grid; gap: 0.6rem; }
.footer__col a {
  color: var(--paper-dim);
  font-size: 0.925rem;
  transition: color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
  display: inline-block;
}
.footer__col a:hover { color: var(--burgundy-bright); transform: translateX(4px); }
.footer__col .ct-line { color: var(--paper-dim); font-size: 0.925rem; line-height: 1.55; }
.footer__col .ct-label { color: var(--mute); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 0.25rem; display: block; }
.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 14rem);
  line-height: 0.85;
  color: var(--paper);
  letter-spacing: -0.04em;
  padding-block: clamp(2rem, 4vw, 3rem);
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3rem);
}
.footer__wordmark em { color: var(--burgundy-bright); font-style: italic; }
.footer__wordmark .mark {
  width: clamp(3rem, 10vw, 8rem);
  height: auto;
  flex-shrink: 0;
}
.footer__wordmark .mark svg { width: 100%; height: auto; display: block; }
.footer__wordmark .mark svg path:nth-child(1) { animation: riseBlue 2.8s ease infinite alternate; transform-origin: center; }
.footer__wordmark .mark svg path:nth-child(2) { animation: riseBurg 2.8s ease infinite alternate -0.4s; transform-origin: center; }
.footer__wordmark .mark svg path:nth-child(3) { animation: riseTan 2.8s ease infinite alternate -0.8s; transform-origin: center; }
@keyframes riseBlue { from { transform: translateY(-2px); } to { transform: translateY(2px); } }
@keyframes riseBurg { from { transform: translateY(2px); } to { transform: translateY(-2px); } }
@keyframes riseTan  { from { transform: translateY(-2px); } to { transform: translateY(2px); } }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--mute);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__socials { display: flex; gap: 0.5rem; }
.footer__socials a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  transition: all var(--dur-1) var(--ease);
}
.footer__socials a:hover { color: var(--paper); border-color: var(--burgundy); background: var(--burgundy); }
.footer__socials svg { width: 14px; height: 14px; }

/* ---------- ABOUT PAGE ---------- */
.page-hero {
  padding-top: clamp(8rem, 18vh, 12rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
}
.page-hero .crumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.5rem;
}
.page-hero .crumbs .sep { color: var(--burgundy-bright); margin-inline: 0.5rem; }
.page-hero h1 {
  font-size: var(--fs-h1);
  line-height: 0.92;
  max-width: 16ch;
}
.page-hero h1 em { color: var(--paper); opacity: 0.6; }
.page-hero__lede {
  margin-top: clamp(2rem, 3vw, 2.5rem);
  max-width: 48ch;
  color: var(--paper-dim);
  font-size: var(--fs-lede);
  line-height: 1.5;
}

.image-slab {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 30%, rgba(138,31,51,0.25), transparent 60%),
    linear-gradient(135deg, #1a1614 0%, #0b0a09 50%, #221116 100%);
  border: 1px solid var(--line);
  position: relative;
  display: grid;
  place-items: center;
}
.image-slab__label {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  color: rgba(244,239,231,0.12);
  font-style: italic;
  position: relative;
  z-index: 2;
}
.image-slab__mark {
  position: absolute;
  right: clamp(2rem, 6vw, 5rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(7rem, 14vw, 13rem);
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}
.image-slab__caption {
  position: absolute;
  bottom: 1.25rem; left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.approach {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
.approach__stat {
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 13rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--paper);
  display: block;
}
.approach__stat em { color: var(--burgundy-bright); }
.approach__stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 0.5rem;
}

.services-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.services-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--paper-dim);
  transition: all var(--dur-1) var(--ease);
}
.services-chips span::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--burgundy-bright);
  border-radius: 50%;
}
.services-chips span:hover { border-color: var(--burgundy); color: var(--paper); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.timeline__item {
  padding: clamp(2rem, 3.5vw, 2.5rem) clamp(1.25rem, 2vw, 2rem);
  border-right: 1px solid var(--line);
}
.timeline__item:last-child { border-right: 0; }
.timeline__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--burgundy-bright);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.timeline__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.1;
  color: var(--paper);
  margin-bottom: 0.75rem;
}
.timeline__desc { color: var(--mute); font-size: 0.925rem; line-height: 1.55; }

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal-stagger.is-in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 1.5rem; }
  .intro__header { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services__item { grid-template-columns: 60px 1fr auto; }
  .services__desc { grid-column: 2 / -1; margin-top: -0.5rem; }
}
@media (max-width: 860px) {
  .nav__links, .nav__social { display: none; }
  .nav__burger { display: inline-flex; }
  .hero__meta { text-align: left; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item:nth-child(1), .stats__item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .work__grid { grid-template-columns: 1fr; }
  .project:nth-child(n) { margin-top: 0; }
  .testimonial__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline__item:nth-child(2n) { border-right: 0; }
  .timeline__item:nth-child(1), .timeline__item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .approach { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .services__item { grid-template-columns: 48px 1fr auto; gap: 1rem; }
  .services__title { font-size: 1.5rem; }
  .hero__sub { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: 1fr; }
  .testimonial__grid { border: 0; }
  .testimonial { border: 1px solid var(--line); margin-bottom: 1rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- YouTube modal ---------- */
.yt-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.yt-modal[hidden] { display: none; }
.yt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 10, 9, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.yt-modal__box {
  position: relative;
  width: min(900px, 100%);
  z-index: 1;
  background: var(--ink-3);
  border: 1px solid var(--line);
}
.yt-modal__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: var(--paper-dim);
  font-size: 2rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: color var(--dur-1) var(--ease);
}
.yt-modal__close:hover { color: var(--paper); }
.yt-modal__ratio {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
}
.yt-modal__ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
