/* ==========================================================================
   NORDR AGENCY — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --bg:            #0B0B0D;
  --bg-elev:       #121215;
  --bg-card:       #16161A;
  --ink:           #EDE9E0;
  --ink-muted:     rgba(237, 233, 224, 0.55);
  --ink-faint:     rgba(237, 233, 224, 0.32);
  --line:          rgba(237, 233, 224, 0.10);
  --line-strong:   rgba(237, 233, 224, 0.22);
  --accent:        #E8E6E1;
  --glass:         rgba(11, 11, 13, 0.55);

  /* Type */
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing */
  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(80px, 12vw, 160px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; touch-action: manipulation; }
::selection { background: var(--ink); color: var(--bg); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(44px, 8vw, 132px); }
h2 { font-size: clamp(34px, 5.6vw, 88px); }
h3 { font-size: clamp(24px, 3vw, 44px); }
h4 { font-size: clamp(18px, 2vw, 28px); }

p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.italic { font-style: italic; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  padding-inline: var(--pad-x);
  margin-inline: auto;
  max-width: 1680px;
}
section { position: relative; padding-block: var(--section-y); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s, padding 0.4s var(--ease-out);
}
.nav.is-scrolled {
  /* Seamless: no border, barely-there tint, the blur does the separation.
     A soft gradient fades the bottom edge into the page so there's no hard line.
     Keep generous padding so the nav feels substantial when scrolled, not cramped. */
  background: linear-gradient(180deg, rgba(11,11,13,0.40) 0%, rgba(11,11,13,0.20) 70%, rgba(11,11,13,0) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px var(--pad-x);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  /* Used for the sr-only text label */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
/* Brand lockup: mountain mark + NORDR AGENCY wordmark to its right.
   Both inverted so the black sources render as cream on the dark nav. */
.nav__brand img {
  width: auto;
  display: block;
  filter: invert(1);
  transition: opacity 0.3s;
}
.nav__brand-mark { height: 28px; }
.nav__brand-word { height: 14px; }
.nav__brand:hover img { opacity: 0.8; }
@media (max-width: 520px) {
  /* On small screens, drop the wordmark and keep the mountain mark only */
  .nav__brand-word { display: none; }
}
/* Accessibility: keep the name discoverable by screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.nav__links {
  display: flex;
  gap: 38px;
  list-style: none;
  margin: 0; padding: 0;
  align-items: center;
}
.nav__links a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
  position: relative;
  padding: 6px 2px;
  transition: opacity 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--ink);
  transition: right 0.4s var(--ease-out);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after,
.nav__links a.is-active::after { right: 0; }

.nav__toggle { display: none; }

/* When the mobile menu is open, strip any backdrop-filter on the nav
   instantly (not animated), and raise the nav above the menu overlay so
   the X close button stays clickable on top of the menu.

   Why the z-index bump: the menu (portaled to body) is at z-index 101.
   The nav is at z-index 100 and creates its own stacking context, so the
   toggle button's z-index:102 only matters *within* the nav — in the
   parent stacking context the whole nav sits below the menu. Bumping the
   nav to 200 puts it (and the toggle inside it) above the menu overlay. */
body.menu-open .nav,
body.menu-open .nav.is-scrolled {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: none !important;
  z-index: 200 !important;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 101; /* above the nav's z-index:100, below the toggle button's 102 */
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out);
    padding: 80px var(--pad-x);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { font-size: 22px; letter-spacing: 0.05em; }
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    z-index: 102;
  }
  .nav__toggle span {
    width: 22px; height: 1.5px; background: var(--ink);
    position: relative;
    transition: transform 0.3s, background 0.3s;
  }
  .nav__toggle span::before,
  .nav__toggle span::after {
    content: ""; position: absolute; left: 0;
    width: 22px; height: 1.5px; background: var(--ink);
    transition: transform 0.3s, top 0.3s;
  }
  .nav__toggle span::before { top: -7px; }
  .nav__toggle span::after { top: 7px; }
  .nav__toggle.is-open span { background: transparent; }
  .nav__toggle.is-open span::before { top: 0; transform: rotate(45deg); }
  .nav__toggle.is-open span::after  { top: 0; transform: rotate(-45deg); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 var(--pad-x);
}
.hero__video-wrap {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0B0B0D; /* solid dark until the video paints — hardcoded so it applies even if CSS custom props haven't resolved */
  /* Force a compositor layer so the dark background is prepared before the
     body's glacier-backdrop pseudo-elements paint — otherwise there's a
     brief race where the glacier is visible before the wrap covers it. */
  transform: translateZ(0);
  will-change: transform;
}
.hero__video-wrap video,
.hero__video-wrap .hero__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__video-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,13,0.55) 0%, rgba(11,11,13,0.3) 35%, rgba(11,11,13,0.5) 70%, rgba(11,11,13,0.92) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  padding-top: 80px;
}
.hero__title {
  font-size: clamp(54px, 11vw, 180px);
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-weight: 300;
}
.hero__rule {
  width: 60px;
  height: 1px;
  background: var(--ink);
  margin: 28px auto 28px;
  opacity: 0.7;
}
.hero__subs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto 40px;
}
.hero__sub {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.88;
}
.hero__sub--caps {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 6px;
}
.hero__cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 36px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.8s forwards;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 24px;
  background: var(--ink);
  opacity: 0.6;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%      { transform: scaleY(1.5); opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.4s;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}
