/* ============================================================
   Vyoln — styles
   ============================================================ */
:root {
  --white: #ffffff;
  --cream: #f3f0e9;
  --grey-50: #f7f7f8;
  --grey-100: #f1f1f3;
  --grey-200: #e4e4e7;
  --grey-300: #d4d4d8;
  --grey-400: #a1a1aa;
  --grey-500: #71717a;
  --grey-700: #3f3f46;
  --ink: #0a0a0f;

  --navy: #0e1a2e;
  --navy-2: #152540;
  --navy-3: #1c3052;
  --navy-line: rgba(255, 255, 255, 0.1);

  --gold: #c9a24d;
  --gold-hover: #b8913f;
  --gold-dark: #8f6d24;
  --gold-light: #e3c77e;
  --gold-soft: #faf4e4;

  --star: #fbbc04;
  --bad: #dc6b5a;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(10, 10, 15, 0.04), 0 8px 24px rgba(10, 10, 15, 0.06);
  --shadow-lg: 0 24px 60px rgba(10, 10, 15, 0.14);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 48px); }

.accent { color: var(--gold-hover); }
.section--navy .accent { color: var(--gold-light); }

/* Warm greys on the cream sections */
.section--light {
  --grey-50: #faf8f4;
  --grey-100: #ece8df;
  --grey-200: #e2ddd2;
  --grey-300: #d3cdc0;
}


.eyebrow {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.section--navy .eyebrow, .eyebrow--light { color: var(--gold-light); }

.lead { font-size: 1.125rem; color: var(--grey-500); max-width: 560px; }
.section--navy .lead { color: rgba(255, 255, 255, 0.68); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--light { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }


.section__head { margin-bottom: 56px; }
.section__head h2 { max-width: 760px; margin-bottom: 18px; }
.section__head--center { text-align: center; }
.section__head--center h2, .section__head--center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, color 0.25s, border-color 0.25s;
}
.btn span { transition: transform 0.25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--primary { background: var(--gold); color: var(--navy); box-shadow: 0 8px 24px rgba(201, 162, 77, 0.3); }
.btn--primary:hover { background: var(--gold-hover); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(201, 162, 77, 0.4); }
.btn--ghost { border-color: var(--grey-200); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--grey-400); }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; box-shadow: none; }
.btn--block { width: 100%; }
.btn:focus-visible, .step:focus-visible, .opt input:focus-visible + .opt__box, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(14, 26, 46, 0.96);
  /* Navy bar: remap tokens so links, logo and toggle read light */
  --ink: #ffffff;
  --cream: var(--navy);
  --grey-50: rgba(255, 255, 255, 0.06);
  --grey-100: rgba(255, 255, 255, 0.08);
  --grey-200: rgba(255, 255, 255, 0.12);
  --grey-700: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled { border-color: var(--grey-200); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 0.92rem; font-weight: 500; color: var(--grey-700); }
.nav__links a:not(.btn) { position: relative; transition: color 0.2s; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease); }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Brand ---------- */
.nav .brand { margin-right: auto; }

/* ---------- Language toggle ---------- */
.lang-toggle {
  flex: none; display: flex; gap: 2px; margin-left: 20px; padding: 3px; border-radius: 999px;
  background: var(--grey-50); border: 1px solid var(--grey-200); color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.04em;
}
.lang-toggle a { padding: 7px 10px; text-decoration: none; color: inherit; border-radius: 999px; opacity: 0.6; transition: background 0.25s, color 0.25s, opacity 0.25s; }
.lang-toggle a:hover { opacity: 0.85; }
:root[lang="de"] .lang-toggle [data-lang="de"],
:root[lang="en"] .lang-toggle [data-lang="en"] { background: var(--gold); color: var(--navy); opacity: 1; }
.lang-toggle a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-toggle + .theme-toggle { margin-left: 10px; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  flex: none; width: 40px; height: 40px; margin-left: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grey-50); border: 1px solid var(--grey-200);
  color: var(--ink); transition: background 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}
.theme-toggle:hover { border-color: var(--gold); transform: rotate(-15deg); }
.theme-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }

.brand { display: inline-flex; align-items: center; gap: 2px; color: var(--ink); }
.brand--light { color: var(--white); }
.brand__mark { width: 34px; height: 34px; }
.brand__logo { display: block; height: 32px; width: auto; }
.brand__word { font-family: "Quicksand", var(--font-head); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.01em; line-height: 1; margin-top: -3px; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(72px + clamp(60px, 9vw, 120px)); padding-bottom: clamp(140px, 16vw, 240px); overflow: hidden; }
/* Animated hero background: a slowly drifting dot grid and two soft light orbs */
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: -40px;
  background-image: radial-gradient(rgba(14, 26, 46, 0.13) 1.2px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at 72% 45%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse 65% 70% at 72% 45%, #000 15%, transparent 75%);
  animation: gridDrift 30s linear infinite;
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.orb--gold { width: 480px; height: 480px; top: -140px; right: 6%; background: rgba(201, 162, 77, 0.32); animation: orbA 18s ease-in-out infinite alternate; }
.orb--navy { width: 400px; height: 400px; bottom: -160px; left: 4%; background: rgba(30, 58, 110, 0.09); animation: orbB 24s ease-in-out infinite alternate; }
@keyframes gridDrift { to { transform: translate(30px, 30px); } }
@keyframes orbA { to { transform: translate(-120px, 90px) scale(1.12); } }
@keyframes orbB { to { transform: translate(140px, -70px) scale(0.92); } }
:root[data-theme="dark"] .hero__bg::before { background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.2px, transparent 1.6px); }
:root[data-theme="dark"] .orb--gold { background: rgba(201, 162, 77, 0.2); }
:root[data-theme="dark"] .orb--navy { background: rgba(60, 100, 180, 0.16); }
.hero__grid { position: relative; z-index: 1; }

