/* =========================================================
   ATC Digital Craft — styles
   Palette taken from the brand logo: black, brushed gold,
   warm stone grey ("DIGITAL CRAFT" lettering).
   ========================================================= */

:root {
  /* colour tokens */
  --bg: #0a0a0b;
  --bg-raised: #111113;
  --surface: #17171a;
  --surface-2: #1d1d21;
  --line: rgba(236, 226, 206, 0.09);
  --line-strong: rgba(236, 226, 206, 0.18);
  --text: #ede7dc;
  --text-muted: #a29b90;
  --text-dim: #6f6a62;
  --stone: #cfc8be;
  --gold: #d4aa4f;
  --gold-hi: #f0d27a;
  --gold-lo: #9c7a2e;
  --gold-soft: rgba(212, 170, 79, 0.14);
  --on-gold: #15110a;
  --error: #ff8a7a;
  --success: #9fd8a4;

  /* type */
  --font-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* spacing (8pt) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --s-9: 140px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;

  /* z-index scale */
  --z-base: 1;
  --z-raised: 10;
  --z-nav: 100;
  --z-menu: 110;
  --z-skip: 1000;

  color-scheme: dark;
}

/* ---------- smooth scrolling (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--gold); color: var(--on-gold); }
section[id] { scroll-margin-top: 96px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: var(--z-skip);
  background: var(--gold); color: var(--on-gold);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 1px;
  background: var(--gold); transform: rotate(45deg);
}
.eyebrow--center { justify-content: center; }

.h-display {
  font-weight: 300;
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h-section {
  font-weight: 300;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h-section em, .h-display em { font-style: normal; color: var(--gold); }
.lead { color: var(--text-muted); font-size: 1.06rem; max-width: 58ch; }
.mono-copy {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 42ch;
}

.section { padding-block: clamp(80px, 12vw, var(--s-9)); position: relative; }
.section-head { text-align: center; display: grid; gap: var(--s-3); justify-items: center; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head .lead { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 500; font-size: 0.95rem; letter-spacing: -0.005em;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
  touch-action: manipulation;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  color: var(--on-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 30px -10px rgba(212, 170, 79, 0.55);
}
.btn--gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 40px -10px rgba(212, 170, 79, 0.8); }
.btn--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.86rem; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 16px 0 auto; z-index: var(--z-nav);
  display: flex; justify-content: center; padding-inline: 16px;
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  opacity: var(--nav-on, 1);
  transform: translateY(calc((1 - var(--nav-on, 1)) * -24px)) scale(calc(0.96 + 0.04 * var(--nav-on, 1)));
  display: flex; align-items: center; gap: var(--s-4);
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  background: rgba(17, 17, 19, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8);
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  width: min(100%, 860px);
}
.nav.is-hidden .nav__bar { pointer-events: none; }
.nav.is-scrolled .nav__bar { background: rgba(12, 12, 13, 0.86); border-color: var(--line-strong); }
.nav__logo { display: flex; align-items: center; min-height: 40px; }
.nav__logo img { width: 58px; height: auto; }
.nav__links { display: flex; gap: 4px; margin-inline: auto; list-style: none; padding: 0; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  font-size: 0.86rem; color: var(--text-muted); border-radius: 999px;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__links a.nav__portal { color: var(--gold); }
.nav__links a.nav__portal:hover { color: var(--gold-hi); background: rgba(212, 170, 79, 0.08); }
.mobile-menu a.nav__portal { color: var(--gold); }
.nav__actions { display: flex; align-items: center; gap: 6px; }

.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.72rem;
}
.lang-toggle a {
  display: inline-grid; place-items: center;
  min-width: 36px; min-height: 32px; border-radius: 999px; color: var(--text-muted);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.lang-toggle a:hover { color: var(--text); }
.lang-toggle a[aria-current="page"] { background: var(--surface-2); color: var(--gold-hi); }

.nav__menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; align-items: center; justify-content: center; }
.nav__menu-btn svg { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed; inset: 80px 16px auto; z-index: var(--z-menu);
  background: rgba(17, 17, 19, 0.96);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: var(--s-3); backdrop-filter: blur(18px);
  display: grid; gap: 4px;
  opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 1.05rem; }
.mobile-menu a:hover { background: var(--surface-2); }
.mobile-menu .btn { margin-top: var(--s-2); }

@media (max-width: 900px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__menu-btn { display: inline-flex; }
  .nav__bar { justify-content: space-between; }
}

/* =========================================================
   HERO — warm dusk sky over dark dunes, floating gold mark
   ========================================================= */
