:root {
  color-scheme: dark;
  --bg: #000;
  --text: #fff;
  --accent: #2457ff;
  --paper: #f5f5f3;
  --ink: #101114;
  --muted: #555963;
  --content-width: 1600px;
  --page-gutter: clamp(28px, 5vw, 96px);
  --page-inset: max(var(--page-gutter), calc((100vw - var(--content-width)) / 2));
  --header-height: 96px;
  font-family: Arial, "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid #547cff; outline-offset: 6px; }
.skip-link { position: fixed; z-index: 30; top: -80px; left: 16px; padding: 16px; background: #fff; color: #000; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: var(--header-height); padding: 0 var(--page-inset); background: #000; }
.brand { text-decoration: none; font-family: "Arial Black", Arial, sans-serif; font-size: 36px; font-weight: 900; letter-spacing: -.07em; }
.site-nav { display: flex; align-items: center; gap: 48px; }
.site-nav a { padding: 10px 0; text-decoration: none; font-size: 16px; font-weight: 700; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 8px; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(680px, calc(100svh - var(--header-height)), 1100px); padding: 64px var(--page-inset) 144px; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin: 0; font-size: clamp(64px, 6.7vw, 124px); line-height: 1.25; font-weight: 900; letter-spacing: -.075em; word-break: keep-all; }
.hero h1 span { display: block; }
.hero h1 span + span { margin-left: .8em; }
.hero-stage { position: absolute; z-index: -1; top: -13%; right: -9%; width: min(71vw, 1300px); color: var(--accent); transform: rotate(-11deg); opacity: .8; }
.hero-stage svg { display: block; width: 100%; height: auto; }
.hero-copy, .hero-stage { animation: arrival .85s ease-out both; }
.hero-stage { animation-delay: .1s; }
@keyframes arrival { from { opacity: 0; translate: 0 24px; } }
.hero-bottom { position: absolute; left: var(--page-inset); right: var(--page-inset); bottom: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.hero-bottom > span { font-size: 15px; color: #c4c4c4; }
.hero-link { display: inline-flex; align-items: center; gap: 42px; text-decoration: none; font-weight: 700; font-size: 15px; }
.hero-link span { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #777; border-radius: 50%; font-size: 24px; transition: background .2s, border-color .2s; }
.hero-link:hover span { background: var(--accent); border-color: var(--accent); }
.projects-section { color-scheme: light; padding: 120px var(--page-inset) 140px; background: var(--paper); color: var(--ink); scroll-margin-top: var(--header-height); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 72px; }
.section-heading h2 { margin: 0; font-family: "Arial Black", Arial, sans-serif; font-size: clamp(64px, 7vw, 112px); font-weight: 900; line-height: 1; letter-spacing: -.07em; }
.project-count { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.project-list { display: grid; gap: 96px; }
.project-card, .project-empty { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 5.5vw, 100px); }
.project-card { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.card-preview, .dialog-image, .empty-preview { display: grid; place-items: center; aspect-ratio: 16 / 9; min-width: 0; overflow: hidden; background: #e7e8e9; }
.card-preview img, .dialog-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-preview { transition: box-shadow .2s ease; }
.project-card:hover .card-preview { box-shadow: 0 0 0 3px var(--accent); }
.card-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.card-type { color: var(--muted); font-size: 13px; }
.card-name { display: block; margin: 20px 0 24px; font-size: clamp(32px, 3.4vw, 60px); line-height: 1.15; font-weight: 800; letter-spacing: -.065em; overflow-wrap: anywhere; }
.card-description { max-width: 31em; font-size: 17px; line-height: 1.85; color: var(--muted); word-break: keep-all; }
.card-more { display: inline-block; margin-top: 30px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 14px; font-weight: 700; }
.project-card:hover .card-more { color: var(--accent); border-color: var(--accent); }
.empty-preview-mark { display: none; }
.empty-copy h3 { font-size: 32px; }
.empty-copy p { color: var(--muted); line-height: 1.8; }
.site-footer { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 80px var(--page-inset); background: #000; }
.footer-brand { font-family: "Arial Black", Arial, sans-serif; font-size: clamp(64px, 10vw, 160px); line-height: .95; font-weight: 900; letter-spacing: -.075em; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; padding-bottom: 6px; font-size: 14px; color: #bbb; }
.footer-right a { color: #fff; text-underline-offset: 6px; }
.project-dialog { color-scheme: light; width: min(1440px, calc(100vw - 96px)); max-width: none; max-height: calc(100svh - 64px); padding: 0; border: 0; overflow: auto; background: var(--paper); color: var(--ink); }
.project-dialog::backdrop { background: #000c; backdrop-filter: blur(8px); }
body:has(.project-dialog[open]) { overflow: hidden; }
.dialog-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 64px); padding: 72px 48px 56px; }
.dialog-close { position: absolute; top: 14px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 36px; cursor: pointer; }
.dialog-close:hover { background: #e4e4e3; }
.dialog-preview { min-width: 0; }
.dialog-image { width: 100%; }
.dialog-content { min-width: 0; }
.dialog-type { color: var(--muted); font-size: 13px; }
.dialog-content h2 { margin: 20px 0 24px; font-size: clamp(32px, 3.4vw, 56px); line-height: 1.15; letter-spacing: -.055em; overflow-wrap: anywhere; }
.dialog-content p { margin: 0; font-size: 17px; line-height: 1.85; color: var(--muted); white-space: pre-wrap; word-break: keep-all; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.dialog-link { display: inline-flex; align-items: center; min-height: 48px; padding: 13px 18px; border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; }
.dialog-link-secondary { color: var(--ink); background: transparent; }
.dialog-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.dialog-link[hidden] { display: none; }
@media (max-width: 1000px) {
  .hero h1 { font-size: clamp(48px, 7.5vw, 75px); }
  .hero-stage { width: 95vw; right: -36%; top: 0; opacity: .65; }
  .project-card, .project-empty { grid-template-columns: 1.2fr 1fr; gap: 32px; }
  .card-description { font-size: 15px; }
  .card-name { font-size: 32px; }
  .dialog-shell { grid-template-columns: 1fr; gap: 32px; padding: 64px 32px 32px; }
}
@media (max-width: 620px) {
  :root { --page-gutter: 24px; --header-height: 76px; }
  .brand { font-size: 28px; }
  .site-nav { gap: 22px; }
  .site-nav a { font-size: 13px; }
  .hero { min-height: max(590px, calc(90svh - var(--header-height))); padding-top: 56px; padding-bottom: 160px; }
  .hero h1 { font-size: clamp(33px, 8.7vw, 54px); line-height: 1.45; }
  .hero-stage { top: 20%; right: -34%; width: 120vw; opacity: .6; }
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: 24px; bottom: 32px; }
  .hero-bottom > span { font-size: 12px; }
  .hero-link { justify-content: space-between; width: 100%; font-size: 13px; }
  .hero-link span { width: 38px; height: 38px; }
  .projects-section { padding-top: 72px; padding-bottom: 80px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; margin-bottom: 40px; }
  .section-heading h2 { font-size: 62px; }
  .project-count { font-size: 13px; }
  .project-list { gap: 64px; }
  .project-card, .project-empty { grid-template-columns: 1fr; gap: 24px; }
  .card-name { margin: 14px 0 18px; font-size: 36px; }
  .card-more { margin-top: 22px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
  .footer-right { align-items: flex-start; font-size: 13px; }
  .project-dialog { width: calc(100vw - 24px); max-height: calc(100svh - 24px); }
  .dialog-shell { padding: 64px 20px 28px; gap: 28px; }
  .dialog-content p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
