/* ==========================================================================
   RAKITIN - Johannes Werner · digital business card
   Design direction: "The Console" - a precise instrument-panel aesthetic drawn
   from the subject's world (reliability engineering, control rooms, regulated
   platforms kept green under load). Cool blueprint base, navy ink, the RAKITIN
   brand slate + gold, a disciplined petrol accent for live status, a sparing
   amber for headline figures, mono readouts.
   Primary theme: light. Dark theme: a proper "control-room at night" palette.
   ========================================================================== */

/* ---- tokens ------------------------------------------------------------- */
:root {
  /* light (primary) */
  --bg:            #F3F6FA;
  --bg-2:          #E9EFF6;
  --surface:       #FFFFFF;
  --surface-2:     #F7FAFD;
  --ink:           #0F2038;
  --ink-2:         #43536B;
  --muted:         #64748B;
  --line:          #DCE4EE;
  --line-strong:   #C4D0DE;
  --primary:       #34576C;   /* brand slate - the AKITIN wordmark colour */
  --primary-hi:    #416F8B;
  --primary-soft:  #E8EEF2;
  --gold:          #A08F69;   /* brand gold - the "R" mark; signature accent, used sparingly */
  --gold-hi:       #B7A47C;
  --gold-soft:     #F1ECE1;
  --signal:        #276E77;   /* petrol - primary cool accent (replaces the old signal-green) */
  --signal-ink:    #205C64;
  --signal-soft:   #E4EFF0;
  --amber:         #C0873B;   /* warm accent - used sparingly but visible (headline figures) */
  --amber-hi:      #D3A05A;
  --amber-soft:    #F5EBDD;
  --console-bg:    #0E1E36;   /* deep instrument navy */
  --console-line:  #24365A;
  --console-ink:   #DCE6F5;
  --console-muted: #8FA2C0;
  --good:          #34D399;   /* operational green - the "systems green" readout value */
  --shadow-sm: 0 1px 2px rgba(15,32,56,.06), 0 1px 3px rgba(15,32,56,.05);
  --shadow-md: 0 6px 18px rgba(15,32,56,.08), 0 2px 6px rgba(15,32,56,.05);
  --shadow-lg: 0 24px 60px rgba(15,32,56,.14), 0 8px 20px rgba(15,32,56,.08);
  --radius:   14px;
  --radius-lg:20px;
  --radius-sm:10px;
  --wrap: 1140px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Consolas", monospace;
  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-theme="dark"] {
  --bg:            #0A1420;
  --bg-2:          #0D1928;
  --surface:       #10203A;
  --surface-2:     #0E1B31;
  --ink:           #E9EFF8;
  --ink-2:         #AEBCD1;
  --muted:         #7E8EA6;
  --line:          #223351;
  --line-strong:   #30456A;
  --primary:       #74A3C2;   /* brand slate, lifted for dark */
  --primary-hi:    #9DC2DB;
  --primary-soft:  rgba(116,163,194,.16);
  --gold:          #B7A47C;   /* brand gold, lifted for dark */
  --gold-hi:       #CBB88E;
  --gold-soft:     rgba(183,164,124,.14);
  --signal:        #5CB9C4;   /* petrol, lifted for dark */
  --signal-ink:    #86D6DE;
  --signal-soft:   rgba(92,185,196,.14);
  --amber:         #D3A05A;   /* warm accent, lifted for dark */
  --amber-hi:      #E4B672;
  --amber-soft:    rgba(211,160,90,.14);
  --console-bg:    #081020;
  --console-line:  #1D2E4B;
  --console-ink:   #DCE6F5;
  --console-muted: #7E90AE;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 26px 64px rgba(0,0,0,.55);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: .003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hi); }
::selection { background: var(--primary); color: #fff; }

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

/* ---- layout helpers ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.6rem, 8vw, 6.5rem); position: relative; }
.section-tight { padding-block: clamp(2.6rem, 5vw, 4rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--gold);
  opacity: .7;
}
[data-theme="dark"] .eyebrow { color: var(--gold-hi); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-top: .9rem;
  color: var(--ink);
}
.section-head p { color: var(--ink-2); font-size: 1.05rem; margin-top: .9rem; max-width: 60ch; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(.75rem, 2vw, 1.5rem); flex-wrap: nowrap; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex: 0 0 auto; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; color: var(--ink); font-size: 1.02rem; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; object-fit: contain; }
.brand .brand-sub { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; font-weight: 500; margin-top: 2px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
/* full RAKITIN wordmark in the header; dark-mode variant lifts the AKITIN teal for legibility */
.brand-logo { height: 34px; width: auto; flex: none; display: block; }
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }

.nav-links { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; gap: clamp(.6rem, 1.6vw, 1.6rem); }
.nav-links a { color: var(--ink-2); font-size: .9rem; font-weight: 500; padding: .35rem .1rem; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--primary); transition: right .3s var(--ease); }
.nav-links a:hover::after { right: 0; }
.nav-links .nav-hide { }
/* German labels are wider than the English ones; tighten the DE nav gaps a touch
   so the row never crowds the language switch before the hamburger takes over. */
