@font-face {
  font-family: 'Barlow Condensed';
  src: url('./assets/fonts/BarlowCondensed-ExtraBold.ttf') format('truetype');
  font-style: normal; font-weight: 800; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('./assets/fonts/BarlowCondensed-ExtraBoldItalic.ttf') format('truetype');
  font-style: italic; font-weight: 800; font-display: swap;
}
:root {
  --paper: #101b2d;
  --white: #fff;
  --ink: #f2f5fa;
  --muted: #aebbd0;
  --line: #334155;
  --accent: #a8c5ff;
  --soft: #18263b;
  --accent-hover: #c7d9ff;
  --body: #c0cadb;
  --scene-intro: #152956;
  --scene-care: #142737;
  --scene-move: #152c20;
  --scene-life: #25213c;
  --on-dark: #f5f8ff;
  --on-dark-muted: #c3d3f2;
  --highlight: #98baff;
  --studio-glow: #244481;
  --studio-edge: #182e60;
  --studio-floor: #112047;
  --studio-title: #b7ceff;
  --gutter: clamp(24px, 5.6vw, 90px);
  --font: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', Arial, sans-serif;
  --font-display: 'Barlow Condensed', Impact, sans-serif;
  --text-body: 1.0625rem;
  --text-ui: .9375rem;
  --text-caption: .8125rem;
  --text-label: .75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.65; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--paper); }
