:root {
  --bg: #080808;
  --bg-alt: #0b0c10;
  --panel: #111111;
  --panel-soft: #14161d;
  --text: #f0ede8;
  --muted: #d4cfc8;
  --dim: #8e8880;
  --amber: #c8882a;
  --amber-bright: #e2ad5c;
  --amber-soft: rgba(200, 136, 42, 0.18);
  --crimson: #4b1518;
  --slate: #1b2430;
  --line: rgba(240, 237, 232, 0.12);
  --line-soft: rgba(240, 237, 232, 0.08);
  --shadow: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 14%, rgba(200, 136, 42, 0.16), transparent 30rem),
    radial-gradient(circle at 14% 44%, rgba(75, 21, 24, 0.22), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--bg-alt) 54%, #070707);
  color: var(--text);
  font-family: Inter, Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.055) 0 1px, transparent 1.6px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 5px 5px, 4px 4px, 4px 4px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

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

.site-shell {
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.46), transparent);
  backdrop-filter: blur(12px);
  transition: background 160ms ease, border-color 160ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(240, 237, 232, 0.08);
  background: rgba(8, 8, 8, 0.82);
}

.brand,
.site-nav,
.hero-meta,
.status,
.tag-cloud span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(226, 173, 92, 0.32),
    0 0 1.5rem rgba(200, 136, 42, 0.22);
}

.brand-name {
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  color: rgba(240, 237, 232, 0.68);
  font-size: 0.7rem;
  font-weight: 700;
}

.site-nav a {
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover {
  color: var(--amber);
}

.section-band {
  position: relative;
  padding: clamp(5rem, 8vw, 8.5rem) clamp(1rem, 4vw, 3rem);
}

.section-band + .section-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(72rem, calc(100% - 2rem));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 136, 42, 0.2), transparent);
  transform: translateX(-50%);
}

.hero {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding-top: 7.25rem;
  padding-bottom: 6.25rem;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse at 50% 38%, rgba(226, 173, 92, 0.08), transparent 28rem),
    radial-gradient(ellipse at 50% 62%, rgba(240, 237, 232, 0.04), transparent 34rem),
    linear-gradient(180deg, rgba(8, 8, 8, 0.04), rgba(8, 8, 8, 0.74));
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 54%, rgba(255, 255, 255, 0.05), transparent 24rem),
    radial-gradient(ellipse at 76% 42%, rgba(200, 136, 42, 0.07), transparent 28rem),
    repeating-linear-gradient(116deg, rgba(255, 255, 255, 0.034) 0 1px, transparent 1px 18px);
  opacity: 0.36;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at 50% 48%, black 0 48%, transparent 78%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(54rem, 76vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 136, 42, 0.55), transparent);
  box-shadow: 0 0 2rem rgba(200, 136, 42, 0.22);
  transform: translateX(-50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 72rem);
  margin: 0 auto;
  text-align: center;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(4.2rem, 8vw, 6.4rem);
  aspect-ratio: 1;
  margin: 0 auto 1.35rem;
  border: 1px solid rgba(226, 173, 92, 0.42);
  border-radius: 1.2rem;
  overflow: hidden;
  background: rgba(8, 8, 8, 0.48);
  box-shadow:
    inset 0 0 2rem rgba(200, 136, 42, 0.08),
    0 0 2.5rem rgba(200, 136, 42, 0.18),
    0 1.2rem 3rem rgba(0, 0, 0, 0.5);
}

.hero-mark::before,
.hero-mark::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.hero-mark::before {
  inset: -0.55rem;
  border: 1px solid rgba(200, 136, 42, 0.16);
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.hero-mark::after {
  inset: 0.55rem;
  border: 1px solid rgba(240, 237, 232, 0.1);
  border-left-color: transparent;
}

.hero-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.4rem, 13.6vw, 11.5rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow:
    0 0 1rem rgba(226, 173, 92, 0.18),
    0 0 3.2rem rgba(200, 136, 42, 0.12),
    0 1.5rem 3rem rgba(0, 0, 0, 0.55);
}

h2 {
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
}

h3 {
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.05;
}

.hero-copy {
  max-width: 44rem;
  margin: 0 auto 1.15rem;
  color: var(--muted);
  font-size: clamp(1.04rem, 2.1vw, 1.38rem);
  line-height: 1.55;
}

.hero-lab-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 auto 2.1rem;
}

.hero-lab-line span {
  padding: 0.44rem 0.68rem;
  border: 1px solid rgba(240, 237, 232, 0.1);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(8, 8, 8, 0.24)),
    rgba(8, 8, 8, 0.28);
  color: rgba(212, 207, 200, 0.76);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta,
.ghost-link,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border: 1px solid rgba(200, 136, 42, 0.5);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.cta {
  min-width: 9rem;
  padding: 0 1.4rem;
  background: rgba(200, 136, 42, 0.08);
  box-shadow: 0 0 2rem rgba(200, 136, 42, 0.12);
}

.cta:hover,
.ghost-link:hover,
.contact-link:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 136, 42, 0.9);
  background: rgba(200, 136, 42, 0.13);
  box-shadow: 0 0 1.4rem rgba(200, 136, 42, 0.11);
}

.cta:focus-visible,
.ghost-link:focus-visible,
.contact-link:focus-visible,
.site-nav a:focus-visible {
  outline: 1px solid rgba(200, 136, 42, 0.78);
  outline-offset: 4px;
}

.hero-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-field::before,
.hero-field::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
}

.hero-field::before {
  background:
    radial-gradient(ellipse at 44% 40%, rgba(255, 255, 255, 0.07), transparent 18%),
    radial-gradient(ellipse at 58% 52%, rgba(200, 136, 42, 0.12), transparent 22%),
    radial-gradient(ellipse at 36% 58%, rgba(75, 21, 24, 0.18), transparent 24%);
  filter: blur(2.8rem);
  opacity: 0.46;
}

