@font-face { font-family: 'Inter'; src: url('/fonts/inter-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Crimson Text'; src: url('/fonts/crimson-text-v19-latin-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

/* Theme tokens. Light is the default; the head script sets html[data-theme]
   from localStorage or prefers-color-scheme before first paint. Gold stays gold. */
:root {
  --bg: #f6f4ef; --bg-2: #efece5; --card: #fbfaf7;
  --ink: #0f172a; --muted: #5b6474; --line: rgba(15, 23, 42, .12); --faint: rgba(15, 23, 42, .18);
  --lede: #334155; --glass: rgba(255, 255, 255, .5); --field: #fff;
  --header: rgba(246, 244, 239, .82); --header-solid: rgba(246, 244, 239, .96);
  --band: #0f172a; --wordmark: rgba(15, 23, 42, .07);
  /* Contact band (section.dark): light in the light theme, dark in the dark theme.
     --band itself stays navy — the book's chapter band still uses it. */
  --band-bg: var(--bg-2); --band-ink: var(--ink); --band-muted: var(--muted); --band-lede: var(--lede);
  --band-line: rgba(15, 23, 42, .14); --band-line-hover: rgba(15, 23, 42, .3); --band-tint: rgba(15, 23, 42, .03); --band-tint-2: rgba(15, 23, 42, .06);
  --band-border: var(--line);
  --navy: #0f172a; --gold: #d4a017; --blue: #3d9bcf;
  --success-bg: #ecfdf5; --success-text: #065f46;
  /* gold as a fill or underline: var(--gold); gold as text on a light surface: var(--gold-ink) (4.5:1+ on the cream) */
  --gold-ink: #8a6500;
  /* decoration (headline underline, hero bar, focus rings): antique gold on the cream light theme (3.4:1), the
     luminous brand gold on dark; fills (buttons, the WhatsApp card) keep var(--gold) */
  --accent-deco: #a97c00;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
html[data-theme="dark"] {
  --success-bg: rgba(52, 211, 153, .12); --success-text: #6ee7b7;
  --bg: #0b1020; --bg-2: #0f1629; --card: #121a2e;
  --ink: #e8edf5; --muted: #94a3b8; --line: rgba(232, 237, 245, .12); --faint: rgba(232, 237, 245, .2);
  --lede: #cbd5e1; --glass: rgba(255, 255, 255, .04); --field: #0b1020;
  --header: rgba(11, 16, 32, .82); --header-solid: rgba(11, 16, 32, .96);
  --band: #050914; --wordmark: rgba(232, 237, 245, .06);
  --band-bg: #050914; --band-ink: #f8fafc; --band-muted: rgba(248, 250, 252, .62); --band-lede: rgba(248, 250, 252, .75);
  --band-line: rgba(248, 250, 252, .14); --band-line-hover: rgba(248, 250, 252, .32); --band-tint: rgba(248, 250, 252, .04); --band-tint-2: rgba(248, 250, 252, .08);
  --band-border: transparent;
  --gold-ink: var(--gold);
  --accent-deco: var(--gold);
  color-scheme: dark;
}
/* Dark hero: the blue glow lifts the background under the small labels, so the muted grey drops below 4.5:1.
   Labels and the lede that sit on the glow use the full ink colour instead. */
html[data-theme="dark"] .hero-top .pill, html[data-theme="dark"] .hero-meta, html[data-theme="dark"] .scroll-cue,
html[data-theme="dark"] .facts .fact span, html[data-theme="dark"] .hero-foot .lede, html[data-theme="dark"] .svc-hero .lede { color: var(--ink); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--faint) var(--bg); }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
a { color: var(--ink); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
em { font-family: 'Crimson Text', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--faint); border: 2px solid var(--bg); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid transparent; backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: background .3s, border-color .3s, box-shadow .3s; }
.site-header.scrolled { background: var(--header-solid); border-bottom-color: var(--line); box-shadow: 0 10px 28px -22px rgba(15, 23, 42, .45); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; transition: background .2s; }
.nav-links a:hover { background: var(--line); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-family: var(--mono); font-size: 12px; }
.lang span, .lang a { padding: 5px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang span { background: var(--ink); color: var(--bg); }
.lang a:hover { color: var(--ink); }
.icon-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--glass); color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s; }
.icon-btn:hover, .icon-btn:focus-visible { background: var(--line); border-color: var(--accent-deco); }
.icon-btn:focus-visible { outline: 2px solid var(--accent-deco); outline-offset: 3px; }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.theme-toggle .sun, html[data-theme="dark"] .theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
.menu-btn { display: none; }
@media (max-width: 900px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (max-width: 520px) { .site-header .header-cta, .brand span, .site-header .lang { display: none; } }

/* ── mobile nav (≤900px) ── */
.mobile-nav { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; padding: 10px 24px 32px; overflow: auto; background: var(--bg); }
.mobile-nav[hidden] { display: none; }
html.anim .mobile-nav:not([hidden]) { animation: mobileNavIn .35s var(--ease); }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.mobile-nav-links { display: flex; flex-direction: column; margin: 28px 0; border-top: 1px solid var(--line); }
.mobile-nav-links a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 28px; font-weight: 600; letter-spacing: -.03em; text-decoration: none; transition: padding .25s var(--ease), color .25s; }
.mobile-nav-links a:hover { padding-left: 12px; color: var(--gold); }
.mobile-nav-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: auto; }
.mobile-lang { display: flex; gap: 8px; font-family: var(--mono); font-size: 13px; }
.mobile-lang span, .mobile-lang a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); }
.mobile-lang span { background: var(--ink); color: var(--bg); border-color: transparent; }

