/* ==========================================================================
   CAPIT — capit.lu
   Committed brand-blue identity · light body, dark hero/feature bands.
   Sans: Hanken Grotesk · Mono: JetBrains Mono
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand (from logo) */
  --brand:        oklch(0.536 0.144 248);   /* #0071BC */
  --brand-bright: oklch(0.700 0.140 236);   /* luminous cyan for dark bg */
  --brand-deep:   oklch(0.455 0.121 247.5); /* AA links/text on light */

  /* Light surfaces — cool neutrals tinted toward the brand hue (never warm) */
  --bg:        oklch(0.986 0.004 248);
  --surface:   oklch(0.966 0.006 248);
  --surface-2: oklch(0.945 0.008 248);
  --ink:       oklch(0.215 0.021 258);
  --ink-soft:  oklch(0.335 0.021 258);
  --muted:     oklch(0.480 0.020 255);
  --line:      oklch(0.905 0.007 248);
  --line-strong: oklch(0.855 0.010 248);

  /* Dark bands */
  --ink-900:   oklch(0.178 0.021 262);
  --ink-850:   oklch(0.215 0.024 262);
  --ink-800:   oklch(0.262 0.024 262);
  --on-dark:       oklch(0.968 0.006 248);
  --on-dark-soft:  oklch(0.860 0.010 248);
  --on-dark-muted: oklch(0.735 0.015 250);
  --line-dark: oklch(1 0 0 / 0.12);

  /* Type */
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Fluid scale */
  --step-h1: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem);
  --step-h2: clamp(1.9rem, 1.35rem + 2.3vw, 3rem);
  --step-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --step-lg: clamp(1.075rem, 1rem + 0.5vw, 1.3rem);

  /* Spacing / rhythm */
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 3rem + 8vw, 8.5rem);

  --radius: 12px;
  --radius-sm: 9px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px oklch(0.4 0.02 258 / 0.06), 0 4px 14px oklch(0.4 0.02 258 / 0.06);
  --shadow-md: 0 8px 30px oklch(0.4 0.05 258 / 0.12);
  --shadow-brand: 0 10px 30px oklch(0.536 0.144 248 / 0.28);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);   /* ease-out-expo */

  /* z-index scale */
  --z-header: 100;
  --z-menu: 200;
  --z-skip: 300;
  --z-splash: 400;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, button { font-family: inherit; }
h1, h2, h3 { line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.skip-link {
  position: fixed;
  top: 0.6rem; left: 0.6rem;
  z-index: var(--z-skip);
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--brand-deep);
  margin-bottom: 1.15rem;
}
.eyebrow--ondark { color: var(--brand-bright); }

.section { padding-block: var(--section-y); }
.section__head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: var(--step-h2); }
.section__sub {
  margin-top: 1.1rem;
  font-size: var(--step-lg);
  color: var(--muted);
  max-width: 46ch;
  font-weight: 400;
}
.section__head--center .section__sub { margin-inline: auto; }
.section__sub--ondark { color: var(--on-dark-muted); }
.section__sub--wide { max-width: none; }   /* one-line lead on desktop; wraps on narrow screens */

.accent { color: var(--brand-bright); }

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease),
              box-shadow 0.25s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  will-change: transform;
}
.btn--lg { padding: 0.95rem 1.6rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--brand); color: var(--btn-fg); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: oklch(1 0 0 / 0.04);
  color: var(--on-dark);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: oklch(1 0 0 / 0.1); transform: translateY(-2px); border-color: oklch(1 0 0 / 0.28); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  /* top of page: no background, no frost — the hero shows through untouched */
  background: oklch(0.20 0 0 / 0);
  backdrop-filter: saturate(1) blur(0px);
  -webkit-backdrop-filter: saturate(1) blur(0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease),
              -webkit-backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: clamp(42px, 5vw, 52px); width: auto; display: block; }
.brand__logo--on-light { display: none; }   /* shown only when the header is over light content */
.brand--footer .brand__logo { height: clamp(58px, 7vw, 78px); }

.nav { display: flex; gap: 2rem; }
.nav a {
  position: relative;
  color: var(--on-dark-soft);
  font-weight: 500;
  font-size: 0.975rem;
  padding-block: 0.4rem;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--brand-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--on-dark); }
.nav a:hover::after { transform: scaleX(1); }