html[lang="de"] .nav-inner { gap: clamp(.5rem, 1.4vw, 1rem); }
html[lang="de"] .nav-links { gap: clamp(.5rem, 1.3vw, 1.2rem); }

.nav-actions { display: flex; align-items: center; flex: 0 0 auto; gap: .7rem; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer;
  transition: color .25s, border-color .25s, background .25s, transform .2s;
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* language switch - brand pill with a sliding 3D bobble (two real links) */
.lang-switch { position: relative; display: inline-flex; align-items: center; height: 34px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 1px 2px rgba(15,32,56,.07); isolation: isolate; }
/* the bobble - a raised, glossy petrol knob that sits under the active label */
.lang-switch::before { content: ""; position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--signal); box-shadow: 0 2px 4px rgba(15,32,56,.28), 0 1px 1px rgba(15,32,56,.18), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 1px rgba(0,0,0,.14); transition: transform .35s var(--ease); }
/* resting position for the DE page (used when motion is reduced) */
.lang-switch:has(a:last-child.active)::before { transform: translateX(100%); }
/* smooth slide-in on every page load (this IS the toggle motion, since switching navigates) */
.lang-switch:has(a:first-child.active)::before { animation: langSlideEN .5s var(--ease) both; }
.lang-switch:has(a:last-child.active)::before  { animation: langSlideDE .5s var(--ease) both; }
@keyframes langSlideEN { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes langSlideDE { from { transform: translateX(0); }    to { transform: translateX(100%); } }
.lang-switch a { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 2.1rem; height: 100%; padding: 0 .58rem; border-radius: 999px; position: relative; z-index: 1; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .07em; color: var(--muted); line-height: 1; transition: color .25s var(--ease); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { color: #fff; }
[data-theme="dark"] .lang-switch a.active { color: #061120; }
@media (prefers-reduced-motion: reduce) { .lang-switch::before { animation: none; transition: none; } }

.btn {
  --btn-bg: var(--primary); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  padding: .68rem 1.15rem; border-radius: 10px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hi); }
[data-theme="dark"] .btn-primary { color: #061120; }
[data-theme="dark"] .btn-primary:hover { color: #061120; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-sm { padding: .5rem .85rem; font-size: .84rem; }

.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: clamp(6.5rem, 12vw, 9rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }
.hero-grid-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 0%, #000 0%, transparent 62%);
          mask-image: radial-gradient(120% 90% at 78% 0%, #000 0%, transparent 62%);
  opacity: .55;
}

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.hero-tag { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal-ink); background: var(--signal-soft); border: 1px solid color-mix(in srgb, var(--signal) 35%, transparent); padding: .32rem .7rem; border-radius: 999px; font-weight: 500; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); position: relative; }
.dot-live::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--signal); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 80%,100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce){ .dot-live::after{ animation: none; } }

.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 6.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.028em;
  margin: 1.1rem 0 .4rem; color: var(--ink);
}
.hero h1 .accent { color: var(--primary); }
.hero-role { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 2.3vw, 1.6rem); color: var(--ink-2); letter-spacing: -.01em; }
.hero-role .sep { color: var(--line-strong); margin: 0 .5rem; }
.hero-lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-2); max-width: 40ch; margin: 1.3rem 0 0; }
.hero-lead strong { display: block; margin-top: .6rem; color: var(--ink); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.8rem; }
.hero-meta .m { display: flex; align-items: center; gap: .55rem; color: var(--ink-2); font-size: .9rem; }
.hero-meta .m svg { width: 17px; height: 17px; color: var(--primary); flex: none; }

/* photo with viewfinder brackets */
.hero-photo { position: relative; justify-self: center; align-self: center; width: min(340px, 78vw); }
/* The FRAME owns the aspect ratio (4:5). The image fills the frame, so the box
   can never be stretched taller than 4:5 by the grid row - which was cropping
   the portrait down to just the face. object-position favours the upper body. */
