/* ==========================================================================
   Luxartig — Editorial / kinetic scroll design
   Dark "chapters" alternating with light ones. Every chapter announces
   itself in the fixed HUD at the bottom. Micro-labels are monospace,
   headlines are heavy grotesk with tight tracking.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

/* ---------- Tokens ---------- */
:root {
  --bg:   #0a0b0e;
  --fg:   #edece6;
  --dim:  #6b7079;
  --line: rgba(237, 236, 230, .12);
  --soft: rgba(237, 236, 230, .05);

  /* light chapter values, applied through [data-light] below */
  --lbg:   #eae7df;
  --lfg:   #16150f;
  --ldim:  #6d6a5e;
  --lline: rgba(22, 21, 15, .16);
  --lsoft: rgba(22, 21, 15, .045);

  --accent:  #19b3b0;
  --accent2: #5fe8e9;

  --mono: 'Space Grotesk', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --disp: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  --ease:  cubic-bezier(.65, .05, 0, 1);
  --easeO: cubic-bezier(.16, 1, .3, 1);

  --pad: clamp(20px, 5.2vw, 76px);
}

/* A light chapter simply re-points the same tokens, so every component
   inside keeps using --fg / --dim / --line and inverts for free. */
[data-light] {
  --bg:   var(--lbg);
  --fg:   var(--lfg);
  --dim:  var(--ldim);
  --line: var(--lline);
  --soft: var(--lsoft);
  background: var(--lbg);
  color: var(--lfg);
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  /* clip, not hidden: `hidden` would turn body into a scroll container and
     break every position:sticky chapter below. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

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

/* ---------- Shared bits ---------- */
.sg {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-weight: 500;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.ch {
  position: relative;
  padding: clamp(90px, 13vh, 150px) var(--pad);
}
.ch-tall { padding: 0; }

.ln { display: block; overflow: hidden; }
.ln > span { display: inline-block; will-change: transform; }
.chx { display: inline-block; will-change: transform; }

h2.big {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: .96;
  letter-spacing: -.04em;
}
h2.big em { font-style: italic; color: var(--accent); }

.lede {
  max-width: 46ch;
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.75;
}

.head-block { max-width: 900px; margin-bottom: clamp(48px, 7vw, 84px); }
.head-block .tag { display: block; margin-bottom: 22px; }
.head-block h2.big { margin-bottom: 24px; }

.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 15px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  transition: background .4s var(--easeO), color .4s var(--easeO), border-color .4s var(--easeO), transform .4s var(--easeO);
}
.btn:hover { transform: translateY(-2px); }
.btn-fill {
  background: var(--accent);
  border-color: var(--accent);
  color: #04100f;
}
.btn-fill:hover { background: var(--accent2); border-color: var(--accent2); }
.btn-ghost:hover { border-color: var(--fg); background: var(--soft); }

/* ==========================================================================
   Header
   ========================================================================== */
.hd {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  color: var(--fg);
  transition: color .5s var(--easeO);
  pointer-events: none;
}
.hd > * { pointer-events: auto; }
body.is-light .hd { color: var(--lfg); }

.hd-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 700;
  text-transform: uppercase;
}
.hd-logo img { width: 20px; height: 20px; object-fit: contain; }

.hd-right { display: flex; align-items: center; gap: 22px; }

.hd-lang {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 700;
}
.hd-lang a { color: var(--dim); transition: color .3s var(--easeO); }
.hd-lang a:hover { color: var(--fg); }
.hd-lang a.is-on { color: var(--accent); }
body.is-light .hd-lang a { color: var(--ldim); }
body.is-light .hd-lang a:hover { color: var(--lfg); }
.hd-lang i { width: 1px; height: 10px; background: currentColor; opacity: .25; font-style: normal; }
@media (max-width: 460px) { .hd-lang { display: none; } }
.hd-clock {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
body.is-light .hd-clock { color: var(--ldim); }
.hd-city {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--dim);
}
body.is-light .hd-city { color: var(--ldim); }

.menu-btn {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 700;
  color: inherit;
}
.menu-btn span { display: inline-block; transition: transform .5s var(--easeO); }
body.menu-open .menu-btn span { transform: rotate(135deg); }

@media (max-width: 620px) {
  .hd-clock, .hd-city { display: none; }
}

/* ---------- Menu overlay ---------- */
.menu-ov {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: #08090c;
  color: #edece6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad) 60px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .9s var(--ease), visibility 0s .9s;
  pointer-events: none;
}
body.menu-open .menu-ov {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  pointer-events: auto;
  transition: clip-path .9s var(--ease), visibility 0s 0s;
}

