/* ==========================================================================
   IgoroTech — Homepage design system ("Terraces at Night")
   Standalone stylesheet for index.php. Interior pages keep style.css.

   Direction: near-black forest base (dev-studio convention: restraint,
   console-like seriousness), one sharp accent (ember, from the Cordillera
   woven textile in the logo), gold used only inside the weave motif.
   Display serif + grotesk body + mono labels.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — dark (base → elevated → floating) */
  --ink-950: #0a110d;
  --ink-900: #0f1813;
  --ink-850: #131f19;
  --ink-800: #192820;
  --ink-700: #22362b;

  /* Surfaces — paper */
  --paper-50: #f6f2e8;
  --paper-100: #efe9db;
  --paper-200: #e4dcc8;
  --paper-card: #fbf8f1;

  /* Text */
  --text-on-dark: #f1ede2;
  --text-on-dark-2: #b8bcae;
  --text-on-dark-3: #848d80;
  --text-on-paper: #15211b;
  --text-on-paper-2: #46524a;
  --text-on-paper-3: #6c7569;

  /* Brand */
  --color-primary: #d9481f;          /* ember — admin "custom_primary" overrides this */
  --color-primary-hover: #c23d17;
  --color-secondary: #7fc28c;        /* terrace leaf */
  --color-accent: #d9a441;           /* gold thread */
  --leaf-deep: #2f6b45;
  --weave-red: #b8321f;
  --weave-black: #1a1410;

  /* Lines */
  --line-dark: rgba(241, 237, 226, 0.09);
  --line-dark-strong: rgba(241, 237, 226, 0.18);
  --line-paper: rgba(21, 33, 27, 0.12);

  /* Type */
  --font-heading: 'Instrument Serif', 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Spacing scale (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Radius */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;

  /* Shadows — layered, tinted */
  --shadow-1: 0 1px 2px rgba(5, 12, 8, 0.25), 0 2px 8px rgba(5, 12, 8, 0.18);
  --shadow-2: 0 2px 4px rgba(5, 12, 8, 0.22), 0 12px 32px -8px rgba(5, 12, 8, 0.45);
  --shadow-3: 0 4px 8px rgba(5, 12, 8, 0.25), 0 32px 64px -16px rgba(5, 12, 8, 0.6), 0 0 0 1px var(--line-dark);
  --shadow-paper: 0 1px 2px rgba(60, 48, 20, 0.06), 0 8px 24px -10px rgba(60, 48, 20, 0.18);
  --shadow-ember: 0 8px 24px -8px rgba(217, 72, 31, 0.55);

  /* Motion */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1200px;
  --nav-h: 72px;

  /* Cordillera weave — reusable stripe */
  --weave: repeating-linear-gradient(90deg,
      var(--weave-red) 0 14px, var(--weave-black) 14px 18px,
      var(--color-accent) 18px 22px, var(--weave-black) 22px 26px,
      var(--weave-red) 26px 40px, #e7dfc9 40px 42px,
      var(--leaf-deep) 42px 50px, #e7dfc9 50px 52px);

  /* Film grain */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-on-dark);
  background-color: var(--ink-950);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(47, 107, 69, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(217, 72, 31, 0.07), transparent 60%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Film grain over everything (non-interactive) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: overlay;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--color-primary); color: var(--paper-50); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 10000;
  padding: var(--s-2) var(--s-4);
  background: var(--paper-50);
  color: var(--text-on-paper);
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus-visible { top: var(--s-4); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hide the legacy visitor theme picker on the homepage — one committed brand */
.theme-gear-btn, .theme-picker-panel { display: none !important; }

/* --------------------------------------------------------------------------
   3. Shared section primitives
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: var(--s-10) 0;
}

.section--paper {
  background-color: var(--paper-50);
  background-image:
    radial-gradient(800px 400px at 100% 0%, rgba(217, 164, 65, 0.10), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(47, 107, 69, 0.08), transparent 60%);
  color: var(--text-on-paper);
}
.section--paper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: multiply;
}
.section--paper > .container { position: relative; z-index: 1; }

.weave {
  height: 8px;
  background: var(--weave);
  opacity: 0.95;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 6px;
  background: var(--weave);
  border-radius: 1px;
}
.section--paper .eyebrow { color: var(--leaf-deep); }

.section__header {
  display: grid;
  gap: var(--s-4);
  max-width: 760px;
  margin-bottom: var(--s-8);
}
.section__header--split {
  max-width: none;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: var(--s-7);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: inherit;
}
.section__title em { font-style: italic; color: var(--color-primary); }

.section__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-on-dark-2);
  max-width: 560px;
}
.section--paper .section__subtitle { color: var(--text-on-paper-2); }

/* --------------------------------------------------------------------------
   4. Buttons  (every variant: hover / focus-visible / active)
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-spring), opacity 0.2s ease,
              background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}
.btn svg { transition: transform 0.35s var(--ease-spring); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.btn--primary {
  background: var(--color-primary);
  color: #fbf7ee;
  box-shadow: var(--shadow-ember);
}
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); }

.btn--ghost {
  background: rgba(241, 237, 226, 0.04);
  border-color: var(--line-dark-strong);
  color: var(--text-on-dark);
}
.btn--ghost:hover { background: rgba(241, 237, 226, 0.09); border-color: rgba(241, 237, 226, 0.32); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--outline:hover { background: var(--text-on-paper); color: var(--paper-50); border-color: var(--text-on-paper); transform: translateY(-2px); }

.btn--lg { min-height: 56px; padding: 0 var(--s-6); font-size: 17px; }
.btn--sm { min-height: 40px; padding: 0 var(--s-4); font-size: 14px; }
.btn--block { width: 100%; }

/* Ripple created by app.js MicroInteractions */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}
.btn .ripple.active { animation: ripple 0.6s ease-out forwards; }
@keyframes ripple { to { transform: scale(2.4); opacity: 0; } }

/* Text link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.link-arrow:hover { border-color: currentColor; }
.link-arrow:active { opacity: 0.7; }

/* --------------------------------------------------------------------------
   5. Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10, 17, 13, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
body:has(.admin-toolbar) .navbar { top: 48px; }

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.navbar__brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  border-radius: var(--r-sm);
  transition: opacity 0.2s ease;
}
.navbar__brand:hover { opacity: 0.85; }
.navbar__brand:active { opacity: 0.7; }
.navbar__brand picture { display: inline-flex; }
.navbar__logo { width: auto; height: 44px; object-fit: contain; }
.navbar__name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
}
.navbar__name-accent { color: var(--color-primary); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.navbar__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-on-dark-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.navbar__link:hover { color: var(--text-on-dark); background: rgba(241, 237, 226, 0.06); }
.navbar__link:active { background: rgba(241, 237, 226, 0.1); }
.navbar__link.active { color: var(--text-on-dark); }
.navbar__link.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 4px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--color-primary);
}

.navbar__actions { display: flex; align-items: center; gap: var(--s-3); }

.navbar__hamburger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--r-pill);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.navbar__hamburger:hover { background: rgba(241, 237, 226, 0.06); }
.navbar__hamburger:active { background: rgba(241, 237, 226, 0.12); }
.hamburger__line {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.navbar__hamburger.active .hamburger__line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__hamburger.active .hamburger__line:nth-child(2) { opacity: 0; }
.navbar__hamburger.active .hamburger__line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + var(--s-9)) 0 var(--s-9);
  overflow: hidden;
  isolation: isolate;
}

/* Terrace contour lines */
.hero__terraces {
  position: absolute;
  inset: auto -5% -2% -5%;
  height: 70%;
  z-index: -1;
  color: var(--color-secondary);
  opacity: 0.16;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
}
.hero__terraces svg { width: 100%; height: 100%; }

.hero__glow {
  position: absolute;
  z-index: -1;
  width: 640px; height: 640px;
  right: -160px; top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 72, 31, 0.18), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-8);
  align-items: center;
}

