/* ================================================================
   Forma Media — quiet luxury design system
   Navy #071B45 · Supporting #0B1E4D · Warm white #F8F7F2
   Light gray #E8E8E8 · White #FFFFFF
   Headings: Cormorant Garamond (Canela fallback stack)
   Body: Inter (Neue Haas Grotesk fallback stack)
   ================================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-v38-latin-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-v38-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-v38-latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-v38-latin-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-v38-latin-500italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #071B45;
  --navy-2: #0B1E4D;
  --navy-3: #12295E;      /* hover lighten */
  --navy-deep: #071423;   /* hero/about/services canvas (v1.1 revision) */
  --warm-white: #F8F7F2;
  --off-white: #F8F6F2;   /* deep-navy sections typography */
  --gray: #E8E8E8;
  /* Atmosphere palette — one continuous navy-to-blue environment */
  --forma-deep-navy: #050A12;
  --forma-midnight: #0B1424;
  --forma-ink-blue: #14263D;
  --forma-steel-blue: #1E3A54;
  --forma-serenity-blue: #2C5F7A;
  --forma-light-blue: #4FA3C7;
  --white: #FFFFFF;
  --ink: var(--navy);
  --serif: "Fraunces", "Canela", Georgia, serif;
  --sans: "Inter", "Neue Haas Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* ease-out */
  --t-fast: 250ms;
  --t-slow: 400ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.015em;
  color: var(--ink);
  /* Base of the atmosphere; each section layers translucent blue on top,
     so the page reads as one environment rather than stacked blocks. */
  background: linear-gradient(180deg,
      var(--forma-deep-navy) 0%,
      var(--forma-midnight) 38%,
      #0C1A2B 68%,
      var(--forma-midnight) 100%);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--navy); color: var(--warm-white); }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.is-hidden { display: none !important; }

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--warm-white); color: var(--navy);
  font-size: 0.8125rem; letter-spacing: 0.08em;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ================================================================
   Loading experience — cinematic, no spinner
   ================================================================ */
#loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: var(--forma-deep-navy);
  animation: loader-dissolve 900ms var(--ease) 1.8s forwards;
}
#loader img {
  width: clamp(180px, 26vw, 280px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 0 rgba(248, 247, 242, 0));
  animation: loader-logo 1.6s var(--ease) 150ms forwards;
}
@keyframes loader-logo {
  0%   { opacity: 0; transform: scale(0.96); }
  70%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1);
         filter: drop-shadow(0 0 34px rgba(248, 247, 242, 0.22)); }
}
@keyframes loader-dissolve {
  to { opacity: 0; visibility: hidden; }
}

/* ================================================================
   Navigation
   ================================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color var(--t-slow) var(--ease),
              box-shadow var(--t-slow) var(--ease);
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(7, 20, 35, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 72rem; margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.nav-brand img { height: 26px; width: auto; }
.nav-brand { transition: opacity var(--t-fast) var(--ease); }
.nav-brand:hover { opacity: 0.75; }

.nav-menu { display: flex; gap: 2.75rem; }
.nav-menu a {
  position: relative;
  color: var(--warm-white);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 0.3rem;
  transition: opacity var(--t-fast) var(--ease);
}
.nav-menu a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.nav-menu a:hover { opacity: 0.8; }
.nav-menu a:hover::after { opacity: 0.9; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  position: relative; z-index: 60;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--warm-white);
  margin: 5px auto;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ================================================================
   Hero — endless navy canvas, floating logo
   ================================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: transparent;
  overflow: hidden;
}
/* Billowing light masses (heroinspo4): several overlapping soft forms so the
   hero reads as luminous fog rather than a flat dark field. Kept translucent
   so the fixed aurora still drifts behind them. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 40% at 16% 26%, rgba(112, 168, 205, 0.50), rgba(79, 163, 199, 0.18) 45%, transparent 72%),
    radial-gradient(ellipse 52% 44% at 34% 58%, rgba(79, 163, 199, 0.42), rgba(44, 95, 122, 0.16) 48%, transparent 74%),
    radial-gradient(ellipse 40% 34% at 8% 82%, rgba(64, 132, 170, 0.40), transparent 70%),
    radial-gradient(ellipse 50% 46% at 88% 44%, rgba(44, 95, 122, 0.46), rgba(44, 95, 122, 0.14) 46%, transparent 72%),
    radial-gradient(ellipse 62% 40% at 52% 72%, rgba(30, 58, 84, 0.42), transparent 68%),
    radial-gradient(ellipse 34% 26% at 70% 12%, rgba(79, 163, 199, 0.20), transparent 64%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 94%);
  animation: hero-clouds 34s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hero-clouds {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2.5%, 1.5%, 0) scale(1.07); }
}

/* Edge vignette grounds the corners, the way the reference darkens its edges */
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 14, 0.55) 0%, transparent 20%, transparent 80%, rgba(3, 7, 14, 0.55) 100%),
    linear-gradient(180deg, rgba(3, 7, 14, 0.45) 0%, transparent 24%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 94%);
  pointer-events: none;
}

