:root {
  --bg: #000011;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.42);
  --slot: #0c0c18;
  --font: "Aeonik Soft", Inter, system-ui, sans-serif;
  --inset: clamp(1.25rem, 2.2vw, 2.125rem);
  --display: clamp(3.5rem, 12vw, 13.75rem);
  --section: clamp(2.5rem, 6vw, 6rem);
  --row: clamp(1.5rem, 2.4vw, 2.25rem);
  --body: clamp(1rem, 1.5vw, 1.5rem);
  --meta: clamp(0.875rem, 1.1vw, 1.125rem);
  --gap: clamp(1.5rem, 3vw, 3.5rem);
}

@font-face {
  font-family: "Aeonik Soft";
  src: url("fonts/AeonikSoft-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik Soft";
  src: url("fonts/AeonikSoft-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  scrollbar-width: none;
  padding-bottom: 7rem;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.35;
  font-weight: 400;
}

img {
  max-width: 100%;
  display: block;
}

strong {
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: none;
}

.skip {
  position: absolute;
  left: var(--inset);
  top: 0;
  transform: translateY(-120%);
  background: var(--fg);
  color: var(--bg);
  padding: 0.4rem 0.8rem;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: auto;
  max-width: none;
  margin-inline: 25px;
}

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.display {
  margin: 0;
  font-size: var(--display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 42rem;
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  font-size: var(--body);
}

.name {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: clamp(2.5rem, 8vw, 5.5rem) 0 0;
  padding: 0.35rem 25px 0.85rem;
  text-align: center;
  font-size: var(--display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(to bottom, var(--bg) 62%, transparent);
}

.name.is-small {
  background: linear-gradient(to bottom, var(--bg) 0, color-mix(in srgb, var(--bg) 70%, transparent) 1.35rem, transparent 3.4rem);
  padding-top: 0.7rem;
  padding-bottom: 2.2rem;
}

.hero {
  padding-top: 0;
}

.dock {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  width: max-content;
  max-width: calc(100vw - 1.5rem);
  margin: 0;
  padding: 0;
}

.pill {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.35rem 1.2rem;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-size: var(--body);
  line-height: 1;
  text-decoration: none;
}

.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  backdrop-filter: blur(28px) saturate(1.85);
  -webkit-backdrop-filter: blur(28px) saturate(1.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -10px 18px rgba(255, 255, 255, 0.04);
}

.pill:has(.avatar) {
  padding-left: 0.35rem;
}

.avatar {
  display: block;
  flex: none;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 50%;
  overflow: hidden;
  transform: translateZ(0);
}

.avatar video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  border-radius: 50%;
  transform: translateZ(0);
}

.section {
  padding: var(--gap) 0;
}

.section h2,
.page-title {
  margin: 0 0 1rem;
  font-size: var(--section);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.kicker {
  margin: 0 0 0.5rem;
  font-size: var(--body);
}

.shots {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: var(--gap) 0 0;
  padding: 0;
}

.shot-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 800px;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
}

.shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center;
  transition: transform 150ms ease;
}

.shot-frame:hover .shot {
  transform: scale(0.95);
}

.shot-tip {
  position: fixed;
  z-index: 40;
  left: 0;
  top: 0;
  display: grid;
  gap: 0.05rem;
  width: max-content;
  max-width: 16rem;
  margin: 0;
  padding: 0.45rem 0.6rem 0.5rem;
  border: 0;
  background: rgba(12, 12, 16, 0.82);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.shot-frame:hover .shot-tip {
  opacity: 1;
}

.shot-kicker {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.shot-tip strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.shot-tip span:not(.shot-kicker) {
  font-size: 0.78rem;
}

.project-index {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.project-index a {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  font-size: var(--body);
  text-decoration: none;
}

.project-index a:hover .project-index-title {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.rows {
  display: grid;
  grid-template-columns: minmax(14rem, 28%) minmax(0, 1fr) max-content;
  column-gap: 2.5rem;
}

.row {
  display: grid;
  grid-template-columns: minmax(14rem, 28%) minmax(0, 1fr) max-content;
  column-gap: 2.5rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.rows > .row {
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
}

.row > span,
.row-stack:not(.row-end) {
  text-align: left;
  justify-self: start;
}

.row strong {
  font-size: var(--row);
  font-weight: 400;
}

.row-stack {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.row-end {
  text-align: right;
  white-space: nowrap;
}

.row-label {
  min-width: 0;
}

.chrono {
  grid-template-columns: minmax(0, 1fr) auto;
}

.arrow {
  display: inline-block;
  margin-left: 0.75rem;
}

a.row:hover {
  text-decoration: none;
}

a.row:hover .row-label,
a.row:hover strong {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.row span,
.meta {
  font-size: var(--meta);
}

.stack {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.stack h3 {
  margin: 0;
  font-size: var(--row);
  font-weight: 400;
}

.stack ul,
.prose ul,
.prose ol {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.prose {
  display: grid;
  gap: 1rem;
  max-width: 62rem;
}

.prose h2 {
  margin: 1.5rem 0 0;
  font-size: var(--row);
  font-weight: 400;
}

.prose h3 {
  margin: 0.5rem 0 0;
  font-size: var(--body);
  font-weight: 400;
}

.prose p,
.prose li {
  margin: 0;
}

.prose hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.5rem 0;
}

.page-head {
  padding: clamp(3rem, 8vw, 6rem) 0 1rem;
}

.page-head .page-title {
  max-width: 16ch;
}

.subhead {
  margin: 0.5rem 0 0;
  font-size: var(--row);
  font-weight: 400;
}

.meta-line {
  margin: 1rem 0 0;
  font-size: var(--meta);
  color: var(--muted);
}

.placeholder,
.cal-slot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.4rem;
  min-height: clamp(14rem, 32vw, 32rem);
  background: var(--slot);
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 1.5rem;
}

.placeholder p,
.cal-slot p {
  margin: 0;
  font-size: var(--meta);
}

.cal-slot iframe {
  width: 100%;
  min-height: 40rem;
  border: 0;
  background: var(--fg);
}

.figure {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.figure figcaption {
  font-size: var(--meta);
  color: var(--muted);
}

blockquote {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--fg);
}

blockquote p {
  margin: 0;
  font-size: var(--row);
  line-height: 1.15;
}

blockquote footer {
  margin-top: 0.75rem;
  font-size: var(--meta);
  color: var(--muted);
}

details {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0;
}

details summary {
  cursor: pointer;
  font-size: var(--body);
}

.sources {
  padding-left: 1.1rem;
}

.sources a {
  color: var(--muted);
}

.post-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-list a {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.post-list a:last-child {
  border-bottom: 1px solid var(--line);
}

.post-list strong {
  font-size: var(--row);
  font-weight: 400;
}

.site-footer {
  padding: 4.5rem 0 8rem;
  font-size: var(--meta);
  color: var(--fg);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(10rem, 1.3fr) minmax(10rem, 1.4fr) auto;
  gap: 2rem 3rem;
  align-items: start;
}

.site-footer .footer-label {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: calc(var(--meta) - 4px);
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

.footer-end {
  text-align: right;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-end {
    text-align: left;
  }

  .shots,
  .row {
    grid-template-columns: 1fr;
  }

  .row-end {
    white-space: normal;
    text-align: left;
  }

  .project-index a {
    grid-template-columns: 2.2rem 1fr;
  }
}

.prose.about-copy {
  max-width: 69rem;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.28;
  letter-spacing: -0.03em;
  gap: 1.75rem;
}

.prose.about-copy p {
  margin: 0;
}

.about-head {
  text-align: center;
}

.about-head .page-title {
  max-width: none;
}

.about-bubble {
  width: 250px;
  height: 250px;
  margin: 1.5rem auto 0;
  border-radius: 50%;
  overflow: hidden;
  transform: translateZ(0);
}

.about-bubble video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  transform: translateZ(0);
}

html.motion .row,
html.motion .site-footer {
  opacity: 0;
  transform: translateY(2.25rem);
}

html.motion .row.is-in,
html.motion .site-footer.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lede.is-typing::after,
.about-copy p.is-typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-left: 0.15em;
  background: currentColor;
  vertical-align: text-bottom;
}

@media (prefers-reduced-motion: reduce) {
  html.motion .row,
  html.motion .site-footer {
    opacity: 1;
    transform: none;
  }
}

.social-link {
  transition: color 0.18s ease;
}

.social-link:hover {
  color: var(--neon);
}