/* ── buttons ── */
/* Buttons (component rules CMP-BTN): 48 px high, 16 px semibold, one shared pill radius, no shadows. On hover and keyboard
   focus the accent circles the edge of the button (see below) - buttons only; text links have their own line. */
:root { --radius-pill: 999px; }
.btn { --run: var(--accent-deco); position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill); font: 600 16px/1.1 'Inter', sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
/* Hover and keyboard focus (UI spec MOT-06): an accent arc circles the 2 px edge of the button. The ring is the padding box of
   ::before cut out of its own box by the mask; the arc is a conic gradient turned by the registered angle --orbit. */
@property --orbit { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.btn::before { content: ''; position: absolute; inset: 0; padding: 2px; border-radius: inherit; background: conic-gradient(from var(--orbit, 0deg), transparent 0 70%, var(--run) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; opacity: 0; pointer-events: none; }
.btn:hover::before, .btn:focus-visible::before { opacity: 1; animation: btn-orbit 1.6s linear infinite; }
@keyframes btn-orbit { to { --orbit: 360deg; } }
.btn:focus-visible { outline: 2px solid var(--accent-deco); outline-offset: 3px; }
.btn-gold { --run: var(--gold); background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--navy); border-color: var(--gold); color: var(--gold); }
.btn-gold:active { transform: translateY(1px); }
section.dark .btn-gold { color: var(--navy); }
section.dark .btn-gold:hover, section.dark .btn-gold:focus-visible { color: var(--gold); }
.btn-line { border-color: var(--muted); background: transparent; color: var(--ink); }
.btn-line:hover, .btn-line:focus-visible { border-color: var(--accent-deco); background: var(--glass); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .btn:hover::before, .btn:focus-visible::before { animation: none; background: var(--run); } }

/* The same accent on text: a 2 px line, 40 % of the text width, slides back and forth under it on hover and keyboard focus.
   Text links (.text-link keeps its static accent underline), proof links and the label of a service card. Footer links,
   header navigation and the other cards do not get it. Reduced motion: no sliding, the whole line stays. */
/* The line is drawn only while hovered or focused: a background-image on the resting link would be read as the text's backdrop. */
.text-link, .proof-link a, .svc .learn { --slide-y: 100%; --link-line: var(--gold-ink); background-repeat: no-repeat; background-size: 0 2px; background-position: 0 var(--slide-y); }
.text-link { --slide-y: calc(50% + .63em); }
/* on hover the sliding segment is the only underline: the static one steps aside and comes back on mouse-out */
.text-link:hover, .text-link:focus-visible { text-decoration-color: transparent; }
.text-link:hover, .text-link:focus-visible, .proof-link a:hover, .proof-link a:focus-visible, .svc:hover .learn, .svc:focus-visible .learn { background-image: linear-gradient(var(--link-line), var(--link-line)); background-size: 40% 2px; animation: link-slide 1.2s ease-in-out infinite alternate; }
@keyframes link-slide { from { background-position: 0 var(--slide-y); } to { background-position: 100% var(--slide-y); } }
@media (prefers-reduced-motion: reduce) { .text-link:hover, .text-link:focus-visible, .proof-link a:hover, .proof-link a:focus-visible, .svc:hover .learn, .svc:focus-visible .learn { animation: none; background-size: 100% 2px; } }

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.hero::before { width: 560px; height: 560px; top: -180px; right: -140px; background: radial-gradient(circle, rgba(212, 160, 23, .42), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.hero::after { width: 480px; height: 480px; bottom: -220px; left: -160px; background: radial-gradient(circle, rgba(61, 155, 207, .32), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.hero .wrap { position: relative; z-index: 1; }
/* Dark mode: a lit centre behind the headline plus a blue field on the right edge
   (reference: marianaleus.com dark hero), under the gold/blue corner blobs.
   html[data-theme] outranks the book page's own .hero background. */
html[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 34% 46% at 46% 42%, rgba(61, 155, 207, .46), rgba(61, 155, 207, .14) 55%, transparent 78%),
    radial-gradient(ellipse 26% 70% at 102% 62%, rgba(61, 155, 207, .28), transparent 70%),
    var(--bg);
}
/* Golden running lines: light streaks travelling down five hairlines (motion only). */
.hero-lines { position: absolute; inset: 0; z-index: 0; display: none; pointer-events: none; }
html.anim .hero-lines { display: block; }
.hero-lines span { position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent 0%, var(--gold) 50%, transparent 100%); opacity: .35; animation: scanDown 8s linear infinite; }
.hero-lines span:nth-child(1) { left: 12%; animation-duration: 7s; }
.hero-lines span:nth-child(2) { left: 31%; animation-duration: 9s; animation-delay: -2s; }
.hero-lines span:nth-child(3) { left: 50%; animation-duration: 6.5s; animation-delay: -4s; }
.hero-lines span:nth-child(4) { left: 69%; animation-duration: 8s; animation-delay: -1s; }
.hero-lines span:nth-child(5) { left: 88%; animation-duration: 10s; animation-delay: -3s; }
@media (max-width: 700px) { .hero-lines span:nth-child(n+4) { display: none; } .hero-lines span:nth-child(1) { left: 18%; } .hero-lines span:nth-child(3) { left: 82%; } }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 160, 23, .18); }
.dot-green { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
h1 { font-weight: 600; font-size: clamp(44px, 9.2vw, 124px); line-height: .98; letter-spacing: -.045em; margin: 28px 0; }
h1 em { letter-spacing: -.01em; }
/* The accent of the About hero is one bar under the whole phrase: an inline-block is as wide as its text, wrapped or
   not, so the bar never splits into fragments the way a text underline does on a phone. */
h1 .h1-bar { display: inline-block; position: relative; max-width: 100%; }
h1 .h1-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.09em; height: .11em; background: var(--accent-deco); border-radius: 2px; }
/* Accent word in a headline: the headline's own font, upright, with a gold bar under it (as thick as the .mark bar).
   An underline, not a background, so it wraps with the phrase and the contrast check still sees the real
   background. Prose emphasis keeps the italic. */
h1 em, h2 em, h3 em, .h2 em, .book-h2 em, .hero-book-title em {
  font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit;
  text-decoration: underline; text-decoration-color: var(--accent-deco); text-decoration-thickness: .11em;
  text-underline-offset: .09em; text-decoration-skip-ink: none;
}
/* .mark is the same accent as a headline em: one underline style everywhere, so two accents always line up. */
.mark { white-space: nowrap; text-decoration: underline; text-decoration-color: var(--accent-deco); text-decoration-thickness: .11em; text-underline-offset: .09em; text-decoration-skip-ink: none; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.lede { max-width: 560px; margin: 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--lede); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero-meta { display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero-meta::before { content: ''; width: clamp(32px, 9vw, 140px); height: 1px; background: var(--faint); }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; margin: 44px auto 0; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--muted); text-decoration: none; }
.scroll-cue i { display: block; width: 1px; height: 36px; background: linear-gradient(var(--muted), transparent); transform-origin: top; }

/* ── facts strip ── */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border: 1px solid var(--line); border-radius: 18px; background: var(--glass); overflow: hidden; }
.fact { padding: 22px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.fact span { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } .fact { border-left: 0; border-top: 1px solid var(--line); } .fact:first-child { border-top: 0; } }