.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
/* The big rotating line is styled like a heading; the keyword line above it is the real <h1> */
.hero__title { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; font-size: clamp(2.3rem, 5.2vw, 4.2rem); }

/* Rotating headline word */
.rotator { display: block; position: relative; height: 1.35em; margin-bottom: -0.25em; overflow: hidden; }
.rotator__word {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  transform: translateY(130%); opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}
.rotator__word.is-active { transform: translateY(0); opacity: 1; }
.rotator__word.is-leaving { transform: translateY(-130%); opacity: 0; }
.rotator, .section--navy .rotator { color: #efbf04; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 32px; }
.hero__ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 0.9rem; color: var(--grey-500); }
.hero__ticks li { display: flex; align-items: center; gap: 8px; }
.hero__ticks li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%238F6D24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.hero__visual { position: relative; padding: 40px 20px 60px; }
.hero__visual::before {
  content: ""; position: absolute; inset: 0 -10% 0 10%;
  background: radial-gradient(closest-side, rgba(201, 162, 77, 0.14), transparent 70%);
  z-index: 0;
}
.browser { position: relative; z-index: 1; background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--grey-100); background: var(--grey-50); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--grey-300); }
.browser__bar span { margin-left: 14px; font-size: 0.75rem; color: var(--grey-400); background: var(--white); border: 1px solid var(--grey-200); border-radius: 999px; padding: 3px 14px; }
.browser__body { padding: 26px 28px 30px; display: grid; gap: 12px; }
.sk { background: var(--grey-100); border-radius: 8px; }
.sk--nav { display: flex; align-items: center; gap: 10px; background: none; margin-bottom: 14px; }
.sk--nav b { width: 54px; height: 12px; border-radius: 6px; background: var(--navy); margin-right: auto; }
.sk--nav em { width: 36px; height: 8px; border-radius: 4px; background: var(--grey-200); }
.sk--title { height: 22px; width: 82%; background: var(--grey-200); }
.sk--short { width: 56%; }
.sk--btn { height: 30px; width: 120px; border-radius: 999px; background: var(--gold); margin: 8px 0 14px; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sk-grid div { height: 78px; border-radius: 10px; background: var(--grey-100); }
.sk-grid div:nth-child(2) { background: var(--navy-3); opacity: 0.9; }

.float {
  position: absolute; z-index: 2; background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 18px;
  animation: bob 6s ease-in-out infinite;
}
.float small { display: block; font-size: 0.72rem; color: var(--grey-500); }
.float strong { font-family: var(--font-head); font-size: 0.95rem; }
.float--rating { left: -8px; bottom: 18px; display: flex; align-items: center; gap: 12px; }
.float--rating strong { font-size: 1.3rem; }
.float__g {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; color: var(--white); background: var(--navy);
}
.float--traffic { right: -4px; top: 0; width: 190px; animation-delay: -3s; }
.float--traffic svg { margin-top: 8px; width: 100%; height: 36px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.stars { color: var(--star); letter-spacing: 1px; font-size: 0.9rem; }
.stars > span {
  background: linear-gradient(90deg, var(--star) var(--fill), var(--grey-300) var(--fill));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Hero on navy */
.hero.section--navy .hero__ticks { color: rgba(255, 255, 255, 0.7); }
.section--navy .btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.section--navy .btn--ghost:hover { border-color: rgba(255, 255, 255, 0.7); }
.hero.section--navy .hero__bg::before { background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.2px, transparent 1.6px); }
.hero.section--navy .orb--gold { background: rgba(201, 162, 77, 0.24); }
.hero.section--navy .orb--navy { background: rgba(70, 110, 190, 0.22); }
.hero.section--navy .float { color: var(--ink); }
.hero.section--navy .browser { border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }

/* ---------- Found first ---------- */
.found { overflow: hidden; }
.found__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.found h2 { margin-bottom: 20px; }
.found__points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.found__points li { padding-top: 14px; border-top: 2px solid var(--gold); font-size: 0.86rem; color: var(--grey-500); }
.found__points strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-bottom: 4px; }

.search {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px; position: relative;
}
.search__bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--grey-200); background: var(--grey-50); font-size: 0.95rem;
}
.search__query { display: inline-block; min-height: 1.6em; line-height: 1.6em; white-space: nowrap; } /* keeps the bar height steady while the text is cleared */
.search__bar svg { width: 18px; height: 18px; fill: none; stroke: var(--grey-500); stroke-width: 2; stroke-linecap: round; }
.search__caret { width: 1.5px; height: 18px; background: var(--ink); margin-left: -8px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.search__map {
  position: relative; height: 150px; margin: 14px 0; border-radius: 14px; overflow: hidden;
  background:
    linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, 0.9) 46.5%, rgba(255, 255, 255, 0.9) 49%, transparent 49.5%),
    linear-gradient(20deg, transparent 58%, rgba(255, 255, 255, 0.8) 58.5%, rgba(255, 255, 255, 0.8) 60.5%, transparent 61%),
    radial-gradient(circle at 80% 85%, #d7e6d2 0 18%, transparent 19%),
    #e9e5dc;
}
.pin {
  position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg); background: #b9b4aa;
}
.pin--you {
  --x: 46%; --y: 48%; width: 24px; height: 24px; background: var(--gold); z-index: 1;
  box-shadow: 0 6px 16px rgba(201, 162, 77, 0.5);
}
.pin--you::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--gold);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping { from { transform: scale(0.5); opacity: 0.9; } to { transform: scale(1.8); opacity: 0; } }

