/* ============================================================
   CUSTOM FONTS
   ============================================================ */
@font-face {
  font-family: 'GC Natify';
  src: url('fonts/GCNatify.woff2') format('woff2'),
       url('fonts/GCNatify.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GC Natify';
  src: url('fonts/GCNatify.woff2') format('woff2'),
       url('fonts/GCNatify.woff')  format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles this */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* clip, not hidden — hidden creates a scroll container and breaks position:sticky */
}

body {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  background: #101011;
  color: #eeeeee;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0;
  overflow-x: clip; /* clip, not hidden — hidden creates a scroll container and breaks position:sticky */
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

ul { list-style: none; }

::selection { background: #3D3BFF; color: #ffffff; }

.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;
}

/* ============================================================
   KEYBOARD FOCUS STYLES
   ============================================================ */
:focus-visible {
  outline: 2px solid #3D3BFF;
  outline-offset: 3px;
}

/* Skip-to-content link for keyboard / screen-reader users */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 999999;
  padding: 0.75rem 1.5rem;
  background: #3D3BFF;
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus-visible {
  top: 1rem;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}


/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Palette */
  --color-black:       #101011;
  --color-white:       #eeeeee;
  --color-brand:       #3D3BFF;
  --color-brand-muted: #7B79FF;
  --color-muted:       #696869;

  /* Font families */
  --font:    'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --heading: 'GC Natify', 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --mono:    'Montserrat', ui-sans-serif, sans-serif;

  /* Easing */
  --ease-out-quart:    cubic-bezier(.25, 1, .5, 1);
  --ease-in-out-quart: cubic-bezier(.76, 0, .24, 1);
  --ease-out-expo:     cubic-bezier(.16, 1, .3, 1);
  --ease-expo-out:     cubic-bezier(.16, 1, .3, 1); /* alias — keep both names in use */
  --ease-reveal:       cubic-bezier(.76, 0, .24, 1);
  --ease-p4:           cubic-bezier(.76, 0, .24, 1);

  /* Site layout */
  --site-max-width:  1920px;
  --nav-h:           96px;
  --header-height:   96px; /* alias */
  --section-padding: 128px;
  --grid-gutter:     2rem;
  --grid-margin:     100px;
}


/* ============================================================
   SECTION THEMES — dark / light
   ============================================================ */
.section--dark {
  --color-bg:           #101011;
  --color-fg:           #eeeeee;
  --color-fg-muted:     rgba(238, 238, 238, 0.70);
  --color-border:       rgba(255, 255, 255, 0.12);
  --color-border-muted: rgba(255, 255, 255, 0.06);
  --color-surface:      #1E1B30;
  background-color: var(--color-bg);
  color: var(--color-fg);
}

.section--light {
  position: relative;
  z-index: 1; /* stack above the fixed work sidebar when it transitions out */
  --color-bg:           #eeeeee;
  --color-fg:           #141314;
  --color-fg-muted:     #5a595a; /* #696869 fails WCAG AA on #eeeeee; darkened to ~5.8:1 */
  --color-border:       rgba(0, 0, 0, 0.20);
  --color-border-muted: rgba(0, 0, 0, 0.10);
  --color-surface:      #d5d5d5;
  background-color: var(--color-bg);
  color: var(--color-fg);
}

/* Muted label text on light backgrounds — use accessible contrast value */
.section--light .section-label { color: #5a595a; }


/* ============================================================
   LAYOUT
   ============================================================ */
.section {
  width: 100%;
  padding: var(--section-padding) 0;
}

.container {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 var(--grid-margin);
}


/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--heading);
}