/* Aurora gradient — a fixed field behind every navy section, so the same
   light carries through the whole page and drifts as the visitor scrolls. */
.page-aurora {
  position: fixed; inset: -22%;
  z-index: -1;
  filter: blur(120px);
  will-change: transform;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.aurora-a {
  width: 62vw; height: 62vw;
  left: 4%; top: 8%;
  background: radial-gradient(circle, rgba(44, 95, 122, 0.45) 0%, rgba(44, 95, 122, 0.18) 32%, transparent 62%);
  animation: aurora-drift-a 26s ease-in-out infinite alternate;
}
.aurora-b {
  width: 55vw; height: 55vw;
  right: 0%; top: 30%;
  background: radial-gradient(circle, rgba(79, 163, 199, 0.30) 0%, rgba(79, 163, 199, 0.12) 30%, transparent 60%);
  animation: aurora-drift-b 32s ease-in-out infinite alternate;
}
.aurora-c {
  width: 48vw; height: 48vw;
  left: 26%; bottom: -6%;
  background: radial-gradient(circle, rgba(30, 58, 84, 0.42) 0%, transparent 65%);
  animation: aurora-drift-c 38s ease-in-out infinite alternate;
}
@keyframes aurora-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(9%, 6%) scale(1.08); }
}
@keyframes aurora-drift-b {
  from { transform: translate(0, 0) scale(1.05); }
  to   { transform: translate(-8%, -5%) scale(0.97); }
}
@keyframes aurora-drift-c {
  from { transform: translate(0, 0) scale(0.98); }
  to   { transform: translate(6%, -7%) scale(1.06); }
}

/* Very subtle paper grain — inline SVG turbulence, 5% opacity */
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.05;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 94%);
  pointer-events: none;
}

/* Small mark at the top middle of the hero */
.hero-topmark {
  position: absolute;
  top: clamp(84px, 12vh, 120px); left: 0; right: 0;
  margin: 0 auto;
  width: clamp(88px, 9vw, 118px);
  height: auto;
  opacity: 0;
  animation: fade-up-soft 1s var(--ease) 1.9s forwards;
}