/* "Mon compte" : pilule ovale + petit cadenas */
.nav__account {
  display: inline-flex; align-items: center; gap: 0.42rem;
  padding: 0.34rem 0.9rem; margin-left: 0.15rem;
  border: 1px solid oklch(1 0 0 / 0.28); border-radius: 999px;
  font-size: 0.9rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__account .ic { width: 14px; height: 14px; }
.nav__account::after { display: none; }
.nav__account:hover { border-color: oklch(1 0 0 / 0.55); background: oklch(1 0 0 / 0.07); }
.over-light .nav__account { border-color: var(--line); }
.over-light .nav__account:hover { border-color: var(--brand); background: oklch(0.536 0.144 248 / 0.06); }
/* mobile : cadenas aligné avec le libellé */
.mobile-menu__account { display: inline-flex; align-items: center; gap: 0.55rem; }
.mobile-menu__account .ic { width: 20px; height: 20px; }

.header__actions { display: flex; align-items: center; gap: 0.9rem; }

/* language switch */
.langswitch {
  display: inline-flex;
  gap: 1px;
  padding: 3px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.07);
  border: 1px solid var(--line-dark);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.langswitch button {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  color: var(--on-dark-muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.langswitch button:hover { color: var(--on-dark); }
.langswitch button.is-active { background: var(--brand); color: #fff; }

/* Adaptive frosted header. As soon as you scroll, a colourless frosted glass fades in.
   Over the dark hero it reads dark (white text); over the light sections it becomes a
   clear light glass and the text/logo flip to dark, so the glass always stays
   transparent-frosted (never a solid bar) and the content stays legible. */
.site-header.is-scrolled {
  background: oklch(0.16 0 0 / 0.5);
  backdrop-filter: saturate(1.2) blur(16px);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
  border-bottom-color: oklch(1 0 0 / 0.08);
  box-shadow: 0 10px 30px oklch(0 0 0 / 0.26);
}
.site-header.is-scrolled.over-light {
  background: oklch(0.99 0 0 / 0.62);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px oklch(0.4 0.02 258 / 0.09);
}
.over-light .nav a { color: var(--ink-soft); }
.over-light .nav a:hover { color: var(--ink); }
.over-light .nav a::after { background: var(--brand); }
.over-light .langswitch { background: var(--surface); border-color: var(--line-strong); }
.over-light .langswitch button { color: var(--muted); }
.over-light .langswitch button:hover { color: var(--ink); }
.over-light .langswitch button.is-active { background: var(--brand); color: #fff; }
.over-light .brand__logo--on-dark { display: none; }
.over-light .brand__logo--on-light { display: block; }
.over-light .menu-toggle { border-color: var(--line-strong); }
.over-light .menu-toggle span { background: var(--ink); }

.header__cta { padding: 0.62rem 1.15rem; font-size: 0.925rem; }

/* menu toggle (mobile) */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  position: relative;
  border: 1px solid var(--line-dark);
}
.menu-toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 19px; height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.menu-toggle span:first-child { transform: translate(-50%, -5px); }
.menu-toggle span:last-child { transform: translate(-50%, 5px); }
.menu-open .menu-toggle span:first-child { transform: translate(-50%, 0) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translate(-50%, 0) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: oklch(0.178 0.021 262 / 0.98);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 2rem var(--gutter);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu__nav a {
  color: var(--on-dark);
  font-size: clamp(1.6rem, 8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  padding-block: 0.35rem;
}
.mobile-menu__nav a:active { color: var(--brand-bright); }
.langswitch--big { align-self: flex-start; }
.langswitch--big button { font-size: 0.85rem; padding: 0.5rem 0.9rem; }

/* ---- Espace client modal ---- */
.login-modal {
  margin: auto;
  border: none; padding: 0; background: transparent; color: var(--ink);
  width: min(420px, calc(100vw - 2rem)); max-width: 420px; border-radius: 20px; overflow: visible;
}
.login-modal::backdrop {
  background: oklch(0.16 0.02 258 / 0.5);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}
.login {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.7rem, 4vw, 2.4rem);
  box-shadow: 0 30px 90px oklch(0.15 0.02 258 / 0.35);
}
.login__view { display: flex; flex-direction: column; }
.login__view[hidden] { display: none; }
.login__close {
  position: absolute; top: 0.85rem; right: 0.85rem;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--muted); cursor: pointer; border-radius: 9px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.login__close:hover { background: oklch(0.2 0.02 258 / 0.08); color: var(--ink); }
.login__head { text-align: center; margin-bottom: 1.3rem; }
.login__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff;
  margin-bottom: 0.85rem; box-shadow: 0 8px 22px oklch(0.536 0.144 248 / 0.4);
}
.login__badge .ic { width: 22px; height: 22px; }
.login__eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--brand-deep); margin-bottom: 0.35rem;
}
.login__title { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.login__title--lg { font-size: 1.75rem; margin-top: 0.1rem; }
.login__sub { margin-top: 0.5rem; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.login .field { margin-top: 1rem; }
.login .btn { margin-top: 1.4rem; }
.login__btn { position: relative; }
.login__btn.is-loading { pointer-events: none; }
.login__btn.is-loading .login__btn-label { opacity: 0; }
.login__btn .spinner {
  position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid oklch(1 0 0 / 0.4); border-top-color: #fff; border-radius: 50%;
  opacity: 0; animation: spin 0.7s linear infinite;
}
.login__btn.is-loading .spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.login__msg { margin: 1rem 0 0; text-align: center; font-size: 0.87rem; line-height: 1.5; padding: 0.7rem 0.9rem; border-radius: 10px; }
.login__msg[hidden] { display: none; }
.login__msg.is-info { background: oklch(0.63 0.13 235 / 0.12); color: var(--brand-deep); }
.login__msg.is-error { background: oklch(0.55 0.2 25 / 0.1); color: oklch(0.48 0.2 25); }
.login__link {
  display: block; width: 100%; margin-top: 1rem; padding: 0; text-align: center;
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 0.82rem; color: var(--muted);
}
.login__link:hover { color: var(--brand-deep); text-decoration: underline; }
.login-modal[open] { animation: loginIn 0.34s var(--ease); }
.login-modal[open]::backdrop { animation: backdropIn 0.34s var(--ease); }
@keyframes loginIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu .btn { align-self: flex-start; }

/* ==========================================================================
   SPLASH
   ========================================================================== */
.splash { position: fixed; inset: 0; z-index: var(--z-splash); display: none; }
.js .splash {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-900);
  will-change: transform;
}
.splash__logo {
  position: relative;
  width: min(320px, 72vw);
  height: auto;
  opacity: 0;
}

/* one beat: the whole logo blooms in. The glow is stacked drop-shadows, so it
   hugs the logo's actual silhouette (plane + letters) rather than a round halo. */
.js .splash.is-shown .splash__logo { animation: splashLogo 1.2s var(--ease) forwards; }

@keyframes splashLogo {
  0% {
    opacity: 0;
    transform: scale(0.74) translateY(8px);
    filter: drop-shadow(0 0 0 oklch(0.700 0.140 236 / 0));
  }
  45% {
    opacity: 1;
    transform: scale(1.04) translateY(0);
    filter: drop-shadow(0 0 5px oklch(0.700 0.140 236 / 0.95))
            drop-shadow(0 0 13px oklch(0.700 0.140 236 / 0.8))
            drop-shadow(0 0 28px oklch(0.536 0.144 248 / 0.7));
  }
  70% { transform: scale(0.99); }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 4px oklch(0.700 0.140 236 / 0.7))
            drop-shadow(0 0 10px oklch(0.700 0.140 236 / 0.5))
            drop-shadow(0 0 22px oklch(0.536 0.144 248 / 0.4));
  }
}
.splash.is-lifting {
  transform: translateY(-100%);
  transition: transform 0.65s var(--ease);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--on-dark);
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 92px;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
/* fallback gradient (also the reduced-motion still image) */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 78% 8%, oklch(0.536 0.144 248 / 0.42), transparent 55%),
    radial-gradient(90% 80% at 10% 100%, oklch(0.45 0.12 247 / 0.30), transparent 60%),
    linear-gradient(180deg, transparent 55%, oklch(0.15 0.02 262 / 0.65));
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }

.hero__title {
  font-size: var(--step-h1);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.hero__sub {
  font-size: var(--step-lg);
  color: var(--on-dark-soft);
  max-width: 54ch;
  font-weight: 400;
  line-height: 1.62;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.hero__meta {
  list-style: none;
  padding: 0;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--on-dark-muted);
}
.hero__meta li { position: relative; padding-left: 1.1rem; }
.hero__meta li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%;
  background: var(--brand-bright);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.svc-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "idx body icon";
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
  padding-inline: clamp(0.5rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.svc:hover { background: var(--surface); }
.svc__idx {
  grid-area: idx;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brand);
  padding-top: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.svc__body { grid-area: body; }
.svc__icon {
  grid-area: icon;
  align-self: center;
  justify-self: center;
  width: clamp(116px, 15vw, 150px);
  aspect-ratio: 1;
  height: auto;
  color: var(--ink);
  display: block;
  overflow: visible;
  transition: opacity 0.55s var(--ease), transform 0.5s var(--ease), color 0.3s var(--ease);
}
.svc:hover .svc__icon { transform: translateY(-4px) scale(1.03); color: var(--brand-deep); }
/* scroll-in reveal: a soft pop + fade (shares the base transition, so hover stays smooth) */
.js .svc__icon { opacity: 0; transform: translateY(12px) scale(0.9); }
.js .svc__icon.in { opacity: 1; transform: none; }
.svc__title { font-size: var(--step-h3); font-weight: 700; letter-spacing: -0.02em; }
.svc__desc { margin-top: 0.7rem; color: var(--muted); max-width: 60ch; }
.svc:hover .svc__title { color: var(--brand-deep); }

/* ==========================================================================
   BAND (dark) + EXPERTISE
   ========================================================================== */
.band { background: var(--ink-900); color: var(--on-dark); }
.expertise__lead { max-width: 46rem; margin-bottom: clamp(2.75rem, 6vw, 4.5rem); }
.expertise .section__title { color: var(--on-dark); }

.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.stack__title {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--brand-bright);
  margin-bottom: 1.1rem;
}
.stack__items { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.stack__items li {
  color: var(--on-dark-soft);
  font-size: 1.05rem;
  font-weight: 500;
  padding-left: 1.2rem;
  position: relative;
}
.stack__items li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 1px;
  background: var(--on-dark-muted);
}
.stack__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  max-width: none;      /* let it hold one line on desktop; wraps naturally on narrow screens */
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--surface); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__intro { position: sticky; top: 96px; }
.contact__direct { margin-top: 2.2rem; }
/* shared line icon (sprite <use>) */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }

/* coordinates — icon + value hairline list, brand links (contact + footer) */
.coords { list-style: none; padding: 0; margin: 0; }
.coords__row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  column-gap: 0.8rem;
  padding-block: 0.6rem;
  border-top: 1px solid var(--line);
}
.coords__ic { color: var(--brand); }
.coords__v { color: var(--ink); font-variant-numeric: tabular-nums; }
a.coords__v { color: var(--brand-deep); font-weight: 600; text-decoration: none; }
a.coords__v:hover { text-decoration: underline; text-underline-offset: 3px; }
.coords__v--addr { color: var(--muted); font-weight: 400; }

/* "who" — single point of contact block */
.who { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1.2rem; }
.who-role {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted);
}
.who-name { font-weight: 700; color: var(--ink); font-size: 1rem; letter-spacing: -0.01em; }

.contact__form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}
.field__opt { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.field input, .field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg);
  box-shadow: 0 0 0 3px oklch(0.536 0.144 248 / 0.16);
}
.field.has-error input, .field.has-error textarea { border-color: oklch(0.55 0.2 25); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 3px oklch(0.55 0.2 25 / 0.16); }

.contact__form .btn { margin-top: 0.5rem; }

/* honeypot */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
}
.form-status[hidden] { display: none; }
.form-status.is-success { background: oklch(0.63 0.13 235 / 0.14); color: var(--brand-deep); }
.form-status.is-error { background: oklch(0.6 0.2 25 / 0.12); color: oklch(0.5 0.2 25); }
.form-consent { margin: 0.9rem 0 0; text-align: center; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.form-consent a { color: var(--brand-deep); text-underline-offset: 2px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink-900);
  color: var(--on-dark-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line-dark);
}
.footer__top { text-align: center; margin-bottom: clamp(2rem, 4vw, 2.9rem); }
.footer__top .brand--footer { justify-content: center; }
.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem;
  align-items: start;
  max-width: 880px;
  margin-inline: auto;
}
.footer__tagline { margin: 0; color: var(--on-dark-muted); font-size: 0.98rem; line-height: 1.6; }

/* TeamViewer support / host buttons */
.footer__support { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.5rem; max-width: 21rem; }
.tv-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line-dark);
  border-radius: 11px;
  background: oklch(0.23 0.02 258);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tv-btn:hover { border-color: var(--brand-bright); background: oklch(0.26 0.028 252); transform: translateY(-2px); }
