:root {
  --ink: #1a1917;
  --ink-soft: #3f3c38;
  --muted: #7a746c;
  --line: rgba(26, 25, 23, 0.1);
  --accent: #3f5348;
  --accent-soft: rgba(63, 83, 72, 0.12);
  --sand: #f2eee7;
  --sand-deep: #e7e1d6;
  --paper: #fffcf8;
  --bg: var(--sand);
  --surface: rgba(255, 252, 248, 0.72);
  --surface-strong: #fffcf8;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-mono: "Inter", ui-sans-serif, system-ui, sans-serif;
  --space: clamp(1.25rem, 3vw, 2rem);
  --max: 72rem;
  --radius: 0.35rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-optical-sizing: auto;
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(255, 255, 255, 0.85), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 20%, rgba(63, 83, 72, 0.06), transparent 50%),
    radial-gradient(ellipse 35% 28% at 0% 70%, rgba(180, 160, 130, 0.1), transparent 50%),
    linear-gradient(180deg, #f7f4ee 0%, var(--sand) 40%, #ebe6dc 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.55;
  pointer-events: none;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - (var(--space) * 2), var(--max));
  margin: 0 auto;
  padding: 1rem 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  width: 100%;
  max-width: none;
  padding: 0.85rem max(var(--space), calc((100vw - var(--max)) / 2));
  background: rgba(242, 238, 231, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.mark {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

main {
  width: min(100% - (var(--space) * 2), var(--max));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: calc(100svh - 4.5rem);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 8vh, 5rem) 0 clamp(3rem, 10vh, 6rem);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.7fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}

.hero-copy {
  max-width: 40rem;
}

.hero-kicker {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.hero-location {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-name {
  margin: 0.55rem 0 0;
  font-size: clamp(3.2rem, 11vw, 6.4rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: none;
  color: var(--ink);
}

.hero-role {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-status {
  display: inline-flex;
  margin: 1rem 0 0;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(63, 83, 72, 0.28);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin: 1.35rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-lead-secondary {
  margin-top: 0.85rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffcf8;
}

.btn-primary:hover {
  background: #2c2a27;
  border-color: #2c2a27;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(26, 25, 23, 0.18);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 252, 248, 0.7);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 22rem);
}

.hero-portrait {
  margin: 0;
  overflow: hidden;
  border-radius: 1.4rem 1.4rem 2.4rem 1.4rem;
  border: 1px solid rgba(26, 25, 23, 0.08);
  background: var(--paper);
  box-shadow: 0 24px 50px rgba(70, 60, 45, 0.12);
}

.hero-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.92) contrast(1.02);
}

.scroll-cue {
  position: absolute;
  left: 0;
  bottom: 1.2rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  padding: clamp(3.5rem, 9vh, 6rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}

.section-index {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.section-head h2,
.rail-intro h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  line-height: 0.95;
}

.section-head p {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.timeline-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-node {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 25, 23, 0.12);
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.timeline-card,
.edu,
.skill-panel,
.contact-panel {
  background: var(--surface-strong);
  border: 1px solid rgba(26, 25, 23, 0.08);
  border-radius: 1rem;
  padding: 1.2rem 1.25rem 1.3rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card:hover,
.skill-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(63, 83, 72, 0.28);
  box-shadow: 0 16px 36px rgba(70, 60, 45, 0.08);
}

.timeline-meta,
.edu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.org {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}

.timeline-card h3,
.edu h3 {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.timeline-card p,
.edu p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.tech-line,
.detail-line,
.result-line {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.rail-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(3rem, 8vh, 5rem) 0;
  background: var(--paper);
  border-top: 1px solid rgba(26, 25, 23, 0.07);
  border-bottom: 1px solid rgba(26, 25, 23, 0.07);
}

.rail-section-academic {
  background: #f7f3ec;
  border-top: 0;
}

.rail-sticky {
  width: calc(100vw - max(var(--space), calc((100vw - var(--max)) / 2)));
  max-width: none;
  margin-left: max(var(--space), calc((100vw - var(--max)) / 2));
  margin-right: 0;
}

.rail-layout {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 980px) {
  .rail-layout {
    grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .rail-intro {
    position: sticky;
    top: 6rem;
  }
}

.rail-lead {
  margin: 1.1rem 0 0;
  max-width: 19rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
}

.rail-emphasis {
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 500;
}

.rail-emphasis.is-strong {
  color: var(--ink);
  font-weight: 600;
}

.rail-hint {
  margin: 2rem 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 25, 23, 0.38);
}

.rail-hint::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  margin-bottom: 0.7rem;
  background: rgba(26, 25, 23, 0.18);
}

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18rem, 28rem);
  gap: 1.15rem;
  align-items: stretch;
  overflow-x: auto;
  padding: 0.25rem max(var(--space), 1rem) 1.1rem 0.1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(26, 25, 23, 0.25) transparent;
}

.rail-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.project-card {
  scroll-snap-align: start;
  cursor: pointer;
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.project-card-lift {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.35s ease;
}

.project-card:hover .project-card-lift,
.project-card:focus-visible .project-card-lift {
  transform: translateY(-3px);
}

.project-card-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(26, 25, 23, 0.1);
  background: #111;
  transition: border-color 0.4s ease;
}

.project-card:hover .project-card-frame,
.project-card:focus-visible .project-card-frame {
  border-color: rgba(26, 25, 23, 0.22);
}

.project-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1s ease;
}

.project-card:hover .project-card-media,
.project-card:focus-visible .project-card-media {
  transform: scale(1.03);
}

.project-card-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.92) 8%,
    rgba(10, 10, 10, 0.55) 38%,
    rgba(10, 10, 10, 0.08) 68%,
    transparent 100%
  );
  pointer-events: none;
}

