:root {
  --ink: #010101;
  --paper: #F5F2EC;
  --paper-2: #ECE7DA;
  --paper-3: #E0DACA;
  --accent: #006F62;
  --accent-ink: #00554A;
  --accent-tint: #006F6214;
  --rule: #01010118;
  --muted: #01010199;
  --muted-2: #01010166;
  --shadow: 0 1px 0 rgba(1,1,1,0.04), 0 24px 48px -24px rgba(1,1,1,0.18);
  --display: "Syne", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* ---- Scroll progress ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 60ms linear;
}

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 240ms ease, backdrop-filter 240ms ease, background 240ms ease, border-color 240ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 12px 32px;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.nav__brand .dot {
  width: 8px; height: 8px; border-radius: 99px; background: var(--accent);
  display: inline-block;
}
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 2px;
  transition: color 200ms ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent);
  transition: right 240ms ease;
}
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }
.nav__links a:hover { color: var(--accent); }
.nav__cta {
  font-size: 13px; font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform 200ms ease, background 200ms ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav__cta:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

/* ---- Container ---- */
.container { max-width: 1500px; margin: 0 auto; }
section { padding: 120px 32px; position: relative; }
.section__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 24px;
}
.section__eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--ink);
  display: inline-block;
}
.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.section__lede {
  font-size: 18px; color: var(--muted);
  max-width: 56ch; line-height: 1.55; margin: 0;
}

/* ---- About ---- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about__copy p {
  font-size: 19px; line-height: 1.6; color: var(--ink); margin: 0 0 18px;
  font-weight: 400;
}
.about__copy p:first-child {
  font-size: 22px; line-height: 1.5; font-weight: 400;
}
.about__copy strong {
  font-weight: 600;
  background: linear-gradient(120deg, var(--accent-tint) 0%, var(--accent-tint) 100%);
  background-size: 100% 38%;
  background-repeat: no-repeat;
  background-position: 0 88%;
  padding: 0 2px;
}
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.stat__num {
  font-family: var(--display);
  font-size: 44px; font-weight: 600; letter-spacing: -0.025em;
  line-height: 1; margin-bottom: 6px;
}
.stat__num em { color: var(--accent); font-style: italic; font-weight: 500; }
.stat__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.about__visual {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 1 / 1.05;
}
.about__visual > div, .about__visual > img { border-radius: 20px; overflow: hidden; }
.about__visual > *:nth-child(1) { grid-row: span 2; }
.about__visual-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms ease;
  filter: saturate(0.92);
  cursor: zoom-in;
}
.about__visual-img:hover {
  transform: scale(1.06);
  filter: saturate(1.08) brightness(1.03);
}
.about__visual-img:nth-child(1) { transition-delay: 0ms; }
.about__visual-img:nth-child(2) { transition-delay: 30ms; }
.about__visual-img:nth-child(3) { transition-delay: 60ms; }

/* ---- Experience ---- */
.exp__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: end; margin-bottom: 56px;
}
.exp__list {
  border-top: 1px solid var(--ink);
}
.exp__row {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.4fr 0.6fr 50px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding 280ms ease, background 280ms ease;
  position: relative;
}
.exp__row:hover {
  padding-left: 14px;
  padding-right: 14px;
  background: var(--paper-2);
}
.exp__year {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em;
}
.exp__role {
  font-family: var(--display);
  font-size: 26px; font-weight: 600; letter-spacing: -0.015em;
  line-height: 1.1;
}
.exp__company {
  display: flex; align-items: center; gap: 14px;
}
.exp__logo {
  width: 38px; height: 38px;
  background: var(--paper); color: var(--paper);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}
