/* =====================================================================
   Kerellos Mishriki — personal site
   Colours and typefaces are taken from the CV (02_Inputs/template/cv.css):
   accent #A55C50, sidebar grey #E4E5E6, ink #241F21,
   Libre Bodoni (display), Work Sans (body), Calibri/Carlito (meta), Open Sans (labels).
   ===================================================================== */

/* ---------- fonts (local files, same ones the CV uses) ---------- */
@font-face { font-family: "CV Display"; font-weight: 700; font-display: swap;
  src: url("../fonts/libre-bodoni-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "CV Body"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fonts/work-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "CV Body"; font-weight: 300; font-style: italic; font-display: swap;
  src: url("../fonts/work-sans-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "CV Body"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/work-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "CV Sans"; font-weight: 300; font-display: swap;
  src: url("../fonts/open-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "CV Sans"; font-weight: 700; font-display: swap;
  src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "CV Meta"; font-weight: 300; font-display: swap;
  src: local("Calibri Light"), local("Calibri-Light"),
       url("../fonts/carlito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "CV Meta"; font-weight: 700; font-display: swap;
  src: local("Calibri Bold"), local("Calibri-Bold"),
       url("../fonts/carlito-latin-700-normal.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --accent: #A55C50;          /* CV header band */
  --accent-deep: #8A473C;
  --accent-soft: #D9A99F;
  --gold: #CDA552;            /* from the gold graduation cap */
  --gold-soft: #E9D3A0;
  --sig-r: #D5513F; --sig-a: #E5AB3C; --sig-g: #58A877;

  --f-display: "CV Display", "Libre Bodoni", "Bodoni MT", Didot, serif;
  --f-body: "CV Body", "Work Sans", system-ui, sans-serif;
  --f-meta: "CV Meta", Calibri, Carlito, sans-serif;
  --f-sans: "CV Sans", "Open Sans", sans-serif;

  --pad: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #E4E5E6;              /* CV sidebar grey */
  --ink: #241F21;             /* CV ring ink */
  --muted: #5F5B5C;
  --hi: #FFFFFF;              /* light edge of a raised surface */
  --lo: #B9BBBF;              /* shadow edge */
  --well: #DADBDD;
  --accent-text: #8A473C;
  --tile-dark: #241F21;
  --tile-rose: #EBD3CD;
  --cut: #E4E5E6;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #2A2627;
  --ink: #E9E9EA;
  --muted: #A9A4A5;
  --hi: #3A3536;
  --lo: #171415;
  --well: #242021;
  --accent-text: #DD9A8C;
  --tile-dark: #151213;
  --tile-rose: #4A3633;
  --cut: #2A2627;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-weight: 300; font-size: 1.0625rem; line-height: 1.62;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
strong, b { font-weight: 700; }
.h2, .h3, .hero__name, .hero__role, .arch__text, .band__row, .card__title, .plaque__deg, .contact__title, .panel__title, .nav__name { word-spacing: .14em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(5rem, 13vh, 9.5rem); }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg);
        padding: .6rem 1rem; border-radius: 999px; transition: top .2s; }
.skip:focus { top: 1rem; }

/* skeuomorphic surfaces: one raised, one pressed in */
.raised, .panel, .float, .nav__links, .nav__brand, .knob, .card, .plaque, .job__head, .other__item, .thesis {
  background: var(--bg);
  box-shadow: 9px 9px 20px var(--lo), -9px -9px 20px var(--hi);
}
.panel { border-radius: 28px; padding: clamp(1.25rem, 2.4vw, 2rem); }

/* ---------- headings ---------- */
.h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.5rem, 5.6vw, 4.75rem);
      line-height: 1.02; letter-spacing: -0.02em; position: relative; width: fit-content; }
.h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.2rem);
      letter-spacing: -0.012em; line-height: 1.1; }
/* the CV swaps single letters for little icons; same trick here */
.swap { position: relative; display: inline-block; color: transparent; }
.swap svg { position: absolute; left: 50%; top: 56%; width: .62em; height: .62em; transform: translate(-50%, -50%); color: var(--ink); }
.swap--k svg { width: .66em; height: .82em; top: 50%; }
.h2 .deco { position: absolute; color: var(--ink); }
.h2--xp .deco { left: .12em; top: -.26em; width: .62em; height: .5em; transform: rotate(-4deg); }
.h2--edu .deco { right: -.52em; top: -.2em; width: .86em; height: .74em; }
.h2__icon { display: inline-block; width: .7em; height: .7em; margin-right: .22em; vertical-align: -.04em; color: var(--accent-text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6rem; border: 0; border-radius: 999px;
       padding: .8rem 1.35rem; font-family: var(--f-body); font-weight: 700; font-size: .95rem; line-height: 1;
       transition: transform .25s var(--spring), box-shadow .25s var(--ease), background-color .25s; }
.btn svg { width: 1.25em; height: 1.25em; }
.btn--ink { background: var(--ink); color: var(--bg); box-shadow: 6px 6px 14px var(--lo), -6px -6px 14px var(--hi); }
.btn--ink:hover { transform: translateY(-2px); }
.btn--ink:active { transform: translateY(1px) scale(.98); box-shadow: 2px 2px 6px var(--lo), -2px -2px 6px var(--hi); }
.btn--lg { padding: 1.1rem 1.7rem; font-size: 1.05rem; }
.btn--light { background: #fff; color: #241F21; --cut: #fff; box-shadow: 0 10px 24px rgba(60, 20, 14, .35), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.btn--light:hover { transform: translateY(-3px); }
.btn--light:active { transform: translateY(1px); box-shadow: 0 3px 8px rgba(60, 20, 14, .35), inset 0 2px 4px rgba(0, 0, 0, .18); }
.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; --cut: var(--accent);
              box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); transform: translateY(-3px); }

/* round raised button */
.knob { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
        transition: transform .25s var(--spring), box-shadow .25s var(--ease), color .2s; }
