/* ============================================================
   FORGECRAFT — v3 · grey / white / baby-blue
   ============================================================ */

:root {
  --bg: #1E2024;
  --surface: rgba(255,255,255,0.05);
  --surface-2: rgba(255,255,255,0.03);
  --ink: #ECECEC;
  --accent: #4FA8DE;
  --glow: #A9DDF5;
  --text: #ECECEC;
  --text-2: rgba(255,255,255,0.5);
  --line: rgba(255,255,255,0.11);
  --radius: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }


h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 400; }

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.noise {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

main { position: relative; z-index: 1; }

/* ============================================================
   FIXED BRAND (top right) + DOCK (bottom center)
   ============================================================ */
.brand {
  position: absolute; top: 1.6rem; right: clamp(1.2rem, 3.5vw, 3rem); z-index: 90;
  display: flex; align-items: center; gap: 0.6rem;
}
.brand-mark { width: 30px; height: auto; }
.brand span {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.5rem; letter-spacing: -0.01em;
  color: #ECECEC;
}

.dock {
  position: fixed; top: 1.4rem; left: 50%; transform: translateX(-50%);
  z-index: 95;
  display: flex; align-items: center; gap: 0.6rem;
  background: #14171B;
  border-radius: 999px;
  padding: 0.45rem 0.5rem 0.45rem 1rem;
  box-shadow: 0 14px 40px rgba(15,23,42,0.25), 0 2px 10px rgba(15,23,42,0.15);
  transition: transform 0.5s var(--ease), box-shadow 0.4s ease;
}
.dock:hover { transform: translateX(-50%) translateY(-2px); }

.dock-burger {
  background: none; border: 0; cursor: pointer;
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.dock-burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform 0.35s var(--ease);
}
.dock-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.dock-burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.dock-logo { width: 40px; display: flex; align-items: center; padding: 0 0.3rem; }

.dock-cta {
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  color: #14171B; background: #fff;
  border-radius: 999px; padding: 0.65rem 1.4rem;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
  white-space: nowrap;
}
.dock-cta:hover {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 24px rgba(79,168,222,0.45);
}

.dock-link {
  font-family: var(--font-display); font-weight: 500; font-size: 0.92rem;
  color: rgba(255,255,255,0.72); padding: 0.5rem 0.7rem; border-radius: 999px;
  white-space: nowrap; transition: color 0.3s ease, background 0.3s ease;
}
.dock-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.dock-link[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.07); }
/* three links reach the brand mark before the burger takes over, so hide them sooner */
@media (max-width: 1024px) { .dock-link { display: none; } }

/* full-screen menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 94;
  background: rgba(14,17,23,0.96);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-links { display: flex; flex-direction: column; gap: 0.4rem; text-align: center; }
.menu-links a {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.4rem); color: var(--text-2);
  padding: 0.2rem 1rem;
  transition: color 0.3s ease, transform 0.4s var(--ease);
}
.menu-links a em {
  font-style: normal; font-size: 0.32em; color: var(--accent);
  vertical-align: super; margin-right: 0.7rem; letter-spacing: 0.1em;
}
.menu-links a:hover { color: var(--text); transform: translateX(6px); }
.menu-foot { color: var(--text-2); font-size: 0.9rem; letter-spacing: 0.06em; }

/* ============================================================
   BUTTONS
   ============================================================ */
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  border-radius: 999px; padding: 0.85rem 1.8rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease,
              background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  white-space: nowrap;
}
.pill-btn.light { background: #fff; color: #14171B; }
.pill-btn.light:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(79,168,222,0.4);
}
.pill-btn.ghost { border-color: rgba(255,255,255,0.22); color: #fff; }
.pill-btn.ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.pill-btn.full { width: 100%; }
.pill-btn.lg { padding: 1.05rem 2.4rem; font-size: 1.05rem; }

.icon-btn {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,0.045);
  border: 1px solid rgba(15,23,42,0.12);
  color: var(--text); cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease), color 0.3s ease;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  /* lock to the photo's aspect ratio so the whole image is always shown,
     edge to edge, with no cropping and no empty bars on any screen.
     A device-matched image + aspect ratio is chosen per viewport shape below. */
  aspect-ratio: 1672 / 941; /* default: 16:9 desktop image */
  min-height: 0;
  overflow: hidden;
}

/* overlay layer that fills the hero. Positions use % so content tracks the
   photo on any width; sizes use calc(... * var(--hs)) where --hs is capped at 1,
   so text stays at its original size on large screens and shrinks on small ones */
.hero-stage {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  --hs: var(--hero-scale, 1);
}
.hero-stage a, .hero-stage button, .hero-stage .mini-card { pointer-events: auto; }

.hero-photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("Photos/hero-showcase-desktop.png");
  background-image: image-set(url("Photos/hero-showcase-desktop.webp") type("image/webp"),
                              url("Photos/hero-showcase-desktop.png") type("image/png"));
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 1;
  filter: saturate(1.1) brightness(0.85);
}

/* device-matched hero image + aspect ratio, chosen by viewport shape.
   (placed after the defaults above so these overrides win by source order) */