.tv-btn:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.tv-btn__logo { width: 28px; height: 28px; flex: none; display: block; }
.tv-btn__text { display: flex; flex-direction: column; line-height: 1.25; }
.tv-btn__label { color: var(--on-dark); font-weight: 600; font-size: 0.92rem; }
.tv-btn__sub { color: var(--on-dark-muted); font-size: 0.76rem; }
/* pulse the support button (as if hovered) after an "Assistance" click scroll */
#assistance { scroll-margin-top: 92px; }
@keyframes tvPulse {
  0%, 50%, 100% { border-color: var(--line-dark); transform: none; box-shadow: none; }
  22%, 78% {
    border-color: var(--brand-bright);
    transform: translateY(-3px);
    box-shadow: 0 0 0 3px oklch(0.682 0.133 234 / 0.30), 0 12px 26px oklch(0 0 0 / 0.38);
  }
}
.tv-btn--pulse { animation: tvPulse 1.7s var(--ease); }

.footer__org-label {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--on-dark-muted); margin-bottom: 1.2rem;
}
.footer__ids { margin: 0; display: grid; gap: 1.15rem; }
.footer__id { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.15rem 0.9rem; align-items: baseline; }
.footer__id dt {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--on-dark-muted);
}
.footer__id dd { margin: 0; color: var(--on-dark-soft); font-size: 0.9rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.footer__id--addr dd { color: var(--on-dark); font-weight: 600; }

.footer__bottom {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  text-align: center;
}
.footer__copy { color: var(--on-dark-muted); font-size: 0.85rem; line-height: 1.5; margin: 0; }
.footer__links { margin: 0.55rem 0 0; }
.footer__links a { color: var(--on-dark-muted); font-size: 0.82rem; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--brand-bright); }

/* ==========================================================================
   REVEAL (motion) — enhances an already-visible baseline
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* blur-rise: words appear blurred + lifted, then rise into focus (per-word stagger).
   Baseline is visible; only .js arms it, so no-JS keeps the heading readable. */
.word { display: inline-block; white-space: pre; }
.js .blur-rise .word { opacity: 0; transform: translateY(0.5em); filter: blur(12px); }
.js .blur-rise.play .word {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 0.62s var(--ease), transform 0.72s var(--ease), filter 0.72s var(--ease);
  transition-delay: calc(min(var(--i), 12) * 0.06s);
}
.js .blur-rise.shown .word { opacity: 1; transform: none; filter: none; }

/* hero entrance stagger */
.js .hero .reveal { transition-delay: 0.05s; }
.js .hero .reveal:nth-child(2) { transition-delay: 0.14s; }
.js .hero .reveal:nth-child(3) { transition-delay: 0.23s; }
.js .hero .reveal:nth-child(4) { transition-delay: 0.32s; }
.js .hero .reveal:nth-child(5) { transition-delay: 0.41s; }

/* services stagger */
.js .svc.reveal:nth-child(2) { transition-delay: 0.06s; }
.js .svc.reveal:nth-child(3) { transition-delay: 0.12s; }
.js .svc.reveal:nth-child(4) { transition-delay: 0.18s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .menu-toggle { display: block; }
  .header__actions .langswitch { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
  .footer__cols { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .svc {
    grid-template-columns: auto 1fr;
    grid-template-areas: "idx icon" "body body";
    gap: 0.9rem 1rem;
  }
  .svc__idx { padding-top: 0.3rem; }
  .svc__icon { justify-self: end; align-self: center; width: clamp(92px, 26vw, 120px); }
  .footer__cols { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* Mobile: center most content for a cleaner single-column read. */
@media (max-width: 640px) {
  .hero__inner { text-align: center; }
  .hero__title, .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__meta { justify-content: center; }

  .section__head { text-align: center; margin-inline: auto; }
  .section__sub { margin-inline: auto; }

  .svc {
    grid-template-columns: 1fr;
    grid-template-areas: "icon" "idx" "body";
    justify-items: center;
    text-align: center;
    gap: 0.55rem 0;
  }
  .svc__idx { padding-top: 0; }
  .svc__icon { justify-self: center; }
  .svc__desc { margin-inline: auto; }

  .expertise__lead { text-align: center; margin-inline: auto; }
  .stack { justify-items: center; text-align: center; }
  .stack__items { align-items: center; }
  .stack__items li { padding-left: 0; }
  .stack__items li::before { display: none; }
  .stack__note { text-align: center; margin-inline: auto; }

  .contact__intro { text-align: center; }
  .who { align-items: center; }
  .coords { display: inline-block; text-align: left; }

  .footer__cols { text-align: center; }
  .footer__tagline { margin-inline: auto; }
  .footer__support { margin-inline: auto; }
  .footer__ids { display: inline-grid; text-align: left; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .svc__icon { opacity: 1 !important; transform: none !important; }
  .js .blur-rise .word { opacity: 1 !important; transform: none !important; filter: none !important; }
  .splash { display: none !important; }
}