.hero__content { display: grid; gap: var(--s-5); will-change: transform, opacity; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  justify-self: start;
  padding: var(--s-2) var(--s-4) var(--s-2) var(--s-3);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--r-pill);
  background: rgba(241, 237, 226, 0.03);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-2);
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(127, 194, 140, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.85); } }

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text-on-dark);
  text-wrap: balance;
}

.hero__subtitle {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
  color: var(--text-on-dark-2);
  max-width: 540px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-3);
  font-size: 14px;
  color: var(--text-on-dark-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__meta svg { color: var(--color-secondary); flex-shrink: 0; }

/* Build-log console — schematic visual instead of stock photo */
.console {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  box-shadow: var(--shadow-3);
  overflow: hidden;
  transform: rotate(-1.2deg);
  animation: rise 0.9s var(--ease-out) 0.25s both;
}
.console::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--weave);
}
.console__bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5) var(--s-3);
  margin-top: 6px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-on-dark-3);
}
.console__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-700); }
.console__title { margin-left: auto; }
.console__body {
  padding: var(--s-5);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 2;
  color: var(--text-on-dark-2);
}
.console__line { display: flex; gap: var(--s-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; animation: type-in 0.4s var(--ease-out) forwards; }
.console__line:nth-child(1) { animation-delay: 0.6s; }
.console__line:nth-child(2) { animation-delay: 0.9s; }
.console__line:nth-child(3) { animation-delay: 1.15s; }
.console__line:nth-child(4) { animation-delay: 1.4s; }
.console__line:nth-child(5) { animation-delay: 1.65s; }
.console__line:nth-child(6) { animation-delay: 1.9s; }
.console__line:nth-child(7) { animation-delay: 2.15s; }
.c-prompt { color: var(--color-primary); }
.c-ok { color: var(--color-secondary); }
.c-key { color: var(--text-on-dark); }
.c-dim { color: var(--text-on-dark-3); }
.c-gold { color: var(--color-accent); }
.console__cursor {
  display: inline-block;
  width: 8px; height: 16px;
  vertical-align: -3px;
  background: var(--color-primary);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes type-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) rotate(-1.2deg); } to { opacity: 1; transform: rotate(-1.2deg); } }