.photo-frame { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--surface-2); }
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,30,54,.28)); }
.bracket { position: absolute; width: 26px; height: 26px; border-color: var(--primary); border-style: solid; z-index: 2; }
.bracket.tl { top: -7px; left: -7px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.bracket.tr { top: -7px; right: -7px; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.bracket.bl { bottom: -7px; left: -7px; border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.bracket.br { bottom: -7px; right: -7px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }
.photo-badge {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .5rem; z-index: 3;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  padding: .5rem .8rem; border-radius: 999px; box-shadow: var(--shadow-md); white-space: nowrap;
}
.photo-badge svg { width: 14px; height: 14px; color: var(--primary); }

/* ---- backronym band (three phrases: RA · KIT · IN) ---- */
.backronym { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.backronym-inner { display: flex; align-items: stretch; flex-wrap: wrap; }
.bk-lead { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; padding: 1rem 1.4rem 1rem 0; border-right: 1px solid var(--line); margin-right: .3rem; }
.bk-items { display: flex; flex-wrap: wrap; flex: 1; }
.bk { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.15rem; position: relative; cursor: default; transition: background .25s; }
.bk + .bk { border-left: 1px solid var(--line); }
.bk:hover { background: var(--primary-soft); }
.bk-seg { display: inline-flex; gap: .3rem; }
.bk-letter { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9rem; padding: .3rem .35rem; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; line-height: 1; color: var(--primary); background: var(--primary-soft); border-radius: 8px; }
.bk-phrase { font-size: .95rem; color: var(--ink-2); font-weight: 500; }
.bk-phrase b { color: var(--ink); font-weight: 700; }
@media (max-width: 900px){
  .bk-lead{ width: 100%; border-right: none; border-bottom: 1px solid var(--line); padding: .8rem 0; margin: 0; }
  .bk{ flex: 1 1 100%; }
  .bk + .bk{ border-left: none; border-top: 1px solid var(--line); }
}

/* ==========================================================================
   STATUS CONSOLE (signature element)
   ========================================================================== */
.console { background: var(--console-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.06); --signal: #5CB9C4; }  /* console is always dark - keep petrol at its bright tint so dots/readouts stay legible on navy in light mode too */
.console-bar { display: flex; align-items: center; gap: .8rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--console-line); background: rgba(255,255,255,.02); }
.console-dots { display: flex; gap: .4rem; }
.console-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.console-dots i:nth-child(1){ background: #E5484D; }
.console-dots i:nth-child(2){ background: #E9A23B; }
.console-dots i:nth-child(3){ background: var(--signal); }
.console-title { font-family: var(--font-mono); font-size: .74rem; color: var(--console-muted); letter-spacing: .06em; }
.console-title b { color: var(--console-ink); font-weight: 500; }
.console-clock { margin-left: auto; font-family: var(--font-mono); font-size: .74rem; color: var(--console-muted); letter-spacing: .04em; }

.console-body { padding: clamp(1.1rem, 2.4vw, 1.7rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--console-line); border-radius: 0; }
.readout { background: var(--console-bg); padding: .95rem 1.05rem; }
.readout .rk { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--console-muted); display: flex; align-items: center; gap: .45rem; }
.readout .rk i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.readout .rv { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--amber); line-height: 1.05; margin-top: .55rem; letter-spacing: -.01em; }
.readout .rv .u { font-size: .78rem; color: var(--console-muted); font-family: var(--font-mono); font-weight: 400; margin-left: .25rem; letter-spacing: 0; }
.readout .rv.is-good { color: var(--good); }
.readout .rd { font-size: .8rem; color: var(--console-muted); margin-top: .3rem; }
.console-foot { display: flex; align-items: center; gap: .6rem; padding: .75rem 1.1rem; border-top: 1px solid var(--console-line); font-family: var(--font-mono); font-size: .74rem; color: var(--console-muted); }
.console-foot .ok { color: var(--signal); }
.console-foot .bar { flex: 1; height: 4px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; position: relative; }
.console-foot .bar > span { position: absolute; inset: 0; width: 100%; background: linear-gradient(90deg, var(--signal), color-mix(in srgb, var(--signal) 50%, transparent)); transform-origin: left; }

/* console placement within impact section */
.impact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem, 4vw, 2.6rem); }

/* ==========================================================================
   SELECTED IMPACT (feature blocks)
   ========================================================================== */
.impacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.impact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.2vw, 1.7rem); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.impact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.impact-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.impact-card:hover::before { transform: scaleY(1); }
.impact-idx { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .1em; }
.impact-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin: .5rem 0 .5rem; line-height: 1.25; }
.impact-card p { color: var(--ink-2); font-size: .95rem; }
.impact-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.chip { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: .28rem .55rem; border-radius: 7px; }
.chip.sig { color: var(--signal-ink); background: var(--signal-soft); border-color: color-mix(in srgb, var(--signal) 30%, transparent); }

/* ==========================================================================
   EXPERIENCE - carousel of engagements  +  timeline
   ========================================================================== */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform .55s var(--ease); will-change: transform; }