.menu-list { max-width: 1100px; width: 100%; margin: 0 auto; }
.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: clamp(10px, 1.6vh, 18px) 0;
  border-top: 1px solid rgba(237, 236, 230, .1);
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(30px, 6vw, 74px);
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: #edece6;
  opacity: .55;
  transition: opacity .4s var(--easeO), padding-left .5s var(--easeO), color .4s var(--easeO);
}
.menu-list a:hover { opacity: 1; padding-left: 18px; color: var(--accent2); }
.menu-list a i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--accent);
  flex: 0 0 auto;
}
.menu-foot {
  max-width: 1100px;
  width: 100%;
  margin: clamp(32px, 6vh, 60px) auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #6b7079;
}
.menu-foot a:hover { color: var(--accent2); }

/* ---------- HUD ---------- */
.hud {
  position: fixed;
  left: var(--pad);
  bottom: 24px;
  z-index: 880;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dim);
  pointer-events: none;
  transition: color .5s var(--easeO);
  mix-blend-mode: normal;
}
body.is-light .hud { color: var(--ldim); }
body.menu-open .hud { opacity: 0; }
.hud-bar {
  width: 74px;
  height: 1px;
  background: currentColor;
  opacity: .3;
  position: relative;
}
.hud-bar i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 1;
}
.hud-name { color: inherit; }
@media (max-width: 620px) { .hud { display: none; } }

/* ---------- Custom cursor (fine pointers only) ---------- */
.cur {
  position: fixed;
  left: 0; top: 0;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid rgba(237, 236, 230, .5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: width .35s var(--easeO), height .35s var(--easeO), margin .35s var(--easeO),
              background .35s var(--easeO), border-color .35s var(--easeO), opacity .3s;
  display: none;
}
@media (pointer: fine) { .cur { display: block; } }
body.is-light .cur { border-color: rgba(22, 21, 15, .45); }
body.cur-on .cur { opacity: 1; }
body.cur-hot .cur {
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  background: rgba(25, 179, 176, .18);
  border-color: var(--accent);
}

/* ==========================================================================
   01 — Hero / core
   ========================================================================== */
.sr-only {
  position: absolute;
  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;
}

/* Three acts play out inside this one sticky viewport, so it needs room. */
.hero { height: 300vh; }
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* generous bottom padding so the intro copy clears the cookie banner */
  padding: 0 var(--pad) clamp(96px, 13vh, 136px);
}

.core-wrap { position: absolute; inset: 0; pointer-events: none; }
.core-halo {
  position: absolute;
  top: 50%; left: 62%;
  width: min(78vh, 60vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(25, 179, 176, .20) 0%, rgba(25, 179, 176, .07) 38%, transparent 68%);
  filter: blur(30px);
}
#coreCv {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: auto;
  touch-action: pan-y;
}
.core-hint {
  position: absolute;
  top: 96px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.hero-sub {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}
.hero-sub p {
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: #b9b8b1;
}
.hero-sub p b { color: var(--fg); font-weight: 600; }
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--dim);
}
.scroll-hint i {
  width: 26px; height: 1px;
  background: currentColor;
  animation: sh 2.2s var(--ease) infinite;
  transform-origin: 0 50%;
}
@keyframes sh { 0%, 100% { transform: scaleX(.3); } 50% { transform: scaleX(1); } }

/* ==========================================================================
   02 — Portal: SERVICES scales up, cream circle swallows the screen
   ========================================================================== */
.portal { height: 260vh; background: var(--bg); }
/* isolate so the difference-blended word only reacts to the portal itself */
.portal .sticky {
  justify-content: center;
  align-items: center;
  padding: 0;
  background: var(--bg);
  isolation: isolate;
}
.portal-fill {
  position: absolute;
  top: 50%; left: 50%;
  width: 60vmax; height: 60vmax;
  margin: -30vmax 0 0 -30vmax;
  border-radius: 50%;
  background: var(--lbg);
  transform: scale(0);
  will-change: transform;
}
.portal-word {
  position: relative;
  z-index: 3;
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(46px, 12vw, 168px);
  line-height: 1;
  letter-spacing: -.05em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  will-change: transform;
  white-space: nowrap;
}
.portal-meta {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.portal-meta.is-top { top: 24vh; }
.portal-meta.is-bot { bottom: 24vh; }

/* ==========================================================================
   03 — Services
   ========================================================================== */
.svc-grid { position: relative; display: block; }
.svc-rows { max-width: 100%; }

.srow {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  gap: 18px;
  align-items: start;
  padding: 26px 16px;
  margin: 0 -16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
  transition: padding-left .55s var(--easeO);
}
.srow:last-child { border-bottom: 1px solid var(--line); }
.srow:hover, .srow.is-active { padding-left: 28px; }

/* the row "charges up" with the brand navy on hover, like current
   surging through a circuit — sweeping in from the left. */
.srow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #081a44;
  box-shadow: inset 0 0 34px rgba(95, 232, 233, .28);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .5s var(--easeO);
  z-index: 0;
}
.srow:hover::before, .srow.is-active::before { transform: scaleX(1); }

.srow-idx, .srow-arr, .srow > div { position: relative; z-index: 1; }

.srow-idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--dim);
  padding-top: 9px;
  transition: color .4s var(--easeO);
}
.srow:hover .srow-idx, .srow.is-active .srow-idx { color: var(--accent2); }

