:root {
  color-scheme: dark;
  --page: #111416;
  --surface: #211e1b;
  --text: #f6f5f1;
  --muted: #b9aea2;
  --soft: #d8cbbd;
  --line: #443a31;
  --accent: #ebcda4;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #ebcda4; color: #111416; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 100; padding: 10px 18px; border-radius: 4px; background: var(--text); color: var(--page); font-size: 13px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
img { display: block; width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; }
figure, blockquote { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; font-weight: 600; }
h2 { margin-bottom: 24px; font-size: clamp(40px, 4.6vw, 54px); letter-spacing: -0.055em; }
h3 { letter-spacing: -0.025em; }
p { margin-bottom: 20px; }
p:last-child { margin-bottom: 0; }
ul, ol { padding: 0; }
main { overflow: clip; }
.section-shell { width: min(var(--max-width), calc(100% - 96px)); margin-inline: auto; }
.section-space { padding-block: 108px; }
.section-label, .eyebrow, .small-line, .status-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; border-top: 1px solid var(--line); margin-bottom: 40px; }
.section-label > span:last-child:not(:first-child) { color: #b9ac9b; text-align: right; font-size: 10px; letter-spacing: 0.04em; text-transform: none; font-weight: 400; }
.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p:not(.section-label) { color: var(--muted); margin-top: 24px; }
.section-intro { max-width: 540px; color: var(--muted); }
.lead { color: var(--soft); font-size: 21px; line-height: 1.55; letter-spacing: -0.025em; }

.profile-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(var(--max-width), calc(100% - 96px));
  min-height: 80px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
  background: rgb(17 20 22 / 94%);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.3; font-weight: 650; letter-spacing: -0.035em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.profile-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 12px; }
.profile-nav a { color: var(--muted); transition: color 180ms ease; }
.profile-nav a:hover, .profile-footer a:hover { color: var(--text); }
.profile-nav .back-link { margin-left: 10px; color: var(--soft); }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; border-radius: 6px; padding: 7px 12px; font-size: 12px; cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
  min-height: min(790px, calc(100svh - 80px));
  padding-block: 60px;
}
.hero-copy { min-width: 0; }
.hero .eyebrow { margin-bottom: 28px; color: var(--accent); }
.hero .small-line { display: inline-block; width: 21px; height: 1px; margin-right: 10px; margin-bottom: 3px; background: var(--accent); }
.hero h1 { margin: 0 0 24px; font-size: clamp(76px, 8.3vw, 94px); line-height: 0.94; letter-spacing: -0.075em; font-weight: 650; }
.name-period { color: var(--accent); }
.hero-role { margin-bottom: 21px; color: var(--soft); font-size: 24px; line-height: 1.45; letter-spacing: -0.025em; }
.hero-intro { max-width: 470px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; }
.tags > * { padding: 6px 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--soft); font-size: 11px; line-height: 1.5; }
.hero-tags { margin-top: 26px; }
.text-link { display: inline-flex; align-items: center; gap: 15px; padding-block: 8px; border-bottom: 1px solid #89755f; color: var(--text); font-size: 13px; line-height: 1.5; transition: border-color 180ms ease, color 180ms ease; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link svg { width: 17px; height: 17px; }
.hero-link { margin-top: 31px; }
.hero-portrait { position: relative; align-self: center; min-width: 0; }
.hero-portrait img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.hero-portrait figcaption { display: flex; justify-content: space-between; gap: 18px; margin-top: 15px; color: var(--muted); font-size: 10px; letter-spacing: 0.06em; }

.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 100px; }
.about-portrait { min-width: 0; }
.about-portrait img { aspect-ratio: 4 / 5; border-radius: 6px; object-fit: cover; }
.about-portrait figcaption { color: var(--muted); font-size: 11px; margin-top: 14px; }
.about-copy { min-width: 0; }
.about-copy p:not(.section-label):not(.lead) { color: var(--muted); font-size: 15px; line-height: 1.85; }
.about-copy .lead { margin-bottom: 24px; }