@media (prefers-reduced-motion: reduce){ .carousel-track{ transition: none; } }
.slide { flex: 0 0 100%; min-width: 0; }
.eng {
  display: grid; grid-template-columns: 1.05fr 1.25fr; gap: clamp(1.4rem, 3vw, 2.6rem);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.4vw, 2.6rem); align-items: stretch; min-height: 300px;
  box-shadow: var(--shadow-sm);
}
.eng-side { display: flex; flex-direction: column; gap: .5rem; }
.eng-plate {
  display: inline-flex; align-items: center; justify-content: flex-start; align-self: flex-start;
  height: 66px; min-width: 116px; max-width: 100%; padding: 0 clamp(16px, 2.2vw, 22px);
  margin-bottom: 1.1rem; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 14px; box-shadow: var(--shadow-sm);
}
.eng-logo { max-height: 34px; max-width: 168px; width: auto; height: auto; object-fit: contain; display: block; }
.eng-mono { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .01em; color: #34576C; line-height: 1; }
.eng-kicker-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.eng-kicker { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.eng-kicker svg { width: 15px; height: 15px; }
.eng-when { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); letter-spacing: .06em; }
.eng h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: var(--ink); line-height: 1.12; margin: .55rem 0 .3rem; letter-spacing: -.015em; }
.eng .eng-role { color: var(--ink-2); font-weight: 500; font-size: 1rem; }
.eng .eng-metric { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.eng .eng-metric .big { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-hi); background: var(--primary-soft); border: 1px solid var(--line); border-radius: 999px; padding: .34rem .74rem; }
.eng .eng-metric .lbl { position: relative; padding-left: 1.15rem; color: var(--ink-2); font-size: .95rem; line-height: 1.5; max-width: 34ch; }
.eng .eng-metric .lbl::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.eng-points { list-style: none; margin: 0; padding-left: clamp(1.5rem, 3vw, 2.4rem); border-left: 1px solid var(--line); display: grid; gap: .8rem; align-content: center; }
.eng-points li { position: relative; padding-left: 1.6rem; color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.eng-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--gold); background: transparent; }
.eng-points li b { color: var(--ink); font-weight: 600; }

.carousel-ui { display: flex; align-items: center; justify-content: space-between; margin-top: 1.3rem; gap: 1rem; }
.dots { display: flex; gap: .5rem; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: none; background: var(--line-strong); cursor: pointer; transition: transform .25s, background .25s, width .25s; }
.dots button[aria-current="true"] { background: var(--primary); width: 26px; border-radius: 6px; }
.arrows { display: flex; gap: .5rem; }
.arrows button { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .2s, border-color .2s, color .2s, background .2s; }
.arrows button:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.arrows button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.arrows svg { width: 19px; height: 19px; }
.carousel-count { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); letter-spacing: .06em; }

/* timeline */
.timeline { margin-top: clamp(2.5rem, 5vw, 4rem); position: relative; }
.tl-list { list-style: none; padding: 0; position: relative; }
.tl-list::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 1.6rem 2.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-node { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); z-index: 1; transition: border-color .3s, box-shadow .3s; }
.tl-item.current .tl-node { border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; cursor: pointer; }
.tl-when { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); letter-spacing: .04em; order: -1; width: 100%; }
.tl-role { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.tl-org { color: var(--primary); font-weight: 500; font-size: .98rem; }
.tl-org::before { content: "· "; color: var(--muted); }
.tl-loc { color: var(--muted); font-size: .85rem; margin-left: auto; }
.tl-toggle { margin-left: .4rem; color: var(--muted); transition: transform .3s var(--ease); flex: none; }
.tl-toggle svg { width: 16px; height: 16px; display: block; }
.tl-item.open .tl-toggle { transform: rotate(180deg); color: var(--primary); }
.tl-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.tl-item.open .tl-body { grid-template-rows: 1fr; }
.tl-body-inner { overflow: hidden; }
.tl-points { list-style: none; padding: .7rem 0 0; display: grid; gap: .5rem; }
.tl-points li { position: relative; padding-left: 1.3rem; color: var(--ink-2); font-size: .93rem; }
.tl-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .6; }
@media (prefers-reduced-motion: reduce){ .tl-body, .tl-toggle{ transition: none; } }

.tl-more { margin-top: 1.4rem; }
.tl-hidden { display: none; }
.tl-hidden.show { display: block; }

/* ==========================================================================
   CAPABILITIES / SKILLS
   ========================================================================== */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.skill-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 2.2vw, 1.7rem); transition: border-color .3s, box-shadow .3s, transform .3s; }