@media (min-aspect-ratio: 2 / 1) {          /* ultrawide */
  .hero { height: 100vh; aspect-ratio: unset; }
  .hero-photo {
    background-image: url("Photos/hero-showcase.png");
    background-image: image-set(url("Photos/hero-showcase.webp") type("image/webp"),
                                url("Photos/hero-showcase.png") type("image/png"));
    background-position: center 65%;
  }
}
@media (max-aspect-ratio: 11 / 10) {        /* portrait / phone */
  .hero { aspect-ratio: 853 / 1518; }
  .hero-photo {
    background-image: url("Photos/hero-showcase-portrait.png");
    background-image: image-set(url("Photos/hero-showcase-portrait.webp") type("image/webp"),
                                url("Photos/hero-showcase-portrait.png") type("image/png"));
  }
}

.hero-particles {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}

.hero-beam {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(75% 90% at 82% 105%, rgba(79,168,222,0.22), rgba(79,168,222,0.05) 45%, transparent 68%),
    radial-gradient(45% 55% at 100% 62%, rgba(169,221,245,0.20), transparent 70%),
    linear-gradient(118deg, transparent 46%, rgba(79,168,222,0.05) 58%, rgba(169,221,245,0.09) 70%, rgba(79,168,222,0.03) 84%, transparent 94%);
}
.hero-beam::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(85% 60% at 12% 0%, rgba(0,0,0,0.55), transparent 60%);
}

.hero-title {
  position: absolute; z-index: 1; top: 44%; left: 18%;
  transform: translateY(-50%);
  font-size: calc(7rem * var(--hs));
  font-weight: 300; line-height: 1.02; letter-spacing: -0.03em;
  color: #ECECEC;
  max-width: 12ch;
}
.ht-line { display: block; overflow: hidden; }
.ht-line { transform: translateY(0); }
.hero-title .ht-line:nth-child(2) { margin-left: 0.04em; }

.spark {
  width: 0.52em; height: 0.52em; margin: 0 0.06em;
  vertical-align: -0.02em;
  animation: sparkSpin 14s linear infinite;
  filter: drop-shadow(0 0 18px rgba(79,168,222,0.55));
}
@keyframes sparkSpin { to { transform: rotate(360deg); } }