.knob svg { width: 1.5rem; height: 1.5rem; }
.knob:hover { transform: translateY(-3px); color: var(--accent-text); }
.knob:active { transform: none; box-shadow: inset 4px 4px 9px var(--lo), inset -4px -4px 9px var(--hi); }
.knob--down svg { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

/* =====================================================================
   NAV
   ===================================================================== */
.nav { position: fixed; z-index: 50; left: 0; right: 0; top: 0; padding: 1rem var(--pad);
       display: flex; align-items: center; justify-content: space-between; gap: 1rem;
       transition: transform .5s var(--ease); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav.is-hidden { transform: translateY(-120%); }
.nav__brand { display: flex; align-items: center; gap: .9rem; padding: .45rem 1.5rem .45rem .45rem; border-radius: 999px; }
.nav__logo { width: 4.1rem; height: 4.1rem; flex: none; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center;
             box-shadow: inset 2px 2px 5px rgba(255, 255, 255, .25), inset -2px -2px 5px rgba(0, 0, 0, .25); }
.nav__logo svg { width: 3.2rem; height: 3.2rem; transition: transform 1s var(--ease); }
.nav__brand:hover .nav__logo svg, .nav__brand:focus-visible .nav__logo svg { transform: rotate(360deg); }
.nav__name { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 1.02; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: .15rem; padding: .35rem; border-radius: 999px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav__links a { padding: .55rem 1rem; border-radius: 999px; font-size: .92rem; font-weight: 700; color: var(--muted);
                transition: color .2s, box-shadow .3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--accent-text); box-shadow: inset 3px 3px 7px var(--lo), inset -3px -3px 7px var(--hi); }
.nav__end { display: flex; align-items: center; gap: .9rem; }

/* light / dark slide switch */
.switch { border: 0; background: none; padding: 0; border-radius: 999px; }
.switch__track { position: relative; display: flex; align-items: center; justify-content: space-between; width: 4.6rem; height: 2.5rem; padding: 0 .62rem;
                 border-radius: 999px; background: var(--well); box-shadow: inset 4px 4px 8px var(--lo), inset -4px -4px 8px var(--hi); }
.switch__track svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.switch__thumb { position: absolute; left: .28rem; top: .28rem; width: 1.94rem; height: 1.94rem; border-radius: 50%;
                 background: linear-gradient(145deg, var(--hi), var(--bg)); box-shadow: 3px 3px 7px var(--lo), -1px -1px 3px var(--hi), inset 0 0 0 1px rgba(255, 255, 255, .08);
                 transition: transform .45s var(--spring); }
.switch__thumb::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); transition: background-color .4s, box-shadow .4s; }
[data-theme="dark"] .switch__thumb { transform: translateX(2.1rem); }
[data-theme="dark"] .switch__thumb::after { background: var(--accent-soft); box-shadow: 0 0 8px var(--accent); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; min-height: max(100svh, 720px); overflow: hidden; isolation: isolate; }
.hero__arches { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: -1;
              background: linear-gradient(to bottom, transparent, var(--bg) 92%); }

.hero__hey { position: absolute; left: 0; right: 0; top: clamp(5.5rem, 13svh, 9rem); z-index: 0; display: flex; justify-content: center;
             gap: clamp(7rem, 21svh, 15rem); font-style: italic; font-weight: 300; font-size: clamp(4.2rem, 13.5vw, 14rem); line-height: 1;
             letter-spacing: -0.045em; color: var(--ink); white-space: nowrap; user-select: none; }
.hero__hey span { display: block; }

.hero__stage { position: absolute; z-index: 1; left: 50%; bottom: 0; width: min(74svh, 92vw); aspect-ratio: 1180 / 1328; margin-left: calc(min(74svh, 92vw) / -2); }
.hero__photo { position: relative; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(36, 31, 33, .28)); }
.hero__sun { position: absolute; z-index: -1; left: -47%; top: 55%; width: 27%; aspect-ratio: 1; border-radius: 50%;
             background: radial-gradient(circle at 32% 28%, var(--gold-soft), var(--gold) 46%, var(--accent) 115%);
             box-shadow: 14px 18px 34px rgba(120, 60, 40, .35), inset -8px -10px 22px rgba(120, 50, 30, .35), inset 8px 8px 18px rgba(255, 255, 255, .45); }

/* floating raised cards around the portrait */
.float { position: absolute; border-radius: 22px; font-size: .9rem; line-height: 1.25; will-change: transform; }
.float--status { left: -64%; top: 25%; display: flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem .7rem .8rem; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.lamp { width: .8rem; height: .8rem; border-radius: 50%; background: var(--sig-g); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sig-g) 25%, transparent), 0 0 10px var(--sig-g);
        animation: lamp 2.4s ease-in-out infinite; }
@keyframes lamp { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--sig-g) 0%, transparent), 0 0 4px var(--sig-g); } }
.float--stat { left: -30%; top: 37%; padding: 1rem 1.25rem 1rem 1rem; display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: center; }
.float__icon { grid-row: span 2; width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center; color: var(--accent-text);
               background: var(--well); box-shadow: inset 3px 3px 6px var(--lo), inset -3px -3px 6px var(--hi); }
