@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ocean: #030d11;
  --ink: #dce8e5;
  --muted: #afc2c1;
  --accent: #8baea9;
  --line: rgba(192, 216, 212, 0.45);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --gutter: clamp(24px, 3.35vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ocean); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }
::selection { background: #8baea9; color: var(--ocean); }
.skip-link { position: fixed; top: 16px; left: 16px; z-index: 10; padding: 12px 18px; background: var(--ink); color: var(--ocean); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
.hero-scene { position: absolute; inset: 0; z-index: -1; animation: ocean-breath 24s ease-in-out infinite alternate; will-change: transform; }
.hero-scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.site-header { position: absolute; inset: 24px var(--gutter) auto; display: flex; justify-content: space-between; align-items: center; }
.wordmark { font: 400 29px/1 var(--serif); letter-spacing: 0.075em; }
.nav-link { display: inline-flex; gap: 12px; align-items: center; padding: 12px 0 12px 16px; font-size: 14px; letter-spacing: 0.06em; }
.nav-link span { font-size: 20px; transition: transform 250ms ease; }
.nav-link:hover span { transform: translate(3px, -3px); }
.hero-content { position: absolute; top: 22.3%; right: 24px; left: 24px; text-align: center; will-change: transform, opacity; }
.hero h1 { font: 400 clamp(100px, 12.4vw, 220px)/1.08 var(--serif); letter-spacing: -0.055em; animation: emerge 1400ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.hero h1:focus { outline: none; }
.hero-description { margin-top: clamp(32px, 4.2vh, 56px); font-size: clamp(17px, 1.35vw, 22px); line-height: 1.85; letter-spacing: 0.045em; animation: emerge 1400ms 180ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.descend { display: inline-flex; flex-direction: column; align-items: center; gap: 19px; margin-top: clamp(38px, 5.2vh, 68px); padding: 4px 12px 12px; font-size: 13px; letter-spacing: 0.015em; animation: emerge 1400ms 350ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.descend-circle { display: grid; width: 57px; height: 57px; border: 1px solid rgba(218, 235, 230, 0.65); border-radius: 50%; place-items: center; transition: border-color 250ms, background 250ms, transform 250ms; }
.descend svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms; }
.descend:hover .descend-circle { border-color: var(--ink); background: rgba(139, 174, 169, 0.09); transform: scale(1.08); }
.descend:hover svg { transform: translateY(3px); }
.hero-footnote { position: absolute; inset: auto var(--gutter) 36px; display: flex; justify-content: space-between; gap: 24px; font: 400 16px/1.4 var(--serif); letter-spacing: 0.1em; }
.lab { position: relative; display: flex; min-height: 100svh; flex-direction: column; background: var(--ocean) url("/assets/current.webp") center / cover no-repeat; }
.lab-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7.5vw, 128px); flex: 1; padding: clamp(120px, 23.5vh, 250px) clamp(24px, 5.6vw, 96px) clamp(100px, 18vh, 190px); }
.section-index { margin-bottom: 28px; color: var(--muted); font: 400 14px/1.4 var(--serif); letter-spacing: 0.4em; }
.lab h2 { font: 400 clamp(62px, 8.1vw, 132px)/1.02 var(--serif); letter-spacing: -0.035em; }
.lab h2:focus { outline: none; }
.lab-description { margin-top: 34px; font-size: clamp(15px, 1.25vw, 20px); line-height: 1.85; color: var(--ink); word-break: keep-all; }
.experiments { margin-top: 43px; }
.experiment { padding: 46px 0 54px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.experiment + .experiment { border-top: 0; }
.experiment-index { color: var(--muted); font-size: 14px; line-height: 1.6; }
.experiment h3 { margin: 23px 0; font-weight: 400; font-size: clamp(22px, 2.05vw, 34px); line-height: 1.5; letter-spacing: -0.035em; word-break: keep-all; }
.experiment > p:not(.experiment-index) { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.85; word-break: keep-all; }
.experiment .experiment-note { margin-top: 29px; color: var(--muted); }
.project-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow-wrap: anywhere; }
.project-link span { color: var(--accent); transition: transform 250ms; }
.project-link:hover span { transform: translate(4px, -4px); }
.site-footer { margin: 0 var(--gutter); padding: 38px clamp(0px, 2.25vw, 36px) 45px; border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.footer-main .wordmark { letter-spacing: 0; font-size: 32px; }
.footer-main p { font: 400 16px/1.5 var(--serif); letter-spacing: 0.16em; }
.surface-link { justify-self: end; padding: 8px 0; border-bottom: 1px solid var(--muted); font-size: 13px; transition: color 250ms, border-color 250ms; }
.surface-link:hover { color: white; border-color: white; }
.surface-link span { display: inline-block; margin-left: 4px; }
.footer-meta { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; color: var(--muted); font: 400 14px/1.4 var(--serif); letter-spacing: 0.16em; }
.motion-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.6, 0.2, 1); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
.motion-ready .experiments.reveal { transition-delay: 150ms; }
@keyframes emerge { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ocean-breath { from { transform: scale(1); } to { transform: scale(1.025); } }

@media (max-width: 900px) {
  .hero { min-height: 600px; }
  .hero-content { top: 26%; }
  .hero h1 { font-size: clamp(96px, 17vw, 160px); }
  .lab-layout { grid-template-columns: 1fr; gap: 58px; padding: 110px var(--gutter) 100px; }
  .lab h2 { font-size: clamp(68px, 11vw, 100px); }
  .lab-description { margin-top: 32px; }
  .experiments { margin-top: 0; }
  .experiment { padding: 32px 0 40px; }
  .footer-main { grid-template-columns: 1fr auto; row-gap: 28px; }
  .footer-main p { grid-column: 1 / -1; grid-row: 2; }
  .site-footer { padding: 32px 0; }
  .footer-meta { margin-top: 32px; }
}
@media (max-width: 600px) {
  .hero { min-height: 570px; }
  .site-header { top: 20px; }
  .site-header .wordmark { font-size: 25px; }
  .nav-link { font-size: 12px; gap: 8px; }
  .hero-content { top: 25%; right: 16px; left: 16px; }
  .hero h1 { font-size: clamp(84px, 23vw, 132px); }
  .hero-description { margin-top: 30px; font-size: 15px; letter-spacing: 0.02em; line-height: 1.9; }
  .descend { margin-top: 34px; font-size: 12px; gap: 15px; }
  .descend-circle { width: 50px; height: 50px; }
  .hero-footnote { bottom: 28px; align-items: flex-end; font-size: 13px; letter-spacing: 0.055em; }
  .hero-footnote > :first-child { max-width: 190px; }
  .hero-footnote > :last-child { flex-shrink: 0; }
  .section-index { margin-bottom: 25px; font-size: 12px; }
  .lab-layout { padding-top: 88px; padding-bottom: 80px; }
  .lab h2 { font-size: clamp(58px, 15.5vw, 80px); }
  .lab-description { font-size: 14px; }
  .experiment h3 { font-size: 23px; }
  .experiment > p:not(.experiment-index) { font-size: 14px; }
  .experiment-index { font-size: 12px; }
  .footer-main .wordmark { font-size: 29px; }
  .footer-main p { max-width: 270px; font-size: 14px; line-height: 1.65; }
  .footer-meta { font-size: 12px; }
}
@media (max-height: 700px) and (min-width: 901px) {
  .hero { min-height: 540px; }
  .hero-content { top: 19%; }
  .hero h1 { font-size: min(12vw, 145px); }
  .hero-description { margin-top: 22px; font-size: 17px; }
  .descend { margin-top: 24px; gap: 12px; }
  .descend-circle { width: 48px; height: 48px; }
  .hero-footnote { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .hero-content { will-change: auto; }
  .hero-scene { will-change: auto; }
}