/* intro rise */
.ht-line, .hero-left, .hero-cards {
  opacity: 0; transform: translateY(calc(34px * var(--hs, 1)));
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
body.loaded .ht-line, body.loaded .hero-left,
body.loaded .hero-cards { opacity: 1; transform: none; }
body.loaded .ht-line:nth-child(1) { transition-delay: 0.1s; }
body.loaded .ht-line:nth-child(2) { transition-delay: 0.22s; }
body.loaded .hero-left { transition-delay: 0.5s; }
body.loaded .hero-cards { transition-delay: 0.62s; }

/* bottom-left block */
.hero-left {
  position: absolute; z-index: 3;
  left: 3%; bottom: 7%;
  max-width: calc(330px * var(--hs));
}
.hero-copy { color: rgba(255,255,255,0.62); font-size: calc(0.95rem * var(--hs)); margin-bottom: calc(1.4rem * var(--hs)); }
.hero-actions { display: flex; align-items: center; gap: calc(0.7rem * var(--hs)); }
.hero-actions .pill-btn { font-size: calc(0.95rem * var(--hs)); padding: calc(0.85rem * var(--hs)) calc(1.8rem * var(--hs)); gap: calc(0.5rem * var(--hs)); }
.hero-actions .pill-btn.ghost { border-color: rgba(255,255,255,0.22); color: #fff; }
.hero-actions .pill-btn.ghost:hover { border-color: var(--accent); color: var(--glow); }
.hero .icon-btn {
  background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.14); color: #fff;
  width: calc(46px * var(--hs)); height: calc(46px * var(--hs)); border-radius: calc(14px * var(--hs));
}
.hero .icon-btn svg { width: calc(19px * var(--hs)); height: calc(19px * var(--hs)); }
.hero .icon-btn:hover { border-color: var(--accent); color: var(--glow); }
.hero-micro { margin-top: calc(1rem * var(--hs)); font-size: calc(0.75rem * var(--hs)); color: rgba(255,255,255,0.52); }

/* bottom-right cards */
.hero-cards {
  position: absolute; z-index: 3;
  right: 3%; bottom: 7%;
  display: flex; gap: calc(0.9rem * var(--hs)); align-items: stretch;
}
.mini-card {
  border-radius: calc(22px * var(--hs));
  background: linear-gradient(165deg, rgba(255,255,255,0.92), rgba(246,247,249,0.94));
  border: 1px solid rgba(15,23,42,0.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(15,23,42,0.12);
}
.text-card { width: calc(240px * var(--hs)); padding: calc(1.3rem * var(--hs)); display: flex; flex-direction: column; justify-content: space-between; gap: calc(1.2rem * var(--hs)); }
.text-card p { font-size: calc(0.82rem * var(--hs)); color: var(--text-2); line-height: 1.55; }
.mini-icons { display: flex; gap: calc(0.55rem * var(--hs)); }
.chip {
  width: calc(38px * var(--hs)); height: calc(38px * var(--hs)); border-radius: calc(12px * var(--hs));
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,0.045); border: 1px solid rgba(15,23,42,0.1);
  color: var(--accent);
}
.chip svg { width: calc(17px * var(--hs)); height: calc(17px * var(--hs)); }

.thumb-card {
  width: calc(150px * var(--hs)); padding: calc(0.7rem * var(--hs)); position: relative;
  display: flex; align-items: stretch;
  transition: transform 0.4s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}
.thumb-card:hover { transform: translateY(-4px); border-color: rgba(79,168,222,0.5); box-shadow: 0 24px 60px rgba(15,23,42,0.14), 0 0 30px rgba(79,168,222,0.15); }
.thumb-screens { position: relative; flex: 1; border-radius: calc(14px * var(--hs)); overflow: hidden; }
.thumb {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.06);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.thumb.active { opacity: 1; transform: scale(1); }
.t-hotel    { background: radial-gradient(circle at 30% 30%, rgba(255,140,58,0.65), transparent 60%), linear-gradient(150deg, #262019, #0b0908); }
.t-atlas    { background: radial-gradient(circle at 70% 30%, rgba(90,140,255,0.55), transparent 60%), linear-gradient(150deg, #e8ecf2, #b9c4d4); }
.t-kova     { background: radial-gradient(circle at 50% 75%, rgba(255,60,60,0.55), transparent 62%), linear-gradient(150deg, #1e1214, #0a0808); }
.t-meridian { background: radial-gradient(circle at 30% 70%, rgba(29,58,47,0.8), transparent 70%), linear-gradient(150deg, #efe9dc, #cfc7b4); }
.thumb-arrow {
  position: absolute; right: calc(0.9rem * var(--hs)); bottom: calc(0.9rem * var(--hs));
  width: calc(34px * var(--hs)); height: calc(34px * var(--hs)); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--ink);
  transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--ease);
}
.thumb-arrow svg { width: calc(16px * var(--hs)); height: calc(16px * var(--hs)); }
.thumb-card:hover .thumb-arrow { background: var(--accent); color: #fff; transform: rotate(45deg); }

/* portrait/phone image puts the monitor in the vertical middle, with an open
   wall above it — group the text there instead of stranding it on the desk */
@media (max-aspect-ratio: 11 / 10) {
  /* Portrait: the title occupies the wall band above the monitor. JS
     (fitHeroTitle) sets top and font-size from the measured band; these
     are the no-JS fallbacks. transform is cleared so `top` is the real
     top edge - with translateY(-50%) the first line fell off the hero. */
  /* 6rem clears the dock (1rem offset + ~3.4rem tall) and its shadow.
     A percentage does not: 8% of a 733px hero is 58px, i.e. behind it. */
  .hero-title { top: 6rem; left: 6%; transform: none; max-width: 88%; }
  .hero-left { top: 30%; left: 5%; bottom: auto; max-width: calc(560px * var(--hs)); }
  .hero-cards { display: none; }
}

/* ============================================================
   SECTIONS · shared
   ============================================================ */
.section { padding: clamp(5.5rem, 11vh, 9rem) clamp(1.2rem, 5.5vw, 5.5rem); max-width: 1420px; margin: 0 auto; }
.section-head { margin-bottom: clamp(2.6rem, 6vh, 4.4rem); }
.section-head h2 { color: #ECECEC; text-wrap: balance; }

.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 999px;
  padding: 0.45rem 1rem; margin-bottom: 1.3rem;
  background: rgba(255,255,255,0.05);
}
.eyebrow-chip::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(79,168,222,0.7);
}

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   PRICE CALCULATOR
   ============================================================ */
.configurator {
  position: relative; overflow: hidden;
  padding: clamp(5.5rem, 11vh, 9rem) clamp(1.2rem, 5.5vw, 5.5rem);
}
.configurator::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 75% at 72% 22%, rgba(79,168,222,0.13), transparent 72%);
}
.calc-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; }

.cfg-photo-wrap {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5.5vw, 5.5rem) clamp(4rem, 8vh, 6rem);
}
.cfg-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 50%;
  display: block;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}
.calc-head { text-align: center; margin-bottom: clamp(2.4rem, 5vh, 3.6rem); }
.calc-head h2 { color: #ECECEC; margin-bottom: 0.7rem; }
.calc-head p { color: rgba(255,255,255,0.6); font-size: 1rem; max-width: 60ch; margin: 0 auto; line-height: 1.65; }

.calc-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.2rem; align-items: start; }

/* Base card */
.calc-base {
  border-radius: var(--radius); padding: 2.2rem 2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.11);
}
.calc-base-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.55rem;
  color: #ECECEC; text-align: center; margin-bottom: 0.35rem;
}
.calc-base-sub { text-align: center; color: rgba(255,255,255,0.52); font-size: 0.87rem; margin-bottom: 1.35rem; }
.calc-base-div { height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 1.35rem; }
.calc-base-list { list-style: none; display: grid; gap: 1.05rem; }
.calc-base-list li b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.94rem; color: #ECECEC; }
.calc-base-list li span { font-size: 0.81rem; color: rgba(255,255,255,0.52); }

/* Options panel */
.calc-options { display: flex; flex-direction: column; gap: 0.6rem; }