.exp__logo img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.exp__logo--alt { background: var(--paper); }
.exp__company-meta { display: flex; flex-direction: column; }
.exp__company-name { font-size: 15px; font-weight: 500; line-height: 1.2; }
.exp__company-loc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.exp__type {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  padding: 5px 9px; border: 1px solid var(--rule);
  border-radius: 99px; justify-self: start;
}
.exp__arrow {
  width: 36px; height: 36px;
  border-radius: 99px;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
  color: var(--ink);
  justify-self: end;
}
.exp__row:hover .exp__arrow {
  background: var(--accent); border-color: var(--accent); color: var(--paper);
  transform: rotate(-45deg);
}
.exp__detail {
  grid-column: 1 / -1;
  overflow: hidden;
  max-height: 0;
  transition: max-height 360ms ease, padding 360ms ease;
  padding: 0;
}
.exp__row.is-open {
  background: var(--paper-2); padding-left: 14px; padding-right: 14px;
}
.exp__row.is-open .exp__detail {
  max-height: 280px;
  padding: 12px 0 8px;
}
.exp__detail-grid {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  align-items: start;
}
.exp__detail-list {
  list-style: none; margin: 0; padding: 0;
  color: var(--muted);
  font-size: 14.5px; line-height: 1.6;
  display: flex; flex-direction: column; gap: 6px;
  max-width: 640px;
}
.exp__detail-list li {
  padding-left: 18px; position: relative;
  text-align: justify;
}
.exp__detail-list li::before {
  content: "→"; position: absolute; left: 0;
  color: var(--accent); font-weight: 600;
}

/* ---- Projects ---- */
.proj__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: end; margin-bottom: 56px;
}
.proj__filter {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 18px;
}
.filter-chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px; border-radius: 99px;
  border: 1px solid var(--rule);
  cursor: pointer; background: transparent;
  color: var(--muted); transition: all 220ms ease;
}
.filter-chip.is-active, .filter-chip:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.proj__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.proj-card {
  cursor: pointer;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform 380ms cubic-bezier(.2,.7,.3,1);
}
.proj-card:hover { transform: translateY(-6px); }
.proj-card__cover {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden; position: relative;
  background: var(--paper-3);
  margin-bottom: 18px;
}
.proj-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease;
}
.proj-card:hover .proj-card__img { transform: scale(1.04); }
.proj-card__overlay {
  position: absolute; inset: 0;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 320ms ease;
  z-index: 4;
}
.proj-card:hover .proj-card__overlay { opacity: 0.86; }
.proj-card__view {
  color: var(--paper);
  font-family: var(--display);
  font-size: 28px; font-weight: 500;
  letter-spacing: -0.01em;
  transform: translateY(8px);
  transition: transform 320ms ease;
  display: inline-flex; align-items: center; gap: 14px;
}
.proj-card:hover .proj-card__view { transform: translateY(0); }
.proj-card__view em { color: var(--accent); font-style: italic; }
.proj-card__num {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--mono); font-size: 11px;
  color: var(--paper); z-index: 3;
  letter-spacing: 0.1em;
  background: rgba(1,1,1,0.4);
  padding: 4px 10px; border-radius: 99px;
  backdrop-filter: blur(6px);
}
.proj-card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
}
.proj-card__title {
  font-family: var(--display);
  font-size: 30px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.05; margin: 0;
}
.proj-card__year {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.06em;
}
.proj-card__desc {
  font-size: 15px; line-height: 1.55; color: var(--muted);
  margin: 8px 0 14px;
  max-width: 50ch;
}
.proj-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 99px;
  border: 1px solid var(--rule); color: var(--muted);
  transition: all 200ms ease;
}
.proj-card:hover .tag { color: var(--ink); border-color: var(--ink); }