.srow-t {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(24px, 3.1vw, 38px);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-transform: uppercase;
  transition: color .4s var(--easeO);
}
.srow:hover .srow-t, .srow.is-active .srow-t { color: #f5f6fa; }

.srow-s {
  margin-top: 8px;
  font-size: 13px;
  color: var(--dim);
  transition: color .4s var(--easeO);
}
.srow:hover .srow-s, .srow.is-active .srow-s { color: rgba(245, 246, 250, .72); }

.srow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.srow-tags em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  transition: color .4s var(--easeO), border-color .4s var(--easeO);
}
.srow:hover .srow-tags em, .srow.is-active .srow-tags em {
  color: var(--accent2);
  border-color: rgba(95, 232, 233, .4);
}

.srow-arr {
  font-size: 20px;
  color: var(--dim);
  padding-top: 6px;
  justify-self: end;
  transition: transform .55s var(--easeO), color .4s var(--easeO);
}
.srow:hover .srow-arr, .srow.is-active .srow-arr { transform: translateX(6px); color: var(--accent2); }

/* Desktop: a sticky "stage" on the right shows the active diorama */
.dio-stage { display: none; }

@media (min-width: 1000px) {
  .svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 70px; align-items: start; }
  .dio-stage {
    display: block;
    position: sticky;
    top: 140px;
    height: 300px;
  }
}

.dio {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity .5s var(--easeO), transform .6s var(--easeO);
  pointer-events: none;
}
.dio.is-on { opacity: 1; transform: none; }

.dio-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
.dio-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dio-bar i:nth-child(3) { margin-right: 8px; }
.dio-bar span { margin-left: auto; }
.dio-body { padding: 16px; height: calc(100% - 37px); position: relative; }

.dio-chip {
  position: absolute;
  left: 16px; bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(25, 179, 176, .4);
  background: rgba(25, 179, 176, .09);
  border-radius: 999px;
  padding: 5px 11px;
  opacity: 0;
}
.dio.is-on .dio-chip { animation: pop .5s var(--easeO) 2.1s forwards; }
.dio-chip b { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* d1 — design */
.d-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.d-swatches i { height: 30px; border-radius: 6px; opacity: 0; transform: scale(.6); }
.dio.is-on .d-swatches i { animation: pop .45s var(--easeO) forwards; }
.dio.is-on .d-swatches i:nth-child(1) { animation-delay: .5s; }
.dio.is-on .d-swatches i:nth-child(2) { animation-delay: .68s; }
.dio.is-on .d-swatches i:nth-child(3) { animation-delay: .86s; }
.dio.is-on .d-swatches i:nth-child(4) { animation-delay: 1.04s; }
.d-lines i {
  display: block;
  height: 8px;
  border-radius: 3px;
  background: var(--line);
  margin-bottom: 8px;
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.dio.is-on .d-lines i { animation: grow .6s var(--easeO) forwards; }
.dio.is-on .d-lines i:nth-child(1) { animation-delay: 1.2s; width: 78%; }
.dio.is-on .d-lines i:nth-child(2) { animation-delay: 1.4s; width: 54%; }
.dio.is-on .d-lines i:nth-child(3) { animation-delay: 1.6s; width: 66%; }
@keyframes grow { to { transform: scaleX(1); } }

/* d2 — social */
.d-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.d-posts i {
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(140deg, rgba(25,179,176,.34), rgba(95,232,233,.10));
  opacity: 0;
  transform: translateY(10px);
}
.dio.is-on .d-posts i { animation: pop .5s var(--easeO) forwards; }
.dio.is-on .d-posts i:nth-child(1) { animation-delay: .5s; }
.dio.is-on .d-posts i:nth-child(2) { animation-delay: .72s; }
.dio.is-on .d-posts i:nth-child(3) { animation-delay: .94s; }
.d-week { display: flex; gap: 6px; }
.d-week span {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  color: var(--dim);
  padding: 8px 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
}
.d-week span::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 5px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
.dio.is-on .d-week span.on::after { animation: pop .4s var(--easeO) forwards; }
.dio.is-on .d-week span.on:nth-of-type(2)::after { animation-delay: 1.25s; }
.dio.is-on .d-week span.on:nth-of-type(4)::after { animation-delay: 1.45s; }
.dio.is-on .d-week span.on:nth-of-type(6)::after { animation-delay: 1.65s; }

/* d3 — website */
.d-url {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 14px;
  display: inline-block;
}
.d-blocks i {
  display: block;
  border-radius: 6px;
  background: var(--line);
  margin-bottom: 8px;
  transform-origin: 0 0;
  transform: scaleY(0);
}
.dio.is-on .d-blocks i { animation: growY .45s var(--easeO) forwards; }
.dio.is-on .d-blocks i:nth-child(1) { animation-delay: .55s; height: 42px; }
.dio.is-on .d-blocks i:nth-child(2) { animation-delay: .85s; height: 18px; width: 72%; }
.dio.is-on .d-blocks i:nth-child(3) { animation-delay: 1.15s; height: 18px; width: 55%; }
.dio.is-on .d-blocks i:nth-child(4) { animation-delay: 1.45s; height: 26px; width: 40%; background: rgba(25,179,176,.4); }
@keyframes growY { to { transform: scaleY(1); } }

/* d4 — digital business card */
.d-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
}
.dio.is-on .d-card { animation: pop .55s var(--easeO) .5s forwards; }
.d-qr {
  width: 62px; height: 62px;
  flex: 0 0 auto;
  border-radius: 6px;
  background-image:
    linear-gradient(90deg, var(--fg) 2px, transparent 2px),
    linear-gradient(0deg, var(--fg) 2px, transparent 2px);
  background-size: 8px 8px;
  opacity: .55;
}
.d-card-lines i { display: block; height: 7px; border-radius: 3px; background: var(--line); margin-bottom: 7px; }
.d-card-lines i:nth-child(1) { width: 84px; background: var(--accent); opacity: .7; }
.d-card-lines i:nth-child(2) { width: 108px; }
.d-card-lines i:nth-child(3) { width: 66px; }
.d-save-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--accent);
  color: #04100f;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  border-radius: 999px;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(8px);
}
.dio.is-on .d-save-btn { animation: pop .5s var(--easeO) .9s forwards; }


