/* North West Video — product-page layout
 *
 * Type: San Francisco (Apple's system font) everywhere it is installed, via the
 * system font keywords; Inter as the fallback on other platforms.
 */

:root {
  --bg: #000;
  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --fg-3: #6e6e73;
  --line: rgba(255, 255, 255, 0.12);
  --tile: rgba(22, 22, 23, 0.82);
  --tile-solid: #161617;
  --blue: #2997ff;
  --pill: #0071e3;
  --pill-hover: #0077ed;

  --sans: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --mono: var(--sans);

  /* Headline gradients: a saturated orange-to-blue sunset and a monotone silver */
  --grad-spectrum: linear-gradient(90deg, #ff4d0a 0%, #ff8a1f 22%, #ffb067 40%, #e88f9c 55%, #8f86d6 70%, #3d8bff 86%, #1f6fff 100%);
  --grad-silver: linear-gradient(180deg, #ffffff 0%, #d9d9de 55%, #9a9aa1 100%);

  --nav-h: 52px;
  --gutter: max(22px, 4vw);
  --radius: 28px;
  --text-w: 980px;
  --wide-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
strong { color: var(--fg); font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Shared type ---------- */

.section-eyebrow,
.hero__eyebrow {
  font-family: var(--sans);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: 0.004em;
  color: var(--fg-2);
  margin: 0 0 8px;
}
.section-title,
.hero__title,
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.section-title { font-size: clamp(44px, 7vw, 96px); }

.tile__eyebrow,
.card__eyebrow,
.tile__n,
.tile__stage,
.card__strategy {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  background: var(--pill);
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.2s ease;
}
.pill:hover { background: var(--pill-hover); }
.pill--small { min-height: 28px; padding: 0 12px; font-size: 12px; }

.link-arrow {
  color: var(--blue);
  font-size: 17px;
  text-decoration: none;
}
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Canvas + backdrops ---------- */

#sequence {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  display: block;
  z-index: 0;
  background: var(--bg);
}
.canvas-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 22%, transparent 38%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0.9));
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
  pointer-events: none;
  background: var(--bg);
}
.ambient.is-on { opacity: 1; visibility: visible; transition: opacity 1.2s ease, visibility 0s; }
.ambient__canvas { width: 100%; height: 100%; display: block; }
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.6));
}

/* ---------- Preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__bar { width: 160px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--fg); transition: width 0.15s linear; }

/* ---------- Local nav ---------- */

.localnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(22, 22, 23, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.localnav__inner {
  max-width: var(--text-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 1060px) { .localnav__inner { padding: 0; } }
.localnav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  white-space: nowrap;
}
.localnav__brand img { height: 24px; width: auto; }
.localnav__links { display: flex; align-items: center; gap: 22px; }
.localnav__links a:not(.pill) {
  font-size: 12px;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.localnav__links a:not(.pill):hover { color: var(--fg); }
.localnav__ig svg { width: 15px; height: 15px; display: block; }
@media (max-width: 600px) {
  .localnav__brand span { font-size: 17px; }
  .localnav__links { gap: 14px; }
  .localnav__links a[href="#field"], .localnav__links a[href="#process"], .localnav__links a[href="#strategy"], .localnav__ig { display: none; }
}

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

main { position: relative; z-index: 2; }

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 10vh;
  text-align: center;
}
.hero__copy { max-width: var(--text-w); }
.hero__eyebrow { margin-bottom: 14px; }
.hero__title { font-size: clamp(56px, 11vw, 140px); margin-bottom: 20px; }
.hero__sub {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.004em;
  color: var(--fg-2);
}
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; }

/* ---------- Workflow chapters over the canvas ---------- */