h1 {
  font-size: clamp(2rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1.125;
  letter-spacing: -0.05em;
}

h3 {
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.083;
  letter-spacing: -0.05em;
}

h4 {
  font-size: clamp(1.75rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.section-label {
  font-family: var(--heading);
  font-size: clamp(0.75rem, 0.875vw, 0.875rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #696869;
  display: block;
  margin-bottom: 1.25rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--color-brand);
  border-color: var(--color-brand);
}


/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
#cursor {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-white);
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition:
    width  0.4s var(--ease-expo-out),
    height 0.4s var(--ease-expo-out);
}

#cursor.hover {
  width: 36px;
  height: 36px;
}

@media (pointer: coarse) {
  #cursor { display: none; }
}


/* ============================================================
   NAVIGATION — 3-state (transparent / dark-blur / light-blur)
   ============================================================ */
header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 9999;
  height: var(--nav-h);
  display: flex;
  flex-direction: column;
  overflow: hidden;

  background-color: transparent;
  transition:
    background-color        0.55s cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter         0.55s cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-backdrop-filter 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color            0.55s cubic-bezier(0.16, 1, 0.3, 1),
    color                   0.4s  ease;
  border-bottom: 1px solid transparent;

  /* Dark token defaults */
  --t-fg:       #eeeeee;
  --t-fg-muted: rgba(238,238,238,0.55);
  --t-bg-blur:  rgba(16,16,17,0.88);
  --t-border:   rgba(255,255,255,0.08);
  color: var(--t-fg);
}

/* Light-section override */
header[data-theme="light"] {
  --t-fg:       #141314;
  --t-fg-muted: rgba(20,19,20,0.55);
  --t-bg-blur:  rgba(238,238,238,0.88);
  --t-border:   rgba(0,0,0,0.10);
}

/* State 1 — transparent at top */
header.is-top {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
}

/* State 2 & 3 — scrolled, blurred */
header.is-scrolled {
  background-color: var(--t-bg-blur);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-color: var(--t-border);
}

/* ── 12-column scaleY background grid ───────────────── */
.nav-bg-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  pointer-events: none;
  z-index: 0;
}

.nav-bg-col {
  height: 100%;
  transform-origin: top;
  transform: scaleY(0);
  background: transparent;
  transition-property: transform;
  transition-duration: 1200ms;
  transition-timing-function: cubic-bezier(.76, 0, .24, 1);
  /* per-column transition-delay set by JS (30ms × index) */
}

header.is-scrolled .nav-bg-col { transform: scaleY(1); }
header.is-top      .nav-bg-col { transform: scaleY(0); }

/* ── Nav content row ─────────────────────────────────── */
.nav-row {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-left:  100px;
  padding-right: 100px;
  transition: padding 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

header.is-scrolled .nav-row {
  padding-left:  110px;
  padding-right: 110px;
}

/* Logo */
.nav-logo {
  display: grid;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 0.65; }

/* Both images share the same grid cell so they stack */
.nav-logo .logo-img {
  grid-area: 1 / 1;
  height: 34px;
  width: auto;
  display: block;
  transition: opacity 0.4s ease;
}

/* Default (dark section): show white logo, hide black */
.nav-logo .logo-img--white { opacity: 1; }
.nav-logo .logo-img--black { opacity: 0; }

/* Light section: show black logo, hide white */
header[data-theme="light"] .nav-logo .logo-img--white { opacity: 0; }
header[data-theme="light"] .nav-logo .logo-img--black { opacity: 1; }

/* Center: MENU button */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.nav-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--t-fg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: color 0.4s ease, opacity 0.3s ease;
}

.nav-menu-btn:hover { opacity: 0.65; }

/* Hamburger bars */
.nav-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
  flex-shrink: 0;
}

.nav-bar {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform-origin: center;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.3s  ease,
    width     0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Open → X morph */
.nav-menu-btn.open .nav-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-menu-btn.open .nav-bar:nth-child(2) { opacity: 0; width: 0; }
.nav-menu-btn.open .nav-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* MENU / CLOSE slot text */
.menu-text-wrap {
  overflow: hidden;
  height: 1.2em;
}

.menu-text-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-reveal);
}

.nav-menu-btn.open .menu-text-inner { transform: translateY(-50%); }

.menu-text-line {
  display: block;
  height: 1.2em;
  line-height: 1.2;
}

/* Right: orange CTA pill + plus */
.nav-right {
  display: flex;
  align-items: stretch;
  height: 36px;
  flex-shrink: 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  background: var(--t-fg);
  color: var(--t-bg-blur);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--t-fg);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