/* Headline block — the center of the hero, heroinspo style */
.hero-lead {
  position: relative;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 1.5rem;
}
.hero-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  letter-spacing: -0.015em;
  line-height: 1.12;
  max-width: 780px;
  color: var(--off-white);
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 2.1s forwards;
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.hero-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 200px; height: 50px;
  margin-top: 26px;
  border-radius: 999px;
  background: var(--off-white);
  color: var(--navy-deep);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 2.45s forwards;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.hero-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(4, 12, 24, 0.45);
}
.hero-sub {
  max-width: 640px;
  margin-top: 20px;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--off-white);
  opacity: 0;
  /* Settles at 0.8, not 1 — supporting copy sits under the headline, not beside it. */
  animation: fade-up-soft 0.8s var(--ease) 2.3s forwards;
}
@keyframes fade-up-soft {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 0.8; transform: translateY(0); }
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero-cta-ghost {
  background: transparent;
  color: var(--off-white);
  border: 1px solid rgba(248, 246, 242, 0.45);
}
.hero-cta-ghost:hover { border-color: rgba(248, 246, 242, 0.85); }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.25rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--off-white);
  opacity: 0;
  animation: scroll-cue-in 0.8s var(--ease) 3s forwards;
  transition: opacity 400ms var(--ease);
}
.hero-scroll.faded { opacity: 0 !important; }
.hero-scroll svg { animation: chevron-bob 2s ease-in-out infinite; }
.hero-scroll span {
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.6;
}
@keyframes scroll-cue-in { to { opacity: 0.85; } }
@keyframes chevron-bob {
  0%, 100% { transform: translateY(-2px); }
  50%      { transform: translateY(2px); }
}

/* ================================================================
   Sections — editorial rhythm
   ================================================================ */
.section { padding: clamp(6rem, 12vw, 10rem) 1.5rem; }
.section-light { background: var(--white); color: var(--navy); }
.section-warm { background: var(--warm-white); color: var(--navy); }
.section-navy { background: var(--navy); color: var(--warm-white); }

.container { max-width: 68rem; margin: 0 auto; }
.container-narrow { max-width: 46rem; }

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 2.25rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  max-width: 24ch;
  margin-bottom: 2.5rem;
}
.section-sub {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: -1.25rem;
  margin-bottom: 3.5rem;
}
.section-body {
  max-width: 42rem;
  display: grid; gap: 1.5rem;
  font-size: 1rem;
}

/* Scroll reveals — applied only when JS is present */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease) var(--stagger, 0ms),
              transform 700ms var(--ease) var(--stagger, 0ms);
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* Mixed roman/italic headline voice (heroinspo direction) */
h1 em, h2 em, h3 em, .section-title em {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

/* ================================================================
   Deep-navy continuous sections (About + Services, v1.1 revision)
   ================================================================ */
.section-deep {
  position: relative;
  background: transparent; /* the fixed aurora field shows through */
  color: var(--off-white);
  overflow: hidden;
}
/* Layer 2: grain, Layer 3: soft ambient glow */
.section-deep::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.04;
  pointer-events: none;
}
.section-deep::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: min(700px, 90vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(70, 100, 150, 0.10), transparent 70%);
  pointer-events: none;
}
.section-deep > * { position: relative; z-index: 1; }

.section-center { text-align: center; margin-left: auto; margin-right: auto; }
.container-narrow { max-width: 47.5rem; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 87.5rem; margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 32px;
}

/* ---------- About — left-aligned editorial ---------- */
.about-section {
  padding: 180px 1.5rem;
  /* deep navy easing toward ink blue */
  background: linear-gradient(180deg,
      rgba(20, 38, 61, 0) 0%,
      rgba(20, 38, 61, 0.30) 100%);
}
.about-section .section-center { text-align: left; }
.about-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 700px;
  margin: 0 0 40px;
}
.body-copy {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  max-width: 640px;
  margin: 0 0 28px;
  opacity: 0.85;
}

/* ---------- Services — compact: all five boxes fit one desktop screen ---------- */
.services-section {
  padding: 110px 1.5rem;
  /* ink blue deepening toward steel */
  background:
    radial-gradient(ellipse 70% 50% at 15% 40%, rgba(44, 95, 122, 0.16), transparent 70%),
    linear-gradient(180deg,
      rgba(20, 38, 61, 0.30) 0%,
      rgba(30, 58, 84, 0.42) 100%);
}
.services-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 48px;
}
/* Language switch — reads as a nav item, set apart by its border */
.nav-lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; padding: 0.3rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity var(--t-fast) var(--ease);
}
.nav-lang:hover { opacity: 1; }

