/* michaelblonsky.com
   Radius rule: surfaces 28px, media 28px, controls full pill, chips pill. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2-variations"),
       url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0c;
  --bg-elev: #141417;
  --bg-elev-2: #1c1c21;
  --line: rgb(255 255 255 / 0.09);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-dim: #4a4a50;
  --accent: #2997ff;
  --accent-fill: #0071e3;
  --accent-fill-hover: #0062c4;
  --accent-ink: #ffffff;
  --accent-soft: rgb(41 151 255 / 0.14);
  --link-hover: #fde68a;
  --nav-bg: rgb(10 10 12 / 0.72);
  --shadow: 0 30px 80px -30px rgb(0 0 0 / 0.7);

  --r-surface: 28px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1240px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #fbfbfd;
  --bg-elev: #f2f2f5;
  --bg-elev-2: #ffffff;
  --line: rgb(0 0 0 / 0.08);
  --text: #1d1d1f;
  --text-2: #5f5f64;
  --text-dim: #c7c7cc;
  --accent: #0066cc;
  --accent-fill: #0066cc;
  --accent-fill-hover: #0055ab;
  --accent-ink: #ffffff;
  --accent-soft: rgb(0 102 204 / 0.1);
  --link-hover: #0066cc;
  --nav-bg: rgb(251 251 253 / 0.76);
  --shadow: 0 30px 80px -34px rgb(29 29 31 / 0.28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  scrollbar-color: var(--text-dim) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
  caret-color: var(--accent);
  transition: background-color 400ms ease, color 400ms ease;
}

::selection { background: var(--accent-fill); color: var(--accent-ink); }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 12px; border: 3px solid var(--bg); }

img { display: block; max-width: 100%; }
svg { display: block; }

a { color: inherit; text-decoration: none; }
a:not([class]) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: fixed; top: -80px; left: 10px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--accent-fill); color: var(--accent-ink);
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus-visible { top: 10px; transform: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: var(--r-pill);
  font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer; border: 0;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--accent-fill); color: var(--accent-ink); }
.btn--quiet {
  background: transparent; color: var(--accent); padding-inline: 4px;
}
.btn--quiet .arrow { transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-fill-hover); }
  .btn--quiet:hover .arrow { transform: translate(2px, -2px); }
}

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  height: 56px;
  transition: background-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 var(--line);
}
.nav__inner {
  height: 100%;
  display: flex; align-items: center; gap: 28px;
}
.nav__name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; margin-right: auto; }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: 14px; color: var(--text-2); text-decoration: none;
  transition: color 200ms ease;
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--text); }
.nav .btn { height: 34px; padding: 0 16px; font-size: 14px; }

.theme-toggle {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--line); cursor: pointer;
  transition: color 200ms ease, transform 160ms var(--ease-out);
}
.theme-toggle:hover { color: var(--text); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }

#nav-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100dvh - 56px);
  display: grid; align-items: center;
  padding-block: clamp(24px, 4vw, 56px) clamp(48px, 6vw, 88px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.hero__title {
  font-size: clamp(3.5rem, 8.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 650;
}
.hero__title .word { display: inline-block; }
.hero__sub {
  margin-top: 28px;
  max-width: 30ch;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-2);
  font-weight: 450;
}
.hero__sub strong { color: var(--text); font-weight: 550; }
.hero__actions { margin-top: 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-surface);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 30%;
}
/* Dark: the studio-black backdrop dissolves into the page, no frame. */
:root:not([data-theme="light"]) .portrait {
  background: transparent; box-shadow: none; border-radius: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 64%, transparent 98%), linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 64%, transparent 98%), linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  mask-composite: intersect;
}
.hero.no-photo .hero__grid { grid-template-columns: 1fr; }
.hero.no-photo .portrait { display: none; }
.hero.no-photo .hero__title { font-size: clamp(3.5rem, 11vw, 9rem); }