.project-card-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  color: #f4f1ec;
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0 0.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-card-copy h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
}

.project-card-copy > p {
  margin: 0.7rem 0 0;
  max-width: 34rem;
  color: rgba(244, 241, 236, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-cta {
  margin-top: 0.85rem !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  font-size: 0.72rem !important;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.88) !important;
}

.project-card-panel {
  background:
    linear-gradient(160deg, rgba(63, 83, 72, 0.35), transparent 55%),
    linear-gradient(25deg, #1d211e, #34322e);
}

.panel-thesis {
  background:
    linear-gradient(160deg, rgba(140, 110, 78, 0.35), transparent 55%),
    linear-gradient(25deg, #1d1b18, #35322c);
}

.panel-ey {
  background:
    linear-gradient(160deg, rgba(90, 110, 130, 0.32), transparent 55%),
    linear-gradient(25deg, #1a1d22, #2f3338);
}

.project-panel-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.7);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(1rem, 3vh) 1rem;
}

.project-modal[hidden] {
  display: none;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 25, 23, 0.48);
  backdrop-filter: blur(8px);
}

.project-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 52rem);
  max-height: min(90vh, 54rem);
  overflow: auto;
  border: 1px solid rgba(26, 25, 23, 0.1);
  border-radius: 1.15rem;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(40, 34, 28, 0.28);
  animation: modal-rise 0.32s ease;
}

@keyframes modal-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.project-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(26, 25, 23, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.project-modal-close:hover {
  border-color: var(--ink);
}

.project-modal-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #161513;
}

.project-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-modal-media img[hidden],
.project-modal-panel[hidden] {
  display: none;
}

.project-modal-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #f4f1ec;
}

.project-modal-panel.is-thesis {
  background:
    linear-gradient(160deg, rgba(140, 110, 78, 0.4), transparent 55%),
    linear-gradient(25deg, #1d1b18, #35322c);
}

.project-modal-panel.is-ey {
  background:
    linear-gradient(160deg, rgba(90, 110, 130, 0.38), transparent 55%),
    linear-gradient(25deg, #1a1d22, #2f3338);
}

.project-modal-panel-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.72);
}

.project-modal-panel-title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
}

.project-modal-body {
  padding: clamp(1.25rem, 3vw, 1.85rem);
}

.project-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-modal-kicker {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.project-modal-body h3 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
}

.project-modal-body > p {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.project-modal-extra {
  color: var(--ink-soft) !important;
  font-weight: 650;
}

.project-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

body.modal-open {
  overflow: hidden;
}

.edu-list {
  display: grid;
  gap: clamp(1.15rem, 3vh, 1.6rem);
}

.skill-groups {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 720px) {
  .skill-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .skill-groups-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .skill-groups-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.skill-index {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.skill-panel h3 {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.skill-list li {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(26, 25, 23, 0.04);
  border: 1px solid rgba(26, 25, 23, 0.08);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.contact {
  padding-bottom: clamp(4rem, 10vh, 6.5rem);
}

.contact-panel {
  max-width: 38rem;
  background: linear-gradient(160deg, #fffcf8, rgba(63, 83, 72, 0.08));
  border-color: rgba(63, 83, 72, 0.18);
}

.contact-panel p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.contact-panel .section-index {
  margin-bottom: 0.4rem;
}

.contact-panel .hero-actions {
  margin-top: 1.5rem;
}

.site-footer {
  width: min(100% - (var(--space) * 2), var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .nav a::after,
  .timeline-card,
  .skill-panel,
  .project-card-lift,
  .project-card-frame,
  .project-card-media,
  .project-modal-dialog {
    transition: none;
    animation: none;
  }

  .btn:hover,
  .timeline-card:hover,
  .skill-panel:hover,
  .project-card:hover .project-card-lift,
  .project-card:focus-visible .project-card-lift,
  .project-card:hover .project-card-media,
  .project-card:focus-visible .project-card-media {
    transform: none;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 0.25rem 0.7rem;
    font-size: 0.76rem;
  }

  .hero-name {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .hero-visual {
    order: -1;
    width: min(100%, 16.5rem);
  }

  .btn {
    min-height: 2.7rem;
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
  }

  .rail-track {
    grid-auto-columns: minmax(16.5rem, 85vw);
  }
}