.skill-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.skill-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.skill-card h3 .num { font-family: var(--font-mono); font-size: .75rem; color: var(--primary); background: var(--primary-soft); border-radius: 6px; padding: .18rem .4rem; font-weight: 500; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.skill-tags .chip { transition: color .2s, border-color .2s, background .2s; }
.skill-card:hover .skill-tags .chip { border-color: var(--line-strong); }

/* ==========================================================================
   CREDENTIALS: certs + education + languages
   ========================================================================== */
.creds { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.6rem, 3.5vw, 2.6rem); align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 2.6vw, 2rem); }
.panel > h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); display: flex; align-items: center; gap: .55rem; margin-bottom: 1.2rem; }
.panel > h3 svg { width: 18px; height: 18px; color: var(--primary); }

.cert-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.cert { display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); transition: border-color .25s, transform .25s; }
.cert:hover { border-color: var(--primary); transform: translateX(3px); }
.cert .badge { width: 38px; height: 38px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: .8rem; flex: none; }
.cert .c-name { font-weight: 600; color: var(--ink); font-size: .95rem; }
.cert .c-issuer { color: var(--muted); font-size: .82rem; }

.edu { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.edu .e-degree { font-weight: 600; color: var(--ink); font-size: .96rem; }
.edu .e-inst { color: var(--ink-2); font-size: .9rem; }
.edu .e-when { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); margin-top: .25rem; }

.lang-list { display: grid; gap: 1.05rem; }
.lang { }
.lang-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .45rem; }
.lang-name { font-weight: 600; color: var(--ink); font-size: .96rem; }
.lang-lvl { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.lang-bar { height: 7px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.lang-bar > span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--primary), var(--primary-hi)); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.lang-bar.filled > span { transform: scaleX(var(--lvl)); }
@media (prefers-reduced-motion: reduce){ .lang-bar > span{ transition: none; transform: scaleX(var(--lvl)); } }