/* Intro: the hero is pinned while the wrapper scrolls past.
   Stages (driven by main.js): ATC only → spiral video (3 turns) → hero content. */
.hero-scroll { position: relative; height: 195vh; }
.hero {
  position: sticky; top: 0;
  height: 100svh; height: 100dvh; min-height: 560px;
  display: grid; place-items: center; text-align: center;
  padding: 110px var(--gutter) 90px;
  overflow: hidden; isolation: isolate;
  background: #000;
}
/* Shown at its native size (never upscaled) so it stays sharp;
   the edges fade into the black background. */
.hero__video {
  position: absolute; left: 50%; top: 50%; z-index: -3; display: block;
  width: 1280px; height: 720px;
  transform: translate(-50%, -50%) scale(var(--video-scale, 1));
  opacity: var(--video-on, 0);
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  will-change: transform, opacity;
}
.hero__shade { opacity: var(--content-on, 1); }

/* real-time 3D helix (js/hero3d.js) — full-bleed, vector-sharp */
.hero__gl { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; display: block; }
.hero__video[hidden] { display: none; }

/* ring around the logo on the intro screen — tilts back in 3D on scroll */
.intro-ring {
  position: absolute; left: 50%; top: 50%; z-index: -1; pointer-events: none;
  width: min(62vmin, 460px); aspect-ratio: 1;
  transform: translate(-50%, -50%) perspective(900px) rotateX(var(--ring-tilt, 0deg)) scale(var(--ring-scale, 1));
  opacity: var(--ring-on, 1);
  filter: drop-shadow(0 0 18px rgba(212, 170, 79, 0.35));
}
.intro-ring svg { width: 100%; height: 100%; animation: ring-spin 40s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.intro-ring::before { /* soft glow behind the logo */
  content: ""; position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 170, 79, 0.16), transparent 70%);
}