.float__icon svg { width: 1.45rem; height: 1.45rem; }
.float__big { font-family: var(--f-meta); font-weight: 700; font-size: 1.55rem; line-height: 1; white-space: nowrap; }
.float__small { color: var(--ink); font-family: var(--f-meta); font-weight: 700; font-size: .9rem; letter-spacing: .02em; white-space: nowrap; opacity: .82; }
.float--chip { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .6rem 1rem; border-radius: 999px; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.dot { flex: none; width: .7rem; height: .7rem; border-radius: 50%; box-shadow: inset -1px -1px 2px rgba(0, 0, 0, .3), inset 1px 1px 2px rgba(255, 255, 255, .5); }
.dot--accent { background: var(--accent); } .dot--gold { background: var(--gold); } .dot--ink { background: var(--ink); }
.float--chip1 { right: -26%; top: 19%; }
.float--chip2 { right: -52%; top: 31%; }
.float--chip3 { right: -20%; top: 43%; }
/* tool chips shuffle their word every few seconds; pills keep one fixed width (set in JS to fit the longest word) */
.chip__word { display: inline-block; transition: opacity .32s var(--ease), transform .32s var(--ease), filter .32s var(--ease); }
.chip__word.is-out { opacity: 0; transform: translateY(-.55em); filter: blur(3px); }
.chip__word.is-pre { opacity: 0; transform: translateY(.55em); filter: blur(3px); transition: none; }
.float--card { right: 8%; bottom: 9%; width: 11.5rem; padding: 2.9rem 1rem 1rem; text-align: center; display: grid; gap: .25rem; justify-items: center; }
.float--card img { position: absolute; top: -1.9rem; left: 50%; margin-left: -2.2rem; width: 4.4rem; height: 4.4rem; border-radius: 50%;
                   box-shadow: 5px 5px 12px var(--lo), -5px -5px 12px var(--hi); }
.float--card b { font-family: var(--f-meta); font-size: 1.02rem; letter-spacing: .03em; }
.float--card span { font-family: var(--f-meta); font-weight: 700; font-size: .78rem; line-height: 1.25; color: var(--ink); opacity: .82; text-wrap: balance; }
.float__row { display: flex; gap: .4rem; margin-top: .35rem; }
.float__row i { font-style: normal; font-family: var(--f-meta); font-weight: 700; font-size: .78rem; color: var(--ink); padding: .2rem .6rem; border-radius: 999px;
                background: var(--well); box-shadow: inset 2px 2px 4px var(--lo), inset -2px -2px 4px var(--hi); }

.hero__name { position: absolute; z-index: 3; left: var(--pad); bottom: clamp(8.5rem, 19svh, 11rem); font-family: var(--f-display); font-weight: 700;
              font-size: clamp(3.6rem, 9.2vw, 9.6rem); line-height: .9; letter-spacing: -0.035em; }
[data-theme="dark"] .hero__sun { background: radial-gradient(circle at 32% 28%, #C98576, var(--accent) 50%, #5E332D 115%); box-shadow: 14px 18px 34px rgba(0, 0, 0, .45), inset -8px -10px 22px rgba(0, 0, 0, .35), inset 8px 8px 18px rgba(255, 255, 255, .18); }
.hero__name span { display: block; }
.hero__iam { font-size: .62em; margin-bottom: .04em; }
.hero__first { text-shadow: 0 2px 0 color-mix(in srgb, var(--bg) 60%, transparent); }

.hero__build { position: absolute; z-index: 3; left: var(--pad); bottom: clamp(5.2rem, 12svh, 7rem); font-size: clamp(1.05rem, 1.5vw, 1.35rem); display: flex; gap: .4em; white-space: nowrap; }
.rot { display: inline-block; position: relative; height: 1.62em; overflow: hidden; font-weight: 700; color: var(--accent-text); }
.rot__word { display: block; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.rot__word.is-out { transform: translateY(-110%); opacity: 0; }
.rot__word.is-pre { transform: translateY(110%); opacity: 0; transition: none; }

.hero__side { position: absolute; z-index: 3; right: var(--pad); bottom: clamp(1.5rem, 5svh, 3rem); width: min(21rem, 26vw); }
.hero__intro { font-size: .98rem; line-height: 1.5; margin-bottom: 1.1rem; max-width: 19rem; }
.hero__role { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 3.5vw, 3.5rem); line-height: 1.16; letter-spacing: -0.02em; }

.hero__foot { position: absolute; z-index: 3; left: var(--pad); bottom: clamp(1.2rem, 3.6svh, 2rem); display: flex; gap: .9rem; }

/* one page-load sequence */
.js .hero__hey span, .js .hero__photo, .js .hero__name span, .js .hero__side, .js .hero__build, .js .hero__foot, .js .float, .js .hero__sun {
  opacity: 0; }
.js.is-ready .hero__hey span { animation: heyIn 1.1s var(--ease) .15s both; }
.js.is-ready .hero__hey span + span { animation-name: heyIn2; animation-delay: .25s; }
.js.is-ready .hero__photo { animation: riseIn 1.2s var(--ease) .3s both; }
.js.is-ready .hero__sun { animation: popIn .9s var(--spring) .9s both; }
.js.is-ready .hero__name span { animation: slideIn .9s var(--ease) .7s both; }
.js.is-ready .hero__name span + span { animation-delay: .82s; }
.js.is-ready .hero__build { animation: slideIn .8s var(--ease) 1s both; }
.js.is-ready .hero__foot { animation: slideIn .8s var(--ease) 1.1s both; }
.js.is-ready .hero__side { animation: slideInR .9s var(--ease) .9s both; }
.js.is-ready .float { animation: popIn .7s var(--spring) both; animation-delay: calc(1.1s + var(--i, 0) * .09s); }
@keyframes heyIn { from { opacity: 0; transform: translateX(-12vw); } to { opacity: 1; transform: none; } }
@keyframes heyIn2 { from { opacity: 0; transform: translateX(12vw); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(9%); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-2.5rem); } to { opacity: 1; transform: none; } }
@keyframes slideInR { from { opacity: 0; transform: translateX(2.5rem); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }

/* =====================================================================
   PROFILE — an arch that opens to full width as you scroll
   ===================================================================== */
.arch { height: 300vh; position: relative; --p: 0; --q: 0; }
.arch__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.arch__panel { position: relative; overflow: hidden; background: var(--accent); color: #fff; --cut: var(--accent);
               width: calc(58% + 42% * var(--p)); height: calc(72% + 28% * var(--p));
               border-radius: calc((1 - var(--p)) * 34vw) calc((1 - var(--p)) * 34vw) 0 0;
               display: grid; place-items: center;
               box-shadow: inset 0 22px 50px rgba(255, 255, 255, calc(.16 * (1 - var(--p)))), inset 0 -40px 80px rgba(60, 20, 14, .3); }
.arch__gear { position: absolute; width: min(86vh, 70vw); height: min(86vh, 70vw); right: -12%; bottom: -22%; opacity: .14;
              transform: rotate(calc(var(--q) * 150deg)); }
.arch__body { position: relative; width: min(60rem, 84vw); padding: 5rem 0 2rem; opacity: calc(.25 + var(--p) * .75); transform: scale(calc(.82 + var(--p) * .18)); }
.arch__quote { width: clamp(2.4rem, 4vw, 3.6rem); height: clamp(2rem, 3.4vw, 3rem); margin-bottom: 1.2rem; stroke-width: .4; overflow: visible; }
.arch__text { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.25rem, 2.75vw, 2.7rem); line-height: 1.22; letter-spacing: -0.012em; }
.arch__text .w { opacity: .26; transition: opacity .35s linear; }
.arch__text .w.is-lit { opacity: 1; }
.arch__orbit { position: absolute; border-radius: 50%; overflow: hidden; background: var(--bg);
               box-shadow: 10px 10px 24px var(--lo), -10px -10px 24px var(--hi); display: grid; place-items: center; color: var(--ink); }
.arch__orbit--a { width: clamp(6rem, 13vw, 12rem); aspect-ratio: 1; left: 4%; top: 16%;
                  transform: translate(calc(var(--p) * -160%), calc(var(--p) * -120%)) rotate(calc(var(--p) * -40deg)); }
.arch__orbit--a img { width: 100%; height: 100%; object-fit: cover; }
.arch__orbit--b { width: clamp(4.5rem, 9vw, 8rem); aspect-ratio: 1; right: 6%; top: 30%;
                  transform: translate(calc(var(--p) * 190%), calc(var(--p) * -80%)) rotate(calc(var(--p) * 120deg)); }
.arch__orbit--b svg { width: 46%; height: 46%; }

/* =====================================================================
   TOOLS BAND
   ===================================================================== */
.band { padding-block: clamp(3rem, 8vh, 6rem) 0; overflow: hidden; }
.band__row { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); width: max-content; will-change: transform;
             font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: 1.15; letter-spacing: -0.02em; white-space: nowrap; }
.band__row--alt { color: transparent; -webkit-text-stroke: 1.5px var(--accent-text); }
.band__row svg { width: .34em; height: .34em; flex: none; fill: var(--gold); }
.band__row--alt svg { fill: var(--accent); }

/* =====================================================================
   YEARS OF EXPERIENCE — dials
   ===================================================================== */
.h2--years { margin-inline: auto; }
.dials { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 3rem); margin-top: clamp(2.5rem, 6vh, 4.5rem); }
.dial { display: grid; justify-items: center; gap: 1.4rem; }
.dial__face { position: relative; width: min(100%, 15rem); aspect-ratio: 1; border-radius: 50%; background: var(--bg);
              box-shadow: 12px 12px 26px var(--lo), -12px -12px 26px var(--hi); display: grid; place-items: center;
              transition: transform .5s var(--spring); }
.dial:hover .dial__face { transform: scale(1.04) rotate(-3deg); }
.dial__face::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; background: var(--well);
                      box-shadow: inset 6px 6px 12px var(--lo), inset -6px -6px 12px var(--hi); }
.dial__face svg { position: absolute; inset: 7%; width: 86%; height: 86%; transform: rotate(-90deg); overflow: visible; }
.dial__face circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.dial__track { stroke: transparent; }
.dial__arc { stroke: var(--accent); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 55%, transparent));
             transition: stroke-dashoffset 1.8s var(--ease); }
.dial__hub { position: relative; width: 58%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, var(--hi), var(--bg) 60%);
             box-shadow: 6px 6px 14px var(--lo), -4px -4px 10px var(--hi); display: grid; place-items: center;
             font-family: var(--f-meta); font-weight: 700; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1; }
.dial__label { font-family: var(--f-sans); font-weight: 700; font-size: 1.05rem; text-align: center; }

/* =====================================================================
   SELECTED WORK — pinned, moves sideways with scroll
   ===================================================================== */