/* Force readable text colour on the inverted fill */
header[data-theme="dark"]  .nav-cta { color: #141314; }
header[data-theme="light"] .nav-cta { color: #eeeeee; }

.nav-cta:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.nav-cta-text-wrap {
  overflow: hidden;
  height: 1.1em;
}

.nav-cta-text-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease-p4);
}

.nav-cta:hover .nav-cta-text-inner { transform: translateY(-50%); }

.nav-cta-line {
  display: block;
  height: 1.1em;
  line-height: 1.1;
}

/* Plus button */
.nav-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--t-fg);
  color: #141314;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  border-left: 1px solid var(--t-border);
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

header[data-theme="dark"]  .nav-plus { color: #141314; }
header[data-theme="light"] .nav-plus { color: #eeeeee; }

.nav-plus:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  transform: rotate(90deg);
}


/* ============================================================
   FULLSCREEN NAV OVERLAY
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: #101011;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2.5rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-reveal);
  pointer-events: none;
}

.nav-overlay.open {
  clip-path: inset(0 0 0% 0);
  pointer-events: all;
}

.overlay-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overlay-link-row {
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.overlay-link-row:first-child { border-top: 1px solid rgba(255,255,255,0.08); }

.overlay-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5em 0;
  font-family: var(--heading);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(110%);
  transition: transform 0.8s var(--ease-reveal), color 0.3s ease;
}

.overlay-link-row:nth-child(1) .overlay-link { transition-delay: 0.04s; }
.overlay-link-row:nth-child(2) .overlay-link { transition-delay: 0.08s; }
.overlay-link-row:nth-child(3) .overlay-link { transition-delay: 0.12s; }
.overlay-link-row:nth-child(4) .overlay-link { transition-delay: 0.16s; }
.overlay-link-row:nth-child(5) .overlay-link { transition-delay: 0.20s; }

.nav-overlay.open .overlay-link { transform: translateY(0); }
.overlay-link:hover { color: var(--color-brand); }

.overlay-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  flex-shrink: 0;
  padding-bottom: 0.25em;
}

.overlay-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s var(--ease-expo-out) 0.3s;
}

.nav-overlay.open .overlay-foot { opacity: 1; transform: translateY(0); }

.overlay-contact p {
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--color-muted);
}

.overlay-contact a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s;
}

.overlay-contact a:hover { color: var(--color-brand); }

.overlay-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}


/* ============================================================
   ANIMATION — SPLIT-LINE TEXT REVEAL
   Sections use [data-animate] + IntersectionObserver.
   Hero uses .split-mask > .split-inner + body.loaded.
   ============================================================ */
.split-line-mask {
  overflow: clip;
  display: block;
}

.split-line {
  display: block;
  transform: translateY(110%);
  transition: transform 1.5s cubic-bezier(.76, 0, .24, 1);
}

[data-animate].is-visible .split-line { transform: translateY(0); }

[data-animate].is-visible .split-line-mask:nth-child(1)  .split-line { transition-delay: 0s; }
[data-animate].is-visible .split-line-mask:nth-child(2)  .split-line { transition-delay: 0.03s; }
[data-animate].is-visible .split-line-mask:nth-child(3)  .split-line { transition-delay: 0.06s; }
[data-animate].is-visible .split-line-mask:nth-child(4)  .split-line { transition-delay: 0.09s; }
[data-animate].is-visible .split-line-mask:nth-child(5)  .split-line { transition-delay: 0.12s; }
[data-animate].is-visible .split-line-mask:nth-child(6)  .split-line { transition-delay: 0.15s; }
[data-animate].is-visible .split-line-mask:nth-child(7)  .split-line { transition-delay: 0.18s; }
[data-animate].is-visible .split-line-mask:nth-child(8)  .split-line { transition-delay: 0.21s; }
[data-animate].is-visible .split-line-mask:nth-child(9)  .split-line { transition-delay: 0.24s; }
[data-animate].is-visible .split-line-mask:nth-child(10) .split-line { transition-delay: 0.27s; }


/* ============================================================
   ANIMATION — FADE + RISE (non-heading elements)
   ============================================================ */
[data-animate-fade] {
  opacity: 0;
  transform: translateY(12px);
  will-change: transform, opacity;
  transition: opacity 0.9s var(--ease-out-quart), transform 0.9s var(--ease-out-quart);
}

[data-animate-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   SLOT-MACHINE DIGIT COUNTER
   ============================================================ */
.counter-mask {
  overflow: hidden;
  display: inline-block;
  height: 1em;
  line-height: 1;
  vertical-align: bottom;
}

.counter-track {
  display: flex;
  flex-direction: column;
  transition: transform 1.5s cubic-bezier(.76, 0, .24, 1);
}

.counter-track span {
  display: block;
  height: 1em;
  line-height: 1;
}


/* ============================================================
   HERO SECTION — WebGL shader + body.loaded reveals
   ============================================================ */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#hero-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}


/* ── Cyber matrix background ── */
#hero-matrix {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0C0A18;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(var(--hm-cols), 1fr);
  grid-template-rows: repeat(var(--hm-rows), 1fr);
}

.hm-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.05rem;
  pointer-events: none;
  user-select: none;
  opacity: calc(0.18 + var(--intensity, 0) * 0.72);
  color: hsl(248, 60%, calc(30% + var(--intensity, 0) * 50%));
  text-shadow: 0 0 calc(var(--intensity, 0) * 18px) hsl(248, 100%, 65%);
  transform: scale(calc(1 + var(--intensity, 0) * 0.15));
  transition: color 0.15s ease, text-shadow 0.15s ease,
              transform 0.15s ease, opacity 0.15s ease;
}

