:root { color-scheme: light; --ink: #102230; --muted: #50606a; --paper: #f4f5f1; --line: #cdd7d4; --accent: #0e695d; --mint: #8de0cb; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; font-size: 1rem; line-height: 1.72; word-break: keep-all; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.page-shell { max-width: 1480px; min-height: 100vh; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 5.5rem); }
.site-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.07em; text-decoration: none; white-space: nowrap; }
.brand-dot { color: var(--accent); }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); flex-wrap: wrap; justify-content: flex-end; }
.nav-link { font-size: .94rem; font-weight: 650; text-decoration: none; }
.nav-link:hover, .footer-links a:hover { color: var(--accent); }
.hero { min-height: min(710px, calc(100svh - 92px)); position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 5rem 0 7rem; }
.hero::after { content: ""; position: absolute; right: 0; top: 11%; width: 28%; height: 70%; border-right: 1px solid var(--line); border-top: 1px solid var(--line); pointer-events: none; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .18em; display: flex; align-items: center; gap: .75rem; }
.eyebrow-line { width: 28px; height: 1px; background: currentColor; }
h1, h2, p { margin-top: 0; }
.hero h1 { max-width: 950px; margin: 2.1rem 0 1.9rem; font-size: clamp(3.4rem, 8.2vw, 8.2rem); line-height: 1.14; font-weight: 760; letter-spacing: -.082em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 570px; margin-bottom: 1.5rem; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.text-link { font-weight: 750; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding: .3rem 0; }
.text-link span, .button-link span { margin-left: .55rem; }
.hero-index { position: absolute; bottom: 2.3rem; left: 0; color: #697a80; font-size: .75rem; font-weight: 650; letter-spacing: .16em; }
.section-grid { display: grid; grid-template-columns: minmax(140px, 24%) minmax(0, 1fr); gap: 2rem; padding: clamp(4.25rem, 7vw, 7.5rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.section-label { display: flex; align-items: baseline; gap: .8rem; color: var(--accent); font-size: .76rem; font-weight: 750; letter-spacing: .15em; }
.section-number { color: #8c9999; }
.section-content { max-width: 720px; }
.section-content h2 { font-size: clamp(2rem, 3.7vw, 3.5rem); line-height: 1.28; letter-spacing: -.055em; margin: 0 0 1.5rem; }
.section-content p { color: #394b55; font-size: 1.09rem; margin-bottom: 1rem; }
.section-grid-accent { background: var(--ink); color: #f4f8f5; border: 0; border-radius: 5px; margin: 0 calc(-1 * clamp(1.25rem, 5vw, 5.5rem)); padding-left: clamp(1.25rem, 5vw, 5.5rem); padding-right: clamp(1.25rem, 5vw, 5.5rem); }
.section-grid-accent .section-label { color: var(--mint); }
.section-grid-accent .section-number { color: #71928f; }
.section-grid-accent .section-content p { color: #c5d4d5; }
.app-heading { display: flex; gap: 1rem; align-items: center; margin: 0 0 1.5rem; }
.app-mark { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: var(--mint); border-radius: 5px; color: var(--ink); font-size: 1.12rem; font-weight: 800; }
.app-state { font-size: .82rem; letter-spacing: .06em; color: #afd2c7; }
.button-link { display: inline-flex; align-items: center; margin-top: 1.1rem; padding: .82rem 1.2rem; background: var(--mint); color: var(--ink); font-weight: 750; text-decoration: none; border-radius: 3px; }
.button-link:hover { background: #b4f1e1; }
.site-footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; color: #55656e; font-size: .89rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { text-decoration: none; }
.policy-main { padding: clamp(4rem, 8vw, 8rem) 0 7rem; }
.policy-main h1 { font-size: clamp(2.75rem, 6vw, 5.25rem); letter-spacing: -.075em; line-height: 1.2; margin: 1.5rem 0; }
.policy-lede { max-width: 800px; color: #40535d; font-size: clamp(1.06rem, 1.5vw, 1.25rem); margin-bottom: 1.2rem; }
.policy-date { color: #66767b; font-size: .91rem; }
.policy-layout { display: grid; grid-template-columns: minmax(170px, 24%) minmax(0, 1fr); gap: 2rem; margin-top: 5rem; border-top: 1px solid var(--line); }
.policy-toc { align-self: start; position: sticky; top: 2rem; padding-top: 2.1rem; display: flex; flex-direction: column; gap: .78rem; }
.policy-toc a { font-size: .91rem; font-weight: 650; color: var(--muted); text-decoration: none; }
.policy-toc a:hover { color: var(--accent); }
.policy-content { max-width: 800px; }
.policy-content section { padding: 2.1rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.policy-content h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.4; letter-spacing: -.04em; margin: 0 0 1rem; }
.policy-content p { color: #40535d; margin: 0 0 .95rem; }
.policy-content p:last-child { margin-bottom: 0; }
.policy-content a { color: var(--accent); }
code { font-size: .86em; padding: .1em .28em; border-radius: 3px; background: #e1e9e5; word-break: break-all; }
@media (max-width: 720px) { .site-header { min-height: 78px; flex-wrap: wrap; padding: 1.2rem 0; gap: .8rem; } .site-header nav { gap: .8rem 1.15rem; } .nav-link { font-size: .84rem; } .hero { min-height: 640px; padding: 5rem 0; } .hero::after { width: 15%; height: 55%; } .hero h1 { font-size: clamp(3.2rem, 12vw, 5.5rem); } .section-grid, .policy-layout { grid-template-columns: 1fr; gap: 1.1rem; } .section-grid { padding-top: 3.5rem; padding-bottom: 4rem; } .policy-layout { margin-top: 3.5rem; } .policy-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: .6rem 1rem; padding-top: 1.4rem; } .policy-content section { padding: 1.8rem 0; } .site-footer { flex-direction: column; align-items: flex-start; justify-content: center; padding: 1.7rem 0; gap: .65rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.work-content { min-width: 0; }
.project { margin-top: 3rem; }
.project-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--accent); font-size: .875rem; font-weight: 650; letter-spacing: .06em; }
.project-meta span:last-child { color: var(--muted); letter-spacing: 0; font-weight: 500; }
.project h3 { margin: 1.2rem 0 1rem; font-size: clamp(1.65rem, 2.8vw, 2.4rem); line-height: 1.35; letter-spacing: -.045em; }
.project-image { margin: 2rem 0; }
.project-image a { display: block; }
.project-image img { display: block; width: 100%; height: auto; border-radius: 4px; }
.project-image figcaption { margin-top: .7rem; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.project-details { margin: 2rem 0; }
.project-details > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.project-details dt { font-weight: 700; }
.project-details dd { margin: 0; color: #394b55; }
.section-content .project-note { font-size: .94rem; color: var(--muted); }
@media (max-width: 720px) { .project { margin-top: 2rem; } .project-details > div { grid-template-columns: 1fr; gap: .4rem; } }

.architecture { margin: 3rem 0 2rem; padding: clamp(1.25rem, 3vw, 2rem); background: #e7eeea; border: 1px solid var(--line); border-radius: 4px; }
.architecture h4 { margin: 0 0 .75rem; font-size: 1.3rem; letter-spacing: -.03em; }
.section-content .architecture-intro { font-size: 1rem; }
.architecture-build { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem 1rem; padding: 1rem 0; margin-bottom: 1.25rem; border-bottom: 1px solid #bdcfC7; font-size: .94rem; }
.architecture-build > span:first-child { color: var(--accent); font-weight: 650; }
.architecture-build > span:last-child { color: var(--muted); }
.architecture-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.architecture-flow li { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1rem .85rem; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; }
.architecture-flow li:not(:last-child)::after { content: '→'; position: absolute; right: -.9rem; top: 45%; color: var(--accent); }
.architecture-role { color: var(--accent); font-size: .875rem; }
.architecture-flow strong { font-size: 1.1rem; }
.architecture-flow li > span:last-child { color: var(--muted); font-size: .875rem; }
.section-content .architecture-feedback { margin: 1.25rem 0 0; color: var(--muted); font-size: .875rem; }
@media (max-width: 1000px) { .architecture-flow { grid-template-columns: 1fr 1fr; } .architecture-flow li::after { display: none; } }
@media (max-width: 480px) { .architecture-flow { grid-template-columns: 1fr; } .architecture-flow li { padding: 1rem; } .architecture-flow br { display: none; } }

.project-web { margin: 3rem 0; }
.project-web h4 { margin: 0; font-size: 1.3rem; letter-spacing: -.03em; }
.project-web .project-details { margin-top: .5rem; }
.project-web-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 1rem; }
.project-web-link > span { font-size: .875rem; color: var(--muted); }
.architecture-surfaces, .architecture-world { display: flex; flex-direction: column; gap: .45rem; padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; }
.architecture-surfaces > span, .architecture-world > span, .architecture-models > div > span:last-child { font-size: .94rem; color: var(--muted); }
.architecture-models { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.25rem 0; }
.architecture-models > div { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border-left: 2px solid var(--accent); }
.architecture-world { margin-top: 1.25rem; background: var(--ink); color: var(--paper); }
.architecture-world > span { color: #c5d4d5; }
@media (max-width: 480px) { .architecture-models { grid-template-columns: 1fr; } }

.project-screenshots { display: grid; gap: 1.5rem; margin: 1.75rem 0 2rem; }
.project-screenshots .project-image { margin: 0; }
.project-screenshots img { border: 1px solid var(--line); }

[hidden] { display: none !important; }
.work-section { padding: clamp(4.25rem, 7vw, 7.5rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.work-heading { display: grid; grid-template-columns: minmax(140px, 24%) minmax(0, 1fr); gap: 2rem; margin-bottom: 3rem; }
.work-heading p { margin: 0; color: var(--muted); }
.work-heading .project-order-note { margin-top: .75rem; font-size: .8rem; }
.has-project-tabs .work-content { display: grid; grid-template-columns: minmax(140px, 24%) minmax(0, 1fr); gap: 2rem; }
.project-navigation { align-self: start; }
.has-project-tabs .project-navigation { position: sticky; top: 1.25rem; padding-top: 1.5rem; max-width: 235px; max-height: calc(100svh - 2.5rem); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; }
.project-tabs { display: flex; flex-direction: column; gap: .25rem; }
.project-tabs button { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: baseline; gap: .6rem; min-height: 48px; padding: .85rem .75rem; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.project-choice-number { font-size: .75rem; opacity: .75; }
.project-choice-text strong { display: block; color: var(--ink); font-size: .94rem; font-weight: 700; line-height: 1.45; }
.project-choice-text small { display: block; margin-top: .35rem; font-size: .75rem; line-height: 1.5; }
.project-choice-date { display: block; margin-top: .35rem; font-size: .7rem; line-height: 1.5; opacity: .8; font-variant-numeric: tabular-nums; }
.project-tabs button:hover { background: #e5eee8; color: var(--ink); }
.project-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.project-tabs button[aria-selected="true"] strong { color: inherit; }
.project-tabs button:focus-visible, .has-project-tabs .project:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.project-picker { display: none; }
.project-stage { min-width: 0; scroll-margin-top: 1.5rem; }
.has-project-tabs .project-stage { padding-top: 1.5rem; border-top: 1px solid #dfe5e0; }
.has-project-tabs .project { margin: 0; }
.has-project-tabs .project-meta { padding-top: 0; border-top: 0; }
.has-project-tabs .project h3 { font-size: clamp(1.65rem, 2.8vw, 2.4rem); }
.project > p { color: var(--muted); }
.project .project-start { display: flex; gap: .6rem; margin: .65rem 0 0; font-size: .8rem; }
.project-start span { font-variant-numeric: tabular-nums; }
.has-project-tabs .project .project-image { margin-top: 1.5rem; }
.has-project-tabs .project .project-screenshots .project-image { margin-top: 0; }
.project-capabilities-title, .project-gallery h4 { margin: 2.5rem 0 1rem; font-size: 1.3rem; letter-spacing: -.03em; }
.has-project-tabs .project-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.75rem; margin-top: 0; }
.has-project-tabs .project-details > div { display: block; padding: 1.2rem 0; border-top: 1px solid var(--line); border-bottom: 0; }
.has-project-tabs .project-details dt { margin-bottom: .5rem; }
.has-project-tabs .project-details dd { font-size: .94rem; }
.project-gallery .project-screenshots { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.project-device-screens { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.project-cover { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: 1.5rem; margin: 1.75rem 0 2rem; background: #e7eeea; border-radius: 4px; }
.project-cover strong { font-size: 1.3rem; }
.project-cover p { margin: .5rem 0 0; font-size: .94rem; color: var(--muted); }
.project-image-button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: transparent; cursor: zoom-in; }
.project-image-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.project-image-button img { border: 0; }
.project-lightbox { width: min(1440px, calc(100vw - 3rem)); max-width: none; max-height: calc(100svh - 2rem); padding: 1.25rem; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); }
.project-lightbox::backdrop { background: rgb(7 19 23 / .78); }
.project-lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; }
.project-lightbox-header p { margin: 0; font-size: .94rem; }
.project-lightbox-header button { flex: 0 0 auto; min-height: 44px; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.project-lightbox > img { display: block; width: 100%; max-height: calc(100svh - 8rem); object-fit: contain; }
body.project-image-open { overflow: hidden; }
@media (min-width: 721px) and (max-height: 760px) { .project-tabs button { padding-top: .55rem; padding-bottom: .55rem; } }
@media (max-width: 1050px) and (min-width: 721px) { .has-project-tabs .project-details { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .work-heading { grid-template-columns: 1fr; gap: 1.1rem; }
  .has-project-tabs .work-content { display: block; padding-top: 1rem; }
  .has-project-tabs .project-navigation { position: sticky; top: 0; z-index: 3; max-width: none; padding: .75rem 0 1rem; background: var(--paper); margin-bottom: 1.75rem; }
  .has-project-tabs .project-tabs { display: none; }
  .project-picker { display: block; color: var(--muted); font-size: .75rem; }
  .project-picker select { display: block; width: 100%; margin-top: .5rem; padding: .8rem .65rem; border: 1px solid var(--line); border-radius: 4px; background: #fafbf8; color: var(--ink); font: inherit; font-size: 1rem; }
  .has-project-tabs .project-details { grid-template-columns: 1fr; }
  .project-stage { scroll-margin-top: 7.5rem; }
  .project-cover { grid-template-columns: 1fr; }
  .project-lightbox { width: calc(100vw - 1rem); padding: .75rem; }
  .project-lightbox-header { align-items: flex-start; gap: .75rem; }
  .project-gallery .project-screenshots { gap: 1rem; }
  .project-gallery figcaption { font-size: .75rem; }
}