/* d5 — automation chat */
.d-msg {
  max-width: 84%;
  font-size: 11.5px;
  line-height: 1.45;
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 9px;
  opacity: 0;
  transform: translateY(8px);
}
.d-msg.u { background: var(--soft); border: 1px solid var(--line); }
.d-msg.a { background: rgba(25,179,176,.14); border: 1px solid rgba(25,179,176,.3); margin-left: auto; }
.dio.is-on .d-msg { animation: pop .5s var(--easeO) forwards; }
.dio.is-on .d-msg:nth-of-type(1) { animation-delay: .55s; }
.dio.is-on .d-msg:nth-of-type(2) { animation-delay: 1.35s; }

/* ==========================================================================
   04 — Marquee
   ========================================================================== */
.mq-sec { padding: clamp(70px, 11vh, 130px) 0; overflow: hidden; }
.mq-sec .tag { padding: 0 var(--pad); display: block; margin-bottom: 40px; }
.mq { overflow: hidden; width: 100%; }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-item {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(34px, 6.6vw, 92px);
  line-height: 1.12;
  letter-spacing: -.04em;
  text-transform: uppercase;
  padding-right: .38em;
  white-space: nowrap;
}
.mq-item.out {
  -webkit-text-stroke: 1px var(--line);
  color: transparent;
}
.mq-item.acc { color: var(--accent); }

/* ==========================================================================
   05 — Tally / why
   ========================================================================== */
.tally { margin-top: clamp(40px, 6vw, 70px); max-width: 780px; }
.tal {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
.tal:last-child { border-bottom: 1px solid var(--line); }
.tal-dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-3px); }
.tal-v { color: var(--fg); font-weight: 700; letter-spacing: .12em; }
.tal-v.acc { color: var(--accent); }

/* the two "we came from your trade" panels */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 64px);
}
.exp-cell {
  background: var(--bg);
  padding: clamp(24px, 3vw, 34px);
}
.exp-cell .k {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.exp-cell h3 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.18;
  letter-spacing: -.03em;
  margin-bottom: 14px;
}
.exp-cell p { font-size: 14px; line-height: 1.72; color: var(--dim); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(46px, 7vw, 76px);
}
.why-cell {
  background: var(--bg);
  padding: 28px 24px 30px;
  position: relative;
  overflow: hidden;
}
.why-cell .n {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
}
.why-cell .n small { font-size: .5em; color: var(--accent); }
.why-cell p { font-size: 13px; color: var(--dim); line-height: 1.6; }

/* an accent rule that draws itself in when the cell arrives */
.why-line {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--easeO) .25s;
}
.why-cell.is-counted .why-line { transform: scaleX(1); }

/* ---------- Odometer digits ---------- */
.odo { display: inline-flex; }
.odo-d {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
  /* every column is as wide as the widest digit (e.g. "0"), so a narrow
     glyph like "1" must be centred in it — left-aligned, it left a gap of
     empty space after it that read as a stray space before the next digit */
  text-align: center;
}
.odo-d b {
  display: block;
  font-weight: inherit;
  transform: translateY(0);
  transition: transform 1.5s cubic-bezier(.16, 1, .3, 1);
}
.odo-d b i { display: block; height: 1em; line-height: 1; font-style: normal; }

/* ==========================================================================
   06 — FAQ
   ========================================================================== */
