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

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

:root {
  color-scheme: dark;
  --bg: #0d0d0c;
  --surface: #141412;
  --surface-strong: #1a1a17;
  --line: #2b2a26;
  --line-strong: #3c3933;
  --text: #f2f0eb;
  --muted: #a8a49b;
  --subtle: #747068;
  --accent: #ef8b78;
  --accent-ink: #1b1210;
  --header: rgb(13 13 12 / 0.78);
  --shadow: rgb(0 0 0 / 0.32);
  --image-filter: saturate(0.88) contrast(1.02);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 72% 9%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "Geist", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.shell {
  width: min(100% - 2rem, 82rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: var(--header);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand,
.nav-actions,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  width: fit-content;
  gap: 0.75rem;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.brand-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 0.875rem;
  background: var(--surface-strong);
  color: var(--accent);
  font-family: "Geist Mono", monospace;
  font-size: 0.75rem;
}

.nav-links {
  gap: 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 560;
}

.nav-links a,
.text-link,
.project-link {
  transition: color 180ms ease;
}

.nav-links a:hover,
.text-link:hover,
.project-card:hover .project-link {
  color: var(--accent);
}

.nav-actions {
  justify-content: flex-end;
  gap: 0.65rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.875rem;
  font-size: 0.93rem;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, filter 180ms ease, background 180ms ease;
}

.button:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0.8rem 2.5rem color-mix(in srgb, var(--accent) 13%, transparent);
}

.button-compact {
  min-height: 2.55rem;
  padding-inline: 1rem;
  font-size: 0.84rem;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 75%, transparent);
  outline-offset: 4px;
}

.hero {
  display: grid;
  min-height: calc(100dvh - 4.5rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(24rem, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 8.4ch;
  margin: 0;
  font-size: clamp(3.55rem, 7.1vw, 6.8rem);
  font-weight: 735;
  letter-spacing: -0.075em;
  line-height: 0.93;
}

.hero-summary {
  max-width: 35rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions,
.paper-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.text-link {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 680;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.35rem;
}

.hero-visual {
  position: relative;
  margin: 0;
}

.hero-image-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  background: var(--surface);
  box-shadow: 0 2.5rem 7rem var(--shadow);
}

.hero-image-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  filter: var(--image-filter);
  object-fit: cover;
}

.hero-visual figcaption {
  margin-top: 0.8rem;
  color: var(--subtle);
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section-heading {
  max-width: 49rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading h2,
.about h2,
.closing h2 {
  margin: 0;
  font-size: clamp(2.55rem, 5vw, 4.8rem);
  font-weight: 710;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-heading > p:not(.eyebrow) {
  max-width: 42rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.research {
  border-top: 1px solid var(--line);
}

.paper-feature {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 0.65fr);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  background: var(--surface);
}

.paper-main,
.paper-details {
  padding: clamp(1.5rem, 4vw, 3.25rem);
}

.paper-main {
  border-right: 1px solid var(--line);
}

.paper-main h3 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 690;
  letter-spacing: -0.055em;
  line-height: 1.01;
}

.paper-authors,
.paper-abstract {
  max-width: 43rem;
  color: var(--muted);
}

.paper-authors {
  margin: 1.5rem 0 0;
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.7;
}

.paper-abstract {
  margin: 1.5rem 0 0;
  font-size: 1.04rem;
  line-height: 1.7;
}

.paper-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 12rem),
    var(--surface-strong);
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fact {
  display: flex;
  min-height: 7rem;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.875rem;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.fact-wide {
  min-height: 9rem;
}

.fact-value {
  color: var(--text);
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  font-weight: 710;
  letter-spacing: -0.04em;
}

.fact-label {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.paper-meta {
  display: grid;
  gap: 0.55rem;
  color: var(--subtle);
  font-family: "Geist Mono", monospace;
  font-size: 0.69rem;
}

.method-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  background: var(--surface);
}

.method-step {
  min-height: 11rem;
  padding: 1.35rem;
}

.method-step + .method-step {
  border-left: 1px solid var(--line);
}

.method-step span {
  display: block;
  color: var(--accent);
  font-weight: 720;
}

.method-step p {
  max-width: 15rem;
  margin: 2.6rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.projects {
  border-top: 1px solid var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  background: var(--surface);
  box-shadow: 0 1rem 4rem transparent;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms ease, box-shadow 240ms ease;
}

.project-card-wide {
  grid-column: span 7;
}

.project-card-tall {
  grid-column: span 5;
}

.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 1.5rem 5rem var(--shadow);
  transform: translateY(-6px);
}

.project-image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-strong);
}

.project-card-tall .project-image {
  aspect-ratio: 4 / 3;
}

.project-image img {
  width: 100%;
  height: 100%;
  filter: var(--image-filter);
  object-fit: cover;
  object-position: top;
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms ease;
}

.project-card:hover .project-image img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.025);
}