#hero-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: screen;
}

#hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  overflow: hidden;
}

/* Bottom gradient fade — text stays legible */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 35%,
    rgba(20,19,20,0.55) 70%,
    rgba(20,19,20,0.93) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-col-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 0 2rem 0 100px;
}

.hero-col-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-col-right-img {
  width: 100%;
  max-width: 748px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
  --px: 0px;
  --py: 0px;
  animation: astronaut-float 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes astronaut-float {
  0%   { transform: translate(var(--px), calc(var(--py) + 0px))   rotate(0deg); }
  30%  { transform: translate(var(--px), calc(var(--py) - 18px))  rotate(1deg); }
  60%  { transform: translate(var(--px), calc(var(--py) - 8px))   rotate(-0.5deg); }
  100% { transform: translate(var(--px), calc(var(--py) + 0px))   rotate(0deg); }
}

.hero-col-left .hero-label {
  justify-content: flex-start;
}

.hero-col-left h1 {
  text-align: left;
}

.hero-col-left .hero-sub {
  align-items: flex-start;
}

.hero-col-left .hero-body {
  text-align: left;
}

.hero-col-left .hero-links {
  justify-content: flex-start;
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-label-slash { color: var(--color-brand); font-weight: 700; }

/* Hero H1 — overrides global h1 scale */
#hero h1 {
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--color-white);
  margin-bottom: 2.5rem;
}

/* Split reveal for hero — triggered by body.loaded */
.split-mask  { overflow: hidden; display: block; }
.split-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1.5s var(--ease-reveal);
}

.split-mask:nth-child(2) .split-inner { transition-delay: 0.06s; }
body.loaded .split-inner { transform: translateY(0); }

/* Hero subtext */
.hero-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease 0.55s, transform 0.8s var(--ease-expo-out) 0.55s;
}

body.loaded .hero-sub { opacity: 1; transform: translateY(0); }

.hero-body {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: rgba(238,238,238,0.6);
  max-width: 400px;
}

.hero-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-top: 0.1em;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 0;
  /* Secondary: white keyline on dark hero bg */
  background: transparent;
  color: #eeeeee;
  border: 1px solid rgba(238,238,238,0.5);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-link:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

/* Primary: solid white fill on dark hero bg */
.hero-link.primary {
  background: #eeeeee;
  color: #141314;
  border-color: #eeeeee;
}

.hero-link.primary:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem; right: 2rem;
  z-index: 2;
  writing-mode: vertical-lr;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.6s ease 1.1s;
}

body.loaded .scroll-hint { opacity: 1; }

/* Hero client logos strip */
.hero-clients {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 100px;
  opacity: 0;
  transition: opacity 0.8s ease 1.2s;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3.5rem;
  flex-wrap: nowrap;
}