.faq { max-width: 900px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 21px);
  letter-spacing: -.02em;
  transition: color .35s var(--easeO);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px; top: 50%;
  width: 13px; height: 1px;
  background: currentColor;
  box-shadow: 0 0 0 currentColor;
  transition: transform .4s var(--easeO);
}
.faq summary::before {
  content: '';
  position: absolute;
  right: 6px; top: 50%;
  width: 13px; height: 1px;
  background: currentColor;
  transform: rotate(90deg);
  transition: transform .4s var(--easeO);
}
.faq details[open] summary::before { transform: rotate(0deg); }
.faq details p {
  padding: 0 60px 26px 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--dim);
  max-width: 62ch;
}

/* ==========================================================================
   07 — Contact / spotlight
   ========================================================================== */
.spot {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.spot-glow {
  position: absolute;
  width: 640px; height: 640px;
  margin: -320px 0 0 -320px;
  left: 50%; top: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25,179,176,.20) 0%, transparent 62%);
  pointer-events: none;
  transition: opacity .5s;
  opacity: 0;
}
.spot-big {
  position: relative;
  z-index: 2;
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(38px, 8.2vw, 118px);
  line-height: .92;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.spot-big em { font-style: italic; color: var(--accent); }
.spot-links {
  position: relative;
  z-index: 2;
  margin-top: clamp(40px, 6vw, 66px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: center;
}
.spot-mail {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(19px, 2.6vw, 32px);
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color .35s var(--easeO), border-color .35s var(--easeO);
}
.spot-mail:hover { color: var(--accent); border-color: var(--accent); }
.spot-meta {
  position: relative;
  z-index: 2;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Footer ---------- */
.ft {
  padding: 34px var(--pad) 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
}
.ft-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ft a:hover { color: var(--accent); }
.ft-soc { display: flex; gap: 14px; }
.ft-soc a { display: block; color: var(--dim); transition: color .3s; }
.ft-soc a:hover { color: var(--accent); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: -140%;
  z-index: 950;
  background: #101216;
  border-top: 1px solid var(--line);
  padding: 18px var(--pad);
  opacity: 0;
  transition: bottom .7s var(--easeO), opacity .5s;
}
.cookie-banner.is-visible { bottom: 0; opacity: 1; }
.cookie-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  justify-content: space-between;
}
.cookie-banner p {
  font-size: 12.5px;
  color: #b9b8b1;
  max-width: 68ch;
  line-height: 1.6;
}
.cookie-banner p a { color: var(--accent2); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 11px 20px; font-size: 9.5px; }
@media (max-width: 560px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}

/* ==========================================================================
   Standort — the planet you descend onto
   ========================================================================== */
.globe { height: 340vh; background: var(--bg); }
.globe .sticky { justify-content: flex-start; align-items: stretch; padding: 0; }
#globeCv {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.globe-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 34%, rgba(10, 11, 14, .72) 78%);
  transition: background .9s var(--easeO);
}
/* on arrival the address block needs a calm ground to sit on */
.globe.is-arrived .globe-vignette {
  background:
    linear-gradient(to top, rgba(10, 11, 14, .94) 0%, rgba(10, 11, 14, .55) 34%, transparent 62%),
    radial-gradient(circle at 50% 45%, transparent 30%, rgba(10, 11, 14, .8) 76%);
}

.globe-hud {
  position: absolute;
  left: var(--pad);
  top: 96px;
  display: grid;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
  pointer-events: none;
}
.globe-hud .row span { display: block; font-size: 9px; opacity: .6; margin-bottom: 5px; }
.globe-hud .row b {
  font-weight: 500;
  color: var(--fg);
  font-size: 12px;
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
}
.globe-hud .row b.acc { color: var(--accent); }

/* the label pinned to Salzweg, projected from 3D each frame */
.globe-marker {
  position: absolute;
  left: 0; top: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s var(--easeO);
  will-change: transform;
}
.globe-marker-inner {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.globe-pin {
  position: relative;
  width: 9px; height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 12px rgba(95, 232, 233, .9);
}
.globe-pin::before, .globe-pin::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent2);
  border-radius: 50%;
  animation: ping 2.6s var(--easeO) infinite;
}
.globe-pin::after { animation-delay: 1.3s; }
@keyframes ping {
  0%   { transform: scale(.6); opacity: .9; }
  70%  { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}
.globe-marker-label {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(10, 11, 14, .72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  backdrop-filter: blur(6px);
}

/* arrival: the contact block takes over */
.globe-arrive {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  padding: 0 var(--pad) clamp(60px, 9vh, 100px);
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--easeO), transform .9s var(--easeO);
  pointer-events: none;
}
.globe.is-arrived .globe-arrive { opacity: 1; transform: none; pointer-events: auto; }

.arrive-head {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(30px, 5.4vw, 66px);
  line-height: .98;
  letter-spacing: -.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.arrive-head em { font-style: italic; color: var(--accent); }

.arrive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  max-width: 1100px;
}
.arrive-cell {
  background: rgba(10, 11, 14, .82);
  backdrop-filter: blur(8px);
  padding: 20px 22px 22px;
}
.arrive-cell .k {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}
.arrive-cell .v {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: -.01em;
  line-height: 1.3;
  transition: color .35s var(--easeO);
}
a.arrive-cell:hover .v { color: var(--accent2); }

@media (max-width: 900px) {
  .globe { height: 300vh; }
  .globe-hud { top: 78px; gap: 10px; font-size: 9px; }
  .globe-hud .row b { font-size: 11px; }
  .globe-vignette { background: radial-gradient(circle at 50% 42%, transparent 26%, rgba(10, 11, 14, .8) 74%); }
  .arrive-cell { padding: 15px 16px 16px; }
}

/* ==========================================================================
   Scroll-driven FAQ — the answer opens as the question reaches the read line
   ========================================================================== */
.qa-wrap {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0 22px;
  max-width: 980px;
}
.qa-rail {
  position: sticky;
  top: 44vh;
  height: 1px;
  align-self: start;
}
.qa-rail i {
  display: block;
  width: 42px; height: 1px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: .8;
  transition: transform .7s var(--easeO);
}
.qa-list { min-width: 0; }

.qa {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.qa:last-child { border-bottom: 1px solid var(--line); }

.qa-q {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 26px;
  gap: 14px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  transition: opacity .5s var(--easeO), padding-left .5s var(--easeO);
  opacity: .42;
}
.qa.is-open .qa-q { opacity: 1; padding-left: 10px; }

.qa-n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--dim);
  transition: color .4s var(--easeO);
}
.qa.is-open .qa-n { color: var(--accent); }