/* ── sections ── */
section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
section.alt { background: var(--bg-2); }
.sec-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; margin-bottom: 48px; }
.sec-head h2, .h2 { font-weight: 600; font-size: clamp(36px, 6vw, 76px); line-height: 1; letter-spacing: -.04em; margin: 14px 0 0; }
.sec-head p { margin: 0; color: var(--muted); max-width: 440px; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(15, 23, 42, .35); }
.card h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 10px; }
.card p { margin: 0; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.steps .n { font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--faint); }
.steps strong { display: block; font-size: 22px; letter-spacing: -.02em; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .steps li { grid-template-columns: 56px 1fr; gap: 14px; } }
/* Career list (/about): the number column holds a four-digit year. */
.steps.years li { grid-template-columns: 150px 1fr; }
.steps.years .n { font-size: clamp(28px, 4vw, 44px); }
@media (max-width: 600px) { .steps.years li { grid-template-columns: 76px 1fr; } }

/* ── about ── */
.about { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }
.photo { position: relative; border-radius: 22px; overflow: hidden; background: #ddd; aspect-ratio: 4 / 5; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.photo .pill { position: absolute; left: 16px; bottom: 16px; background: rgba(246, 244, 239, .92); color: #5b6474; text-transform: none; letter-spacing: .02em; }
.about-text .h2 { margin-bottom: 28px; }
.about-text p { margin: 0 0 18px; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; margin: 32px 0 28px; }
.stat { border-top: 1px solid var(--line); padding-top: 14px; }
.stat b { display: block; font-size: clamp(28px, 3vw, 36px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat > span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
@media (max-width: 600px) { .about-actions { flex-direction: column; align-items: flex-start; } }
/* A plain text link: accent colour on hover (the sliding line for links comes with the hover effect step). */
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 16px/1.1 'Inter', sans-serif; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-deco); text-decoration-thickness: 2px; text-underline-offset: .3em; transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
.text-link:hover { color: var(--gold-ink); }
.text-link:focus-visible { outline: 2px solid var(--accent-deco); outline-offset: 3px; }

/* ── services grid (numbered cards with icon tiles) ── */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.svc-grid.three { grid-template-columns: repeat(3, 1fr); }
/* An odd last card in the two-column grid spans the full row (e.g. 05 of 5). */
.svc-grid:not(.three) > .svc:last-child:nth-child(odd) { grid-column: 1 / -1; }
.proof-link { margin: 18px 0 0; font-family: var(--mono); font-size: 13px; letter-spacing: .03em; }
.proof-link a { color: var(--muted); text-decoration: none; transition: color .2s; }
.proof-link a:hover { color: var(--gold-ink); }
@media (max-width: 900px) { .svc-grid, .svc-grid.three { grid-template-columns: 1fr; } }
.svc { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); background: var(--card); color: inherit; text-decoration: none; overflow: hidden; transition: background .3s; }
.svc::after { content: ''; position: absolute; top: -120px; right: -120px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 160, 23, .22), transparent 65%); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.svc:hover { background: var(--bg-2); }
.svc:hover::after { opacity: 1; }
/* the label of the card ("Let's talk") takes the accent text colour when the card is hovered or focused */
.svc .learn { align-self: flex-start; transition: color .2s var(--ease); }
.svc:hover .learn, .svc:focus-visible .learn { color: var(--gold-ink); }
.svc-n { position: absolute; top: 24px; right: 26px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.svc-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); transition: transform .35s var(--ease), background .35s, color .35s, border-color .35s; }
.svc-icon svg { width: 22px; height: 22px; fill: currentColor; }
.svc:hover .svc-icon { transform: scale(1.08) rotate(-4deg); background: var(--gold); color: var(--navy); border-color: transparent; }
.svc h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; margin: 28px 0 4px; }
.svc .sub { margin: 0 0 14px; color: var(--muted); }
.svc h3 + p:not(.sub) { margin-top: 12px; }
.svc p { margin: 0; }
.svc .goal { margin-top: 6px; color: var(--muted); }
.svc .learn { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 26px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
/* the three steps read as one journey: step number with an arrow to the next, phases, a plain "good to know" line */
.svc-grid.journey .svc:not(:last-child) .svc-n::after { content: ' →'; }
@media (max-width: 900px) { .svc-grid.journey .svc:not(:last-child) .svc-n::after { content: ' ↓'; } }
.svc:focus-visible { outline: 2px solid var(--accent-deco); outline-offset: 3px; }
.svc .phases { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.svc .phases li { margin: 0; }
.svc .phases b, .svc .note b { font-weight: 600; color: var(--ink); }
.svc .note { margin-top: 12px; color: var(--muted); }
.svc-grid.journey .svc .goal { margin-top: 12px; color: var(--ink); font-weight: 500; }
.more-offers { margin: 22px 0 0; font-size: 16px; color: var(--muted); }
.more-offers a { color: var(--ink); text-underline-offset: .2em; text-decoration-color: var(--accent-deco); }

/* ── case card (own project) ── */
.case { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: 22px; color: inherit; text-decoration: none; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s var(--ease); }
/* The current cover (same as /book/), shown whole — never cropped. */
.case-cover img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .6), 0 0 0 1px rgba(212, 160, 23, .25); transition: transform .6s var(--ease); }
.case:hover .case-cover img { transform: translateY(-4px) rotate(-1deg); }
.case-body .case-top { margin-bottom: 22px; }
@media (max-width: 700px) { .case { grid-template-columns: 1fr; } .case-cover { max-width: 200px; } }
.case:hover { transform: translateY(-4px); border-color: rgba(212, 160, 23, .45); box-shadow: 0 26px 48px -30px rgba(15, 23, 42, .45); }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.case-arrow { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; transition: transform .35s var(--ease), background .35s, color .35s, border-color .35s; }
.case-arrow svg { width: 18px; height: 18px; fill: currentColor; }
.case:hover .case-arrow { transform: rotate(-45deg); background: var(--gold); color: var(--navy); border-color: transparent; }
.case .case-fig { margin: 0; font-size: clamp(44px, 7vw, 84px); font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.case-fig .acc { color: var(--gold-ink); }
.case-fig small { display: block; margin-top: 10px; font-size: clamp(17px, 2vw, 22px); font-weight: 400; letter-spacing: -.01em; line-height: 1.3; color: var(--muted); }
.case h3 { margin: 16px 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.case p { margin: 0; max-width: 640px; color: var(--muted); }

/* ── CTA band (service pages): one button forwarding to the main contact section ── */
.cta-band { text-align: center; }
.cta-band .h2 { margin: 14px 0 0; font-size: clamp(36px, 5vw, 64px); }
.cta-band p { max-width: 620px; margin: 18px auto 30px; color: var(--band-lede); }
.cta-band .actions { justify-content: center; }

/* ── contact band: light in the light theme, dark in the dark theme (--band-* tokens) ── */
section.dark { background: var(--band-bg); color: var(--band-ink); border-top: 1px solid var(--band-border); }
section.dark .eyebrow, section.dark .small { color: var(--band-muted); }
section.dark a { color: var(--band-ink); }
/* Reference layout: heading row on top (title left; intro, free-call button and
   Cal.com note right), then channel cards left and the form right, top-aligned. */
.contact-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px clamp(28px, 5vw, 64px); align-items: end; margin-bottom: 48px; }
.contact-head .h2 { margin: 14px 0 0; font-size: clamp(36px, 5vw, 64px); text-wrap: balance; }
.contact-head .contact-side > p:first-child { margin-top: 0; }
.contact-head .contact-side .small { margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-channels .channels { margin-top: 0; }
/* Home Kontakt: the three channel cards sit in one row, the form card full width below them, its fields in two
   columns. The service band (.svc-contact, service.css) keeps its own layout. */
#kontakt:not(.svc-contact) .contact-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
/* the handle may wrap: at 861-1024 px the three cards are narrow */
#kontakt:not(.svc-contact) .channel .handle { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
#kontakt:not(.svc-contact) .contact-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
#kontakt:not(.svc-contact) .contact-channels .channels, #kontakt:not(.svc-contact) .contact-channels .booking-slot { display: contents; }
#kontakt:not(.svc-contact) .contact-channels .cal-note { grid-column: 1 / -1; margin-top: 10px; }
#kontakt:not(.svc-contact) #workshop-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; align-items: start; }
#kontakt:not(.svc-contact) #workshop-form > div:has(button), #kontakt:not(.svc-contact) #workshop-form > p { grid-column: 1 / -1; }
/* The message field is the right-hand column beside the contact and company fields; it grows downwards only. */
#kontakt:not(.svc-contact) #workshop-form > div:has(textarea) { display: flex; flex-direction: column; align-self: stretch; }
#kontakt:not(.svc-contact) #workshop-form textarea { flex: 1 1 auto; min-height: 7.5rem; resize: vertical; }
@media (min-width: 861px) {
  #kontakt:not(.svc-contact) #workshop-form > div:has(#wf-contact) { grid-column: 1; grid-row: 2; }
  #kontakt:not(.svc-contact) #workshop-form > div:has(#wf-industry) { grid-column: 1; grid-row: 3; }
  #kontakt:not(.svc-contact) #workshop-form > div:has(textarea) { grid-column: 2; grid-row: 2 / span 2; }
}
@media (max-width: 860px) {
  .contact-head, .contact-grid { grid-template-columns: 1fr; }
  #kontakt:not(.svc-contact) .contact-channels, #kontakt:not(.svc-contact) #workshop-form { grid-template-columns: 1fr; }
}
.form-card { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 22px; padding: clamp(22px, 3vw, 34px); }
section.dark .form-card a, section.dark .form-card .small { color: var(--ink); }
form { display: grid; gap: 14px; }
#workshop-form[hidden] { display: none; }
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
input, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--faint); border-radius: 12px; font: inherit; color: var(--ink); background: var(--field); transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(212, 160, 23, .35); }
.opt { font-weight: 400; font-style: normal; font-family: inherit; color: var(--muted); }
/* Preferred contact: radio pills (E-Mail default). JS mirrors the checked state
   as .is-on for browsers without :has(). */
