:root {
  --bg: #08090b;
  --panel: #101114;
  --panel-2: #15161a;
  --text: #f2f0ec;
  --muted: #8d8d91;
  --line: rgba(255,255,255,.12);
  --red: #ff2b32;
  --red-dark: #a60916;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Noto Sans KR", sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f3ef;
  --panel: #ffffff;
  --panel-2: #f0ede8;
  --text: #15161a;
  --muted: #62636a;
  --line: rgba(15,16,20,.14);
  --red: #e6202a;
  --red-dark: #9d0712;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { background: var(--red); color: white; }

.noise { position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 30; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 99; padding: 10px 16px; background: white; color: black; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { height: 88px; padding: 0 4.5vw; display: flex; align-items: center; justify-content: flex-start; border-bottom: 1px solid var(--line); background: rgba(8,9,11,.88); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 30px; height: 34px; border: 1px solid var(--red); transform: skew(-8deg); display: grid; place-items: center; box-shadow: inset 0 0 20px rgba(255,43,50,.15); }
.brand-mark i { display: block; width: 8px; height: 16px; background: var(--red); clip-path: polygon(50% 0,100% 38%,65% 38%,100% 100%,0 55%,38% 55%,0 0); }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 14px/1 var(--mono); letter-spacing: .12em; }
.brand small { color: var(--muted); font: 500 9px/1 var(--mono); letter-spacing: .2em; margin-top: 6px; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font: 500 11px/1 var(--mono); letter-spacing: .12em; }
.main-nav a { color: #a8a8ac; transition: color .2s ease; }
.main-nav a:hover, .main-nav .active { color: white; }
.main-nav .active::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin-right: 9px; vertical-align: 1px; box-shadow: 0 0 10px var(--red); }
.nav-github { border-left: 1px solid var(--line); padding-left: 36px; }
.theme-toggle { min-height: 34px; margin-left: 20px; padding: 0 11px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: #a8a8ac; cursor: pointer; font: 600 9px/1 var(--mono); letter-spacing: .1em; transition: border-color .2s ease,color .2s ease,background .2s ease,transform .2s ease; }
.theme-toggle:hover { border-color: var(--red); color: var(--text); transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.theme-toggle-icon { color: var(--red); font-size: 14px; line-height: 1; }
.menu-toggle { display: none; }

.hero { min-height: calc(100vh - 88px); position: relative; padding: clamp(70px,10vh,130px) 7vw 52px; display: grid; grid-template-columns: 1fr minmax(360px, .82fr); grid-template-rows: 1fr auto; gap: 36px 8vw; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { position: absolute; inset: 0; opacity: .36; background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, black, transparent 80%); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; right: 4vw; top: 44%; transform: translateY(-50%); background: radial-gradient(circle,rgba(255,35,45,.17),rgba(255,35,45,.03) 38%,transparent 67%); filter: blur(2px); pointer-events: none; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,43,50,.18); border-radius: 50%; right: -90px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.orbit-one { width: 650px; height: 650px; }
.orbit-two { width: 520px; height: 520px; right: -25px; border-color: rgba(255,255,255,.07); }
.hero-copy { position: relative; z-index: 2; align-self: center; max-width: 760px; }
.eyebrow { margin: 0 0 28px; color: #b7b7ba; font: 500 11px/1 var(--mono); letter-spacing: .18em; }
.eyebrow span { display: inline-block; width: 28px; height: 1px; background: var(--red); margin-right: 12px; vertical-align: 4px; box-shadow: 0 0 8px var(--red); }
.hero h1 { margin: 0; font-size: clamp(54px,7.1vw,112px); line-height: .94; letter-spacing: -.065em; font-weight: 900; }
.hero h1 em, .about-copy em { color: var(--red); font-style: normal; text-shadow: 0 0 32px rgba(255,43,50,.14); }
.hero-description { max-width: 580px; color: #a7a7ab; font-size: 16px; line-height: 1.85; margin: 34px 0 0; word-break: keep-all; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 0 22px; font: 600 11px/1 var(--mono); letter-spacing: .08em; border: 1px solid var(--line); transition: .25s ease; }
.button-primary { background: var(--red); border-color: var(--red); color: white; }
.button-primary:hover { background: #ff4148; transform: translateY(-2px); box-shadow: 0 12px 35px rgba(255,43,50,.22); }
.button-ghost:hover { border-color: var(--red); color: var(--red); }

.scan-terminal { position: relative; z-index: 2; width: min(100%,560px); aspect-ratio: 1/.83; justify-self: end; align-self: center; background: #0a0b0e; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 34px 80px rgba(0,0,0,.48); overflow: hidden; color: #d7d8dc; font-family: var(--mono); }
.scan-terminal::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px); background-size: 100% 24px,24px 100%; pointer-events: none; }
.scan-terminal::after { content: ""; position: absolute; z-index: 1; width: 330px; height: 330px; right: -130px; bottom: -170px; border-radius: 50%; background: radial-gradient(circle,rgba(255,43,50,.14),transparent 67%); filter: blur(3px); animation: terminal-live 6s ease-in-out infinite; pointer-events: none; }
.scan-top { height: 48px; padding: 0 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #292b31; background: rgba(16,17,21,.96); position: relative; z-index: 2; }
.scan-dots { display: flex; gap: 6px; }
.scan-dots i { width: 7px; height: 7px; border-radius: 50%; background: #373940; }
.scan-dots i:first-child { background: var(--red); box-shadow: 0 0 9px var(--red); }
.scan-top strong { color: #74777f; font-size: 9px; letter-spacing: .12em; }
.scan-running { margin-left: auto; display: flex; align-items: center; gap: 7px; color: #d8d9dc; font-size: 8px; letter-spacing: .12em; }
.scan-running b { color: inherit; font: inherit; }
.scan-running i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 9px var(--red); animation: scan-pulse 1.25s ease-in-out infinite; }
.scan-terminal.is-detected .scan-running { color: var(--red); }
.scan-body { min-height: calc(100% - 90px); padding: 26px 22px 62px; display: grid; grid-template-columns: minmax(0,1.55fr) minmax(118px,.75fr); gap: 18px; position: relative; z-index: 2; }
.scan-console { min-width: 0; padding-top: 3px; }
.scan-console p { margin: 0; color: #9b9da4; font-size: clamp(8px,.82vw,11px); line-height: 2.2; white-space: nowrap; opacity: .52; transition: opacity .25s ease,transform .25s ease; }
.scan-console p.is-typing { opacity: 1; transform: translateX(2px); }
.scan-console time { color: #50525a; margin-right: 8px; }
.scan-console b { color: #b9bbc1; font-weight: 600; margin-right: 7px; }
.scan-console em { color: #f1f1f2; font-style: normal; }
.scan-console .scan-alert, .scan-console .scan-alert b { color: #ff3a43; }
.scan-console .scan-ready { color: #e9e9eb; }
.scan-ready span { color: var(--red); animation: cursor-blink .8s steps(1) infinite; }
.type-cursor { display: inline-block; width: 6px; height: 1em; margin-left: 3px; vertical-align: -.16em; background: var(--red); box-shadow: 0 0 8px rgba(255,43,50,.55); animation: cursor-blink .7s steps(1) infinite; }
.scan-side { display: flex; flex-direction: column; gap: 10px; }
.scan-progress, .finding-card, .scan-scope { border: 1px solid #2d2f35; background: rgba(18,19,23,.88); padding: 12px; }
.scan-progress { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.scan-progress > span, .finding-card > span, .scan-scope span { color: #686b73; font-size: 7px; letter-spacing: .11em; }
.scan-progress > strong { color: #eeeff1; font-size: 10px; }
.scan-progress > i { grid-column: 1/-1; display: block; height: 3px; background: #272930; overflow: hidden; }
.scan-progress > i b { display: block; width: var(--scan-level,87%); height: 100%; background: var(--red); box-shadow: 0 0 10px rgba(255,43,50,.72); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.finding-card { min-height: 126px; display: flex; flex-direction: column; justify-content: center; border-color: rgba(255,43,50,.55); background: linear-gradient(145deg,rgba(255,43,50,.12),rgba(18,19,23,.9)); }
.finding-card strong { color: var(--red); font-size: clamp(32px,4vw,48px); line-height: 1; letter-spacing: -.08em; margin: 10px 0 8px; text-shadow: 0 0 24px rgba(255,43,50,.24); }
.finding-card small { color: #dddde0; font-size: 7px; letter-spacing: .08em; }
.scan-terminal:not(.is-detected) .finding-card strong { color: #656870; font-size: 15px; letter-spacing: .08em; text-shadow: none; }
.scan-terminal.is-detected .finding-card { animation: finding-flash .75s ease-out; }
.scan-scope { display: flex; justify-content: space-between; gap: 8px; }
.scan-scope strong { color: var(--red); font-size: 7px; letter-spacing: .08em; }
.scan-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 43px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #292b31; background: rgba(8,9,12,.96); z-index: 3; color: #666971; font-size: 7px; letter-spacing: .1em; }
.scan-foot strong { color: var(--red); font-size: 7px; }
.scan-beam { position: absolute; z-index: 4; left: 0; right: 0; top: 49px; height: 1px; background: linear-gradient(90deg,transparent,var(--red),transparent); box-shadow: 0 0 14px rgba(255,43,50,.7); animation: scan-beam 5s ease-in-out infinite; pointer-events: none; }
@keyframes scan-pulse { 50% { opacity: .3; transform: scale(.75); } }
@keyframes cursor-blink { 50% { opacity: 0; } }
@keyframes scan-beam { 0%,100% { transform: translateY(0); opacity: 0; } 10% { opacity: .75; } 88% { transform: translateY(350px); opacity: .1; } }
@keyframes terminal-live { 50% { transform: translate(-28px,-18px) scale(1.08); opacity: .55; } }
@keyframes finding-flash { 0% { box-shadow: inset 0 0 0 1px rgba(255,43,50,0),0 0 0 rgba(255,43,50,0); } 35% { box-shadow: inset 0 0 0 1px rgba(255,43,50,.75),0 0 32px rgba(255,43,50,.2); } 100% { box-shadow: none; } }

@media (prefers-reduced-motion: reduce) {
  .scan-terminal::after, .scan-running i, .scan-ready span, .scan-beam { animation: none; }
}
.hero-meta { position: relative; z-index: 2; grid-column: 1/-1; padding-top: 28px; border-top: 1px solid var(--line); display: flex; gap: 46px; font: 500 9px/1 var(--mono); letter-spacing: .13em; color: #6e6e73; }
.hero-meta b { color: var(--red); margin-right: 8px; }

.projects-section { padding: 120px 7vw 140px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#0b0c0f 0%,#08090b 100%); }
.project-summary { min-height: 108px; margin-bottom: 28px; padding: 22px 28px; border: 1px solid var(--line); display: grid; grid-template-columns: 210px 1fr auto; gap: 36px; align-items: center; background: rgba(255,255,255,.018); }
.project-summary > div { display: flex; align-items: center; gap: 16px; }
.project-summary strong { color: var(--red); font: 600 44px/1 var(--mono); letter-spacing: -.08em; }
.project-summary span { color: #75767b; font: 500 9px/1.5 var(--mono); letter-spacing: .12em; }
.project-summary p { color: #8e8f94; font-size: 13px; line-height: 1.7; margin: 0; word-break: keep-all; }
.project-summary > a { color: white; border-bottom: 1px solid var(--red); padding: 11px 0; font: 500 9px/1 var(--mono); letter-spacing: .1em; white-space: nowrap; }
.project-groups { display: grid; gap: 80px; }
.project-group-head { min-height: 110px; padding: 24px 28px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 36px; border: 1px solid var(--line); border-bottom: 0; background: linear-gradient(90deg,rgba(255,43,50,.055),transparent 45%); }
.project-group-head > div { display: flex; align-items: center; gap: 22px; }
.project-group-code { color: var(--red); font: 500 9px/1 var(--mono); letter-spacing: .12em; writing-mode: vertical-rl; transform: rotate(180deg); }
.project-group-head h3 { margin: 0; font-size: clamp(28px,3vw,44px); line-height: 1; letter-spacing: -.045em; }
.project-group-head p { margin: 0; color: #7d7e83; font-size: 12px; line-height: 1.75; word-break: keep-all; }
.project-group-head > strong { color: #292a2f; font: 600 clamp(48px,6vw,82px)/1 var(--mono); letter-spacing: -.1em; }
.project-group-team .project-group-head { background: linear-gradient(90deg,rgba(255,255,255,.025),transparent 50%); }
.project-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.project-card { grid-column: span 4; min-height: 430px; background: #0f1013; position: relative; overflow: hidden; transition: background .25s ease, transform .25s ease; }
.project-half { grid-column: span 6; }
.project-grid-collab .project-card { min-height: 480px; }
.project-card:hover { background: #15161a; z-index: 2; transform: translateY(-4px); }
.project-card > a { height: 100%; min-height: inherit; display: flex; flex-direction: column; padding: 28px; }
.project-head { display: flex; justify-content: space-between; align-items: center; color: #65666b; font: 500 9px/1 var(--mono); letter-spacing: .1em; }
.project-status { color: #8d8e93; }
.project-copy { margin-top: auto; max-width: 650px; position: relative; z-index: 2; }
.project-type { color: var(--red); font: 500 9px/1.5 var(--mono); letter-spacing: .11em; margin: 0 0 17px; }
.project-copy h3 { margin: 0 0 18px; font-size: clamp(25px,2.3vw,39px); line-height: 1.18; letter-spacing: -.045em; }
.project-copy > p:not(.project-type) { color: #8b8c91; font-size: 13px; line-height: 1.85; margin: 0 0 22px; max-width: 600px; word-break: keep-all; }
.tech-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tech-list span { color: #7f8085; border: 1px solid #2b2c31; padding: 7px 9px; font: 500 8px/1 var(--mono); letter-spacing: .06em; }
.project-link { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: #a7a8ac; font: 500 9px/1 var(--mono); letter-spacing: .11em; }

.ctf-section { padding: 120px 7vw 140px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 18% 58%,rgba(255,43,50,.09),transparent 30%),#08090b; }
.ctf-board { display: grid; grid-template-columns: minmax(330px,.78fr) 1.35fr; border: 1px solid var(--line); background: #0d0e11; box-shadow: 0 32px 90px rgba(0,0,0,.28); }
.ctf-console { border-right: 1px solid var(--line); min-height: 550px; background: linear-gradient(145deg,rgba(255,43,50,.055),transparent 45%),#0a0b0d; }
.ctf-console-head { height: 48px; padding: 0 18px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); }
.ctf-console-head span { width: 7px; height: 7px; border-radius: 50%; background: #34353a; }
.ctf-console-head span:first-child { background: var(--red); box-shadow: 0 0 8px var(--red); }
.ctf-console-head b { margin-left: auto; color: #5f6065; font: 500 9px var(--mono); }
.ctf-console-body { padding: 34px; }
.ctf-console-body > p { color: #73747a; font: 500 11px var(--mono); margin: 0; }
.ctf-console-body > p i { color: var(--red); font-style: normal; margin-right: 10px; }
.ctf-emblem { min-height: 220px; display: flex; align-items: center; justify-content: center; color: white; font: 700 clamp(54px,7vw,94px)/1 var(--mono); letter-spacing: -.12em; text-shadow: 0 0 35px rgba(255,255,255,.1); }
.ctf-emblem span { color: var(--red); font-weight: 400; text-shadow: 0 0 25px rgba(255,43,50,.45); }
.ctf-console dl { margin: 0 0 30px; border-top: 1px solid var(--line); }
.ctf-console dl div { min-height: 42px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.ctf-console dt, .ctf-console dd { margin: 0; font: 500 9px var(--mono); letter-spacing: .1em; }
.ctf-console dt { color: #5e5f64; }
.ctf-console dd { color: #a7a8ad; }
.ctf-console dd.online { color: var(--red); }
.ctf-main-link { min-height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; background: var(--red); color: white; font: 600 10px var(--mono); letter-spacing: .1em; transition: .25s ease; }
.ctf-main-link:hover { background: #ff4148; box-shadow: 0 12px 35px rgba(255,43,50,.2); transform: translateY(-2px); }
.ctf-main-link span { font-size: 16px; }
.ctf-list { display: grid; grid-template-rows: repeat(7,1fr); }
.ctf-list a { min-height: 78px; padding: 0 28px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; transition: background .2s ease; }
.ctf-list a:last-child { border-bottom: 0; }
.ctf-list a::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--red); transform: scaleY(0); transition: transform .2s ease; }
.ctf-list a:hover { background: rgba(255,43,50,.055); }
.ctf-list a:hover::before { transform: scaleY(1); }
.ctf-list a > span { color: #4f5055; font: 500 10px var(--mono); }
.ctf-list strong { font-size: clamp(15px,1.5vw,21px); letter-spacing: -.02em; }
.ctf-list small { color: #6c6d72; font: 500 8px var(--mono); letter-spacing: .1em; transition: color .2s ease,transform .2s ease; }
.ctf-list a:hover small { color: var(--red); transform: translate(2px,-2px); }

.notes-section { padding: 120px 7vw 140px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 64px; }
.section-heading h2 { margin: 0; font-size: clamp(38px,5vw,68px); line-height: 1; letter-spacing: -.05em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; text-align: right; }
.notes-toolbar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 74px; margin-bottom: 28px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; }
.filter { border: 0; background: transparent; color: #77787d; cursor: pointer; padding: 27px 0; font: 500 11px/1 var(--mono); letter-spacing: .08em; position: relative; }
.filter sup { color: #4b4c51; font-size: 7px; margin-left: 3px; }
.filter.active { color: white; }
.filter.active::after { content: ""; height: 2px; background: var(--red); position: absolute; left: 0; right: 0; bottom: -1px; box-shadow: 0 0 10px var(--red); }
.search-box { display: flex; align-items: center; gap: 12px; }
.search-box input { width: 180px; border: 0; outline: 0; background: transparent; color: white; font: 500 11px var(--mono); }
.search-box input::placeholder { color: #55565b; }
.search-box kbd { color: #626268; border: 1px solid #33343a; padding: 3px 7px; border-radius: 3px; font: 500 9px var(--mono); }
.category-reference { min-height: 112px; margin: 0 0 28px; padding: 22px 26px; display: grid; grid-template-columns: minmax(210px,.7fr) minmax(0,1.6fr) auto; align-items: center; gap: 28px; border: 1px solid rgba(255,43,50,.28); background: linear-gradient(90deg,rgba(255,43,50,.075),rgba(255,43,50,.018) 48%,transparent); }
.category-reference[hidden] { display: none; }
.category-reference > div { display: grid; gap: 9px; }
.category-reference span { color: var(--red); font: 600 9px/1 var(--mono); letter-spacing: .14em; }
.category-reference strong { color: var(--text); font-size: 15px; line-height: 1.45; }
.category-reference p { margin: 0; color: #8f9095; font-size: 12px; line-height: 1.8; word-break: keep-all; }
.category-reference a { color: #b7b8bc; border-bottom: 1px solid var(--red); padding: 9px 0; font: 500 9px/1 var(--mono); letter-spacing: .1em; white-space: nowrap; }
.category-reference a:hover { color: var(--red); }
.post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.post-card { min-height: 390px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); transition: background .25s ease, transform .25s ease; }
.post-card[hidden] { display: none; }
.post-card:hover { background: var(--panel-2); transform: translateY(-5px); }
.post-card > a { height: 100%; min-height: inherit; display: flex; flex-direction: column; padding: 27px; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.tag { color: var(--red); border: 1px solid rgba(255,43,50,.35); padding: 7px 9px; font: 600 9px/1 var(--mono); letter-spacing: .09em; }
.card-top time { color: #64656a; font: 500 9px/1 var(--mono); }
.card-copy { margin-top: auto; }
.card-index { color: #56575c; font: 500 9px/1 var(--mono); letter-spacing: .12em; margin: 0 0 18px; }
.card-copy h3 { font-size: clamp(24px,2.25vw,36px); line-height: 1.25; letter-spacing: -.045em; margin: 0 0 20px; }
.card-copy > p:not(.card-index) { color: #88898e; font-size: 13px; line-height: 1.8; margin: 0 0 30px; word-break: keep-all; }
.read-more { padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #a8a9ad; font: 500 9px/1 var(--mono); letter-spacing: .12em; }
.read-more b { color: var(--red); font-size: 16px; transition: transform .2s ease; }
.post-card:hover .read-more b { transform: translate(3px,-3px); }
.rule-visual { margin: 44px 0 30px; padding: 25px 20px; background: #08090b; border-left: 2px solid var(--red); font: 500 clamp(10px,1vw,13px)/1.9 var(--mono); box-shadow: inset 0 0 30px rgba(255,43,50,.04); }
.rule-visual span { display: block; color: #a6a7ac; }
.rule-visual b { color: var(--red); }
.rule-visual i { color: #f17c81; font-style: normal; }
.featured .card-copy h3 { font-size: clamp(30px,3vw,48px); }
.empty-state { color: var(--muted); font: 500 13px var(--mono); padding: 60px 0; text-align: center; }

.about-section { min-height: 620px; border-top: 1px solid var(--line); display: grid; grid-template-columns: .45fr 1.25fr 1fr; align-items: center; gap: 5vw; padding: 100px 7vw; position: relative; overflow: hidden; background: linear-gradient(135deg,#0c0d10,#08090b 65%); }
.about-section::after { content: ""; position: absolute; width: 480px; height: 480px; border: 1px solid rgba(255,43,50,.1); border-radius: 50%; right: -180px; bottom: -220px; box-shadow: 0 0 80px rgba(255,43,50,.05); }
.about-number { color: #202126; font: 600 clamp(60px,8vw,140px)/1 var(--mono); writing-mode: vertical-rl; }
.about-copy h2 { margin: 0; font-size: clamp(42px,5vw,76px); line-height: 1.18; letter-spacing: -.055em; }
.about-text { padding-left: 3vw; border-left: 1px solid var(--line); }
.about-text p { color: #95969b; font-size: 14px; line-height: 1.9; margin: 0 0 18px; word-break: keep-all; }
.about-text a { display: inline-flex; align-items: center; gap: 20px; color: white; border-bottom: 1px solid var(--red); padding: 12px 0; margin-top: 18px; font: 500 11px var(--mono); }
.about-text a span { color: var(--red); }
.site-footer { min-height: 92px; padding: 0 4.5vw; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #5f6065; font: 500 9px var(--mono); letter-spacing: .1em; }
.site-footer a:hover { color: white; }

/* Light theme */
:root[data-theme="light"] body { background: var(--bg); color: var(--text); }
:root[data-theme="light"] .noise { opacity: .025; }
:root[data-theme="light"] .site-header { background: rgba(250,249,246,.9); box-shadow: 0 8px 28px rgba(19,20,24,.05); }
:root[data-theme="light"] .brand small,
:root[data-theme="light"] .main-nav a { color: #585960; }
:root[data-theme="light"] .main-nav a:hover,
:root[data-theme="light"] .main-nav .active { color: #111216; }
:root[data-theme="light"] .theme-toggle { background: rgba(255,255,255,.72); color: #4f5056; }
:root[data-theme="light"] .hero-grid { background-image: linear-gradient(rgba(15,16,20,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(15,16,20,.05) 1px,transparent 1px); }
:root[data-theme="light"] .orbit-two { border-color: rgba(15,16,20,.1); }
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .hero-description { color: #56575d; }
:root[data-theme="light"] .button-ghost { background: rgba(255,255,255,.45); }
:root[data-theme="light"] .projects-section { background: linear-gradient(180deg,#efede8 0%,#f5f3ef 100%); }
:root[data-theme="light"] .project-summary,
:root[data-theme="light"] .project-group-head { background-color: rgba(255,255,255,.62); }
:root[data-theme="light"] .project-card { background: #ffffff; }
:root[data-theme="light"] .project-card:hover { background: #f9f7f3; }
:root[data-theme="light"] .project-status,
:root[data-theme="light"] .project-head,
:root[data-theme="light"] .project-summary span { color: #686970; }
:root[data-theme="light"] .project-summary p,
:root[data-theme="light"] .project-group-head p,
:root[data-theme="light"] .project-copy > p:not(.project-type),
:root[data-theme="light"] .card-copy > p:not(.card-index) { color: #5d5e65; }
:root[data-theme="light"] .tech-list span { color: #55565c; border-color: #d3d0ca; background: #faf9f6; }
:root[data-theme="light"] .project-link,
:root[data-theme="light"] .read-more { color: #4e4f55; }
:root[data-theme="light"] .ctf-section { background: radial-gradient(circle at 18% 58%,rgba(230,32,42,.08),transparent 30%),#f5f3ef; }
:root[data-theme="light"] .ctf-board { background: #ffffff; box-shadow: 0 26px 70px rgba(32,28,25,.1); }
:root[data-theme="light"] .ctf-list a:hover { background: rgba(230,32,42,.05); }
:root[data-theme="light"] .ctf-list a > span,
:root[data-theme="light"] .ctf-list small { color: #66676d; }
:root[data-theme="light"] .filter { color: #62636a; }
:root[data-theme="light"] .search-box input { color: #15161a; }
:root[data-theme="light"] .search-box input::placeholder { color: #77787e; }
:root[data-theme="light"] .category-reference { background: linear-gradient(90deg,rgba(230,32,42,.065),rgba(255,255,255,.45)); }
:root[data-theme="light"] .category-reference p { color: #5d5e65; }
:root[data-theme="light"] .category-reference a { color: #4e4f55; }
:root[data-theme="light"] .post-card { box-shadow: inset 0 0 0 1px rgba(15,16,20,.015); }
:root[data-theme="light"] .card-index,
:root[data-theme="light"] .card-top time { color: #67686e; }
:root[data-theme="light"] .about-section { background: linear-gradient(135deg,#ebe8e2,#f5f3ef 65%); }
:root[data-theme="light"] .about-number { color: #ddd9d1; }
:root[data-theme="light"] .about-text p { color: #55565c; }
:root[data-theme="light"] .about-text a { color: #15161a; }
:root[data-theme="light"] .site-footer a:hover { color: #15161a; }
:root[data-theme="light"] .article-aside a { color: #55565c; }
:root[data-theme="light"] .article-head > p { color: #56575d; }
:root[data-theme="light"] .article-content { color: #38393f; }
:root[data-theme="light"] .article-content h2,
:root[data-theme="light"] .article-content h3,
:root[data-theme="light"] .article-content strong,
:root[data-theme="light"] .next-note a { color: #15161a; }
:root[data-theme="light"] .option-table th { color: #5a5b62; background: #ebe8e2; }
:root[data-theme="light"] .callout { background: rgba(230,32,42,.055); }
:root[data-theme="light"] .not-found p { color: #62636a; }

/* Article pages */
.article-shell { max-width: 1160px; margin: 0 auto; padding: 88px 6vw 130px; display: grid; grid-template-columns: 180px minmax(0,720px); gap: 72px; }
.article-aside { position: relative; }
.article-aside-inner { position: sticky; top: 130px; }
.article-aside p { color: #56575c; font: 500 9px/1.7 var(--mono); letter-spacing: .1em; margin: 0 0 24px; }
.article-aside a { color: #8c8d92; font: 500 10px/1.7 var(--mono); }
.article-aside a:hover { color: var(--red); }
.article-progress { position: fixed; top: 88px; left: 0; height: 2px; background: var(--red); width: 0; z-index: 21; box-shadow: 0 0 10px var(--red); }
.article-head { padding-bottom: 50px; border-bottom: 1px solid var(--line); margin-bottom: 50px; }
.article-meta { display: flex; gap: 16px; color: #66676c; font: 500 10px var(--mono); margin-bottom: 24px; }
.article-meta span:first-child { color: var(--red); }
.article-head h1 { font-size: clamp(42px,6vw,76px); line-height: 1.1; letter-spacing: -.06em; margin: 0 0 24px; }
.article-head > p { color: #999a9f; font-size: 17px; line-height: 1.8; margin: 0; word-break: keep-all; }
.article-content { color: #c3c3c6; font-size: 16px; line-height: 1.9; }
.article-content h2 { color: white; font-size: 30px; line-height: 1.3; letter-spacing: -.035em; margin: 70px 0 20px; }
.article-content h3 { color: white; font-size: 20px; margin: 38px 0 14px; }
.article-content p { margin: 0 0 22px; word-break: keep-all; }
.article-content ul { margin: 0 0 26px; padding-left: 20px; }
.article-content li { margin-bottom: 9px; }
.article-content strong { color: white; }
.article-content code { font-family: var(--mono); color: #ff8589; background: rgba(255,43,50,.08); padding: 2px 6px; border-radius: 3px; }
.article-content a { color: #ff8589; text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { margin: 30px 0; padding: 18px 22px; border-left: 2px solid var(--red); background: rgba(255,43,50,.055); }
.article-content blockquote p:last-child { margin-bottom: 0; }
.tistory-content figure { margin: 34px 0; }
.tistory-content figure img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--line); }
.tistory-content figcaption { margin-top: 10px; color: #77787d; font-size: 12px; line-height: 1.6; text-align: center; }
.tistory-content table { display: block; width: 100%; margin: 30px 0; border-collapse: collapse; overflow-x: auto; }
.tistory-content th, .tistory-content td { min-width: 120px; padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.tistory-content th { color: white; background: rgba(255,255,255,.035); }
.tistory-content iframe { max-width: 100%; border: 0; }
.tistory-content > p:empty { display: none; }
.code-block { position: relative; margin: 28px 0; background: #050607; border: 1px solid var(--line); border-left: 2px solid var(--red); padding: 24px; overflow-x: auto; }
.code-block pre { margin: 0; color: #d2d2d5; font: 500 13px/1.8 var(--mono); }
.copy-button { position: absolute; right: 10px; top: 10px; border: 1px solid #303137; background: #111216; color: #7d7e84; padding: 6px 9px; cursor: pointer; font: 500 9px var(--mono); }
.copy-button:hover { color: white; border-color: var(--red); }
.callout { margin: 32px 0; padding: 22px 24px; background: rgba(255,43,50,.06); border: 1px solid rgba(255,43,50,.2); }
.callout strong { display: block; color: var(--red); font: 600 11px var(--mono); margin-bottom: 8px; }
.callout p { margin: 0; font-size: 14px; }
.option-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14px; }
.option-table th, .option-table td { padding: 15px 16px; text-align: left; border: 1px solid var(--line); }
.option-table th { color: #77787d; font: 500 10px var(--mono); background: #0d0e11; }
.option-table td:first-child { color: var(--red); font-family: var(--mono); white-space: nowrap; }
.next-note { margin-top: 76px; padding-top: 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.next-note span { color: #66676c; font: 500 9px var(--mono); }
.next-note a { color: white; font-weight: 700; }
.next-note a:hover { color: var(--red); }

.not-found { min-height: calc(100vh - 181px); display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.not-found strong { color: var(--red); font: 600 12px var(--mono); letter-spacing: .2em; }
.not-found h1 { font-size: clamp(90px,18vw,220px); line-height: .8; margin: 25px 0 40px; letter-spacing: -.08em; }
.not-found p { color: var(--muted); margin-bottom: 32px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .main-nav { gap: 18px; }
  .nav-github { padding-left: 20px; }
  .hero { grid-template-columns: 1fr; }
  .scan-terminal { justify-self: start; width: min(100%,620px); }
  .hero-meta { margin-top: 20px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card.featured { grid-column: 1/-1; }
  .about-section { grid-template-columns: .25fr 1fr; }
  .about-text { grid-column: 2; padding-left: 0; border-left: 0; max-width: 620px; }
  .article-shell { grid-template-columns: 1fr; }
  .article-aside { display: none; }
  .project-card { grid-column: span 6; min-height: 500px; }
  .project-summary { grid-template-columns: 170px 1fr; }
  .project-summary > a { grid-column: 2; justify-self: start; }
  .project-group-head { grid-template-columns: 1fr auto; }
  .project-group-head p { display: none; }
  .ctf-board { grid-template-columns: .85fr 1.15fr; }
}

@media (max-width: 700px) {
  .site-header { height: 72px; padding: 0 20px; }
  .theme-toggle { min-height: 32px; margin-left: 12px; padding: 0 9px; }
  .theme-toggle-label { display: none; }
  .menu-toggle { width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line); background: transparent; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 11px; }
  .menu-toggle span { height: 1px; background: white; width: 100%; transition: .2s; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; background: #0b0c0f; padding: 24px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 24px; transform: translateY(-140%); opacity: 0; pointer-events: none; transition: .25s ease; }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  :root[data-theme="light"] .main-nav { background: #f5f3ef; }
  :root[data-theme="light"] .menu-toggle span { background: #15161a; }
  .nav-github { border-left: 0; padding-left: 0; }
  .hero { padding: 72px 22px 36px; gap: 50px; }
  .hero h1 { font-size: clamp(50px,16vw,74px); }
  .hero-description { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .scan-terminal { aspect-ratio: 1/.95; }
  .scan-body { padding: 20px 14px 55px; grid-template-columns: 1fr 112px; gap: 12px; }
  .scan-console p { font-size: 7.5px; }
  .hero-meta { gap: 16px; justify-content: space-between; }
  .hero-meta span { font-size: 7px; }
  .projects-section { padding: 90px 20px; }
  .project-summary { display: block; padding: 22px; }
  .project-summary p { margin: 18px 0; }
  .project-groups { gap: 58px; }
  .project-group-head { min-height: 96px; padding: 20px; gap: 16px; }
  .project-group-head > div { display: block; }
  .project-group-code { display: block; writing-mode: initial; transform: none; margin-bottom: 11px; }
  .project-group-head h3 { font-size: 30px; }
  .project-group-head > strong { font-size: 50px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { grid-column: auto; min-height: 450px; }
  .ctf-section { padding: 90px 20px; }
  .ctf-board { grid-template-columns: 1fr; }
  .ctf-console { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .ctf-console-body { padding: 26px 22px; }
  .ctf-emblem { min-height: 170px; }
  .ctf-list a { padding: 0 18px; grid-template-columns: 30px 1fr auto; gap: 10px; }
  .ctf-list strong { font-size: 14px; }
  .ctf-list small { font-size: 7px; }
  .notes-section { padding: 90px 20px; }
  .section-heading { display: block; }
  .section-heading > p { text-align: left; margin-top: 24px; }
  .notes-toolbar { display: block; padding: 18px 0; }
  .filters { gap: 17px; overflow-x: auto; }
  .filter { padding: 10px 0 16px; flex: 0 0 auto; }
  .filter.active::after { bottom: 2px; }
  .search-box { margin-top: 14px; border: 1px solid var(--line); padding: 10px 12px; }
  .search-box input { flex: 1; width: auto; }
  .category-reference { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .category-reference a { justify-self: start; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-column: auto; }
  .post-card { min-height: 430px; }
  .about-section { grid-template-columns: 1fr; padding: 90px 22px; }
  .about-number { display: none; }
  .about-text { grid-column: auto; }
  .site-footer { padding: 0 20px; }
  .site-footer p { max-width: 180px; line-height: 1.5; }
  .article-progress { top: 72px; }
  .article-shell { padding: 60px 20px 100px; }
  .article-head h1 { font-size: 44px; }
  .article-head > p { font-size: 15px; }
  .article-content { font-size: 15px; }
  .option-table { font-size: 12px; display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
