/* ============================================
   ROGUE SCALING — styles.css
   ============================================ */

:root {
  --bg: #080808;
  --surface: #111111;
  --border: #1e1e1e;
  --accent: #3A7D44;
  --accent-hover: #4a9456;
  --accent-dim: rgba(58, 125, 68, 0.12);
  --text: #F0EDE8;
  --muted: #888580;
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 72px;
  --pad: 120px;
  --max: 1280px;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #080808; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.025em; }

/* Noise texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  transition: background 0.4s ease, border-bottom-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.96);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-mark {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.65));
}

.nav-wordmark {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
  align-self: flex-end;
  padding-bottom: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  margin-right: 36px;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: rgba(240, 237, 232, 0.55);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

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

.nav-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, gap 0.2s;
  flex-shrink: 0;
}

.nav-cta:hover { background: var(--accent-hover); gap: 14px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background-image: url('../hero.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.25rem, 8.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-line { display: block; overflow: hidden; }

.hero-line-inner {
  display: block;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(240, 237, 232, 0.65);
  max-width: 500px;
  margin-bottom: 44px;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-btn-wrap {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 16px 32px;
  transition: background 0.2s, gap 0.2s, transform 0.2s;
}

.hero-btn:hover { background: var(--accent-hover); gap: 20px; transform: translateY(-2px); }

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================
   MARQUEE STRIP
   ============================================ */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 24px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 24px;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   SHARED SECTION UTILITIES
   ============================================ */
.section-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
}

/* ============================================
   ACCORDION — SERVICES
   ============================================ */
.accordion-section {
  padding: var(--pad) 0;
  border-top: 1px solid var(--border);
}

.accordion-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 80px;
}

.accordion-section-header .sh { flex: 1; }

.accordion-section-count {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 8px;
}

.accordion-list { border-top: 1px solid var(--border); }

.accordion-item { border-bottom: 1px solid var(--border); }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  gap: 24px;
}

.accordion-trigger-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.accordion-num {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  min-width: 28px;
}

.accordion-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

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

.accordion-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.open .accordion-icon {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg);
}

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

.accordion-item.open .accordion-body { max-height: 260px; }

.accordion-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 48px;
  padding-left: 60px;
  max-width: 680px;
}

.accordion-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.accordion-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}

.accordion-item.open .accordion-img-bg { transform: scale(1.04); }

.accordion-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.accordion-text p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.8;
}

.accordion-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.2s;
  margin-top: 4px;
}

.accordion-link:hover { gap: 16px; }

/* Accordion image panel backgrounds */
.ab-web  { background: linear-gradient(135deg, #0a1f12 0%, #1a3a25 100%); }
.ab-ads  { background: linear-gradient(135deg, #0e1b10 0%, #162e1c 100%); }
.ab-soc  { background: linear-gradient(135deg, #091a0c 0%, #132a18 100%); }
.ab-auto { background: linear-gradient(135deg, #0b200f 0%, #183024 100%); }

.ab-web::after,
.ab-ads::after,
.ab-soc::after,
.ab-auto::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect width='60' height='60' fill='none'/%3E%3Ccircle cx='30' cy='30' r='1' fill='%233A7D44' opacity='0.15'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.cards-section {
  padding: var(--pad) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 80px;
}

.card {
  background: var(--surface);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  transition: background 0.3s;
}

.card:hover { background: #161616; }

.card-num {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

.card-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.card-arrow {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 36px;
  height: 36px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(8px, 8px);
  transition: opacity 0.25s, transform 0.25s;
}

.card:hover .card-arrow { opacity: 1; transform: translate(0, 0); }

/* ============================================
   OUR APPROACH
   ============================================ */
.approach-section {
  padding: var(--pad) 0;
  border-top: 1px solid var(--border);
}

.approach-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
}

.approach-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

.approach-cta:hover { gap: 16px; }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pillar {
  background: var(--bg);
  padding: 52px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 400px;
}

.pillar-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.55s ease;
  z-index: 0;
}

.pillar-revenue .pillar-bg   { background-image: url('../Table rock.jpg'); }
.pillar-efficiency .pillar-bg { background-image: url('../Vinyard.jpg'); }
.pillar-relevance .pillar-bg  { background-image: url('../Crater Lake.jpg'); }

.pillar-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.72);
}

.pillar:hover .pillar-bg { opacity: 1; }

.pillar-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.pillar-num {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.pillar-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  letter-spacing: -0.025em;
  color: var(--text);
}

.pillar-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
  transition: gap 0.2s;
}

.pillar:hover .pillar-link { gap: 16px; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-section {
  padding: var(--pad) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 80px;
}

.step {
  background: var(--surface);
  padding: 52px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color 0.3s ease;
}

.step:hover .step-title { color: var(--accent); }

.step-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  padding: 120px var(--gutter);
  background: var(--accent);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.cta-band-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: #fff;
  padding: 16px 40px;
  transition: background 0.2s, gap 0.2s, transform 0.2s;
  position: relative;
  z-index: 1;
}

.cta-band-btn:hover { background: var(--text); gap: 20px; transform: translateY(-2px); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-main {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

.footer-logo-mark {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.footer-wordmark {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
  align-self: flex-end;
  padding-bottom: 2px;
}

.footer-brand p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-email {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--accent);
  transition: opacity 0.2s;
}

.footer-email:hover { opacity: 0.75; }

.footer-col-head {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a, .footer-social-list a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: rgba(136, 133, 128, 0.8);
  transition: color 0.2s;
}

.footer-links-list a:hover, .footer-social-list a:hover { color: var(--text); }

.footer-social-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-bottom span, .footer-bottom a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-bottom a { color: var(--accent); transition: opacity 0.2s; }
.footer-bottom a:hover { opacity: 0.75; }

/* ============================================
   HAMBURGER & MOBILE MENU
   ============================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  margin-left: 12px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 600;
  position: relative;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Two bars collapse into one */
.nav-hamburger.open span:nth-child(1) { transform: translateY(3.5px); }
.nav-hamburger.open span:nth-child(2) { transform: translateY(-3.5px); }

.mobile-menu {
  position: fixed;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 490;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  max-height: 400px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0 24px;
}

.mobile-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
  display: block;
}

.mobile-nav a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav-cta {
  color: var(--accent) !important;
  font-weight: 700 !important;
  border-bottom: none !important;
  margin-top: 8px;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
  border: none;
  cursor: pointer;
}

.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--accent-hover); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  align-items: start;
}

.contact-left {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: calc(var(--nav-h) + 80px) var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.contact-right {
  padding: calc(var(--nav-h) + 64px) var(--gutter) 80px;
}

.contact-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 24px;
}

.contact-headline em {
  font-style: normal;
  color: var(--accent);
}

.contact-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 360px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: auto;
}

.contact-detail a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--accent);
  transition: opacity 0.2s;
}

.contact-detail a:hover { opacity: 0.75; }

.contact-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ============================================
   FORM
   ============================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 40px;
  transition: color 0.2s;
}

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