.workflow { position: relative; height: 540vh; }
.anchor { position: absolute; left: 0; width: 1px; height: 1px; }

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 6vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.card {
  position: absolute;
  left: 50%;
  bottom: 6vh;
  width: min(var(--text-w), calc(100vw - 2 * var(--gutter)));
  transform: translate(-50%, 40px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
}
.card.is-static { position: relative; left: auto; bottom: auto; transform: none; opacity: 1; margin: 0 auto 96px; pointer-events: auto; }
.card__eyebrow { color: var(--fg-2); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.card__title { font-size: clamp(40px, 6vw, 80px); margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.card__body {
  max-width: 700px;
  margin: 0 auto 36px;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.38;
  font-weight: 500;
  color: #d2d2d7;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6);
}
.stats {
  list-style: none;
  margin: 0 auto 24px;
  padding: 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6); }
.stats b { font-family: var(--sans); font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; }
.stats b small { font-size: 0.5em; font-weight: 600; color: var(--fg-2); }
.stats span { font-size: 14px; line-height: 1.35; color: #d2d2d7; max-width: 200px; }
.card__strategy { color: var(--fg-2); margin: 0; }

@media (max-width: 760px) {
  .card { bottom: 4vh; }
  .card__body { margin-bottom: 24px; }
  .stats { gap: 12px; }
  .stats span { font-size: 12px; }
}
@media (max-width: 760px) and (max-height: 760px) { .card__strategy { display: none; } }

/* ---------- Sections over the Rainier backdrop ---------- */

.strategy, .field, .about {
  position: relative;
  padding: 160px var(--gutter) 40px;
}
.intro { max-width: var(--text-w); margin: 0 auto 72px; text-align: center; }
.intro--compact { margin-bottom: 56px; }
.intro .section-title { margin-bottom: 40px; }
.intro__copy {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.004em;
  color: var(--fg-2);
  text-align: left;
}
.section-title, .intro__copy, .section-eyebrow { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }

.chain {
  list-style: none;
  max-width: var(--wide-w);
  margin: 0 auto 24px;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  border-radius: var(--radius);
  background: var(--tile);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font-size: 14px;
  font-weight: 500;
}
.chain li:not(:last-child)::after { content: "→"; color: var(--fg-3); margin: 0 12px; }

.tiles {
  list-style: none;
  max-width: var(--wide-w);
  margin: 0 auto 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tile {
  position: relative;
  padding: 36px 32px 32px;
  border-radius: var(--radius);
  background: var(--tile);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}
.tile__n { color: var(--fg-3); margin-bottom: 20px; }
.tile h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 12px; }
.tile p { color: var(--fg-2); font-size: 17px; margin: 0 0 24px; flex: 1; }
.tile p.tile__stage { flex: 0; margin: 0; font-size: 12px; color: var(--blue); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; gap: 16px; } .tile { padding: 28px 24px 24px; } }

.matrix {
  max-width: var(--wide-w);
  margin: 0 auto 24px;
  padding: 40px 32px 24px;
  border-radius: var(--radius);
  background: var(--tile);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.matrix__title { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.015em; text-align: center; margin-bottom: 28px; }
.matrix__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix table { width: 100%; min-width: 820px; border-collapse: collapse; }
.matrix th, .matrix td { padding: 16px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.matrix thead th { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--fg-3); }
.matrix thead th:first-child, .matrix tbody th { text-align: left; }
.matrix tbody th { font-weight: 600; font-size: 15px; width: 30%; padding-right: 20px; }
.matrix__desc { display: block; color: var(--fg-3); font-size: 12px; font-weight: 400; letter-spacing: 0; margin-top: 2px; }
.dot-on, .dot-off { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.dot-on { background: var(--fg); }
.dot-off { border: 1px solid rgba(255, 255, 255, 0.2); }
.matrix tbody tr:last-child > * { border-bottom: 0; }

.loop {
  max-width: var(--wide-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: stretch;
}
.tile--feature h3 { font-size: clamp(40px, 4.4vw, 56px); line-height: 1.02; margin: 12px 0 16px; }
.tile--feature .tile__eyebrow { color: var(--fg-2); margin: 0; text-transform: uppercase; letter-spacing: 0.08em; }
.tile--feature p:not(.tile__eyebrow) { margin: 0; font-size: 19px; }
.loop__quote {
  margin: 0;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--tile);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
}
.loop__quote p { margin: 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; font-weight: 600; color: var(--fg-2); }
.loop__quote span {
  background: linear-gradient(90deg, #8ec5ff, #c9a7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 860px) { .loop { grid-template-columns: 1fr; } .strategy, .field, .about { padding-top: 112px; } }

/* ---------- Field work ---------- */

.scenes {
  max-width: var(--wide-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.scene {
  border-radius: var(--radius);
  background: var(--tile);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.scene__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.scene__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s ease; }
.scene:hover .scene__photo img { transform: scale(1.03); }
.scene__caption { padding: 32px; }
.scene__caption .tile__eyebrow { color: var(--fg-2); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.scene__caption h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.015em; line-height: 1.05; margin-bottom: 14px; }
.scene__caption p:not(.tile__eyebrow) { color: var(--fg-2); margin: 0; }
@media (max-width: 760px) { .scenes { grid-template-columns: 1fr; } .scene__caption { padding: 24px; } }

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

.site-footer { position: relative; z-index: 2; padding: 160px var(--gutter) 24px; }
.cta { max-width: var(--text-w); margin: 0 auto 140px; text-align: center; }
.cta__logo { width: 90px; height: auto; margin: 0 auto 28px; display: block; }
.cta .section-title { margin-bottom: 20px; }
.cta__sub { font-size: clamp(19px, 2vw, 24px); font-weight: 600; color: var(--fg-2); margin: 0 0 32px; letter-spacing: 0.004em; }

.footer-meta {
  max-width: var(--text-w);
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 12px;
  color: var(--fg-3);
}
.footer-meta__links { display: flex; gap: 20px; }
.footer-meta a { color: var(--fg-2); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }

/* ---------- About ---------- */

.tiles--four { grid-template-columns: repeat(4, 1fr); }
.tiles--four .tile h3 { font-size: 26px; }
.tiles--four .tile p { margin-bottom: 0; }
@media (max-width: 1000px) { .tiles--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tiles--four { grid-template-columns: 1fr; } }
.about__links { justify-content: center; gap: 14px; }
.about__links .tile__eyebrow { color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 6px; }
.link-arrow--large { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.01em; }

.intro--about > * { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1), filter 1s ease; }
.intro--about > :nth-child(2) { transition-delay: 0.12s; }
.intro--about > :nth-child(3) { transition-delay: 0.28s; }
.intro--about.is-revealed > * { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .intro--about > * { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- San Francisco type + gradient headlines ---------- */

.section-title,
.hero__title,
.card__title { font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.tile h3,
.matrix__title,
.scene__caption h3 { font-weight: 600; letter-spacing: -0.02em; }
.card__eyebrow,
.tile__eyebrow,
.tile__n,
.tile__stage,
.card__strategy,
.matrix thead th { font-weight: 600; letter-spacing: 0.04em; }

/* Gradient text: spectrum for the big statements, silver for the chapters. */
.hero__title,
.section-title,
.stats b,
.tile p.tile__stage,
.loop__quote span {
  background: var(--grad-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.card__title {
  background: var(--grad-silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 24px rgba(0, 0, 0, 0.55));
}
.hero__title, .section-title { filter: drop-shadow(0 2px 24px rgba(0, 0, 0, 0.35)); }
.stats b small { -webkit-text-fill-color: currentColor; color: var(--fg-2); }
.stats li { text-shadow: none; }
.stats span { text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6); }

/* Spectrum rule under the strategy chain, Apple comparison-bar style */
.chain { position: relative; overflow: hidden; }
.chain::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px; bottom: 8px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-spectrum);
  transform-origin: left center;
  transform: scaleX(var(--chain-p, 0));
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.chain.is-drawn { --chain-p: 1; }

/* ---------- Animated NW logo ---------- */

.nw-logo { display: block; height: auto; overflow: visible; }
.localnav__brand .nw-logo { height: 26px; width: auto; }
.cta .nw-logo { width: 110px; margin: 0 auto 28px; }
.nw-logo path { transform-box: fill-box; }
.nw-logo .nw-tree { transform-origin: 50% 100%; transform: scaleY(0); opacity: 0; }
.nw-logo .nw-badge { transform-origin: 50% 50%; transform: scale(0.4) rotate(-8deg); opacity: 0; }
.nw-logo.is-in .nw-tree {
  animation: nw-grow 0.9s cubic-bezier(.2,.9,.25,1) forwards, nw-sway 6s ease-in-out 1.2s infinite;
}
.nw-logo.is-in .nw-tree--r { animation-delay: 0.12s, 1.5s; }
.nw-logo.is-in .nw-badge { animation: nw-pop 0.7s cubic-bezier(.3,1.6,.4,1) 0.45s forwards; }
@keyframes nw-grow { to { transform: scaleY(1); opacity: 1; } }
@keyframes nw-pop { to { transform: none; opacity: 1; } }
@keyframes nw-sway {
  0%, 100% { transform: scaleY(1) skewX(0deg); }
  50% { transform: scaleY(1) skewX(-1.6deg); }
}
.nw-logo:hover .nw-badge { animation: nw-pop 0.7s cubic-bezier(.3,1.6,.4,1) forwards, nw-wiggle 0.5s ease 0s 1; }
@keyframes nw-wiggle { 25% { transform: rotate(-6deg) scale(1.05); } 75% { transform: rotate(5deg) scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .nw-logo .nw-tree, .nw-logo .nw-badge { transform: none; opacity: 1; animation: none !important; }
  .chain::after { transition: none; }
}
.chain { padding-bottom: 28px; }

/* Small looping clip card */
.scene--clip { flex-direction: row; align-items: center; gap: 24px; padding: 24px; }
.scene--clip .scene__caption { padding: 0; }
.scene__clip { margin: 0; flex: none; width: 140px; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; }
.scene__clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .scene__clip { width: 110px; } .scene--clip { gap: 18px; padding: 20px; } }
.scenes { align-items: start; }