/* Pages group */
.calc-pages {
  border-radius: 18px; padding: 1.25rem 1.5rem 1.45rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
}
.calc-pages-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.calc-pages-title { font-family: var(--font-display); font-weight: 600; font-size: 0.97rem; color: #ECECEC; margin-bottom: 0.18rem; }
.calc-pages-desc { font-size: 0.8rem; color: rgba(255,255,255,0.52); }
.calc-pages-num { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: #ECECEC; }

input.calc-slider {
  width: 100%; height: 4px; cursor: pointer;
  -webkit-appearance: none; appearance: none; outline: none;
  border-radius: 2px; border: none; padding: 0; margin: 0;
  background: linear-gradient(to right, #fff 5%, rgba(255,255,255,0.18) 5%);
}
input.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%; background: #fff; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
input.calc-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: none; background: #fff; cursor: pointer;
}

/* Addon rows */
.calc-addon {
  display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.5rem;
  cursor: pointer; -webkit-user-select: none; user-select: none;
  border-radius: 18px; border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.calc-addon.selected { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); }
.calc-addon:hover { border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.075); }
.calc-addon:hover .calc-toggle-btn { border-color: rgba(255,255,255,0.55); color: #fff; }
.calc-addon-info { flex: 1; min-width: 0; }
.calc-addon-info b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.93rem; color: #ECECEC; margin-bottom: 0.16rem; }
.calc-addon-info span { font-size: 0.79rem; color: rgba(255,255,255,0.52); }
.calc-addon-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.calc-addon-from { font-family: var(--font-display); font-size: 0.85rem; color: rgba(255,255,255,0.62); white-space: nowrap; }
.calc-toggle-btn {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.26); background: transparent;
  color: rgba(255,255,255,0.62); font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.calc-toggle-btn:hover { border-color: rgba(255,255,255,0.55); color: #fff; }
.calc-addon.selected .calc-toggle-btn { border-color: rgba(255,255,255,0.5); color: #fff; }

/* Footer */
.calc-footer { margin-top: clamp(1.8rem, 4vh, 2.8rem); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.calc-price {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em; color: #ECECEC;
}
.calc-price.pulse { animation: calcPulse 0.42s var(--ease); }
@keyframes calcPulse { 0% { transform: scale(1.06); } 100% { transform: scale(1); } }
.calc-cta-link {
  display: block; width: min(480px, 100%);
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
  background: #fff; color: #14171B;
  border-radius: 999px; padding: 1.05rem 2rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--ease), box-shadow 0.3s ease;
}
.calc-cta-link:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(79,168,222,0.4); }
.calc-disclaimer { font-size: 0.76rem; color: rgba(255,255,255,0.52); font-style: italic; }

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

/* ============================================================
   SERVICES
   ============================================================ */
/* ---- SERVICES TIMELINE ---- */
.srv-head { margin-bottom: clamp(2rem, 4vh, 3rem); }
.srv-head h2 em { font-style: normal; background: linear-gradient(135deg, #4FA8DE 0%, #A9DDF5 55%, #4FA8DE 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.tl-scene {
  overflow: visible;
  position: relative;
}
.tl-cursor-glow {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,168,222,0.11) 0%, rgba(79,168,222,0.04) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 50;
}

.tl-world {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  perspective: 900px;
}

.tl-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: minmax(170px, auto) 28px minmax(170px, auto);
  column-gap: 0.7rem;
  transform-style: preserve-3d;
}

.tl-item {
  grid-row: var(--row);
  grid-column: var(--col);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transform-style: preserve-3d;
}
.tl-item.tl-below { justify-content: flex-start; }

.tl-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 1.3rem 1.1rem;
  width: 100%;
  opacity: 0;
  transform: translateZ(28px) translateY(18px);
  transition: opacity 0.7s ease, transform 0.75s var(--ease), border-color 0.35s ease;
}
.tl-scene.drawn .tl-card { opacity: 1; transform: translateZ(28px) translateY(0); }
.tl-scene.drawn .tl-card[data-i="0"] { transition-delay: 0.15s; }
.tl-scene.drawn .tl-card[data-i="1"] { transition-delay: 0.55s; }
.tl-scene.drawn .tl-card[data-i="2"] { transition-delay: 0.95s; }
.tl-scene.drawn .tl-card[data-i="3"] { transition-delay: 1.35s; }
.tl-scene.drawn .tl-card[data-i="4"] { transition-delay: 1.75s; }
.tl-card { cursor: pointer; }
.tl-card:hover { border-color: rgba(79,168,222,0.32); }
.tl-scene.drawn .tl-card.open {
  transform: translateZ(55px) scale(1.04);
  border-color: rgba(79,168,222,0.42);
  box-shadow: 0 0 36px rgba(79,168,222,0.14), 0 20px 52px rgba(0,0,0,0.3);
  transition-delay: 0s;
}

.tl-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.tl-more > div { overflow: hidden; min-height: 0; }
.tl-card.open .tl-more { grid-template-rows: 1fr; }

.tl-more-text {
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.52);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}


.tl-toggle {
  position: absolute;
  bottom: 0.7rem;
  right: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: none;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: color 0.3s, transform 0.45s var(--ease);
}
.tl-toggle svg { width: 14px; height: 14px; display: block; }
.tl-card:hover .tl-toggle { color: rgba(255,255,255,0.65); }
.tl-card.open .tl-toggle { transform: rotate(180deg); color: var(--accent); }

.tl-n {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.tl-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: #ECECEC;
  margin-bottom: 0.3rem;
  line-height: 1.25;
}
.tl-card p {
  font-size: 0.82rem;
  line-height: 1.62;
  color: rgba(255,255,255,0.46);
}