.interests { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.interests h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.int-tags { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ==========================================================================
   SOCIAL PROOF / REFERENCES
   ========================================================================== */
/* references - client / employer logo wall (white chips keep mixed-colour logos legible in both themes) */
.ref-logos { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.ref-logos-label { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.ref-logo-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(.7rem, 2vw, 1.1rem); }
.ref-logo-row li { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 clamp(14px, 2vw, 22px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.ref-logo-row li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ref-logo { max-height: 30px; max-width: 118px; width: auto; height: auto; object-fit: contain; display: block; }

.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.tm { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 1.9rem); overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s; }
.tm:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tm::before { content: "\201C"; position: absolute; top: -.34em; right: .5rem; font-family: var(--font-display); font-weight: 700; font-size: 6rem; line-height: 1; color: var(--primary-soft); pointer-events: none; z-index: 0; }
.tm-quote { position: relative; z-index: 1; margin: 0; color: var(--ink); font-size: 1.02rem; line-height: 1.62; }
.tm-by { display: flex; align-items: center; gap: .75rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.tm-mark { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-family: var(--font-mono); font-weight: 700; font-size: .78rem; letter-spacing: .02em; }
.tm-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tm-role { font-weight: 600; color: var(--ink); font-size: .92rem; }
.tm-org { font-family: var(--font-mono); font-size: .73rem; letter-spacing: .03em; color: var(--muted); }
.tm-sector { margin-left: auto; padding-left: .5rem; }

/* featured quote - instrument-panel dark card, spans the row */
.tm-feat { grid-column: 1 / -1; background: var(--console-bg); border-color: transparent; }
.tm-feat::before { color: rgba(255,255,255,.07); font-size: 9rem; top: -.18em; }
.tm-feat .tm-quote { color: #fff; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.34; letter-spacing: -.01em; max-width: 48ch; }
.tm-feat .tm-by { border-top-color: var(--console-line); }
.tm-feat .tm-mark { background: rgba(255,255,255,.06); color: var(--signal); }
.tm-feat .tm-role { color: #fff; }
.tm-feat .tm-org { color: var(--console-muted); }
.tm-feat .tm-sector .chip { color: var(--signal-ink); background: var(--signal-soft); border-color: color-mix(in srgb, var(--signal) 30%, transparent); }
[data-theme="dark"] .tm-feat .tm-sector .chip { color: var(--signal); }

@media (max-width: 720px){
  .proof { grid-template-columns: 1fr; }
  .tm-sector { display: none; }
}


.contact { background: var(--console-bg); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.4rem); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(90% 120% at 100% 0%, #000, transparent 60%);
          mask-image: radial-gradient(90% 120% at 100% 0%, #000, transparent 60%);
}
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.contact .eyebrow { color: var(--signal); }
.contact .eyebrow::before { background: var(--signal); }
.contact h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: #fff; line-height: 1.08; letter-spacing: -.02em; margin: .9rem 0 .8rem; }
.contact p { color: var(--console-muted); font-size: 1.02rem; max-width: 44ch; }
.contact-actions { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.c-row { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.15rem; border: 1px solid var(--console-line); border-radius: var(--radius); background: rgba(255,255,255,.03); color: var(--console-ink); transition: border-color .25s, transform .25s, background .25s; }
.c-row:hover { border-color: var(--signal); transform: translateY(-2px); background: rgba(255,255,255,.05); color: var(--console-ink); }
.c-row .ic { width: 42px; height: 42px; flex: none; border-radius: 10px; background: rgba(255,255,255,.05); display: grid; place-items: center; color: var(--signal); }
.c-row .ic svg { width: 19px; height: 19px; }
.c-row .c-txt { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.c-row .c-k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--console-muted); }
.c-row .c-v { font-weight: 600; font-size: 1rem; color: #fff; overflow-wrap: anywhere; }
.c-row .c-go { margin-left: auto; color: var(--console-muted); transition: transform .25s, color .25s; }
.c-row:hover .c-go { transform: translate(3px,-3px); color: var(--signal); }
.c-row .c-go svg { width: 16px; height: 16px; }

/* contact CTA buttons (sit inside the dark contact panel) */
.contact-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.btn-ondark { background: rgba(255,255,255,.06); color: #fff; border-color: var(--console-line); }
.btn-ondark:hover { background: rgba(255,255,255,.12); border-color: var(--signal); color: #fff; box-shadow: none; }
.btn-lock { display: inline-flex; align-items: center; margin-left: .15rem; opacity: .7; }
.btn-lock svg { width: 14px; height: 14px; }

/* ==========================================================================
   GATED DOWNLOAD MODAL
   ========================================================================== */
.gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.2rem; }
.gate[hidden] { display: none; }
.gate-backdrop { position: absolute; inset: 0; background: rgba(8,16,26,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.gate-card { position: relative; z-index: 1; width: 100%; max-width: 440px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 4vw, 2.2rem); animation: gate-in .28s var(--ease); }
@keyframes gate-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .gate-card { animation: none; } }
.gate-x { position: absolute; top: .8rem; right: .8rem; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.gate-x:hover { color: var(--ink); border-color: var(--line-strong); }
.gate-x svg { width: 16px; height: 16px; }
.gate-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: .9rem; }
.gate-ic svg { width: 22px; height: 22px; }
.gate-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; color: var(--ink); }
.gate-sub { color: var(--ink-2); font-size: .95rem; margin-top: .5rem; }
.gate-form { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .8rem; }
.gate-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gate-field { display: flex; flex-direction: column; gap: .3rem; }
.gate-field span { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gate-field input { font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: .7rem .8rem; transition: border-color .2s, box-shadow .2s; }
.gate-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.gate-submit { justify-content: center; margin-top: .2rem; }
.gate-note { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--muted); }
.gate-note svg { width: 14px; height: 14px; flex: none; }
.gate-msg { font-size: .9rem; padding: .7rem .8rem; border-radius: 10px; margin-top: .2rem; }
.gate-msg.ok { color: var(--signal-ink); background: var(--signal-soft); border: 1px solid color-mix(in srgb, var(--signal) 30%, transparent); }
.gate-msg.err { color: #b4232a; background: #fdeaea; border: 1px solid #f3c9cb; }
[data-theme="dark"] .gate-msg.ok { color: var(--signal); }
[data-theme="dark"] .gate-msg.err { color: #ffb4b4; background: rgba(255,80,80,.10); border-color: rgba(255,80,80,.30); }

/* 404 error page */
.doc-error { text-align: center; }
.doc-error .doc-wrap { max-width: 620px; }
.err-code { font-family: var(--font-mono); font-weight: 700; font-size: clamp(3.2rem, 13vw, 6.5rem); line-height: 1; letter-spacing: -.02em; color: var(--primary); }
.err-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.8rem; }
.dl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: clamp(2rem, 4vw, 2.8rem); }
.dl-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.4rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.dl-ic { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: .3rem; }
.dl-ic svg { width: 22px; height: 22px; }
.dl-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin: 0; }
.dl-card p { color: var(--ink-2); font-size: .92rem; line-height: 1.5; margin: 0 0 .3rem; flex: 1 1 auto; }
.dl-card .btn { margin-top: auto; align-self: stretch; justify-content: center; }
.dl-card-feat { border: 1.5px solid var(--gold); background: var(--primary-soft); }
.dl-ic-feat { background: var(--gold); color: var(--ink); }
.dl-badge { position: absolute; top: 1rem; right: 1rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: .28rem .6rem; border-radius: 999px; }
@media (max-width: 820px) { .dl-cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding-block: clamp(2rem, 4vw, 3rem) 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; justify-content: space-between; }
.footer .brand { flex-direction: column; align-items: flex-start; gap: .5rem; }
.foot-decode { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); letter-spacing: .04em; }
.foot-decode b { color: var(--ink-2); font-weight: 500; }
.foot-links { display: flex; gap: 1.2rem; align-items: center; }
.foot-links a { color: var(--ink-2); font-size: .88rem; }
.foot-links a:hover { color: var(--primary); }
.foot-bottom { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; color: var(--muted); font-size: .82rem; }
.foot-bottom .st { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-mono); letter-spacing: .04em; }
.foot-bottom .st .dot-live { width: 7px; height: 7px; }

/* ==========================================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ========================================================================== */
.doc { padding-top: clamp(6.5rem, 12vw, 9rem); padding-bottom: 4rem; }
.doc-wrap { max-width: 760px; }
.doc h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; margin-bottom: .4rem; }
.doc .doc-sub { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; margin-bottom: 2.5rem; }
.doc h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 2.2rem 0 .7rem; color: var(--ink); }
.doc h3 { font-size: 1.02rem; font-weight: 600; margin: 1.4rem 0 .4rem; color: var(--ink); }
.doc p, .doc li { color: var(--ink-2); margin-bottom: .7rem; }
.doc ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.doc a { text-decoration: underline; text-underline-offset: 2px; }
.doc .note { background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); border-radius: var(--radius-sm); padding: 1rem 1.15rem; font-size: .9rem; color: var(--ink-2); margin: 1rem 0 2rem; }
.doc .note b { color: var(--ink); }
.doc .placeholder { color: var(--primary); font-family: var(--font-mono); font-size: .92em; background: var(--primary-soft); padding: .05em .35em; border-radius: 5px; }
.back-link { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; margin-bottom: 2.5rem; padding: .5rem .95rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.back-link:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); transform: translateX(-3px); }
.back-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.back-link:hover svg { transform: translateX(-2px); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  /* collapse the horizontal links into the hamburger while there is still
     room in the bar - kills the mid-width zone where 7 links + CTA + toggles
     overlapped and clipped each other (worse with the longer German labels) */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
    position: absolute; top: 66px; left: 0; right: 0; padding: 1rem clamp(1.15rem,4vw,2.5rem) 1.4rem;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav-links.open a { width: 100%; padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .nav-links.open a:last-child { border-bottom: none; }
  .menu-btn { display: grid; }
  .nav-cta-desktop { display: none; }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-photo { grid-row: 1; order: -1; width: min(280px, 70vw); }
  .console-body { grid-template-columns: repeat(2, 1fr); }
  .eng { grid-template-columns: 1fr; gap: 1.4rem; }
  .eng-points { border-left: none; padding-left: 0; }
  .eng-plate { margin-bottom: .9rem; }
  .creds { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .impacts { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .tl-loc { display: none; }
  .hero-meta { gap: .8rem 1.4rem; }
}
@media (max-width: 480px) {
  .console-body { grid-template-columns: 1fr 1fr; }
  .readout .rv { font-size: 1.35rem; }
  .bk-letter { font-size: 1.2rem; min-width: 1.6rem; }
}
@media (max-width: 400px) {
  .brand-sub { display: none; }
  .brand { font-size: .95rem; }
  .brand-logo { height: 28px; }
  .nav-actions { gap: .5rem; }
  .lang-switch a { padding: 0 .52rem; }
}

/* ==========================================================================
 * rakitin.org - conversion sections (appended)
 * ========================================================================== */

/* hero: value-prop headline + name kicker */
.hero-kicker { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 1.1rem 0 .5rem; }
[data-theme="dark"] .hero-kicker { color: var(--gold-hi); }
.hero h1.hero-promise {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.9vw, 2.95rem); line-height: 1.07; letter-spacing: -.02em;
  margin: 0 0 .2rem; color: var(--ink); max-width: 20ch;
}

/* section variant */
.section-alt { background: var(--surface-2); }
[data-theme="dark"] .section-alt { background: color-mix(in srgb, var(--surface) 55%, transparent); }

/* trust microbar */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trustbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.4rem; }
.tb-item { position: relative; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--ink-2); }
.tb-item + .tb-item::before { content: "·"; position: absolute; left: -.85rem; color: var(--line-strong); }

/* when to bring me in */
.when-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.6rem; }
.when-grid li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-2); font-size: 1rem; padding: .35rem 0; }
.when-grid li::before { content: ""; flex: none; width: 3px; height: 15px; margin-top: .28rem; border-radius: 2px; background: var(--gold); }
.when-cta { margin-top: clamp(1.8rem, 3vw, 2.4rem); }

