/* ═══════════════════════════════════════════════════════════════════════════
   Informaatik IKT OÜ — informaatik.ee
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables — light (default) ──────────────────────────────────────────── */
:root {
  --bg:          #faf8f4;
  --bg-card:     #f3efe8;
  --bg-card-h:   #ebe6dc;
  --fg:          #1a1815;
  --fg-rgb:      26, 24, 21;
  --warm:        #1a1815;
  --warm-dim:    rgba(26, 24, 21, 0.08);
  --warm-muted:  rgba(26, 24, 21, 0.4);
  --warm-border: rgba(26, 24, 21, 0.07);
  --white:       #1a1815;
  --muted:       #736b62;
  --muted2:      rgba(26, 24, 21, 0.08);
  --text-dim:    #776f64;
  --text-body:   #6a6258;
  --weight-body: 400;
  --nav-glass:      rgba(250, 248, 244, 0.88);
  --nav-sat:        1.2;
  --section-tint:   rgba(243, 239, 232, 0.45);
  --section-tint-2: rgba(243, 239, 232, 0.5);
  --cred-bg:        rgba(243, 239, 232, 0.5);
  --ticker-bg:      #f3efe8;
  --ticker-fade:    #faf8f4;
  --btn-hover:      #0e0d0b;
  --mono:        'JetBrains Mono', monospace;
  --sans:        'Inter', system-ui, sans-serif;
  --display:     'Space Grotesk', 'Inter', sans-serif;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Variables — dark (auto: system preference) ──────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0e0d0b;
    --bg-card:     #141210;
    --bg-card-h:   #1a1815;
    --fg:          #f5f0e8;
    --fg-rgb:      245, 240, 232;
    --warm:        #f5f0e8;
    --warm-dim:    rgba(245, 240, 232, 0.12);
    --warm-muted:  rgba(245, 240, 232, 0.4);
    --warm-border: rgba(245, 240, 232, 0.1);
    --white:       #f5f0e8;
    --muted:       #887e78;
    --muted2:      #2a2520;
    --text-dim:    rgba(245, 240, 232, 0.5);
    --text-body:   rgba(245, 240, 232, 0.5);
    --weight-body: 300;
    --nav-glass:      rgba(14, 13, 11, 0.88);
    --nav-sat:        1.3;
    --section-tint:   rgba(20, 18, 16, 0.4);
    --section-tint-2: rgba(20, 18, 16, 0.5);
    --cred-bg:        rgba(20, 18, 16, 0.5);
    --ticker-bg:      rgba(14, 13, 11, 0.7);
    --ticker-fade:    #0e0d0b;
    --btn-hover:      #fff;
  }
}

/* ── Variables — dark (manual toggle) ────────────────────────────────────── */
:root[data-theme="dark"] {
  --bg:          #0e0d0b;
  --bg-card:     #141210;
  --bg-card-h:   #1a1815;
  --fg:          #f5f0e8;
  --fg-rgb:      245, 240, 232;
  --warm:        #f5f0e8;
  --warm-dim:    rgba(245, 240, 232, 0.12);
  --warm-muted:  rgba(245, 240, 232, 0.4);
  --warm-border: rgba(245, 240, 232, 0.1);
  --white:       #f5f0e8;
  --muted:       #887e78;
  --muted2:      #2a2520;
  --text-dim:    rgba(245, 240, 232, 0.5);
  --text-body:   rgba(245, 240, 232, 0.5);
  --weight-body: 300;
  --nav-glass:      rgba(14, 13, 11, 0.88);
  --nav-sat:        1.3;
  --section-tint:   rgba(20, 18, 16, 0.4);
  --section-tint-2: rgba(20, 18, 16, 0.5);
  --cred-bg:        rgba(20, 18, 16, 0.5);
  --ticker-bg:      rgba(14, 13, 11, 0.7);
  --ticker-fade:    #0e0d0b;
  --btn-hover:      #fff;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

/* ── Focus ────────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
}

/* ── Skip-link ────────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--warm);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Navigation ──────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 3.5rem;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: var(--nav-glass);
  backdrop-filter: blur(16px) saturate(var(--nav-sat));
  -webkit-backdrop-filter: blur(16px) saturate(var(--nav-sat));
  border-bottom-color: rgba(var(--fg-rgb), 0.06);
  padding: 1.1rem 3.5rem;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
  transition: opacity 0.3s var(--ease);
}
.nav-logo:hover { opacity: 0.6; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.8rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-body);
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Theme Toggle ────────────────────────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--muted);
  transition: color 0.3s var(--ease);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--white); }
.theme-icon { width: 15px; height: 15px; }

/* Light active (default) — show moon, hide sun */
.icon-sun  { display: none; }
.icon-moon { display: block; }

/* Dark via system — show sun, hide moon */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

/* Dark via manual toggle */
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Light via manual toggle (override dark system) */
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ── Container ───────────────────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 1;
}

