/* ============================================================
   JY Solutions — style.css
   Design System: Dark tech, construction-to-AI aesthetic
   ============================================================ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --jy-bg:          #090909;
  --jy-surface:     #111111;
  --jy-raised:      #1A1A1A;
  --jy-cyan:        #C9A84C;
  --jy-cyan-dim:    #A08030;
  --jy-cyan-glow:   rgba(201, 168, 76, 0.18);
  --jy-green:       #E8C87A;
  --jy-green-dim:   rgba(232, 200, 122, 0.14);
  --jy-white:       #F5F0E8;
  --jy-mid:         #857A6A;
  --jy-dim:         #3A3530;
  --jy-border:      rgba(201, 168, 76, 0.15);
  --jy-border-mid:  rgba(201, 168, 76, 0.32);

  --font-display:   'Barlow Condensed', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-mono:      'Space Mono', monospace;

  --container:      1200px;
  --section-v:      clamp(5rem, 10vw, 8rem);
  --radius:         6px;
  --radius-lg:      12px;
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --speed:          0.3s;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--jy-bg);
  color: var(--jy-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(3.5rem, 8vw, 7rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

p { color: var(--jy-mid); max-width: 60ch; }
p.lead { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--jy-white); opacity: 0.85; }

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jy-green);
  margin-bottom: 1rem;
}
.label::before { content: '// '; opacity: 0.5; }

em { font-style: italic; color: var(--jy-cyan); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding: var(--section-v) 0;
}
.section--surface { background: var(--jy-surface); }
.section--raised  { background: var(--jy-raised); }
.section--dark    { background: var(--jy-bg); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.section-header { max-width: 640px; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.05rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--speed) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--jy-cyan);
  color: var(--jy-bg);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 24px var(--jy-cyan-glow);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid var(--jy-border-mid);
  color: var(--jy-white);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--jy-cyan);
  color: var(--jy-cyan);
  background: var(--jy-cyan-glow);
}
.btn-group { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--jy-surface);
  border: 1px solid var(--jy-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.card:hover {
  border-color: var(--jy-border-mid);
  box-shadow: 0 0 32px rgba(0, 200, 255, 0.08);
}
.card--raised {
  background: var(--jy-raised);
}

/* ── Navigation ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--speed) var(--ease), padding var(--speed) var(--ease), backdrop-filter var(--speed) var(--ease);
}
.site-header.scrolled {
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--jy-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--jy-white);
}
.nav-logo .logo-mark {
  width: 32px;
  height: 32px;
  background: var(--jy-cyan);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jy-bg);
  font-size: 0.85rem;
  font-weight: 700;
}
.nav-logo .logo-sub {
  color: var(--jy-mid);
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--jy-mid);
  border-radius: var(--radius);
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--jy-white);
  background: rgba(255,255,255,0.06);
}
.nav-book {
  margin-left: 0.75rem;
  padding: 0.5rem 1.25rem !important;
  background: var(--jy-cyan) !important;
  color: var(--jy-bg) !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  font-size: 0.875rem;
}
.nav-book:hover {
  background: #fff !important;
  box-shadow: 0 0 20px var(--jy-cyan-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--jy-white);
  border-radius: 2px;
  transition: all var(--speed) var(--ease);
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--jy-bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--jy-mid);
  padding: 0.5rem 1rem;
  transition: color var(--speed) var(--ease);
}
.nav-mobile a:hover { color: var(--jy-cyan); }
.nav-mobile .nav-mobile-book {
  margin-top: 1.5rem;
  font-size: 1.1rem !important;
  padding: 0.75rem 2rem !important;
  background: var(--jy-cyan);
  color: var(--jy-bg) !important;
  border-radius: var(--radius);
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
}

/* Hamburger open state */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 6rem;
}

/* Hero video background */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.7;
}

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

/* Animated dot grid — subtler over video */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 200, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: grid-breathe 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

/* Bottom fade into next section */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--jy-bg) 100%);
  pointer-events: none;
  z-index: 2;
}