.btn span { position: relative; z-index: 1; }
.btn:hover {
  color: var(--bg);
  border-color: var(--ink);
}
.btn:hover::before { transform: translateY(0); }
.btn--solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--solid::before { background: transparent; }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--solid:hover::before { transform: translateY(0); background: transparent; }
.btn__arrow { display: inline-block; transition: transform 0.4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 60s linear infinite;
  will-change: transform;
}
/* Slow-on-hover is done via JS (see main.js), not CSS, because changing
   animation-duration on a running animation causes a visual jump. */

/* Each logo has its OWN trailing margin (not a flex gap) so the last item of
   copy 1 and the last item of copy 2 both have identical trailing space. This
   makes one copy's width exactly 50% of the two-copy track width, which is
   required for a pixel-perfect seamless loop at translateX(-50%). */
.marquee__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  flex-shrink: 0;
  margin-right: 80px;
}
.marquee__logo img {
  max-height: 42px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  /* Normalize black monochrome logos to a consistent warm gray on the dark bg */
  filter: invert(1);
  opacity: 0.55;
  transition: opacity 0.45s var(--ease-out);
}
/* Logos that are already white/light in the source file — skip the invert
   so they don't get flipped back to black. Opacity still matches the rest. */
.marquee__logo--light img { filter: none; }
.marquee__logo:hover img { opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Section heads ---------- */
.s-head {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.s-head__title {
  font-size: clamp(34px, 5.6vw, 88px);
  line-height: 0.98;
  max-width: 22ch;
}
.s-head__meta {
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.s-head--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.s-head--center .s-head__meta { text-align: center; align-items: center; padding-bottom: 0; }
@media (max-width: 860px) {
  .s-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; align-items: start; }
  .s-head__meta { padding-bottom: 0; }
}

/* ---------- Testimonials carousel ---------- */
.t-slider {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px 0;
}
/* Grid stacking: all slides share cell 1/1 so the stage height is locked
   to the tallest testimonial. Layout doesn't shift when cycling. */
.t-slider__stage {
  display: grid;
  grid-template-columns: 1fr;
}
.t-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10px;
}
.t-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.t-slide__mark {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.5;
  color: var(--ink);
  opacity: 0.22;
  margin-bottom: 18px;
  font-style: italic;
  font-weight: 400;
}
.t-slide__quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.35;
  font-style: italic;
  font-weight: 300;
  max-width: 22ch;
  margin: 0 auto 36px;
}
.t-slide__attr {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 24px;
  position: relative;
}
.t-slide__attr::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 1px;
  background: var(--line-strong);
}
.t-slide__name { font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }
.t-slide__role { font-size: 11px; color: var(--ink-muted); letter-spacing: 0.18em; text-transform: uppercase; }

/* Generous hit-targets: each button is ~60×34px clickable, but the visible
   line (rendered via ::before) stays 36×2 so the design is unchanged. */