.search__results { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.result { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; }
.result strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }
.result small { font-size: 0.8rem; color: var(--grey-500); }
.result small b { color: var(--ink); font-weight: 600; }
.result__rank {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; background: var(--grey-100); color: var(--grey-500);
}
.result:not(.result--you) { opacity: 0.55; }
.result--you { background: rgba(201, 162, 77, 0.1); border: 1px solid rgba(201, 162, 77, 0.45); }
.result--you .result__rank { background: var(--gold); color: var(--navy); }
.result__tag { flex: none; white-space: nowrap; margin-left: auto; font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--navy); color: var(--white); }
.stars-s { color: var(--star); letter-spacing: 1px; }
.stars-s--off { color: var(--grey-300); }

.marquee { margin-top: clamp(64px, 8vw, 96px); text-align: center; }
.marquee__label { font-size: 0.8rem; color: var(--grey-500); margin-bottom: 18px; }
.marquee__track {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; flex: none; gap: 14px; padding-right: 14px; animation: marquee 40s linear infinite; }
.marquee li {
  white-space: nowrap; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--grey-200);
  background: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; color: var(--grey-700);
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  position: relative; padding: 32px 28px 30px; border-radius: var(--radius-lg);
  background: var(--navy-2); border: 1px solid var(--navy-line);
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
  display: flex; flex-direction: column;
}
.service:hover { transform: translateY(-6px); border-color: rgba(227, 199, 126, 0.4); background: var(--navy-3); }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(201, 162, 77, 0.16); margin-bottom: 28px;
}
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service__num { position: absolute; top: 30px; right: 28px; font-family: var(--font-head); font-size: 0.78rem; color: rgba(255, 255, 255, 0.35); }
.service h3 { margin-bottom: 12px; }
.service p { color: rgba(255, 255, 255, 0.66); font-size: 0.95rem; margin-bottom: 24px; flex: 1; }

.services__cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 48px; }
.services__cta p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.6); }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.75rem; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.82); }

/* ---------- Projects page ---------- */
.page-hero { padding-top: calc(72px + clamp(56px, 8vw, 104px)); padding-bottom: clamp(64px, 8vw, 104px); }
.page-hero h1 { margin-bottom: 20px; }

.projects { display: grid; gap: clamp(80px, 10vw, 136px); }
.project { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.project:nth-child(even) .project__frames { order: 2; }

.project__frames { position: relative; padding: 0 9% 8% 0; }
.project__browser { border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--grey-200); box-shadow: var(--shadow-lg); }
.project__bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--navy); }
.project__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.project__browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.project__phone {
  position: absolute; right: 0; bottom: 0; width: 24%;
  padding: 6px; border-radius: 26px; background: var(--navy);
  box-shadow: 0 24px 50px rgba(10, 10, 15, 0.3);
}
.project__phone img { width: 100%; height: auto; border-radius: 20px; aspect-ratio: 360 / 780; object-fit: cover; object-position: top; }

.project__num { display: block; font-family: var(--font-head); font-weight: 600; font-size: 4.5rem; line-height: 1; color: var(--gold); margin-bottom: 18px; }
.project__copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.project__meta { font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 18px; }
.project__copy > p:not(.project__meta) { color: var(--grey-500); margin-bottom: 24px; max-width: 440px; }

