/* ============================================================
   ARCTOS MEDIA | arctosmedia.ca
   Design system: "Boreal Signal"
   Deep spruce dark mode, editorial serif display, technical
   mono readouts, one aurora-green accent. No border radius.
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-latin-wght-italic.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Colour */
  --ink: #0b100d;            /* page ground: spruce black */
  --surface: #10160f;        /* raised panel */
  --surface-2: #161d16;      /* higher panel / hover */
  --bone: #e9ede7;           /* primary text */
  --moss: #a2b3a6;           /* secondary text */
  --sage: #7d9988;           /* structural green */
  --pine: #223226;
  --line: rgba(233, 237, 231, 0.12);
  --line-soft: rgba(233, 237, 231, 0.07);
  --aurora: #7ed4a6;         /* the one bright accent */
  --aurora-dim: #4d8f6c;
  --aurora-ghost: rgba(126, 212, 166, 0.08);

  /* Type */
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', Menlo, monospace;

  /* Scale */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.85rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.6vw, 4.8rem);
  --step-5: clamp(3.2rem, 2.1rem + 5.6vw, 6.6rem);

  /* Rhythm */
  --space-section: clamp(5rem, 4rem + 8vw, 10rem);
  --space-block: clamp(2.5rem, 2rem + 3vw, 5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 78rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
  --dur-slow: 0.9s;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

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

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--gutter);
  z-index: 200;
  background: var(--aurora);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-transform: uppercase;
}
.display em {
  font-style: italic;
  font-weight: 420;
  color: var(--sage);
}
.display .accent-line { color: var(--aurora); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: var(--sage);
  flex-shrink: 0;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: var(--sage);
  flex-shrink: 0;
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: var(--step-1);
  color: var(--moss);
  line-height: 1.5;
}

.mono-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
}

.muted { color: var(--moss); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 56rem; }

.section { padding-block: var(--space-section); }
.section--tight { padding-block: var(--space-block); }
.section--surface { background: var(--surface); }

.section-head { margin-bottom: var(--space-block); max-width: 46rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.section-head p { color: var(--moss); }

/* Signal divider: the site's signature motif.
   A thin signal-flow line that draws itself in on scroll. */
.signal {
  display: block;
  width: 100%;
  height: 40px;
  overflow: visible;
}
.signal path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1;
  opacity: 0.55;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2.4s var(--ease);
}
.signal.is-visible path { stroke-dashoffset: 0; }
.signal circle { fill: var(--aurora); opacity: 0; transition: opacity 0.6s var(--ease) 1.6s; }
.signal.is-visible circle { opacity: 1; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 2.2rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid transparent;
  position: relative;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease),
              background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn .btn-arrow {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--aurora);
  color: var(--ink);
}
.btn--primary:hover { background: var(--bone); }

.btn--ghost {
  border-color: var(--line);
  color: var(--bone);
}
.btn--ghost:hover {
  border-color: var(--aurora);
  color: var(--aurora);
  background: var(--aurora-ghost);
}

/* Text link with drawing underline */
.link-line {
  position: relative;
  color: var(--aurora);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
}
.link-line::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.link-line:hover::after { transform: scaleX(1); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
              transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 16, 13, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  max-width: 100rem;
  margin-inline: auto;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--bone);
  transition: color 0.3s var(--ease);
}
.wordmark:hover { color: var(--aurora); }
.wordmark svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.wordmark span span { color: var(--sage); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.6rem;
}
.nav-links a:not(.btn) {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  position: relative;
  padding-bottom: 0.3rem;
  transition: color 0.3s var(--ease);
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--aurora);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .btn { padding: 0.75rem 1.6rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  z-index: 120;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--bone);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(11, 16, 13, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { font-size: 0.95rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink) 4%, transparent 45%),
    linear-gradient(to bottom, rgba(11,16,13,0.75) 0%, transparent 30%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-inline: var(--gutter);
  max-width: 64rem;
}
.hero h1 {
  font-size: var(--step-5);
  margin-bottom: 1.2rem;
}
.hero .lede { margin-bottom: 3rem; max-width: 40rem; margin-inline: auto; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

/* Coordinates readout: bottom-left technical detail */
.coords {
  position: absolute;
  bottom: 2.5rem;
  left: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.coords::before {
  content: '';
  width: 3rem;
  height: 1px;
  background: var(--aurora);
}
.coords span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--aurora);
}
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--moss);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.scroll-hint::after {
  content: '';
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--moss), transparent);
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Page hero (interior pages) */
.page-hero {
  padding-top: calc(var(--space-section) + 4rem);
  padding-bottom: var(--space-block);
}
.page-hero h1 { font-size: var(--step-4); margin-bottom: 1.4rem; max-width: 18ch; }
.page-hero .lede { max-width: 44rem; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.card {
  position: relative;
  padding: 2.5rem 2.2rem;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-height: 22rem;
  transition: background-color 0.5s var(--ease);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--aurora);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.card:hover { background: var(--surface-2); }
.card:hover::before { transform: scaleX(1); }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.card-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--aurora);
}
.card-icon { color: var(--sage); transition: color 0.4s var(--ease), transform 0.4s var(--ease); }
.card-icon svg { width: 1.7rem; height: 1.7rem; }
.card:hover .card-icon { color: var(--aurora); transform: translateY(-3px); }