.work { position: relative; height: calc(100vh + var(--n, 5) * 62vh); }
.work__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.4rem, 4vh, 2.6rem); padding-top: 4.5rem; }
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.work__meter { flex: none; width: min(16rem, 30vw); height: .8rem; border-radius: 999px; background: var(--well); margin-bottom: .9rem;
               box-shadow: inset 3px 3px 6px var(--lo), inset -3px -3px 6px var(--hi); overflow: hidden; }
.work__meter i { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--accent)); transform-origin: left; transform: scaleX(.04); }
.work__track { display: flex; gap: clamp(1.25rem, 3vw, 2.75rem); padding: 1.6rem max(var(--pad), calc((100vw - 1240px) / 2 + var(--pad))) 2.4rem; width: max-content; will-change: transform; }
.card { width: min(64rem, 82vw); height: min(34rem, 62vh); border-radius: 36px; padding: clamp(1rem, 1.6vw, 1.4rem); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.2rem, 2.6vw, 2.6rem); flex: none; }
.card__art { border-radius: 26px; background: var(--well); box-shadow: inset 6px 6px 14px var(--lo), inset -6px -6px 14px var(--hi); overflow: hidden; display: grid; place-items: center; color: var(--ink); }
.card__art svg { width: 86%; height: 86%; }
.card__body { display: flex; flex-direction: column; justify-content: center; padding-right: clamp(.5rem, 1.6vw, 1.6rem); min-width: 0; }
.card__where { font-family: var(--f-meta); font-weight: 700; letter-spacing: .04em; color: var(--accent-text); font-size: .98rem; margin-bottom: .6rem; }
.card__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.45rem, 2.5vw, 2.3rem); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: .9rem; text-wrap: balance; }
.card__text { font-size: .98rem; line-height: 1.55; color: var(--muted); }
.card__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.tag { font-family: var(--f-sans); font-weight: 700; font-size: .74rem; padding: .42rem .8rem; border-radius: 999px; background: var(--well);
       box-shadow: inset 2px 2px 5px var(--lo), inset -2px -2px 5px var(--hi); }