.console__footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}
.console__stat { padding: var(--s-4) var(--s-5); border-right: 1px solid var(--line-dark); }
.console__stat:last-child { border-right: 0; }
.console__stat strong { display: block; font-family: var(--font-heading); font-size: 28px; font-weight: 400; line-height: 1.1; color: var(--text-on-dark); }
.console__stat span { font-size: 12px; color: var(--text-on-dark-3); }

/* Hero entrance (load-time stagger) */
.hero__content > * { animation: rise-plain 0.8s var(--ease-out) both; }
.hero__content > *:nth-child(1) { animation-delay: 0.05s; }
.hero__content > *:nth-child(2) { animation-delay: 0.12s; }
.hero__content > *:nth-child(3) { animation-delay: 0.2s; }
.hero__content > *:nth-child(4) { animation-delay: 0.28s; }
.hero__content > *:nth-child(5) { animation-delay: 0.36s; }
@keyframes rise-plain { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   7. Proof strip (stats)
   -------------------------------------------------------------------------- */
.proof {
  position: relative;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(25, 40, 32, 0.6), rgba(15, 24, 19, 0.6));
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-card {
  padding: var(--s-7) var(--s-5);
  border-right: 1px solid var(--line-dark);
}
.stat-card:last-child { border-right: 0; }
.stat-card__number, .stat-card__value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
}
.stat-card__label {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-3);
}

/* --------------------------------------------------------------------------
   8. About + process
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: start;
}
.about__lead {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-on-paper);
}
.about__text { display: grid; gap: var(--s-5); color: var(--text-on-paper-2); }
.about__text .btn { justify-self: start; margin-top: var(--s-3); }

.process { display: grid; gap: var(--s-3); counter-reset: step; }
.process__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--paper-card);
  border: 1px solid var(--line-paper);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-paper);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
}
.process__step:hover { transform: translateX(6px); border-color: rgba(217, 72, 31, 0.35); }
.process__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  padding-top: 4px;
}
.process__title { font-family: var(--font-body); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-on-paper); margin-bottom: var(--s-1); }
.process__desc { font-size: 15px; line-height: 1.6; color: var(--text-on-paper-2); }

/* --------------------------------------------------------------------------
   9. Services — bento
   -------------------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}
.service-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 280px;
  padding: var(--s-6);
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(500px 220px at 100% 0%, rgba(217, 72, 31, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--line-dark-strong); box-shadow: var(--shadow-2); }
.service-card:hover::before { opacity: 1; }

.service-card:nth-child(1) { grid-column: span 7; }
.service-card:nth-child(2) { grid-column: span 5; }
.service-card:nth-child(6) {
  grid-column: span 12;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
  min-height: 0;
}
.service-card:nth-child(6) .service-card__top { display: contents; }
.service-card:nth-child(6) .service-card__icon { order: 1; }
.service-card:nth-child(6) .service-card__body { order: 2; margin: 0; }
.service-card:nth-child(6) .service-card__index { order: 3; align-self: start; }

.service-card__top { display: flex; align-items: center; justify-content: space-between; }
.service-card__index { font-family: var(--font-mono); font-size: 12px; color: var(--text-on-dark-3); letter-spacing: 0.08em; }
.service-card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(127, 194, 140, 0.1);
  border: 1px solid rgba(127, 194, 140, 0.22);
  color: var(--color-secondary);
  flex-shrink: 0;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__body { display: grid; gap: var(--s-3); margin-top: auto; }
.service-card__title {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}
.service-card:nth-child(1) .service-card__title { font-size: 40px; }
.service-card__desc { font-size: 15.5px; line-height: 1.65; color: var(--text-on-dark-2); max-width: 560px; }

.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-dark);
}
.stack__label {
  margin-right: var(--s-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-3);
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--s-3);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-on-dark-2);
  background: rgba(241, 237, 226, 0.02);
}

/* --------------------------------------------------------------------------
   10. Portfolio
   -------------------------------------------------------------------------- */
