@font-face {
  font-family: "Instrument Sans";
  src: url("instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Cardo";
  src: url("cardo-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #101314;
  --surface: #171d1e;
  --cream: #f1f0e9;
  --accent: #adcac0;
  --muted: #abbdb7;
  --line: #c9ded526;
  --text: "Instrument Sans", Arial, sans-serif;
  --italic: "Cardo", Georgia, serif;
  --gutter: clamp(1.15rem, 5.15vw, 6.25rem);
  --header-height: 4.45rem;
  --move-ease: cubic-bezier(.2, .72, .28, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main {
  isolation: isolate;
  overflow: clip;
  background: radial-gradient(ellipse 82% 27% at 43% 90%, #1b2623, transparent);
}
@media (any-hover: hover) and (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  main::before {
    content: "";
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: clamp(20rem, 35vw, 35rem);
    aspect-ratio: 1;
    background: radial-gradient(circle closest-side, #a6c8b84a, #83b4a139 22%, #5b958523 45%, #406d6210 67%, transparent);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(calc(var(--pointer-x, 0px) - 50%), calc(var(--pointer-y, 0px) - 50%), 0);
    transition: transform .15s ease-out, opacity .3s ease;
  }
  main.is-pointer-lit::before { opacity: 1; }
}
section[id] { scroll-margin-top: calc(var(--header-height) + 1rem); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
em { font-family: var(--italic); font-weight: 400; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.container {
  width: min(100% - var(--gutter) * 2, 92rem);
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: 1rem;
  padding: .6rem 1rem;
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 3;
  inset: 0 0 auto;
  background: linear-gradient(to bottom, #10131494, transparent);
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header .brand {
  font-size: 1.02rem;
  letter-spacing: -.036em;
  gap: .36rem;
}
.site-header .brand img {
  width: 1.75rem;
  height: 1.75rem;
  filter: grayscale(1) brightness(1.9);
}
.brand {
  display: inline-flex;
  gap: .48rem;
  align-items: center;
  justify-self: start;
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -.051em;
  line-height: 1;
  white-space: nowrap;
}
.brand img { width: 2.36rem; height: 2.36rem; flex: none; }
.brand-suffix { font-weight: 500; }
.portfolio-link {
  display: inline-flex;
  min-height: 2.6rem;
  align-items: center;
  padding: .45rem .91rem;
  border: 1px solid #ffffff21;
  border-radius: 2rem;
  background: #ffffff06;
  color: #e6ebe8;
  font-size: .84rem;
  font-weight: 550;
  transition: background-color .2s ease;
}
.portfolio-link:hover { background: #ffffff12; }

.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block-start: var(--header-height);
}
.hero-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse 41% 53% at var(--light-x, 58%) 43%, #29413b 0%, #24333058 49%, transparent 90%),
    radial-gradient(ellipse 40% 44% at 41% 34%, #222a38 0%, #171e2960 51%, transparent 93%);
  opacity: var(--light-opacity, .79);
  pointer-events: none;
}
.hero.is-3d .hero-stage {
  position: sticky;
  top: 0;
}
.hero.is-3d::after {
  content: "";
  display: block;
  height: clamp(26rem, 128svh, 76rem);
}
.hero-layout {
  position: relative;
  min-height: max(23rem, 100svh - var(--header-height));
  text-align: center;
}
.hero-visual {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  pointer-events: none;
}
.hero-fallback {
  position: absolute;
  top: 39%;
  left: 50%;
  width: min(31vw, 25rem, 51svh);
  height: auto;
  transform: translate(-50%, -50%);
  filter: grayscale(1) brightness(1.96);
}
.hero-model {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
}
.hero.is-3d .hero-fallback { visibility: hidden; }
.hero.is-3d .hero-model {
  visibility: visible;
  opacity: var(--mark-opacity, 1);
}
.hero-identity {
  position: absolute;
  inset: 57.5% 0 auto;
  opacity: var(--identity-opacity, 1);
  transform: translateY(var(--identity-y, 0px));
}
.hero-name {
  font-size: clamp(2.65rem, 4.7vw, 4.85rem);
  font-weight: 625;
  letter-spacing: -.068em;
  line-height: .98;
}
.hero-name span { font-weight: 455; }
.hero-discipline {
  margin-top: .86rem;
  color: #abbdb7;
  font-size: clamp(.74rem, 1.02vw, .91rem);
  text-transform: uppercase;
  letter-spacing: .15em;
  line-height: 1.3;
}
.hero-copy {
  position: absolute;
  inset: 78.5% 0 auto;
}
.hero-message {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 460;
  letter-spacing: -.036em;
  line-height: 1.08;
}
.hero-message em { color: var(--accent); white-space: nowrap; }
.hero.is-3d .hero-copy {
  top: 49%;
  opacity: var(--story-opacity, 0);
  transform: translateY(calc(-50% + var(--story-y, .8rem)));
  pointer-events: none;
}
.hero.is-3d .hero-message { font-size: clamp(2.3rem, 4.1vw, 4.85rem); }
.work {
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(2.7rem, 6vw, 5.5rem);
}
.hero.is-3d + .work {
  position: relative;
  margin-block-start: calc(-1 * clamp(4rem, 22svh, 13rem));
}
.work-grid {
  display: grid;
  align-items: start;
  max-width: 78rem;
  grid-template-columns: minmax(0, 1.055fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3.2vw, 3rem);
}
.work-link { display: block; min-width: 0; }
.work-link + .work-link { margin-top: clamp(1.25rem, 3.4vw, 3.3rem); }
.work-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.31;
  border: 1px solid var(--line);
  border-radius: clamp(.65rem, 1.32vw, 1.1rem);
  background: radial-gradient(ellipse at 43% 30%, #3c5153 0%, #243535 52%, #182323 100%);
}
.work-image--hair {
  background: radial-gradient(ellipse at 41% 36%, #484539 0%, #292b26 54%, #191f1c 100%);
}
.work-desktop,
.work-phone {
  position: absolute;
  height: auto;
  background: var(--ink);
  transition: transform .4s var(--move-ease);
}
.work-desktop {
  top: 12%;
  left: 5.5%;
  width: 80.5%;
  border: 1px solid #edf5f038;
  border-radius: clamp(.23rem, .62vw, .55rem);
  box-shadow: 0 .7rem 2rem #02060870;
}
.work-phone {
  right: 4.5%;
  bottom: 8%;
  width: 23.5%;
  border: clamp(2px, .32vw, 4px) solid #171d1e;
  border-radius: clamp(.45rem, 1.3vw, .95rem);
  box-shadow: 0 0 0 1px #d5e1da54, 0 .65rem 1.6rem #020608a3;
}
.work-name {
  display: block;
  margin-top: .95rem;
  color: var(--cream);
  font-size: clamp(1.06rem, 1.72vw, 1.45rem);
  font-weight: 570;
  letter-spacing: -.036em;
  line-height: 1.25;
  transition: color .2s ease;
}
.work-link:is(:hover, :focus-visible) .work-desktop { transform: translateY(-.2rem); }
.work-link:is(:hover, :focus-visible) .work-phone { transform: translateY(-.4rem); }
.work-link:is(:hover, :focus-visible) .work-name { color: var(--accent); }

[data-reveal].is-pending {
  opacity: .48;
  transform: translateY(.8rem);
}
[data-reveal].is-revealed {
  transition: opacity .56s var(--move-ease), transform .56s var(--move-ease);
}

html:has(dialog[open]) { overflow: hidden; }
.preview-dialog {
  width: min(67rem, 100% - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .62rem;
  color: var(--cream);
  background: var(--surface);
}
.preview-dialog::backdrop { background: #050505bf; backdrop-filter: blur(6px); }
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem .75rem .55rem 1rem;
}
.preview-toolbar h2 { font-size: 1rem; font-weight: 570; }
.preview-close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-size: 1.32rem;
}
.preview-close:hover { background: #ffffff12; }
.preview-dialog > img {
  width: 100%;
  max-height: calc(100dvh - 6rem);
  object-fit: contain;
  height: auto;
  background: var(--ink);
}

@media (max-width: 680px) {
  :root { --header-height: 3.95rem; }
  .brand { gap: .25rem; font-size: 1rem; }
  .brand img { width: 1.9rem; height: 1.9rem; }
  .hero-stage::before {
    background:
      radial-gradient(ellipse 69% 43% at var(--light-x, 62%) var(--light-y, 44%), #29413b, #24333050 57%, transparent 98%),
      radial-gradient(ellipse 66% 39% at 39% calc(var(--light-y, 44%) - 2%), #222a38, #171e2960 55%, transparent 98%);
  }
  .hero-fallback { width: min(74vw, 21rem, 53svh); }
  .hero-identity { inset-block-start: 53.75%; }
  .hero-name { font-size: clamp(2.53rem, 10.25vw, 3.9rem); }
  .hero-discipline { letter-spacing: .105em; }
  .hero.is-3d .hero-message { font-size: clamp(1.35rem, 7vw, 2.75rem); }
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .work-link + .work-link { margin-top: 0; }
  .work-name { margin-top: .7rem; }
}

@media (max-height: 475px) and (orientation: landscape) {
  .hero-layout { min-height: max(17.5rem, 100svh - var(--header-height)); }
  .hero-name { font-size: clamp(2.35rem, 10.8svh, 3.35rem); }
  .hero-discipline { margin-top: .5rem; }
  .hero.is-3d .hero-message { font-size: clamp(2.25rem, 9.8svh, 3.05rem); }
}
@media (max-width: 355px) {
  .brand { font-size: .94rem; }
  .brand img { width: 1.7rem; height: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal].is-pending { transform: none; }
  [data-reveal].is-pending { opacity: 1; }
}