.qa-t {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(17px, 2.3vw, 27px);
  line-height: 1.22;
  letter-spacing: -.025em;
}
.qa-mark {
  position: relative;
  width: 14px; height: 14px;
  justify-self: end;
  align-self: center;
}
.qa-mark::before, .qa-mark::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 1px;
  background: currentColor;
  opacity: .55;
  transition: transform .5s var(--easeO), opacity .4s;
}
.qa-mark::after { transform: rotate(90deg); }
.qa.is-open .qa-mark::before { opacity: 1; }
.qa.is-open .qa-mark::after { transform: rotate(0deg); opacity: 1; }

.qa-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .75s var(--ease), opacity .5s var(--easeO);
  opacity: 0;
}
.qa.is-open .qa-a { opacity: 1; }
.qa-a-inner {
  padding: 0 40px 28px 54px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--dim);
  max-width: 62ch;
}

@media (max-width: 720px) {
  .qa-wrap { grid-template-columns: 1fr; gap: 0; }
  .qa-rail { display: none; }
  .qa-q { grid-template-columns: 30px minmax(0, 1fr) 20px; gap: 10px; padding: 20px 0; }
  .qa-a-inner { padding: 0 0 22px 40px; }
}

/* ==========================================================================
   Inner pages (Kontakt, Branchen, Blog, Recht)
   ========================================================================== */
.page-top {
  padding: clamp(140px, 20vh, 210px) var(--pad) clamp(48px, 8vh, 80px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-top .tag { display: block; margin-bottom: 22px; }
.page-top h1 {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(38px, 7vw, 92px);
  line-height: .94;
  letter-spacing: -.045em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-top h1 em { font-style: italic; color: var(--accent); }
.page-top p { max-width: 56ch; color: var(--dim); font-size: 15px; line-height: 1.75; }

.prose {
  max-width: 760px;
  padding: clamp(56px, 9vh, 96px) var(--pad) clamp(80px, 12vh, 130px);
}
.prose h2 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 25px);
  letter-spacing: -.025em;
  margin: 46px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.prose p { font-size: 14.5px; line-height: 1.8; color: var(--dim); margin-bottom: 14px; }
.prose p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul { margin: 0 0 16px; }
.prose li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--dim);
  margin-bottom: 8px;
}
.prose li::before {
  content: '';
  position: absolute;
  left: 2px; top: 11px;
  width: 6px; height: 1px;
  background: var(--accent);
}

/* Branchen */
.branch {
  padding: clamp(50px, 8vh, 84px) 0;
  border-top: 1px solid var(--line);
}
.branch:first-of-type { border-top: 0; }
.branch-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}
.branch-head .ic {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--accent);
}
.branch-head h2 {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 46px);
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.branch-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.branch-col { background: var(--bg); padding: 26px 24px 28px; }
.branch-col .lbl {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.branch-col .lbl.warn { color: #e8b53f; }
.branch-col .lbl.good { color: var(--accent); }
.branch-col p { font-size: 14px; line-height: 1.7; color: var(--dim); margin-bottom: 14px; }
.branch-col li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--dim);
  margin-bottom: 9px;
}
.branch-col li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 7px; height: 1px;
  background: currentColor;
  opacity: .45;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 40px;
  transition: color .3s var(--easeO), gap .4s var(--easeO);
}
.back-link:hover { color: var(--accent); gap: 13px; }