.services { padding-bottom: var(--s-8); }
.portfolio { padding-top: var(--s-6); background: linear-gradient(180deg, var(--ink-950), var(--ink-900)); }

.portfolio__filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  padding: var(--s-1);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  background: rgba(241, 237, 226, 0.03);
  justify-self: end;
}
.portfolio__filter {
  min-height: 40px;
  padding: 0 var(--s-4);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-dark-2);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s var(--ease-spring);
}
.portfolio__filter:hover { color: var(--text-on-dark); background: rgba(241, 237, 226, 0.06); }
.portfolio__filter:active { transform: scale(0.96); }
.portfolio__filter.active { background: var(--paper-50); color: var(--text-on-paper); }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--line-dark-strong); }
.portfolio-card:active { transform: translateY(-2px) scale(0.99); }
.portfolio-card:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.portfolio-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-800);
}
.portfolio-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.8s var(--ease-out);
}
.portfolio-card:hover .portfolio-card__image img { transform: scale(1.06); }
/* colour treatment + legibility overlay */
.portfolio-card__image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(47, 107, 69, 0.18), rgba(217, 72, 31, 0.08));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.portfolio-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(10, 17, 13, 0.45), transparent 40%);
  pointer-events: none;
}
.portfolio-card__badge {
  position: absolute;
  z-index: 2;
  left: var(--s-4); top: var(--s-4);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  background: rgba(10, 17, 13, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-dark-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}
.portfolio-card__zoom {
  position: absolute;
  z-index: 2;
  right: var(--s-4); bottom: var(--s-4);
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper-50);
  color: var(--text-on-paper);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.4s var(--ease-spring);
}
.portfolio-card:hover .portfolio-card__zoom,
.portfolio-card:focus-visible .portfolio-card__zoom { opacity: 1; transform: none; }

.portfolio-card__body { display: grid; gap: var(--s-2); padding: var(--s-5); flex: 1; align-content: start; }
.portfolio-card__client { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-secondary); }
.portfolio-card__title { font-family: var(--font-body); font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; color: var(--text-on-dark); }
.portfolio-card__desc { font-size: 15px; line-height: 1.6; color: var(--text-on-dark-2); }
.portfolio-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-2); }
.portfolio-card__tags .chip { min-height: 26px; font-size: 11.5px; }

/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-5);
}
.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  padding: var(--s-6);
  background: var(--paper-card);
  border: 1px solid var(--line-paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-paper);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  right: var(--s-5); top: -6px;
  font-family: var(--font-heading);
  font-size: 120px;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.18;
}
.testimonial-card__stars { display: flex; gap: 2px; color: var(--color-accent); }
.testimonial-card__quote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-on-paper);
}
.testimonial-card__author { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line-paper); }
.testimonial-card__avatar img,
.testimonial-card__avatar-placeholder {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-card__avatar-placeholder {
  display: grid;
  place-items: center;
  background: var(--leaf-deep);
  color: var(--paper-50);
  font-weight: 700;
}
.testimonial-card__name { display: block; font-weight: 700; color: var(--text-on-paper); }
.testimonial-card__role { display: block; font-size: 14px; color: var(--text-on-paper-3); }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq__layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-9);
  align-items: start;
}
.faq__aside { position: sticky; top: calc(var(--nav-h) + var(--s-6)); display: grid; gap: var(--s-4); }
.faq__aside .section__header { margin-bottom: var(--s-3); }
.faq__help { font-size: 15px; color: var(--text-on-paper-2); }