.services-sub {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.75;
  margin: -28px 0 44px;  /* pulls up under the headline's 48px gap */
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
.service-item {
  padding: 22px 24px 24px;
  border: 1px solid rgba(248, 246, 242, 0.14);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(120, 150, 200, 0.10) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: transform 300ms var(--ease), border-color 300ms var(--ease),
              box-shadow 300ms var(--ease);
}
.service-item:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 246, 242, 0.28);
  box-shadow: 0 22px 48px rgba(3, 9, 18, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.service-divider {
  display: block;
  width: 100%; height: 1px;
  background: rgba(248, 246, 242, 0.12);
  margin-bottom: 18px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease) calc(var(--stagger, 0ms) + 100ms),
              background-color 300ms var(--ease);
}
.service-item.in-view .service-divider { transform: scaleX(1); }
.service-item:hover .service-divider { background: rgba(248, 246, 242, 0.30); }
.service-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.9vw, 1.65rem);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  transition: transform 300ms var(--ease);
}
.service-item:hover h3 { transform: translateY(-2px); }
.service-item p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  max-width: 520px;
  opacity: 0.75;
  transition: opacity 300ms var(--ease);
}
.service-item:hover p { opacity: 1; }

/* ================================================================
   Why Forma Media — four supporting points, carrying the same lift
   on hover as the service boxes
   ================================================================ */
.why-section {
  padding: 110px 1.5rem 170px;
  /* The build: steel blue gathering into serenity blue behind the tiles,
     lit by two very large soft sources. No band — it happens over the
     whole section height. */
  background:
    radial-gradient(ellipse 80% 60% at 20% 55%, rgba(44, 95, 122, 0.30), transparent 68%),
    radial-gradient(ellipse 70% 55% at 82% 88%, rgba(79, 163, 199, 0.22), transparent 66%),
    linear-gradient(180deg,
      rgba(30, 58, 84, 0.42) 0%,
      rgba(34, 72, 100, 0.58) 45%,
      rgba(40, 86, 112, 0.74) 76%,
      rgba(44, 95, 122, 0.85) 100%);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.why-item {
  padding: 24px 24px 26px;
  border: 1px solid rgba(248, 246, 242, 0.14);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(120, 150, 200, 0.10) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: transform 300ms var(--ease), border-color 300ms var(--ease),
              box-shadow 300ms var(--ease);
}
.why-item:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 246, 242, 0.28);
  box-shadow: 0 22px 48px rgba(3, 9, 18, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.why-item:hover p { opacity: 1; }
.why-number {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  opacity: 0.45;
  margin-bottom: 14px;
}
.why-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.why-item p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.72;
  transition: opacity 300ms var(--ease);
}

/* ================================================================
   Who We Work With — the service boxes' lift, applied to short labels
   ================================================================ */
