﻿:root {
  color-scheme: dark;
  --bg: #0b0914;
  --ink: #fbf8ff;
  --muted: #b9b2cd;
  --pink: #ff43bb;
  --cyan: #66e9ff;
  --line: #332944;
  --display: 'Arial Black', 'Segoe UI Black', 'Noto Sans KR', sans-serif;
  --mono: 'Cascadia Mono', Consolas, monospace;
  font-family: 'Pretendard', 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
::selection { background: var(--pink); color: #160b18; }
[hidden] { display: none !important; }
.shell { width: min(100% - 104px, 1240px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 12px; left: 12px; background: var(--ink); color: var(--bg); padding: 12px; }
.masthead { background: #0b0914; border-bottom: 1px solid #272033; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 69px; gap: 20px; }
.wordmark { font: 800 .98rem var(--mono); white-space: nowrap; }
.brand-glyph { color: var(--cyan); margin-right: .24em; text-shadow: 0 0 14px #3feaff99; }
.brand-accent { color: var(--pink); }
nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 38px); color: var(--muted); font-size: .92rem; font-weight: 700; }
nav a:hover, .footer a:hover { color: var(--cyan); }
nav .github { color: var(--ink); border: 1px solid var(--line); padding: 9px 13px; border-radius: 5px; font-family: var(--mono); }
.github span { color: var(--cyan); }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #130d23; }
.hero-image, .hero-scan { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-image {
  background: linear-gradient(0deg, #0b0914 0%, #0b091400 24%), linear-gradient(90deg, #100917 0%, #10091776 37%, #10091700 65%), url('./hero.webp') center 48% / cover no-repeat, radial-gradient(ellipse at 77% 44%, #6e1e6b, #151026 58%);
}
.hero-scan { background: repeating-linear-gradient(0deg, #09051417 0 1px, transparent 1px 5px); }
.hero-inner { min-height: clamp(535px, 68vh, 690px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 65px 72px; }
.eyebrow { font: 700 .84rem/1.45 var(--mono); letter-spacing: .14em; }
.hero-kicker { display: flex; align-items: center; gap: 11px; color: var(--cyan); margin: 0 0 23px; }
.signal { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px #66e9ffbd; }
.hero h1 { font: 950 clamp(5rem, 12vw, 10.5rem)/.75 var(--display); letter-spacing: -.095em; margin: 0 0 28px -.055em; text-shadow: 0 0 35px #9653ef34; }
.hero h1 > span { color: #ff65c9; text-shadow: 0 0 28px #e931a65e; }
.title-dot { color: var(--cyan); text-shadow: 0 0 32px #66e9ff75; }
.hero-copy { font-size: clamp(1rem, 1.7vw, 1.21rem); margin: 0 0 30px; color: #ded6ea; line-height: 1.7; font-weight: 650; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; gap: 11px; align-items: center; justify-content: center; padding: 13px 19px; min-height: 48px; border: 1px solid transparent; border-radius: 5px; font-weight: 800; font-size: .94rem; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.button.primary { background: var(--pink); color: #15091d; box-shadow: 0 0 24px #ff43bb41; }
.button.primary:hover { background: #ff82d3; box-shadow: 0 0 26px #ff43bb60; }
.button.subtle { border-color: #685277; background: #140d21c7; }
.button.subtle:hover { border-color: var(--cyan); color: var(--cyan); }
.works { padding: 36px 0 90px; scroll-margin-top: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 19px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-kicker { color: var(--pink); margin: 0 0 9px; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.06em; line-height: 1.12; margin: 0; }
.filters { display: flex; gap: 6px; padding: 4px; border-radius: 7px; background: #161023; border: 1px solid var(--line); }
.filters button { min-height: 36px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; padding: 6px 13px; font-size: .875rem; font-weight: 740; white-space: nowrap; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: #302044; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.project { min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #14101d; transition: border-color .22s, transform .22s; }
.project:hover, .project:focus-within { border-color: var(--accent); transform: translateY(-3px); }
.project button { display: flex; flex-direction: column; width: 100%; height: 100%; background: transparent; color: inherit; border: 0; padding: 0; text-align: left; }
.project button:focus-visible { outline-offset: -3px; }
.visual, .dialog-visual { display: grid; width: 100%; aspect-ratio: 2.05; place-items: center; overflow: hidden; position: relative; isolation: isolate; background: radial-gradient(ellipse at 60% 48%, color-mix(in srgb, var(--accent), #22112f 77%), transparent 71%), repeating-linear-gradient(120deg, #ffffff09 0 1px, transparent 1px 18px), #171022; border-bottom: 1px solid #ffffff16; }
.visual::after, .dialog-visual::after { position: absolute; content: ''; height: 105%; aspect-ratio: 1; border-radius: 43%; border: 1px solid color-mix(in srgb, var(--accent), transparent 43%); box-shadow: 0 0 0 12px #ffffff0a, 0 0 70px color-mix(in srgb, var(--accent), transparent 79%); transform: rotate(-24deg); z-index: -1; }
.visual span, .dialog-visual span { font: 900 clamp(2.9rem, 7vw, 5.9rem)/1 var(--mono); letter-spacing: -.14em; color: var(--accent); text-shadow: 0 0 26px color-mix(in srgb, var(--accent), transparent 63%), 3px 4px #110d1e; transform: translateX(-.075em); }
.project-info { flex: 1; width: 100%; padding: 19px 19px 20px; display: flex; flex-direction: column; }
.project-tag { font: 750 .79rem var(--mono); letter-spacing: .09em; color: var(--accent); margin-bottom: 10px; }
.project-title { margin: 0; font-weight: 900; font-size: 1.2rem; line-height: 1.25; overflow-wrap: anywhere; }
.project-summary { color: var(--muted); font-size: 1rem; line-height: 1.55; margin: 8px 0 17px; }
.project-open { color: var(--accent); font-size: .875rem; font-weight: 780; margin-top: auto; }
.identity { position: relative; isolation: isolate; overflow: hidden; min-height: 315px; display: flex; align-items: center; border: 1px solid #48295c; border-radius: 12px; background: #1b1029; scroll-margin-top: 24px; }
.identity-art { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #1b1029 38%, #1b1029aa 59%, #1b102921 96%), url('./hero.webp') 85% 47% / min(920px, 100%) auto no-repeat; }
.identity-copy { max-width: 520px; padding: clamp(24px, 5vw, 56px); }
.identity-copy > p:not(.eyebrow), .dialog-body > p:not(.eyebrow) { color: #cec4df; line-height: 1.85; margin: 16px 0 24px; font-size: 1rem; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-block: 30px; margin-top: 43px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.project-dialog { position: fixed; padding: 0; width: min(560px, calc(100% - 28px)); max-height: calc(100% - 28px); color: var(--ink); background: #171020; border: 1px solid #604574; border-radius: 12px; box-shadow: 0 18px 100px #000b; overflow: auto; }
.project-dialog::backdrop { background: #080510db; backdrop-filter: blur(6px); }
.dialog-visual { aspect-ratio: 2.7; }
.dialog-body { padding: 25px 28px 32px; }
.dialog-body h2 { overflow-wrap: anywhere; }
.dialog-close { position: absolute; right: 12px; top: 12px; }
.dialog-close button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #614976; border-radius: 50%; background: #150e20; color: var(--ink); font-size: 1.6rem; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 820px) {
  .shell { width: calc(100% - 48px); }
  .hero-inner { min-height: 555px; }
  .hero-image { background-position: center, center, 59% center, center; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 540px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; gap: 10px; }
  .wordmark { font-size: .8rem; }
  nav { gap: 14px; font-size: .86rem; }
  nav .github { display: none; }
  .hero-inner { min-height: 565px; justify-content: flex-end; padding-bottom: 38px; }
  .hero-image { background: linear-gradient(0deg, #0b0914, #0b0914 9%, #130b23e0 32%, #1009171a 70%), url('./hero.webp') 80% top / auto 405px no-repeat, #130d23; }
  .hero h1 { font-size: clamp(4rem, 16.8vw, 5.7rem); margin-bottom: 19px; }
  .hero-kicker { margin-bottom: 16px; font-size: .71rem; }
  .hero-copy { margin-bottom: 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .works { padding-block: 26px 55px; }
  .grid { grid-template-columns: 1fr; }
  .visual { aspect-ratio: 2.1; }
  .visual span, .dialog-visual span { font-size: 4.75rem; }
  .identity-art { opacity: .55; background-size: auto, auto 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.project { display: flex; flex-direction: column; }
.project-content { flex: 1; }
.project-summary { margin-bottom: 0; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 19px 17px; }
.card-actions .project-open { display: inline-flex; width: auto; min-height: 42px; align-items: center; justify-content: center; }
.card-actions .project-open:hover { color: var(--ink); }
.card-actions .button { min-height: 42px; padding: 7px 11px; font-size: .86rem; }
.visual img, .dialog-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: absolute; inset: 0; transition: transform .35s; }
.project:hover .visual img { transform: scale(1.04); }
.dialog-visual:has(img) { aspect-ratio: 2; }
.hero-inner { animation: arrive .64s ease-out both; }
@keyframes arrive { from { opacity: .08; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-inner { animation: none; } }