.faq__accordion { border-top: 1px solid var(--line-paper); }
.faq-item { border-bottom: 1px solid var(--line-paper); }
.faq-item__header { display: flex; align-items: center; gap: var(--s-3); }
.faq-item__trigger {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  width: 100%;
  min-height: 72px;
  padding: var(--s-5) 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--text-on-paper);
  transition: color 0.2s ease, opacity 0.2s ease;
}
.faq-item__trigger:hover { color: var(--color-primary); }
.faq-item__trigger:active { opacity: 0.75; }
.faq-item__question { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.faq-item__chevron {
  flex-shrink: 0;
  width: 36px; height: 36px;
  padding: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-paper);
  transition: transform 0.4s var(--ease-spring), background-color 0.2s ease, color 0.2s ease;
}
.faq-item.active .faq-item__chevron { transform: rotate(45deg); background: var(--text-on-paper); color: var(--paper-50); border-color: var(--text-on-paper); }
.faq-item__answer { color: var(--text-on-paper-2); }
/* app.js sets inline padding '1rem'; keep text aligned with the question */
.faq-item__answer { padding-left: 0 !important; padding-right: 0 !important; }
.faq-item__answer p { max-width: 640px; padding-bottom: var(--s-2); }

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact { overflow: hidden; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--s-9);
  align-items: start;
}
.contact__intro { display: grid; gap: var(--s-5); }
.contact__intro .section__header { margin-bottom: 0; }

.contact-info { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.contact-info__item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-info__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(241, 237, 226, 0.04);
  border: 1px solid var(--line-dark-strong);
  color: var(--color-secondary);
  flex-shrink: 0;
}
.contact-info__item strong { display: block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-dark-3); }
.contact-info__item a, .contact-info__item span { font-size: 17px; color: var(--text-on-dark); transition: color 0.2s ease; }
.contact-info__item a:hover { color: var(--color-primary); }
.contact-info__item a:active { opacity: 0.7; }

.social-links { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.social-link {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-dark-strong);
  color: var(--text-on-dark-2);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.35s var(--ease-spring);
}
.social-link:hover { color: var(--paper-50); background: var(--color-primary); border-color: var(--color-primary); transform: translateY(-3px); }
.social-link:active { transform: translateY(0) scale(0.95); }
.social-link svg { width: 18px; height: 18px; }