/* hero parts that appear after the spiral */
.hero__reveal {
  opacity: var(--on, 1);
  transform: translateY(calc((1 - var(--on, 1)) * 26px)) scale(calc(0.98 + 0.02 * var(--on, 1)));
  filter: blur(calc((1 - var(--on, 1)) * 8px));
}
.hero__mark {
  transform: translateY(var(--mark-y, 0px)) scale(var(--mark-scale, 1)); transform-origin: 50% 50%;
  opacity: var(--mark-on, 1);
}
.hero__mark img { filter: blur(var(--mark-blur, 0px)); }
.hero__mark img { animation: float 7s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { height: auto; }
  .hero { position: relative; }
  .intro-ring { display: none; }
}
.hero__shade { /* soft scrim behind the text only */
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 36% at 50% 55%, rgba(0, 0, 0, 0.5), transparent 80%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.45) 0%, transparent 18%, transparent 78%, var(--bg) 100%);
}
.hero__title, .hero__sub { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85); }
.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: 0.18; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.hero__inner { display: grid; justify-items: center; gap: var(--s-4); max-width: 900px; }
.hero__mark {
  width: clamp(200px, 30vw, 360px);
  margin-bottom: var(--s-4);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 60px rgba(212, 170, 79, 0.18));
  will-change: transform;
}
.hero__mark img { width: 100%; height: auto; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotateX(0deg); }
  50% { transform: translateY(-14px) rotateX(6deg); }
}
.hero__title { color: #f4efe6; }
.hero__title em { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { color: #c4bdb1; max-width: 52ch; font-size: 1.05rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--s-2); }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--text-dim);
  display: grid; justify-items: center; gap: 10px; text-transform: uppercase;
}
.hero__scroll span { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: drip 2.2s var(--ease-out) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* =========================================================
   ABOUT + STATS
   ========================================================= */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__main { display: grid; gap: var(--s-4); }
.about__main .lead { max-width: 60ch; }
.about__points { list-style: none; padding: 0; display: grid; gap: 4px; margin-top: var(--s-3); }
.about__points li {
  display: grid; grid-template-columns: 44px 1fr; gap: var(--s-3); align-items: baseline;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.about__points li:last-child { border-bottom: 1px solid var(--line); }
.about__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); }
.about__card {
  position: sticky; top: 110px;
  display: grid; gap: var(--s-4);
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
  background: radial-gradient(90% 70% at 100% 0%, rgba(212, 170, 79, 0.12), transparent 60%), var(--bg-raised);
  border: 1px solid rgba(212, 170, 79, 0.28);
}
.about__motto { font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; }
.about__motto em { font-style: normal; color: var(--gold); }
.about__mission { color: var(--text-muted); }
.about__rows { display: grid; gap: 8px; margin: 0; }
.about__rows > div {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-3); align-items: center;
  padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line);
}
.about__rows dt { font-weight: 500; }
.about__rows dd { margin: 0; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted); }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__card { position: static; }
}
@media (max-width: 480px) { .about__rows > div { grid-template-columns: 1fr; gap: 4px; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-8); }
.stat { position: relative; padding-left: var(--s-4); display: grid; gap: var(--s-6); }
.stat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(var(--line-strong), var(--line-strong) 70%, transparent);
}
.stat::after {
  content: ""; position: absolute; left: -1px; bottom: 14px; width: 3px; height: 26px;
  background: var(--gold); border-radius: 2px;
}
.stat__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); max-width: 16ch; line-height: 1.5; }
.stat__value { font-weight: 300; font-size: clamp(3.2rem, 7vw, 5.6rem); line-height: 0.9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: 0.32em; letter-spacing: 0; color: var(--text-muted); margin-left: 6px; }

@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .stats { grid-template-columns: 1fr; gap: var(--s-5); }
  .stat { gap: var(--s-3); }
}

/* =========================================================
   PROBLEM — "the old way"
   ========================================================= */