/* offers */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.offer-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem); display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.offer-ic { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: 1rem; }
.offer-ic svg { width: 22px; height: 22px; }
.offer-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin: 0 0 .25rem; }
.offer-tagline { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin: 0 0 .9rem; }
[data-theme="dark"] .offer-tagline { color: var(--gold-hi); }
.offer-body { color: var(--ink-2); font-size: .95rem; margin: 0 0 1.1rem; }
.offer-points { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: .5rem; }
.offer-points li { position: relative; padding-left: 1.5rem; color: var(--ink-2); font-size: .9rem; }
.offer-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 2px; background: var(--signal); }

/* engagement model */
.engage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.engage-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 1.9rem); }
.engage-h { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 0 0 1rem; }
.engage-h svg { width: 20px; height: 20px; color: var(--primary); }
.engage-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.engage-list li { position: relative; padding-left: 1.6rem; color: var(--ink-2); font-size: .98rem; }
.engage-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--gold); }

/* case-study steps inside impact cards */
.impact-steps { margin: .3rem 0 1rem; display: grid; gap: .55rem; }
.impact-steps .step { display: grid; grid-template-columns: 8.5rem 1fr; gap: .3rem 1rem; align-items: baseline; }
.impact-steps dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); padding-top: .1rem; }
[data-theme="dark"] .impact-steps dt { color: var(--primary-hi); }
.impact-steps dd { margin: 0; color: var(--ink-2); font-size: .93rem; line-height: 1.5; }