.article-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 22px;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.bcard {
  background: var(--bg);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .45s var(--easeO);
}
.bcard:hover { background: var(--soft); }
.bcard .k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
}
.bcard h3 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.24;
  letter-spacing: -.025em;
}
.bcard p { font-size: 13.5px; line-height: 1.65; color: var(--dim); flex: 1; }
.bcard .m {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.bcard .m .go { color: var(--accent); transition: transform .4s var(--easeO); }
.bcard:hover .m .go { transform: translateX(5px); }

/* Kontakt page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  max-width: 1200px;
}
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--soft);
}
.panel + .panel { margin-top: 20px; }
.panel h3 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.panel > p { font-size: 13.5px; line-height: 1.7; color: var(--dim); margin-bottom: 20px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 14px;
  font-size: 14.5px;
  font-family: var(--body);
  color: var(--fg);
  transition: border-color .3s var(--easeO), background .3s var(--easeO);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(25, 179, 176, .05);
}
.field select option { background: #101216; color: #edece6; }
.field-error {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: #e8705f;
  margin-top: 7px;
  min-height: 12px;
}
.field.has-error input, .field.has-error select { border-color: #e8705f; }

.form-status {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.ok { color: var(--accent2); }
.form-status.err { color: #e8705f; }

.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.info-row:first-of-type { border-top: 0; padding-top: 0; }
.info-row .ic { color: var(--accent); flex: 0 0 auto; padding-top: 2px; }
.info-row .k {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 5px;
}
.info-row .v { font-size: 15px; font-weight: 500; }
a.info-link:hover .v { color: var(--accent2); }

.calendar-placeholder {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 26px 22px;
  text-align: center;
}
.calendar-placeholder p {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 46ch;
  margin-inline: auto;
}

/* ---------- Section watermark ---------- */
.wm {
  position: absolute;
  right: var(--pad);
  top: clamp(70px, 10vh, 110px);
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(90px, 16vw, 230px);
  line-height: .8;
  letter-spacing: -.06em;
  color: var(--fg);
  opacity: .035;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 760px) { .wm { display: none; } }

/* ---------- Intro curtain ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #08090c;
  display: grid;
  place-items: center;
  transition: clip-path 1.1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.curtain.is-up { clip-path: inset(0 0 100% 0); pointer-events: none; }
.curtain-inner {
  text-align: center;
  transition: opacity .5s var(--easeO), transform .6s var(--easeO);
}
.curtain.is-up .curtain-inner { opacity: 0; transform: translateY(-14px); }
.curtain-word {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(28px, 6vw, 64px);
  letter-spacing: -.045em;
  text-transform: uppercase;
  color: #edece6;
  margin-bottom: 18px;
}
.curtain-bar {
  width: min(220px, 48vw);
  height: 1px;
  background: rgba(237, 236, 230, .18);
  margin: 0 auto;
  overflow: hidden;
}
.curtain-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .9s var(--easeO);
}

/* ---------- Reveal ---------- */
[data-rise] { opacity: 0; transform: translateY(26px); }
[data-rise].in { opacity: 1; transform: none; transition: opacity .9s var(--easeO), transform 1s var(--easeO); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-rise] { opacity: 1; transform: none; }
  /* without the scroll choreography the tall chapters are just empty scroll */
  .hero, .portal { height: 100vh; }
  .globe { height: 160vh; }
  .portal-fill { display: none; }
  .portal-word { mix-blend-mode: normal; color: var(--fg); }
  .curtain { display: none; }
  /* every answer stays open — nothing depends on scrolling to be readable */
  .qa-a { max-height: none !important; opacity: 1 !important; }
  .qa-q { opacity: 1; }
}

