/* Pelican Panache reversed system. Navy world, bone type, cyan scalpel. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ground: #0B1530;
  --navy: #14274C;
  --bone: #FBFAF6;
  --cyan: #009DC6;
  --slate: #4C6B7A;
  --unit: 8px;
  --wrap: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--ground);
  color: var(--bone);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 calc(var(--unit) * 3); }

::selection { background: var(--cyan); color: var(--ground); }

/* Film grain */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* Header */
.site-head {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--unit) * 3) calc(var(--unit) * 4);
  mix-blend-mode: normal;
}
.wordmark {
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; align-items: center;
  gap: calc(var(--unit) * 1.5);
}
.wordmark-icon { height: 30px; width: auto; }
.head-link {
  color: var(--bone); text-decoration: none;
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--cyan);
  transition: color 250ms var(--ease-inout);
}
.head-link:hover { color: var(--cyan); }

/* Eyebrow */
.eyebrow {
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--slate);
  margin-bottom: calc(var(--unit) * 3);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 157, 198, 0.8);
  margin-right: calc(var(--unit) * 1.5);
  vertical-align: 2px;
}

/* Chip */
.chip {
  display: inline-flex; align-items: center;
  gap: calc(var(--unit) * 1.25);
  padding: calc(var(--unit) * 1.25) calc(var(--unit) * 2.25);
  border: 1px solid rgba(76, 107, 122, 0.45);
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone);
  margin-bottom: calc(var(--unit) * 4);
}
.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 157, 198, 0.8);
}

/* Scrub stages */
.scrub-stage { position: relative; }
.hero, .pillars { height: 420vh; }

.stage-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.stage-canvas, .stage-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.stage-poster { opacity: 0; transition: opacity 600ms var(--ease-out); }
.no-scrub .stage-poster, .stage-poster.show { opacity: 1; }
.stage-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(11, 21, 48, 0.92) 0%, rgba(11, 21, 48, 0) 34%),
    linear-gradient(to bottom, rgba(11, 21, 48, 0.6) 0%, rgba(11, 21, 48, 0) 24%),
    radial-gradient(ellipse at center, rgba(11, 21, 48, 0) 55%, rgba(11, 21, 48, 0.55) 100%);
}