body.loaded .hero-clients { opacity: 1; }

.hero-clients-label {
  font-family: var(--mono);
  font-size: clamp(0.71rem, 1.05vw, 0.86rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238,238,238,0.3);
  line-height: 1.6;
  flex-shrink: 0;
}

.hero-clients-logos {
  display: contents;
}

.hero-client-logo {
  height: 60px;
  width: auto;
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

.hero-client-logo:hover { opacity: 0.8; }

.scroll-hint::before {
  content: '';
  display: block;
  width: 1px; height: 36px;
  background: var(--color-muted);
  transform-origin: top;
  animation: scrollLine 2.5s ease-in-out infinite 1.5s;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0.25; }
}


/* ============================================================
   STATS SECTION
   ============================================================ */
/* Stats section — cards bleed to section edges, no container side padding */
#stats {
  padding-bottom: 50px;
  padding-left: 100px;
  padding-right: 100px;
}

#stats .container {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  background: #eeeeee;
}

/* Image column */
.stat-image-col {
  background: #ffffff;
  overflow: hidden;
}

.stat-image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #d8d6d3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
}

/* If a real img is placed inside, make it cover the placeholder */
.stat-image-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stat-image-placeholder-label {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(20, 19, 20, 0.45);
  padding: 0.75rem;
  line-height: 1;
  /* hide once a real image is supplied */
}

.stat-image-placeholder:has(img) .stat-image-placeholder-label {
  display: none;
}

.stat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 3rem 2rem 2.5rem 2rem;
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.45s var(--ease-expo-out), box-shadow 0.45s ease;
}

.stat-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-expo-out);
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.stat-item:hover::after {
  transform: scaleX(1);
}

.stat-number {
  display: flex;
  align-items: baseline;
  font-family: var(--heading);
  font-size: clamp(2.5rem, 4.5vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--color-fg);
  margin-bottom: auto; /* spacer: pushes label + ticker to bottom */
  padding-bottom: 2.5rem;
}

.stat-suffix {
  display: inline-block;
  vertical-align: baseline;
  letter-spacing: 0;
  margin-left: 0.05em;
}

.stat-label {
  font-family: var(--heading);
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.4;
  color: var(--color-fg-muted);
  cursor: default;
  transition: color 0.3s ease;
}


/* ============================================================
   PROCESS SECTION
   ============================================================ */
#process {
  padding: 50px 100px 100px;
}

#process .container {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}

.process-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0;
  padding-bottom: 4rem;
}

.process-intro {
  max-width: 360px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-fg-muted);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  background: #eeeeee;
}

.process-step {
  position: relative;
  padding: 3rem 2rem 2.5rem 2rem;
  background: #ffffff;
  transition: transform 0.45s var(--ease-expo-out), box-shadow 0.45s ease;
}

/* Top accent line sweeps in on hover */
.process-step::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-expo-out);
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.process-step:hover::after {
  transform: scaleX(1);
}

.process-step:hover .step-number,
.process-step:hover .step-title {
  color: var(--color-brand);
}

.process-step:nth-child(1).is-visible .split-line { transition-delay: 0s; }
.process-step:nth-child(2).is-visible .split-line { transition-delay: 0.1s; }
.process-step:nth-child(3).is-visible .split-line { transition-delay: 0.2s; }
.process-step:nth-child(4).is-visible .split-line { transition-delay: 0.3s; }

.step-number {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #696869;
  display: block;
  margin-bottom: 2.5rem;
  transition: color 0.3s ease;
}

.step-title {
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.step-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-fg-muted);
}


/* ============================================================
   WORK / PROJECTS SECTION
   ============================================================ */

/* ── Layout visibility toggles ── */
.work-desktop { display: none; }
.work-mobile  { display: block; }

@media (min-width: 1024px) {
  .work-desktop { display: block; }
  .work-mobile  { display: none; }
}

/* ── Desktop: two-column grid (sidebar | cards) ── */
.work-desktop-inner {
  position: relative; /* needed for position:absolute bottom-boundary state in JS */
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 0 5rem;
  align-items: start;
  padding-top: 100px;
  padding-bottom: 100px;
}

