@font-face {
  font-family: Inter;
  src: url("assets/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #242424;
  --ink: #f5f5f2;
  --muted: #c2c2be;
  --panel: #141414;
  --panel-hover: #202020;
  --line: #555554;
  --white: #ebebe9;
  --black: #141414;
  --red: #ff584f;
  --radius: 26px;
  --pill: 999px;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 25% 0, #424242, #2d2d2d 36%, transparent 71%) 0 0 / 100% 52rem no-repeat;
  line-height: 1.55;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
[id] { scroll-margin-top: 1.25rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--black); }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container { width: min(1120px, calc(100% - 5rem)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: .75rem;
  left: 1rem;
  z-index: 5;
  padding: .65rem .95rem;
  border-radius: var(--pill);
  background: var(--white);
  color: var(--black);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.site-header { padding-top: 1.5rem; }
.header-inner { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; font-size: .94rem; font-weight: 620; }
.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font: 700 1.05rem/1 var(--mono);
  letter-spacing: -.1em;
}
nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  padding: .25rem;
  border: 1px solid #626261;
  border-radius: var(--pill);
  background: #202020;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .8rem;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: .89rem;
  font-weight: 570;
  white-space: nowrap;
}
nav a:hover { background: #3b3b3b; color: var(--ink); }
nav .nav-contact { background: var(--white); color: var(--black); }
nav .nav-contact:hover { background: #fff; color: var(--black); }

.intro { padding-top: clamp(2.8rem, 6vw, 5.35rem); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(1.35rem, 6vw, 5.2rem); }
.intro-copy { min-width: 0; }
.greeting { color: var(--muted); font: .95rem/1.5 var(--mono); }
h1, h2, h3 { line-height: 1.12; }
h1 {
  width: min(100%, 29rem);
  margin: .85rem 0 1.1rem -.3rem;
}
h1 svg { display: block; width: 100%; height: auto; }
.title-period { fill: var(--red); }
.intro-lead { font-size: clamp(1.45rem, 2.65vw, 2.2rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.15; text-wrap: balance; }
.intro-lead span { white-space: nowrap; }
.intro-description { max-width: 42ch; margin-top: .72rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.intro-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.55rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .6rem .97rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: .92rem;
  font-weight: 640;
  text-align: center;
  transition: background-color 160ms, border-color 160ms;
}
.button-primary { background: var(--white); color: var(--black); }
.button-primary:hover { background: #fff; }
.button-outline, .button-light { border-color: #838382; background: #252525; }
.button-outline:hover, .button-light:hover { background: #3b3b3b; border-color: var(--ink); }

.portrait {
  position: relative;
  min-width: 0;
  padding: .5rem;
  border: 1px solid #535352;
  border-radius: calc(var(--radius) + 4px);
  background: var(--panel);
  box-shadow: 0 12px 26px #0909094d;
}
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.43;
  border-radius: calc(var(--radius) - 4px);
  object-fit: cover;
}
.portrait img, .mini-site-content img { filter: grayscale(1); }
.portrait figcaption {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .5rem .25rem;
  color: var(--muted);
  font: .81rem/1.5 var(--mono);
}
.portrait figcaption::before {
  content: "";
  width: 16px;
  height: 12px;
  background: radial-gradient(circle closest-side, var(--muted) 52%, transparent 73%) 0 0 / 4px 4px;
}

.disciplines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .88rem; margin-top: clamp(1.65rem, 3.5vw, 2.65rem); }
.discipline {
  display: flex;
  align-items: center;
  gap: .78rem;
  min-height: 101px;
  padding: .9rem 1rem;
  border: 1px solid #505050;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 6px 14px #09090935;
  transition: background-color 160ms, border-color 160ms;
}
.discipline:hover { background: var(--panel-hover); border-color: #858584; }
.discipline:first-child { border-color: var(--white); background: var(--white); color: var(--black); }
.discipline:first-child:hover { background: #fff; }
.discipline-icon { display: grid; flex: 0 0 49px; height: 49px; place-items: center; border-radius: 50%; background: #303030; color: var(--ink); }
.discipline:first-child .discipline-icon { background: var(--black); }
.discipline-icon svg { width: 23px; height: 23px; }
.discipline strong { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font: 600 1.02rem/1.15 var(--mono); }
.discipline span > span { display: block; margin-top: .33rem; color: var(--muted); font-size: .86rem; }
.discipline:first-child span > span { color: #474746; }
.discipline small { display: inline-flex; align-items: center; gap: .32rem; color: var(--muted); font: 400 .73rem/1.35 var(--mono); }
.discipline small::before { content: ""; width: .43rem; height: .43rem; border-radius: 50%; background: var(--red); }

.section { padding-block: clamp(3.35rem, 6.5vw, 5.8rem); }
.section-heading { display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 1.4rem; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2.1rem, 4.1vw, 3.55rem); font-weight: 655; letter-spacing: -.055em; }
.section-heading p { max-width: 46ch; color: var(--muted); }
.projects { padding-top: clamp(2.6rem, 5vw, 4.5rem); }
.projects + .about { padding-top: 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: .5rem;
  border: 1px solid #474747;
  border-radius: var(--radius);
  background: var(--panel);
  transition: background-color 160ms, border-color 160ms;
}
.project-link:hover { background: var(--panel-hover); border-color: #80807e; }
.project-cover { display: grid; place-items: center; aspect-ratio: 1.85; overflow: hidden; border-radius: calc(var(--radius) - 6px); }
.cover-portfolio {
  background:
    radial-gradient(circle closest-side, #90908e 0 30%, transparent 40%) 0 0 / 9px 9px,
    #424242;
}
.cover-design {
  background:
    radial-gradient(circle closest-side, #b7b7b4 0 32%, transparent 41%) 0 0 / 9px 9px,
    #dfdfdd;
}
.mini-site, .design-canvas { width: 75%; border-radius: 14px; box-shadow: 0 10px 24px #0006; }
.mini-site { background: #181818; border: 1px solid #777; }
.mini-site-bar { display: flex; align-items: center; gap: .32rem; padding: .42rem .65rem; border-bottom: 1px solid #575757; }
.mini-site-bar b { margin-right: auto; font: 700 .72rem/1 var(--mono); }
.mini-site-bar span { width: .33rem; aspect-ratio: 1; border-radius: 50%; background: #929292; }
.mini-site-bar span:last-child { background: var(--red); }
.mini-site-content { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: .45rem; padding: clamp(.5rem, 1.7vw, 1.15rem); }
.mini-site-content b { display: block; font-size: clamp(1rem, 2.15vw, 2rem); line-height: 1.03; letter-spacing: -.05em; }
.mini-site-content span { display: block; width: 76%; height: .18rem; margin-top: .38rem; border-radius: var(--pill); background: #777; }
.mini-site-content span:last-child { width: 54%; }
.mini-site-content img { width: 100%; height: auto; aspect-ratio: 1.35; border-radius: 8px; object-fit: cover; }
.design-canvas {
  display: grid;
  grid-template-columns: .85fr 1fr;
  align-items: center;
  gap: .4rem .85rem;
  padding: 6%;
  background: #f0f0ee;
  color: #191919;
}
.sample-type { grid-row: span 2; font-size: clamp(2.5rem, 5.6vw, 5.5rem); font-weight: 620; letter-spacing: -.09em; line-height: .92; }
.sample-rule { height: 1px; width: 100%; align-self: end; background: #8e8e8c; }
.sample-swatches { display: flex; gap: .38rem; align-self: start; }
.sample-swatches i { width: 25%; aspect-ratio: 1; border-radius: 50%; background: #171717; }
.sample-swatches i:nth-child(2) { background: #a4a4a2; }
.sample-swatches i:nth-child(3) { background: #c63832; }
.sample-pill { grid-column: 2; justify-self: start; padding: .2rem .48rem; border-radius: var(--pill); background: #1a1a1a; color: #fff; font: .7rem/1.45 var(--mono); }
.project-information { display: flex; min-height: 91px; flex: 1; align-items: center; justify-content: space-between; gap: .7rem; padding: .9rem .8rem .75rem; }
.item-type { margin-bottom: .25rem; color: var(--muted); font: .8rem/1.4 var(--mono); }
.project-information h3 { font-size: clamp(1.12rem, 1.9vw, 1.55rem); font-weight: 650; letter-spacing: -.03em; }
.project-action, .note-action { flex: none; padding: .28rem .62rem; border: 1px solid #828281; border-radius: var(--pill); color: var(--ink); font-size: .8rem; font-weight: 580; white-space: nowrap; }
.project-link:hover .project-action, .note:hover .note-action { border-color: var(--white); background: var(--white); color: var(--black); }
.featured-project { margin-bottom: 1rem; }
.featured-link {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: .5rem;
}
.featured-copy {
  align-self: center;
  padding: clamp(.85rem, 3vw, 1.75rem);
}
.featured-copy h3 {
  max-width: 21ch;
  margin: .45rem 0 .55rem;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -.045em;
}
.featured-copy > p:not(.item-type) { max-width: 48ch; color: var(--muted); }
.featured-copy .project-action { display: inline-block; margin-top: 1rem; }
.featured-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .42rem;
  padding: clamp(.9rem, 3vw, 1.75rem);
  border-radius: calc(var(--radius) - 6px);
  background: var(--white);
  color: var(--black);
}
.featured-result .item-type { color: #444; }
.featured-result strong {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.featured-result > span:last-child { max-width: 33ch; font-size: .9rem; }

.learning { border-block: 1px solid var(--line); background: #1e1e1e; }
.learning-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(1.3rem, 5vw, 4.3rem); }
.learning-heading { display: block; margin-bottom: 0; }
.learning-heading p { margin-top: .7rem; }
.notes { display: grid; gap: .6rem; }
.note { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .9rem .95rem; border: 1px solid #515151; border-radius: 19px; background: var(--panel); }
.note:hover { border-color: #828281; background: var(--panel-hover); }
.note-content > span { display: block; }
.note strong { display: block; font-size: 1.05rem; font-weight: 640; line-height: 1.3; }

.study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22.5rem), 1fr));
  gap: 1rem;
}
.study-card {
  padding: clamp(1rem, 3vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.study-card h3 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.16rem, 2.2vw, 1.5rem);
  font-weight: 640;
  letter-spacing: -.025em;
}
.study-list {
  margin: 0 0 0 .28rem;
  padding: 0 0 0 1rem;
  border-left: 1px solid var(--line);
  list-style: none;
}
.study-list li { position: relative; padding-bottom: 1.15rem; }
.study-list li:last-child { padding-bottom: 0; }
.study-list li::before {
  position: absolute;
  top: .28rem;
  left: calc(-1rem - 5px);
  width: 9px;
  height: 9px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--muted);
  content: "";
}
.study-list li:has(.study-status)::before { background: var(--red); }
.study-list h4 { margin: 0; font-size: 1.04rem; font-weight: 650; line-height: 1.35; }
.study-list h4 + p { margin-top: .2rem; color: var(--muted); font-size: .93rem; }
.study-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 570;
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: .2em;
}
.study-link:hover { text-decoration-thickness: 2px; }
.contact { border-top: 1px solid var(--line); background: var(--panel); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; padding-block: 2.55rem; }
.contact p { margin-top: .6rem; color: var(--muted); }
.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: .55rem; }

.cv-document { max-width: 800px; }
.cv-document h1 {
  width: auto;
  margin: .2rem 0 .55rem;
  font-size: clamp(2.1rem, 6vw, 4rem);
  letter-spacing: -.055em;
}
.cv-document h2 { margin-bottom: 1rem; font-size: clamp(1.35rem, 3.3vw, 2rem); }
.cv-intro > p:not(.item-type) { max-width: 58ch; color: var(--muted); }
.cv-document section { margin-top: 1rem; }
.cv-document section:first-of-type { margin-top: 1.5rem; }
.cv-document .study-list h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.cv-document .study-list p:not(.item-type) { font-size: .93rem; color: var(--muted); }
.cv-document .study-list p + p:not(.item-type) { margin-top: .35rem; }

.fallback-details { padding-block: 1.7rem 2.8rem; }
.detail-source { max-width: 68ch; padding-block: 1.2rem; }
.detail-source h2 { margin-bottom: .9rem; }
.detail-dialog { width: min(640px, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 0; border: 1px solid #666; border-radius: var(--radius); background: var(--panel); color: var(--ink); }
.detail-dialog::backdrop { background: #050505c7; }
.dialog-shell { position: relative; padding: clamp(1.2rem, 4.5vw, 2.55rem); }
.dialog-close { position: absolute; top: .65rem; right: .65rem; min-width: 44px; min-height: 44px; border: 1px solid #777; border-radius: 50%; background: #292929; color: var(--ink); font-size: 1.55rem; line-height: 1; }
.dialog-close:hover { background: var(--white); color: var(--black); }
.dialog-shell h2 { margin-bottom: 1rem; padding-right: 1.6rem; font-size: clamp(1.85rem, 5vw, 2.95rem); }
.dialog-shell > .item-type { padding-right: 2.3rem; }
.detail-text p { color: var(--muted); }
.detail-text p + p, .detail-text h3, .detail-text h3 + p { margin-top: .85rem; }
.detail-text code { padding: .1em .3em; border-radius: 4px; background: #373737; color: var(--ink); overflow-wrap: anywhere; }
body:has(.detail-dialog[open]) { overflow: hidden; }

.theme-demo { min-width: 0; margin: 1.2rem 0 0; padding: .8rem; border: 1px solid var(--line); border-radius: 16px; }
.theme-demo legend { padding-inline: .3rem; font-weight: 600; }
.theme-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.theme-options label { display: inline-flex; min-height: 44px; align-items: center; gap: .33rem; padding: .35rem .6rem; border: 1px solid #838383; border-radius: var(--pill); cursor: pointer; }
.theme-options label:has(input:checked) { background: #383838; }
.theme-options input { margin: 0; accent-color: var(--ink); }
.theme-preview {
  --demo-accent: #f2f2ef;
  --demo-background: #212121;
  display: grid;
  justify-items: start;
  gap: .6rem;
  margin-top: .75rem;
  padding: 1rem;
  border: 1px solid var(--demo-accent);
  border-radius: 14px;
  background: var(--demo-background);
  color: var(--demo-accent);
}
.theme-demo:has([value="red"]:checked) .theme-preview { --demo-accent: #ffb1ac; --demo-background: #371e1d; }
.theme-demo:has([value="gray"]:checked) .theme-preview { --demo-accent: #c9c9c8; --demo-background: #3a3a3a; }
.theme-preview-title { font-size: 1.12rem; font-weight: 670; }
.theme-preview p { color: var(--ink); }
.theme-token { padding: .33rem .62rem; border-radius: var(--pill); background: var(--demo-accent); color: var(--black); font-weight: 630; }

@media (max-width: 900px) {
  .container { width: calc(100% - 3rem); }
  .intro-grid { gap: 1.45rem; }
  .disciplines { gap: .6rem; }
  .discipline { gap: .6rem; padding-inline: .7rem; }
  .discipline-icon { flex-basis: 42px; width: 42px; height: 42px; }
  .project-information { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 2rem); }
  .site-header { padding-top: .85rem; }
  .header-inner { display: grid; justify-content: stretch; gap: .55rem; }
  nav { justify-content: space-between; }
  nav a { padding-inline: .48rem; font-size: .8rem; }
  .intro { padding-top: 2rem; }
  .intro-grid, .section-heading, .learning-inner { grid-template-columns: 1fr; }
  .intro-grid { gap: 1.45rem; }
  h1 { width: min(94%, 22rem); margin-block: .7rem .8rem; }
  .intro-actions { margin-top: 1.15rem; }
  .portrait img { max-height: 390px; }
  .disciplines { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .85rem; }
  .discipline { min-height: 73px; padding-inline: .87rem; }
  .discipline:not(:last-child) { min-height: 125px; align-items: flex-start; flex-direction: column; }
  .discipline:last-child { grid-column: 1 / -1; }
  .section-heading { gap: .6rem; }
  .project-grid { grid-template-columns: 1fr; }
  .featured-link { grid-template-columns: 1fr; }
  .project-information { min-height: 0; }
  .mini-site-content b { font-size: clamp(1.1rem, 5.5vw, 2.3rem); }
  .sample-type { font-size: clamp(2.65rem, 11vw, 5.5rem); }
  .contact-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 365px) {
  nav a { padding-inline: .35rem; }
  .note { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