.panel {
  background: radial-gradient(90% 80% at 80% 50%, rgba(212, 170, 79, 0.05), transparent 60%), var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.panel::before { /* faint dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(236, 226, 206, 0.13) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(70% 70% at 70% 50%, #000, transparent);
}
.problem__layout { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-6); align-items: center; }
.problem__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.problem__item button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 2px 1fr; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.problem__item button::before { content: ""; background: var(--line-strong); border-radius: 2px; transition: background var(--dur); }
.problem__item button:hover { background: rgba(255, 255, 255, 0.02); }
.problem__item.is-active button {
  background: linear-gradient(90deg, rgba(212, 170, 79, 0.1), rgba(212, 170, 79, 0.02));
  border-color: rgba(212, 170, 79, 0.45);
  box-shadow: 0 0 0 4px rgba(212, 170, 79, 0.05);
}
.problem__item.is-active button::before { background: var(--gold); }
.problem__title { display: flex; gap: 12px; align-items: baseline; font-size: 0.98rem; font-weight: 500; }
.problem__num { font-family: var(--font-mono); font-size: 0.74rem; color: var(--gold); }
.problem__icon { width: 18px; height: 18px; flex: none; align-self: center; color: var(--text-dim); transition: color var(--dur); }
.problem__item.is-active .problem__icon { color: var(--gold-hi); }
.problem__desc { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted); margin-top: 6px; line-height: 1.6; }

.dial { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial__needle { transform-origin: 210px 210px; transition: transform 900ms var(--ease-out); }
.dial__center {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px;
  pointer-events: none;
}
.dial__readout { font-weight: 300; font-size: clamp(2.2rem, 5vw, 3rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.dial__caption { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); max-width: 18ch; margin-inline: auto; }
.dial__node {
  position: absolute; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(180deg, #232327, #151518);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px -10px #000;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.dial__icon { width: 26px; height: 26px; color: var(--text-muted); transition: color var(--dur); }
.dial__node.is-lit .dial__icon { color: var(--gold-hi); }
.dial__node.is-lit { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft), 0 0 30px -4px rgba(212, 170, 79, 0.5); }
.dial__node--n { left: 50%; top: -6px; transform: translateX(-50%); }
.dial__node--e { right: -6px; top: 50%; transform: translateY(-50%); }
.dial__node--s { left: 50%; bottom: -6px; transform: translateX(-50%); }
.dial__node--w { left: -6px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
  .problem__layout { grid-template-columns: 1fr; }
  .dial { width: min(100%, 320px); order: -1; }
}

/* =========================================================
   SERVICES — isometric tile stack
   ========================================================= */
.iso-wrap { display: grid; place-items: center; height: clamp(300px, 46vw, 460px); margin-bottom: var(--s-6); perspective: 1600px; }
.iso {
  display: grid; grid-template-columns: repeat(3, var(--tile)); grid-template-rows: repeat(3, var(--tile)); gap: 14px;
  --tile: clamp(70px, 11vw, 116px);
  transform: rotateX(56deg) rotateZ(-45deg);
  transform-style: preserve-3d;
}
.iso__tile {
  position: relative; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2a2a2f, #141417 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    1px 1px 0 #0f0f11, 2px 2px 0 #0f0f11, 3px 3px 0 #0e0e10, 4px 4px 0 #0d0d0f,
    5px 5px 0 #0c0c0e, 6px 6px 0 #0b0b0d, 7px 7px 0 #0a0a0c, 8px 8px 0 #09090b,
    18px 22px 34px rgba(0, 0, 0, 0.7);
  transform-style: preserve-3d;
  transition: transform 450ms var(--ease-out), border-color var(--dur), box-shadow var(--dur);
}
.iso__tile img { width: 44%; height: auto; transform: rotateZ(45deg); opacity: 0.9; }
.iso__tile--empty { visibility: hidden; }
.iso__tile--core {
  background: linear-gradient(135deg, #34302a, #18160f 70%);
  border-color: rgba(212, 170, 79, 0.45);
}
.iso__tile--core img { width: 76%; opacity: 1; }
.iso__tile.is-hot {
  transform: translate(-10px, -10px);
  border-color: var(--gold);
  box-shadow:
    1px 1px 0 #0f0f11, 2px 2px 0 #0f0f11, 3px 3px 0 #0e0e10, 4px 4px 0 #0d0d0f,
    5px 5px 0 #0c0c0e, 6px 6px 0 #0b0b0d, 7px 7px 0 #0a0a0c, 8px 8px 0 #09090b,
    10px 10px 0 rgba(212, 170, 79, 0.25), 30px 36px 44px rgba(0, 0, 0, 0.75);
}

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.service {
  background: var(--bg); padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start;
  transition: background var(--dur) var(--ease-out);
  position: relative;
}
.service:hover, .service:focus-within { background: var(--bg-raised); }
.service__top { display: flex; align-items: center; justify-content: space-between; }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-soft); border: 1px solid rgba(212, 170, 79, 0.25);
}
.service__icon img { width: 26px; height: 26px; }
.service__num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); }
.service h3 { font-weight: 500; font-size: 1.2rem; letter-spacing: -0.015em; }
.service p { color: var(--text-muted); font-size: 0.95rem; }
.service__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin-top: auto; }
.service__tags li { font-family: var(--font-mono); font-size: 0.68rem; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-muted); }

@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } .service { padding: var(--s-4); } }

/* =========================================================
   PROCESS
   ========================================================= */