.project-image-halisa {
  display: grid;
  place-items: center;
  background: #15130f;
}

.project-image-halisa img {
  filter: brightness(0.84) saturate(0.72);
  object-fit: cover;
}

.project-copy {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem;
}

.project-copy h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.project-copy p {
  max-width: 31rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-link {
  flex: 0 0 auto;
  color: var(--subtle);
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  gap: clamp(3rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
}

.about-statement h2 {
  max-width: 15ch;
}

.about-body > p {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.focus-list {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
}

.focus-list > div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.focus-list strong {
  font-size: 0.92rem;
}

.focus-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.closing {
  display: flex;
  min-height: 31rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 22rem),
    var(--surface);
  text-align: center;
}

.closing p {
  max-width: 30rem;
  margin: 1rem 0 1.75rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 2rem;
  color: var(--subtle);
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner p:nth-child(2) {
  text-align: center;
}

.footer-inner p:last-child {
  text-align: right;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .enter {
    opacity: 0;
    animation: enter 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .enter-1 { animation-delay: 80ms; }
  .enter-2 { animation-delay: 160ms; }
  .enter-3 { animation-delay: 260ms; }
  .enter-4 { animation-delay: 360ms; }

  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  @keyframes enter {
    to {
      opacity: 1;
      transform: translateY(0);
    }
    from {
      opacity: 0;
      transform: translateY(20px);
    }
  }
}

@media (max-width: 960px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 4.5rem;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .hero-visual {
    width: min(100%, 45rem);
    margin-left: auto;
  }

  .paper-feature {
    grid-template-columns: 1fr;
  }

  .paper-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-step + .method-step {
    border-left: 0;
  }

  .method-step:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .method-step:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .project-card-wide,
  .project-card-tall {
    grid-column: span 6;
  }

  .about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 1.25rem, 82rem);
  }

  .nav {
    min-height: 4rem;
  }

  .brand-name {
    display: none;
  }

  .hero {
    min-height: calc(100dvh - 4rem);
    padding-block: 3.25rem 4rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .hero-summary {
    font-size: 1rem;
  }

  .hero-actions,
  .paper-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding-block: 4.5rem;
  }

  .section-heading h2,
  .about h2,
  .closing h2 {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
  }

  .paper-main,
  .paper-details {
    padding: 1.25rem;
  }

  .paper-main h3 {
    font-size: 2.35rem;
  }

  .method-flow {
    grid-template-columns: 1fr;
  }

  .method-step,
  .method-step:nth-child(even),
  .method-step:nth-child(n + 3) {
    min-height: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .method-step:first-child {
    border-top: 0;
  }

  .method-step p {
    margin-top: 1rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card-wide,
  .project-card-tall {
    grid-column: auto;
  }

  .project-card-tall .project-image,
  .project-image {
    aspect-ratio: 4 / 3;
  }

  .project-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .focus-list > div {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .closing {
    min-height: 25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .footer-inner p:nth-child(2),
  .footer-inner p:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