.method { min-width: 0; margin: 0; padding: 0; border: 0; }
.method legend { margin-bottom: 8px; padding: 0; font-weight: 600; font-size: 14px; }
.method-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.method-pill { position: relative; display: inline-flex; align-items: center; margin: 0; padding: 9px 16px; border: 1px solid var(--faint); border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.method-pill:hover { border-color: var(--muted); }
.method-pill input { position: absolute; opacity: 0; pointer-events: none; }
.method-pill.is-on, .method-pill:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.method-pill:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(212, 160, 23, .45); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.small { font-size: 14px; color: var(--muted); }
.msg { padding: 14px 16px; border-radius: 12px; }
#form-success { background: var(--success-bg); color: var(--success-text); }
#form-error { background: #fef2f2; color: #991b1b; }
section.dark #form-error a { color: #991b1b; }

/* ── contact channels (icon cards; WhatsApp is the gold primary) ── */
.channels { display: grid; gap: 10px; margin-top: 28px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--band-line); border-radius: 16px; background: var(--band-tint); text-decoration: none; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s var(--ease); }
.channel:hover { border-color: var(--accent-deco); }
.channel:focus-visible { outline: 2px solid var(--accent-deco); outline-offset: 3px; }
.channel .ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--band-tint-2); }
.channel .ico svg { width: 22px; height: 22px; fill: currentColor; }
.channel .meta { display: flex; flex-direction: column; min-width: 0; }
.channel .name { font-size: 15px; font-weight: 500; line-height: 1.3; }
.channel .handle { overflow: hidden; font-family: var(--mono); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; opacity: .7; }
section.dark .channel.primary { border-color: var(--gold); background: var(--gold); color: var(--navy); }
section.dark .channel.primary:hover { background: var(--navy); border-color: var(--gold); color: var(--gold); }
section.dark .channel.primary:hover .ico { background: rgba(212, 160, 23, .16); }
.channel.primary .ico { background: rgba(15, 23, 42, .12); }
/* Booking the free call: same card, gold accent on the left, last in the list. */
.channel.booking { border-left: 3px solid var(--accent-deco); }
.channel.booking .ico { color: var(--gold-ink); }
/* minmax(0,1fr): the one-line handle truncates instead of widening the page on phones */
.booking-slot { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
.channel.booking .name { overflow-wrap: anywhere; }
.cal-note { margin: 12px 0 0; }
.channel.primary .handle { opacity: .75; }
/* on a phone the handle wraps instead of being cut off */
@media (max-width: 480px) { .channel .handle { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; } }

/* ── footer ── */
.site-footer { padding: 64px 0 28px; overflow: hidden; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p { max-width: 300px; margin: 14px 0 0; color: var(--muted); }
.foot-col h3 { margin: 0 0 16px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.foot-col a { display: block; padding: 4px 0; font-size: 15px; text-decoration: none; transition: color .2s; }
.foot-col a:hover { color: var(--gold); }
.wordmark { margin: 0 0 24px; font-weight: 600; font-size: clamp(44px, 11.6vw, 164px); line-height: .85; letter-spacing: -.06em; white-space: nowrap; color: var(--wordmark); user-select: none; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.foot-row a { color: var(--muted); }

/* ── intro curtain (first page view of a session; the head script sets html.intro) ── */
.curtain { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: var(--navy); color: var(--gold); pointer-events: none; }
.curtain span { font-size: clamp(48px, 8vw, 96px); font-weight: 600; letter-spacing: -.05em; animation: logoFade .45s var(--ease) both; }
html.intro .curtain { display: grid; animation: curtainUp .7s var(--ease) .3s forwards; }

/* ── motion (only under html.anim, which the head script sets) ── */
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.08); } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes scanDown { 0% { transform: translateY(-80%) scaleY(.6); opacity: 0; } 15% { opacity: .35; } 85% { opacity: .35; } 100% { transform: translateY(80%) scaleY(.6); opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
@keyframes siDrop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes mobileNavIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes curtainUp { to { transform: translateY(-100%); } }
@keyframes logoFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html.anim [data-hero] { animation: rise .9s var(--ease) both; }
html.anim [data-hero="2"] { animation-delay: .1s; }
html.anim [data-hero="3"] { animation-delay: .22s; }
html.anim [data-hero="4"] { animation-delay: .34s; }
html.anim .dot-green { animation: pulse 1.8s ease-out infinite; }
html.anim .scroll-cue i { animation: siDrop 2.2s ease-in-out infinite; }
html.anim [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
html.anim [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .curtain, .hero-lines { display: none !important; }
}