/* Hero copy */
.hero-copy {
  position: absolute; left: 0; right: 0;
  bottom: calc(var(--unit) * 12);
  text-align: center;
  padding: 0 calc(var(--unit) * 3);
}
.hero-title {
  font-weight: 700;
  font-size: clamp(56px, 11.5vw, 168px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.hero-title.in .letter { opacity: 1; transform: translateY(0); }
.hero-sub {
  margin-top: calc(var(--unit) * 3);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 400;
  color: var(--bone);
}
.hero-accent {
  margin-top: var(--unit);
  font-weight: 600;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan);
}
.scroll-cue {
  position: absolute; bottom: calc(var(--unit) * 3);
  left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--unit);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--slate);
}
.scroll-cue span {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: cue-drop 2s var(--ease-inout) infinite;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Generic reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Stats */
.stats {
  background: var(--ground);
  padding: calc(var(--unit) * 16) 0;
  border-top: 1px solid rgba(76, 107, 122, 0.25);
  border-bottom: 1px solid rgba(76, 107, 122, 0.25);
  position: relative; z-index: 2;
}
.stats-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(76, 107, 122, 0.35);
}
.stat { padding: calc(var(--unit) * 5) calc(var(--unit) * 4); }
.stat:not(:first-child) { border-left: 1px solid rgba(76, 107, 122, 0.35); }
.stat-num {
  display: block;
  font-weight: 700;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-num .count { color: var(--bone); }
.stat-label {
  display: block;
  margin-top: calc(var(--unit) * 2);
  padding-top: calc(var(--unit) * 2);
  border-top: 2px solid var(--cyan);
  font-size: 14px;
  color: var(--slate);
  max-width: 24ch;
}

/* Pillars */
.pillars-copy {
  position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  margin: 0 auto; width: 100%;
}
.pillar-list { list-style: none; max-width: 620px; }
.pillar {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  padding: calc(var(--unit) * 3) 0;
  border-top: 1px solid rgba(251, 250, 246, 0.14);
}
.pillar.on { opacity: 1; transform: translateY(0); }
.pillar-index {
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.pillar h2 {
  font-weight: 700;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: var(--unit) 0;
  text-transform: uppercase;
}
.pillar p { color: var(--bone); font-size: clamp(15px, 1.4vw, 18px); max-width: 44ch; }

/* Work */
.work { padding: calc(var(--unit) * 20) 0; }
.work-bg {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.work-copy { margin-top: -100vh; margin-top: -100svh; }
.work-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11, 21, 48, 0.78) 0%, rgba(11, 21, 48, 0.5) 55%, rgba(11, 21, 48, 0.25) 100%);
}
.work-copy { position: relative; z-index: 2; }
.work-title {
  font-weight: 700;
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: calc(var(--unit) * 8);
}
.card-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: calc(var(--unit) * 2);
  max-width: 760px;
  /* Let the gallery-walk clip play out before the cards mount. */
  margin-top: 175vh;
}
.card {
  position: relative;
  display: flex; align-items: baseline;
  gap: calc(var(--unit) * 4);
  padding: calc(var(--unit) * 4);
  background: rgba(20, 39, 76, 0.55);
  border: 1px solid rgba(76, 107, 122, 0.3);
  backdrop-filter: blur(6px);
  transition: transform 300ms var(--ease-inout), border-color 300ms var(--ease-inout), background 300ms var(--ease-inout);
}
.card:hover {
  transform: translateX(calc(var(--unit) * 2));
  border-color: var(--cyan);
  background: rgba(20, 39, 76, 0.8);
}
.card-cover { position: absolute; inset: 0; z-index: 1; }
.card-index {
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.card h3 {
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.card p { color: var(--bone); opacity: 0.85; font-size: 15px; margin-top: calc(var(--unit) * 0.5); }
.card-side {
  margin-left: auto;
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: calc(var(--unit) * 1.5);
  align-self: center;
}
.card-logo {
  height: 32px; width: auto;
  max-width: 160px; object-fit: contain;
  opacity: 0.9;
  transition: opacity 300ms var(--ease-inout);
}
.card:hover .card-logo { opacity: 1; }
.card-tag {
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}

/* Blueprint grid texture on flat sections */
.stats, .why, .process {
  background-image:
    linear-gradient(rgba(0, 157, 198, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 157, 198, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}
.finale {
  background-image:
    radial-gradient(60% 55% at 50% 0%, rgba(0, 157, 198, 0.07), transparent 70%),
    linear-gradient(rgba(0, 157, 198, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 157, 198, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

/* Process: how an engagement runs */
.process {
  position: relative; z-index: 2;
  background-color: var(--ground);
  padding: calc(var(--unit) * 20) 0;
  border-top: 1px solid rgba(76, 107, 122, 0.25);
}
.step-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(76, 107, 122, 0.35);
  margin-top: calc(var(--unit) * 5);
}
.step { padding: calc(var(--unit) * 5) calc(var(--unit) * 4) calc(var(--unit) * 2) 0; }
.step:not(:first-child) {
  border-left: 1px solid rgba(76, 107, 122, 0.35);
  padding-left: calc(var(--unit) * 4);
}
.step-num {
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan);
}
.step h3 {
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: calc(var(--unit) * 1.5) 0 var(--unit);
}
.step p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--bone);
  opacity: 0.85;
  max-width: 34ch;
}

/* Why one partner */
.why {
  position: relative; z-index: 2;
  background: var(--ground);
  padding: calc(var(--unit) * 22) 0;
  border-top: 1px solid rgba(76, 107, 122, 0.25);
}
.why-title {
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-transform: uppercase;
  max-width: 14ch;
}
.why-lead {
  margin-top: calc(var(--unit) * 4);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  max-width: 30ch;
  line-height: 1.35;
}
.why-grid {
  margin-top: calc(var(--unit) * 10);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--unit) * 8);
  max-width: 980px;
}
.why-label {
  display: block;
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: calc(var(--unit) * 2);
}
.why-col p {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  max-width: 46ch;
}
.why-them { padding-left: calc(var(--unit) * 3); border-left: 1px solid rgba(76, 107, 122, 0.45); }
.why-them .why-label, .why-them p { color: var(--slate); }
.why-me { padding-left: calc(var(--unit) * 3); border-left: 2px solid var(--cyan); }
.why-me .why-label { color: var(--cyan); }
.why-me p { color: var(--bone); }
.why-quote {
  margin: calc(var(--unit) * 14) auto 0;
  max-width: 800px;
  text-align: center;
}
.why-quote::before {
  content: "";
  display: block;
  width: 48px; height: 2px;
  background: var(--cyan);
  margin: 0 auto calc(var(--unit) * 4);
}
.why-quote p {
  font-weight: 700;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Finale */
.finale {
  position: relative; z-index: 2;
  background: var(--ground);
  padding: calc(var(--unit) * 24) 0;
  text-align: center;
}
.finale-title {
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 96px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-transform: uppercase;
}
.finale-sub {
  margin-top: calc(var(--unit) * 3);
  color: var(--slate);
  font-size: clamp(15px, 1.5vw, 19px);
}
.finale-actions {
  margin-top: calc(var(--unit) * 6);
  display: flex; justify-content: center; gap: calc(var(--unit) * 2);
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: calc(var(--unit) * 2) calc(var(--unit) * 5);
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  transition: transform 250ms var(--ease-inout), background 250ms var(--ease-inout), color 250ms var(--ease-inout), border-color 250ms var(--ease-inout);
}
.btn-cyan { background: var(--cyan); color: var(--ground); }
.btn-cyan:hover { transform: translateY(-2px); }
.btn-ghost {
  color: var(--bone);
  border: 1px solid rgba(251, 250, 246, 0.5);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* Footer */
.site-foot {
  background: var(--navy);
  padding: calc(var(--unit) * 8) 0;
  position: relative; z-index: 2;
}
.foot-brand {
  margin-bottom: calc(var(--unit) * 5);
  padding-bottom: calc(var(--unit) * 5);
  border-bottom: 1px solid rgba(76, 107, 122, 0.25);
}
.foot-logo { height: 72px; width: auto; }
.foot-grid {
  display: flex; justify-content: space-between; align-items: center;
  gap: calc(var(--unit) * 4); flex-wrap: wrap;
}
.foot-links { display: flex; gap: calc(var(--unit) * 4); }
.foot-links a {
  color: var(--bone); text-decoration: none;
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease-inout), color 250ms var(--ease-inout);
}
.foot-links a:hover { color: var(--cyan); border-color: var(--cyan); }
.foot-line { color: var(--slate); font-size: 13px; }

/* Mobile */
@media (max-width: 860px) {
  .hero, .pillars { height: 320vh; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: calc(var(--unit) * 3); }
  .stat:not(:first-child) { border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid rgba(76, 107, 122, 0.35); }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(76, 107, 122, 0.35); }
  .process { padding: calc(var(--unit) * 14) 0; }
  .step-grid { grid-template-columns: 1fr; }
  .step { padding: calc(var(--unit) * 4) 0 calc(var(--unit) * 3); }
  .step:not(:first-child) {
    border-left: none;
    border-top: 1px solid rgba(76, 107, 122, 0.35);
    padding-left: 0;
  }
  .card { flex-wrap: wrap; gap: calc(var(--unit) * 2); }
  .card-side {
    margin-left: 0; width: 100%;
    flex-direction: row-reverse;
    justify-content: space-between; align-items: center;
  }
  .card-logo { height: 26px; }
  .work { padding: calc(var(--unit) * 14) 0; }
  .card-list { margin-top: 130vh; }
  .why { padding: calc(var(--unit) * 14) 0; }
  .why-grid { grid-template-columns: 1fr; gap: calc(var(--unit) * 5); }
  .finale { padding: calc(var(--unit) * 16) 0; }
  .site-head { padding: calc(var(--unit) * 2) calc(var(--unit) * 3); }
  .head-link { display: none; }
}

/* Reduced motion: poster + fade, no scrub */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .scroll-cue span { animation: none; }
  .hero, .pillars { height: auto; }
  .stage-sticky { position: relative; }
  .reveal, .pillar, .hero-title .letter {
    transition: opacity 600ms ease;
    transform: none;
  }
}