/* ── Sidebar — JS handles fixed positioning via initWorkSidebarFixed() ── */
.work-sidebar {
  grid-column: 1; /* lock to col 1 so cards don't shift when sidebar is position:fixed */
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-sidebar-top .section-label { margin-bottom: 1.25rem; }

/* Split heading inside sidebar */
.work-sidebar-heading {
  margin-bottom: 32px;
}

.work-sidebar-heading .split-line {
  font-size: clamp(3.5rem, 4.5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.work-sidebar-tagline {
  font-size: 0.875rem;
  color: rgba(238, 238, 238, 0.55);
  line-height: 1.7;
  max-width: 240px;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.work-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 0;
  background: #eeeeee;
  color: #141314;
  border: 1px solid #eeeeee;
  align-self: flex-start;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.work-view-all:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

/* ── Dot navigation ── */
.work-dot-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.work-dot-btn {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  color: rgba(238, 238, 238, 0.3);
  transition: color 0.3s ease;
  text-align: left;
}

.work-dot-btn-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-quart), background 0.3s ease;
}

.work-dot-btn-label {
  font-family: var(--mono);
  font-size: calc(0.65rem + 6px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.work-dot-btn:hover { color: rgba(238, 238, 238, 0.65); }

.work-dot-btn.is-active {
  color: var(--color-brand);
}

.work-dot-btn.is-active .work-dot-btn-dot {
  transform: scale(1.8);
}

/* ── Scrollable cards column ── */
.work-cards {
  grid-column: 2; /* lock to col 2 so it stays right even when sidebar is position:fixed */
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding-bottom: 2rem;
}

/* ── Shared card styles (desktop + mobile) ── */
.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.work-card-media {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #1a1a1a;
  margin-bottom: 1.5rem;
}

.work-card-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out-quart), filter 0.4s ease;
  filter: brightness(0.88);
}

.work-card:hover .work-card-media img {
  transform: scale(1.04);
  filter: brightness(1);
}

.work-card-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.work-card-index {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #696869;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  gap: 0;
}

.work-card-year {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: #696869;
}

.project-tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  color: #696869;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.work-card:hover .project-tag { color: rgba(61, 59, 255, 0.65); }
.project-tag::before { content: '['; }
.project-tag::after  { content: ']'; }
.project-tag + .project-tag::before { content: '\2014['; }

.work-card-title {
  font-size: clamp(1.5rem, 2.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  transition: color 0.3s ease;
  margin-bottom: 0.5rem;
}

.work-card:hover .work-card-title { color: var(--color-brand); }

.work-card-desc {
  font-size: 0.875rem;
  color: rgba(238, 238, 238, 0.5);
  line-height: 1.65;
  max-width: 480px;
}

/* ── Override: section handles its own padding per layout variant ── */
#work.section { padding: 0; }

.work-mobile { padding: 100px 0; }

/* ── Mobile layout ── */
.work-mobile-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}

.work-mobile-header .section-label  { margin-bottom: 1rem; }
.work-mobile-header .work-view-all  { margin-top: 1.5rem; }

.work-mobile-header .split-line {
  font-size: clamp(2.5rem, 8vw, 4rem);
}

.work-cards-mobile {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}


/* ============================================================
   SERVICES / ACCORDION SECTION
   ============================================================ */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.services-intro {
  max-width: 360px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-fg-muted);
}

.accordion-list { border-top: 1px solid var(--color-border); }
.accordion-item {
  border-bottom: 1px solid var(--color-border);
  transition: opacity 0.35s ease;
}
.accordion-item.is-dimmed { opacity: 0.3; }

.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 2rem 0;
  text-align: left;
  transition: color 0.2s ease;
}

.accordion-trigger:hover { color: var(--color-brand); }

.accordion-trigger-text {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.accordion-icon {
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 2rem;
  transition: transform 0.4s var(--ease-in-out-quart), color 0.2s ease;
}

.accordion-item.is-open .accordion-icon { transform: rotate(45deg); }
.accordion-item.is-open .accordion-trigger { color: var(--color-brand); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 0, .2, 1);
}

.accordion-body-inner {
  padding-bottom: 2.5rem;
  max-width: 640px;
}