/* ── Section base ────────────────────────────────────────────────────────── */
.section {
  padding: 9rem 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--warm);
  letter-spacing: 0.18em;
  opacity: 0.45;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.section-label::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  background: rgba(var(--fg-rgb), 0.12);
  flex-shrink: 0;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
  padding: 0 3.5rem 8rem;
}

.hero-inner { max-width: 900px; }

.hero-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 2.2rem;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.hero-headline {
  font-family: var(--display);
  font-size: clamp(3.2rem, 10vw, 8.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 3.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.08em;
}

.hl-dim {
  color: var(--text-dim);
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}
.hl-bright {
  color: var(--warm);
  animation: fadeUp 0.8s var(--ease) 0.5s both;
}

.hero-desc {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: var(--weight-body);
  color: var(--text-body);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s var(--ease) 0.7s both;
}

/* ── Button ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--warm);
  padding: 0.95rem 2.4rem;
  transition: background 0.3s var(--ease);
  animation: fadeUp 0.9s var(--ease) 0.9s both;
}
.btn-primary:hover { background: var(--btn-hover); }
.btn-arrow { transition: transform 0.3s var(--ease); }
.btn-primary:hover .btn-arrow { transform: translateX(5px); }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: fadeUp 1s var(--ease) 1.2s both;
}
.hero-scroll-indicator span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(var(--fg-rgb), 0.35), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.9); }
  50%       { opacity: 0.8;  transform: scaleY(1.1); }
}

/* ── Credential Strip ────────────────────────────────────────────────────── */
#cred-strip {
  position: relative;
  z-index: 1;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(var(--fg-rgb), 0.05);
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.05);
  background: var(--cred-bg);
}

.cred-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 0 2.5rem;
}

.cred-item {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  cursor: default;
  user-select: none;
}
.cred-item.hi { color: var(--text-body); }
.cred-sep {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: rgba(var(--fg-rgb), 0.1);
  user-select: none;
}

/* ── Studio Section ──────────────────────────────────────────────────────── */
#studio {
  background: linear-gradient(
    to bottom,
    transparent,
    var(--section-tint) 40%,
    var(--section-tint) 60%,
    transparent
  );
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.studio-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.8rem;
}

.studio-body {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.9;
  max-width: 420px;
  margin-bottom: 3rem;
}

.studio-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--muted2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-num {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-plus {
  font-size: 0.6em;
  vertical-align: super;
  color: var(--muted);
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  line-height: 1.6;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--muted2);
  flex-shrink: 0;
}

.studio-image { aspect-ratio: 4/3; }

.studio-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: var(--bg-card) url('../images/studio.webp') center/cover no-repeat;
  border: 1px solid var(--muted2);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.img-caption {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  line-height: 1.9;
}

/* ── Services ────────────────────────────────────────────────────────────── */
#services {
  background: linear-gradient(
    to bottom,
    transparent,
    var(--section-tint) 40%,
    var(--section-tint) 60%,
    transparent
  );
}

.services-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.services-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.services-meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 60px 1fr 32px;
  align-items: start;
  gap: 2.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--muted2);
  position: relative;
  cursor: default;
}

.service-item::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--warm);
  transition: width 0.55s var(--ease);
}
.service-item:hover::after { width: 100%; }

.service-num {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  padding-top: 0.5rem;
  user-select: none;
}

.service-body h3 {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.3vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  transition: color 0.3s var(--ease);
}
.service-item:hover .service-body h3 { color: rgba(var(--fg-rgb), 0.55); }

.service-body p {
  font-size: 0.83rem;
  color: var(--text-body);
  line-height: 1.8;
  font-weight: var(--weight-body);
  max-width: 560px;
}

.service-icon {
  width: 26px;
  height: 26px;
  color: rgba(var(--fg-rgb), 0.15);
  flex-shrink: 0;
  padding-top: 0.5rem;
  transition: color 0.3s var(--ease);
}
.service-item:hover .service-icon { color: rgba(var(--fg-rgb), 0.4); }

/* ── Ticker Strip ────────────────────────────────────────────────────────── */
#ticker-strip {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(var(--fg-rgb), 0.04);
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.04);
  background: var(--ticker-bg);
}
#ticker-strip::before,
#ticker-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 8%;
  z-index: 2;
  pointer-events: none;
}
#ticker-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--ticker-fade) 0%, transparent 100%);
}
#ticker-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--ticker-fade) 0%, transparent 100%);
}
.ticker-row {
  display: flex;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.ticker-row:last-child { margin-bottom: 0; }
.ticker-inner {
  display: flex;
  flex-shrink: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-l 38s linear infinite;
}
.ticker-row--rev .ticker-inner {
  animation: ticker-r 44s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 2.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(var(--fg-rgb), 0.12);
  transition: color 0.3s var(--ease);
  cursor: default;
  user-select: none;
}
.ticker-item:hover { color: rgba(var(--fg-rgb), 0.4); }
.ticker-item.hi { color: rgba(var(--fg-rgb), 0.3); }
.ticker-item.hi:hover { color: rgba(var(--fg-rgb), 0.6); }
.ticker-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}
@keyframes ticker-l {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes ticker-r {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; }
}