/* line-art inside the cards */
.art .s { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art .s2 { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; opacity: .4; }
.art .road { fill: none; stroke: currentColor; stroke-width: 14; stroke-linecap: round; opacity: .12; }
.art .a { fill: var(--accent); } .art .g { fill: var(--gold); } .art .k { fill: currentColor; }
.art .as { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art .gs { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art .dash { stroke-dasharray: 5 7; }
.art .cone { fill: var(--gold); opacity: .28; }
.art .blink { animation: blink 2.4s steps(1) infinite; }
.art .blink2 { animation: blink 2.4s steps(1) -1.2s infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .18; } }
.art text { font-family: var(--f-meta); font-weight: 700; fill: currentColor; }

/* =====================================================================
   EXPERIENCE
   ===================================================================== */
.xp__list { position: relative; margin-top: clamp(2.5rem, 6vh, 4.5rem); padding-left: clamp(2.2rem, 5vw, 4.5rem); display: grid; gap: clamp(3.5rem, 9vh, 6.5rem); }
.xp__rail { position: absolute; left: .55rem; top: .5rem; bottom: 0; width: .7rem; border-radius: 999px; background: var(--well);
            box-shadow: inset 3px 3px 6px var(--lo), inset -3px -3px 6px var(--hi); overflow: hidden; }
.xp__rail i { display: block; width: 100%; height: 100%; border-radius: 999px; background: linear-gradient(var(--gold), var(--accent)); transform-origin: top; transform: scaleY(0); }
.job { position: relative; display: grid; grid-template-columns: minmax(15rem, 20rem) 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.job__node { position: absolute; left: calc(clamp(2.2rem, 5vw, 4.5rem) * -1 + .15rem); top: 1.6rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--bg);
             box-shadow: 3px 3px 7px var(--lo), -3px -3px 7px var(--hi); display: grid; place-items: center; }
.job__node::after { content: ""; width: 42%; height: 42%; border-radius: 50%; background: var(--lo); transition: background-color .4s, box-shadow .4s; }
.job.is-on .job__node::after { background: var(--sig-g); box-shadow: 0 0 10px var(--sig-g); }
.job__head { position: sticky; top: 6.5rem; border-radius: 28px; padding: 1.4rem; font-family: var(--f-meta); }
.job__logo { width: 5.2rem; height: 5.2rem; border-radius: 20px; background: #F3F3F4; display: grid; place-items: center; margin-bottom: 1.1rem; overflow: hidden;
             box-shadow: inset 3px 3px 7px rgba(0, 0, 0, .18), inset -3px -3px 7px rgba(255, 255, 255, .9); }
.job__logo img { width: 68%; height: auto; }
.job__logo--steer { background: #161B21; } .job__logo--steer img { width: 100%; }
.job__logo--nrp img { width: 78%; }
.job__title { font-weight: 700; font-size: 1.32rem; line-height: 1.15; letter-spacing: .03em; }
.job__meta { font-weight: 300; font-size: 1.05rem; line-height: 1.4; letter-spacing: .03em; color: var(--muted); }
.job__meta:first-of-type { margin-top: .45rem; color: var(--ink); }
.job__dates { display: inline-block; margin: .7rem 0 .3rem; padding: .32rem .8rem; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--accent-text); background: var(--well);
              box-shadow: inset 2px 2px 5px var(--lo), inset -2px -2px 5px var(--hi); }
/* bullets keep the CV's dot with a grey bar hanging under it */
.bullets li { position: relative; padding: 0 0 1.15rem 1.7rem; max-width: 68ch; }
.bullets li::before { content: ""; position: absolute; left: .1rem; top: .62em; width: .42rem; height: .42rem; border-radius: 50%; background: var(--accent); }
.bullets li::after { content: ""; position: absolute; left: .21rem; top: 1.25em; bottom: .25rem; width: .2rem; border-radius: 2px; background: var(--well); box-shadow: inset 1px 1px 2px var(--lo); }
.bullets li.is-extra { display: none; }
.bullets.is-open li.is-extra { display: block; animation: slideIn .5s var(--ease) both; animation-delay: calc(var(--i) * .04s); }
.more { margin-top: .4rem; border: 0; background: var(--bg); border-radius: 999px; padding: .75rem 1.25rem; font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: .6rem;
        box-shadow: 6px 6px 14px var(--lo), -6px -6px 14px var(--hi); transition: box-shadow .25s var(--ease), transform .25s var(--spring); }
.more:hover { transform: translateY(-2px); }
.more[aria-expanded="true"] { box-shadow: inset 4px 4px 9px var(--lo), inset -4px -4px 9px var(--hi); }
.more svg { width: 1rem; height: 1rem; transition: transform .35s var(--ease); }
.more[aria-expanded="true"] svg { transform: rotate(180deg); }

.xp .h3 { margin-top: clamp(4rem, 10vh, 7rem); }
.other { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 1.8rem; }
.other__item { border-radius: 28px; padding: 1.5rem 1.6rem; font-family: var(--f-meta); transition: transform .4s var(--spring); }
.other__item:hover { transform: translateY(-4px); }
.other__item h4 { margin: 0; font-weight: 700; font-size: 1.25rem; letter-spacing: .03em; }
.other__item p { font-size: 1.02rem; letter-spacing: .03em; color: var(--muted); line-height: 1.4; }

/* =====================================================================
   SKILLS
   ===================================================================== */
.skills__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.skills__col { display: grid; gap: clamp(1.6rem, 3.5vh, 2.4rem); }

/* pattern mosaic (after 02_Inputs/Patterns) */
.mosaic { position: sticky; top: 7rem; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); aspect-ratio: 3 / 4; width: min(100%, 30rem); margin-inline: auto; }
.tile { position: relative; border-radius: 999px; display: grid; place-items: center; overflow: hidden; transition: transform .6s var(--spring), scale .7s var(--spring), opacity .5s; }
.js .mosaic .tile, .js .mosaic .spark { scale: 0; opacity: 0; }
.js .mosaic.is-in .tile, .js .mosaic.is-in .spark { scale: 1; opacity: 1; transition-delay: calc(var(--i, 0) * .07s); }
.tile:hover { transform: scale(.94); }
.tile--signal { grid-area: 1 / 1 / 3 / 2; background: linear-gradient(160deg, #3a3335, var(--tile-dark)); gap: 0; padding: 14% 0; grid-template-rows: repeat(3, 1fr);
                box-shadow: inset 4px 4px 10px rgba(255, 255, 255, .12), inset -6px -6px 14px rgba(0, 0, 0, .5); }
.sig { width: 52%; aspect-ratio: 1; border-radius: 50%; background: #1b1718; box-shadow: inset 4px 4px 8px rgba(0, 0, 0, .7), inset -2px -2px 5px rgba(255, 255, 255, .08); position: relative; }
.sig::after { content: ""; position: absolute; inset: 10%; border-radius: 50%; opacity: .16; background: var(--c); transition: opacity .25s, box-shadow .25s; }
.sig--r { --c: var(--sig-r); } .sig--a { --c: var(--sig-a); } .sig--g { --c: var(--sig-g); }
.sig.is-on::after { opacity: 1; box-shadow: 0 0 18px var(--c), inset -3px -3px 6px rgba(0, 0, 0, .25), inset 3px 3px 6px rgba(255, 255, 255, .45); }
.tile--wide { grid-area: 1 / 2 / 2 / 4; background: linear-gradient(120deg, var(--accent), var(--accent-deep)); padding: 0 9%;
              box-shadow: inset 5px 5px 12px rgba(255, 255, 255, .2), inset -6px -6px 14px rgba(0, 0, 0, .25); }
.tile__id { width: 100%; background: #fff; color: #241F21; border-radius: 999px; padding: .4rem 1rem .4rem .4rem; display: flex; align-items: center; gap: .6rem;
            box-shadow: 0 8px 18px rgba(60, 20, 14, .4), inset 0 -3px 0 rgba(0, 0, 0, .08); }
.tile__id img { width: 2.9rem; height: 2.9rem; border-radius: 50%; flex: none; }
.tile__id span { display: grid; line-height: 1.15; min-width: 0; }
.tile__id b { font-family: var(--f-meta); font-size: 1.02rem; }
.tile__id em { font-style: normal; font-family: var(--f-sans); font-size: .72rem; color: #6a6667; white-space: nowrap; }
.tile--dial { grid-area: 2 / 2 / 3 / 3; background: var(--bg); box-shadow: inset 6px 6px 14px var(--lo), inset -6px -6px 14px var(--hi); }
.dial-knob { width: 74%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, #fff, #dfe0e2); position: relative;
             box-shadow: 6px 8px 16px rgba(0, 0, 0, .28), inset -3px -3px 8px rgba(0, 0, 0, .1), 0 0 0 5px color-mix(in srgb, var(--accent) 80%, transparent); will-change: transform; }
.dial-knob i { position: absolute; left: 50%; top: 9%; width: 13%; aspect-ratio: 1; margin-left: -6.5%; border-radius: 50%; background: var(--accent); box-shadow: inset 1px 1px 3px rgba(0, 0, 0, .4); }
.tile--keys { grid-area: 2 / 3 / 4 / 4; background: linear-gradient(170deg, var(--gold-soft), var(--gold) 45%, var(--accent)); align-content: center; gap: 9%; padding: 18% 0;
              box-shadow: inset 5px 5px 12px rgba(255, 255, 255, .4), inset -6px -6px 14px rgba(90, 40, 20, .3); }
.key { width: 52%; aspect-ratio: 1.25; border-radius: 40%; background: #F4F1F2; color: #241F21; --bg: #F4F1F2; display: grid; place-items: center;
       box-shadow: 0 6px 12px rgba(90, 40, 20, .35), inset 0 -3px 0 rgba(0, 0, 0, .1); transition: transform .2s var(--spring); }
.key svg { width: 46%; height: 46%; }
.tile--keys:hover .key { animation: press .5s var(--ease); } .tile--keys:hover .key:nth-child(2) { animation-delay: .1s; } .tile--keys:hover .key:nth-child(3) { animation-delay: .2s; }
@keyframes press { 40% { transform: translateY(3px) scale(.94); box-shadow: 0 1px 3px rgba(90, 40, 20, .35); } }
.tile--arrow { grid-area: 3 / 1 / 4 / 2; background: radial-gradient(circle at 30% 25%, var(--gold-soft), var(--gold)); color: #241F21;
               box-shadow: inset 5px 5px 12px rgba(255, 255, 255, .5), inset -6px -6px 14px rgba(120, 80, 20, .35); }
.tile--arrow svg { width: 48%; height: 48%; transition: transform .4s var(--spring); }
.tile--arrow:hover svg { transform: translateX(-14%); }
.tile--slider { grid-area: 3 / 2 / 5 / 3; background: var(--tile-rose); box-shadow: inset 5px 5px 12px rgba(255, 255, 255, .25), inset -6px -6px 14px rgba(0, 0, 0, .12); }
.slot { position: relative; width: 60%; height: 82%; border-radius: 999px; border: 3px solid var(--ink); }
.slot::before { content: ""; position: absolute; left: 50%; top: 14%; bottom: 14%; width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--ink); }
.slot i { position: absolute; left: 50%; top: 14%; width: 62%; aspect-ratio: 1; margin: -31% 0 0 -31%; border-radius: 50%;
          background: radial-gradient(circle at 32% 28%, #5a5053, #241F21 70%); box-shadow: 0 6px 12px rgba(0, 0, 0, .4); will-change: top; }
.tile--logo { grid-area: 4 / 1 / 5 / 2; background: linear-gradient(145deg, var(--accent-soft), var(--accent) 55%, var(--accent-deep)); color: #fff;
              box-shadow: inset 5px 5px 12px rgba(255, 255, 255, .3), inset -6px -6px 14px rgba(0, 0, 0, .3); }
.tile--logo svg { width: 66%; height: 66%; transition: transform 1.2s var(--ease); }
.tile--logo:hover svg { transform: rotate(180deg); }
.tile--photo { grid-area: 4 / 3 / 5 / 4; background: linear-gradient(145deg, #3a3335, var(--tile-dark)); color: var(--gold-soft);
               box-shadow: inset 4px 4px 10px rgba(255, 255, 255, .12), inset -6px -6px 14px rgba(0, 0, 0, .5); }
.tile--photo svg { width: 42%; height: 54%; }
.spark { position: absolute; width: 9%; pointer-events: none; animation: twinkle 3.6s ease-in-out infinite; }
.spark--1 { left: -11%; top: 3%; fill: var(--gold); }
.spark--2 { left: 61%; top: 70.5%; width: 12%; fill: var(--ink); animation-delay: -1.2s; }
.spark--3 { right: -9%; top: 16%; width: 7%; fill: var(--accent); animation-delay: -2.4s; }
@keyframes twinkle { 50% { transform: scale(.6) rotate(45deg); } }

/* soft skills as LED rows */
.leds { display: grid; gap: .2rem; }
.leds li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: .55rem .3rem; font-family: var(--f-sans); font-size: .98rem; border-radius: 12px; transition: background-color .2s; }
.leds li + li { border-top: 1px solid color-mix(in srgb, var(--lo) 50%, transparent); }
.leds .code { font-weight: 700; font-size: .72rem; color: var(--muted); padding: .2rem .5rem; border-radius: 6px; background: var(--well); box-shadow: inset 1px 1px 3px var(--lo), inset -1px -1px 3px var(--hi); }
.led-row { display: flex; gap: .55rem; }
.led { width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--well); box-shadow: inset 2px 2px 4px var(--lo), inset -2px -2px 4px var(--hi); position: relative; }
.led::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: var(--accent); opacity: 0; scale: .4;
              box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 80%, transparent), inset 1px 1px 2px rgba(255, 255, 255, .55);
              transition: opacity .3s, scale .4s var(--spring); transition-delay: calc(var(--r) * .08s + var(--d) * .09s); }
.is-in .led.on::after { opacity: 1; scale: 1; }

/* languages as sliders */
.panel__title { display: flex; align-items: center; gap: .7rem; font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; margin-bottom: 1.1rem; }
.panel__title svg { width: 1.9rem; height: 1.5rem; color: var(--accent-text); }
.langs { display: grid; gap: 1.1rem; }
.langs li { display: grid; grid-template-columns: 5rem 1fr; align-items: center; gap: 1rem; font-family: var(--f-sans); font-size: .98rem; }
.slider { position: relative; height: .9rem; border-radius: 999px; background: var(--well); box-shadow: inset 3px 3px 6px var(--lo), inset -3px -3px 6px var(--hi); }
.slider i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transition: width 1.6s var(--ease); }
.slider i::after { content: ""; position: absolute; right: -.75rem; top: 50%; width: 1.6rem; height: 1.6rem; margin-top: -.8rem; border-radius: 50%;
                   background: linear-gradient(145deg, var(--hi), var(--bg)); box-shadow: 3px 3px 7px var(--lo), -1px -1px 3px var(--hi), inset 0 0 0 .42rem var(--bg), inset 0 0 0 1rem var(--accent); }
.is-in .slider i { width: calc(var(--v) * 1% - .75rem * var(--v) / 100); }

.h3--k { margin-bottom: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .8rem; }
.chips li { padding: .75rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .95rem; background: var(--bg); box-shadow: 6px 6px 14px var(--lo), -6px -6px 14px var(--hi);
            transition: box-shadow .3s var(--ease), color .3s; cursor: default; }
.chips li:hover { box-shadow: inset 4px 4px 9px var(--lo), inset -4px -4px 9px var(--hi); color: var(--accent-text); }

/* =====================================================================
   EDUCATION
   ===================================================================== */
.edu__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 6vh, 4.5rem); align-items: start; }
.edu__cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 2.5vw, 2rem); }
.plaque { border-radius: 32px; padding: 1.4rem 1.2rem 1.8rem; text-align: center; font-family: var(--f-sans); font-size: .92rem; transition: transform .5s var(--spring); transform-style: preserve-3d; }
.plaque__cap { border-radius: 22px; background: #E2E2E4; margin-bottom: 1.2rem; overflow: hidden; box-shadow: inset 4px 4px 9px rgba(0, 0, 0, .16), inset -4px -4px 9px rgba(255, 255, 255, .9); }
.plaque__cap img { width: 78%; margin: 0 auto; transition: transform .6s var(--spring); }
.plaque:hover .plaque__cap img { transform: translateY(-6%) rotate(-6deg) scale(1.06); }
.plaque__level { font-family: var(--f-meta); font-weight: 700; letter-spacing: .04em; color: var(--accent-text); font-size: 1rem; }
.plaque__deg { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; margin: .5rem 0 .8rem; text-wrap: balance; }
.plaque__dates { display: inline-block; margin-top: .9rem; padding: .3rem .8rem; border-radius: 999px; font-weight: 700; font-size: .78rem; background: var(--well); box-shadow: inset 2px 2px 5px var(--lo), inset -2px -2px 5px var(--hi); }
.thesis { border-radius: 32px; padding: clamp(1.4rem, 2.6vw, 2.2rem); display: grid; grid-template-rows: auto 1fr; gap: 1.2rem; }
.thesis__art { border-radius: 22px; background: var(--well); box-shadow: inset 5px 5px 12px var(--lo), inset -5px -5px 12px var(--hi); height: 11rem; display: grid; place-items: center; color: var(--ink); }
.thesis__art svg { height: 92%; width: auto; }
.thesis h3 { font-style: italic; font-weight: 300; font-size: 1.25rem; margin-bottom: .6rem; }
.thesis p { color: var(--muted); }

/* =====================================================================
   CONTACT + FOOTER (the CV's footer band, grown up)
   ===================================================================== */
.contact { padding-top: clamp(3rem, 8vh, 6rem); }
.contact__panel { position: relative; overflow: hidden; background: var(--accent); color: #fff; border-radius: clamp(3rem, 12vw, 12rem) clamp(3rem, 12vw, 12rem) 0 0;
                  box-shadow: inset 0 22px 50px rgba(255, 255, 255, .16), inset 0 -40px 80px rgba(60, 20, 14, .3); }
.contact__gear { position: absolute; width: min(60rem, 110vw); height: min(60rem, 110vw); left: 50%; top: 50%; margin: max(-30rem, -55vw) 0 0 max(-30rem, -55vw); opacity: .1; transform: rotate(calc(var(--q, 0) * 90deg)); }
.contact__inner { position: relative; text-align: center; padding-block: clamp(6rem, 18vh, 11rem) clamp(4rem, 10vh, 7rem); }
.contact__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(3rem, 9.5vw, 9.5rem); line-height: .95; letter-spacing: -0.03em; text-wrap: balance; }
.contact__lead { max-width: 34rem; margin: 1.6rem auto 2.4rem; font-size: 1.15rem; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.contact__where { margin-top: 2rem; font-family: var(--f-sans); font-size: .9rem; opacity: .85; }
.foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.6rem 2rem; font-family: var(--f-sans); font-size: .85rem;
        border-top: 1px solid rgba(255, 255, 255, .25); }