.tl-stem {
  flex-shrink: 0;
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, rgba(79,168,222,0), rgba(79,168,222,0.55));
}
.tl-item.tl-below .tl-stem {
  background: linear-gradient(to bottom, rgba(79,168,222,0.55), rgba(79,168,222,0));
}

.tl-rail {
  grid-row: 2;
  grid-column: 1 / -1;
  position: relative;
}

.tl-line-track {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    rgba(79,168,222,0.1) 0%,
    #4FA8DE 12%,
    #A9DDF5 88%,
    rgba(169,221,245,0.1) 100%
  );
  box-shadow: 0 0 10px rgba(79,168,222,0.45), 0 0 22px rgba(79,168,222,0.18);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 2.5s cubic-bezier(0.22,1,0.36,1);
}
.tl-scene.drawn .tl-line-track { transform: scaleX(1); }

.tl-dots {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10%;
}
.tl-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(79,168,222,0.75), 0 0 22px rgba(79,168,222,0.3);
  transform: scale(0);
  transition: transform 0.45s var(--ease);
}
.tl-scene.drawn .tl-dot {
  transform: scale(1);
  transition-delay: calc(var(--d) * 0.52s + 0.1s);
}

/* ============================================================
   CENTRED TEXT (site-wide)
   ============================================================ */
.section-head, .srv-head { text-align: center; }
.section-head .section-sub { margin-left: auto; margin-right: auto; }

/* service cards: the chevron stays bottom-right, the copy centres */
.tl-card { text-align: center; }

/* process stages: a spacer matching the chevron keeps the title optically centred */
.proc-head::before { content: ""; flex: none; width: 42px; }
.proc-heading { flex: 1; text-align: center; }
.proc-desc { margin-left: auto; margin-right: auto; }
.proc-points { margin-left: auto; margin-right: auto; }

/* FAQ: same spacer trick against the + icon */
.faq-list { margin-left: auto; margin-right: auto; }
.faq-item summary::before { content: ""; flex: none; width: 28px; }
.faq-q { flex: 1; text-align: center; }
.faq-body p { text-align: center; margin-left: auto; margin-right: auto; }

/* calculator: the base feature list centres as a block */
.calc-base-list { justify-items: center; text-align: center; }

@media (max-width: 680px) {
  .proc-head::before { width: 36px; }
}

/* ============================================================
   PROCESS
   ============================================================ */
/* process — detailed stage list */
.section-sub {
  margin-top: 1.1rem;
  max-width: 46ch;
  color: var(--text-2);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.7;
}

.proc-list { list-style: none; }

.proc-item {
  display: block;
  padding: clamp(1.8rem, 3.4vh, 2.8rem) 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i) * 0.1s + 0.1s);
}
.proc-item:last-child { border-bottom: 1px solid var(--line); }
.proc-list.in .proc-item { opacity: 1; transform: translateY(0); }

.proc-item { cursor: pointer; }
.proc-body { padding-top: 0.35rem; }

.proc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.proc-toggle {
  flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  margin-top: 0.2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.proc-toggle svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.proc-item.open .proc-toggle svg { transform: rotate(180deg); }
.proc-item:hover .proc-toggle,
.proc-toggle:focus-visible {
  border-color: var(--accent);
  background: rgba(79,168,222,0.12);
  color: var(--accent);
}

.proc-title {
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  color: var(--text);
}
.proc-desc {
  margin-top: 0.6rem;
  max-width: 62ch;
  color: var(--text-2);
  font-size: 0.98rem;
}

/* collapsed: points hidden until the stage is opened */
.proc-points-wrap { overflow: hidden; transition: max-height 0.45s var(--ease); }
.proc-item:not(.open) .proc-points { margin-top: 0; }
.proc-item:not(.open) .proc-points li { display: none; }
.proc-item:not(.open) .proc-note { display: none; }

.proc-points {
  margin-top: 1.5rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  gap: 0.7rem clamp(1.5rem, 4vw, 4rem);
  max-width: 860px;
}
.proc-points li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.94rem;
  line-height: 1.4;
  color: var(--text);
}
.proc-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.52em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 860px) {
  .proc-points { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
}

/* Payment condition under the Gather Information points. Kept out of
   .proc-points because that grid is exactly 3 rows x 2 columns; a seventh
   item would spill into an implicit third column and break the layout. */
.proc-note {
  margin: 1.4rem auto 0;
  max-width: 860px;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(79,168,222,0.28);
  border-radius: 12px;
  background: rgba(79,168,222,0.07);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-2);
  text-align: left;
  text-wrap: pretty;
}
.proc-note strong { color: var(--text); font-weight: 600; }

@media (max-width: 680px) {
  .proc-toggle { width: 36px; height: 36px; }
  .proc-toggle svg { width: 16px; height: 16px; }
  .proc-desc { font-size: 0.94rem; }
}

.process-photo.top { margin-top: 0; margin-bottom: clamp(3.5rem, 7vh, 5rem); }
.process-photo { margin-top: clamp(5.5rem, 11vh, 9rem); margin-bottom: calc(-1 * clamp(1.5rem, 3vh, 3rem)); border-radius: var(--radius); overflow: hidden; }
.process-photo img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 50%; display: block; }

/* ============================================================
   CTA PHOTO
   ============================================================ */