.accordion-body-heading {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-fg);
  margin: 0 0 1rem;
}

.accordion-body-inner p {
  font-size: 16pt;
  line-height: 1.65;
  color: var(--color-fg-muted);
}

.accordion-body-inner p + p {
  margin-top: 1em;
}

/* ── Services cursor-following preview ── */
.work-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
}

.work-preview.is-visible { opacity: 1; }

.work-preview-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #333;
  overflow: hidden;
}

.work-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gutter);
  align-items: stretch;
}

.about-text { padding-right: 4rem; }
.about-heading { margin-bottom: 3rem; }

#about-morph-word {
  color: var(--color-brand);
  font-weight: 700;
  display: inline-block;
}
.about-body { margin-bottom: 3rem; }

.about-body p {
  font-size: clamp(1rem, 1.125vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-fg-muted);
  margin-bottom: 1.5rem;
}

.about-body p:last-child { margin-bottom: 0; }

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background: #eeeeee;
  color: #141314;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  margin-top: 2.5rem;
  border: 1px solid #eeeeee;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.about-cta-btn:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.about-portrait {
  overflow: hidden;
  align-self: stretch;
  position: relative;
}

.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}


/* ============================================================
   CONTACT SECTION
   ============================================================ */

/* Full-viewport height — container handles internal spacing */
#contact.section {
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#contact .container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
  gap: 2.5rem;
}

.contact-heading { margin-bottom: 2rem; }

