/* ======================================================
   GR TECH — Shared Stylesheet
   Palette: Warm Cream (#F5F0E8) base + Dark (#1A1613) panels
            Antique Gold (#BF8C2C) accent
====================================================== */

/* ——————————————————————————————————
   1. CSS CUSTOM PROPERTIES
—————————————————————————————————— */
:root {
  /* Base — warm cream */
  --cream:          #F5F0E8;
  --cream-alt:      #EDE7DC;
  --cream-card:     #E8E2D5;
  --cream-deep:     #DDD7C8;

  /* Dark panels */
  --dark:           #1A1613;
  --dark-alt:       #221E18;
  --dark-card:      #2C2720;
  --dark-elevated:  #332E26;

  /* Accent — antique gold / brass */
  --gold:           #BF8C2C;
  --gold-light:     #D9A640;
  --gold-dim:       #8C6520;
  --gold-muted:     rgba(191, 140, 44, 0.12);
  --gold-glow:      rgba(191, 140, 44, 0.22);

  /* Text on light */
  --text:           #1A1613;
  --text-mid:       #5A5148;
  --text-mute:      #9A9188;

  /* Text on dark */
  --text-inv:       #E8E2D3;
  --text-inv-mid:   #8A8278;
  --text-inv-mute:  #5A5448;

  /* Borders */
  --border-lt:      rgba(26, 22, 19, 0.1);
  --border-lt-str:  rgba(26, 22, 19, 0.18);
  --border-dk:      rgba(255, 248, 220, 0.07);
  --border-dk-str:  rgba(255, 248, 220, 0.13);
  --border-gold:    rgba(191, 140, 44, 0.32);

  /* Typography */
  --font-display: 'DM Serif Display', serif;
  --font-mono:    'IBM Plex Mono', monospace;
  --font-body:    'DM Sans', sans-serif;

  /* Layout */
  --nav-height:   90px;
  --max-width:    1240px;
  --pad-x:        clamp(20px, 5vw, 64px);
  --section-pad:  clamp(80px, 10vw, 140px);

  /* Dark deep — footer only */
  --dark-deep:      #0F0D0B;

  /* Radius */
  --radius-xs:    2px;
  --radius:       3px;
  --radius-lg:    6px;
  --radius-pill:  999px;

  /* Shadows */
  --shadow-lt-sm:  0 8px 28px rgba(26, 22, 19, 0.10);
  --shadow-lt-md:  0 12px 40px rgba(26, 22, 19, 0.10);
  --shadow-lt-lg:  0 20px 56px rgba(26, 22, 19, 0.12);
  --shadow-dk-sm:  0 8px 28px rgba(0, 0, 0, 0.20);
  --shadow-dk-md:  0 16px 48px rgba(0, 0, 0, 0.25);
  --shadow-gold:   0 8px 28px rgba(191, 140, 44, 0.28);

  /* Motion */
  --ease:         220ms ease;
  --ease-slow:    420ms ease;
}

/* ——————————————————————————————————
   2. RESET & BASE
—————————————————————————————————— */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise grain on dark sections */
.panel-dark::before,
.panel-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: screen;
}

/* Noise grain on light sections */
.panel-light::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: multiply;
}

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

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

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

ul { list-style: none; }

/* ——————————————————————————————————
   3. SECTION PANEL CLASSES
—————————————————————————————————— */
.panel-dark {
  background: var(--dark);
  color: var(--text-inv);
  position: relative;
}

.panel-dark-alt {
  background: var(--dark-alt);
  color: var(--text-inv);
  position: relative;
}

.panel-light {
  background: var(--cream);
  color: var(--text);
  position: relative;
}

.panel-light-alt {
  background: var(--cream-alt);
  color: var(--text);
  position: relative;
}

.panel-hero {
  background: var(--dark);
  color: var(--text-inv);
  position: relative;
  overflow: hidden;
}

/* ——————————————————————————————————
   4. TYPOGRAPHY UTILITIES
—————————————————————————————————— */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(52px, 7.5vw, 100px);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.label-gold {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.eyebrow-inv {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-inv-mute);
}

.body-lg {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.78;
}

.body-md {
  font-size: 15px;
  line-height: 1.72;
}