.cta-photo {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5.5vw, 5.5rem);
}
.cta-photo img {
  width: 100%; height: auto; aspect-ratio: 21 / 9; display: block;
  object-fit: cover; object-position: center 50%;
  border-radius: var(--radius);
}
/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured {
  border-color: rgba(79,168,222,0.5);
  box-shadow: 0 0 50px rgba(79,168,222,0.14);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--accent); border-radius: 999px; padding: 4px 14px;
  box-shadow: 0 4px 18px rgba(79,168,222,0.4); white-space: nowrap;
}
.price-card h3 { font-size: 1.25rem; font-weight: 500; }
.price-for { color: var(--text-2); font-size: 0.87rem; margin: 0.5rem 0 1.3rem; min-height: 2.6em; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 2.5rem; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.price sup { font-size: 0.55em; color: var(--accent); margin-right: 2px; }
.price sub { font-size: 0.42em; font-weight: 400; color: var(--text-2); vertical-align: baseline; }
.price-card ul { list-style: none; display: grid; gap: 0.65rem; margin-bottom: 2rem; flex: 1; }
.price-card li { color: var(--text-2); font-size: 0.9rem; padding-left: 1.5rem; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 820px; display: grid; gap: 0.8rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(165deg, var(--surface), var(--surface-2));
  overflow: hidden;
  transition: border-color 0.4s ease;
}
.faq-item[open] { border-color: rgba(79,168,222,0.35); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.3rem 1.6rem;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  transition: color 0.3s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0; width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(79,168,222,0.4); border-radius: 50%;
  color: var(--accent); font-size: 1.1rem;
  transition: transform 0.45s var(--ease), background 0.35s ease, color 0.35s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-body { padding: 0 1.6rem; overflow: hidden; }
.faq-body p { color: var(--text-2); font-size: 0.95rem; padding-bottom: 1.4rem; max-width: 44rem; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(7rem, 16vh, 12rem) clamp(1.2rem, 5vw, 5rem) clamp(9rem, 18vh, 13rem);
}
.final-beam {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 50% 115%, rgba(79,168,222,0.20), transparent 65%),
    radial-gradient(40% 40% at 80% 90%, rgba(169,221,245,0.14), transparent 70%);
}
.final-inner { position: relative; max-width: 760px; margin: 0 auto; }
.final-logo { width: 64px; margin-bottom: 2rem; filter: drop-shadow(0 0 22px rgba(79,168,222,0.35)); }
.final-cta h2 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 1.1rem; color: #ECECEC; }
.final-cta > .final-inner > p { color: rgba(255,255,255,0.62); font-size: 1.05rem; margin-bottom: 2.4rem; }
.final-micro { font-size: 0.8rem !important; margin: 1.5rem 0 0 !important; color: rgba(255,255,255,0.52) !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 3.2rem clamp(1.2rem, 5.5vw, 5.5rem) 6.5rem;
  max-width: 1420px; margin: 0 auto;
  position: relative; z-index: 1;
}
.footer-brand { position: static; }
.footer-top {
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
  padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-links { display: flex; gap: 2rem; margin-left: auto; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.6);
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease);
}
.footer-social svg { width: 17px; height: 17px; }
.footer-social a:hover { color: var(--accent); border-color: rgba(79,168,222,0.5); transform: translateY(-3px); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.7rem; color: rgba(255,255,255,0.5); font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  /* hero now scales uniformly via .hero-stage — no layout overrides needed */
  .tl-world { transform: none !important; }
  .tl-grid { display: flex; flex-direction: column; gap: 0.75rem; }
  .tl-item, .tl-item.tl-below { order: var(--col); flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .tl-stem, .tl-rail { display: none; }
  .tl-card { transform: none !important; }
  .tl-scene.drawn .tl-card { transform: none !important; }
}

@media (max-width: 640px) {
  /* The top-right wordmark and the centred dock collide on a narrow screen -
     measured 67x32px of overlap at 390px, which is why "forgecraft" appeared
     cut off. The dock already carries the logo mark and the menu already has
     a Home link, so the duplicate is what goes. The footer brand is untouched. */
  .brand:not(.footer-brand) { display: none; }
  .brand span { font-size: 1.2rem; }
  .brand-mark { width: 24px; }
  .dock { top: 1rem; padding-left: 0.8rem; }

  .dock-cta { font-size: 0.82rem; padding: 0.55rem 1rem; }
  .dock-logo { width: 32px; }
  .footer-top { justify-content: center; text-align: center; }
  .footer-links { margin-left: 0; justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ht-line, .hero-left, .hero-cards, .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ============================================================
   MONITOR HOTSPOT + LIVE SITE VIEWER
   ============================================================ */
.screen-hotspot {
  position: absolute; z-index: 1;
  cursor: pointer; padding: 0; margin: 0; border: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.screen-hotspot:hover,
.screen-hotspot:focus-visible {
  background: rgba(120,180,235,0.14);
  outline: none;
}

/* a small tab that reads as "attached" to the bottom edge of the screen,
   styled like the site's real buttons (solid accent pill) instead of a
   generic floating glass tooltip */
.screen-hotspot-hint {
  position: absolute; z-index: 3;
  transform: translate(-50%, -100%);
  transform-origin: bottom center;
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.6em 1.05em;
  border-radius: 999px;
  font-family: var(--font-display), "Inter", sans-serif;
  font-weight: 600; line-height: 1; letter-spacing: 0.012em;
  /* scales with the hero so it stays proportional to the monitor on every screen */
  font-size: max(9.5px, calc(0.76rem * var(--hero-scale, 1)));
  white-space: nowrap;
  /* frosted glass over the hero photo rather than a solid white sticker */
  color: rgba(255,255,255,0.92);
  background: rgba(10,14,22,0.42);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 8px 26px rgba(0,0,0,0.34);
  pointer-events: auto; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.28s var(--ease), box-shadow 0.28s ease,
              background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}
.screen-hotspot-hint svg {
  width: 0.9em; height: 0.9em; flex: 0 0 auto;
  opacity: 0.65; transition: opacity 0.28s ease;
}
/* on hover it brightens - stays monochrome, no accent color */
.screen-hotspot:hover + .screen-hotspot-hint,
.screen-hotspot:focus-visible + .screen-hotspot-hint,
.screen-hotspot-hint:hover,
.screen-hotspot-hint:focus-visible {
  transform: translate(-50%, -100%) translateY(-3px);
  color: #fff;
  background: rgba(16,22,32,0.62);
  border-color: rgba(255,255,255,0.34);
  box-shadow: 0 12px 32px rgba(0,0,0,0.46);
  outline: none;
}
.screen-hotspot:hover + .screen-hotspot-hint svg,
.screen-hotspot:focus-visible + .screen-hotspot-hint svg,
.screen-hotspot-hint:hover svg,
.screen-hotspot-hint:focus-visible svg { opacity: 1; }

/* no backdrop-filter support: fall back to a readable flat dark pill */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .screen-hotspot-hint { background: rgba(10,14,22,0.82); }
  .screen-hotspot:hover + .screen-hotspot-hint,
  .screen-hotspot-hint:hover { background: rgba(16,22,32,0.9); }
}

.site-viewer {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(0.6rem, 3vh, 2.2rem);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.site-viewer.open { opacity: 1; visibility: visible; }
.site-viewer-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,10,14,0.78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.sv-close {
  position: absolute; top: clamp(0.8rem, 2.5vh, 1.6rem); right: clamp(0.8rem, 2.5vw, 1.6rem);
  z-index: 3; width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; cursor: pointer;
  background: rgba(20,23,28,0.7); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}
.sv-close:hover { background: rgba(79,168,222,0.9); transform: scale(1.06); }
.sv-close svg { width: 20px; height: 20px; }

/* the monitor frame — a photo of a display with the live site inside its screen */
.sv-monitor {
  position: relative; z-index: 1;
  /* default: 16:9 close-up monitor */
  --scr-l: 10.4%; --scr-t: 3.6%; --scr-w: 78.0%; --scr-h: 76.7%;
  aspect-ratio: 1672 / 941;
  width: min(96vw, 170vh);
  background: url("Photos/viewer-monitor-16x9.png") center / 100% 100% no-repeat;
  background-image: image-set(url("Photos/viewer-monitor-16x9.webp") type("image/webp"),
                              url("Photos/viewer-monitor-16x9.png") type("image/png"));
  transform: translateY(14px) scale(0.984);
  transition: transform 0.34s cubic-bezier(0.22,0.9,0.3,1);
  filter: drop-shadow(0 40px 90px rgba(0,0,0,0.55));
}
.site-viewer.open .sv-monitor { transform: none; }
.sv-iframe {
  position: absolute;
  left: var(--scr-l); top: var(--scr-t);
  width: var(--scr-w); height: var(--scr-h);
  border: none; background: #0b0d12;
}

/* arrows: step between the projects shown on the monitor */
.sv-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; cursor: pointer;
  background: rgba(20,23,28,0.7); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.sv-nav.prev { left: clamp(0.6rem, 2vw, 1.8rem); }
.sv-nav.next { right: clamp(0.6rem, 2vw, 1.8rem); }
.sv-nav:hover { background: rgba(79,168,222,0.9); border-color: transparent; transform: translateY(-50%) scale(1.06); }
.sv-nav svg { width: 22px; height: 22px; }

/* which project you are looking at */
.sv-caption {
  position: absolute; z-index: 3; left: 50%; transform: translateX(-50%);
  bottom: clamp(0.6rem, 2.5vh, 1.8rem);
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 1.1rem; border-radius: 999px;
  background: rgba(20,23,28,0.7); border: 1px solid rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 0.84rem; white-space: nowrap;
}
.sv-caption-name { font-family: var(--font-display); font-weight: 600; color: #fff; }
.sv-caption-kind { color: var(--text-2); }
.sv-dots { display: flex; align-items: center; gap: 0.35rem; margin-left: 0.2rem; }
.sv-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.28); transition: background 0.25s ease;
}
.sv-dot.on { background: var(--accent); }

@media (max-width: 900px) {
  .sv-nav { width: 42px; height: 42px; }
  .sv-nav svg { width: 18px; height: 18px; }
  .sv-caption-kind { display: none; }
}

/* ultrawide viewports -> 21:9 close-up monitor */
@media (min-aspect-ratio: 2 / 1) {
  .sv-monitor {
    --scr-l: 20.5%; --scr-t: 7.7%; --scr-w: 59.3%; --scr-h: 69.2%;
    aspect-ratio: 1915 / 821;
    width: min(96vw, 224vh);
    background-image: url("Photos/viewer-monitor-21x9.png");
    background-image: image-set(url("Photos/viewer-monitor-21x9.webp") type("image/webp"),
                                url("Photos/viewer-monitor-21x9.png") type("image/png"));
  }
}


/* ============================================================
   PAGE HERO  —  full-bleed image with the headline on top
   ============================================================ */
.statement.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(30rem, 82vh, 54rem);
  padding: clamp(8rem, 15vh, 11rem) clamp(1.2rem, 5.5vw, 5.5rem) clamp(5rem, 10vh, 8rem);
  text-align: center;
}

.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}
/* scrim: legible type up top, hard fade into the page colour at the bottom
   so the full-bleed image has no visible seam */
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    /* soft pool behind the headline itself */
    radial-gradient(58% 42% at 50% 52%, rgba(22,24,27,0.55) 0%, rgba(22,24,27,0) 72%),
    linear-gradient(180deg,
      rgba(30,32,36,0.88) 0%,
      rgba(30,32,36,0.60) 40%,
      rgba(30,32,36,0.80) 76%,
      var(--bg) 100%),
    radial-gradient(135% 90% at 50% 45%, transparent 28%, rgba(30,32,36,0.55) 100%);
}