@keyframes grid-breathe {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 0.9; }
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.hero-label { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.5rem; color: var(--jy-white); }
.hero h1 em { color: var(--jy-cyan); font-style: normal; }
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--jy-mid);
  max-width: 48ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-btns { margin-bottom: 4rem; }

/* Scroll indicator */
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--jy-dim);
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: var(--jy-dim);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { width: 40px; opacity: 0.4; }
  50%       { width: 60px; opacity: 1; }
}


/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  padding: 10rem 0 5rem;
  background: var(--jy-surface);
  border-bottom: 1px solid var(--jy-border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,200,255,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 1rem;
  color: var(--jy-white);
}
.page-hero p {
  font-size: 1.1rem;
  max-width: 52ch;
}

/* ── Services Strip ───────────────────────────────────────── */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--jy-surface);
  border: 1px solid var(--jy-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.service-card:hover {
  border-color: var(--jy-border-mid);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,200,255,0.08);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--jy-green-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { width: 24px; height: 24px; color: var(--jy-green); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.service-card h4 { font-size: 1.3rem; color: var(--jy-white); margin-bottom: 0.25rem; }
.service-card p { font-size: 0.9rem; margin: 0; max-width: 100%; }

/* Service detail cards (services.html) */
.service-detail {
  background: var(--jy-surface);
  border: 1px solid var(--jy-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  transition: border-color var(--speed) var(--ease);
}
.service-detail:hover { border-color: var(--jy-border-mid); }
.service-detail-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--jy-green); margin-bottom: 0.75rem; }
.service-detail h3 { color: var(--jy-white); margin-bottom: 1rem; }
.service-detail p { font-size: 0.95rem; max-width: 100%; }
.service-detail-meta { }
.service-detail-meta h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jy-dim);
  margin-bottom: 0.75rem;
}
.service-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-pipeline-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--jy-mid);
}
.service-pipeline-step::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jy-cyan);
  flex-shrink: 0;
}

/* ── Stats ────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--jy-border);
  border: 1px solid var(--jy-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-tile {
  background: var(--jy-surface);
  padding: 2.5rem 2rem;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--jy-green);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--jy-cyan);
  font-weight: 700;
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jy-dim);
  margin-top: 0.5rem;
}

/* ── Work/Case Study Cards ────────────────────────────────── */
.work-card {
  background: var(--jy-surface);
  border: 1px solid var(--jy-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.work-card:hover {
  border-color: var(--jy-border-mid);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,200,255,0.08);
}
.work-card-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--jy-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.work-card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jy-green);
  background: var(--jy-green-dim);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}
.work-card-arrow {
  color: var(--jy-dim);
  transition: color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.work-card:hover .work-card-arrow {
  color: var(--jy-cyan);
  transform: translate(3px, -3px);
}
.work-card-body { padding: 1.75rem 2rem 2rem; }
.work-card-body h3 { font-size: 1.5rem; color: var(--jy-white); margin-bottom: 0.75rem; }
.work-card-body p { font-size: 0.9rem; margin-bottom: 1.25rem; max-width: 100%; }
.work-card-result {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--jy-cyan);
  padding-top: 1rem;
  border-top: 1px solid var(--jy-border);
}
.work-card-result strong { font-weight: 700; }

/* Work detail (work.html) */
.work-detail {
  background: var(--jy-surface);
  border: 1px solid var(--jy-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.work-detail-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.work-meta-item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jy-dim);
}
.work-meta-item strong { display: block; color: var(--jy-mid); margin-top: 0.2rem; }