.process { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); position: relative; }
.process__track {
  position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-strong);
}
.process__track span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform 200ms linear; }
.step { position: relative; display: grid; gap: var(--s-3); align-content: start; }
.step__dot {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold-hi);
  background: var(--bg); border: 1px solid rgba(212, 170, 79, 0.5);
  box-shadow: 0 0 0 6px var(--bg);
}
.step h3 { font-weight: 500; font-size: 1.15rem; letter-spacing: -0.015em; margin-top: var(--s-2); }
.step p { color: var(--text-muted); font-size: 0.94rem; }
.step__time { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: var(--s-5); padding-left: 0; }
  .process__track { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process__track span { transform: scaleY(var(--progress, 0)); transform-origin: top; }
  .step { grid-template-columns: 46px 1fr; column-gap: var(--s-4); }
  .step > :not(.step__dot) { grid-column: 2; }
  .step__dot { grid-row: 1 / span 3; }
  .step h3 { margin-top: 0; }
}

/* =========================================================
   WORK / PORTFOLIO
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: var(--s-6); }
.filters button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 0.88rem; color: var(--text-muted);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.filters button:hover { color: var(--text); border-color: var(--text-dim); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.project { display: grid; gap: var(--s-3); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.project[hidden] { display: none; }
.project__frame {
  position: relative; aspect-ratio: 16 / 10.5; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
}
.project__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.45)); pointer-events: none; }
.mock {
  position: absolute; inset: 9% 8% -6%; border-radius: 10px 10px 0 0; overflow: hidden;
  background: var(--mock-bg, #f3efe7);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  transition: transform 700ms var(--ease-out);
}
.project:hover .mock { transform: translateY(-10px) scale(1.015); }
.mock__bar { height: 22px; background: rgba(0, 0, 0, 0.08); display: flex; align-items: center; gap: 5px; padding-left: 10px; }
.mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, 0.18); }
.mock img { display: block; width: 100%; height: auto; }

/* real project screenshots inside a browser frame */
.project__frame { display: block; aspect-ratio: 16 / 9.5;
  background: radial-gradient(90% 90% at 50% 0%, rgba(212, 170, 79, 0.16), transparent 60%), linear-gradient(180deg, #1a1916, #0f0f10); }
.project__frame .mock { inset: 15% 5% -2px; background: #111; display: flex; flex-direction: column; }
.project__frame .mock img { flex: 1; min-height: 0; object-fit: cover; object-position: top center; }
.project__frame .mock__bar { background: #1c1c1f; }
.project__frame .mock__bar i { background: rgba(255, 255, 255, 0.18); }
.project__visit {
  position: absolute; z-index: var(--z-raised); right: 14px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
  background: rgba(10, 10, 11, 0.7); border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.project__visit svg { width: 14px; height: 14px; }
.project__frame:hover .project__visit, .project__frame:focus-visible .project__visit { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.project__meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.project h3 { font-weight: 500; font-size: 1.12rem; letter-spacing: -0.01em; }
.project__cat { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.06em; }
.project p { color: var(--text-muted); font-size: 0.93rem; margin-top: -6px; }

@media (max-width: 760px) { .work { grid-template-columns: 1fr; } }

/* =========================================================
   PRICING
   ========================================================= */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-5); border-radius: var(--radius-lg);
  background: var(--bg-raised); border: 1px solid var(--line);
}
.plan--featured {
  background: linear-gradient(180deg, rgba(212, 170, 79, 0.1), rgba(212, 170, 79, 0.02) 40%), var(--bg-raised);
  border-color: rgba(212, 170, 79, 0.55);
  box-shadow: 0 30px 80px -40px rgba(212, 170, 79, 0.45);
}
.plan__badge {
  position: absolute; top: -12px; left: var(--s-5);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-weight: 500;
}
.plan__name { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price small { color: var(--text-muted); font-size: 0.9rem; }
.plan__price strong { font-weight: 300; font-size: 3rem; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__desc { color: var(--text-muted); font-size: 0.95rem; }
.plan__list { list-style: none; padding: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: var(--s-4); }
.plan__list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 0.94rem; }
.plan__list svg { width: 18px; height: 18px; color: var(--gold); margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }

/* package tabs + layouts */
.plan-tabs { margin-bottom: var(--s-6); }
.plan-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.plan-panel:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 8px; border-radius: var(--radius-lg); }
.plan-panel:not([hidden]) { animation: panel-in 420ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pricing--4 { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.pricing--4 .plan { padding: var(--s-4); }
.pricing--2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-inline: auto; }
.plan h3.plan__name { font-weight: 500; }
.plan .plan__desc { min-height: 3em; }
.plan .plan__price { font-size: 1.5rem; font-weight: 300; letter-spacing: -0.02em; color: var(--text); }
.plan__list li { font-size: 0.9rem; }
.plan__time {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--gold-hi);
  padding: 8px 12px; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1px solid rgba(212, 170, 79, 0.2);
  align-self: start;
}
.plan--custom {
  margin-top: var(--s-4);
  display: grid; grid-template-columns: 1fr 1.3fr auto; gap: var(--s-5); align-items: center;
  background: radial-gradient(70% 120% at 0% 0%, rgba(212, 170, 79, 0.12), transparent 60%), var(--bg-raised);
  border-color: rgba(212, 170, 79, 0.35);
}
.plan--custom > div { display: grid; gap: var(--s-3); }
.plan--custom .plan__desc { min-height: 0; }
.plan--custom .plan__list { grid-template-columns: 1fr 1fr; border-top: 0; padding-top: 0; }
.plan--custom .btn { width: auto; margin-top: 0; }

@media (max-width: 1100px) {
  .pricing--4 { grid-template-columns: repeat(2, 1fr); }
  .plan--custom { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pricing--4, .pricing--2 { grid-template-columns: 1fr; }
  .plan--custom .plan__list { grid-template-columns: 1fr; }
  .plan--custom .btn { width: 100%; }
}
.pricing-note { text-align: center; margin-top: var(--s-5); color: var(--text-muted); font-size: 0.92rem; }
.pricing-note a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .pricing:not(.pricing--4):not(.pricing--2) { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s-7); align-items: start; }
.faq-layout .section-head { text-align: left; justify-items: start; margin-bottom: 0; position: sticky; top: 120px; }
.faq-layout .section-head .lead { text-align: left; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center;
  padding: 22px 0; font-size: 1.08rem; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-hi); }
.faq__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform var(--dur) var(--ease-out), border-color var(--dur); }
.faq__icon svg { width: 16px; height: 16px; }
.faq details[open] .faq__icon { transform: rotate(45deg); border-color: var(--gold); color: var(--gold); }
.faq details p { color: var(--text-muted); padding: 0 48px 24px 0; max-width: 62ch; }

@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; gap: var(--s-5); }
  .faq-layout .section-head { position: static; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-7); align-items: start; position: relative; }