/* ---- Skills + Education split ---- */
.split {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px;
  align-items: start;
}
.skills__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  border-top: 1px solid var(--rule);
}
.skill {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--rule);
  cursor: default;
  transition: padding 240ms ease;
}
.skill:hover { padding-left: 12px; }
.skill__icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 240ms ease, transform 240ms ease, border-color 240ms ease;
}
.skill__icon img {
  width: 22px; height: 22px;
  object-fit: contain;
  display: block;
}
.skill:hover .skill__icon {
  transform: rotate(-6deg);
  border-color: var(--accent);
}
.skill__name {
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  flex: 1;
}
.skill__lvl {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

.edu-card {
  background: var(--ink); color: var(--paper);
  border-radius: 8px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.edu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -20px rgba(0, 111, 98, 0.45),
              0 12px 28px -12px rgba(1, 1, 1, 0.5);
}
.edu-card::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: var(--accent);
  border-radius: 99px;
  opacity: 0.16;
  filter: blur(12px);
  transition: width 720ms cubic-bezier(0.22, 1, 0.36, 1),
              height 720ms cubic-bezier(0.22, 1, 0.36, 1),
              top 720ms cubic-bezier(0.22, 1, 0.36, 1),
              right 720ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 520ms ease,
              filter 520ms ease;
}
.edu-card:hover::before {
  width: 300px; height: 300px;
  top: -80px; right: -80px;
  opacity: 0.32;
  filter: blur(22px);
}
.edu__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffffaa;
  margin-bottom: 24px;
}
.edu__eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: #ffffff55;
}
.edu__logo {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background: var(--paper);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.edu-card:hover .edu__logo {
  transform: rotate(-6deg) scale(1.06);
}
.edu__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.edu__degree {
  font-family: var(--display);
  font-size: 30px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.1; margin: 0 0 8px;
  padding-right: 80px;
}
.edu__school { font-size: 14px; color: #ffffffaa; margin-bottom: 22px; }
.edu__gpa-row {
  display: flex; gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #ffffff20;
}
.edu__gpa-num {
  font-family: var(--display);
  font-size: 38px; font-weight: 600; line-height: 1;
  letter-spacing: -0.02em;
}
.edu__gpa-num em { color: var(--accent); font-style: italic; }
.edu__gpa-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #ffffff88;
  margin-top: 4px;
}
.edu__years { margin-left: auto; text-align: right; }
.edu__years-num {
  font-family: var(--display); font-size: 22px; line-height: 1;
}

/* ---- Contact / Footer ---- */
.contact {
  background: var(--ink); color: var(--paper);
  padding: 140px 0 40px;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: ""; position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: 0.18;
}
.contact .container { position: relative; }
.contact__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(56px, 8.5vw, 132px);
  line-height: 0.92; letter-spacing: -0.035em;
  margin: 0 0 56px;
  text-wrap: balance;
}
.contact__title em {
  font-style: italic; color: var(--accent); font-weight: 500;
}
.contact__grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px;
  align-items: start;
}
.contact__info { display: flex; flex-direction: column; gap: 36px; }
.contact__item-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #ffffff66;
  margin-bottom: 8px;
}
.contact__item-val {
  font-family: var(--display); font-size: 24px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease, color 220ms ease;
}
.contact__item-val:hover { color: var(--accent); border-color: var(--accent); }
.socials { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.social-chip {
  padding: 10px 16px;
  border: 1px solid #ffffff22;
  border-radius: 99px;
  font-size: 13px; font-weight: 500;
  color: var(--paper); text-decoration: none;
  transition: all 220ms ease;
}
.social-chip:hover { background: var(--accent); border-color: var(--accent); }

/* ---- Form ---- */
.form {
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  padding: 36px;
  backdrop-filter: blur(6px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__group { display: flex; flex-direction: column; margin-bottom: 18px; }
.form__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #ffffff88;
  margin-bottom: 8px;
}
.form__input, .form__textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ffffff28;
  padding: 10px 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 220ms ease;
  outline: none;
  resize: none;
}
.form__input:focus, .form__textarea:focus {
  border-bottom-color: var(--accent);
}
.form__textarea { min-height: 90px; }
.form__error {
  color: #FF8A6B; font-size: 11px; margin-top: 6px;
  font-family: var(--mono); letter-spacing: 0.04em;
  min-height: 14px;
}
.form__submit {
  margin-top: 8px; width: 100%;
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
  padding: 16px 24px; border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.form__submit:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.form__submit:disabled { opacity: 0.5; cursor: wait; }
.form__success {
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  color: var(--paper);
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 14px;
  font-size: 14px;
  display: none;
}
.form__success.is-shown { display: block; animation: fadeup 360ms ease; }
@keyframes fadeup {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid #ffffff14;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: #ffffff66;
}
.footer-bottom span em { color: var(--accent); font-style: normal; }

/* ---- Reveal anim ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 720ms ease, transform 720ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  section { padding: 80px 18px; }
  .nav { padding: 16px 18px; }
  .nav.is-scrolled { padding: 10px 18px; }
  .nav__links { display: none; }
  .about__grid, .exp__head, .proj__head, .split, .contact__grid {
    grid-template-columns: 1fr; gap: 40px;
  }
  .proj__grid { grid-template-columns: 1fr; }
  .skills__grid { grid-template-columns: 1fr; }
  .exp__row {
    grid-template-columns: 1fr;
    gap: 8px; padding: 22px 0;
  }
  .exp__type, .exp__arrow { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .exp__detail-grid {
    grid-template-columns: 1fr; gap: 0;
  }
  .exp__detail-grid > div:first-child { display: none; }
  .exp__detail-list { max-width: 100%; }
  .exp__row.is-open .exp__detail { max-height: 1200px; }
}

/* ---- Scroll-stack: hero → about scroll transition ---- */
.scroll-stack { position: relative; }
#about {
  z-index: 2;
  background: var(--paper);
  transform-origin: top center;
  will-change: transform;
}

/* ============ MINIMALIST SPLASH ============ */
.m-hero {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px 32px 28px;
  overflow: hidden;
  background: var(--paper);
  transform-origin: center;
  will-change: transform;
}
.m-hero__main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 28px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
.m-hero__copy {
  z-index: 2;
  max-width: 280px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) 900ms,
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 900ms;
}
.m-hero__copy p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.m-hero__readmore {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 200ms ease;
}
.m-hero__readmore:hover { color: var(--accent); }