.text-mid { color: var(--text-mid); }
.text-mute { color: var(--text-mute); }
.text-inv-mid { color: var(--text-inv-mid); }
.text-inv-mute { color: var(--text-inv-mute); }
.text-gold { color: var(--gold); }
.text-inv { color: var(--text-inv); }

/* ——————————————————————————————————
   5. LAYOUT
—————————————————————————————————— */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-pad { padding: var(--section-pad) 0; }

.section-pad-sm { padding: clamp(48px, 6vw, 80px) 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.grid-2-asym {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ——————————————————————————————————
   6. ANIMATION SYSTEM
—————————————————————————————————— */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.85s ease;
}

.fade-in.visible { opacity: 1; }

.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 120ms; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 240ms; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 360ms; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 480ms; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 600ms; }

/* ——————————————————————————————————
   7. BUTTONS
—————————————————————————————————— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  border-radius: var(--radius);
  transition: all var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

/* Primary — gold fill */
.btn-gold {
  background: var(--gold);
  color: #1A1613;
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(191, 140, 44, 0.28);
}

/* Outline on dark bg */
.btn-outline-dark {
  background: transparent;
  color: var(--text-inv);
  border: 1px solid var(--border-dk-str);
}
.btn-outline-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Outline on light bg */
.btn-outline-lt {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-lt-str);
}
.btn-outline-lt:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Dark fill (on light sections) */
.btn-dark {
  background: var(--dark);
  color: var(--text-inv);
  border: 1px solid var(--dark);
}
.btn-dark:hover {
  background: var(--dark-alt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,22,19,0.2);
}

/* Nav CTA */
.btn-nav {
  padding: 9px 18px;
  font-size: 11px;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  background: transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  letter-spacing: 0.09em;
  transition: all var(--ease);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-nav:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* ——————————————————————————————————
   8. NAVIGATION
—————————————————————————————————— */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(26, 22, 19, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* When nav is over light content */
#nav.light-mode {
  background: rgba(245, 240, 232, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border-lt);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.02em;
  color: var(--text-inv);
  transition: color var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Logo image — white on transparent; invert on cream nav */
.nav-logo img.nav-logo-mark {
  display: block;
  height: 10px;
  width: auto;
}

.footer-logo img {
  display: block;
  height: 40px;
  width: auto;
  transition: filter var(--ease);
}

#nav.light-mode .nav-logo img.nav-logo-mark {
  filter: invert(1) brightness(0.15);
}

.nav-logo img.nav-logo-mark {
  transition: filter 0.4s ease;
}

#nav.light-mode .nav-logo {
  color: var(--text);
}

.nav-logo-mark {
  flex-shrink: 0;
  color: inherit;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(232, 226, 211, 0.7);
  transition: color var(--ease);
  position: relative;
}

#nav.light-mode .nav-links a {
  color: var(--text-mid);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-inv);
}

#nav.light-mode .nav-links a:hover,
#nav.light-mode .nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-inv);
  transition: all 0.3s ease;
  transform-origin: center;
}

#nav.light-mode .hamburger span {
  background: var(--text);
}

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 50px);
  color: var(--text-inv-mid);
  transition: color 0.2s ease;
}

.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .btn { margin-top: 8px; }

/* ——————————————————————————————————
   9. SECTION HEADER COMPONENT
—————————————————————————————————— */
.section-header {
  margin-bottom: 56px;
}

.section-header .label-gold,
.section-header .eyebrow,
.section-header .eyebrow-inv {
  display: block;
  margin-bottom: 14px;
}

.rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 20px;
  opacity: 0.8;
}

.section-header h2 { margin-bottom: 16px; }

/* ——————————————————————————————————
   10. PAGE HERO (inner pages)
—————————————————————————————————— */
.page-hero {
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-height);
  padding-bottom: clamp(48px, 7vw, 100px);
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 86px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text-inv);
  margin-bottom: 20px;
  max-width: 820px;
}

.page-hero p {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  color: var(--text-inv-mid);
  max-width: 560px;
}

/* Geometric hero decoration */
.hero-geo-wrap {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  overflow: hidden;
  pointer-events: none;
}

/* ——————————————————————————————————
   11. VALUE / STAT CARDS (Light bg)
—————————————————————————————————— */
.val-card {
  background: var(--cream-card);
  border: 1px solid var(--border-lt);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  transition: all var(--ease-slow);
  position: relative;
  overflow: hidden;
}