/* ── About / Story ────────────────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.story-photo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.story-photo img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--jy-cyan);
  flex-shrink: 0;
}
.story-photo-name { font-weight: 600; color: var(--jy-white); font-size: 1rem; }
.story-photo-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jy-dim);
  margin-top: 0.2rem;
}
.story-content h2 { margin-bottom: 1.5rem; }
.story-content p { margin-bottom: 1rem; }
.story-content p:last-child { margin-bottom: 0; }
.story-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.story-stat {
  background: var(--jy-surface);
  border: 1px solid var(--jy-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.story-stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--jy-cyan);
  line-height: 1;
  white-space: nowrap;
}
.story-stat-label { font-size: 0.875rem; color: var(--jy-mid); }

/* Philosophy section */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.philosophy-card {
  background: var(--jy-surface);
  border: 1px solid var(--jy-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.philosophy-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jy-cyan);
  margin-bottom: 1rem;
}
.philosophy-card h4 { color: var(--jy-white); margin-bottom: 0.75rem; font-size: 1.4rem; }
.philosophy-card p { font-size: 0.9rem; max-width: 100%; }

/* ── Scenario Timeline ────────────────────────────────────── */
.scenario-timeline {
  max-width: 780px;
  margin: 4rem auto 0;
  display: flex;
  flex-direction: column;
}
.scenario-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--jy-border);
  align-items: start;
}
.scenario-step:last-child { border-bottom: none; }
.scenario-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--jy-cyan);
  padding-top: 0.3rem;
  white-space: nowrap;
}
.scenario-action strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600;
  color: var(--jy-white);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.scenario-action p {
  font-size: 0.9rem;
  margin: 0;
  max-width: 100%;
  color: var(--jy-mid);
}

/* ── CTA Strip ────────────────────────────────────────────── */
.cta-strip {
  padding: var(--section-v) 0;
  background: var(--jy-surface);
  border-top: 1px solid var(--jy-border);
  border-bottom: 1px solid var(--jy-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0,200,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-strip .container { position: relative; z-index: 1; }
.cta-strip h2 { margin-bottom: 1rem; }
.cta-strip p { margin: 0 auto 2.5rem; font-size: 1.05rem; }
.cta-contact-line {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--jy-dim);
}
.cta-contact-line a { color: var(--jy-mid); transition: color var(--speed) var(--ease); }
.cta-contact-line a:hover { color: var(--jy-cyan); }

/* ── Contact ──────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { color: var(--jy-white); margin-bottom: 0.75rem; }
.contact-info p { margin-bottom: 2rem; font-size: 0.95rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--jy-border);
}
.contact-item:first-of-type { border-top: 1px solid var(--jy-border); }
.contact-item-icon {
  width: 36px;
  height: 36px;
  background: var(--jy-green-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.contact-item-icon svg { width: 18px; height: 18px; color: var(--jy-green); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-item-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jy-dim);
  margin-bottom: 0.2rem;
}
.contact-item-val { font-size: 0.95rem; color: var(--jy-white); }

/* Form */
.contact-form-wrap {
  background: var(--jy-surface);
  border: 1px solid var(--jy-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-form-wrap h3 { color: var(--jy-white); margin-bottom: 0.5rem; font-size: 1.6rem; }
.contact-form-wrap > p { font-size: 0.9rem; margin-bottom: 2rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jy-mid);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--jy-raised);
  border: 1px solid var(--jy-border);
  border-radius: var(--radius);
  color: var(--jy-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  outline: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--jy-dim); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--jy-cyan);
  box-shadow: 0 0 0 3px rgba(0,200,255,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--jy-raised); }
.form-submit { margin-top: 1.5rem; }
.form-submit .btn { width: 100%; justify-content: center; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--jy-border);
  background: var(--jy-bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--jy-border);
  margin-bottom: 2rem;
}
.footer-brand p {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 30ch;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jy-dim);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--jy-mid);
  transition: color var(--speed) var(--ease);
}
.footer-col ul li a:hover { color: var(--jy-cyan); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--jy-dim);
  max-width: 100%;
}
.footer-bottom a { color: var(--jy-mid); transition: color var(--speed) var(--ease); }
.footer-bottom a:hover { color: var(--jy-cyan); }

/* ── Scroll reveal animations ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
}
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
/* GSAP sets these; fallback if JS doesn't load: */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-cyan { color: var(--jy-cyan); }
.text-green { color: var(--jy-green); }
.text-mid { color: var(--jy-mid); }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.mb-sm { margin-top: 1rem; }
.mb-md { margin-bottom: 2rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .btn-group { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