.projects__next {
  margin-top: clamp(96px, 11vw, 150px); padding: clamp(36px, 5vw, 56px);
  border-radius: var(--radius-lg); background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.projects__next h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.projects__next .accent { color: var(--gold-light); }

@media (max-width: 920px) {
  .project { grid-template-columns: 1fr; gap: 32px; }
  .project:nth-child(even) .project__frames { order: 0; }
  .project__num { font-size: 3rem; margin-bottom: 12px; }
}

/* ---------- Before / After ---------- */
.ba { display: grid; max-width: 620px; margin-inline: auto; }
/* Both cards share one grid cell; only the current one is shown */
.ba__card { grid-area: 1 / 1; }
.ba__card.is-visible:not(.is-current) { opacity: 0; transform: translateY(12px) scale(0.98); visibility: hidden; pointer-events: none; }
.ba__card.is-visible { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s; }

.ba-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 260px; margin: 0 auto 32px;
  padding: 5px; border-radius: 999px; background: var(--white); border: 1px solid var(--grey-200); box-shadow: var(--shadow);
}
.ba-switch__thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px;
  background: var(--gold); transition: transform 0.4s var(--ease);
}
.ba-switch:has([data-ba="after"].is-active) .ba-switch__thumb { transform: translateX(100%); }
.ba-switch__btn {
  position: relative; z-index: 1; padding: 11px 0; border: 0; background: none; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--grey-500); transition: color 0.3s;
}
.ba-switch__btn:hover { color: var(--ink); }
.ba-switch__btn.is-active { color: var(--navy); }
.ba-switch__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ba__card { border-radius: var(--radius-lg); padding: 34px; display: flex; flex-direction: column; gap: 26px; }
.ba__card--before { background: var(--grey-50); border: 1px solid var(--grey-200); color: var(--grey-700); }
.ba__card--after { background: var(--white); border: 1.5px solid var(--gold); box-shadow: 0 24px 60px rgba(201, 162, 77, 0.16); }
.ba__head { display: flex; align-items: center; justify-content: space-between; }
.ba__label { font-family: var(--font-head); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-500); }
.ba__label--after { color: var(--gold); }
.ba__status { font-size: 0.78rem; padding: 5px 12px; border-radius: 999px; background: #fbeae7; color: #b4493a; }
.ba__status--good { background: var(--gold-soft); color: var(--gold-dark); }

.ba__rating { display: flex; align-items: center; gap: 16px; }
.ba__score { font-family: var(--font-head); font-weight: 600; font-size: 3.4rem; line-height: 1; letter-spacing: -0.03em; }
.ba__card--before .ba__score { color: var(--grey-500); }
.ba__rating .stars { font-size: 1.15rem; }
.ba__rating small { color: var(--grey-500); font-size: 0.85rem; }

.ba__stats { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--grey-200); }
.ba__stats > div { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--grey-200); }
.ba__stats dt { font-size: 0.9rem; color: var(--grey-500); }
.ba__stats dd { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; }
.ba__stats dd.ba__text { font-size: 0.95rem; }
.ba__card--before dd { color: var(--grey-500); }
.ba__card--before dd.ba__text { color: #b4493a; }
.ba__card--after dd { color: var(--ink); }
.ba__card--after dd.ba__text { color: var(--gold-dark); }

.ba__chart small { display: block; font-size: 0.78rem; color: var(--grey-400); margin-bottom: 10px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; transform: scaleY(0); transform-origin: bottom; transition: transform 0.9s var(--ease); }
.bars i:nth-child(n) { transition-delay: calc(var(--i, 0) * 60ms); }
.bars--down i { background: var(--grey-300); }
.bars--up i { background: linear-gradient(180deg, var(--gold), #e3c77e); }
.ba__card.is-current.is-visible .bars i { transform: scaleY(1); }

.ba__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.93rem; }
.ba__list li { display: flex; gap: 10px; align-items: flex-start; }
.ba__list li::before { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; margin-top: 2px; }
.ba__list--bad li::before { content: "✕"; background: #fbeae7; color: #b4493a; }
.ba__list--good li::before { content: "✓"; background: var(--gold-soft); color: var(--gold-dark); }

.footnote { margin-top: 24px; font-size: 0.8rem; color: var(--grey-400); text-align: center; }
.results__cta { margin-top: 36px; text-align: center; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.step {
  background: none; border: 0; border-top: 1.5px solid rgba(255, 255, 255, 0.16);
  padding: 18px 0 0; text-align: left; color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; position: relative;
  transition: color 0.3s;
}
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 1.5px;
  background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.step small { display: block; font-size: 0.7rem; margin-bottom: 6px; letter-spacing: 0.1em; }
.step:hover { color: rgba(255, 255, 255, 0.7); }
.step.is-active { color: var(--white); }
.step.is-active::before { transform: scaleX(1); }

.step-panel {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center;
  padding: 44px 48px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  border: 1px solid var(--navy-line);
}
.step-panel__num { font-family: var(--font-head); font-weight: 600; font-size: 3.6rem; line-height: 1; color: var(--gold-light); display: block; margin-bottom: 14px; }
.step-panel h3 { font-size: 1.8rem; }
.step-panel__right p { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; margin-bottom: 22px; }
.step-panel.is-swapping .step-panel__left, .step-panel.is-swapping .step-panel__right { opacity: 0; transform: translateY(8px); }
.step-panel__left, .step-panel__right { transition: opacity 0.3s, transform 0.3s var(--ease); }

.big-line { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 3.3rem); line-height: 1.15; letter-spacing: -0.02em; text-align: center; margin-top: clamp(70px, 9vw, 110px); }

/* Process on a light section */
.section--light .step { border-top-color: var(--grey-200); color: var(--grey-400); }
.section--light .step::before { background: var(--gold); }
.section--light .step:hover { color: var(--grey-700); }
.section--light .step.is-active { color: var(--ink); }
.section--light .step-panel { background: var(--grey-50); border-color: var(--grey-200); }

/* The whole method lives in one navy-and-gold card */
.method {
  padding: 36px 40px 40px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(201, 162, 77, 0.22), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(239, 191, 4, 0.10), transparent 60%),
    var(--navy);
  border: 1px solid rgba(201, 162, 77, 0.45); box-shadow: 0 30px 70px rgba(14, 26, 46, 0.3);
  position: relative; overflow: hidden;
}
.method::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), #efbf04, var(--gold), transparent);
}
.section--light .method .step { border-top-color: rgba(201, 162, 77, 0.3); color: rgba(255, 255, 255, 0.45); }
.section--light .method .step:hover { color: rgba(255, 255, 255, 0.8); }
.section--light .method .step.is-active { color: #fff; }
.section--light .method .step::before { background: #efbf04; }
.section--light .method .step-panel {
  background: linear-gradient(135deg, rgba(201, 162, 77, 0.12), rgba(255, 255, 255, 0.03));
  border-color: rgba(201, 162, 77, 0.35); box-shadow: none;
}
.section--light .method .step-panel__num { color: #efbf04; }
.section--light .method .step-panel h3 { color: #fff; }
.section--light .method .step-panel__right p { color: rgba(255, 255, 255, 0.78); }
.section--light .method .tags li { border-color: rgba(201, 162, 77, 0.5); color: #fff; background: rgba(201, 162, 77, 0.1); }
.section--light .step-panel__num { color: var(--gold-hover); }
.section--light .step-panel__right p { color: var(--grey-500); }
.section--light .tags li { border-color: var(--grey-200); color: var(--grey-700); }

/* ---------- Planner ---------- */
.planner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; max-width: 1100px; margin-inline: auto; }
.planner__tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.tile {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px; min-height: 150px;
  border-radius: var(--radius-lg); background: var(--navy-2); border: 1px solid var(--navy-line); color: var(--white);
  cursor: pointer; transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.22); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: auto;
  background: rgba(255, 255, 255, 0.06); transition: background 0.25s;
}
.tile__icon svg { width: 21px; height: 21px; fill: none; stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.25s; }
.tile strong { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; margin-top: 18px; }
.tile small { color: rgba(255, 255, 255, 0.55); font-size: 0.84rem; }

/* "+" that turns into a check when selected */
.tile__check {
  position: absolute; top: 20px; right: 20px; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25); transition: background 0.25s, border-color 0.25s, transform 0.4s var(--ease);
}
.tile__check::before, .tile__check::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.7); transform: translate(-50%, -50%); transition: all 0.3s var(--ease);
}
.tile__check::after { transform: translate(-50%, -50%) rotate(90deg); }
.tile:has(input:checked) { background: linear-gradient(160deg, rgba(201, 162, 77, 0.18), var(--navy-2) 60%); border-color: var(--gold); }
.tile:has(input:checked) .tile__icon { background: var(--gold); }
.tile:has(input:checked) .tile__icon svg { stroke: var(--navy); }
.tile:has(input:checked) .tile__check { background: var(--gold); border-color: var(--gold); transform: rotate(360deg); }
.tile:has(input:checked) .tile__check::before { width: 6px; height: 2px; background: var(--navy); transform: translate(-95%, 30%) rotate(45deg); }
.tile:has(input:checked) .tile__check::after { width: 11px; height: 2px; background: var(--navy); transform: translate(-30%, -20%) rotate(-50deg); }
.tile:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Plan summary — a cream card that stands out on the navy section */
.plan {
  position: sticky; top: 100px; padding: 30px; border-radius: var(--radius-lg);
  background: var(--cream); color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.section--navy .plan .eyebrow { color: var(--gold-dark); margin-bottom: 6px; }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plan__name { font-size: 1.9rem; }
.plan__label { font-size: 0.85rem; color: var(--grey-500); margin: 6px 0 22px; }
/* Visibility meter: one segment per service, the needle swings with a small bounce */
.gauge { width: 132px; flex: none; margin-right: -6px; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge__seg { fill: none; stroke: rgba(14, 26, 46, 0.1); stroke-width: 10; transition: stroke 0.35s; }
.gauge__seg.is-on { stroke: var(--gold); }
.gauge__needle { transform-origin: 60px 60px; transform: rotate(-90deg); transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1); }
.gauge__needle line { stroke: var(--navy); stroke-width: 3.5; stroke-linecap: round; }
.gauge__needle circle { fill: var(--navy); stroke: var(--cream); stroke-width: 2; }
.plan__label strong { font-family: var(--font-head); font-weight: 600; color: var(--gold-dark); }

.plan__list { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid rgba(14, 26, 46, 0.1); }
.plan__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(14, 26, 46, 0.1); animation: pop 0.3s var(--ease);
}
.plan__list strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }
.plan__list small { font-size: 0.82rem; color: var(--grey-500); }
.plan__list button {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(14, 26, 46, 0.15);
  background: none; color: var(--grey-500); font-size: 1.05rem; line-height: 1; transition: all 0.2s;
}
.plan__list button:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.plan__list .plan__empty { justify-content: center; color: var(--grey-500); font-size: 0.9rem; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }

.plan__tip { font-size: 0.86rem; color: var(--grey-700); margin-bottom: 20px; padding: 12px 14px; border-radius: 12px; background: rgba(201, 162, 77, 0.14); }
.plan__tip span { display: inline-block; margin-right: 6px; font-family: var(--font-head); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); }
.plan__fine { margin-top: 12px; text-align: center; font-size: 0.78rem; color: var(--grey-500); }

/* Always-on banner under the planner */
.always {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  max-width: 900px; margin: 32px auto 0; padding: 30px 34px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); border: 1px solid var(--navy-line);
  position: relative; overflow: hidden;
}
.always::before {
  content: ""; position: absolute; width: 320px; height: 320px; left: -120px; bottom: -180px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 162, 77, 0.18), transparent);
}
.always > * { position: relative; }
.always h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.15; margin-bottom: 18px; }
.week { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.week li {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 0.7rem;
  background: rgba(201, 162, 77, 0.14); border: 1px solid rgba(201, 162, 77, 0.4); color: var(--gold-light);
}
.always.is-visible .week li { animation: dayOn 0.5s var(--ease) both; }
.week li:nth-child(n + 6) { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.always.is-visible .week li:nth-child(1) { animation-delay: 0.1s; }
.always.is-visible .week li:nth-child(2) { animation-delay: 0.18s; }
.always.is-visible .week li:nth-child(3) { animation-delay: 0.26s; }
.always.is-visible .week li:nth-child(4) { animation-delay: 0.34s; }
.always.is-visible .week li:nth-child(5) { animation-delay: 0.42s; }
.always.is-visible .week li:nth-child(6) { animation-delay: 0.5s; }
.always.is-visible .week li:nth-child(7) { animation-delay: 0.58s; }
@keyframes dayOn { from { opacity: 0; transform: translateY(8px) scale(0.9); } }

.always__list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.always__list li { padding-left: 28px; position: relative; color: rgba(255, 255, 255, 0.68); font-size: 0.86rem; }
.always__list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; background: var(--gold); color: var(--navy);
}
.always .btn { padding: 12px 22px; font-size: 0.88rem; }
.always__list strong { display: block; color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius); background: var(--navy-2); border: 1px solid var(--navy-line); transition: border-color 0.3s, background 0.3s; }
.faq__item[open] { border-color: rgba(227, 199, 126, 0.35); background: var(--navy-3); }
.faq__item summary {
  list-style: none; display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__num { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 0.72rem; background: rgba(255, 255, 255, 0.08); color: var(--gold-light); }
.faq__icon { margin-left: auto; flex: none; width: 14px; height: 14px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1.5px; background: rgba(255, 255, 255, 0.7); transition: transform 0.3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__body { padding: 0 24px 24px 72px; color: rgba(255, 255, 255, 0.72); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h2 { margin-bottom: 18px; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; border-top: 1px solid var(--grey-200); max-width: 420px; }
.contact__list li { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--grey-200); font-weight: 500; }
.contact__list span { color: var(--grey-500); font-weight: 400; }
.contact__list a { color: var(--gold-dark); }
.contact__plan { margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.contact__plan p { color: rgba(255, 255, 255, 0.68); }

.form { display: grid; gap: 16px; padding: 36px; border-radius: var(--radius-lg); background: var(--grey-50); border: 1px solid var(--grey-200); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 0.85rem; font-weight: 500; color: var(--grey-700); }
.form input, .form textarea {
  font: inherit; font-size: 0.95rem; color: var(--ink); padding: 13px 16px;
  border: 1px solid var(--grey-200); border-radius: 12px; background: var(--white); resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 77, 0.14); }
.form .btn { margin-top: 6px; }
.form__note { font-size: 0.85rem; color: var(--gold-dark); min-height: 1.2em; text-align: center; }

/* Contact on a navy section */
.section--navy .contact__list, .section--navy .contact__list li { border-color: var(--navy-line); }
.section--navy .contact__list span { color: rgba(255, 255, 255, 0.55); }
.section--navy .contact__list a { color: var(--gold-light); }
.section--navy .form { background: var(--navy-2); border-color: var(--navy-line); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3); }
.section--navy .form label { color: rgba(255, 255, 255, 0.8); }
.section--navy .form input, .section--navy .form textarea { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); color: var(--white); }
.section--navy .form input::placeholder, .section--navy .form textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.section--navy .form input:focus, .section--navy .form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 77, 0.2); }
.section--navy .form__note { color: var(--gold-light); }