.form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.fg {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fg.full { grid-column: 1 / -1; }

label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  padding: 13px 16px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  transition: border-color 0.2s, background 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: #0f0f0f;
}

input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.5; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888580' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}

select option { background: #111; }

textarea { resize: vertical; min-height: 112px; }

.cond {
  display: none;
  grid-column: 1 / -1;
  flex-direction: column;
  gap: 8px;
}

.cond.shown { display: flex; }

.cond-platforms {
  display: none;
  grid-column: 1 / -1;
  flex-direction: column;
  gap: 12px;
}

.cond-platforms.shown { display: flex; }

.platforms-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.platform-handles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

@media (max-width: 600px) {
  .platform-handles { grid-template-columns: 1fr; }
}

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 18px 40px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, gap 0.2s, transform 0.2s;
  margin-top: 8px;
}

.form-submit:hover { background: var(--accent-hover); gap: 20px; transform: translateY(-1px); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================
   SUCCESS STATE
   ============================================ */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 80px 40px;
}

.form-success.shown { display: flex; }

.success-icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.success-h {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.success-p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 360px;
}

.success-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
  transition: gap 0.2s;
}

.success-back:hover { gap: 16px; }

/* ============================================
   CUSTOM SELECT
   ============================================ */
.cs-wrap {
  position: relative;
}

.cs-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 13px 16px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.cs-trigger:hover,
.cs-wrap.cs-open .cs-trigger {
  border-color: var(--accent);
  background: #0f0f0f;
}

.cs-value {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--text);
  flex: 1;
}

.cs-value.cs-placeholder { color: rgba(136, 133, 128, 0.5); }

.cs-chevron {
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-wrap.cs-open .cs-chevron { transform: rotate(180deg); }

.cs-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  background: #131313;
  border: 1px solid var(--border);
  border-top: none;
  z-index: 200;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease;
}

.cs-wrap.cs-open .cs-dropdown {
  max-height: 280px;
  opacity: 1;
  overflow-y: auto;
}

.cs-option {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: rgba(136, 133, 128, 0.85);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  border-bottom: 1px solid var(--border);
}

.cs-option:last-child { border-bottom: none; }

.cs-option:hover {
  background: #1a1a1a;
  color: var(--text);
  padding-left: 20px;
}

.cs-option.cs-selected { color: var(--accent); }

.cs-invalid .cs-trigger { border-color: #c0392b; }

.cs-error-msg {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 4px;
  display: none;
}

.cs-invalid .cs-error-msg { display: block; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  :root { --pad: 80px; --gutter: 36px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .accordion-inner { grid-template-columns: 1fr; padding-left: 0; gap: 32px; }
  .accordion-item.open .accordion-body { max-height: 900px; }
}

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .pillar { min-height: 320px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-left { position: static; height: auto; padding: calc(var(--nav-h) + 48px) var(--gutter) 48px; }
  .contact-right { padding-top: 48px; }
}

@media (max-width: 768px) {
  :root { --pad: 64px; --gutter: 24px; }

  .nav-links { display: none; }
  .nav-wordmark { display: inline; font-size: 0.95rem; }
  .nav-logo-mark { height: 34px; filter: none; }
  .nav-logo { margin-right: auto; transform: translateY(-4px); }
  .nav-cta { padding: 7px 14px; font-size: 0.65rem; }
  .nav-hamburger { display: flex; margin-left: 14px; }
  /* Always transparent on mobile — no background at any scroll position */
  .nav, .nav.scrolled, .nav.menu-open {
    background: transparent !important;
    border-bottom-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Hero — use small viewport height to avoid browser chrome gap */
  .hero {
    height: 100svh;
    min-height: 100vh;
  }
  .hero-content { padding-bottom: 64px; }
  .hero-headline { font-size: clamp(2.5rem, 10vw, 4rem); }

  /* Layout */
  .cards-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .fg.full, .form-submit, .cond, .cond-platforms { grid-column: 1; }
  .accordion-section-header { flex-direction: column; gap: 24px; }
  .approach-section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .how-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Status bar fill — always black behind iOS safe area */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top);
  background: #080808;
  z-index: 9998;
  pointer-events: none;
}

/* iOS Safari only — fixed backgrounds don't work there */
@supports (-webkit-touch-callout: none) {
  .hero { background-attachment: scroll; }
}