/* entrance: plays once per load */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .word,
  .js .hero__sub,
  .js .hero__actions {
    opacity: 0; transform: translateY(24px); filter: blur(10px);
    animation: rise 1000ms var(--ease-expo) forwards;
  }
  .js .hero__title .word:nth-child(2) { animation-delay: 80ms; }
  .js .hero__sub { animation-delay: 220ms; }
  .js .hero__actions { animation-delay: 340ms; }
  .js .portrait {
    clip-path: inset(12% 10% 12% 10% round 40px);
    animation: unveil 1400ms var(--ease-in-out) 120ms forwards;
  }
  .js .portrait img {
    transform: scale(1.14);
    animation: settle 1800ms var(--ease-expo) 120ms forwards;
  }
}
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes unveil { to { clip-path: inset(0 0 0 0 round var(--r-surface)); } }
@keyframes settle { to { transform: scale(1); } }

/* ---------- Statement (scroll-lit) ---------- */

.statement { padding-block: clamp(96px, 14vw, 200px); }
.statement__text {
  max-width: 22ch;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.statement__text .w { color: var(--text); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement__text { view-timeline-name: --lit; }
    .statement__text .w {
      color: var(--text-dim);
      animation: lit linear both;
      animation-timeline: --lit;
      animation-range:
        cover calc(18% + var(--p) * 42%)
        cover calc(21% + var(--p) * 42%);
    }
  }
}
@keyframes lit { to { color: var(--text); } }

/* ---------- Section heading ---------- */

.section { padding-block: clamp(72px, 10vw, 140px); }
.section__title {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 16ch;
}
.section__lede {
  margin-top: 20px;
  max-width: 52ch;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.45;
  color: var(--text-2);
}

/* ---------- Bento ---------- */

.bento {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}
.cell {
  position: relative;
  border-radius: var(--r-surface);
  background: var(--bg-elev);
  padding: clamp(24px, 2.6vw, 36px);
  overflow: hidden;
  display: flex; flex-direction: column;
  isolation: isolate;
}
.cell h3 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.cell p { margin-top: 12px; color: var(--text-2); font-size: 16px; line-height: 1.5; max-width: 46ch; }
.cell__foot { margin-top: auto; padding-top: 28px; }