.m-hero__center {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: min(82vh, 740px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.m-hero__circle {
  position: absolute;
  width: clamp(280px, 34vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  z-index: 0;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -55%) scale(0.84);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms,
              transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 200ms;
}
.m-hero__portrait {
  position: relative;
  z-index: 1;
  width: clamp(340px, 42vw, 600px);
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  display: block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1) 400ms,
              transform 1100ms cubic-bezier(0.22, 1, 0.36, 1) 400ms;
}

.m-hero__overlay {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) 1100ms,
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 1100ms;
}
.m-hero__overlay h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 8.4vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
}

/* ---- Masked slide reveal (one-shot, words slide up from below mask) ---- */
.msr__word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1;
}
.msr__inner {
  display: inline-block;
  line-height: 1;
  transform: translateY(110%);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--msr-i, 0) * 100ms);
}
.msr.is-fired .msr__inner {
  transform: translateY(0);
}

/* ---- Inline highlight (one-shot color shift, fires on first entry) ---- */
.ih-highlight {
  color: inherit;
  transition: color 1500ms ease 600ms;
}
.ih-highlight.is-fired {
  color: var(--accent);
}

/* ---- Marker highlight (one-shot, fires on first entry, never reverses) ---- */
.mh-marker {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.mh-marker__bg {
  position: absolute;
  inset: 0 -0.1em;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 0;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 1500ms;
}
.mh-marker__text {
  position: relative;
  z-index: 1;
  color: var(--ink);
  transition: color 280ms ease 1950ms;
}
.mh-marker.is-fired .mh-marker__bg {
  transform: scaleX(1);
}
.mh-marker.is-fired .mh-marker__text {
  color: var(--paper);
}

.m-hero__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding-top: 24px;
  z-index: 3;
}
.m-hero__socials {
  display: flex;
  gap: 18px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1) 1200ms,
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1) 1200ms;
}
.m-hero__socials a {
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 200ms ease, transform 200ms ease;
  display: inline-flex;
}
.m-hero__socials a:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.m-hero__socials svg {
  width: 18px;
  height: 18px;
  display: block;
}
.m-hero__location {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1) 1300ms,
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1) 1300ms;
}

/* --- triggered when .m-hero enters viewport --- */
.m-hero.is-shown .m-hero__copy,
.m-hero.is-shown .m-hero__portrait,
.m-hero.is-shown .m-hero__overlay,
.m-hero.is-shown .m-hero__socials {
  opacity: 1;
  transform: translateY(0);
}
.m-hero.is-shown .m-hero__location {
  opacity: 0.7;
  transform: translateY(0);
}
.m-hero.is-shown .m-hero__circle {
  opacity: 1;
  transform: translate(-50%, -55%) scale(1);
}

@media (max-width: 960px) {
  .m-hero {
    padding: 84px 18px 24px;
  }
  .m-hero__main {
    grid-template-columns: 1fr;
    gap: 24px;
    align-content: center;
  }
  .m-hero__copy {
    order: 2;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
  }
  .m-hero__center {
    order: 1;
    min-height: 440px;
  }
  .m-hero__portrait {
    width: min(82vw, 420px);
    max-height: 64vh;
  }
  .m-hero__circle {
    width: min(64vw, 320px);
  }
  .m-hero__overlay {
    order: 3;
  }
  .m-hero__overlay h1 {
    font-size: clamp(54px, 14vw, 88px);
    text-align: center;
  }
  .m-hero__footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}