.foot__logo { width: 3.4rem; height: 3.5rem; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- awards ---------- */
.awards__head { display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.awards__kicker { font-family: var(--f-meta); font-weight: 700; letter-spacing: .04em; color: var(--accent-text); font-size: 1.05rem; margin-bottom: .5rem; }
.h2--awards .deco { right: -.78em; top: -.12em; width: .66em; height: .66em; color: var(--gold); transform: rotate(8deg); }
.awards__intro { max-width: 40rem; margin-top: 1.4rem; color: var(--muted); font-size: 1.08rem; }
.awards__more { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem; font-family: var(--f-sans); font-weight: 700; font-size: .9rem;
                padding: .7rem 1.2rem; border-radius: 999px; background: var(--bg); box-shadow: 5px 5px 12px var(--lo), -5px -5px 12px var(--hi); transition: transform .4s var(--spring), color .3s; }
.awards__more svg { width: 1.1rem; height: 1.1rem; transition: transform .4s var(--spring); }
.awards__more:hover { color: var(--accent-text); transform: translateY(-2px); }
.awards__more:hover svg { transform: translateX(3px); }

/* the medal: a raised gold disc with the count pressed into it */
.medal { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.medal__disc { width: clamp(9.5rem, 14vw, 12.5rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative;
               background: radial-gradient(circle at 32% 28%, var(--gold-soft), var(--gold) 48%, #A88134 100%);
               box-shadow: 12px 14px 28px var(--lo), -10px -10px 24px var(--hi), inset -6px -8px 16px rgba(0, 0, 0, .18), inset 6px 6px 14px rgba(255, 255, 255, .45); }
.medal__disc::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 2px dashed rgba(90, 62, 20, .35); }
.medal__disc::after { content: ""; position: absolute; inset: 20%; border-radius: 50%;
                      box-shadow: inset 5px 6px 12px rgba(90, 62, 20, .45), inset -5px -5px 12px rgba(255, 244, 214, .55); }
.medal__n { font-family: var(--f-display); font-weight: 700; font-size: clamp(4rem, 6.4vw, 5.6rem); line-height: 1; color: #6E4E1C; position: relative; z-index: 1;
            text-shadow: 1px 1px 0 rgba(255, 240, 205, .7), -1px -1px 1px rgba(60, 40, 10, .35); }
.medal__label { font-family: var(--f-meta); font-weight: 700; letter-spacing: .04em; font-size: 1rem; line-height: 1.3; }
.js .medal.reveal { transform: translateY(1.8rem) rotate(-14deg) scale(.9); }
.js .medal.reveal.is-in { transform: none; transition: opacity .8s var(--ease), transform 1.1s var(--spring); }

/* timeline rail with a node over each award */
.awards__rail { position: relative; height: 6px; margin: clamp(3rem, 7vh, 4.5rem) 0 0; border-radius: 999px; background: var(--well);
                box-shadow: inset 2px 2px 4px var(--lo), inset -2px -2px 4px var(--hi); overflow: hidden; }
.awards__rail i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--gold));
                  transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.awards__rail.is-in i { transform: scaleX(1); }
.awards__list { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); margin-top: -3px; }
.award { position: relative; display: grid; grid-template-rows: auto auto 1fr; justify-items: center; }
.js .award.reveal { transition-delay: calc(var(--i) * .14s); }
.award__node { width: 1.1rem; height: 1.1rem; border-radius: 50%; margin-top: -.55rem; background: var(--bg);
               box-shadow: 3px 3px 7px var(--lo), -3px -3px 7px var(--hi), inset 0 0 0 4px var(--bg), inset 0 0 0 20px var(--gold); }
.award__date { margin: .7rem 0 1rem; font-family: var(--f-sans); font-weight: 700; font-size: .78rem; padding: .3rem .8rem; border-radius: 999px;
               background: var(--well); box-shadow: inset 2px 2px 5px var(--lo), inset -2px -2px 5px var(--hi); }
.award__card { width: 100%; border-radius: 30px; padding: .9rem .9rem 1.4rem; background: var(--bg); box-shadow: 9px 9px 20px var(--lo), -9px -9px 20px var(--hi);
               display: grid; grid-template-rows: auto 1fr; transition: transform .5s var(--spring), box-shadow .5s var(--ease); }
.award__card:hover { transform: translateY(-6px); box-shadow: 14px 16px 28px var(--lo), -10px -10px 22px var(--hi); }

.award__photo { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--well);
                box-shadow: inset 5px 5px 12px var(--lo), inset -5px -5px 12px var(--hi); }