.cell--tm { grid-column: span 2; grid-row: span 2; }
.cell--leads { grid-column: span 2; }
.cell--mls { grid-column: span 1; background: var(--accent-fill); color: var(--accent-ink); }
.cell--mls p { color: #ffffff; }
.cell--mls .chip { background: rgb(255 255 255 / 0.16); box-shadow: none; color: #ffffff; }
.cell--mls .chip--accent { background: #ffffff; color: var(--accent-fill); font-weight: 500; }
.cell--mls .flow__arrow { color: #ffffff; }
.cell--trust { grid-column: span 1; }
.cell--web { grid-column: span 2; background: var(--bg-elev-2); }
.cell--team { grid-column: span 2; }

.cell--tm::after {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 100%, var(--accent-soft), transparent 70%);
}

.big {
  font-size: clamp(3rem, 5.2vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* TransactionMinder deal track */
.track { position: relative; }
.track ol { list-style: none; margin: 0; padding: 0; display: grid; }
.track::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px;
  background: var(--line);
}
.track__fill {
  position: absolute; left: 7px; top: 10px; width: 2px; height: calc(100% - 20px);
  background: var(--accent);
  transform-origin: top; transform: scaleY(0);
}
.track li {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 14px 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2);
  transition: color 400ms ease;
}
.track li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--bg-elev); box-shadow: inset 0 0 0 2px var(--text-dim);
  transition: box-shadow 400ms ease, background-color 400ms ease;
  position: relative; z-index: 1;
}
.track li.is-done { color: var(--text); }
.track li.is-done::before { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.track li span { margin-left: auto; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 400ms ease; }
.track li.is-done span { opacity: 1; }

/* Lead sources */
.sources { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--bg-elev-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; color: var(--text);
}
.chip--accent { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.sources__arrow { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--text-2); font-size: 14px; }
.sources__arrow svg { width: 16px; height: 16px; transform: rotate(90deg); }

/* Team greeting */
.hello {
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 1.15; letter-spacing: -0.04em; font-weight: 650;
  height: 1.2em; position: relative; overflow: hidden;
}
.hello span {
  position: absolute; left: 0; top: 0;
  opacity: 0; transform: translateY(40%); filter: blur(6px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), filter 600ms var(--ease-out);
}
.hello span.is-on { opacity: 1; transform: none; filter: blur(0); }
.hello span.is-off { opacity: 0; transform: translateY(-40%); filter: blur(6px); }

.domains { display: flex; flex-wrap: wrap; gap: 8px; }
.flow { display: grid; gap: 10px; justify-items: start; }
.flow__arrow { color: var(--text-2); padding-left: 14px; }
.flow__arrow svg { width: 16px; height: 16px; }

/* reveal on scroll (bento only) */
@media (prefers-reduced-motion: no-preference) {
  .js .bento .cell {
    opacity: 0; transform: translateY(40px) scale(0.98);
    transition: opacity 900ms var(--ease-expo), transform 900ms var(--ease-expo);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .bento.is-in .cell { opacity: 1; transform: none; }
}

/* ---------- Career rail ---------- */

.career__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.rail-ctrl { display: flex; gap: 12px; flex: none; }
.rail-ctrl button {
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 0; cursor: pointer;
  background: var(--bg-elev-2); color: var(--text);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: opacity 200ms ease, transform 160ms var(--ease-out), background-color 200ms ease;
}
.rail-ctrl button:active { transform: scale(0.94); }
.rail-ctrl button:disabled { opacity: 0.35; cursor: default; }
.rail-ctrl svg { width: 18px; height: 18px; }

.rail {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 30vw, 380px);
  gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  --rail-pad: max(var(--gutter), calc((100% - var(--max)) / 2));
  scroll-padding-inline: var(--rail-pad);
  padding-inline: var(--rail-pad);
  padding-bottom: 8px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.role {
  scroll-snap-align: start;
  border-radius: var(--r-surface);
  background: var(--bg-elev);
  padding: 32px 28px;
  min-height: 360px;
  display: flex; flex-direction: column;
}
.role__years {
  font-size: 15px; color: var(--text-2);
  font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.role__co { margin-top: auto; font-size: 28px; line-height: 1.08; letter-spacing: -0.035em; }
.role__link {
  color: inherit; text-decoration: none;
  transition: color 200ms ease;
}
.role__link svg {
  display: inline-block; width: 0.62em; height: 0.62em;
  margin-left: 0.28em; vertical-align: 0.06em;
  color: var(--text-2);
  transition: color 200ms ease, transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .role__link:hover, .role__link:hover svg { color: var(--link-hover); }
  .role__link:hover svg { transform: translate(1px, -1px); }
}
.role__link:focus-visible, .role__link:focus-visible svg { color: var(--link-hover); }
.role__title { margin-top: 8px; font-size: 16px; font-weight: 500; color: var(--accent); }
.role p { margin-top: 14px; font-size: 15px; color: var(--text-2); line-height: 1.5; }
.role--now { background: var(--bg-elev-2); box-shadow: inset 0 0 0 1px var(--line); }
.role--now .role__years { color: var(--accent); font-weight: 500; }
.role ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--text-2); }
.role ul b { color: var(--text); font-weight: 500; }

/* ---------- Strengths explorer ---------- */

.explorer {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.tabs { display: grid; gap: 4px; }
.tab {
  text-align: left; font: inherit; cursor: pointer;
  border: 0; background: transparent; color: var(--text-2);
  padding: 14px 20px; border-radius: var(--r-pill);
  font-size: 19px; font-weight: 500; letter-spacing: -0.02em;
  transition: color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.tab:hover { color: var(--text); }
.tab:active { transform: scale(0.98); }
.tab[aria-selected="true"] { color: var(--text); background: var(--bg-elev-2); box-shadow: inset 0 0 0 1px var(--line); }

.panels {
  position: relative;
  border-radius: var(--r-surface);
  background: var(--bg-elev);
  min-height: 340px;
  overflow: hidden;
}
.panel {
  position: absolute; inset: 0;
  padding: clamp(28px, 3.4vw, 48px);
  display: flex; flex-direction: column;
  opacity: 0; filter: blur(8px); transform: translateY(12px);
  transition: opacity 320ms var(--ease-out), filter 320ms var(--ease-out), transform 320ms var(--ease-out);
  pointer-events: none;
}
.panel.is-active { opacity: 1; filter: blur(0); transform: none; pointer-events: auto; position: relative; }
.panel h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.05; }
.panel__skills { margin-top: 18px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--text-2); max-width: 44ch; }
.panel__proof {
  margin-top: auto; padding-top: 40px;
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 16px; line-height: 1.5; max-width: 52ch;
}
.panel__proof svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }

/* ---------- Stack marquee ---------- */

.stack { padding-block: clamp(24px, 4vw, 48px) 0; }
.section--edu { padding-block: clamp(56px, 7vw, 96px) 0; }
.stack__label { text-align: center; color: var(--text-2); font-size: 15px; margin-bottom: 28px; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; gap: 12px; }
.marquee__group { display: flex; gap: 12px; padding-right: 0; }
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 26px; border-radius: var(--r-pill);
  background: var(--bg-elev);
  font-size: 18px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap;
}
.logo svg { width: 24px; height: 24px; fill: currentColor; color: var(--text-2); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* ---------- Education ---------- */

.edu {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  padding-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}
.edu h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.04em; line-height: 1.05; }
.edu__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.edu__item h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.edu__item p { margin-top: 6px; color: var(--text-2); font-size: 16px; }
.states { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.states .chip { font-variant-numeric: tabular-nums; }

/* ---------- Contact ---------- */

.contact {
  padding-block: clamp(120px, 16vw, 220px) clamp(80px, 10vw, 140px);
  text-align: center;
}
.contact__title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.98; letter-spacing: -0.045em;
  max-width: 14ch; margin-inline: auto;
}
.contact__email {
  display: inline-block; margin-top: 36px;
  font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -0.03em; font-weight: 500;
  color: var(--accent);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 400ms var(--ease-out);
  padding-bottom: 4px;
}
.contact__email:hover { background-size: 100% 2px; }
.contact__actions { margin-top: 40px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn--ghost { background: var(--bg-elev-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { background: var(--bg-elev); }
}

.footer {
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-2);
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell--tm { grid-column: span 2; grid-row: auto; }
  .cell--leads, .cell--web, .cell--team { grid-column: span 2; }
  .explorer { grid-template-columns: 1fr; }
  .tabs {
    display: flex; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; font-size: 16px; padding: 10px 18px; }
  .edu { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__inner { gap: 12px; }
  .hero { min-height: auto; padding-top: 24px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait { order: -1; aspect-ratio: 1 / 1; max-height: 52svh; width: 100%; }
  .portrait img { object-position: 50% 0; }
  .hero__title { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero__sub { margin-top: 20px; }
  .hero__actions { margin-top: 28px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cell { min-height: 0; }
  .cell--tm, .cell--leads, .cell--mls, .cell--trust, .cell--web, .cell--team { grid-column: auto; }
  .career__head { flex-direction: column; align-items: flex-start; }
  .rail-ctrl { display: none; }
  .rail { grid-auto-columns: 82vw; }
  .role { min-height: 320px; }
  .panels { min-height: 0; }
  .edu__list { grid-template-columns: 1fr; gap: 28px; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel, .hello span { transition: opacity 200ms ease; transform: none !important; filter: none !important; }
}