.val-card:hover {
  border-top-color: var(--gold-light);
  box-shadow: 0 8px 40px rgba(26, 22, 19, 0.1);
  transform: translateY(-4px);
}

.val-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--gold);
}

.val-card h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--text);
  margin-bottom: 10px;
}

.val-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
}

/* ——————————————————————————————————
   12. STAT BAR (Dark bg)
—————————————————————————————————— */
.stat-bar {
  border-top: 1px solid var(--border-dk);
  border-bottom: 1px solid var(--border-dk);
}

.stat-bar-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 40px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  padding: 0 20px;
  border-right: 1px solid var(--border-dk);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-inv-mute);
}

/* ——————————————————————————————————
   13. SERVICE CARDS (Dark bg)
—————————————————————————————————— */
.svc-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dk);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--ease-slow);
  position: relative;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--ease);
}

.svc-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.svc-card:hover::before { opacity: 1; }

.svc-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 24px;
}

.svc-tag {
  display: block;
  margin-bottom: 12px;
}

.svc-card h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  color: var(--text-inv);
  margin-bottom: 14px;
}

.svc-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-inv-mid);
  margin-bottom: 22px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--border-dk-str);
  border-radius: 2px;
  color: var(--text-inv-mute);
  letter-spacing: 0.05em;
}

/* ——————————————————————————————————
   14. PROJECT CARDS (Light bg)
—————————————————————————————————— */
.proj-card {
  background: var(--cream-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.proj-card:hover {
  border-color: var(--border-lt-str);
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(26,22,19,0.12);
}

.proj-visual {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.proj-accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.proj-body {
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.proj-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.proj-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.proj-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
  flex: 1;
  margin-bottom: 18px;
}

.proj-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border: 1px solid var(--border-lt-str);
  border-radius: 2px;
  color: var(--text-mute);
  display: inline-block;
  align-self: flex-start;
}

/* ——————————————————————————————————
   15. PARTNERSHIP MODEL
—————————————————————————————————— */
.partnership-vert-label {
  position: absolute;
  left: clamp(10px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-inv-mute);
  white-space: nowrap;
  pointer-events: none;
}

.partnership-big {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-inv);
}

.partnership-big .gd { color: var(--gold); display: block; }
.partnership-big .dm { color: var(--text-inv-mute); font-size: 0.52em; display: block; letter-spacing: -0.01em; font-style: italic; }

/* Steps */
.steps {
  display: flex;
  align-items: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  background: rgba(191,140,44,0.07);
  flex-shrink: 0;
}

.step-txt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-inv-mute);
  text-align: center;
  white-space: nowrap;
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border-gold);
  opacity: 0.5;
  position: relative;
  top: -10px;
}

/* ——————————————————————————————————
   16. ABOUT SECTION
—————————————————————————————————— */
.about-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 200px);
  color: var(--text);
  opacity: 0.025;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.05em;
}

.about-watermark-inv {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 200px);
  color: var(--text-inv);
  opacity: 0.03;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.05em;
}

.philosophy-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  color: var(--gold);
  background: var(--gold-muted);
}

.philosophy-pill-lt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border: 1px solid var(--border-lt-str);
  border-radius: 2px;
  color: var(--text-mid);
  background: var(--cream-deep);
}

/* ——————————————————————————————————
   17. CONTACT FORM
—————————————————————————————————— */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-mid);
}

.form-label-inv {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-inv-mid);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--cream-card);
  border: 1px solid var(--border-lt-str);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A9188' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 140, 44, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-mute);
}

.btn-submit {
  width: 100%;
  padding: 15px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  background: var(--dark);
  color: var(--text-inv);
  border: 1px solid var(--dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--ease);
}

.btn-submit:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

.form-success {
  display: none;
  padding: 18px 20px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  background: var(--gold-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--gold);
  text-align: center;
}

/* ——————————————————————————————————
   18. FAQ ACCORDION
—————————————————————————————————— */
.faq-item {
  border-bottom: 1px solid var(--border-lt);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  gap: 20px;
  transition: color var(--ease);
}

.faq-q:hover { color: var(--gold); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--border-lt-str);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}

.faq-item.open .faq-icon {
  background: var(--gold);
  border-color: var(--gold);
}

.faq-icon svg { transition: transform 0.3s ease; }
.faq-item.open .faq-icon svg { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 300px;
}