/* ── Stack Section ───────────────────────────────────────────────────────── */
#stack {
  background: linear-gradient(
    to bottom,
    transparent,
    var(--section-tint-2) 50%,
    transparent
  );
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.stack-heading {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

.stack-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack-bullets li {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.stack-bullets li::before {
  content: '—';
  color: rgba(var(--fg-rgb), 0.15);
  flex-shrink: 0;
}

.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.lang-tile {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--muted2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  cursor: default;
}
.lang-tile:hover {
  border-color: rgba(var(--fg-rgb), 0.15);
  background: var(--bg-card-h);
}

.lang-name {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  text-align: center;
}

.lang-sub {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ── Blueprint / Conclusion Section ─────────────────────────────────────── */
#blueprint {
  background: linear-gradient(
    to bottom,
    transparent,
    var(--section-tint) 40%,
    var(--section-tint) 60%,
    transparent
  );
}

.blueprint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.blueprint-img-placeholder {
  aspect-ratio: 3/4;
  background: var(--bg-card) url('../images/blueprint.webp') center/cover no-repeat;
  border: 1px solid var(--muted2);
}

.blueprint-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.8rem;
}

.blueprint-body {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.blueprint-origin {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--muted2);
}

.blueprint-origin-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.blueprint-origin-name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
#contact {
  text-align: center;
  min-height: 65vh;
  display: flex;
  align-items: center;
  position: relative;
}

.contact-inner { width: 100%; }
.contact-inner .section-label { display: inline-flex; }

.contact-rule {
  width: 1px;
  height: 72px;
  background: linear-gradient(to bottom, transparent, rgba(var(--fg-rgb), 0.2), transparent);
  margin: 0 auto 2rem;
}

.contact-email {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 4.8vw, 3.4rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.03em;
  margin: 2.4rem 0 1.4rem;
  transition: opacity 0.35s var(--ease);
  position: relative;
  z-index: 1;
}
.contact-email:hover { opacity: 0.55; }

.contact-reg {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  position: relative;
  z-index: 1;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--muted2);
  padding: 1.5rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.footer-copy {
  width: 100%;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-links a {
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--white); }
.footer-links span { color: rgba(var(--fg-rgb), 0.1); }

/* ── Scroll Reveal ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
/* ── Hamburger (mobile nav) ───────────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--muted);
  transition: color 0.3s var(--ease);
  flex-shrink: 0;
}
.nav-toggle:hover { color: var(--white); }
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  #nav { padding: 1.5rem 2rem; }
  #nav.scrolled { padding: 1rem 2rem; }
  .container { padding: 0 2rem; }
  .service-item { grid-template-columns: 52px 1fr 26px; gap: 1.8rem; }
  .studio-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .stack-grid  { grid-template-columns: 1fr; gap: 3.5rem; }
  .blueprint-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .services-header { flex-direction: column; gap: 0.75rem; }
  .nav-links { display: flex; gap: 1.6rem; position: static; transform: none; }
  .nav-links a { font-size: 0.65rem; }
  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 600px) {
  /* ── Mobile nav overlay ── */
  .nav-toggle { display: flex; align-items: center; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.14em;
  }

  #nav { padding: 1.2rem 1.5rem; }
  #nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-logo { font-size: 0.78rem; }
  footer { padding: 1.5rem 1.5rem; }
  .section { padding: 5.5rem 0; }
  .section-label { margin-bottom: 2.6rem; }
  .container { padding: 0 1.5rem; }
  #hero { padding: 0 1.5rem 6rem; }
  .service-item {
    grid-template-columns: 40px 1fr;
    gap: 1.2rem;
    padding: 2.2rem 0;
  }
  .service-icon { display: none; }
  .service-body h3 { font-size: 1.05rem; }
  .btn-primary {
    width: 100%;
    max-width: 260px;
    justify-content: center;
    padding: 1rem 1.6rem;
  }
  .contact-email { margin: 1.6rem 0 1rem; font-size: clamp(1.2rem, 7.5vw, 1.8rem); }
  .hero-scroll-indicator { display: none; }
  .scroll-line { height: 32px; }
  .lang-grid { gap: 0.8rem; }
  .lang-tile { padding: 1.2rem; }
  .blueprint-img-placeholder { aspect-ratio: 16/9; }
  .studio-stats { gap: 1.5rem; flex-wrap: wrap; }
  .stat-divider { display: none; }
  .cred-inner { gap: 0.5rem 1rem; }
  .cred-item { font-size: 0.58rem; }
  .cred-sep { font-size: 0.58rem; }
}

@media (max-width: 400px) {
  #nav { padding: 1rem 1.1rem; }
  .nav-logo { font-size: 0.72rem; letter-spacing: 0.1em; }
  .container { padding: 0 1.1rem; }
  .section { padding: 4.5rem 0; }
  .service-item { gap: 1rem; padding: 1.8rem 0; }
  #hero { padding: 0 1.1rem 5rem; }
  .lang-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: clamp(2.4rem, 12vw, 3.2rem); }
}