.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; }
.skip-link { position: fixed; top: -70px; left: 20px; background: var(--accent); color: var(--paper); padding: 12px; z-index: 10; }
.skip-link:focus { top: 10px; }
.site-header, .hero, .section, .closing, footer { width: calc(100% - var(--gutter) * 2); max-width: 1400px; margin-inline: auto; }
.site-header { height: 84px; display: flex; align-items: center; gap: 60px; border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.site-header .wordmark { display: flex; flex-direction: column; gap: 9px; flex-shrink: 0; }
.site-header .wordmark small { font-family: var(--font); font-size: 9px; font-weight: 500; letter-spacing: .16em; }
.wordmark-dot { font-size: 9px; vertical-align: top; margin-left: 3px; }
.site-header nav { display: flex; gap: 32px; margin-left: auto; font-size: var(--text-ui); }
.site-header nav a { padding: 14px 0; }
.site-header nav a:hover, .site-header nav a.current { color: var(--accent); }
.site-header nav a.current { text-decoration: underline; text-underline-offset: 7px; }
.eyebrow { font-size: var(--text-label); font-weight: 500; letter-spacing: 1.6px; line-height: 1.6; color: var(--accent); }
h1 { font-size: clamp(38px, 3.75vw, 59px); line-height: 1.3; letter-spacing: -2.6px; font-weight: 550; margin-top: 24px; }
.accent-text { color: var(--accent); }
.section { padding-block: 64px 80px; }
.work-section { padding-top: 50px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.section-kicker { color: var(--muted); font-size: var(--text-label); letter-spacing: 1.7px; margin-bottom: 14px; }
h2 { font-size: 32px; font-weight: 500; letter-spacing: -1.4px; line-height: 1.45; }
.section-heading > p { font-size: 1rem; color: var(--muted); line-height: 1.85; }
.work-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); margin-block: 27px 28px; min-height: 48px; }
.filters { display: flex; gap: 26px; flex-wrap: wrap; }
.filter { padding: 12px 0 15px; min-height: 44px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); font-size: var(--text-ui); text-align: left; margin-bottom: -1px; }
.filter:hover { color: var(--ink); }
.filter.active { border-bottom-color: var(--ink); color: var(--ink); font-weight: 600; }
.filter > span { margin-left: 5px; font-size: var(--text-caption); font-weight: 400; color: var(--muted); }
.work-caption { font-size: var(--text-label); color: var(--muted); letter-spacing: 1px; white-space: nowrap; margin-left: auto; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 43px 26px; }
.project-card { min-width: 0; scroll-margin-top: 28px; }
.project-open { display: block; }
.project-image { aspect-ratio: 1; overflow: hidden; background: var(--white); position: relative; border-radius: 3px; }
.project-image img { width: 100%; height: 100%; object-fit: contain; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: var(--text-caption); letter-spacing: .7px; color: var(--muted); }
.project-name { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; }
.project-name h3 { min-width: 0; overflow-wrap: anywhere; font-size: 1.5rem; letter-spacing: -.6px; line-height: 1.5; font-weight: 550; }
.project-arrow { font-size: 19px; line-height: 1; color: var(--muted); }
.project-open:hover .project-name h3 { color: #fff; }
.project-subtitle { font-size: 1rem; color: var(--muted); line-height: 1.85; margin-top: 5px; letter-spacing: 0; }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; background: var(--soft); padding: 75px max(var(--gutter), calc((100vw - 1400px) / 2)); }
.about-left h2 { margin-top: 29px; font-size: 34px; line-height: 1.55; letter-spacing: -1.6px; }
.about-note { color: var(--muted); font-size: 1rem; line-height: 1.9; margin-top: 26px; }
.about-copy { padding-top: 5px; }
.about-copy > p { font-size: var(--text-body); line-height: 1.85; color: var(--muted); max-width: 460px; }
.about-copy > p + p { margin-top: 22px; }
.about-signature { margin-top: 29px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--text-ui); letter-spacing: 1.1px; display: flex; align-items: center; gap: 20px; max-width: 460px; }
.about-signature span { font-size: var(--text-caption); font-weight: 400; color: var(--muted); letter-spacing: .3px; }
.approach-section { padding-block: 77px 80px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; margin-top: 35px; }
.principles article { border-top: 1px solid var(--line); padding-top: 19px; }
.principle-top { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--text-label); letter-spacing: 1px; margin-bottom: 25px; }
.principles h3 { font-size: 23px; font-weight: 500; line-height: 1.5; letter-spacing: -.9px; }
.principles p { font-size: var(--text-body); color: var(--muted); line-height: 1.85; margin-top: 20px; max-width: 330px; }
.closing { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-block: 45px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.closing .eyebrow { font-size: var(--text-label); color: var(--muted); }
.closing h2 { font-size: 30px; margin-top: 20px; line-height: 1.55; }
.closing-link { display: inline-flex; align-items: center; gap: 45px; border-bottom: 1px solid var(--muted); padding-bottom: 10px; font-size: var(--text-ui); }
.closing-link > span { font-size: 22px; }
footer { display: flex; align-items: center; gap: 30px; width: 100%; max-width: none; margin-inline: 0; padding-inline: max(var(--gutter), calc((100% - 1400px) / 2)); padding-block: 30px; background: #080f1c; }
footer .wordmark { font-size: 18px; letter-spacing: -.6px; }
footer > span { font-size: var(--text-label); color: var(--muted); }
.copyright { margin-left: auto; letter-spacing: .7px; }
.back-top { font-size: var(--text-caption); margin-left: 12px; }

/* Each project is a complete, shareable document. */
.detail-page { --detail-width: 1180px; }
.detail-page footer { max-width: none; padding-inline: max(var(--gutter), calc((100% - var(--detail-width)) / 2)); }
.detail-page .site-header { position: sticky; top: 0; z-index: 40; width: 100%; max-width: none; height: 102px; margin: 0; padding-inline: clamp(24px, 4.2vw, 80px); border: 0; background: var(--paper); }
.detail-page .site-header .wordmark { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.detail-archive-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-left: auto; font-size: 12px; white-space: nowrap; }
.detail-archive-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.detail-archive-link:hover { color: var(--accent); }
.detail-page .skip-link { z-index: 100; }
.detail-header { justify-content: space-between; }
.detail-main { max-width: var(--detail-width); width: calc(100% - var(--gutter) * 2); margin: 0 auto; }
.detail-intro { padding: 58px 0 38px; text-align: center; }
.detail-heading { margin-top: 17px; }
.detail-heading h1 { font-family: var(--font-display), var(--font); font-size: clamp(32px, 4vw, 56px); margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.detail-intro > .eyebrow { font-family: var(--font); font-size: 16px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.detail-subtitle { font-size: 21px; line-height: 1.75; margin-top: 15px; color: #aeb2b8; letter-spacing: -.6px; }
.detail-artwork { background: var(--white); }
.detail-image { width: 100%; height: auto; }
.detail-artwork figcaption { border-top: 1px solid var(--line); padding: 18px 20px; font-size: var(--text-caption); color: var(--muted); background: var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.detail-tags { min-width: 0; overflow-wrap: anywhere; }
.detail-top { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; flex-shrink: 0; margin-left: auto; letter-spacing: .6px; }
.related-projects { border-top: 1px solid var(--line); padding-block: 48px 60px; }
.related-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.detail-page footer { border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .site-header { gap: 35px; }
  h1 { font-size: 40px; letter-spacing: -2px; }
  .project-grid { gap: 35px 22px; }
  .project-name h3 { font-size: 1.5rem; }
  .project-subtitle { font-size: 1rem; }
  .about-section { gap: 8%; }
  .about-left h2 { font-size: 29px; }
  .principles { gap: 25px; }
  .principles h3 { font-size: 20px; }
}

@media (max-width: 900px) {
  h1 { font-size: 34px; letter-spacing: -1.7px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-name h3 { font-size: 1.5rem; }
  .project-subtitle { font-size: 1rem; }
  .about-left h2 { font-size: 26px; }
  .about-copy > p { font-size: var(--text-body); }
  .principles p { font-size: var(--text-body); }
  footer > span:not(.copyright) { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 24px; --text-body: 1rem; --text-ui: .875rem; }
  .site-header { height: 72px; gap: 15px; }
  .wordmark { font-size: 21px; letter-spacing: -.9px; }
  .site-header .wordmark { gap: 6px; }
  .site-header nav { gap: 22px; font-size: var(--text-ui); }
  h1 { font-size: clamp(35px, 7.4vw, 45px); line-height: 1.32; letter-spacing: -1.9px; margin-top: 19px; }
  .section { padding-block: 42px 50px; }
  .section-heading { gap: 20px; }
  h2 { font-size: 27px; letter-spacing: -1.2px; }
  .section-kicker { font-size: var(--text-label); margin-bottom: 11px; }
  .section-heading > p { display: none; }
  .work-toolbar { flex-wrap: wrap; gap: 12px; margin-block: 20px 22px; }
  .filters { gap: 18px; }
  .filter { font-size: var(--text-ui); padding-block: 12px; }
  .filter > span { font-size: var(--text-caption); margin-left: 3px; }
  .work-caption { font-size: var(--text-label); letter-spacing: .5px; }
  .project-grid { gap: 29px 17px; }
  .project-name h3 { font-size: 1.5rem; }
  .project-subtitle { font-size: 1rem; }
  .project-meta { font-size: var(--text-caption); letter-spacing: .2px; margin-top: 13px; }
  .project-view { display: none; }
  .about-section { grid-template-columns: 1fr; gap: 27px; padding-block: 43px; }
  .about-left h2 { font-size: 29px; margin-top: 21px; }
  .about-note { font-size: 1rem; margin-top: 16px; }
  .about-copy > p { font-size: var(--text-body); max-width: none; }
  .about-copy > p + p { margin-top: 17px; }
  .about-signature { max-width: none; }
  .principles { grid-template-columns: 1fr; gap: 28px; margin-top: 27px; }
  .principles article { display: grid; grid-template-columns: 1fr 1fr; column-gap: 25px; }
  .principle-top { grid-column: 1 / -1; margin-bottom: 17px; }
  .principles h3 { font-size: 22px; }
  .principles p { margin-top: 0; font-size: var(--text-body); }
  .closing { align-items: flex-start; flex-direction: column; gap: 25px; padding-block: 32px; }
  .closing h2 { font-size: 27px; margin-top: 15px; }
  .closing .eyebrow { font-size: var(--text-label); }
  .closing-link { font-size: var(--text-ui); gap: 30px; }
  footer { gap: 18px; padding-block: 24px; }
  footer .wordmark { font-size: 18px; }
  .copyright { font-size: var(--text-label); }
  .back-top { font-size: var(--text-caption); margin-left: 0; }
  .detail-intro { padding-block: 35px 26px; }
  .detail-intro > .eyebrow { font-size: 11px; letter-spacing: 1px; }
  .detail-heading { margin-top: 13px; }
  .detail-heading h1 { font-size: 28px; letter-spacing: -1.1px; }
  .detail-subtitle { font-size: 17px; line-height: 1.8; margin-top: 13px; }
  .detail-artwork { margin-inline: calc(-1 * var(--gutter)); }
  .detail-artwork figcaption { padding-inline: var(--gutter); font-size: var(--text-caption); flex-wrap: wrap; }
  .related-projects { padding-block: 35px 45px; }
  .related-heading { flex-wrap: wrap; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
}

@media (max-width: 440px) {
  :root { --gutter: 20px; }
  .site-header nav { gap: 17px; font-size: var(--text-ui); }
  .wordmark { font-size: 21px; }
  .project-grid { grid-template-columns: 1fr; gap: 29px; }
  .project-name h3 { font-size: 1.5rem; }
  .project-subtitle { font-size: 1rem; }
  .project-meta { font-size: var(--text-caption); }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 0 20px; }
  .filter { font-size: var(--text-ui); padding-block: 14px; }
  .work-caption { display: none; }
  .principles article { grid-template-columns: 1fr; }
  .principles h3 { font-size: 23px; }
  .principles p { margin-top: 14px; max-width: none; font-size: var(--text-body); }
  .about-left h2 { font-size: 26px; }
  .detail-heading h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .hero.is-animated .hero-scene, .hero.is-animated .hero-scene img { animation: none; }
}

/* Shared portfolio cards: the same face and interaction at every size. */
.portfolio-card { --thumbnail-tone: 16, 28, 50; container-type: inline-size; display: block; position: relative; isolation: isolate; overflow: hidden; border-radius: 4px; background: #101c32; color: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.portfolio-card[data-category="systems"] { --thumbnail-tone: 16, 41, 44; }
.portfolio-card[data-category="sports"] { --thumbnail-tone: 20, 43, 28; }
.portfolio-card[data-category="life"] { --thumbnail-tone: 38, 27, 45; }
.detail-page .related-projects .portfolio-card { --thumbnail-tone: 16, 27, 45; }
.portfolio-card .project-image { aspect-ratio: 1; border-radius: 0; }
.portfolio-card .project-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.portfolio-card .project-info { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(8px, 6cqw, 24px); background: linear-gradient(180deg, rgba(var(--thumbnail-tone), 0) 20%, rgba(var(--thumbnail-tone), .82) 65%, rgba(var(--thumbnail-tone), .97)); opacity: 0; transform: translateY(8px); pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
.portfolio-card .project-meta { margin: 0; color: #fff; opacity: .8; font-size: clamp(10px, 3.5cqw, 14px); line-height: 1.4; letter-spacing: 0; }
.portfolio-card .project-name { margin-top: 5px; gap: 6px; align-items: flex-end; }
.portfolio-card .project-name h3 { color: #fff; font-size: clamp(14px, 7cqw, 32px); font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.portfolio-card .project-arrow { flex-shrink: 0; color: #fff; font-size: clamp(12px, 5cqw, 22px); }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px #0006; }
.portfolio-card:hover .project-image img { transform: scale(1.03); }
.portfolio-card:hover .project-info, .portfolio-card:focus-visible .project-info { opacity: 1; transform: none; }
.portfolio-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (hover: none), (pointer: coarse) {
  .portfolio-card .project-info { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .detail-page .site-header { height: 72px; padding-inline: 22px; gap: 15px; }
  .detail-page .site-header .wordmark { font-size: 27px; gap: 6px; }
  .detail-archive-link { font-size: 11px; gap: 8px; }
  .detail-page .related-projects .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .detail-page .related-projects .project-card:nth-child(n + 4) { display: none; }
  .detail-page .related-projects .project-info { padding: 6px; }
  .detail-page .related-projects .project-meta { font-size: clamp(8px, 6cqw, 11px); }
  .detail-page .related-projects .project-name { margin-top: 3px; gap: 3px; }
  .detail-page .related-projects .project-name h3 { font-size: clamp(11px, 9cqw, 16px); line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .detail-page .related-projects .project-arrow { font-size: 12px; }
}
@media (min-width: 861px) {
  .home-page .work-section .project-grid,
  .detail-page .related-projects .project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