.faq-a-inner {
  padding: 0 0 20px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-mid);
}

/* ——————————————————————————————————
   19. PROJECT FILTER
—————————————————————————————————— */
.filter-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 9px 18px;
  border: 1px solid var(--border-lt-str);
  border-radius: 2px;
  color: var(--text-mid);
  background: transparent;
  cursor: pointer;
  transition: all var(--ease);
}

.filter-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-tab.active {
  background: var(--dark);
  color: var(--text-inv);
  border-color: var(--dark);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proj-card.hidden {
  display: none;
}

/* ——————————————————————————————————
   20. CTA STRIP
—————————————————————————————————— */
.cta-strip {
  text-align: center;
  padding: clamp(60px, 8vw, 110px) 0;
  position: relative;
  overflow: hidden;
}

.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 58px);
  color: var(--text-inv);
  margin-bottom: 20px;
  line-height: 1.12;
}

.cta-strip p {
  font-size: 15px;
  color: var(--text-inv-mid);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.72;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ——————————————————————————————————
   21. PROCESS STEPS (Services page)
—————————————————————————————————— */
.process-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
  border-top: 1px solid var(--border-lt);
  transition: all var(--ease);
}

.process-step:last-child {
  border-bottom: 1px solid var(--border-lt);
}

.process-num {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--cream-deep);
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  transition: color var(--ease);
}

.process-step:hover .process-num {
  color: var(--gold);
}

.process-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text);
}

.process-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ——————————————————————————————————
   22. TECH STACK GRID
—————————————————————————————————— */
.tech-group h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-inv-mute);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-dk);
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-dk);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-inv-mid);
  letter-spacing: 0.03em;
}

.tech-item::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ——————————————————————————————————
   23. ENGAGEMENT MODELS
—————————————————————————————————— */
.engage-card {
  background: var(--cream-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--ease-slow);
}

.engage-card:hover {
  border-color: var(--border-lt-str);
  box-shadow: 0 12px 40px rgba(26,22,19,0.1);
  transform: translateY(-4px);
}

.engage-card.featured {
  background: var(--dark);
  border-color: var(--border-gold);
  color: var(--text-inv);
}

.engage-num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.engage-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
}

.engage-card.featured h3 { color: var(--text-inv); }

.engage-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
}

.engage-card.featured p { color: var(--text-inv-mid); }

/* ——————————————————————————————————
   24. FOOTER
—————————————————————————————————— */
#footer {
  background: #0F0D0B;
  border-top: 1px solid var(--gold);
  padding: 56px 0 36px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dk);
  margin-bottom: 32px;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-inv);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color var(--ease);
}

.footer-logo:hover { color: var(--gold); }

.footer-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-inv-mute);
  max-width: 260px;
  margin-top: 12px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-inv-mute);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-inv-mid);
  transition: color var(--ease);
}

.footer-col a:hover { color: var(--gold); }

.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--text-inv);
  opacity: 0.35;
  text-align: center;
  margin-bottom: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--text-inv-mute);
}

.footer-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--gold);
  opacity: 0.55;
}

/* ——————————————————————————————————
   25. SCROLL INDICATOR
—————————————————————————————————— */
.scroll-ind {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-ind-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-inv-mute);
}

.scroll-chevron {
  animation: chevronBounce 2.4s ease-in-out infinite;
}

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ——————————————————————————————————
   26. HOME-SPECIFIC HERO ELEMENTS
—————————————————————————————————— */
.home-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  padding-bottom: 80px;
}

.home-hero-content { position: relative; z-index: 1; }

.hero-mono-label { margin-bottom: 28px; }

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 98px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--text-inv);
  margin-bottom: 28px;
  max-width: 880px;
}

.hero-h1 .gd { color: var(--gold); }

