/* =============================================================
   KAYMUN STUDIO — Core Stylesheet
   Design system: dark, premium, gold + platinum accents.
   ============================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Backgrounds */
  --bg-primary:   #050505;
  --bg-secondary: #111111;
  --bg-tertiary:  #1a1a1a;

  /* Accents */
  --gold:         #d4af37;
  --gold-light:   #f3e5ab;
  --gold-grad:    linear-gradient(135deg, #bf953f 0%, #fcf6ba 45%, #b38728 100%);
  /* Brighter, more saturated variant for large display type that has to
     hold its own against the dark WebGL hero background. */
  --gold-grad-bright: linear-gradient(135deg, #ffd700 0%, #f3e5ab 50%, #d4af37 100%);
  --silver:       #e0e0e0;

  /* Text */
  --text-body:    #cccccc;
  --text-heading: #ffffff;
  --text-muted:   #8a8a8a;

  /* Lines & effects */
  --line:         rgba(212, 175, 55, 0.18);
  --line-soft:    rgba(255, 255, 255, 0.07);
  --glow-gold:    0 0 24px rgba(212, 175, 55, 0.28);
  --glow-silver:  0 0 24px rgba(224, 224, 224, 0.14);

  /* Typography */
  --font-heading: "Cinzel", "Playfair Display", Georgia, serif;
  --font-body:    "Montserrat", "Inter", system-ui, sans-serif;

  /* Layout */
  --maxw:         1200px;
  --radius:       6px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

/* The fixed WebGL canvas sits at z-index:-1, so the black base color
   lives on <html> and <body> stays transparent — otherwise an opaque
   body background would paint straight over the canvas. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--bg-primary);
}

body {
  background: transparent;
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

section { padding: 110px 0; position: relative; }

/* Every section below the hero is opaque, so the fixed canvas only
   shows through the hero itself and the rest of the page stays clean. */
main > section:not(.hero) { background: var(--bg-primary); z-index: 1; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

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

.gold-line {
  width: 64px; height: 2px;
  background: var(--gold-grad);
  border: none; margin: 20px 0 32px;
}
.gold-line.center { margin-left: auto; margin-right: auto; }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head p { margin-top: 18px; color: var(--text-muted); font-size: 1.02rem; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  /* Content-sized buttons look identical either way, but the moment a button
     is given a width (mobile, full-width CTAs) the default `flex-start`
     shunts its label to the left. Centring here fixes it everywhere. */
  justify-content: center;
  text-align: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 15px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.35s var(--ease);
  border: 1px solid transparent;
  background: transparent;
}

.btn-primary {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-grad);
  color: #0a0a0a;
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--silver);
  padding-left: 4px; padding-right: 4px;
  border-radius: 0;
}
.btn-ghost span {
  position: relative;
}
.btn-ghost span::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--silver);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.btn-ghost:hover { color: var(--gold); }
.btn-ghost:hover span::after { background: var(--gold); }

/* ---------- 4. Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: 3px; color: #fff;
}
.brand .studio { color: var(--gold); font-weight: 400; }

.nav-links { display: flex; gap: 38px; align-items: center; }
.nav-links a {
  font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-body); font-weight: 400;
  position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--gold-grad);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 22px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--gold); transition: all 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  /* `svh` = small viewport height: the size with the mobile address bar
     VISIBLE. Unlike `vh`/`dvh` it never changes as the bar hides on scroll,
     so the hero doesn't reflow mid-scroll. `vh` first as the fallback. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 140px 0 90px;
  text-align: center;
  background: transparent;   /* let the fixed canvas show through */
}
.hero .container { position: relative; z-index: 2; }

/* --- Fixed WebGL particle canvas (Three.js) --- */
.hero-canvas {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s var(--ease);
}
.hero-canvas.is-dimmed { opacity: 0; }
.hero-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* --- Aurora glass panel --- */
.hero-glass {
  position: relative;
  max-width: 780px; margin: 0 auto;
  padding: clamp(34px, 4vw, 54px) clamp(24px, 4vw, 56px);
  border-radius: 20px;
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
/* Faint aurora sheen across the glass */
.hero-glass::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(212, 175, 55, 0.09), transparent 60%),
    radial-gradient(110% 80% at 90% 100%, rgba(224, 224, 224, 0.06), transparent 60%);
  pointer-events: none;
}
/* Hairline gold accent along the top edge */
.hero-glass::after {
  content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.55), transparent);
  pointer-events: none;
}
.hero-glass > * { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.1;
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}
.hero h1 .accent {
  background: var(--gold-grad-bright);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Applied to the clipped result, so the gold separates cleanly from the
     particle field behind it without muddying the letterforms. */
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.22));
}
.hero-sub {
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  max-width: 600px; margin: 0 auto 40px;
  color: var(--text-body);
}
.hero-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
}