.award__photo img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: cover; border-radius: 17px; transition: transform .8s var(--ease); }
.award__card:hover .award__photo img { transform: scale(1.05); }
.award__ph { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: .5rem; color: var(--gold);
             font-family: var(--f-meta); font-weight: 700; font-size: .78rem; letter-spacing: .04em; }
.award__ph svg { width: 42%; height: auto; transition: transform .6s var(--spring); }
.award__ph span { color: var(--muted); }
.award__card:hover .award__ph svg { transform: translateY(-5%) rotate(-6deg) scale(1.06); }
.no-photo .award__photo img { display: none; }
.no-photo .award__ph { display: grid; }
.award__seal { position: absolute; right: .7rem; top: .7rem; width: 3.1rem; height: 3.1rem; border-radius: 50%; display: grid; place-items: center;
               font-family: var(--f-display); font-weight: 700; font-size: .82rem; color: #6E4E1C;
               background: radial-gradient(circle at 32% 28%, var(--gold-soft), var(--gold) 55%, #A88134 105%);
               box-shadow: 3px 4px 9px rgba(0, 0, 0, .28), inset -2px -3px 6px rgba(0, 0, 0, .18), inset 2px 2px 5px rgba(255, 255, 255, .5); }

.award__body { display: flex; flex-direction: column; padding: 1.1rem .5rem 0; text-align: center; align-items: center; }
.award__org { font-family: var(--f-meta); font-weight: 700; letter-spacing: .04em; color: var(--accent-text); font-size: .98rem; }
.award__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 1.5vw, 1.32rem); line-height: 1.15; margin: .4rem 0 .6rem; text-wrap: balance; word-spacing: .1em; }
.award__note { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.award__link { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: 1rem; font-family: var(--f-sans); font-weight: 700; font-size: .8rem; transition: color .3s; }
.award__link svg { width: 1rem; height: 1rem; transition: transform .4s var(--spring); }
.award__link:hover { color: var(--accent-text); }
.award__link:hover svg { transform: translate(2px, -2px); }
.award__also { display: block; font-size: .78em; font-weight: 700; color: var(--muted); margin-top: .25rem; }
.award--double .award__photo img { animation: awardSwap 9s var(--ease) infinite; animation-delay: calc(var(--k) * -4.5s); }
@keyframes awardSwap { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
.award--double .award__card:hover .award__photo img { animation-play-state: paused; }
.award__double { position: absolute; left: .8rem; top: .8rem; padding: .28rem .7rem; border-radius: 999px; font-family: var(--f-sans); font-weight: 700; font-size: .72rem;
                 color: #fff; background: var(--accent); box-shadow: 2px 3px 8px rgba(0, 0, 0, .3); }
@media (prefers-reduced-motion: reduce) { .award--double .award__photo img + img { display: none; } }
.no-photo .award__photo { cursor: default; }
.award__zoom { position: absolute; left: .8rem; bottom: .8rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; color: #fff;
               background: rgba(20, 16, 17, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--spring); }
.award__zoom svg { width: 1.1rem; height: 1.1rem; }
.award__card:hover .award__zoom, .award__photo:focus-visible .award__zoom { opacity: 1; transform: none; }
.no-photo .award__zoom { display: none; }
@media (hover: none) { .award__zoom { opacity: 1; transform: none; } }

.viewer { width: min(1180px, 94vw); max-height: 94vh; padding: 0; border: 0; border-radius: 30px; background: var(--bg); color: var(--ink); overflow: visible;
          box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.viewer::backdrop { background: rgba(18, 14, 15, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.viewer[open] { animation: viewerIn .45s var(--spring); }
@keyframes viewerIn { from { opacity: 0; transform: scale(.94) translateY(14px); } }
.viewer__frame { margin: 0; padding: clamp(.7rem, 1.4vw, 1.1rem); display: grid; gap: .9rem; }
.viewer__frame img { width: 100%; max-height: calc(94vh - 7.5rem); object-fit: contain; border-radius: 20px; background: var(--well);
                     box-shadow: inset 5px 5px 12px var(--lo), inset -5px -5px 12px var(--hi); }
.viewer__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; padding: 0 .5rem .3rem; }
.viewer__org { font-family: var(--f-meta); font-weight: 700; letter-spacing: .04em; color: var(--accent-text); }
.viewer__title { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; }
.viewer__meta { font-family: var(--f-sans); font-weight: 700; font-size: .78rem; padding: .25rem .7rem; border-radius: 999px; background: var(--well);
                box-shadow: inset 2px 2px 5px var(--lo), inset -2px -2px 5px var(--hi); }
.viewer__btn { position: absolute; width: 3rem; height: 3rem; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink);
               box-shadow: 5px 5px 12px rgba(0, 0, 0, .3), -3px -3px 9px var(--hi); transition: transform .4s var(--spring), color .3s; }
.viewer__btn svg { width: 1.3rem; height: 1.3rem; }
.viewer__btn:hover { color: var(--accent-text); transform: scale(1.08); }
.viewer__close { top: -1.1rem; right: -1.1rem; }
.viewer__prev { left: -1.5rem; top: 42%; } .viewer__next { right: -1.5rem; top: 42%; }
.viewer__count { margin-left: auto; font-family: var(--f-sans); font-weight: 700; font-size: .8rem; color: var(--muted); }
.viewer [hidden] { display: none; }
@media (max-width: 640px) {
  .viewer__close { top: .6rem; right: .6rem; width: 2.5rem; height: 2.5rem; }
  .viewer__prev { left: .6rem; } .viewer__next { right: .6rem; }
  .viewer__prev, .viewer__next { width: 2.5rem; height: 2.5rem; top: 35%; }
  .viewer__title { font-size: 1.1rem; }
}
@media (max-width: 1080px) {
  .awards__list { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .awards__rail { display: none; }
  .award__node { margin-top: 0; }
}
@media (max-width: 640px) {
  .awards__head { grid-template-columns: 1fr; }
  .medal { justify-self: start; grid-template-columns: auto 1fr; text-align: left; align-items: center; }
  .medal__disc { width: 7.5rem; } .medal__n { font-size: 3.6rem; }
  .awards__list { grid-template-columns: 1fr; }
}

/* while a menu jump is travelling, nothing eases: states switch in one step */
.is-jumping *, .is-jumping *::before, .is-jumping *::after { transition: none !important; }

/* ---------- scroll reveal (headings and panels only) ---------- */
.js .reveal { opacity: 0; transform: translateY(1.8rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =====================================================================
   SMALLER SCREENS
   ===================================================================== */
@media (max-width: 1180px) {
  .float--status { left: -50%; }
  .float--chip2 { right: -38%; }
  .hero__side { width: min(18rem, 25vw); }
  .float--card { right: 12%; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero { min-height: 0; display: grid; padding: 6.2rem var(--pad) 2rem; }
  .hero__hey { top: 6.3rem; font-size: 18vw; gap: 13vw; }
  .hero__stage { position: relative; left: auto; bottom: auto; margin: 2.2rem auto 0; width: min(100%, 30rem); }
  .float--status { left: -2%; top: 97%; font-size: .8rem; z-index: 2; }
  .float--stat { left: -4%; top: 34%; padding: .7rem .9rem .7rem .7rem; }
  .float--chip1 { right: -3%; top: 26%; }
  .float--chip2, .float--chip3, .float--card { display: none; }
  .hero__sun { left: -6%; top: 58%; width: 26%; }
  .hero__name, .hero__build, .hero__side, .hero__foot { position: relative; left: auto; right: auto; bottom: auto; }
  .hero__name { margin-top: 2.6rem; font-size: clamp(3.4rem, 17vw, 7rem); }
  .hero__build { margin-top: .9rem; white-space: normal; flex-wrap: wrap; }
  .hero__side { width: auto; margin-top: 1.6rem; display: grid; gap: .4rem; }
  .hero__intro { max-width: 30rem; }
  .hero__foot { margin-top: 1.6rem; }
  .hero__fade { height: 45%; }

  .arch { height: 240vh; }
  .arch__panel { width: calc(82% + 18% * var(--p)); border-radius: calc((1 - var(--p)) * 44vw) calc((1 - var(--p)) * 44vw) 0 0; }
  .arch__orbit--b { top: 12%; }

  .dials { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.2rem; }

  /* work: swipe sideways instead of pinning */
  .work { height: auto; padding-block: clamp(4rem, 10vh, 6rem) 1rem; }
  .work__sticky { position: static; height: auto; padding-top: 0; overflow: visible; }
  .work__meter { display: none; }
  .work__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; scrollbar-width: none; }
  .work__track::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: center; width: 84vw; height: auto; grid-template-columns: 1fr; }
  .card__art { height: 12rem; }
  .card__body { padding: 0 .6rem 1rem; }

  .job { grid-template-columns: 1fr; }
  .job__head { position: static; display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-items: center; }
  .job__logo { grid-row: span 5; margin: 0; align-self: start; }
  .job__head > * { grid-column: 2; } .job__head > .job__logo { grid-column: 1; }
  .job__dates { justify-self: start; }
  .other { grid-template-columns: 1fr; }

  .skills__grid { grid-template-columns: 1fr; }
  .mosaic { position: relative; top: auto; width: min(82%, 24rem); order: 2; margin-top: 1rem; }
  .edu__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav__name { display: none; }
  .nav__brand { padding: .35rem; }
  .nav__logo { width: 3.3rem; height: 3.3rem; } .nav__logo svg { width: 2.6rem; height: 2.6rem; }
  .nav__cta { padding: .75rem 1rem; }
  .edu__cards { grid-template-columns: 1fr; }
  .leds li { font-size: .9rem; gap: .6rem; }
  .led { width: .9rem; height: .9rem; } .led-row { gap: .4rem; }
  .contact__actions { flex-direction: column; align-items: center; }
  .foot { flex-wrap: wrap; justify-content: center; text-align: center; }
  .float--stat { top: 30%; }
  .float__big { font-size: 1.2rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero__hey span, .js .hero__photo, .js .hero__name span, .js .hero__side, .js .hero__build, .js .hero__foot, .js .float, .js .hero__sun { opacity: 1; transform: none; }
  .arch { height: auto; --p: 1 !important; }
  .arch__sticky { position: static; height: auto; min-height: 100vh; }
  .arch__panel { height: auto; min-height: 100vh; }
  .arch__text .w { opacity: 1; }
  .arch__orbit { display: none; }
  .work { height: auto; padding-block: 4rem 1rem; }
  .work__sticky { position: static; height: auto; overflow: visible; padding-top: 0; }
  .work__track { width: auto; overflow-x: auto; transform: none !important; }
}