/* FAQ on a light section */
.section--light .faq__item { background: var(--white); border-color: var(--grey-200); }
.section--light .faq__item[open] { background: var(--white); border-color: var(--gold); box-shadow: var(--shadow); }
.section--light .faq__num { background: var(--grey-100); color: var(--gold-dark); }
.section--light .faq__icon::before, .section--light .faq__icon::after { background: var(--grey-700); }
.section--light .faq__body { color: var(--grey-500); }

/* Contact form extras: required/optional markers, honeypot, status messages */
.form .req { color: var(--gold); }
.form .opt { font-weight: 400; opacity: 0.6; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form input.is-invalid, .form textarea.is-invalid { border-color: #e07a6a; box-shadow: 0 0 0 3px rgba(224, 122, 106, 0.18); }
.form .btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.form__note:empty { display: none; }
.form__note { font-size: 0.9rem; line-height: 1.5; padding: 12px 14px; border-radius: 12px; text-align: left; }
.form__note a { color: inherit; text-decoration: underline; }
.form__note--success { background: rgba(80, 180, 120, 0.14); color: #2f7a4f; }
.form__note--error { background: rgba(224, 122, 106, 0.14); color: #b4493a; }
.section--navy .form__note--success { color: #8fe0b0; }
.section--navy .form__note--error { color: #f0a597; }

/* Privacy hint under the contact form */
.form__privacy { font-size: 0.78rem; line-height: 1.5; color: var(--grey-500); text-align: center; }
.form__privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.section--navy .form__privacy { color: rgba(255, 255, 255, 0.55); }
.section--navy .form__privacy a:hover { color: var(--gold-light); }

/* ---------- Footer ---------- */
.footer { padding: 48px 0; border-top: 1px solid var(--navy-line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.footer__links a:hover { color: var(--white); }
.footer__copy { font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); }
.footer__bottom { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__legal { display: flex; gap: 18px; font-size: 0.82rem; }
.footer__legal a { color: rgba(255, 255, 255, 0.6); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.25); }
.footer__legal a:hover { color: var(--gold-light); }

/* ---------- Legal pages (Impressum, Datenschutz) ---------- */
.legal { padding: calc(72px + clamp(48px, 7vw, 90px)) 0 clamp(70px, 9vw, 110px); }
.legal__inner { width: min(780px, 100% - 32px); margin-inline: auto; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 10px; }
.legal__meta { color: var(--grey-500); font-size: 0.9rem; margin-bottom: 44px; }
.legal h2 { font-size: 1.35rem; margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--grey-200); }
.legal h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--grey-700); line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal address { font-style: normal; line-height: 1.75; color: var(--grey-700); }
.legal__card { padding: 22px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--grey-200); margin: 14px 0; }
.legal__note { font-size: 0.85rem; padding: 14px 18px; border-radius: 12px; background: rgba(201, 162, 77, 0.12); color: var(--grey-700); margin-bottom: 36px; }
.nav__back { color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; font-weight: 500; }
.nav__back:hover { color: #fff; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--white); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease), background 0.2s;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--navy); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Services carousel on phones ---------- */
.services__dots { display: none; }
@media (max-width: 760px) {
  .services {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 6px 16px 18px; scroll-padding-inline: 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .services::-webkit-scrollbar { display: none; }
  .service { flex: 0 0 84%; scroll-snap-align: start; }
  .service:hover { transform: none; }
  .services__dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
  .services__dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, 0.25); transition: width 0.3s var(--ease), background 0.3s;
  }
  .services__dots button.is-active { width: 24px; background: var(--gold); }
}

/* ---------- Dark mode ----------
   Cream sections turn grey; navy sections stay as they are. Light-section
   tokens are remapped so cards, text and borders follow automatically. */
:root[data-theme="dark"] body { background: #26272b; color: #f4f4f5; }
:root[data-theme="dark"] .section--light {
  --cream: #26272b;
  --white: #313238;
  --ink: #f4f4f5;
  --grey-50: #2d2e33;
  --grey-100: #393a40;
  --grey-200: #43444b;
  --grey-300: #55565e;
  --grey-400: #8b8c94;
  --grey-500: #a9aab1;
  --grey-700: #d4d4d8;
  --gold-dark: #e3c77e;
  --gold-soft: rgba(201, 162, 77, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.4);
  color: var(--ink);
}
:root[data-theme="dark"] .plan { --cream: #26272b; --ink: #f4f4f5; --grey-500: #a9aab1; --grey-700: #d4d4d8; --gold-dark: #e3c77e; }
:root[data-theme="dark"] .gauge__seg:not(.is-on) { stroke: rgba(255, 255, 255, 0.12); }
:root[data-theme="dark"] .gauge__needle line { stroke: #f4f4f5; }
:root[data-theme="dark"] .gauge__needle circle { fill: #f4f4f5; }
:root[data-theme="dark"] .plan__list,
:root[data-theme="dark"] .plan__list li { border-color: rgba(255, 255, 255, 0.1); }
:root[data-theme="dark"] .plan__list button { border-color: rgba(255, 255, 255, 0.18); }
:root[data-theme="dark"] .plan__list button:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
:root[data-theme="dark"] .float__g { color: #ffffff; }
:root[data-theme="dark"] .ba__status,
:root[data-theme="dark"] .ba__list--bad li::before { background: rgba(220, 107, 90, 0.16); color: #f0a597; }
:root[data-theme="dark"] .ba__card--before dd.ba__text { color: #f0a597; }
:root[data-theme="dark"] .hero__visual::before { background: radial-gradient(closest-side, rgba(201, 162, 77, 0.1), transparent 70%); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero__grid, .planner, .contact, .always, .found__grid { grid-template-columns: 1fr; }
  .always { padding: 26px 22px; gap: 22px; }
  .hero__visual { max-width: 560px; }
  .plan { position: relative; top: 0; }
  .step-panel { grid-template-columns: 1fr; gap: 20px; padding: 32px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--grey-200); padding: 8px 24px 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--grey-100); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; }
}
@media (max-width: 600px) {
  .container, .container--narrow { width: calc(100% - 32px); }
  .services { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .found__points { grid-template-columns: 1fr; }
  .week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .week li { width: auto; height: auto; aspect-ratio: 1; font-size: 0.68rem; border-radius: 10px; }
  .form, .ba__card, .plan { padding: 26px 22px; }
  .planner__tiles { gap: 10px; }
  .tile { padding: 16px; min-height: 0; }
  .tile__check { top: 14px; right: 14px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
  .method { padding: 26px 20px 22px; }
  .step { font-size: 1.02rem; }
  .faq__body { padding-left: 24px; }
  .float--traffic { right: 0; top: -10px; width: 160px; }
  .float--rating { left: 0; bottom: 10px; }
  .hero__visual { padding: 40px 0 50px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .lang-toggle { margin-left: 0; }
  .lang-toggle a { padding: 6px 8px; }
  .lang-toggle + .theme-toggle { margin-left: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bars i { transform: none; }
  .marquee ul { animation: marquee 60s linear infinite !important; } /* keep the industry loop running, just slower */
  html { scroll-behavior: auto; }
}

/* Placeholders on the legal pages that still need real details */
mark.todo { background: rgba(220, 107, 90, 0.16); color: #b4493a; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
:root[data-theme="dark"] mark.todo { color: #f0a597; }

/* ---------- Phones: slightly smaller, tighter type and spacing ----------
   Shrinking the root size scales every rem-based font and gap at once;
   the rules below fine-tune headings and section spacing. */
@media (max-width: 600px) {
  html { font-size: 93.75%; } /* 15px base */
  body { line-height: 1.55; }

  .nav__inner { height: 62px; }
  .nav__links { top: 62px; }
  .brand__mark { width: 28px; height: 28px; }
  .brand__logo { height: 26px; }
  .brand__word { font-size: 1.4rem; }
  .theme-toggle { width: 36px; height: 36px; }
  .lang-toggle a { padding: 5px 7px; font-size: 0.7rem; }

  .section { padding: 64px 0; }
  .hero { padding-top: calc(62px + 44px); padding-bottom: 72px; }
  .section__head { margin-bottom: 32px; }
  .eyebrow { font-size: 0.66rem; margin-bottom: 12px; }

  h1, .hero__title { font-size: 2.15rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.12rem; }
  .lead { font-size: 1rem; }
  .big-line { font-size: 1.6rem; margin-top: 52px; }

  .btn { padding: 13px 22px; font-size: 0.9rem; }
  .hero__actions { margin: 26px 0 22px; }
  .hero__visual { padding: 28px 0 40px; }
  .browser__body { padding: 18px 18px 22px; }
  .sk-grid div { height: 56px; }
  .float { padding: 10px 14px; }

  .found__grid { gap: 40px; }
  .found__points { margin-top: 24px; }
  .search { padding: 14px; }
  .search__map { height: 120px; }
  .result { padding: 10px 12px; gap: 10px; }
  .marquee { margin-top: 48px; }
  .marquee li { padding: 8px 16px; font-size: 0.8rem; }

  .service { padding: 24px 22px; }
  .service__icon { width: 44px; height: 44px; margin-bottom: 20px; }
  .services__cta { margin-top: 32px; }

  .page-hero { padding-top: calc(62px + 48px); padding-bottom: 56px; }
  .projects { gap: 64px; }
  .project__frames { padding: 0 12% 10% 0; }
  .project__phone { width: 28%; padding: 4px; border-radius: 16px; }
  .project__phone img { border-radius: 12px; }
  .project__bar { padding: 8px 10px; }
  .project__bar i { width: 7px; height: 7px; }
  .projects__next { margin-top: 72px; padding: 30px 24px; }

  .ba-switch { width: 220px; margin-bottom: 24px; }
  .ba__card { gap: 20px; }
  .ba__score { font-size: 2.8rem; }
  .bars { height: 70px; }

  .tile { padding: 14px; gap: 2px; }
  .tile__icon { width: 36px; height: 36px; border-radius: 10px; }
  .tile__icon svg { width: 18px; height: 18px; }
  .tile strong { margin-top: 12px; font-size: 0.92rem; }
  .tile small { font-size: 0.76rem; }
  .tile__check { width: 24px; height: 24px; }
  .plan__name { font-size: 1.55rem; }
  .gauge { width: 108px; }
  .always h3 { font-size: 1.25rem; }

  .step { font-size: 0.95rem; padding-top: 12px; }
  .step-panel { padding: 22px; gap: 14px; }
  .step-panel__num { font-size: 2.6rem; margin-bottom: 8px; }
  .step-panel h3 { font-size: 1.4rem; }
  .step-panel__right p { font-size: 0.95rem; }

  .contact { gap: 36px; }
  .form { gap: 12px; }
  .form input, .form textarea { padding: 11px 14px; font-size: 16px; } /* 16px stops iOS zooming into fields */

  .faq__item summary { padding: 16px 18px; gap: 12px; font-size: 0.95rem; }
  .faq__num { width: 28px; height: 28px; }
  .faq__body { padding: 0 18px 18px; font-size: 0.95rem; }

  .legal { padding-top: calc(62px + 36px); }
  .legal h2 { font-size: 1.2rem; margin-top: 32px; }
  .to-top { width: 40px; height: 40px; right: 16px; bottom: 16px; }
}
