:root {
  color-scheme: light;
  --type-increase: 2pt;
  font-size: calc(100% + var(--type-increase));
  --brown: #402d26;
  --brown-deep: #32221e;
  --ink: #241e1b;
  --muted: #615954;
  --paper: #fbfaf7;
  --white: #fff;
  --warm: #f3eee7;
  --line: #e5ddd5;
  --gold: #f0c44f;
  --ochre: #714a21;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body, h1, h2, h3, p, figure, ol, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.05em; }
p, h1, h2, h3, dd { overflow-wrap: anywhere; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #9a5826; outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; left: 12px; top: 12px; padding: 10px 18px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.masthead { background: var(--brown-deep); color: var(--white); }
.masthead-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.wordmark { display: flex; align-items: baseline; gap: 9px; justify-self: start; }
.wordmark strong { font-size: calc(22px + var(--type-increase)); letter-spacing: -.06em; }
.wordmark span { color: #dbcdc6; font-size: calc(12px + var(--type-increase)); }
.masthead nav { display: flex; gap: clamp(20px, 3.7vw, 56px); font-size: calc(14px + var(--type-increase)); font-weight: 700; }
.masthead nav a:hover, .contact-link:hover { color: var(--gold); }
.contact-link { justify-self: end; font-size: calc(14px + var(--type-increase)); font-weight: 700; }
.contact-link span { color: var(--gold); margin-left: 5px; }

.hero { background: var(--warm); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(40px, 6vw, 90px); align-items: center; padding-block: clamp(50px, 6.5vw, 92px); }
.hero-label { color: var(--ochre); font-weight: 800; font-size: calc(14px + var(--type-increase)); letter-spacing: -.02em; margin-bottom: 17px; }
.hero-label::before { content: ""; display: inline-block; width: 20px; height: 3px; margin-right: 9px; vertical-align: .25em; background: #ac7241; }
.hero h1 { font-size: calc(clamp(42px, 5.65vw, 86px) + var(--type-increase)); line-height: .99; font-weight: 800; letter-spacing: -.075em; }
.hero h1 strong { display: inline-block; margin-top: 10px; font-weight: 900; }
.hero-statement { margin-top: 25px; font-size: calc(clamp(17px, 2vw, 25px) + var(--type-increase)); font-weight: 800; line-height: 1.44; letter-spacing: -.046em; }
.hero-description { margin-top: 12px; max-width: 42ch; color: var(--muted); font-size: calc(15px + var(--type-increase)); }
.button { width: fit-content; display: inline-flex; justify-content: center; align-items: center; gap: 13px; min-height: 45px; padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; font-size: calc(14px + var(--type-increase)); font-weight: 800; }
.button-primary { margin-top: 24px; background: var(--gold); }
.button-primary:hover { background: #e7b840; }
.hero-media { overflow: hidden; background: var(--brown); border-radius: 8px; box-shadow: 0 17px 36px #39261925; }
.hero-media img { height: auto; }
.hero-media figcaption { color: var(--white); padding: 13px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.hero-media figcaption span { display: inline-block; font-size: calc(12px + var(--type-increase)); color: #f1dba3; }
.hero-media figcaption strong { display: block; font-size: calc(clamp(18px, 2.2vw, 32px) + var(--type-increase)); letter-spacing: -.04em; line-height: 1.13; }
.hero-media figcaption a { flex-shrink: 0; align-self: end; border: 1px solid #ffffff7a; border-radius: 4px; padding: 6px 10px; font-size: calc(12px + var(--type-increase)); font-weight: 800; }
.hero-media figcaption a:hover { background: #fff2; }

.section { padding-block: clamp(54px, 6vw, 88px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px 30px; margin-bottom: 27px; }
.section-heading h2 { font-size: calc(clamp(28px, 3.5vw, 46px) + var(--type-increase)); font-weight: 900; }
.section-heading p { color: var(--muted); font-size: calc(15px + var(--type-increase)); }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.project-card { border: 1px solid var(--line); background: var(--white); border-radius: 8px; overflow: clip; }
.project-card:focus-within { outline: 3px solid #9a5826; outline-offset: 3px; }
.project-card > a { height: 100%; display: flex; flex-direction: column; }
.project-card > a:hover .card-bottom strong { text-decoration: underline; text-underline-offset: 4px; }
.card-media { aspect-ratio: 1.85; overflow: hidden; background: var(--brown); }
.card-media img { height: 100%; object-fit: cover; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 19px 20px 15px; }
.category { color: var(--ochre); font-weight: 800; font-size: calc(13px + var(--type-increase)); letter-spacing: -.02em; }
.card-body h3 { font-size: calc(clamp(21px, 2.35vw, 30px) + var(--type-increase)); margin: 5px 0 10px; }
.card-body > p:not(.category) { color: var(--muted); font-size: calc(14px + var(--type-increase)); }
.card-bottom { margin-top: auto; padding-top: 17px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: calc(13px + var(--type-increase)); }
.card-bottom span { font-size: calc(19px + var(--type-increase)); color: var(--ochre); line-height: 1; }

.imagine-cover { background: #12172a; }
.imagine-cover img { object-fit: contain; }

.history { background: var(--warm); border-block: 1px solid var(--line); }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 8px 0 0; gap: 27px; }
.timeline li { position: relative; padding-top: 26px; border-top: 1px solid #bca798; }
.timeline li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: #936440; border: 2px solid var(--warm); box-shadow: 0 0 0 1px #936440; }
.timeline time { color: var(--ochre); font-size: calc(13px + var(--type-increase)); font-weight: 800; }
.timeline h3 { margin-top: 5px; font-size: calc(23px + var(--type-increase)); }
.timeline p { margin-top: 8px; color: var(--muted); font-size: calc(14px + var(--type-increase)); }

.case-layout { display: grid; grid-template-columns: minmax(195px, 244px) minmax(0, 1fr); gap: clamp(22px, 3.5vw, 46px); align-items: start; }
.case-navigation { position: sticky; top: 28px; display: grid; gap: 7px; }
.case-navigation a { display: grid; padding: 13px 15px; background: #f2ede7; border: 1px solid transparent; border-left: 3px solid transparent; border-radius: 5px; }
.case-navigation a span { color: var(--muted); font-size: calc(12px + var(--type-increase)); }
.case-navigation a strong { font-size: calc(15px + var(--type-increase)); }
.case-navigation a:hover { background: #eee1cf; }
.case-navigation a[aria-current="true"] { background: #f4e2bc; border-color: #dfc79c; border-left-color: #88562e; }
.case-navigation a[aria-current="true"] span { color: #694822; }
.case { background: var(--white); padding: clamp(20px, 3.5vw, 42px); border: 1px solid var(--line); border-radius: 8px; }
.case:not([hidden]) + .case:not([hidden]) { margin-top: 22px; }
.case-head h3 { font-size: calc(clamp(27px, 3.5vw, 46px) + var(--type-increase)); margin: 5px 0 8px; }
.case-head > p:last-child { color: var(--muted); }
.case-media, .game-flow { margin: 24px 0; }
.case-media img { border-radius: 6px; aspect-ratio: 1.9; object-fit: cover; }
.case-media figcaption { margin-top: 6px; color: var(--muted); font-size: calc(12px + var(--type-increase)); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); background: var(--warm); border-radius: 5px; padding: 14px 16px; margin: 4px 0 15px; }
.metrics > div { padding-inline: 15px; }
.metrics > div + div { border-left: 1px solid #d9cbbd; }
.metrics dt { font-size: calc(12px + var(--type-increase)); color: var(--muted); line-height: 1.45; }
.metrics dd { font-weight: 900; font-size: calc(clamp(21px, 3vw, 34px) + var(--type-increase)); line-height: 1.28; letter-spacing: -.045em; margin-top: 3px; }
.case-story > div { display: grid; grid-template-columns: 132px 1fr; gap: 14px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.case-story dt { font-weight: 800; font-size: calc(14px + var(--type-increase)); color: var(--brown); }
.case-story dd { color: var(--muted); font-size: calc(15px + var(--type-increase)); }
.case-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.button-dark { color: var(--white); background: var(--brown); }
.button-dark:hover { background: #65463a; }
.button-light { border-color: #cabcaf; }
.button-light:hover { background: var(--warm); }
.game-flow { list-style: none; padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; color: #fff9e8; background: #452e40; border-radius: 6px; }
.game-flow li { border: 1px solid #b38d8170; border-radius: 4px; padding: 12px 10px; }
.game-flow strong, .game-flow span { display: block; }
.game-flow strong { font-size: calc(14px + var(--type-increase)); }
.game-flow span { font-size: calc(12px + var(--type-increase)); color: #f1d9cc; line-height: 1.4; margin-top: 4px; }

.footer { background: var(--brown-deep); color: var(--white); padding-block: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.footer h2 { font-size: calc(31px + var(--type-increase)); margin-top: 4px; }
.footer p { font-size: calc(13px + var(--type-increase)); color: #ddcac2; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 8px; font-size: calc(13px + var(--type-increase)); font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }
.footer-links span { color: var(--gold); }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .hero-inner { gap: 25px; }
  .hero h1 { font-size: calc(clamp(34px, 5vw, 50px) + var(--type-increase)); }
  .featured-grid { gap: 12px; }
  .card-body { padding: 14px; }
  .case-layout { grid-template-columns: minmax(148px, 177px) minmax(0,1fr); gap: 16px; }
  .case-story > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .masthead-inner { min-height: auto; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 3px; padding-block: 9px 8px; }
  .masthead nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; column-gap: 20px; row-gap: 2px; font-size: calc(12px + var(--type-increase)); padding-top: 6px; border-top: 1px solid #5a433a; }
  .wordmark strong { font-size: calc(19px + var(--type-increase)); }
  .contact-link { grid-column: 2; grid-row: 1; font-size: calc(12px + var(--type-increase)); }
  .hero-inner { grid-template-columns: minmax(0,1fr); gap: 26px; padding-block: 32px 25px; }
  .hero h1 { font-size: calc(clamp(41px, 10vw, 62px) + var(--type-increase)); }
  .hero-statement { margin-top: 18px; }
  .hero-media figcaption { padding: 10px 12px; }
  .section { padding-block: 44px; }
  .section-heading { display: block; margin-bottom: 19px; }
  .section-heading p { margin-top: 6px; font-size: calc(14px + var(--type-increase)); }
  .featured-grid { grid-template-columns: 1fr; gap: 14px; }
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 5px; }
  .timeline li { padding: 0 0 20px 15px; border: 0; border-left: 1px solid #bca798; }
  .timeline li::before { left: -6px; top: 6px; }
  .timeline li:last-child { padding-bottom: 0; }
  .case-layout { grid-template-columns: minmax(0,1fr); }
  .case-navigation { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .case-navigation a { padding: 7px 8px; }
  .case-navigation a strong { font-size: calc(13px + var(--type-increase)); overflow-wrap: anywhere; }
  .case { padding: 15px; }
  .metrics { padding: 10px 0; }
  .metrics > div { padding-inline: 6px; }
  .metrics dt { font-size: calc(11px + var(--type-increase)); }
  .case-story dd { font-size: calc(14px + var(--type-increase)); }
  .game-flow { grid-template-columns: 1fr; padding: 8px; }
  .footer-inner { align-items: start; flex-direction: column; }
}

@media print {
  .masthead, .skip-link, .case-navigation, .footer-links { display: none; }
  .wrap { width: 100%; }
  .section, .hero-inner { padding-block: 16px; }
  .case-layout { display: block; }
  .case[hidden] { display: block !important; }
  .case { box-shadow: none; }
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 17px; margin-top: 24px; }
.hero-actions .button { margin-top: 0; }
.hero-team-link { color: var(--ochre); font-size: calc(14px + var(--type-increase)); font-weight: 800; text-decoration: underline; text-underline-offset: .25em; }
.team-section { background: #f7f1e8; border-block: 1px solid var(--line); }
.team-section + .history { border-top: 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.team-card { display: flex; flex-direction: column; min-height: 100%; border: 1px solid #e2d3c4; border-top: 3px solid #986640; border-radius: 5px; background: var(--white); padding: 20px; }
.team-card h3 { font-size: calc(clamp(23px, 2.5vw, 30px) + var(--type-increase)); margin: 5px 0 10px; }
.team-card > p:not(.category) { color: var(--muted); font-size: calc(14px + var(--type-increase)); margin-bottom: 16px; }
.team-card > p strong { color: var(--ink); font-size: calc(12px + var(--type-increase)); margin-right: 6px; }
.team-card-outcome { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: auto; padding-top: 10px; font-size: calc(13px + var(--type-increase)); font-weight: 800; }
.team-card-outcome span:last-child { color: var(--ochre); font-size: calc(18px + var(--type-increase)); }
.team-card:hover .team-card-outcome span:first-child { text-decoration: underline; text-underline-offset: .25em; }
.case-details { margin-top: 25px; }
.case-details h4, .detail-point h5 { margin: 0; letter-spacing: -.035em; line-height: 1.35; word-break: keep-all; }
.case-details h4 { font-size: calc(22px + var(--type-increase)); margin-bottom: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; border-top: 1px solid var(--line); }
.detail-point { padding: 15px 0 17px; border-bottom: 1px solid var(--line); }
.detail-point h5 { font-size: calc(16px + var(--type-increase)); }
.detail-point p { font-size: calc(14px + var(--type-increase)); color: var(--muted); margin-top: 6px; }
.collaboration-flow { background: #45342e; }
.flow-image img { aspect-ratio: auto; max-height: 400px; object-fit: contain; background: var(--warm); }
@media (max-width: 850px) {
  .team-grid { gap: 12px; }
  .team-card { padding: 15px; }
  .masthead nav { gap: 18px; }
  .hero-actions { gap: 8px 12px; }
}
@media (max-width: 640px) {
  .team-grid, .detail-grid { grid-template-columns: 1fr; }
  .masthead nav { column-gap: 13px; }
  .hero-actions { margin-top: 20px; }
  .case-details h4 { font-size: calc(20px + var(--type-increase)); }
}

.play-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 16px);
  margin-block: 24px;
}
.play-gallery a {
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid #2b2d40;
  border-radius: 6px;
  background: #10111f;
}
.play-gallery picture { display: block; height: 100%; }
.play-gallery img { height: 100%; object-fit: contain; }
.play-gallery figcaption {
  margin-top: 7px;
  color: var(--brown);
  font-size: calc(13px + var(--type-increase));
  font-weight: 800;
  text-align: center;
}
.play-gallery a:hover { border-color: #926746; }

@media (max-width: 640px) {
  .play-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
}

.deep-sea-cover { background: #090a0f; }
.deep-sea-cover img { object-fit: contain; }
.depth-gallery {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.09fr);
}
.depth-gallery a { aspect-ratio: 272 / 480; background: #090a0f; }
.depth-gallery figure:last-child a { aspect-ratio: 800 / 676; }
@media (max-width: 640px) {
  .depth-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .depth-gallery figure:last-child { grid-column: 1 / -1; }
}
