:root {
  color-scheme: light;
  /* Reference palette and shape, adapted for web contrast and responsive sizing. */
  --paper: #fff;
  --ink: #20242c;
  --muted: #596270;
  --line: #e4e8ee;
  --accent: #2352a1;
  --tag-bg: #f6f7f9;
  --chip-bg: #f3f3f6;
  --media-radius: clamp(24px, 3vw, 42px);
  --tag-radius: 9px;
  --wash-acquisition: radial-gradient(ellipse at 94% 100%, #f5dfd2, transparent 60%), linear-gradient(130deg, #e4edef, #a8bfee);
  --wash-content: radial-gradient(ellipse at 91% 100%, #d7e7f7, transparent 67%), linear-gradient(140deg, #c6d8f3, #a8c2ef);
  --wash-paid: radial-gradient(ellipse at 60% 8%, #ebe1ef, transparent 65%), linear-gradient(140deg, #eae8ed, #bcccf4);
  --sans: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --numbers: "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--sans); word-break: keep-all; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.16; }
.container { width: min(100% - 72px, 1160px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 5; top: 10px; left: 10px; background: var(--paper); padding: 10px 16px; }
.site-header { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 750; line-height: 1.15; }
.monogram { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #edf3ff; color: var(--accent); font: 700 18px/1 var(--numbers); }
nav { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 30px); }
nav a { display: inline-flex; align-items: center; min-height: 42px; color: var(--muted); font-size: 14px; font-weight: 700; }
nav a:hover, .site-footer a:hover { color: var(--accent); }
nav a:last-child { padding-inline: 13px; border: 1px solid #d1dbeb; border-radius: 8px; color: var(--accent); }
nav a:last-child:hover { background: #edf3ff; }

.hero { padding-block: clamp(42px, 5.5vw, 76px) 26px; }
.intro { margin-inline: auto; margin-bottom: clamp(26px, 4.1vw, 54px); text-align: center; }
.intro-role { color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); font-weight: 650; }
.intro-role strong { color: var(--ink); }
.hero h1 { margin-top: 12px; font-size: clamp(27px, 4vw, 53px); font-weight: 800; letter-spacing: -.06em; line-height: 1.26; text-wrap: balance; }
.headline-group, .headline-chip { display: inline-block; }
.headline-chip { padding: .06em .26em .09em; border-radius: 999px; background: var(--chip-bg); color: #444c5b; }
.headline-chip-raised { color: #3f3a68; background: linear-gradient(165deg, #f3f3f6 14%, #ddd7fa); transform: translateY(-.07em) rotate(-4deg); }
.intro-copy { max-width: 36rem; margin: 15px auto 0; color: var(--muted); font-size: 16px; text-wrap: balance; }

.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 11px 16px; border: 1px solid transparent; border-radius: var(--tag-radius); font-size: 14px; font-weight: 750; }
.button-primary { color: var(--paper); background: var(--accent); }
.button-primary:hover { background: #1c4081; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.feature-link { display: block; }
.feature-art { position: relative; display: grid; place-items: center; aspect-ratio: 1.12; min-height: 216px; padding: 22px 18px 46px; overflow: hidden; }
.wash-acquisition { background: var(--wash-acquisition); }
.wash-content { background: var(--wash-content); }
.wash-paid { background: var(--wash-paid); }
.glass-card { width: min(100%, 255px); padding: clamp(14px, 2vw, 23px); border: 1px solid #ffffffaa; border-radius: clamp(16px, 2vw, 25px); background: #ffffffc9; box-shadow: 0 12px 36px #354f7a10; }
.mock-label { display: block; color: #586476; font-size: 13px; font-weight: 650; line-height: 1.3; }
.mock-title { display: block; margin-top: 3px; font-size: clamp(16px, 2vw, 23px); font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.install-comparison, .cost-rows { display: grid; gap: 7px; margin-top: 14px; }
.install-row, .cost-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #49556a; font-size: 12px; font-weight: 700; }
.install-row strong, .cost-row strong { color: var(--ink); font: 750 clamp(14px, 1.6vw, 19px)/1.1 var(--numbers); white-space: nowrap; }
.install-row strong span, .mock-metric span { margin-left: 2px; font: 700 .62em/1 var(--sans); }
.install-track { height: 8px; overflow: hidden; border-radius: 999px; background: #dce4f1; }
.install-track span { display: block; height: 100%; border-radius: inherit; }
.install-before { width: 11.111%; background: #7889a8; }
.install-after { width: 100%; background: #4268b1; }

.reel-stack { position: relative; isolation: isolate; width: min(60%, 168px); }
.reel-stack::before { position: absolute; z-index: -1; inset: -5px -13px 8px 12px; border-radius: 21px; background: #ffffffe6; content: ""; transform: rotate(7deg); }
.reel-card { display: flex; flex-direction: column; align-items: start; justify-content: space-between; gap: 20px; aspect-ratio: .88; background: radial-gradient(ellipse at 13% 12%, #eee3ff, transparent 58%), linear-gradient(150deg, #ffffffed, #bcd6f9); transform: rotate(-5deg); }
.reel-play { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #fff; border-radius: 50%; color: #2d4e8d; background: #ffffffa6; }
.reel-play svg { width: 20px; height: 20px; }
.mock-metric { display: block; margin-top: 5px; color: #233e72; font: 750 clamp(23px, 3vw, 39px)/1 var(--numbers); letter-spacing: -.055em; white-space: nowrap; }

.cost-row { min-height: 34px; padding: 7px 10px; border-radius: var(--tag-radius); background: #ffffffba; }
.cost-row-result { background: #e9edff; }
.cost-row-result strong { color: #37458b; }
.feature-arrow { position: absolute; right: clamp(12px, 2vw, 23px); bottom: clamp(12px, 2vw, 23px); display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--ink); background: #ffffff87; font: 650 24px/1 var(--sans); }
.feature-link:hover .feature-arrow { background: var(--paper); }
.feature-caption { padding: 17px 9px 0; }
.feature-caption h2 { font-size: clamp(17px, 1.85vw, 25px); letter-spacing: -.045em; line-height: 1.3; }
.feature-caption p { margin-top: 5px; color: var(--muted); font-size: 14px; }

.section { padding-block: 72px; }
.section-heading { margin-bottom: 20px; }
h2 { font-size: clamp(34px, 4vw, 49px); letter-spacing: -.055em; font-weight: 800; }
.section-copy { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 25px; }
.filters button { min-height: 40px; padding: 7px 13px; border: 1px solid transparent; border-radius: var(--tag-radius); background: var(--tag-bg); color: var(--muted); font-size: 14px; font-weight: 700; }
.filters button:hover { border-color: #a5afbf; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(27px, 4vw, 52px) clamp(18px, 2.4vw, 29px); }
.project-card { min-width: 0; }
.card-visual { display: grid; place-items: center; aspect-ratio: 1.65; padding: 12px; border-radius: var(--media-radius); overflow: hidden; }
.card-visual svg { display: block; width: min(100%, 440px); max-height: 100%; }
.visual-growth { color: #294777; background: var(--wash-acquisition); }
.visual-content { color: #2e497b; background: var(--wash-content); }
.visual-search { color: #4e4163; background: #f0ecf9; }
.visual-paid { color: #3c5089; background: var(--wash-paid); }
.visual-number { fill: currentColor; font: 800 39px var(--sans); letter-spacing: -.06em; }

.project-body { padding-top: clamp(14px, 2.4vw, 26px); }
.project-meta { color: var(--muted); font-size: 14px; font-weight: 700; }
.project-meta span { margin-inline: 2px; }
.project-body > h3 { margin-top: 8px; color: #34383f; font-size: clamp(20px, 2.15vw, 29px); letter-spacing: -.035em; line-height: 1.3; }
.project-body > h3 + p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.project-tags li, .skill-list li { padding: 5px 9px; border-radius: var(--tag-radius); background: var(--tag-bg); color: var(--muted); font-size: 13px; font-weight: 650; }
.project-open { min-height: 44px; margin-top: 4px; padding: 7px 0; border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 750; }
.project-open span { margin-left: 5px; }
.project-open:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-card.compact { border-top: 1px solid var(--line); }
.project-card.compact .project-body > h3 { font-size: clamp(20px, 1.85vw, 24px); }

.project-detail { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.project-detail h3, #case-content h3 { margin: 20px 0 5px; font-size: 17px; letter-spacing: -.02em; }
.project-detail p, .project-detail li, #case-content p, #case-content li { color: var(--muted); font-size: 15px; }
.case-context { font-weight: 750; }
#case-content ul, .project-detail ul { margin: 7px 0 0; padding-left: 20px; }

.experience-section { background: #f6f8fb; border-block: 1px solid var(--line); }
.experience-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(22px, 6vw, 90px); }
.section-copy { margin-top: 16px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 20px 0 0; padding: 0; }
.experience-list article { padding: 16px 0; border-top: 1px solid var(--line); }
.experience-list article:last-child { border-bottom: 1px solid var(--line); }
.experience-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.experience-top h3 { font-size: 21px; letter-spacing: -.045em; }
.experience-top > span, .roles small { color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.experience-role { margin-top: 3px; color: var(--accent); font-size: 13px; font-weight: 800; }
.roles { display: grid; gap: 10px; margin-top: 11px; }
.roles dt { font-weight: 800; }
.roles small { margin-left: 4px; }
.roles dd, .experience-list article > p + p { color: var(--muted); font-size: 14px; }

.contact-panel { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 25px; padding: clamp(25px, 5vw, 58px); border: 1px solid #dce5f5; border-radius: 24px; background: #edf3ff; }
.contact-panel p { margin-top: 10px; color: var(--muted); }
.contact-links { display: grid; justify-items: stretch; width: min(100%, 340px); justify-self: end; gap: 8px; }
.button-outline { border-color: #bbc9df; color: var(--accent); background: var(--paper); }
.button-outline:hover { background: #f6f8fb; }
.email-row { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--muted); font-size: 13px; }
#email-address { overflow-wrap: anywhere; }
.email-row button { padding: 4px 7px; border-radius: 5px; border: 1px solid #bbc9df; background: transparent; color: var(--accent); white-space: nowrap; }
.email-row button:hover { background: var(--paper); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 72px; font-weight: 750; }
.site-footer small { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
.site-footer a { font-size: 13px; }

dialog { width: min(calc(100% - 36px), 640px); max-height: calc(100% - 36px); padding: 0; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--paper); box-shadow: 0 18px 70px #20294228; }
dialog::backdrop { background: #20294288; }
html:has(dialog[open]) { overflow: hidden; }
.dialog-inner { position: relative; padding: clamp(24px, 5vw, 42px); }
.dialog-close { position: absolute; top: 15px; right: 15px; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); font-size: 27px; line-height: 1; }
.dialog-close:hover { background: #edf3ff; }
#case-category { padding-right: 42px; }
#case-title { margin-top: 7px; font-size: clamp(28px, 5vw, 43px); }
#case-content { margin-top: 16px; }

@media (max-width: 900px) {
  .desktop-break { display: none; }
  .feature-art { padding-inline: 14px; }
  .feature-caption { padding-inline: 5px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 61px; }
  nav { gap: 11px; }
  nav a { font-size: 13px; }
  nav a:last-child { padding-inline: 8px; }
  .hero { padding-block: 36px 16px; }
  .intro-copy { margin-top: 12px; font-size: 15px; }
  .feature-grid { grid-template-columns: 1fr; gap: 23px; }
  .feature-art { aspect-ratio: auto; min-height: 222px; padding-block: 18px; border-radius: 24px; }
  .glass-card { width: min(78%, 255px); }
  .reel-stack { width: min(47%, 130px); }
  .reel-card { width: 100%; }
  .feature-caption { padding: 11px 1px 0; }
  .feature-caption p { margin-top: 3px; }
  .section { padding-block: 46px; }
  .section-heading { margin-bottom: 15px; }
  .experience-grid, .contact-panel { grid-template-columns: 1fr; }
  .contact-links { justify-self: start; }
}

@media (max-width: 540px) {
  .wordmark { gap: 6px; font-size: 15px; }
  .monogram { width: 29px; height: 29px; font-size: 16px; }
  .project-grid { grid-template-columns: 1fr; }
  .card-visual svg { width: min(100%, 350px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