.card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.6s var(--ease);
  opacity: 0.85;
}
.card:hover .card-thumb img { transform: scale(1.05); opacity: 1; }

.card h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 540;
  letter-spacing: 0.01em;
  margin-top: auto;
}
.card p { font-size: var(--step--1); color: var(--moss); line-height: 1.7; }
.card .link-line { margin-top: 0.4rem; align-self: flex-start; }

/* ---------- Showreel band ---------- */
.showreel {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.showreel-bg {
  position: absolute;
  inset: 0;
}
.showreel-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transform: scale(1.05);
  transition: transform 6s var(--ease);
}
.showreel:hover .showreel-bg img { transform: scale(1); }
.showreel-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, var(--ink) 100%);
}
.showreel-content { position: relative; z-index: 1; text-align: center; }
.play-btn {
  width: clamp(6rem, 12vw, 8.5rem);
  height: clamp(6rem, 12vw, 8.5rem);
  border-radius: 9999px;
  border: 1px solid var(--aurora);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--aurora);
  transition: background-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.play-btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--aurora);
  opacity: 0.4;
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.4; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.play-btn:hover { background: var(--aurora-ghost); transform: scale(1.04); }
.play-btn svg { width: 2.4rem; height: 2.4rem; margin-left: 4px; }
.showreel-content .mono-note { margin-top: 2.5rem; }
.showreel-content h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 460;
  font-size: var(--step-2);
  letter-spacing: 0.02em;
  margin-top: 0.6rem;
  text-transform: uppercase;
}

/* ---------- Video modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(8, 12, 10, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-frame {
  width: min(100%, 64rem);
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}
.modal-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
}
.modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--moss);
  transition: color 0.3s var(--ease);
}
.modal-close:hover { color: var(--aurora); }

/* ---------- CTA band ---------- */
.cta-band {
  border-block: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 80% 120% at 50% 120%, var(--aurora-ghost), transparent 60%),
    var(--surface);
  text-align: center;
  padding-block: var(--space-section);
}
.cta-band h2 { font-size: var(--step-3); margin-bottom: 2.4rem; }

/* ---------- Testimonials ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 2rem;
}
.quote {
  padding: 2.6rem 2.4rem;
  background: var(--surface);
  border-left: 2px solid var(--pine, var(--sage));
  border-left-color: rgba(125, 153, 136, 0.35);
  position: relative;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.quote:hover {
  border-left-color: var(--aurora);
  transform: translateY(-4px);
}
.quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--moss);
  margin-bottom: 2rem;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.quote figcaption::before {
  content: '';
  width: 2rem; height: 1px;
  background: var(--sage);
}
.quote figcaption span { color: var(--sage); font-weight: 450; }

/* ---------- Philosophy / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split h2 { font-size: var(--step-4); margin-bottom: 2rem; }
.split-media {
  position: relative;
  overflow: hidden;
}
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 1.2s var(--ease);
}
.split-media:hover img { transform: scale(1.04); }
.split-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.two-col-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  color: var(--moss);
  font-size: var(--step--1);
  line-height: 1.75;
}
@media (max-width: 640px) { .two-col-copy { grid-template-columns: 1fr; } }

/* Spec rows: MENTALITY / EXECUTION style footers */
.spec-rows {
  margin-top: var(--space-block);
  border-top: 1px solid var(--line-soft);
}
.spec-row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 640px) { .spec-row { grid-template-columns: 1fr; gap: 0.4rem; } }
.spec-row dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--aurora);
}
.spec-row dd {
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
}

/* ---------- Service detail blocks (services page) ---------- */
.service-block {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: var(--space-block);
  border-top: 1px solid var(--line-soft);
}
.service-block:last-of-type { border-bottom: 1px solid var(--line-soft); }
@media (max-width: 640px) { .service-block { grid-template-columns: 1fr; } }
.service-block .card-index { padding-top: 0.5rem; }
.service-block h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 540;
  margin-bottom: 1.2rem;
  max-width: 24ch;
}
.service-block p { color: var(--moss); max-width: 58ch; margin-bottom: 1rem; }
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.service-tags li {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid var(--line-soft);
  padding: 0.45rem 0.85rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-tags li:hover { color: var(--aurora); border-color: var(--aurora-dim); }

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 2rem;
  counter-reset: phase;
}
.process-step {
  padding: 2.4rem 2.2rem;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  position: relative;
  transition: transform 0.45s var(--ease), background-color 0.45s var(--ease);
}
.process-step:hover { transform: translateY(-5px); background: var(--surface-2); }
.process-step::before {
  counter-increment: phase;
  content: 'PHASE 0' counter(phase);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--aurora);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 540;
  margin-block: 1.2rem 1rem;
}
.process-step p { font-size: var(--step--1); color: var(--moss); }