/* beyond-work single line */
.int-text { color: var(--ink-2); font-size: .95rem; line-height: 1.6; margin: .2rem 0 0; }

/* footer tagline (replaces backronym decode) */
.foot-tagline { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); letter-spacing: .03em; }

/* sticky mobile CTA */
.mobile-cta { display: none; }

/* responsive */
@media (max-width: 900px) {
  .offers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .when-grid { grid-template-columns: 1fr; }
  .engage-grid { grid-template-columns: 1fr; }
  .impact-steps .step { grid-template-columns: 1fr; gap: .1rem; }
  .impact-steps dd { padding-bottom: .2rem; }
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15,32,56,.12);
  }
  .mobile-cta .btn { flex: 1; justify-content: center; }
  body:not(.legal):not(.error) { padding-bottom: 4.6rem; }
}

/* refs-photos */
.tm-photo{padding:0;background:none;overflow:hidden}
.tm-photo img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.tm-soon::before{display:none}
.tm-soon .tm-quote{margin:0;color:var(--muted);font-style:italic;font-size:.96rem}
/* ==========================================================================
 * FAQ + AI panel - branded UI polish (brand palette, "Console" vocabulary)
 * ========================================================================== */

/* FAQ: click-to-expand accordion (native <details>), instrument styling */
.faq-list { display: grid; gap: .7rem; max-width: 840px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item:hover { border-color: var(--primary); }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-q {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .8rem; width: 100%;
  margin: 0; padding: 1.05rem 1.2rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.3; color: var(--ink);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before {
  content: "?"; flex: none;
  width: 1.7rem; height: 1.7rem; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: .95rem; font-weight: 700; line-height: 1;
  color: var(--primary); background: var(--primary-soft); border: 1px solid var(--line); border-radius: 50%;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
[data-theme="dark"] .faq-q::before { color: var(--primary-hi); }
.faq-item[open] .faq-q::before { border-color: var(--primary); background: var(--surface); }
.faq-q::after {
  content: "+"; flex: none; margin-left: auto;
  font-family: var(--font-mono); font-weight: 400; font-size: 1.35rem; line-height: 1;
  color: var(--primary); transition: color .2s var(--ease);
}
[data-theme="dark"] .faq-q::after { color: var(--primary-hi); }
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-a { margin: 0; padding: 0 1.2rem 1.15rem 3.7rem; color: var(--ink-2); font-size: .95rem; line-height: 1.62; }

/* AI: pragmatic-AI briefing panel with the signature gold rail */
.ai-panel {
  position: relative; max-width: 820px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1.5rem, 3vw, 2.3rem);
  box-shadow: var(--shadow-sm); display: grid; gap: .95rem;
}
[data-theme="dark"] .ai-panel { border-left-color: var(--gold-hi); }
.ai-panel p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.68; }
.ai-panel p:first-of-type { color: var(--ink); font-size: 1.06rem; }
.ai-caps { list-style: none; margin: .35rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem 1.6rem; }
.ai-caps li { position: relative; padding-left: 1.5rem; }
.ai-caps li::before { content: ""; position: absolute; left: 0; top: .42em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--gold); }
.ai-cap-h { display: block; font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--ink); }
.ai-cap-d { display: block; color: var(--ink-2); font-size: .9rem; line-height: 1.5; margin-top: .12rem; }
.ai-panel .ai-foot { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: .95rem; margin-top: .15rem; }
@media (max-width: 620px) { .ai-caps { grid-template-columns: 1fr; } }

@media (max-width: 560px) { .faq-a { padding-left: 1.2rem; } }