/* --- Interaction hint --- */
.hero-hint {
  position: absolute; bottom: 38px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
  animation: hintPulse 3.4s ease-in-out infinite;
}
.hero-hint .dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex: 0 0 auto;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
}
/* Touch devices have no cursor to move, and the morph cycles on its own
   there — so the prompt is both wrong and unnecessary. Hiding it also
   frees the bottom of the screen, where the portrait diagrams now sit. */
@media (hover: none) and (pointer: coarse) {
  .hero-hint { display: none; }
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.95; }
}

/* --- Static SVG fallback (hidden once WebGL is running) --- */
.hero-waves {
  position: absolute; top: 0; right: -8%; height: 100%;
  width: 70%; z-index: 0;
  opacity: 0.55; pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
.hero-waves svg, .hero-waves img { width: 100%; height: 100%; }
body.webgl-active .hero-waves {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

/* ---------- 6. About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
}
.about-text p { margin-bottom: 20px; font-size: 1.05rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat {
  background: var(--bg-secondary);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.stat:hover { border-color: var(--line); transform: translateY(-4px); }
.stat .num {
  font-family: var(--font-heading);
  font-size: 2.4rem; color: var(--gold); line-height: 1;
  margin-bottom: 10px;
}
.stat .label { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.5px; }

/* ---------- 7. Service Cards ---------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 42px 36px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--line);
  box-shadow: var(--glow-gold);
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 54px; height: 54px; margin-bottom: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--gold);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: 16px; letter-spacing: 1px; }
.card p { font-size: 0.96rem; color: var(--text-body); }
.card .card-num {
  position: absolute; top: 26px; right: 32px;
  font-family: var(--font-heading); font-size: 2.2rem;
  color: rgba(212,175,55,0.12);
}

.services-cta { text-align: center; margin-top: 56px; }

/* ---------- 8. Detailed service rows (services page) ---------- */
.service-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 40px;
  padding: 46px 0; border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.service-row:last-child { border-bottom: none; }
.service-row .idx {
  font-family: var(--font-heading); font-size: 2.6rem;
  background: var(--gold-grad); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.service-row h3 { font-size: 1.5rem; margin-bottom: 18px; }
.service-row p { font-size: 1.05rem; max-width: 780px; }
.service-row .tags { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 9. Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.project {
  background: var(--bg-secondary);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 46px 42px;
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.project::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(212,175,55,0.14), transparent 70%);
  opacity: 0; transition: opacity 0.45s;
}
.project:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: var(--glow-silver); }
.project:hover::after { opacity: 1; }
.project-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.project h3 { font-size: 1.7rem; letter-spacing: 3px; }
.project .visit {
  font-family: var(--font-body); font-size: 0.78rem; text-transform: lowercase;
  letter-spacing: 0.5px; color: var(--gold); position: relative; z-index: 2;
}
.project .visit:hover { text-decoration: underline; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 22px; }
.tag {
  font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted);
  border: 1px solid var(--line-soft); border-radius: 40px;
  padding: 6px 14px;
}
.project p { font-size: 0.98rem; color: var(--text-body); position: relative; z-index: 2; }
.badge {
  display: inline-block; margin-top: 22px;
  font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line); border-radius: 40px;
  padding: 5px 14px;
}

/* ---------- 10. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info h3 { font-size: 1.15rem; margin-bottom: 8px; }
.contact-info .lead { color: var(--text-body); font-size: 1.05rem; margin-bottom: 40px; }
.info-list li { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.info-list .k { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 6px; }
.info-list .v { color: var(--silver); font-size: 1rem; }

.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; font-size: 0.72rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
}
.form-group input,
.form-group textarea {
  width: 100%; background: var(--bg-secondary);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 15px 18px; color: var(--text-heading);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 300;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* Submitting state */