.hero-sub {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.78;
  color: var(--text-inv-mid);
  max-width: 520px;
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero geometric art */
.hero-geo {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(380px, 48vw, 720px);
  height: clamp(380px, 48vw, 720px);
  opacity: 0.04;
  animation: geoRotate 90s linear infinite;
  pointer-events: none;
}

@keyframes geoRotate {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

/* ——————————————————————————————————
   27. ABOUT TEASER (Home)
—————————————————————————————————— */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-teaser-left {
  background: var(--dark);
  padding: clamp(60px, 8vw, 110px) clamp(32px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}

.about-teaser-right {
  background: var(--cream-alt);
  padding: clamp(60px, 8vw, 110px) clamp(32px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ——————————————————————————————————
   28. DECORATIVE ELEMENTS
—————————————————————————————————— */
.deco-line {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mid);
}

.deco-line::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
}

.deco-line-inv {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-inv-mid);
}

.deco-line-inv::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ——————————————————————————————————
   29. RESPONSIVE BREAKPOINTS
—————————————————————————————————— */

/* ── Large tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2-asym {
    gap: 48px;
  }

  .about-teaser {
    grid-template-columns: 1fr;
  }

  .about-teaser-left,
  .about-teaser-right {
    padding: 60px 40px;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
    --section-pad: 64px;
  }

  /* Nav: hide desktop links, show hamburger */
  .nav-links,
  .nav-right .btn-nav {
    display: none;
  }

  .hamburger {
    display: flex;
    padding: 6px;
  }

  /* Override inline height:70px on nav logo */
  .nav-logo img.nav-logo-mark {
    height: 44px !important;
  }

  /* Hide large decorative geo to prevent overflow */
  .hero-geo { display: none; }

  /* Hero: fill visible viewport height (svh = safe on iOS) */
  .home-hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  /* Grids: all single column */
  .grid-2,
  .grid-2-asym,
  .grid-3,
  .proj-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Override any inline gap values */
  .grid-2      { gap: 36px !important; }
  .grid-2-asym { gap: 28px !important; }

  /* Neutralise inline position:sticky on grid children */
  .grid-2-asym > * {
    position: relative !important;
    top: auto !important;
  }

  /* Stats: 2×2 grid */
  .stat-bar-inner {
    flex-wrap: wrap;
    gap: 0;
  }

  .stat-item {
    flex: 0 0 50%;
    border-right: none;
    border-bottom: 1px solid var(--border-dk);
    padding: 24px 12px;
  }

  .stat-item:nth-child(odd)             { border-right: 1px solid var(--border-dk); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4)               { border-bottom: none; }
  .stat-item:last-child                 { border-bottom: none; border-right: none; }

  /* Partnership */
  .partnership-vert-label { display: none; }
  .partnership-big        { font-size: clamp(44px, 12vw, 80px) !important; }

  /* Process steps: vertical layout */
  .steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .step-line {
    width: 1px;
    height: 28px;
    top: 0;
    margin-left: 20px;
  }

  .process-num { font-size: 40px; width: 44px; }

  /* CTA buttons: full width */
  .hero-ctas,
  .cta-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn,
  .cta-btns .btn {
    justify-content: center;
    text-align: center;
  }

  /* About decorative bracket clips on narrow screens */
  .about-bracket { display: none; }

  .about-teaser-left,
  .about-teaser-right {
    padding: 52px 24px;
  }

  /* Section headers: tighter on mobile */
  .section-header { margin-bottom: 40px; }

  /* Page hero (inner pages) */
  .page-hero { min-height: 42vh; }

  /* Project filter tabs */
  .filter-tabs { gap: 6px; }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* iOS: prevent auto-zoom on input focus (needs ≥16px) */
  .form-input,
  .form-select,
  .form-textarea,
  .form-input-inv,
  .form-select-inv,
  .form-textarea-inv {
    font-size: 16px;
  }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
  :root {
    --nav-height: 64px;
    --section-pad: 52px;
  }

  /* Further reduce logo on very small screens */
  .nav-logo img.nav-logo-mark {
    height: 36px !important;
  }

  /* Grid-4 to single column */
  .grid-4 { grid-template-columns: 1fr; }

  /* Stats: 1 per row */
  .stat-item {
    flex: 0 0 100%;
    border-right: none !important;
    border-bottom: 1px solid var(--border-dk) !important;
    padding: 20px 0;
  }
  .stat-item:last-child { border-bottom: none !important; }

  /* Prevent long words from overflowing headings */
  .display-xl,
  .display-lg,
  .display-md,
  .hero-h1,
  .cta-strip h2,
  .page-hero h1 {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Tighter section headers */
  .section-header { margin-bottom: 28px; }

  /* About teaser: tighter padding */
  .about-teaser-left,
  .about-teaser-right {
    padding: 48px 20px;
  }

  /* Process steps: tighter gap */
  .process-step { gap: 16px; }
}