.contact-form {
  position: relative;
  display: grid;
  gap: var(--s-4);
  padding: var(--s-7);
  background: var(--paper-50);
  color: var(--text-on-paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
}
.contact-form::before {
  content: '';
  position: absolute;
  left: var(--s-7); right: var(--s-7); top: 0;
  height: 6px;
  background: var(--weave);
  border-radius: 0 0 2px 2px;
}
.contact-form__title { font-family: var(--font-heading); font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.contact-form__note { font-size: 14px; color: var(--text-on-paper-3); margin-top: calc(var(--s-3) * -1); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-group { display: grid; gap: var(--s-2); align-content: start; }
.form-label { font-size: 13.5px; font-weight: 600; color: var(--text-on-paper-2); transition: color 0.2s ease; }
.form-label.focused { color: var(--color-primary); }
.required { color: var(--color-primary); }
.form-input {
  width: 100%;
  min-height: 50px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--paper-200);
  border-radius: var(--r-md);
  background: var(--paper-card);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-on-paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-input::placeholder { color: #9a9e93; }
.form-input:hover { border-color: #cfc5ad; }
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(217, 72, 31, 0.14); background: #fff; }
.form-textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form-input.invalid { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1); }
.field-error { font-size: 13px; color: #b42318; }

.form-message:empty { display: none; }
.form-message { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); font-size: 15px; font-weight: 500; }
.form-message.success { background: #e3f1e5; color: #1f5631; border: 1px solid #b9dcc0; }
.form-message.error { background: #fbe9e6; color: #8f1f13; border: 1px solid #f2c4bc; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer { background: #070c09; color: var(--text-on-dark-2); }
.footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  padding: var(--s-9) 0 var(--s-8);
  border-bottom: 1px solid var(--line-dark);
}
.footer__cta-title { font-family: var(--font-heading); font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.035em; color: var(--text-on-dark); }
.footer__cta-title em { font-style: italic; color: var(--color-primary); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
  gap: var(--s-7);
  padding: var(--s-8) 0;
}
.footer__logo { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 800; letter-spacing: 0.04em; color: var(--text-on-dark); transition: opacity 0.2s ease; }
.footer__logo:hover { opacity: 0.85; }
.footer__logo:active { opacity: 0.7; }
.footer__logo picture { display: inline-flex; }
.footer__logo img { height: 40px; width: auto; }
.footer__tagline { margin-top: var(--s-4); font-size: 15px; max-width: 320px; }
.footer__heading { margin-bottom: var(--s-4); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-dark-3); }
.footer__links ul { display: grid; gap: var(--s-2); }
.footer__links a { font-size: 15px; color: var(--text-on-dark-2); transition: color 0.2s ease; }
.footer__links a:hover { color: var(--text-on-dark); }
.footer__links a:active { opacity: 0.7; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-5) 0 var(--s-6);
  border-top: 1px solid var(--line-dark);
  font-size: 13.5px;
  color: var(--text-on-dark-3);
}

/* --------------------------------------------------------------------------
   15. JS-created widgets: lightbox, back-to-top, scroll progress
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: var(--s-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(5, 9, 7, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox-content { position: relative; display: grid; gap: var(--s-3); justify-items: center; max-width: min(1100px, 100%); transform: scale(0.96); transition: transform 0.4s var(--ease-spring); }
.lightbox.active .lightbox-content { transform: none; }
.lightbox-img { max-height: 78vh; width: auto; border-radius: var(--r-md); box-shadow: var(--shadow-3); }
.lightbox-caption { font-size: 15px; color: var(--text-on-dark-2); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-dark-strong);
  background: rgba(15, 24, 19, 0.85);
  color: var(--text-on-dark);
  font-size: 22px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.3s var(--ease-spring);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--color-primary); }
.lightbox-close:active, .lightbox-prev:active, .lightbox-next:active { transform: scale(0.92); }
.lightbox-close { top: -60px; right: 0; }
.lightbox-prev { left: -64px; top: 50%; margin-top: -24px; }
.lightbox-next { right: -64px; top: 50%; margin-top: -24px; }

.back-to-top {
  position: fixed;
  right: var(--s-5); bottom: var(--s-5);
  z-index: 900;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-dark-strong);
  background: rgba(15, 24, 19, 0.9);
  color: var(--text-on-dark);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-spring), background-color 0.2s ease;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--color-primary); }
.back-to-top:active { transform: scale(0.92); }

.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  z-index: 1100;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent), var(--color-primary));
}

/* --------------------------------------------------------------------------
   16. Scroll reveal (app.js adds .animated)
   -------------------------------------------------------------------------- */
.fade-in, .slide-up, .slide-left, .slide-right {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
}
.slide-up { transform: translateY(28px); }
.slide-left { transform: translateX(-28px); }
.slide-right { transform: translateX(28px); }
.fade-in.animated, .slide-up.animated, .slide-left.animated, .slide-right.animated { opacity: 1; transform: none; }
/* Cards own their hover transform once revealed */
.service-card.animated:hover { transform: translateY(-4px); }
.portfolio-card.animated:hover { transform: translateY(-6px); }

/* No-JS safety: never leave content invisible */
.no-js .fade-in, .no-js .slide-up, .no-js .slide-left, .no-js .slide-right { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   17. Admin editor compatibility
   -------------------------------------------------------------------------- */
.edit-action-btn { justify-self: start; }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero__layout { grid-template-columns: 1fr; gap: var(--s-8); }
  .console { max-width: 620px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card:nth-child(n) { grid-column: span 1; }
  .service-card:nth-child(1) { grid-column: span 2; }
  .service-card:nth-child(6) { grid-column: span 2; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .faq__layout, .contact__grid { gap: var(--s-7); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .lightbox-prev { left: 0; } .lightbox-next { right: 0; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .container { padding: 0 var(--s-4); }
  .section { padding: var(--s-9) 0; }
  .section__header { margin-bottom: var(--s-7); }
  .section__header--split { grid-template-columns: 1fr; gap: var(--s-5); }
  .portfolio__filters { justify-self: start; }

  /* Mobile nav */
  .navbar__hamburger { display: inline-flex; position: relative; z-index: 2; }
  .navbar__cta { display: none; }
  .navbar__nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s-9) var(--s-5) var(--s-7);
    background: var(--ink-950);
    background-image: radial-gradient(600px 400px at 100% 0%, rgba(47, 107, 69, 0.3), transparent 60%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
  }
  .navbar__nav.active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease, transform 0.4s var(--ease-out), visibility 0s; }
  .navbar.menu-open { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .navbar__links { flex-direction: column; align-items: stretch; gap: 0; }
  .navbar__links li { border-bottom: 1px solid var(--line-dark); }
  .navbar__link {
    width: 100%;
    min-height: 64px;
    padding: 0;
    border-radius: 0;
    font-family: var(--font-heading);
    font-size: 36px;
    letter-spacing: -0.02em;
    color: var(--text-on-dark);
  }
  .navbar__link:hover { background: transparent; color: var(--color-primary); }
  .navbar__link.active::after { left: auto; right: 0; bottom: 50%; margin: 0 0 -2px; }
  .navbar__nav-cta.navbar__link {
    display: inline-flex !important;
    width: auto;
    min-height: 56px;
    margin-top: var(--s-7);
    padding: 0 var(--s-6);
    border-radius: var(--r-pill);
    font-family: var(--font-body);
    font-size: 17px;
    letter-spacing: 0;
    color: #fbf7ee;
    align-self: flex-start;
  }
  .navbar__nav-cta.navbar__link:hover { background: var(--color-primary-hover); color: #fbf7ee; }
  .navbar__nav-cta.navbar__link::after { display: none; }

  .hero { padding: calc(var(--nav-h) + var(--s-7)) 0 var(--s-8); }
  .hero__title { font-size: clamp(44px, 12vw, 60px); }
  .console { transform: none; animation-name: rise-plain; }
  .console__body { font-size: 12px; padding: var(--s-4); }
  .console__stat { padding: var(--s-3) var(--s-4); }
  .console__stat strong { font-size: 22px; }

  .proof__grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: var(--s-6) var(--s-4); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }

  .about__grid, .faq__layout, .contact__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .faq__aside { position: static; }

  .services__grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .service-card, .service-card:nth-child(n) { grid-column: span 1; min-height: 0; padding: var(--s-5); flex-direction: column; align-items: stretch; }
  .service-card__title, .service-card:nth-child(1) .service-card__title { font-size: 28px; }
  .service-card:nth-child(6) { display: flex; gap: var(--s-4); }
  .service-card:nth-child(6) .service-card__top { display: flex; }

  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio-card__zoom { opacity: 1; transform: none; }

  .testimonials__grid { grid-template-columns: 1fr; }

  .contact-form { padding: var(--s-6) var(--s-5); }
  .contact-form::before { left: var(--s-5); right: var(--s-5); }
  .form-row { grid-template-columns: 1fr; }

  .footer__cta { flex-direction: column; align-items: flex-start; padding: var(--s-8) 0 var(--s-7); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-6); padding: var(--s-7) 0; }

  .lightbox-close { top: -56px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: -64px; margin: 0; }
  .lightbox-prev { left: calc(50% - 56px); } .lightbox-next { right: calc(50% - 56px); }
}

@media (min-width: 768px) {
  .navbar__nav-cta { display: none !important; }
}

/* --------------------------------------------------------------------------
   19. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .fade-in, .slide-up, .slide-left, .slide-right { opacity: 1; transform: none; }
  .console__line { opacity: 1; }
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */
@media print {
  body { background: #fff; color: #111; font-size: 11pt; }
  body::after, .navbar, .hero__terraces, .hero__glow, .console, .back-to-top, .scroll-progress-bar, .portfolio__filters, .contact-form, .lightbox { display: none !important; }
  .section, .section--paper, .footer, .portfolio, .proof { background: #fff !important; color: #111 !important; padding: 16pt 0; }
  .fade-in, .slide-up, .slide-left, .slide-right { opacity: 1 !important; transform: none !important; }
  .service-card, .portfolio-card, .testimonial-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; background: #fff; }
  .service-card__title, .hero__title, .section__title, .portfolio-card__title, .stat-card__number { color: #111; }
  .service-card__desc, .portfolio-card__desc, .hero__subtitle, .section__subtitle { color: #333; }
}
