@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700;800;900&display=swap');

:root {
  color-scheme: dark;
  --black: #000;
  --red: #ef0013;
  --text: #f0efea;
  --muted: #b6aca6;
  --line: #302927;
  --gutter: clamp(20px, 5vw, 84px);
  --shell-width: 1600px;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--black); color: var(--text); font: 16px/1.65 Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
img { max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }
p, dd { word-break: keep-all; }
.shell { width: min(100%, var(--shell-width)); padding-inline: var(--gutter); margin-inline: auto; }
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 42px); }
.top {
  font-family: var(--display);
  font-weight: 400;
  padding-inline-start: calc(var(--gutter) + max(0px, (100% - var(--shell-width)) / 2));
}
.top > a {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  font-size: clamp(15px, 2vw, 28px);
  line-height: 1;
  white-space: nowrap;
  transform-origin: left center;
}
.top a {
  transition: color .18s ease, transform .18s ease;
}
.top a:is(:hover, :focus-visible) {
  color: var(--red);
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .top a { transition: none; }
  .top a:is(:hover, :focus-visible) { transform: none; }
}
.brand-symbol, .action-symbol { width: 10px; height: 21px; object-fit: contain; vertical-align: middle; }
.brand-symbol { margin-right: 8px; }
.action-symbol { margin-left: 6px; }
a .action-symbol, button .action-symbol, a .brand-symbol { filter: brightness(0) invert(1); transition: filter .2s ease; }
a:hover .action-symbol, button:hover .action-symbol, a:focus-visible .action-symbol, button:focus-visible .action-symbol, a:hover .brand-symbol, a:focus-visible .brand-symbol { filter: none; }
.poster { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(780px, calc(100svh - 72px)); background: #140103; overflow: hidden; }
.poster-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; filter: saturate(.94); z-index: -2; }
.poster::after { position: absolute; inset: 0; content: ""; z-index: -1; background: linear-gradient(180deg, #0002 5%, #14000250 35%, #000 98%), linear-gradient(100deg, #1e0004a0, #95000e42); }
.poster-inner { padding-block: clamp(55px, 10vh, 110px) 38px; }
.display { font-family: var(--display); font-weight: 900; line-height: .82; letter-spacing: -.035em; }
.poster h1 { font-size: clamp(44px, 13.15vw, 196px); color: var(--red); }
.poster h1 span { display: block; }
.poster h1 span + span { text-align: right; }
.chapter { padding-block: clamp(54px, 8vw, 125px); }
.sectionlabel { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 30px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.sectionlabel h2 { font-size: 20px; letter-spacing: -.03em; }
.reel-layout { display: grid; grid-template-columns: .75fr 1fr; align-items: center; gap: clamp(25px, 8vw, 120px); }
.reel-logo { width: clamp(160px, 26vw, 340px); display: block; margin-bottom: 28px; }
.reel-copy h2 { font-size: clamp(25px, 3.4vw, 52px); line-height: 1.24; letter-spacing: -.055em; word-break: keep-all; }
.reel-copy p, .mission, .contact-layout p { color: var(--muted); max-width: 36em; margin-top: 20px; }
.reel-screen { aspect-ratio: 1; background: #171313; }
.reel-screen iframe, .player iframe { width: 100%; height: 100%; display: block; border: 0; }
.reel-link { display: block; text-align: right; padding-top: 12px; }
.featured-grid { display: grid; grid-template-columns: 1.35fr 1fr; align-items: start; gap: 26px; }
.featured-grid article:first-child { grid-row: span 2; align-self: center; }
.work { width: 100%; display: block; border: 0; padding: 0; background: transparent; text-align: left; cursor: pointer; }
.frame { display: block; overflow: hidden; background: #161212; }
.frame img { width: 100%; height: auto; display: block; transition: filter .3s, transform .3s; }
.featured-grid .frame img { filter: saturate(.66); }
.work:hover .frame img, .work:focus-visible .frame img { transform: scale(1.025); filter: saturate(1); }
.worktitle { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-top: 13px; }
.worktitle h3 { font-size: clamp(15px, 1.6vw, 25px); line-height: 1.3; overflow-wrap: anywhere; letter-spacing: -.025em; }
.worktitle .action-symbol { flex: 0 0 12px; height: 25px; }
.metadata { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 10px; letter-spacing: .055em; }
.manifesto { background: radial-gradient(ellipse at 100% 100%, #350408, transparent 58%), #0b0304; }
.manifesto h2, .contact-layout h2 { font-size: clamp(44px, 10.4vw, 150px); line-height: .98; letter-spacing: -.08em; }
.manifesto h2 span { color: var(--red); }
.mission { font-size: clamp(16px, 1.8vw, 23px); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(34px, 7vw, 90px); }
.values div { padding-top: 14px; border-top: 1px solid #684346; }
.values dt { font-family: var(--display); font-weight: 800; color: #ff3948; font-size: clamp(23px, 3vw, 45px); line-height: 1.1; }
.values dd { color: var(--muted); margin-top: 8px; }
.section-title { color: var(--red); font-size: clamp(64px, 12vw, 178px); margin: 40px 0; }
.portfolio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1px; column-gap: clamp(16px, 2.6vw, 40px); }
.portfolio article, .featured-grid article { min-width: 0; }
.contact { border-top: 1px solid var(--line); background: #100304; }
.contact-layout { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(25px, 7vw, 110px); }
.contact-layout h2 { color: #ff3848; font-size: clamp(53px, 8vw, 110px); }
.email { display: inline-block; margin-top: 18px; text-decoration: underline; }
form label { display: grid; gap: 6px; margin-bottom: 15px; font-size: 14px; }
form label > span { color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea { min-width: 0; width: 100%; padding: 11px 12px; border: 1px solid #625050; background: #130e0e; color: var(--text); border-radius: 0; }
textarea { resize: vertical; }
.form-preview { margin: 0 0 16px !important; font-size: 13px; }
.privacy-consent { display: flex; align-items: start; gap: 10px; font-size: 12px; }
.privacy-consent input { width: auto; accent-color: var(--red); }
.privacy-consent a { text-decoration: underline; }
.submit { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px; border: 1px solid #a05358; background: #22070b; cursor: pointer; }
footer { display: flex; justify-content: space-between; align-items: center; padding-block: 22px; border-top: 1px solid var(--line); font-size: 12px; }
dialog { max-width: 94vw; max-height: 94vh; padding: 16px; border: 1px solid var(--line); background: #110a0b; color: var(--text); }
dialog::backdrop { background: #000d; }
.dialogbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.close { background: none; border: 1px solid #8f7d7d; padding: 5px 10px; white-space: nowrap; cursor: pointer; }
.player { width: 100%; background: #000; }
.fallback { display: inline-block; margin-top: 10px; font-size: 13px; }
@media (max-width: 850px) { .portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .top { min-height: 58px; padding-inline-end: 15px; gap: 10px; font-size: 9px; }
  .top nav { gap: 11px; }
  .top .brand-symbol { margin-right: 4px; }
  .poster { min-height: min(570px, calc(100svh - 58px)); }
  .poster h1 { font-size: 14vw; }
  .reel-layout, .featured-grid, .contact-layout, .values, .form-row { grid-template-columns: 1fr; }
  .featured-grid article:first-child { grid-row: auto; }
  .form-row { gap: 0; }
  .portfolio { grid-template-columns: minmax(0, 1fr); }
  .reel-logo { width: 42%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@font-face {
  font-family: "Nightrace";
  src: url("assets/Nightrace.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* Korean body typeface: Casquare Code 1080 web subset (OFL, see assets/fonts/OFL.txt).
   Rebuild after adding new Korean text: tools/build-webfont.py */
@font-face {
  font-family: "Casquare Code Preview";
  src: url("assets/fonts/casquare-code-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Casquare Code Preview";
  src: url("assets/fonts/casquare-code-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root { --display: "Nightrace", "Barlow Condensed", Impact, sans-serif; }
body { font-family: "Casquare Code Preview", Arial, "Apple SD Gothic Neo", sans-serif; }
.display, .values dt { font-weight: 400; }
.poster {
  align-items: stretch;
  min-height: 0;
  aspect-ratio: 2.35 / 1;
  background: #f01e13;
  color: #080202;
}
.poster-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding-top: clamp(13px, 2.6vw, 42px);
  padding-bottom: clamp(10px, 2vw, 32px);
}
.poster h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(13px, 6.3vw, 102px);
  text-align: left;
  white-space: nowrap;
  color: inherit;
  line-height: .87;
  letter-spacing: -.025em;
}
.poster-logo { display: block; width: clamp(84px, 19vw, 320px); height: auto; filter: brightness(0); }
.poster h1 span:nth-child(2) { text-align: right; padding-right: 12%; }
.poster h1 span:last-child { text-align: right; }
.poster-editorial[hidden] { display: none; }
.poster-image {
  object-position: 65% 64%;
  filter: grayscale(1) brightness(1.8) contrast(1.9);
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to bottom, transparent 9%, #0005 36%, #000d 75%, #000 100%);
}
.poster::after {
  background: linear-gradient(180deg, transparent 69%, #f01e1355 83%, #f01e13 100%);
}
.poster-image-soft {
  filter: grayscale(1) brightness(1.45) contrast(.78);
}
.reel-copy .reel-statement { font-family: var(--display); font-size: clamp(26px, 3.9vw, 63px); line-height: 1.04; text-transform: uppercase; }
.reel-statement em { color: #ff3848; font-style: normal; }
.story-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 6vw, 100px); margin-top: 26px; }
.story-english { color: var(--muted); max-width: 52ch; font-size: 15px; }
.story-english p + p { margin-top: 12px; }
@media (max-width: 600px) {
  .poster h1 { font-size: 6.3vw; }
  .story-copy { grid-template-columns: 1fr; }
}

.poster-composition { position: relative; }
.poster-editorial {
  font-family: Arial, "Apple SD Gothic Neo", sans-serif;
  position: absolute;
  top: 33%;
  left: max(var(--gutter), calc((100% - 1600px) / 2 + var(--gutter)));
  width: min(36%, 510px);
  color: #0b0202;
}
.poster-essence {
  display: table;
  border-top: 1px solid currentColor;
  padding-top: 5px;
  margin-bottom: clamp(7px, 1vw, 16px);
  font-size: clamp(10px, .85vw, 14px);
  font-weight: 700;
  letter-spacing: .12em;
}
.poster-statement {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(13px, 1.65vw, 27px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.04em;
}
.poster-notes {
  font-family: "Barlow Condensed", Arial, sans-serif;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 24px);
  margin-top: clamp(10px, 1.75vw, 28px);
  color: #fff1dc;
  text-shadow: 0 1px 5px #200000, 0 0 14px #200000;
  font-size: clamp(11px, .96vw, 15px);
  line-height: 1.35;
}
.poster-notes p { word-break: normal; }
@media (max-width: 850px) {
  .poster-editorial {
    position: static;
    width: auto;
    padding: 18px var(--gutter) 25px;
    background: #f01e13;
  }
  .poster-statement { font-size: clamp(16px, 3.2vw, 24px); }
  .poster-notes { color: #160303; text-shadow: none; font-size: 12px; }
}

.reel-link, .sectionlabel a { font-size: 13px; white-space: nowrap; }

.poster-horizontal {
  container-type: inline-size;
  display: grid;
}
.poster-horizontal > * { grid-area: 1 / 1; }
.poster-horizontal .poster-editorial {
  position: relative;
  inset: auto;
  width: auto;
  align-self: start;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: start;
  gap: .24em .5cm;
  margin: 3.4cqw 9% 0 54%;
  padding: 0;
  background: transparent;
  color: #080202;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(11px, 1.05cqw, 16px);
  line-height: 1.04;
}
.poster-horizontal .poster-essence {
  justify-self: end;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: clamp(14px, 1.65cqw, 25px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.poster-horizontal .poster-copy {
  text-align: justify;
  text-wrap: pretty;
  word-break: normal;
}
.poster-horizontal .poster-copy + .poster-copy { grid-column: 2; }
@media (max-width: 850px) {
  .poster-horizontal { grid-template-rows: auto 1fr auto; }
  .poster-horizontal .poster { grid-row: 1 / -1; grid-template-rows: subgrid; aspect-ratio: auto; }
  .poster-horizontal .poster-inner {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / -1;
  }
  .poster-horizontal .poster-logo { grid-row: 1; }
  .poster-horizontal .poster h1 { grid-row: 3; }
  .poster-horizontal .poster-editorial {
    grid-row: 2;
    width: min(285px, calc(100% - 2 * var(--gutter)));
    justify-self: end;
    column-gap: min(.5cm, 2cqw);
    margin: 16px var(--gutter);
    font-size: 11px;
  }
  .poster-horizontal .poster-essence { font-size: clamp(11px, 3.3cqw, 14px); }
}