.statement.page-hero .statement-inner { position: relative; z-index: 2; }
/* drop-shadow, not text-shadow: the <em> uses background-clip:text, and a
   text-shadow would show straight through the transparent glyphs */
.statement.page-hero h1 { filter: drop-shadow(0 2px 26px rgba(0,0,0,0.65)); }
.statement.page-hero .statement-sub { color: rgba(255,255,255,0.72); text-shadow: 0 1px 14px rgba(0,0,0,0.7); }

/* per-page focal points for narrow crops */
.page-hero-media.focus-right img { object-position: 62% 50%; }

@media (max-width: 700px) {
  /* Same treatment as the home hero: show the whole 21:9 plate rather than
     cropping it to fill a tall box, and stack the heading underneath. With the
     text off the image the scrim and shadows are no longer needed. */
  .statement.page-hero {
    display: block;
    min-height: 0;
    padding: 5.2rem 0 clamp(2rem, 5vh, 3rem);
  }
  .page-hero-media { position: relative; inset: auto; }
  .page-hero-media img,
  .page-hero-media.focus-right img {
    aspect-ratio: 21 / 9;
    height: auto;
    object-position: center;
  }
  .page-hero-media::after { display: none; }
  .statement.page-hero .statement-inner {
    padding: clamp(1.3rem, 4vh, 2rem) clamp(1.2rem, 5.5vw, 2rem) 0;
  }
  .statement.page-hero h1 { filter: none; }
  .statement.page-hero .statement-sub { text-shadow: none; }
  /* a narrow crop centred on the monitor puts white type on a white panel —
     swing across to the darker side of the room instead */
  .page-hero-media.focus-right img { object-position: 33% 50%; }
  .page-hero-media::after {
    background:
      radial-gradient(72% 34% at 50% 50%, rgba(22,24,27,0.55) 0%, rgba(22,24,27,0) 75%),
      linear-gradient(180deg,
        rgba(30,32,36,0.90) 0%,
        rgba(30,32,36,0.68) 38%,
        rgba(30,32,36,0.85) 74%,
        var(--bg) 100%);
  }
}


