@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #111610;
  --surface: #191f17;
  --fg: #f0f2e7;
  --muted: #b2bcad;
  --line: #394435;
  --accent: #ccfa85;
  --ink: #182411;
  --grid: #a9d18521;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7ee;
  --surface: #ffffff;
  --fg: #1b271b;
  --muted: #4d5d4c;
  --line: #cbd5c4;
  --accent: #38621a;
  --ink: #fff;
  --grid: #48673124;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.65 Geist, "Noto Sans KR", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; z-index: 3; top: 12px; left: 12px; padding: 8px 14px; background: var(--accent); color: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.header { display: flex; justify-content: space-between; align-items: center; min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 9px; align-items: center; font-size: 20px; font-weight: 750; letter-spacing: -.04em; }
.mark { display: grid; place-items: center; width: 32px; height: 32px; background: var(--accent); color: var(--ink); border-radius: 8px; font-size: 23px; }
nav { display: flex; align-items: center; gap: 27px; font-size: 14px; color: var(--muted); }
nav a:hover, .footer a:hover { color: var(--accent); }
#theme { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 21px; }
#theme:hover { border-color: var(--accent); color: var(--accent); }
.hero { min-height: 525px; display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 32px; padding-block: 66px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: .14em; }
.eyebrow i { display: inline-block; vertical-align: 2px; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; }
h1 { font-size: clamp(4rem, 9.7vw, 8.6rem); font-weight: 800; letter-spacing: -.095em; line-height: 1.03; margin: 12px 0 14px; }
h1 span { color: var(--accent); }
.hero-line { font-size: clamp(1.35rem, 3vw, 2.15rem); font-weight: 750; letter-spacing: -.065em; }
.intro { max-width: 380px; margin-top: 13px; color: var(--muted); word-break: keep-all; }
.explore { display: inline-flex; align-items: center; gap: 24px; margin-top: 29px; padding: 10px 17px; border-radius: 7px; background: var(--accent); color: var(--ink); font-size: 14px; font-weight: 700; }
.explore:hover { filter: brightness(1.12); }
.orbit { position: relative; aspect-ratio: 1; width: min(100%, 388px); justify-self: end; display: grid; place-items: center; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: 20px; color: var(--accent); background: radial-gradient(circle, var(--grid), transparent 74%); }
.orbit-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(black 32%, transparent 78%); }
.ring { position: absolute; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; }
.ring-outer { width: 78%; }
.ring-middle { width: 58%; border-style: dashed; }
.ring-inner { width: 36%; }
.orbit-axis { position: absolute; width: 88%; height: 1px; background: var(--line); }
.axis-vertical { transform: rotate(90deg); }
.orbit-center { z-index: 1; font-size: clamp(4rem, 10vw, 8rem); line-height: 1; }
.satellite { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: currentColor; left: calc(50% - 6px); top: calc(50% - 6px); animation: orbit 26s linear infinite; --radius: clamp(55px, 10.8vw, 150px); }
@keyframes orbit { from { transform: rotate(35deg) translateX(var(--radius)); } to { transform: rotate(395deg) translateX(var(--radius)); } }
.speck { position: absolute; top: 28%; left: 22%; width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }
.orbit-label { position: absolute; bottom: 16px; left: 19px; font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.projects, .about { scroll-margin-top: 24px; }
.projects { border-top: 1px solid var(--line); padding-top: 30px; }
.section-heading { margin-bottom: 18px; }
h2 { font-size: 28px; font-weight: 750; letter-spacing: -.055em; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { --tint: #a9eebf; --panel: #183329; display: flex; flex-direction: column; padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
a.card { transition: transform .2s ease, border-color .2s ease; }
a.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.escape { --tint: #e4caff; --panel: #332747; }
.ledger { --tint: #ffd7a4; --panel: #422e22; }
.music { --tint: #b5e5ff; --panel: #1f3445; }
.fairy { --tint: #ffe4a0; --panel: #3d3420; }
.card-top { display: flex; justify-content: space-between; align-items: center; min-height: 28px; margin-bottom: 13px; }
.category { color: var(--muted); font-size: 12px; font-weight: 600; }
.arrow { color: var(--accent); font-size: 22px; line-height: 1; }
.card-art { height: 114px; position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; overflow: hidden; background: var(--panel); border-radius: 8px; color: var(--tint); }
.card-art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 19px, #ffffff0e 19px 20px), repeating-linear-gradient(0deg, transparent 0 19px, #ffffff0e 19px 20px); mask-image: radial-gradient(black, transparent 90%); }
.skyline { align-items: end; padding-bottom: 20px; }
.skyline i { width: 21px; height: 38px; border: 1px solid currentColor; border-radius: 3px 3px 0 0; background: repeating-linear-gradient(0deg, transparent 0 7px, #ffffff32 7px 8px); }
.skyline i:nth-child(2) { height: 68px; }
.skyline i:nth-child(3) { height: 54px; }
.skyline i:nth-child(4) { height: 30px; }
.doorway i { position: absolute; bottom: 17px; width: 38px; height: 57px; border: 1px solid currentColor; border-radius: 24px 24px 0 0; }
.doorway i:nth-child(2) { width: 58px; height: 70px; opacity: .65; }
.doorway i:nth-child(3) { width: 78px; height: 83px; opacity: .4; }
.doorway b { z-index: 1; margin-top: 22px; }
.receipt i { position: absolute; width: 53px; height: 66px; border: 1px solid currentColor; border-radius: 5px; transform: rotate(-12deg); background: repeating-linear-gradient(0deg, transparent 0 10px, #ffffff23 10px 11px); }
.receipt b { z-index: 1; transform: rotate(-12deg); font-size: 24px; }
.fretboard i { position: absolute; width: 87px; height: 1px; background: currentColor; transform: rotate(-25deg); }
.fretboard i:nth-child(1) { margin-top: -30px; }
.fretboard i:nth-child(2) { margin-top: -10px; }
.fretboard i:nth-child(3) { margin-top: 10px; }
.fretboard i:nth-child(4) { margin-top: 30px; }
.clock i { position: relative; width: 60px; height: 60px; border: 1px solid currentColor; border-radius: 50%; }
.clock i::after { content: ""; position: absolute; top: 13px; left: 28px; width: 14px; height: 17px; border: solid currentColor; border-width: 0 0 2px 2px; }
.clock b { position: absolute; margin: -48px 0 0 75px; font-size: 20px; }
.card-copy { display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-top: 13px; font-size: 24px; letter-spacing: -.05em; }
.card p { margin: 5px 0 16px; color: var(--muted); font-size: 14px; word-break: keep-all; }
.address { margin-top: auto; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.fairy { display: block; max-width: 560px; margin-top: 16px; }
.fairy > summary { display: block; cursor: pointer; list-style: none; }
.fairy > summary::-webkit-details-marker { display: none; }
.fairy > summary:hover .address { color: var(--accent); }
.fairy[open] > summary .disclosure-arrow { transform: rotate(180deg); }
.install { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 11px 16px; border-radius: 8px; color: var(--ink); background: var(--accent); }
.install:hover { filter: brightness(1.12); }
.install small { display: block; font-size: 12px; }
.install > span:last-child { font-size: 22px; }
.demo { margin-top: 16px; border-top: 1px solid var(--line); }
.demo summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; padding-top: 12px; font-size: 14px; }
.demo summary::-webkit-details-marker { display: none; }
.demo summary:hover { color: var(--accent); }
.demo[open] .disclosure-arrow { transform: rotate(180deg); }
.project-demo { margin: 16px 0 0; }
.project-demo figcaption { margin-bottom: 10px; font-weight: 700; }
.project-demo figcaption span { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.project-demo video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 12px; background: #111; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-top: 58px; border-block: 1px solid var(--line); padding-block: 30px; }
.about h2 { margin-top: 4px; }
.about-copy { max-width: 660px; color: var(--muted); word-break: keep-all; }
.social { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding-block: 23px; color: var(--muted); font-size: 13px; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); min-height: 410px; gap: 18px; }
  h1 { font-size: clamp(3.6rem, 10vw, 6rem); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 14px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .header { min-height: 64px; }
  .brand { font-size: 17px; }
  nav { gap: 12px; font-size: 13px; }
  #theme { width: 36px; height: 36px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 43px 32px; }
  h1 { font-size: clamp(3.3rem, 13.2vw, 5.2rem); }
  .orbit { width: 100%; height: 185px; aspect-ratio: auto; }
  .ring-outer { width: 158px; }
  .ring-middle { width: 119px; }
  .ring-inner { width: 78px; }
  .orbit-axis { width: 160px; }
  .orbit-center { font-size: 57px; }
  .satellite { --radius: 79px; }
  .cards, .about { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 17px; }
  .about { gap: 14px; margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .satellite { transform: translate(42px, -40px); }
}