.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.work-card { min-width: 0; padding: 29px 24px 28px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); transition: border-color 180ms ease, background-color 180ms ease; }
.work-card:hover { border-color: #7e705b; background: #2d251f; }
.work-card svg { width: 25px; height: 25px; margin-bottom: 29px; color: #d4bda2; }
.work-card h3 { margin-bottom: 14px; font-size: 17px; }
.work-card p { color: var(--muted); font-size: 13px; line-height: 1.75; }

.project-panel { padding: 56px; border: 1px solid #6d5a46; border-radius: 10px; background: radial-gradient(ellipse at top right, #3a2d22 0, #251e19 50%, #201c19 100%); }
.project-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 43px; }
.project-topline .section-label, .project-topline .eyebrow { margin: 0; }
.status-label { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 9px; letter-spacing: 0.1em; }
.status-label::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
.project-panel h2 { font-size: clamp(56px, 6vw, 76px); letter-spacing: -0.065em; margin-bottom: 16px; }
.project-panel h2 span { color: var(--accent); }
.project-lead { color: var(--soft); max-width: 680px; font-size: 23px; line-height: 1.5; letter-spacing: -0.025em; }
.project-description { max-width: 720px; color: var(--muted); font-size: 15px; }
.project-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 40px; padding-top: 29px; border-top: 1px solid #594637; }
.project-details h3 { color: var(--soft); font-size: 13px; margin-bottom: 12px; }
.project-details p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.project-tags { margin-top: 28px; }
.project-note { color: var(--muted); font-size: 11px; margin-top: 24px; }
.project-note a { text-decoration: underline; text-underline-offset: 3px; }

.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.stack-grid article { min-width: 0; border-top: 1px solid var(--line); padding-top: 23px; }
.stack-grid h3 { margin-bottom: 25px; font-size: 15px; }
.stack-grid ul { list-style: none; margin: 0; }
.stack-grid li { padding-block: 9px; color: var(--soft); font-size: 13px; line-height: 1.6; }
.stack-grid li span { display: block; color: #b9ac9c; font-size: 11px; }
.learning-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.learning-card { padding: 30px; border: 1px solid var(--line); border-radius: 7px; background: #1e1b18; }
.learning-index { display: block; margin-bottom: 32px; color: #bf9673; font-size: 11px; font-variant-numeric: tabular-nums; }
.learning-card h3 { margin-bottom: 16px; font-size: 21px; }
.learning-card p { color: var(--muted); font-size: 13px; }
.learning-topics { margin-top: 30px; }
.learning-topics > p { margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.approach-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.approach-grid article { border-top: 1px solid var(--line); padding-top: 26px; }
.approach-grid article > span { display: block; margin-bottom: 26px; color: #bf9673; font-size: 11px; font-variant-numeric: tabular-nums; }
.approach-grid h3 { margin-bottom: 16px; font-size: 18px; }
.approach-grid p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.approach-grid svg { width: 23px; height: 23px; color: var(--accent); margin-bottom: 25px; }

.focus-section { border-bottom: 1px solid var(--line); }
.focus-list { display: flex; flex-wrap: wrap; gap: 16px 32px; max-width: 1020px; margin: 32px 0 0; padding: 0; list-style: none; }
.focus-list > * { color: #ded3c7; font-size: clamp(23px, 3.3vw, 39px); line-height: 1.4; letter-spacing: -0.04em; }
.focus-list > *:not(:last-child)::after { content: "/"; margin-left: 32px; color: #716451; font-weight: 300; }
.journey-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 100px; }
.journey-grid .section-intro { font-size: 15px; }
.timeline { list-style: none; margin: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 22px; padding-bottom: 34px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 1px; background: var(--line); }
.timeline-number { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #7b6853; border-radius: 50%; color: #dfbf95; font-size: 10px; font-variant-numeric: tabular-nums; }
.timeline h3 { margin-top: 7px; margin-bottom: 12px; font-size: 19px; }
.timeline p { color: var(--muted); font-size: 13px; line-height: 1.8; }

.gallery-section { padding-bottom: 110px; }
.gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.gallery-heading h2 { margin-bottom: 0; }
.gallery-heading .section-label { margin-bottom: 18px; }
.gallery-controls { display: none; align-items: center; gap: 10px; padding-bottom: 5px; }
.has-js .gallery-controls { display: flex; }
.gallery-controls button { display: inline-flex; justify-content: center; align-items: center; width: 42px; height: 42px; border: 1px solid #7b6853; background: #27201b; border-radius: 50%; cursor: pointer; transition: border-color 180ms ease, background-color 180ms ease; }
.gallery-controls button:hover:not(:disabled) { background: #453222; border-color: #ebcda4; }
.gallery-controls button:disabled { opacity: 0.3; cursor: default; }
.gallery-controls svg { width: 17px; height: 17px; }
[data-gallery-status] { min-width: 57px; margin-inline: 7px; text-align: center; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.gallery-track { --slide-width: min(420px, 72vw); display: flex; align-items: flex-start; gap: 24px; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px calc((100% - var(--slide-width)) / 2) 24px; scrollbar-width: thin; scrollbar-color: #806a52 transparent; cursor: grab; }
.gallery-track:focus-visible { outline-offset: -2px; }
.gallery-slide { min-width: 0; flex: 0 0 var(--slide-width); scroll-snap-align: center; transition: opacity 280ms ease; }
.has-js .gallery-slide { opacity: 0.6; }
.has-js .gallery-slide.is-active { opacity: 1; }
.gallery-slide img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 7px; user-select: none; -webkit-user-drag: none; }
.gallery-slide figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 15px; color: var(--muted); font-size: 11px; }
.gallery-slide figcaption span:first-child { color: var(--soft); }
.gallery-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; user-select: none; cursor: grabbing; }
.gallery-hint { margin-top: 24px; color: #bcb09e; font-size: 11px; text-align: center; }

.statement-section { border-top: 1px solid var(--line); padding-block: 105px 110px; text-align: center; }
.statement-section blockquote { max-width: 890px; margin-inline: auto; color: #e8dfd2; font-size: clamp(30px, 4.4vw, 49px); line-height: 1.3; font-weight: 500; letter-spacing: -0.05em; }
.statement-section blockquote p { margin-bottom: 0; }
.statement-credit { display: flex; flex-direction: column; gap: 4px; margin-top: 30px; color: var(--soft); font-size: 13px; }
.statement-credit span { color: var(--muted); font-size: 11px; }
.profile-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: min(var(--max-width), calc(100% - 96px)); margin-inline: auto; padding-block: 37px 42px; border-top: 1px solid var(--line); }
.footer-name { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 600; letter-spacing: -0.045em; }
.footer-name span { color: var(--accent); }
.profile-footer > div > p { margin-top: 8px; margin-bottom: 0; color: var(--muted); font-size: 9px; letter-spacing: 0.11em; }
.profile-footer nav { display: flex; flex-wrap: wrap; gap: 24px; color: var(--muted); font-size: 11px; }
.profile-footer nav a { transition: color 180ms ease; }

[data-reveal] { transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.has-reveal [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(18px); }

@media (max-width: 1050px) {
  .section-shell, .profile-header, .profile-footer { width: calc(100% - 64px); }
  .profile-nav { gap: 19px; font-size: 11px; }
  .profile-nav .back-link { margin-left: 0; }
  .hero { gap: 46px; }
  .hero h1 { font-size: 83px; }
  .hero-intro { font-size: 15px; }
  .about-grid, .journey-grid { gap: 58px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card { padding: 30px; }
  .work-card svg { margin-bottom: 25px; }
  .project-panel { padding: 42px; }
  .stack-grid, .approach-grid { gap: 28px 24px; }
  .learning-card { padding: 26px 22px; }
  .learning-card h3 { font-size: 19px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 90px; }
  body { font-size: 16px; }
  h2 { font-size: 36px; letter-spacing: -0.05em; }
  .section-shell, .profile-header, .profile-footer { width: calc(100% - 40px); }
  .section-space { padding-block: 76px; }
  .section-label { margin-bottom: 32px; font-size: 10px; }
  .section-heading { margin-bottom: 34px; }
  .profile-header { flex-wrap: wrap; gap: 18px; min-height: 75px; padding-block: 20px; }
  .brand { font-size: 14px; }
  .profile-nav { display: flex; flex-wrap: wrap; width: 100%; margin: 0; gap: 16px 24px; padding-bottom: 4px; font-size: 12px; }
  .has-js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .has-js .profile-nav { display: none; position: absolute; top: 100%; left: 0; padding: 21px 20px 24px; background: #211c19; border: 1px solid var(--line); border-radius: 0 0 8px 8px; }
  .has-js .profile-nav.is-open { display: flex; }
  .profile-nav .back-link { width: 100%; padding-top: 7px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 45px; padding-block: 61px 76px; }
  .hero h1 { font-size: clamp(69px, 15vw, 94px); }
  .hero .eyebrow { margin-bottom: 24px; font-size: 10px; }
  .hero-role { font-size: 20px; }
  .hero-intro { max-width: 500px; font-size: 16px; }
  .hero-tags { margin-top: 24px; }
  .hero-link { margin-top: 25px; }
  .hero-portrait { width: 100%; max-width: 480px; margin-inline: auto; }
  .hero-portrait img { aspect-ratio: 4 / 5; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .about-portrait { width: 100%; max-width: 400px; }
  .about-portrait img { aspect-ratio: 4 / 4.6; }
  .lead { font-size: 21px; }
  .about-copy p:not(.section-label):not(.lead) { font-size: 15px; }
  .work-grid { gap: 12px; }
  .work-card { padding: 24px 19px; }
  .work-card h3 { font-size: 16px; }
  .work-card p { font-size: 12px; }
  .project-panel { padding: 29px 25px; }
  .project-topline { align-items: flex-start; gap: 14px; margin-bottom: 35px; }
  .project-topline .section-label { font-size: 9px; }
  .status-label { font-size: 8px; }
  .project-panel h2 { font-size: 59px; }
  .project-lead { font-size: 21px; }
  .project-description { font-size: 14px; }
  .project-details { grid-template-columns: 1fr; gap: 25px; margin-top: 29px; padding-top: 25px; }
  .project-details h3 { margin-bottom: 9px; }
  .stack-grid, .approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
  .stack-grid h3 { font-size: 14px; margin-bottom: 18px; }
  .learning-grid { grid-template-columns: 1fr; gap: 14px; }
  .learning-card { padding: 28px; }
  .learning-index { margin-bottom: 24px; }
  .learning-card h3 { font-size: 22px; }
  .learning-card p { font-size: 14px; }
  .learning-topics { margin-top: 24px; }
  .focus-list { gap: 13px 20px; margin-top: 24px; }
  .focus-list > * { font-size: 27px; }
  .focus-list > *:not(:last-child)::after { margin-left: 20px; }
  .journey-grid { grid-template-columns: 1fr; gap: 38px; }
  .journey-grid .section-heading { margin-bottom: 24px; }
  .timeline li { gap: 19px; padding-bottom: 30px; }
  .gallery-section { padding-bottom: 70px; }
  .gallery-heading { align-items: flex-start; gap: 20px; }
  .gallery-heading h2 { font-size: 33px; }
  .gallery-controls { gap: 6px; padding-top: 35px; }
  .gallery-controls button { width: 35px; height: 35px; }
  [data-gallery-status] { min-width: 43px; margin-inline: 1px; font-size: 10px; }
  .gallery-track { --slide-width: 84vw; gap: 16px; }
  .gallery-slide figcaption { font-size: 10px; }
  .gallery-hint { padding-inline: 20px; font-size: 10px; }
  .statement-section { padding-block: 76px; }
  .statement-section blockquote { font-size: 32px; }
  .profile-footer { align-items: flex-start; flex-direction: column; gap: 26px; padding-block: 30px 36px; }
  .profile-footer nav { gap: 18px; }
}

@media (max-width: 390px) {
  .section-shell, .profile-header, .profile-footer { width: calc(100% - 32px); }
  .hero h1 { font-size: 69px; }
  .hero-role { font-size: 19px; }
  .tags { gap: 6px; }
  .tags > * { padding: 5px 8px; font-size: 10px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { padding: 28px; }
  .work-card h3 { font-size: 19px; }
  .work-card p { font-size: 13px; }
  .project-panel { padding: 26px 21px; }
  .project-topline { flex-direction: column; }
  .gallery-heading { flex-direction: column; gap: 23px; }
  .gallery-controls { padding-top: 0; }
  .focus-list > * { font-size: 25px; }
  .statement-section blockquote { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  html, .gallery-track { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .has-reveal [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}