/* ============================================================
   PRE-LAUNCH: picture wrapper, focus states, skip link
   ============================================================ */

/* <picture> exists only to offer a WebP source — it must not create a box,
   or `img { height: 100% }` inside the heroes would resolve against it. */
picture { display: contents; }

/* Visible keyboard focus. Every interactive element needs one; :focus-visible
   keeps it off mouse clicks so the visual design is unchanged for pointer users. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.dock-cta:focus-visible,
.pill-btn:focus-visible { outline-offset: 4px; }
.calc-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* Skip link: first tab stop, lets keyboard and screen-reader users jump the nav. */
.skip-link {
  position: absolute; left: 1rem; top: 0;
  transform: translateY(-130%);
  z-index: 300;
  padding: 0.85rem 1.4rem;
  background: var(--accent); color: #0d1013;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  border-radius: 0 0 12px 12px;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Screen-reader-only text */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Legal links in the footer fine print */
.footer-legal { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-legal a { color: inherit; transition: color .3s ease; }
.footer-legal a:hover { color: var(--accent); }

/* ============================================================
   TAP TARGETS  —  WCAG 2.2 SC 2.5.8 (minimum 24x24 CSS px)
   Links sitting inside a sentence are exempt; these are standalone
   controls, so they get enough padding to clear the threshold
   without changing where anything sits on the page.
   ============================================================ */
.footer-links a,
.footer-legal a,
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-block: 2px;
}
.tl-toggle {
  min-width: 24px;
  min-height: 24px;
}
.faq-item summary { min-height: 24px; }
.calc-toggle-btn { min-width: 24px; min-height: 24px; }
.lang-opt, .dock-link { min-height: 24px; }

/* Footer descriptor: says plainly what the studio does, on every page. */
.footer-tagline {
  color: var(--text-2);
  font-size: 0.88rem;
  max-width: 38ch;
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 900px) { .footer-tagline { max-width: none; } }

/* Sub-line under the services heading */
.srv-sub {
  margin: 1.1rem auto 0;
  max-width: 54ch;
  color: var(--text-2);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  text-wrap: pretty;
}