.t-slider__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin-top: 28px;
}
.t-slider__dot {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 16px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.t-slider__dot::before {
  content: "";
  display: block;
  width: 36px; height: 2px;
  background: var(--line-strong);
  transition: background 0.4s var(--ease-out), width 0.4s var(--ease-out);
}
.t-slider__dot:hover::before { background: var(--ink-muted); }
.t-slider__dot.is-active::before { background: var(--ink); width: 56px; }
.t-slider__dot:focus-visible { outline: none; }
.t-slider__dot:focus-visible::before { background: var(--ink-muted); }

@media (max-width: 640px) {
  .t-slider__stage { min-height: 380px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding-block: clamp(80px, 12vw, 160px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band__title {
  font-size: clamp(36px, 6vw, 96px);
  max-width: 16ch;
  margin: 0 auto 32px;
  font-weight: 300;
}
.cta-band__title em { font-style: italic; font-weight: 300; }

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  position: relative;
  display: block;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: 2px;
  isolation: isolate;
}
.work-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.6s;
  filter: brightness(0.7) saturate(0.85);
}
.work-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,11,13,0.85) 100%);
  z-index: 1;
  transition: opacity 0.5s;
}
.work-card__meta {
  position: absolute;
  left: 28px; right: 28px; bottom: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(0);
  transition: transform 0.6s var(--ease-out);
}
.work-card__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.05;
  font-weight: 400;
}
.work-card__tag {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.work-card__tag::before {
  content: ""; width: 18px; height: 1px; background: currentColor;
}
.work-card__view {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s 0.1s, transform 0.5s 0.1s var(--ease-out);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.work-card:hover .work-card__img {
  transform: scale(1.08);
  filter: brightness(0.55) saturate(1);
}
.work-card:hover .work-card__meta { transform: translateY(-6px); }
.work-card:hover .work-card__view { opacity: 1; transform: translateY(0); }

/* ---------- Project detail ---------- */
.p-hero {
  position: relative;
  min-height: 82vh;
  min-height: 82svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 var(--pad-x) 60px;
}
.p-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(0.9);
  z-index: 0;
}
.p-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,13,0.6) 0%, transparent 25%, transparent 55%, rgba(11,11,13,0.88) 100%);
  z-index: 1;
}
.p-hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding-top: 120px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.p-hero__name {
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.p-hero__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.p-hero__tag {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  background: rgba(11,11,13,0.3);
  display: inline-flex;
  align-items: center;
}
/* Location pin prefix — used on the country tag. Outlined (stroked) pin at a
   thin 2-unit stroke for a delicate line-drawn feel rather than a heavy blob.
   currentColor + SVG mask keeps it tinted like the tag text. */
.p-hero__tag--location::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 13px;
  margin-right: 8px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>") center/contain no-repeat;
}
.p-hero__quote {
  max-width: 360px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(11,11,13,0.55);
  backdrop-filter: blur(14px);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.p-hero:hover .p-hero__quote,
.p-hero__quote.is-visible { opacity: 1; transform: translateY(0); }
.p-hero__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.p-hero__quote cite {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink-muted);
}
@media (max-width: 860px) {
  .p-hero__inner { grid-template-columns: 1fr; }
  .p-hero__quote { max-width: 100%; }
}

.p-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  padding-block: var(--section-y);
}
.p-body__title { margin-bottom: 28px; }
.p-body__text p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: 1.2em;
}
.p-body__cta {
  align-self: start;
  padding: 40px 36px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 4px;
  position: sticky;
  top: 100px;
}
.p-body__cta h3 {
  font-size: clamp(22px, 2vw, 30px);
  margin-bottom: 14px;
  font-weight: 300;
}
.p-body__cta p {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .p-body { grid-template-columns: 1fr; gap: 40px; }
  .p-body__cta { position: static; }
}

.p-gallery {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}
.p-gallery__title { margin-bottom: 60px; }
.p-gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}
.p-gallery__item {
  overflow: hidden;
  background: var(--bg-card);
}
.p-gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.6s;
  filter: grayscale(0.1) brightness(0.95);
}
.p-gallery__item:hover img { transform: scale(1.04); filter: grayscale(0) brightness(1); }
.p-gallery__item--wide { grid-column: span 4; grid-row: span 1; }
.p-gallery__item--tall { grid-column: span 2; grid-row: span 2; }
.p-gallery__item--sq   { grid-column: span 2; }
.p-gallery__item--half { grid-column: span 3; }
.p-gallery__item--full { grid-column: span 6; grid-row: span 1; }
.p-gallery__item--hero { grid-column: span 6; grid-row: span 2; }
@media (max-width: 900px) {
  .p-gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .p-gallery__item--wide, .p-gallery__item--tall, .p-gallery__item--sq, .p-gallery__item--half { grid-column: span 2; grid-row: span 1; }
}

