/* Ace Production — one-page site
   Paper white, true black ink, one condensed display voice.
   Rounded pill controls echo the round stroke ends of the ace logo. */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(/fonts/instrument-sans-latin-wdth-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(/fonts/instrument-sans-latin-ext-wdth-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --graphite: #5c5f66;
  --rule: #e1e1e1;
  --sans: 'Instrument Sans', 'Pretendard Variable', system-ui, -apple-system, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1400px;
  --col-gap: clamp(16px, 2vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 20;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; text-decoration: none;
}
.skip:focus { left: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.brand { display: block; width: 88px; color: var(--ink); }
.brand svg { display: block; width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); font-size: 0.95rem; list-style: none; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.lang { display: flex; gap: 10px; }
.lang a { color: var(--graphite); }
.lang a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 9vw, 132px); }
.hero h1 {
  font-stretch: 75%;
  font-weight: 600;
  font-size: clamp(3.25rem, 1.2rem + 9.6vw, 11.5rem);
  line-height: 0.86;
  letter-spacing: -0.025em;
}
.hero h1 span { display: block; }

.hero-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  margin-top: clamp(28px, 4.5vw, 64px);
}
.hero-body > * { grid-column: 6 / span 6; }
.lead { font-size: clamp(1.15rem, 1rem + 0.55vw, 1.5rem); line-height: 1.42; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5em;
  border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
  background: var(--paper); color: var(--ink);
  transition: background-color 150ms ease, color 150ms ease;
}
.pill:hover { background: var(--ink); color: var(--paper); }
.pill:active { transform: translateY(1px); }
.pill--solid { background: var(--ink); color: var(--paper); }
.pill--solid:hover { background: var(--paper); color: var(--ink); }

/* ---------- Showreel ---------- */
.reel { margin-top: clamp(48px, 7vw, 104px); }
.reel-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.reel-frame iframe, .reel-play, .reel-play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-play { cursor: pointer; background: var(--ink); color: var(--paper); }
.reel-play img { object-fit: cover; }
.reel-play .disc {
  position: absolute; left: 50%; top: 50%;
  width: clamp(72px, 8vw, 112px); aspect-ratio: 1; margin: 0; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--paper);
  display: grid; place-items: center;
  transition: transform 200ms ease;
}
.reel-play .disc svg { width: 34%; margin-left: 8%; fill: var(--ink); }
.reel-play:hover .disc { transform: translate(-50%, -50%) scale(1.07); }
.reel-play:focus-visible { outline-offset: -6px; outline-color: var(--paper); }
.reel-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 0.9rem; color: var(--graphite); }

/* ---------- Sections ---------- */
.sec {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-block: clamp(64px, 9vw, 136px);
}
.sec + .sec { border-top: 1px solid var(--rule); }
.reel + .sec { margin-top: 0; }
.sec > h2 {
  grid-column: 1 / span 3;
  font-stretch: 75%;
  font-weight: 600;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.sec > .body { grid-column: 4 / -1; }

/* Selected work: a real table of year / project / location */
.work { width: 100%; border-collapse: collapse; }
.work td { padding: 18px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.work tr:first-child td { padding-top: 0; }
.work .y { width: 5.5rem; color: var(--graphite); font-variant-numeric: tabular-nums; }
.work .p { padding-right: 24px; }
.work .p b { display: block; font-weight: 500; font-size: 1.08em; }
.work .p small { display: block; margin-top: 2px; font-size: 0.88em; color: var(--graphite); }
.work .l { text-align: right; color: var(--graphite); white-space: nowrap; }
.more { margin-top: 28px; }

/* Services */
.services { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 22px; font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.35; }

/* Clients */
.clients { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 18px; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); }
.note { margin-top: 32px; color: var(--graphite); font-size: 0.95rem; max-width: 46em; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.about img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.about p { max-width: 38em; }
.about p + p { margin-top: 1em; }
.facts { display: grid; grid-template-columns: max-content 1fr; column-gap: 28px; row-gap: 8px; margin-top: 28px; }
.facts dt { color: var(--graphite); }

/* Contact */
.mail {
  display: inline-block;
  font-stretch: 75%; font-weight: 600;
  font-size: clamp(2.4rem, 1rem + 5.6vw, 6rem);
  line-height: 1; letter-spacing: -0.02em;
  text-decoration: none; overflow-wrap: anywhere;
}
.mail:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.who { margin-top: 14px; font-size: 1.1rem; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; column-gap: 32px; row-gap: 10px; margin-top: 36px; }
.contact-list dt { color: var(--graphite); }
.contact .actions { margin-top: 36px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 32px 40px; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--graphite); }
.foot ul { display: flex; gap: 20px; list-style: none; }

/* ---------- Korean pages ---------- */
html:lang(ko) body { word-break: keep-all; line-height: 1.7; }
html:lang(ko) .hero h1 {
  font-weight: 700;
  font-size: clamp(2.6rem, 0.9rem + 6.8vw, 8.25rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
html:lang(ko) .sec > h2 { font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }
html:lang(ko) .lead { line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-body > * { grid-column: 1 / -1; }
  .sec > h2, .sec > .body { grid-column: 1 / -1; }
  .sec > h2 { margin-bottom: 28px; }
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .nav .anchor { display: none; }
  .services { grid-template-columns: 1fr; row-gap: 14px; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .about img { width: 148px; }
  .work, .work tbody, .work tr, .work td { display: block; }
  .work tr { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .work tr:first-child { padding-top: 0; }
  .work td { padding: 0; border: 0; }
  .work .y { width: auto; grid-row: span 2; }
  .work .p { padding-right: 0; }
  .work .l { grid-column: 2; text-align: left; white-space: normal; margin-top: 2px; font-size: 0.88em; }
  .contact-list, .facts { grid-template-columns: 1fr; row-gap: 2px; }
  .contact-list dd, .facts dd { margin-bottom: 12px; }
  .reel-caption { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
