@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/schibsted-grotesk.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/jetbrains-mono.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-italic.woff2) format('woff2'); }

:root {
  --page: #f2f0ec;
  --tile: #ffffff;
  --mist: #f6f4f1;
  --ink: #16161d;
  --ink-2: #3d3d48;
  --ink-3: #66646f;
  --line: #e7e3dd;
  --accent: #9e3039;        /* carmin letton */
  --accent-soft: #f6eaea;
  --deep: #1c1a24;
  --gold: #c9a24b;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --sans: 'Schibsted Grotesk', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .hero-role { text-wrap: balance; }
p, li { text-wrap: pretty; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.nav .wrap { position: relative; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 40px; }
.nav .wrap::before {
  content: ''; position: absolute; inset: 0 24px; z-index: -1;
  background: rgba(255,255,255,.82); border: 1px solid rgba(22,22,29,.07); border-radius: 18px;
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  opacity: 0; transition: opacity .25s var(--ease);
}
.nav.scrolled .wrap::before, .nav.open .wrap::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.brand::before { content: 'SF'; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--deep); color: #fff; font-size: 12.5px; letter-spacing: 0; box-shadow: inset 0 -3px 0 var(--accent); }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 8px 13px; border-radius: 10px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: rgba(22,22,29,.05); }
.nav-links a.active { color: var(--ink); background: var(--tile); box-shadow: 0 1px 2px rgba(22,22,29,.08), inset 0 -2px 0 var(--accent); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(22,22,29,.05); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.lang a { text-decoration: none; padding: 5px 8px; color: var(--ink-3); border-radius: 7px; }
.lang a:hover { color: var(--ink); }
.lang a.on { color: var(--ink); background: var(--tile); box-shadow: 0 1px 2px rgba(22,22,29,.1); }
.burger { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--tile); cursor: pointer; }
.burger i { position: relative; display: block; width: 18px; height: 2px; background: var(--ink); transition: background .2s; }
.burger i::before, .burger i::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform .25s ease; }
.burger i::before { transform: translateY(-6px); }
.burger i::after { transform: translateY(6px); }
.nav.open .burger i { background: transparent; }
.nav.open .burger i::before { transform: rotate(45deg); }
.nav.open .burger i::after { transform: rotate(-45deg); }
@supports (animation-timeline: scroll()) {
  .nav .wrap::after {
    content: ''; position: absolute; left: 42px; right: 42px; bottom: 0; height: 2px; border-radius: 2px;
    background: var(--accent); transform-origin: left; transform: scaleX(0); opacity: 0; transition: opacity .25s;
    animation: progress linear both; animation-timeline: scroll(root);
  }
  .nav.scrolled .wrap::after { opacity: 1; }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ── HERO BENTO ── */
.hero { padding: 4px 0 16px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; background: var(--tile); border: 1px solid rgba(22,22,29,.06); border-radius: var(--r-lg); padding: 28px; overflow: hidden; }
a.tile { text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
a.tile:hover { transform: translateY(-3px); border-color: rgba(22,22,29,.12); box-shadow: 0 18px 40px -24px rgba(22,22,29,.35); }
.t-label { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-3); margin-bottom: 14px; }
.t-arrow { position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); transition: background .2s, color .2s, transform .25s var(--ease); }
.t-arrow svg { width: 16px; height: 16px; fill: currentColor; }
a.tile:hover .t-arrow { background: var(--ink); color: #fff; transform: rotate(-45deg); }

.t-intro { grid-column: span 8; grid-row: span 2; padding: 40px 48px; display: flex; flex-direction: column; }
.intro-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--mist); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.kicker svg { width: 16px; height: 16px; fill: var(--accent); }
.hero h1 { font-weight: 800; font-size: clamp(50px, 8vw, 108px); line-height: .92; letter-spacing: -.055em; margin: 56px 0 22px -.04em; }
.hero h1 em { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.025em; color: var(--accent); padding-left: .04em; }
.hero-role { font-size: clamp(19px, 1.9vw, 24px); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; margin: 0 0 16px; }
.hero-role b { font-weight: inherit; color: var(--accent); }
.hero-intro { color: var(--ink-2); max-width: 64ch; margin: 0 0 30px; font-size: 16.5px; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; }
.btn { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: var(--tile); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* key figures (dark) */
.t-kpi { grid-column: span 4; grid-row: span 2; background: var(--deep); color: #fff; border-color: var(--deep); display: flex; flex-direction: column; padding: 32px; }
.t-kpi .t-label { color: #a9a6b8; }
.t-kpi::after { content: ''; position: absolute; left: 32px; right: 32px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--accent); }
.kpis { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
.kpis li { display: flex; flex-direction: column; gap: 4px; }
.kpis b { font-size: clamp(40px, 4.2vw, 56px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpis b sup { font-size: .5em; color: #e7a6ab; vertical-align: top; position: relative; top: .1em; margin-left: 2px; }
.kpis span { font-size: 14px; line-height: 1.35; color: #c9c6d6; }

.t-now { grid-column: span 5; display: flex; flex-direction: column; }
.t-now strong { margin-top: 18px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.t-now .sub { color: var(--ink-2); font-size: 15px; margin: 4px 0 14px; }
.t-now .when { margin-top: auto; }

.t-cia { grid-column: span 3; display: flex; flex-direction: column; background: var(--accent); border-color: var(--accent); color: #fff; }
.t-cia .t-label { color: #f1c9cc; }
.t-cia strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 64px; line-height: .9; letter-spacing: -.02em; margin-top: auto; }
.t-cia .sub { font-size: 14px; color: #f6dfe1; margin-top: 8px; line-height: 1.35; }
.t-cia .t-arrow { background: rgba(255,255,255,.14); }
a.t-cia:hover .t-arrow { background: #fff; color: var(--accent); }

.t-lang { grid-column: span 4; }
.t-lang ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.t-lang li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; line-height: 1.3; }
.t-lang li small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.t-lang li code { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); min-width: 34px; text-align: center; }

.t-stack { grid-column: span 12; display: flex; align-items: center; gap: 28px; padding: 20px 28px; }
.t-stack .t-label { margin: 0; flex-shrink: 0; }
.stack-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { flex-shrink: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--mist); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }
.marquee { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; overflow: hidden; }
.marquee:has(.run) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.stack-row.run { flex-wrap: nowrap; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover .run { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 4px)); } }

@media (prefers-reduced-motion: no-preference) {
  .bento > .tile { animation: pop .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
  @view-transition { navigation: auto; }
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* ── SECTIONS ── */
section.block { padding: 8px 0; scroll-margin-top: 84px; }
.panel { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 56px; background: var(--tile); border: 1px solid rgba(22,22,29,.06); border-radius: var(--r-lg); padding: 52px 56px; }
.panel > * { grid-column: 2; }
.panel > .sec-head { grid-column: 1; grid-row: 1 / span 30; align-self: start; position: sticky; top: 104px; }
.sec-head h2 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.sec-head h2::after { content: ''; display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--accent); margin-top: 14px; }
.sec-head p { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1.4; padding: 4px 9px; border-radius: 7px; background: var(--mist); color: var(--ink-2); }

/* Profile */
.profile { margin: 0; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; letter-spacing: -.012em; font-weight: 500; color: var(--ink); max-width: 48ch; }
.profile em { font-family: var(--serif); font-size: 1.12em; color: var(--accent); }
.seek { margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 20px; align-items: start; padding: 22px 24px; border-radius: var(--r-md); background: var(--accent-soft); }
.seek .t-label { margin: 3px 0 0; color: var(--accent); }
.seek p { margin: 0; color: var(--ink-2); }
.seek .tags { grid-column: 2; }
.seek .tag { background: var(--tile); color: var(--ink); }

/* Skills */
.skill { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding: 15px 0; border-top: 1px solid var(--line); }
.skill:first-child { border-top: 0; padding-top: 0; }
.skill h3 { margin: 0; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.5; }
.skill .list { line-height: 1.6; color: var(--ink-2); font-size: 15px; }
.skill .list span:not(:last-child)::after { content: '\a0· '; color: #b9b3ab; }

/* Timeline */
.tl { display: flex; flex-direction: column; }
.job { display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 36px; padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.job:first-child { padding-top: 0; border-top: 0; }
.job:last-child { padding-bottom: 0; }
.job-side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mono { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mist); color: var(--ink); font-weight: 800; font-size: 17px; letter-spacing: -.03em; box-shadow: inset 0 -3px 0 var(--c, var(--accent)); }
.when { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.when.now { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.when.now::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(158,48,57,.15); }
.job h3 { margin: 0 0 4px; font-size: 23px; font-weight: 750; letter-spacing: -.025em; line-height: 1.25; }
.job h3 a { text-decoration: none; }
.job h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.badge { display: inline-block; vertical-align: middle; margin-left: 10px; position: relative; top: -2px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); padding: 3px 8px; border-radius: 6px; background: var(--mist); }
.role { margin: 0 0 14px; font-weight: 600; color: var(--accent); }
.desc { margin: 0 0 16px; color: var(--ink-2); max-width: 70ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); min-width: 120px; }
.facts b { font-size: 19px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.facts span { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.missions { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.missions li { padding: 14px 16px; border-radius: var(--r-sm); background: var(--mist); color: var(--ink-2); font-size: 15px; }
.missions strong { color: var(--ink); font-weight: 600; }

/* Logos */
.logo { width: 140px; height: 40px; display: flex; align-items: center; }
.logo img { width: auto; height: auto; max-width: 100%; max-height: 30px; object-fit: contain; }
.logo.sq { width: 56px; height: 48px; }
.logo.sq img { max-height: 46px; }
.lg { display: grid; place-items: center; height: 48px; padding: 0 12px; border-radius: 14px; background: var(--tile); flex-shrink: 0; }
.lg img { height: 26px; width: auto; }
.lg.sq { width: 48px; padding: 0; overflow: hidden; }
.lg.sq img { height: 48px; }
.elogo { display: flex; align-items: center; height: 48px; }
.elogo img { width: auto; height: auto; max-width: 100%; max-height: 46px; object-fit: contain; }
.now-logo { display: block; }
.now-logo img { height: 30px; width: auto; }
.cia .iia { position: absolute; top: 26px; right: 30px; height: 30px; width: auto; opacity: .8; }

/* Volunteering */
.assoc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.asso { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r-md); background: var(--mist); }
.asso.wide { grid-column: 1 / -1; }
.asso-top { display: flex; align-items: center; gap: 16px; }
.asso-top > div { flex: 1; min-width: 0; }
.asso .mono { width: 48px; height: 48px; border-radius: 14px; background: var(--tile); font-size: 15px; flex-shrink: 0; }
.asso h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.asso-meta { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }
.asso > p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.roles li { padding: 14px 16px; border-radius: var(--r-sm); background: var(--tile); font-size: 14px; color: var(--ink-2); }
.roles b { display: block; font-size: 15px; color: var(--ink); font-weight: 650; line-height: 1.3; }
.roles i { display: block; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--accent); margin: 4px 0 6px; }
.asso ul.dots { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.asso ul.dots li::marker { color: var(--accent); }

/* Education */
.edu { display: flex; flex-direction: column; }
.ed { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.ed:first-child { border-top: 0; padding-top: 0; }
.ed h3 { margin: 0; font-size: 17.5px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.ed p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }
.ed .when { text-align: right; white-space: nowrap; }

/* Certification */
.cia { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 32px; border-radius: var(--r-md); background: var(--deep); color: #fff; overflow: hidden; }
.cia::after { content: ''; position: absolute; left: 32px; bottom: 0; width: 64px; height: 4px; border-radius: 4px 4px 0 0; background: var(--accent); }
.seal { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; align-content: center; text-align: center; border: 1.5px solid rgba(255,255,255,.22); box-shadow: inset 0 0 0 7px var(--deep), inset 0 0 0 8.5px rgba(201,162,75,.6); }
.seal b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 40px; line-height: 1; color: var(--gold); }
.seal span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: #a9a6b8; margin-top: 2px; }
.cia .y { font-family: var(--mono); font-size: 12px; color: #a9a6b8; }
.cia h3 { margin: 4px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.cia p { margin: 0; color: #d4d1df; max-width: 60ch; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.contact-l { position: relative; overflow: hidden; padding: 48px; border-radius: var(--r-lg); background: var(--deep); color: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.contact-l::after { content: ''; position: absolute; left: 48px; bottom: 0; width: 56px; height: 5px; border-radius: 5px 5px 0 0; background: var(--accent); }
.contact-l h3 { font-size: clamp(38px, 4.6vw, 60px); font-weight: 800; line-height: .95; letter-spacing: -.05em; margin: 0 0 20px; }
.contact-l h3 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; color: #e7a6ab; }
.contact-l p { margin: 0 0 28px; color: #cfccda; max-width: 38ch; font-size: 17px; }
.contact-l a { color: #fff; font-weight: 500; display: inline-flex; gap: 10px; align-items: center; text-decoration: none; padding: 8px 0; }
.contact-l a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-l a svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.contact-r { padding: 40px 44px; border-radius: var(--r-lg); background: var(--tile); border: 1px solid rgba(22,22,29,.06); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg.full { grid-column: 1 / -1; }
.fg label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fg input, .fg textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--mist); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; outline: none; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; }
.fg input:hover, .fg textarea:hover { border-color: var(--line); }
.fg input:focus, .fg textarea:focus { background: var(--tile); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(158,48,57,.14); }
.fg textarea { min-height: 140px; resize: vertical; }
.contact-r .btn { margin-top: 20px; }
.btn:disabled { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: #ecfdf5; color: #047857; font-weight: 500; font-size: 14px; }
.form-msg.err { background: #fff1f2; color: #be123c; }

footer { padding: 24px 0 40px; color: var(--ink-3); font-family: var(--mono); font-size: 12.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 48px; }
footer a.sib { color: inherit; text-decoration: underline; text-decoration-color: rgba(102,100,111,.35); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
footer a.sib:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Spotlight hover */
.spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(158,48,57,.08), transparent 45%); opacity: 0; transition: opacity .3s; }
.spot:hover::before { opacity: 1; }
.t-kpi.spot::before, .t-cia.spot::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.12), transparent 50%); }

/* ── SEARCH PALETTE ── */
kbd { white-space: nowrap; font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 1.4; padding: 2px 6px; border-radius: 6px; background: var(--mist); color: var(--ink-2); border: 1px solid var(--line); }
.cmdk-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--tile); color: var(--ink-3); font: inherit; cursor: pointer; transition: border-color .15s, color .15s; }
.cmdk-btn:hover { border-color: var(--ink); color: var(--ink); }
.cmdk-btn svg { width: 16px; height: 16px; fill: currentColor; }
.cmdk-btn span { font-size: 14px; font-weight: 500; margin-right: 22px; }
.cmdk { padding: 0; border: 0; background: transparent; width: min(600px, calc(100% - 24px)); max-width: none; max-height: none; margin: 12vh auto auto; overflow: visible; }
.cmdk::backdrop { background: rgba(22,22,29,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cmdk-box { background: var(--tile); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(22,22,29,.6), 0 0 0 1px rgba(22,22,29,.08); }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmdk-in svg { width: 19px; height: 19px; fill: var(--ink-3); flex-shrink: 0; }
.cmdk-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 17px; color: var(--ink); }
.cmdk ul { list-style: none; margin: 0; padding: 8px; max-height: min(420px, 58vh); overflow: auto; overscroll-behavior: contain; }
.cmdk-g { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); padding: 12px 12px 6px; }
.cmdk-i { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 12px; font-weight: 500; cursor: pointer; }
.cmdk-i[aria-selected="true"] { background: var(--mist); box-shadow: inset 3px 0 0 var(--accent); }
.cmdk-i kbd { background: var(--tile); }
.cmdk-r { align-items: flex-start; padding: 12px; }
.cmdk-r > div { min-width: 0; }
.cmdk-r b { display: block; font-weight: 650; color: var(--ink); }
.cmdk-r small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.cmdk-r p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); font-weight: 400; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cmdk-r mark { background: rgba(201,162,75,.35); color: inherit; border-radius: 3px; padding: 0 1px; }
.cmdk-tag { flex-shrink: 0; font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding: 2px 7px; border-radius: 6px; background: var(--mist); margin-top: 2px; }
.cmdk-i[aria-selected="true"] .cmdk-tag { background: var(--tile); }
.cmdk-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--mist); font-size: 12.5px; color: var(--ink-3); }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 4px; }
.cmdk-foot kbd { background: var(--tile); }
.cmdk-empty { padding: 28px 12px; color: var(--ink-3); text-align: center; }
::highlight(cv-hit) { background-color: rgba(201,162,75,.42); color: inherit; }
.skill, .asso, .ed, .cia, .t-lang { scroll-margin-top: 110px; }
.hit { border-radius: 16px; animation: hit 2s var(--ease); }
@keyframes hit { 0%, 35% { box-shadow: 0 0 0 4px rgba(201,162,75,.6); } 100% { box-shadow: 0 0 0 4px rgba(201,162,75,0); } }
@media (prefers-reduced-motion: no-preference) { .cmdk[open] .cmdk-box { animation: cmdk-in .22s var(--ease); } }
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .cmdk-btn { margin-left: auto; }
  .burger { display: grid; }
  .nav-links {
    position: absolute; left: 24px; right: 24px; top: calc(100% + 8px); margin: 0;
    flex-direction: column; gap: 2px; padding: 10px;
    background: var(--tile); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 48px -24px rgba(22,22,29,.3);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav-links a { font-size: 17px; padding: 13px 14px; }
  .nav-links a.active { box-shadow: inset 3px 0 0 var(--accent); background: var(--mist); }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .t-intro { grid-column: span 6; grid-row: auto; }
  .t-kpi { grid-column: span 6; grid-row: auto; }
  .kpis { grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
  .t-now, .t-cia { grid-column: span 3; }
  .t-lang, .t-stack { grid-column: span 6; }
  .panel { grid-template-columns: 170px minmax(0, 1fr); column-gap: 40px; padding: 44px; }
  .roles { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .t-stack { flex-direction: column; align-items: flex-start; gap: 14px; }
  .marquee { width: 100%; }
  .panel { display: block; }
  .sec-head { position: static; margin-bottom: 28px; }
  .contact { grid-template-columns: 1fr; }
  .skill { grid-template-columns: 1fr; gap: 4px; }
  .job { grid-template-columns: 1fr; gap: 14px; }
  .job-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .assoc { grid-template-columns: 1fr; }
  .asso.wide { grid-column: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 12px; }
  .nav { padding: 8px 0; }
  .nav .wrap { padding: 0 24px; gap: 10px; }
  .nav .wrap::before { inset: 0 12px; }
  .nav .wrap::after { left: 26px; right: 26px; }
  .nav-links { left: 12px; right: 12px; }
  .cmdk-btn { display: none; }
  .lang { margin-left: auto; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .bento > .tile { grid-column: auto; grid-row: auto; padding: 24px; border-radius: 24px; }
  .bento > .t-intro { padding: 26px 22px 24px; }
  .hero h1 { margin-top: 40px; }
  .doc { display: none; }
  .t-cia strong { margin-top: 18px; }
  .t-kpi::after { left: 24px; right: 24px; }
  .panel { padding: 32px 20px; border-radius: 24px; }
  .seek { grid-template-columns: 1fr; padding: 20px; }
  .seek .tags { grid-column: auto; }
  .ed { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; }
  .elogo { height: 40px; }
  .elogo img { max-height: 40px; }
  .cia .iia { top: 22px; right: 22px; height: 24px; }
  .ed .when { grid-column: 2; text-align: left; margin-top: -8px; }
  .cia { grid-template-columns: 1fr; padding: 26px 22px; }
  .cia::after { left: 22px; }
  .seal { width: 92px; height: 92px; }
  .seal b { font-size: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-l, .contact-r { padding: 30px 22px; border-radius: 24px; }
  .contact-l::after { left: 22px; }
  .badge { margin-left: 0; margin-top: 6px; display: table; top: 0; }
  footer .wrap { padding: 0 24px; }
}

/* ── PRINT (A4) ── */
@media print {
  @page { size: A4; margin: 13mm 14mm 15mm; }
  :root { --page: #fff; --mist: #f4f2ef; }
  body { background: #fff; font-size: 9pt; line-height: 1.4; }
  .nav, .hero-cta, .t-arrow, .t-stack, .contact-r, footer, .cmdk, .doc { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .hero { padding: 0 0 4mm; }
  .bento { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3mm; }
  .bento > .tile { animation: none; border: 1px solid var(--line); border-radius: 3mm; padding: 4mm; grid-column: auto; grid-row: auto; break-inside: avoid; }
  .bento > .t-intro { grid-column: 1 / -1; border: 0; padding: 0 0 2mm; }
  .bento > .t-kpi { grid-column: 1 / -1; padding: 3mm 4mm; }
  .kpis { grid-template-columns: repeat(4, 1fr); margin-top: 0; gap: 3mm; }
  .kpis b { font-size: 20pt; }
  .kpis span { font-size: 8.5pt; }
  .t-kpi .t-label, .t-now .t-label, .t-cia .t-label, .t-lang .t-label { margin-bottom: 2mm; }
  .hero h1 { font-size: 30pt; margin: 3mm 0 2mm; }
  .hero h1 em { display: inline; }
  .hero-role { font-size: 13pt; margin-bottom: 2mm; }
  .hero-intro { font-size: 9.5pt; max-width: none; margin: 0; }
  .kicker { padding: 0; background: none; }
  .t-cia strong { font-size: 30pt; margin-top: 1mm; }
  .t-now strong { margin-top: 0; font-size: 12pt; }
  .t-now .sub { margin: 0 0 1mm; font-size: 9pt; }
  .t-now .when { margin-top: 2mm; }
  .desc { margin-bottom: 2.5mm; }
  .facts { margin-bottom: 2.5mm; }
  .t-lang li { font-size: 9.5pt; }
  .t-lang ul { gap: 1mm; }
  section.block { padding: 0; }
  .panel { display: block; border: 0; border-radius: 0; padding: 2.5mm 0 0; border-top: 1.5pt solid var(--ink); margin-top: 3.5mm; }
  .sec-head { position: static; margin-bottom: 3mm; break-after: avoid; }
  .sec-head h2 { font-size: 14pt; }
  .sec-head h2::after, .sec-head p { display: none; }
  .profile { font-size: 11pt; max-width: none; }
  .seek { padding: 3mm 4mm; margin-top: 3mm; break-inside: avoid; }
  .skill { grid-template-columns: 42mm 1fr; gap: 4mm; padding: 1.5mm 0; break-inside: avoid; }
  .skill h3, .skill .list { font-size: 9.5pt; }
  .job { grid-template-columns: 30mm 1fr; gap: 4mm; padding: 3.5mm 0; break-inside: auto; }
  .job-side { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2mm; width: auto; }
  .job-side .when { font-size: 7.5pt; }
  .asso.wide { grid-column: 1 / -1; }
  .t-kpi, .cia { background: #fff; color: var(--ink); border: 1px solid var(--line); }
  .t-kpi .t-label, .kpis span, .cia .y, .cia p { color: var(--ink-2); }
  .kpis b sup { color: var(--accent); }
  .t-kpi::after, .cia::after { display: none; }
  .seal { box-shadow: inset 0 0 0 1.5mm #fff, inset 0 0 0 1.8mm var(--gold); border-color: var(--line); }
  .seal span { color: var(--ink-3); }
  .mono { width: 10mm; height: 10mm; border-radius: 2.5mm; font-size: 9pt; }
  .job h3 { font-size: 12.5pt; }
  .when { white-space: nowrap; font-size: 8pt; }
  .facts li { padding: 1.5mm 3mm; min-width: 0; }
  .facts b { font-size: 11pt; }
  .missions { gap: 1.2mm; }
  .missions li { padding: 1.2mm 3mm; font-size: 8.7pt; break-inside: avoid; }
  .tag { font-size: 7.5pt; padding: .5mm 1.5mm; }
  .assoc { grid-template-columns: 1fr 1fr; gap: 2mm; }
  .asso { padding: 3mm; break-inside: avoid; gap: 2mm; }
  .roles { grid-template-columns: repeat(3, 1fr); gap: 2mm; }
  .roles li { padding: 2mm 3mm; font-size: 8.5pt; }
  .ed { padding: 1.5mm 0; grid-template-columns: 24mm 1fr auto; gap: 4mm; break-inside: avoid; }
  .elogo { height: 9mm; }
  .elogo img { max-height: 9mm; }
  .logo { width: 28mm; height: 9mm; }
  .logo img { max-height: 7mm; }
  .logo.sq { width: 12mm; }
  .logo.sq img { max-height: 10mm; }
  .lg { height: 10mm; border-radius: 2.5mm; }
  .lg img { height: 6mm; }
  .lg.sq { width: 10mm; }
  .lg.sq img { height: 10mm; }
  .now-logo img { height: 6mm; }
  .cia .iia { filter: brightness(0); opacity: .7; top: 4mm; right: 4mm; height: 6mm; }
  .ed h3 { font-size: 10.5pt; }
  .cia { padding: 4mm; gap: 5mm; break-inside: avoid; }
  .seal { width: 20mm; height: 20mm; }
  .seal b { font-size: 16pt; }
  .cia h3 { font-size: 13pt; }
  #contact { break-inside: avoid; }
  .contact { display: block; }
  .contact-l { background: #fff; color: var(--ink); padding: 3mm 0 0; border-top: 1.5pt solid var(--ink); border-radius: 0; }
  .contact-l::after { display: none; }
  .contact-l h3 { font-size: 14pt; letter-spacing: -.02em; margin-bottom: 2mm; }
  .contact-l h3 em { color: var(--accent); }
  .contact-l { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 6mm; }
  .contact-l h3 { width: 100%; }
  .contact-l p { display: none; }
  .contact-l a { color: var(--ink); padding: .5mm 0; }
  a { text-decoration: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