.hero-field::after {
  background:
    conic-gradient(from 18deg at 50% 50%, transparent 0 18%, rgba(226, 173, 92, 0.08) 24%, transparent 32% 62%, rgba(255, 255, 255, 0.035) 70%, transparent 82%),
    radial-gradient(circle at 50% 50%, transparent 0 21rem, rgba(8, 8, 8, 0.5) 35rem);
  opacity: 0.42;
  transform: rotate(-8deg);
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(3.25rem);
  opacity: 0.58;
}

.glow-one {
  width: 34rem;
  height: 34rem;
  top: 9%;
  left: 50%;
  background: rgba(200, 136, 42, 0.22);
  transform: translateX(-50%);
}

.glow-two {
  width: 24rem;
  height: 24rem;
  right: 8%;
  bottom: 10%;
  background: rgba(75, 21, 24, 0.32);
}

.sigil-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(74vw, 44rem);
  aspect-ratio: 1;
  border: 1px solid rgba(200, 136, 42, 0.17);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    inset 0 0 4rem rgba(200, 136, 42, 0.08),
    0 0 6rem rgba(0, 0, 0, 0.5);
}

.sigil-ring::before,
.sigil-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.sigil-ring::before {
  inset: 10%;
  border: 1px solid rgba(240, 237, 232, 0.055);
}

.sigil-ring::after {
  inset: -8%;
  border: 1px solid rgba(200, 136, 42, 0.075);
  border-left-color: transparent;
  border-right-color: transparent;
}

.hero-meta {
  position: absolute;
  z-index: 2;
  left: clamp(1rem, 4vw, 3rem);
  right: clamp(1rem, 4vw, 3rem);
  bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 4vw, 2.5rem);
  color: rgba(212, 207, 200, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
}

.split-layout,
.section-heading,
.contact-inner,
.media-frame,
.lab-panel {
  width: min(100%, 72rem);
  margin: 0 auto;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.75fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.body-stack {
  color: var(--muted);
  font-size: 1.02rem;
}

.body-stack p:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.4rem;
}

.section-heading p {
  color: var(--dim);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.05rem;
  width: min(100%, 72rem);
  margin: 0 auto;
}

.project-card {
  position: relative;
  min-height: 22rem;
  padding: 1.35rem;
  border: 1px solid rgba(240, 237, 232, 0.11);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(226, 173, 92, 0.12), transparent 11rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 42%),
    linear-gradient(180deg, var(--panel-soft), var(--panel));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 1.5rem 4rem var(--shadow);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 173, 92, 0.33);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 1.8rem 4.2rem rgba(0, 0, 0, 0.62),
    0 0 2.2rem rgba(200, 136, 42, 0.08);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  right: 1.05rem;
  width: 2.6rem;
  aspect-ratio: 1;
  border: 1px solid rgba(200, 136, 42, 0.18);
  border-left-color: transparent;
  border-radius: 50%;
  opacity: 0.78;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -32% 8%;
  height: 11rem;
  background:
    radial-gradient(circle, rgba(226, 173, 92, 0.18), transparent 62%),
    linear-gradient(90deg, transparent, rgba(200, 136, 42, 0.08), transparent);
  opacity: 0.78;
  transition: opacity 180ms ease;
}

.project-card:hover::after {
  opacity: 1;
}

.card-index {
  display: block;
  margin-bottom: 5rem;
  color: rgba(200, 136, 42, 0.72);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
  text-shadow: 0 0 1.4rem rgba(200, 136, 42, 0.18);
}

.project-card h3 {
  position: relative;
  z-index: 1;
}

.project-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.93rem;
}

.status {
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 2;
  color: rgba(240, 237, 232, 0.72);
  font-size: 0.65rem;
  font-weight: 700;
}

.lab-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid rgba(200, 136, 42, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 10%, rgba(200, 136, 42, 0.12), transparent 20rem),
    linear-gradient(135deg, rgba(20, 22, 29, 0.92), rgba(17, 17, 17, 0.92));
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag-cloud span {
  padding: 0.58rem 0.75rem;
  border: 1px solid rgba(240, 237, 232, 0.12);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.34);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.media-frame,
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(2.35rem, 5vw, 3.75rem) 0;
}

.media-frame p {
  max-width: 34rem;
  color: var(--muted);
}

.ghost-link,
.contact-link {
  flex: 0 0 auto;
  padding: 0 1.2rem;
}

.contact-link {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: var(--muted);
  border-color: rgba(240, 237, 232, 0.18);
  background: rgba(8, 8, 8, 0.18);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: rgba(212, 207, 200, 0.54);
  font-size: 0.8rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout,
  .section-heading,
  .lab-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 94svh;
    padding-top: 6.6rem;
    padding-bottom: 7rem;
  }

  h1 {
    font-size: clamp(3.65rem, 19vw, 5.85rem);
    line-height: 0.86;
  }

  .hero-copy {
    max-width: 24rem;
    font-size: 1rem;
  }

  .hero-mark {
    margin-bottom: 1rem;
  }

  .hero-lab-line {
    gap: 0.4rem;
    margin-bottom: 1.7rem;
  }

  .hero-lab-line span {
    font-size: 0.61rem;
    padding: 0.38rem 0.55rem;
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    bottom: 1.1rem;
  }

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

  .project-card {
    min-height: 18rem;
    padding: 1.2rem;
  }

  .card-index {
    margin-bottom: 3rem;
  }

  .media-frame,
  .contact-inner,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ghost-link,
  .contact-link {
    width: 100%;
  }
}