/* ---------- Services ---------- */
.services {
  display: flex;
  flex-direction: column;
}
.service {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: padding 0.5s;
  position: relative;
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__num {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  padding-top: 12px;
}
.service__name {
  font-size: clamp(30px, 4.5vw, 64px);
  font-weight: 300;
  transition: transform 0.6s var(--ease-out), font-style 0.3s;
}
.service__desc {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 55ch;
  padding-top: 18px;
}
.service:hover .service__name {
  font-style: italic;
  transform: translateX(10px);
}
@media (max-width: 900px) {
  .service { grid-template-columns: 50px 1fr; gap: 20px; padding: 32px 0; }
  .service__desc { grid-column: 2; padding-top: 0; }
}

/* ---------- About ---------- */
.about-hero {
  min-height: 86vh;
  min-height: 86svh;
  display: flex;
  align-items: center;
  padding: 160px var(--pad-x) 80px;
  border-bottom: 1px solid var(--line);
}
.about-hero__inner { max-width: 1300px; margin: 0 auto; width: 100%; }
.about-hero__headline {
  font-size: clamp(48px, 9vw, 148px);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: -0.03em;
}
/* Rotator — soft cinematic crossfade between words.
   Two words can briefly coexist: the outgoing one fades + blurs + drifts up,
   while the incoming one fades + sharpens + drifts up from below.
   vertical-align (not transform) gives the controlled lift and preserves baseline. */
.rotator {
  display: inline-block;
  position: relative;
  vertical-align: 0.04em;
  line-height: 1;
  font-style: italic;
  color: var(--ink);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 1em;
}
.rotator__word {
  display: inline-block;
  white-space: nowrap;
  font-style: italic;
  line-height: 1;
  transition:
    opacity 0.55s ease,
    filter 0.55s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform;
}
.rotator__word.is-current {
  position: relative;
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.rotator__word.is-entering {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(0.28em);
  pointer-events: none;
  transition: none;            /* snap to this state — actual animation starts when class is removed */
}
.rotator__word.is-leaving {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(-0.28em);
  pointer-events: none;
}
.about-hero__sub {
  max-width: 720px;
  margin-top: 50px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--ink-muted);
}

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.team-member { display: flex; flex-direction: column; gap: 20px; }
.team-member__photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-card);
  position: relative;
}
.team-member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.92);
  transition: transform 1s var(--ease-out), filter 0.6s;
}
.team-member:hover .team-member__photo img { transform: scale(1.04); filter: grayscale(0) brightness(1); }
.team-member__info { display: flex; flex-direction: column; gap: 4px; }
.team-member__name { font-size: clamp(20px, 2vw, 26px); font-family: var(--font-display); font-weight: 400; }
.team-member__role { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); }
.team-member__bio { font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin-top: 4px; }

/* "Trusted network" card — typographic placeholder instead of a portrait.
   Big italic ampersand fills the 3:4 photo slot, the info area keeps the
   same name/role/bio structure as the other team cards. */
.team-member__photo--type {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
}
.team-member__amp {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(160px, 24vw, 280px);
  line-height: 0.85;
  color: var(--ink);
  opacity: 0.85;
  transition: transform 1s var(--ease-out), opacity 0.6s;
  transform-origin: center;
  user-select: none;
}
.team-member--network:hover .team-member__amp {
  transform: scale(1.08);
  opacity: 1;
}
@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  padding-top: 160px;
  padding-bottom: 140px;
  min-height: 100vh;
  align-items: start;
}
.contact__left {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact__title { font-weight: 300; }
.contact__sub { max-width: 420px; color: var(--ink-muted); font-size: 16px; line-height: 1.7; }
.contact__email {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 32px);
  display: inline-block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.3s, transform 0.4s;
}
.contact__email:hover { border-color: var(--ink); transform: translateX(6px); }

.form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  border: 1px solid var(--line);
  padding: 48px;
  background: var(--bg-card);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.form input,
.form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 10px 0;
  resize: none;
  outline: none;
  transition: border-color 0.3s;
}
.form input:focus,
.form textarea:focus { border-bottom-color: var(--ink); }
.form textarea { min-height: 110px; }