.contact__info { display: grid; gap: var(--s-4); align-content: start; }
.contact__list { list-style: none; padding: 0; display: grid; gap: 4px; margin-top: var(--s-3); }
.contact__list a, .contact__list div {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
  padding: 10px; margin-left: -10px; border-radius: var(--radius-sm); transition: background var(--dur-fast);
}
.contact__list a:hover { background: rgba(255, 255, 255, 0.03); }
.contact__list .ci {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--gold);
}
.contact__list .ci svg { width: 20px; height: 20px; }
.contact__list small { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 500; }
.field label .req { color: var(--gold); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line-strong); font-size: 1rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a29b90' stroke-width='1.8' viewBox='0 0 24 24'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field[data-invalid] input, .field[data-invalid] textarea, .field[data-invalid] select { border-color: var(--error); }
.field__error { font-size: 0.82rem; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; }
.form__note { font-size: 0.82rem; color: var(--text-dim); max-width: 40ch; }
.form__status { grid-column: 1 / -1; font-size: 0.92rem; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; }
.form__status:empty { display: none; }
.form__status[data-type="success"] { color: var(--success); border-color: rgba(159, 216, 164, 0.35); background: rgba(159, 216, 164, 0.06); }
.form__status[data-type="error"] { color: var(--error); border-color: rgba(255, 138, 122, 0.35); background: rgba(255, 138, 122, 0.06); }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: var(--s-6); }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding-block: var(--s-7) var(--s-5); margin-top: var(--s-8); position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; left: 50%; top: -1px; width: min(420px, 60%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-5); }
.footer__brand img { width: 170px; height: auto; margin-bottom: var(--s-3); }
.footer__brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 32ch; }
.footer h4 { font-family: var(--font-mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: var(--s-3); }
.footer ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.footer ul a { display: inline-flex; min-height: 34px; align-items: center; color: var(--text-muted); font-size: 0.92rem; transition: color var(--dur-fast); }
.footer ul a:hover { color: var(--gold-hi); }
.socials { display: flex; gap: 8px; margin-top: var(--s-4); }
.socials a { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--gold); transition: border-color var(--dur-fast), background var(--dur-fast); }
.socials a:hover { border-color: var(--gold); background: var(--gold-soft); }
.socials svg, .socials img { width: 20px; height: 20px; }
.footer__bottom { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); }
.footer__word {
  font-weight: 600; font-size: clamp(2rem, 10.5vw, 10.5rem); letter-spacing: -0.05em; line-height: 1.05; white-space: nowrap;
  text-align: center; margin-top: var(--s-7); padding-bottom: 0.06em; user-select: none;
  background: linear-gradient(180deg, rgba(212, 170, 79, 0.32) 10%, rgba(212, 170, 79, 0.1) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   COOKIE CONSENT (js/consent.js)
   ========================================================= */
.cc {
  position: fixed; left: 16px; bottom: 16px; z-index: 1200;
  width: min(440px, calc(100vw - 32px));
  opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.cc.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.cc__card {
  display: grid; gap: 14px; padding: 20px;
  background: rgba(17, 17, 19, 0.96); backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 170, 79, 0.35); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  color: var(--text); font-size: 0.92rem; line-height: 1.55;
}
.cc__title { font-weight: 500; font-size: 1.02rem; color: var(--gold-hi); }
.cc__text { color: var(--text-muted); }
.cc__text a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.cc__prefs { display: grid; gap: 8px; }
.cc__prefs[hidden] { display: none; }
.cc__row {
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); cursor: default;
}
label.cc__row { cursor: pointer; }
.cc__row p { color: var(--text-muted); font-size: 0.82rem; margin-top: 2px; }
.cc__always { font-family: var(--font-mono); font-size: 0.68rem; color: var(--gold); white-space: nowrap; }
.cc__switch { position: relative; flex: none; width: 44px; height: 26px; }
.cc__switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cc__switch span { position: absolute; inset: 0; border-radius: 999px; background: #2a2a2e; transition: background var(--dur-fast); }
.cc__switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform var(--dur-fast) var(--ease-out); }
.cc__switch input:checked + span { background: var(--gold); }
.cc__switch input:checked + span::after { transform: translateX(18px); background: var(--on-gold); }
.cc__switch input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.cc__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc__btn {
  flex: 1 1 auto; min-height: 42px; padding: 0 14px; border-radius: 999px; font-size: 0.86rem; font-weight: 500;
  border: 1px solid var(--line-strong); color: var(--text); background: transparent;
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}
.cc__btn:hover { border-color: var(--gold); color: var(--gold-hi); }
.cc__btn--primary, .cc__btn--save { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.cc__btn--primary:hover, .cc__btn--save:hover { background: var(--gold-hi); color: var(--on-gold); }
.cc__btn[hidden] { display: none; }
@media (max-width: 480px) { .cc { left: 8px; bottom: 8px; width: calc(100vw - 16px); } .cc__btn { flex-basis: 100%; } }

/* footer legal links */
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.footer__legal a, .footer__legal button {
  font: inherit; color: var(--text-dim); text-decoration: none; padding: 6px 0; min-height: 32px;
  transition: color var(--dur-fast);
}
.footer__legal a:hover, .footer__legal button:hover { color: var(--gold-hi); }

/* consent checkbox in the contact form */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; line-height: 1.5; font-weight: 400; color: var(--text-muted); cursor: pointer; }
.field .check input {
  flex: none; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0;
  border: 0; border-radius: 4px; background: none; box-shadow: none; accent-color: var(--gold); cursor: pointer;
}
.check a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.check .req { color: var(--gold); margin-left: 2px; }
.field[data-invalid] .check input { outline: 2px solid var(--error); outline-offset: 2px; }
.field textarea::placeholder { line-height: 1.6; }

/* =========================================================
   LEGAL PAGES (privacy / cookies)
   ========================================================= */
.legal-top {
  position: sticky; top: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter); background: rgba(10, 10, 11, 0.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.legal-top__logo img { width: 64px; height: auto; }
.legal-top__right { display: flex; align-items: center; gap: 10px; }
.legal { max-width: 780px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) 40px; }
.legal h1 { font-weight: 300; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; }
.legal .updated { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); margin-bottom: 40px; }
.legal h2 { font-weight: 500; font-size: 1.3rem; letter-spacing: -0.01em; margin: 40px 0 12px; color: var(--gold-hi); }
.legal h3 { font-weight: 500; font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-muted); line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 10px 0; }
.legal a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal .todo { background: rgba(255, 138, 122, 0.12); color: var(--error); padding: 0 4px; border-radius: 4px; }
.legal .table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-muted); }
.legal th { color: var(--text); font-weight: 500; background: var(--bg-raised); }
.legal code { font-family: var(--font-mono); font-size: 0.85em; color: var(--stone); }
.legal .btn { margin-top: 12px; }