/* Scaled down from 7.5rem — keeps it balanced within 100vh */
.contact-heading h2 {
  font-size: clamp(2rem, 4.5vw, 5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.contact-body {
  max-width: 420px;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.5;
  color: #696869;
  margin-bottom: 1.75rem;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #696869;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  padding-bottom: 2px;
  margin-bottom: 2rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.contact-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Rectangular CTA buttons */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-btn--primary {
  background: #141314;
  color: #eeeeee;
  border: 1px solid #141314;
}

.contact-btn--primary:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.contact-btn--secondary {
  background: transparent;
  color: #141314;
  border: 1px solid #141314;
}

.contact-btn--secondary:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}


/* ============================================================
   CONTACT — 2-column grid
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ---- Calendar card ---- */
.contact-right {}

.cal-card {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 1.5rem;
  padding: 1.25rem;
  background: #ffffff;
  display: grid;
  gap: 1rem;
  transition: border-color 0.25s ease;
}

.cal-card:hover { border-color: #6366f1; }

.cal-card-title {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #141314;
  margin-bottom: 0.4rem;
}

.cal-card-sub {
  font-size: 0.875rem;
  color: #696869;
  margin-bottom: 1.1rem;
}

.cal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #141314;
  color: #eeeeee;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 0;
  border: 1px solid #141314;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cal-btn:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.cal-widget-outer {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 1.5rem;
  padding: 0.5rem;
  transition: border-color 0.25s ease;
}

.cal-card:hover .cal-widget-outer { border-color: #6366f1; }

.cal-widget-inner {
  border: 2px solid rgba(165,174,184,0.12);
  border-radius: 1rem;
  padding: 0.75rem 0.625rem;
  box-shadow: inset 0px 2px 1.5px 0px rgba(165,174,184,0.32);
}

.cal-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.625rem;
}

.cal-month-year { font-weight: 600; color: #141314; }
.cal-sep        { color: #c0c0c0; }
.cal-duration   { font-size: 0.75rem; color: #696869; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem 0.375rem;
}

.cal-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #696869;
}

.cal-cell--header {
  border-radius: 0;
  height: 1.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: #a0a0a0;
}

.cal-cell--highlight {
  background: #6366f1;
  color: #fff;
}

.cal-cell--today {
  background: var(--color-brand);
  color: #fff;
  font-weight: 700;
}

@media (max-width: 900px) {
  #contact.section    { min-height: unset; }
  #contact .container { min-height: unset; padding-top: 4rem; padding-bottom: 4rem; }
  .contact-grid       { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-ctas       { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}


/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #f2f2f2;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-newsletter-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  min-width: 320px;
}

.footer-email-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #eeeeee;
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.75rem 0;
}

.footer-email-input::placeholder {
  color: #696869;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.6875rem;
}

.footer-subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eeeeee;
  background: transparent;
  border: 1px solid rgba(238,238,238,0.35);
  border-radius: 0;
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-subscribe-btn:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.footer-status {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #696869;
}

.footer-marquee-wrap {
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 0;
}

.footer-marquee {
  display: flex;
  width: max-content;
  animation: scrollLeft 28s linear infinite;
}

.footer-marquee span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #696869;
  white-space: nowrap;
  padding: 0 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
}
.footer-logo img {
  height: 44px;
  width: auto;
  display: block;
  opacity: 0.9;
}

.footer-copyright { font-size: 0.75rem; color: #696869; }

.footer-hint {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #696869;
}

/* ── Footer 4-column grid ─────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(12, 10, 24, 0.12);
}

.footer-brand .footer-logo { margin-bottom: 1.5rem; }

.footer-tagline {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.85;
  color: rgba(12, 10, 24, 0.45);
  margin-bottom: 1.75rem;
}

.footer-col-label {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3D3BFF;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-nav-list a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: rgba(12, 10, 24, 0.45);
  transition: color 0.2s ease;
}

.footer-nav-list a:hover { color: #0C0A18; }


/* ============================================================
   SHARED KEYFRAMES
   ============================================================ */
@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(var(--marquee-offset, -50%)); }
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }


/* ============================================================
   RESPONSIVE — Tablet  768–1023px
   ============================================================ */
@media (max-width: 1023px) {
  :root {
    --section-padding: 80px;
    --grid-gutter:     1.5rem;
    --grid-margin:     1.5rem;
  }

  .process-steps { grid-template-columns: repeat(2, 1fr); }

  .about-grid     { grid-template-columns: 1fr; }
  .about-text     { padding-right: 0; }
  .about-portrait { max-width: 480px; margin-top: 3rem; min-height: 400px; }

  .work-desktop-inner { grid-template-columns: 32% 1fr; gap: 0 3rem; }
  .stats-grid   { grid-template-columns: repeat(4, 1fr); }
}


/* ============================================================
   RESPONSIVE — Mobile  < 768px
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --section-padding: 60px;
    --grid-gutter:     1rem;
    --grid-margin:     1rem;
    --nav-h:           72px;
    --header-height:   72px;
  }

  /* Nav */
  .nav-row                     { padding-left: 1.5rem; padding-right: 1.5rem; }
  header.is-scrolled .nav-row  { padding-left: 1.5rem; padding-right: 1.5rem; }
  /* Keep nav-center visible so the hamburger/menu button is reachable on mobile */
  .nav-center {
    position: static;
    transform: none;
    margin-left: auto;
    margin-right: 0.5rem;
  }
  .nav-plus   { display: none; }
  .nav-cta    { display: none; }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    padding: 1.25rem 1.25rem 3rem;
  }
  .hero-col-right { display: none; }
  .hero-sub       { flex-direction: column; gap: 1.5rem; }
  .scroll-hint    { display: none; }

  /* Overlay */
  .overlay-link { font-size: clamp(1.8rem, 9vw, 2.8rem); }
  .overlay-foot { flex-direction: column; align-items: flex-start; }

  /* Stats */
  .stats-grid     { grid-template-columns: 1fr; gap: 2px; }
  .stat-image-placeholder { aspect-ratio: 4 / 3; }
  .stat-item      { padding: 2rem 1.5rem 2rem; min-height: 260px; }

  /* Process */
  .process-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .process-intro  { max-width: 100%; }
  .process-steps  { grid-template-columns: 1fr; gap: 2px; }
  .process-step   { padding: 2.5rem 1.5rem; }

  /* Work (mobile layout shown, desktop hidden — handled by .work-desktop/.work-mobile) */
  .work-card-desc { display: none; }

  /* Services */
  .services-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .services-intro  { max-width: 100%; }

  /* Footer */
  .footer-top              { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .footer-newsletter-form  { min-width: 0; width: 100%; }
  .footer-grid             { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand            { grid-column: 1 / -1; }

  /* Contact */
  .contact-ctas { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