.form__checks { display: flex; flex-wrap: wrap; gap: 12px; }
.form__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
  user-select: none;
}
.form__check input { display: none; }
.form__check:hover { border-color: var(--ink); }
.form__check.is-checked { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  margin-top: 8px;
  border-radius: 100px;
}
.form__submit:hover { transform: translateY(-2px); }
.form__status {
  font-size: 13px;
  color: var(--ink-muted);
  min-height: 18px;
}
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; padding-top: 120px; gap: 48px; }
  .contact__left { position: static; }
  .form { padding: 32px 24px; }
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px var(--pad-x) 40px;
  background: var(--bg);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1;
}
/* Lockup logo (mountain + wordmark) in the footer */
.footer__brand-name img {
  display: block;
  max-width: 250px;
  width: 100%;
  height: auto;
  filter: invert(1);
  opacity: 0.92;
}
.footer__tag { color: var(--ink-muted); font-size: 14px; max-width: 320px; line-height: 1.6; }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  font-size: 14px;
  transition: color 0.3s, padding-left 0.3s;
  position: relative;
}
.footer__col a:hover { padding-left: 10px; }
.footer__col a::before {
  content: "→";
  position: absolute;
  left: -14px; opacity: 0;
  transition: opacity 0.3s, left 0.3s;
}
.footer__col a:hover::before { opacity: 1; left: -6px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-muted);
}
.footer__credit {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, opacity 0.3s;
}
.footer__credit:hover {
  border-bottom-color: var(--ink);
  opacity: 0.9;
}
.footer__giant {
  font-family: var(--font-display);
  font-size: clamp(80px, 22vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-weight: 300;
  text-align: center;
  padding-top: 60px;
  padding-bottom: 20px;
  color: var(--ink);
  opacity: 0.95;
  overflow: hidden;
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1.is-visible { transition-delay: 0.1s; }
.reveal--delay-2.is-visible { transition-delay: 0.2s; }
.reveal--delay-3.is-visible { transition-delay: 0.3s; }
.reveal--delay-4.is-visible { transition-delay: 0.4s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero-specific staggered intro */
.hero__title .char, .hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s var(--ease-out) forwards;
}
.hero__rule { opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.7s forwards; }
.hero__sub  { opacity: 0; animation: fadeUp 0.8s var(--ease-out) forwards; }
.hero__sub:nth-child(1) { animation-delay: 0.9s; }
.hero__sub:nth-child(2) { animation-delay: 1.05s; }
.hero__sub:nth-child(3) { animation-delay: 1.2s; }
.hero__cta  { opacity: 0; animation: fadeUp 0.8s var(--ease-out) 1.45s forwards; }

/* Page head (generic) */
.page-head {
  padding: 180px var(--pad-x) 60px;
  border-bottom: 1px solid var(--line);
}
.page-head__inner {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: end;
}
.page-head__title {
  font-size: clamp(52px, 9vw, 140px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.page-head__sub {
  max-width: 480px;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.6;
  padding-bottom: 12px;
}
@media (max-width: 860px) {
  .page-head__inner { grid-template-columns: 1fr; gap: 24px; }
  .page-head { padding-top: 140px; }
}

/* Utility */
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none !important; } }

/* Mobile utility — hide any element on phone-size screens. Applied to the
   secondary CTA and the caps-subtitle on the hero so the mobile hero stays
   compact. Contact is still accessible via the hamburger menu. */
@media (max-width: 700px) {
  .hide-on-mobile { display: none !important; }
}

/* Mobile hero: skip the video (also blocked from downloading via preload="none"
   in HTML), let the body's glacier backdrop show through, and tighten the
   overall vertical rhythm so the hero doesn't feel crammed. */
@media (max-width: 700px) {
  .hero__video-wrap { display: none; }
  .hero__inner {
    padding-top: 60px;
    max-width: none;
  }
  .hero__title { font-size: clamp(48px, 14vw, 96px); }
  .hero__rule { margin: 22px auto; }
  .hero__subs { gap: 14px; margin-bottom: 32px; }
  .hero__sub { font-size: 15px; line-height: 1.5; }
  .hero__cta { margin-top: 8px; }
  .hero__scroll { bottom: 24px; }
}

/* ---------- Glacier background (subpages, opt-in via body class) ----------
   Hoist the base background to <html> so the subpage <body> can layer a
   fixed glacier-aurora pattern behind its content via ::before / ::after
   at z-index: -1. Remove the body class to revert. */
html { background-color: var(--bg); }
body.has-glacier-bg { background-color: transparent; }

body.has-glacier-bg::before,
body.has-glacier-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

/* Soft cool-blue / teal aurora-ice glow spots, layered */
body.has-glacier-bg::before {
  background:
    radial-gradient(ellipse 55vw 40vh at 12% 18%,  rgba(104, 156, 200, 0.13), transparent 58%),
    radial-gradient(ellipse 60vw 45vh at 88% 28%,  rgba(132, 180, 196, 0.10), transparent 58%),
    radial-gradient(ellipse 50vw 38vh at 38% 72%,  rgba(86, 140, 188, 0.11),  transparent 62%),
    radial-gradient(ellipse 55vw 42vh at 80% 92%,  rgba(180, 208, 222, 0.07), transparent 62%),
    radial-gradient(circle at 50% 50%, rgba(11,11,13, 0.28), rgba(11,11,13, 0) 75%);
}

/* Fine grain — keeps the flat washes from looking plastic */
body.has-glacier-bg::after {
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