.contact-form button[type="submit"] { min-width: 190px; justify-content: center; }
.contact-form button[type="submit"][disabled] {
  opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none;
}

/* Inline error, shown directly above the submit button */
.form-error {
  margin: 0 0 18px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #f0c9c0;
  background: rgba(190, 70, 50, 0.09);
  border: 1px solid rgba(220, 90, 70, 0.32);
  border-left-width: 2px;
  border-radius: var(--radius);
}
.form-error[hidden] { display: none; }

/* Success panel — replaces the fields once the message is sent */
.form-success {
  text-align: center;
  padding: 52px 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: successIn 0.55s var(--ease) both;
}
.form-success[hidden] { display: none; }
.form-success .success-mark {
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; margin: 0 auto 24px;
  border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold); box-shadow: var(--glow-gold);
}
.form-success .success-mark svg { width: 28px; height: 28px; }
.form-success h3 { font-size: 1.2rem; margin-bottom: 12px; }
.form-success p { color: var(--text-body); font-size: 0.96rem; max-width: 340px; margin: 0 auto; }
@keyframes successIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 11. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px; background: var(--bg-primary);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap; margin-bottom: 40px;
}
.footer-brand .brand { font-size: 1.4rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.75rem; letter-spacing: 2px; color: var(--gold); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-body); font-size: 0.9rem; padding: 6px 0; transition: color 0.3s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 0.82rem;
}

/* ---------- 12. Page hero (inner pages) ---------- */
.page-hero {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(212,175,55,0.08), transparent 55%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: 2px; }
.page-hero p { margin-top: 20px; max-width: 640px; color: var(--text-muted); font-size: 1.05rem; }
.breadcrumb { font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- 13. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-waves { opacity: 0.3; right: -30%; width: 100%; }
}

/* Browsers without backdrop-filter get a solid-ish panel instead of
   an unreadable transparent one. */
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .hero-glass { background: rgba(12, 12, 12, 0.86); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-hint { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Mobile: shrink the glass panel's footprint so the portrait
   diagrams behind it stay readable above and below the card. --- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .hero-glass {
    padding: 26px 20px 28px;
    border-radius: 16px;
  }
  .hero-glass .eyebrow {
    font-size: 0.6rem; letter-spacing: 2.4px; margin-bottom: 10px;
  }
  .hero h1 {
    font-size: clamp(1.5rem, 6.4vw, 2.05rem);
    letter-spacing: 1px;
    margin-bottom: 14px;
  }
  .hero-sub {
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 34ch;
    margin-bottom: 24px;
  }

  /* Stack the CTAs tightly — they already wrapped, this just removes
     the wasted gap and slims the buttons down. */
  .hero-cta { flex-direction: column; align-items: center; gap: 14px; }
  .hero-cta .btn {
    display: flex;              /* full-width block rather than inline */
    justify-content: center;    /* centre the label horizontally */
    align-items: center;
    text-align: center;
    padding: 13px 22px;         /* symmetrical left/right */
    font-size: 0.74rem;
    letter-spacing: 1.2px;
  }
  .hero-cta .btn-primary { width: 100%; max-width: 300px; }
  /* The ghost CTA is a text link — keep it centred but not full-width, so
     its silver underline hugs the words instead of spanning the panel. */
  .hero-cta .btn-ghost { width: auto; padding-left: 4px; padding-right: 4px; }
}

@media (max-width: 720px) {
  section { padding: 80px 0; }
  .hero { padding: 120px 0 96px; }
  /* Narrow non-touch windows still show it — keep it legible over the scene. */
  .hero-hint {
    bottom: 18px;
    font-size: 0.58rem; letter-spacing: 1px;
    white-space: normal; text-align: center; max-width: 84vw;
    padding: 7px 15px;
    border-radius: 40px;
    background: rgba(5, 5, 5, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .nav-links {
    position: fixed; top: 0; right: 0;
    height: 100vh; height: 100svh; /* stays put when the address bar moves */
    width: min(78vw, 320px);
    flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(10,10,10,0.97); backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform 0.4s var(--ease);
    padding: 40px;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; }
  .nav-toggle { display: block; z-index: 110; }
  .service-row { grid-template-columns: 1fr; gap: 14px; }
  .service-row .idx { font-size: 2rem; }
  .footer-top { flex-direction: column; }
  .hero-cta { gap: 18px; }
}