/* ---------- Tablet (iPad portrait ≈ 820, landscape ≈ 1180) ---------- */
@media (min-width: 761px) and (max-width: 1099px) {
  :root { --pad: clamp(28px, 5vw, 52px); }

  .portal { height: 230vh; }
  .globe { height: 320vh; }
  .hero { height: 270vh; }
  .srow-t { font-size: clamp(22px, 3.4vw, 32px); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .arrive-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Touch devices never get a hover state, so make the tap targets real. */
@media (pointer: coarse) {
  .srow, .qa-q { min-height: 56px; }
  .btn { padding: 16px 26px; }
  .ft-links a, .menu-foot a { padding: 4px 0; display: inline-block; }
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .hero { height: 250vh; }
  .portal { height: 200vh; }
  .core-halo { left: 50%; top: 42%; width: 92vw; }
  .hero-sub { flex-direction: column; align-items: flex-start; }
  .srow { grid-template-columns: 34px 1fr 24px; gap: 12px; padding: 22px 2px; }
  .why-cell { padding: 22px 18px 24px; }
  .tal { font-size: 9.5px; letter-spacing: .14em; }
  .tal .tal-v { text-align: right; }
  .arrive-grid { grid-template-columns: 1fr 1fr; }
  .spot { min-height: 78vh; }
  .spot-links { gap: 14px 24px; }
  .prose h2 { margin-top: 34px; }
}

/* Very narrow phones */
@media (max-width: 400px) {
  .arrive-grid { grid-template-columns: 1fr; }

}

/* ==========================================================================
   RTL (Arabic)
   Flexbox rows and CSS Grid tracks already mirror themselves under
   dir="rtl" — the header, footer, service-row grid and two-column layouts
   need nothing here. This block only covers the handful of rules that use
   physical left/right positioning or a directional sweep/slide animation,
   where "mirror the whole box" isn't automatic. Arrow glyphs (→ / ←) are
   flipped in the Arabic HTML content itself, not here.
   ========================================================================== */
[dir="rtl"] {
  /* body/headings pull their font through these tokens (see body{} and
     h2.big{} etc.), so overriding the tokens reaches every component —
     a blanket font-family on the root would not, since body and every
     heading already set their own explicit font-family. */
  --body: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif;
  --disp: 'Cairo', 'Inter Tight', 'Inter', system-ui, sans-serif;
}
[dir="rtl"] .mono,
[dir="rtl"] .sg,
[dir="rtl"] .tag,
[dir="rtl"] .hd-clock,
[dir="rtl"] .hd-city,
[dir="rtl"] .menu-btn,
[dir="rtl"] .hud,
[dir="rtl"] .globe-hud,
[dir="rtl"] .article-meta,
[dir="rtl"] .back-link {
  /* timestamps, coordinates and Latin-brand micro-labels read left-to-right
     even inside an RTL page */
  font-family: var(--mono);
}

[dir="rtl"] .hud { left: auto; right: var(--pad); }
[dir="rtl"] .globe-hud { left: auto; right: var(--pad); }
[dir="rtl"] .wm { right: auto; left: var(--pad); }
[dir="rtl"] .dio-chip { left: auto; right: 16px; }

[dir="rtl"] .why-line { transform-origin: 100% 50%; }
[dir="rtl"] .srow::before { transform-origin: 100% 50%; }
[dir="rtl"] .srow:hover, [dir="rtl"] .srow.is-active { padding-left: 16px; padding-right: 28px; }
[dir="rtl"] .srow:hover .srow-arr, [dir="rtl"] .srow.is-active .srow-arr { transform: translateX(-6px); }
[dir="rtl"] .bcard:hover .m .go { transform: translateX(-5px); }
[dir="rtl"] .scroll-hint i { transform-origin: 100% 50%; }

[dir="rtl"] .menu-list a:hover { padding-left: 0; padding-right: 18px; }

[dir="rtl"] .faq summary { padding: 22px 0 22px 40px; }
[dir="rtl"] .faq summary::after,
[dir="rtl"] .faq summary::before { right: auto; left: 6px; }

[dir="rtl"] .prose li,
[dir="rtl"] .branch-col li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .prose li::before,
[dir="rtl"] .branch-col li::before { left: auto; right: 2px; }

/* The big display headings are tuned for tight, negative-tracking Latin
   caps. Cairo's diacritic dots and descenders need real line-height, or
   they get crowded against the next line (or, on rows with overflow:
   hidden, clipped outright) — and negative letter-spacing crowds Arabic's
   cursive joining strokes into each other instead of just tightening gaps
   the way it does for Latin. */
[dir="rtl"] h2.big,
[dir="rtl"] .srow-t,
[dir="rtl"] .portal-word,
[dir="rtl"] .spot-big,
[dir="rtl"] .arrive-head,
[dir="rtl"] .page-top h1,
[dir="rtl"] .mq-item,
[dir="rtl"] .wm {
  letter-spacing: normal;
}
[dir="rtl"] h2.big { line-height: 1.4; }
[dir="rtl"] .srow-t { line-height: 1.5; }
[dir="rtl"] .portal-word { line-height: 1.25; }
[dir="rtl"] .spot-big { line-height: 1.35; }
[dir="rtl"] .arrive-head { line-height: 1.4; }
[dir="rtl"] .page-top h1 { line-height: 1.35; }
[dir="rtl"] .mq-item { line-height: 1.3; }

/* .qa-q hardcodes text-align:left for the LTR layout, which inherits
   straight down into the Arabic question text instead of following the
   page direction — flip it back, and mirror the answer's indent (it was
   sized to sit under the question text, not under the now-mirrored
   number/mark columns). */
[dir="rtl"] .qa-q { text-align: right; }
[dir="rtl"] .qa.is-open .qa-q { padding-left: 0; padding-right: 10px; }
[dir="rtl"] .qa-a-inner { padding: 0 54px 28px 40px; }
@media (max-width: 720px) {
  [dir="rtl"] .qa-a-inner { padding: 0 40px 22px 0; }
}

/* Digits always read left-to-right, even in Arabic — but .odo is an
   inline-flex of one column per digit, and .why-cell .n is a flex row of
   [number, unit], so the generic RTL flex-mirroring that's correct for
   prose silently reverses digit order (e.g. "24" -> "42") and swaps the
   unit to the wrong side (e.g. "24h" -> "h24"). Force both back to LTR. */
[dir="rtl"] .odo { direction: ltr; }
[dir="rtl"] .why-cell .n { direction: ltr; justify-content: flex-end; }