/* ---------- Work / case studies ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 2.5rem;
}
.work-card { display: flex; flex-direction: column; gap: 1.2rem; }
.work-card .card-thumb { aspect-ratio: 16 / 9; position: relative; }
.work-card .card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-soft);
  transition: border-color 0.45s var(--ease);
  pointer-events: none;
}
.work-card:hover .card-thumb::after { border-color: var(--aurora-dim); }
.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.work-card h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 540;
}
.work-card p { font-size: var(--step--1); color: var(--moss); }

.case {
  padding-block: var(--space-block);
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 2.2rem;
}
.case-frame {
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.case-frame iframe { width: 100%; height: 100%; border: 0; position: relative; z-index: 1; }
.frame-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  padding: 2rem;
  background:
    linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}
.frame-placeholder svg { width: 2.6rem; height: 2.6rem; color: var(--sage); opacity: 0.7; }
.case-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 720px) { .case-copy { grid-template-columns: 1fr; } }
.case-copy h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.case-copy p { color: var(--moss); font-size: var(--step--1); }

/* ---------- Blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 2.5rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding-bottom: 2rem;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.post-card:hover { border-color: var(--aurora-dim); transform: translateY(-5px); }
.post-card .card-thumb { aspect-ratio: 16 / 9; }
.post-card > *:not(.card-thumb) { padding-inline: 1.8rem; }
.post-card h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 540;
  line-height: 1.25;
}
.post-card p { font-size: var(--step--1); color: var(--moss); }
.post-meta {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}
.post-meta .cat { color: var(--aurora); }

/* Article page */
.article { max-width: 44rem; margin-inline: auto; }
.article-header { margin-bottom: 3rem; }
.article-header h1 { font-size: var(--step-3); margin-block: 1.2rem; text-transform: none; letter-spacing: -0.01em; }
.article-body > * + * { margin-top: 1.6rem; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 540;
  margin-top: 3rem;
  line-height: 1.15;
}
.article-body p { color: var(--moss); }
.article-body ul { padding-left: 1.2rem; }
.article-body ul li {
  color: var(--moss);
  position: relative;
  padding-left: 1.2rem;
  margin-top: 0.6rem;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 0.5rem; height: 1px;
  background: var(--aurora);
}
.article-body blockquote {
  border-left: 2px solid var(--aurora);
  padding-left: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--bone);
}
.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Forms ---------- */
.form-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .form-shell { grid-template-columns: 1fr; } }

.field { position: relative; margin-bottom: 2.4rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.7rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--step-0);
  padding-block: 0.8rem;
  transition: border-color 0.35s var(--ease);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d9988' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  cursor: pointer;
}
.field select option { background: var(--surface); color: var(--bone); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(162, 179, 166, 0.45); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--aurora);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Honeypot: hidden from humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1.4rem;
  font-size: var(--step--1);
  min-height: 1.4rem;
}
.form-status.is-success { color: var(--aurora); }
.form-status.is-error { color: #e8a79b; }

/* Contact aside */
.contact-aside { display: grid; gap: 2.4rem; }
.contact-item h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.contact-item a, .contact-item p {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 460;
  color: var(--bone);
  transition: color 0.3s var(--ease);
}
.contact-item a:hover { color: var(--aurora); }

/* Newsletter inline form */
.newsletter-form {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.35s var(--ease);
}
.newsletter-form:focus-within { border-color: var(--aurora); }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-size: var(--step--1);
  padding-block: 0.75rem;
}
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--aurora);
  padding-inline: 0.8rem;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.newsletter-form button:hover { color: var(--bone); transform: translateX(3px); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  padding-top: var(--space-block);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: var(--space-block);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .wordmark { margin-bottom: 1.4rem; }
.footer-blurb { font-size: var(--step--1); color: var(--moss); max-width: 26rem; line-height: 1.75; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.footer-links li + li { margin-top: 0.9rem; }
.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  position: relative;
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--aurora); }
.footer-news p { font-size: var(--step--1); color: var(--moss); margin-bottom: 1.2rem; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p,
.footer-bottom a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(162, 179, 166, 0.6);
}
.footer-bottom a { transition: color 0.3s var(--ease); }
.footer-bottom a:hover { color: var(--aurora); }
.footer-legal { display: flex; gap: 1.8rem; }

/* ---------- Legal pages ---------- */
.legal-body { max-width: 44rem; }
.legal-body h2 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 560;
  margin-block: 2.6rem 0.9rem;
}
.legal-body p, .legal-body li { color: var(--moss); font-size: var(--step--1); }
.legal-body p + p { margin-top: 0.9rem; }
.legal-body ul { padding-left: 1.4rem; list-style: square; margin-top: 0.9rem; }
.legal-body ul li + li { margin-top: 0.5rem; }

/* ---------- 404 ---------- */
.err-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: var(--gutter);
}
.err-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--aurora);
  margin-bottom: 1.2rem;
}
.err-page h1 { font-size: var(--step-4); margin-bottom: 1.4rem; }
.err-page p { color: var(--moss); margin-bottom: 2.6rem; }

/* ---------- Utility banner note for placeholders ---------- */
.dev-note {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--sage);
  opacity: 0.75;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .signal path { stroke-dashoffset: 0; }
  .signal circle { opacity: 1; }
}