.clients-section {
  padding: 130px 1.5rem;
  /* settling back from soft blue toward steel */
  background:
    radial-gradient(ellipse 75% 60% at 78% 55%, rgba(79, 163, 199, 0.16), transparent 70%),
    linear-gradient(180deg,
      rgba(44, 95, 122, 0.80) 0%,
      rgba(36, 76, 104, 0.62) 45%,
      rgba(30, 58, 84, 0.45) 100%);
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.client-item {
  display: flex; align-items: center;
  min-height: 96px;
  padding: 22px 24px;
  border: 1px solid rgba(248, 246, 242, 0.14);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(120, 150, 200, 0.10) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease),
              box-shadow 300ms var(--ease);
}
.client-item:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 246, 242, 0.28);
  box-shadow: 0 22px 48px rgba(3, 9, 18, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* ================================================================
   Selected Projects — editorial portfolio cards
   ================================================================ */
.section-projects {
  position: relative;
  /* The opening: serenity blue lifting into soft blue, with a wide light
     source overhead. Lighter and more open, same environment. */
  background:
    radial-gradient(ellipse 95% 62% at 50% 44%, rgba(79, 163, 199, 0.50), rgba(79, 163, 199, 0.20) 42%, transparent 78%),
    linear-gradient(180deg,
      rgba(44, 95, 122, 0.85) 0%,
      rgba(56, 122, 152, 0.92) 30%,
      rgba(63, 137, 168, 0.94) 55%,
      rgba(50, 105, 134, 0.88) 82%,
      rgba(44, 95, 122, 0.80) 100%);
  color: var(--off-white);
  padding: 170px 1.5rem 190px;
  overflow: hidden;
}
.section-projects::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.04;
  pointer-events: none;
}
.section-projects > * { position: relative; z-index: 1; }
.projects-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.projects-sub {
  max-width: 600px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  opacity: 0.7;
  margin-bottom: 64px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.project-card {
  display: block;
  /* The section's copy is light on blue; the cards are light tiles,
     so their own copy stays navy. */
  color: var(--navy-deep);
  padding: 18px 18px 22px;
  border: 1px solid rgba(7, 20, 35, 0.10);
  border-radius: 20px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F2F1EC 60%, #ECEBE6 100%);
  box-shadow: 0 6px 22px rgba(7, 20, 35, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease),
              border-color 350ms var(--ease);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(7, 20, 35, 0.18);
  box-shadow: 0 24px 52px rgba(7, 20, 35, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.project-media {
  position: relative;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  background: var(--navy-deep);
  color: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin-bottom: 22px;
  transition: transform 350ms var(--ease);
}
.project-card:hover .project-media { transform: scale(1.05); }
.project-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-img-contain {
  object-fit: contain;
  background: var(--white);
  padding: 10%;
}
.project-preview {
  position: relative; z-index: 1;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--off-white);
  background: rgba(7, 20, 35, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 8px 16px;
  border-radius: 999px;
}
.project-media-future .project-preview {
  color: var(--navy-deep);
  background: rgba(7, 20, 35, 0.06);
}
.project-number {
  position: absolute;
  bottom: 14px; right: 18px;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  opacity: 0.5;
}
.project-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 1);
  opacity: 0;
  transition: opacity 350ms var(--ease);
}
.project-card:hover .project-overlay { opacity: 0.12; }
.project-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  transition: opacity 350ms var(--ease);
}
.project-card:hover h3 { opacity: 0.75; }
.project-subtitle {
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 10px;
}
.project-services {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 16px;
}
.project-cta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 350ms var(--ease);
}
.project-card:hover .project-cta { transform: translateY(-4px); }
.project-media-future {
  background: transparent;
  border: 1px solid rgba(7, 20, 35, 0.18);
  color: var(--navy-deep);
}
.project-card-future h3 { max-width: 20ch; }

/* ================================================================
   Case study pages (/work/*) — editorial, off-white
   ================================================================ */
.case-study {
  background:
    radial-gradient(ellipse 80% 40% at 25% 12%, rgba(44, 95, 122, 0.28), transparent 70%),
    radial-gradient(ellipse 70% 45% at 80% 70%, rgba(79, 163, 199, 0.16), transparent 68%),
    linear-gradient(180deg,
      rgba(20, 38, 61, 0.35) 0%,
      rgba(30, 58, 84, 0.45) 60%,
      rgba(20, 38, 61, 0.30) 100%);
  color: var(--off-white);
}
.case-hero {
  padding: 200px 1.5rem 60px;
}
.case-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 36px;
}
.case-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.case-tags li {
  border: 1px solid rgba(248, 246, 242, 0.35);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 250ms ease, color 250ms ease;
}
.case-tags li:hover {
  background: var(--off-white);
  color: var(--navy-deep);
}
.case-section { padding: 70px 1.5rem; }
.case-heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.case-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  max-width: 47.5rem;
  opacity: 0.85;
  margin-bottom: 24px;
}
/* Case-study media strip — one straight line of images/videos */
.case-gallery { padding-top: 40px; padding-bottom: 40px; }
.case-media-row {
  display: flex;
  gap: 14px;
}
.case-media-item {
  flex: 1;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(248, 246, 242, 0.06);
}
.case-media-item img,
.case-media-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .case-media-row {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .case-media-item {
    flex: 0 0 62%;
    scroll-snap-align: center;
  }
}