.service__more { margin-top: auto; padding-top: 14px; font-size: 0.88rem; color: var(--gold-hi); text-decoration: none; }
.service__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Service pages (/kataskevi-eshop/ …) — generated by build.py from pages/ ===== */
.subpage .nav.is-scrolled .nav__bar, .subpage .nav .nav__bar { background: rgba(12, 12, 13, 0.86); border-color: var(--line-strong); }
.page-hero { padding: clamp(140px, 18vw, 220px) 0 clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 0%, rgba(212, 170, 79, 0.10), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; display: grid; gap: var(--s-4); max-width: 900px; }
.page-hero .h-display { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.page-hero .lead { max-width: 64ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-dim); }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs [aria-current] { color: var(--text); }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.page-hero__facts { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.page-hero__facts li { display: grid; gap: 2px; }
.page-hero__facts strong { font-weight: 300; font-size: 1.9rem; letter-spacing: -0.03em; color: var(--gold-hi); line-height: 1; }
.page-hero__facts span { font-size: 0.85rem; color: var(--text-muted); }
.service__icon svg { width: 26px; height: 26px; color: var(--gold-hi); }
.showcase { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.showcase__text { display: grid; gap: var(--s-3); justify-items: start; }
.showcase__list { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; color: var(--text-muted); }
.showcase__list li { padding-left: 22px; position: relative; }
.showcase__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold-hi); }
.showcase .project { margin: 0; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .page-hero { padding-top: 120px; }
}

/* Instagram-grid mock on /social-media-design/ */
.ig-mock { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px; max-width: 420px; width: 100%; justify-self: center; }
.ig-mock__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.ig-mock__head i { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--gold-hi), var(--gold) 70%); }
.ig-mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ig-mock__grid span { aspect-ratio: 1; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; border-radius: 4px; }
.ig-mock__grid .t1 { background: var(--gold); color: #141414; }
.ig-mock__grid .t2 { background: linear-gradient(135deg, var(--bg-raised), var(--bg-elev, #1c1c1e)); }
.ig-mock__grid .t3 { background: var(--bg-raised); color: var(--gold-hi); border: 1px solid var(--gold-soft); }
.ig-mock__grid .t4 { background: #141414; color: var(--text); font-size: 1.4rem; border: 1px solid var(--line); }