.case-cta {
  padding: 110px 1.5rem 150px;
  text-align: center;
}
.case-cta-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.case-cta-sub { margin-left: auto; margin-right: auto; max-width: 600px; }
.case-cta-button {
  animation: none; opacity: 1; /* .reveal drives its entrance here */
  margin-top: 8px;
}
.case-next {
  display: inline-block;
  margin-top: 36px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.case-next:hover { opacity: 1; transform: translateX(3px); }

/* ================================================================
   Contact — compact horizontal tile on the light canvas
   ================================================================ */
.section-contact {
  position: relative;
  /* last of the blue dissolving back into midnight for the footer */
  background:
    radial-gradient(ellipse 85% 55% at 30% 45%, rgba(44, 95, 122, 0.22), transparent 72%),
    linear-gradient(180deg,
      rgba(30, 58, 84, 0.45) 0%,
      rgba(22, 42, 66, 0.62) 55%,
      rgba(11, 20, 36, 0.85) 100%);
  color: var(--navy-deep);
  padding: 160px 1.5rem 190px;
  overflow: hidden;
}
.section-contact::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.04;
  pointer-events: none;
}
.section-contact > * { position: relative; z-index: 1; }
.contact-tile {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 20px 56px;
  align-items: start;
  padding: 44px 48px 48px;
  border: 1px solid rgba(7, 20, 35, 0.10);
  border-radius: 24px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F2F1EC 60%, #ECEBE6 100%);
  box-shadow: 0 6px 22px rgba(7, 20, 35, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.contact-tile .section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 1.25rem;
  max-width: none;
}
.contact-tile .section-sub { margin: 0; }
.contact-tile .confirmation { grid-column: 1 / -1; }

/* ================================================================
   Contact form
   ================================================================ */
.contact-form { margin-top: 0.25rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 1.25rem;
}
.field { display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }

.field label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  opacity: 0.75;
}
.field label em { text-transform: none; letter-spacing: 0.05em; font-style: normal; opacity: 0.7; }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-weight: 300;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 2px;
  padding: 0.7rem 0.9rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(7, 27, 69, 0.35);
  transition: opacity var(--t-fast) var(--ease);
}
.field input:focus::placeholder,
.field textarea:focus::placeholder { opacity: 0.4; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 4px 18px rgba(7, 27, 69, 0.07);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23071B45' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.field-error { color: #8a3232; font-size: 0.8125rem; margin-top: 0.45rem; min-height: 1em; }
.form-errors { color: #8a3232; font-size: 0.9rem; margin-bottom: 1.75rem; }
.form-errors ul { display: grid; gap: 0.4rem; }

.cf-turnstile { margin-top: 2rem; }

/* Submit — fully rounded pill, centered under the form */
.form-actions { text-align: center; }
.btn-submit {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1.5rem;
  padding: 1.05rem 2.9rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  border: 0; border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.btn-submit:hover:not(:disabled) {
  background: var(--navy-3);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(7, 27, 69, 0.22);
}
.btn-submit:disabled { cursor: default; }

.btn-dots { display: none; gap: 0.35rem; }
.btn-dots i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--white);
  animation: dot-pulse 1s ease-in-out infinite;
}
.btn-dots i:nth-child(2) { animation-delay: 160ms; }
.btn-dots i:nth-child(3) { animation-delay: 320ms; }
@keyframes dot-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}
.btn-submit.is-loading .btn-label { visibility: hidden; }
.btn-submit.is-loading .btn-dots {
  display: flex;
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
}

/* ================================================================
   Confirmation panel
   ================================================================ */
.confirmation {
  text-align: center;
  padding: 3rem 0 1rem;
  opacity: 0;
  transform: translateY(22px);
}
.confirmation.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.confirmation-check {
  width: 58px; height: 58px;
  margin: 0 auto 2rem;
  color: var(--navy);
  opacity: 0.9;
}
.confirmation.is-visible .check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: check-draw 600ms var(--ease) 350ms forwards;
}
@keyframes check-draw { to { stroke-dashoffset: 0; } }
.confirmation h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1.25rem;
}
.confirmation p {
  max-width: 34rem;
  margin: 0 auto 0.9rem;
  opacity: 0.8;
  font-size: 1rem;
}

/* ================================================================
   Footer — centered, engraved mark
   ================================================================ */
.site-footer {
  background: var(--forma-midnight);
  color: var(--warm-white);
  text-align: center;
  padding: 5.5rem 1.5rem 4.5rem;
}
.footer-mark {
  width: 55px;
  margin: 0 auto 1.75rem;
  opacity: 0.35;
  filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.55))
          drop-shadow(0 1px 1px rgba(248, 247, 242, 0.10));
}
.footer-location {
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.6rem;
}
.footer-copy {
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 1.5rem;
}
.footer-links {
  display: flex; justify-content: center; align-items: center; gap: 2.5rem;
  font-size: 0.875rem; letter-spacing: 0.06em;
}
.footer-social-group { display: flex; gap: 0.5rem; }
/* 44px tap target around a 21px glyph; negative margin keeps it from padding the row out. */
.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: -0.75rem 0;
}
.footer-links a { opacity: 0.75; transition: opacity var(--t-fast) var(--ease); }
.footer-links a:hover { opacity: 1; }
.footer-version {
  margin-top: 2rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  opacity: 0.55; /* 0.3 fails WCAG contrast on navy */
}

/* ================================================================
   Mobile
   ================================================================ */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 0;
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2.5rem;
    background: var(--navy);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t-slow) var(--ease), visibility var(--t-slow) var(--ease);
  }
  .nav-menu.open { opacity: 1; visibility: visible; }
  .nav-menu a { font-size: 1rem; }

  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .services-section { padding-top: 80px; padding-bottom: 80px; }
  .about-section { padding-top: 90px; padding-bottom: 90px; }
  .body-copy { font-size: 15px; }
  .service-item { padding: 20px 18px 22px; }
  .hero-topmark { top: 76px; }
  .projects-grid { grid-template-columns: 1fr; gap: 60px; }
  .section-projects { padding: 90px 1.5rem; }
  .case-hero { padding: 150px 1.5rem 40px; }
  .case-section { padding: 45px 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-tile { grid-template-columns: 1fr; padding: 28px 22px 32px; gap: 24px; }
  .footer-links { flex-direction: column; gap: 1rem; }

  .hero-sub { font-size: 14px; }
  /* Two 200px pills won't fit side by side — stack them full-width. */
  .hero-ctas { flex-direction: column; width: 100%; max-width: 280px; gap: 10px; }
  .hero-ctas .hero-cta { width: 100%; margin-top: 0; }
  .hero-ctas { margin-top: 22px; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .why-section { padding-top: 80px; padding-bottom: 80px; }
  .clients-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .clients-section { padding-top: 80px; padding-bottom: 80px; }
  .client-item { min-height: 0; padding: 20px 18px; }
  .location-section { padding-top: 90px; padding-bottom: 90px; }
  .services-sub { margin: -20px 0 34px; }
}
@media (min-width: 721px) and (max-width: 1024px) {
  .services-grid { gap: 24px 32px; }
  .services-section { padding-top: 100px; padding-bottom: 100px; }
  .about-section { padding-top: 140px; padding-bottom: 140px; }
  .body-copy { font-size: 15px; }
}
@media (min-width: 721px) and (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   Reduced motion — calm by default, still for those who ask
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #loader { display: none; }
  .hero-topmark { animation: none; opacity: 1; }
  .aurora-blob { animation: none; }
  .hero::before { animation: none; }
  .page-aurora { transform: none; }
  .hero-headline, .hero-cta { animation: none; opacity: 1; }
  .hero-sub { animation: none; opacity: 0.8; }
  .hero-scroll { animation: none; opacity: 0.85; }
  .hero-scroll svg { animation: none; }
  .service-divider { transform: scaleX(1); transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
