/* =========================================================
   ACE Eng — Renewal 2026 · Design system
   ========================================================= */
:root {
  --ink: #05080c;
  --ink-2: #0b1117;
  --ink-3: #141c25;
  --paper: #f2f1ed;
  --paper-2: #e6e4de;
  --line-d: rgba(255, 255, 255, .14);
  --line-l: rgba(5, 8, 12, .14);
  --muted-d: rgba(255, 255, 255, .58);
  --muted-l: rgba(5, 8, 12, .56);
  --blue: #009cff;          /* ACE Eng CI (from aceengco.com) */
  --blue-ink: #0077d9;      /* AA-safe on paper */

  --f-display: "Archivo", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --f-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1600px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
address { font-style: normal; }
em { font-style: normal; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--blue); color: #fff; padding: 10px 16px; transition: top .3s; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.muted { opacity: .6; }
.m-only { display: none; }
.sec-no { display: flex; align-items: center; gap: 12px; }
.sec-no::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }

/* --- Mask / line reveal primitives --- */
.mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.mask__in { display: block; will-change: transform; }
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .6s var(--ease), height .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { height: 68px; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.site-header.is-scrolled[data-theme="dark"] { background: rgba(5, 8, 12, .72); border-color: var(--line-d); }
.site-header.is-scrolled[data-theme="light"] { background: rgba(242, 241, 237, .82); color: var(--ink); border-color: var(--line-l); }
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { background: transparent !important; color: #fff !important; border-color: transparent !important; transform: none; backdrop-filter: none; }

.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 0 var(--gutter); max-width: none; }
.brand__logo { height: 26px; width: calc(26px * 1860 / 420); color: currentColor; fill: currentColor; }
.brand__logo { transition: color .3s; }
.brand:hover .brand__logo { color: var(--blue); }

.gnb ul { display: flex; gap: clamp(20px, 3vw, 48px); }
.gnb a { position: relative; font-family: var(--f-display); font-size: 15px; font-weight: 500; letter-spacing: .01em; padding: 6px 0; }
.gnb a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.gnb a:hover::after, .gnb a.is-current::after { transform: scaleX(1); transform-origin: left; }

.site-header__util { display: flex; align-items: center; gap: 28px; }
.menu-btn { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 0; }
.menu-btn__icon { position: relative; width: 28px; height: 10px; }
.menu-btn__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease), width .6s var(--ease); }
.menu-btn__icon i:first-child { top: 0; }
.menu-btn__icon i:last-child { top: 8px; width: 65%; left: auto; right: 0; }
.menu-btn:hover .menu-btn__icon i:last-child { width: 100%; }
.menu-open .menu-btn__icon i:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn__icon i:last-child { top: 4px; width: 100%; transform: rotate(-45deg); }

/* --- Fullscreen menu --- */
.fullmenu { position: fixed; inset: 0; z-index: 90; color: #fff; }
.fullmenu[hidden] { display: none; }
.fullmenu__bg { position: absolute; inset: 0; background: var(--ink-2); clip-path: inset(0 0 100% 0); }
.fullmenu__inner { position: relative; height: 100%; display: grid; grid-template-columns: 1fr 340px; gap: 6vw; align-items: end; padding: calc(var(--header-h) + 4vh) var(--gutter) 6vh; overflow-y: auto; }
.fullmenu__list li { border-top: 1px solid var(--line-d); overflow: hidden; }
.fullmenu__list li:last-child { border-bottom: 1px solid var(--line-d); }
.fullmenu__list a { display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 16px; padding: 1.4vh 0; }
.fm-no { font-family: var(--f-mono); font-size: 12px; opacity: .5; }
.fm-t { font-family: var(--f-display); font-stretch: 112%; font-weight: 500; font-size: clamp(36px, min(6vw, 9vh), 104px); line-height: 1; letter-spacing: -.04em; transition: transform .7s var(--ease), color .4s; }
.fm-k { font-size: 14px; opacity: .55; text-align: right; }
.fullmenu__list a:hover .fm-t, .fullmenu__list a:focus-visible .fm-t { transform: translateX(24px); color: var(--blue); }
.fullmenu__aside { font-size: 14px; line-height: 1.7; color: var(--muted-d); }
.fullmenu__aside .eyebrow { color: #fff; margin: 28px 0 8px; }
.fullmenu__aside a { color: #fff; }

/* =========================================================
   01 HERO
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; color: #fff; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__frame { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.hero__video, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.hero__fallback { z-index: 0; }
.hero__video { z-index: 1; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(5,8,12,.55) 0%, rgba(5,8,12,0) 22%),
    linear-gradient(0deg, rgba(5,8,12,.9) 0%, rgba(5,8,12,.35) 38%, rgba(5,8,12,0) 62%),
    linear-gradient(90deg, rgba(5,8,12,.55) 0%, rgba(5,8,12,0) 55%);
}

.hero__content { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(110px, 16vh, 170px); display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 4vw; align-items: end; }
.hero__meta { grid-column: 1 / -1; margin-bottom: clamp(20px, 3vh, 36px); color: rgba(255,255,255,.75); display: flex; gap: 28px; flex-wrap: wrap; }
.hero__meta .reveal-line:first-child span { color: var(--blue); }
.hero__title {
  font-family: var(--f-display); font-weight: 600; font-stretch: 108%;
  font-size: clamp(56px, 10.2vw, 196px); line-height: .86; letter-spacing: -.055em;
  text-wrap: balance;
}
.hero__title em { font-weight: 200; letter-spacing: -.06em; }
.hero__title .mask:nth-child(2) { padding-left: .9em; }
.hero__sub { max-width: 380px; padding-bottom: .6em; }
.hero__lead { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.75; color: rgba(255,255,255,.88); }
.hero__tag { margin-top: 20px; color: rgba(255,255,255,.55); }

.hero__bottom { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.scroll-cue { display: flex; align-items: center; gap: 14px; color: #fff; }
.scroll-cue__track { position: relative; width: 1px; height: 40px; background: rgba(255,255,255,.25); overflow: hidden; }
.scroll-cue__dot { position: absolute; left: -1px; top: 0; width: 3px; height: 12px; background: #fff; animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-14px); } 60%, 100% { transform: translateY(42px); } }
.video-toggle { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.8); padding: 6px 0; }
.video-toggle__icon { width: 10px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.video-toggle[aria-pressed="true"] .video-toggle__icon { border: 0; border-left: 10px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* =========================================================
   02 ABOUT
   ========================================================= */
.about { position: relative; z-index: 2; background: var(--paper); color: var(--ink); padding: clamp(120px, 18vh, 220px) 0 clamp(120px, 16vh, 200px); }
.about .sec-no { color: var(--muted-l); margin-bottom: clamp(40px, 6vh, 72px); }
.about__manifesto {
  font-family: var(--f-display); font-weight: 500; font-stretch: 100%;
  font-size: clamp(34px, 5.1vw, 92px); line-height: 1.04; letter-spacing: -.045em;
  max-width: 15.5em;
}
.about__manifesto .w { color: rgba(5,8,12,.14); transition: color .2s linear; }
.about__manifesto .w.is-on { color: var(--ink); }
.about__manifesto .w.is-key.is-on { color: var(--blue-ink); }

.about__story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 140px); align-items: center; margin-top: clamp(100px, 16vh, 200px); }
.about__figure { position: relative; }
.clip-reveal { position: relative; overflow: hidden; aspect-ratio: 4 / 3.1; background: var(--paper-2); }
.clip-reveal img { width: 100%; height: 118%; object-fit: cover; position: absolute; top: -9%; left: 0; }
.about__figure figcaption { margin-top: 14px; color: var(--muted-l); font-size: 10px; }
.about__h { font-family: var(--f-body); font-weight: 700; font-size: clamp(30px, 3vw, 50px); line-height: 1.2; letter-spacing: -.035em; margin-bottom: 36px; }
.about__text p { color: rgba(5,8,12,.74); margin-bottom: 18px; max-width: 34em; }
.about__text p:last-child { margin-bottom: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; font-family: var(--f-display); font-weight: 500; font-size: 15px; padding: 10px 0; border-bottom: 1px solid currentColor; }
.link-arrow svg { width: 20px; height: 20px; transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }
.link-arrow span { position: relative; }

.history { margin-top: clamp(110px, 16vh, 200px); }
.history .eyebrow { color: var(--muted-l); margin-bottom: 36px; }
.history__rail { position: relative; height: 1px; background: var(--line-l); }
.history__fill { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.history__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.history__list li { position: relative; padding-top: 32px; }
.history__list li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .5s var(--ease); }
.history__list li.is-on::before { transform: scale(1); }
.history__list li.is-next::before { background: var(--blue); }
.history__date { display: block; font-family: var(--f-display); font-weight: 300; font-stretch: 110%; font-size: clamp(32px, 3.4vw, 58px); letter-spacing: -.04em; line-height: 1; margin-bottom: 16px; }
.history__list p { font-size: 15px; line-height: 1.6; }
.is-next .history__date { color: var(--blue-ink); }

/* =========================================================
   03 BUSINESS (sticky)
   ========================================================= */
.business { position: relative; background: var(--ink); color: #fff; }
.business__pin { position: relative; height: 100vh; display: grid; grid-template-columns: minmax(300px, 32%) 1fr; }
.business__left { position: relative; padding: calc(var(--header-h) + 5vh) var(--gutter) 7vh; display: flex; flex-direction: column; border-right: 1px solid var(--line-d); }
.business__left .sec-no { color: var(--muted-d); }
.business__title { font-family: var(--f-display); font-weight: 600; font-stretch: 112%; font-size: clamp(48px, 6vw, 112px); line-height: .88; letter-spacing: -.055em; margin: 4vh 0 auto; }
.business__index { margin-top: 5vh; }
.business__index li { border-top: 1px solid var(--line-d); }
.business__index button { width: 100%; text-align: left; display: flex; gap: 18px; align-items: baseline; padding: 14px 0; font-family: var(--f-display); font-size: clamp(15px, 1.15vw, 19px); font-weight: 500; color: rgba(255,255,255,.38); transition: color .5s var(--ease), padding .6s var(--ease); }
.business__index button .mono { font-size: 11px; }
.business__index li.is-active button { color: #fff; padding-left: 14px; }
.business__index li.is-active button .mono { color: var(--blue); }
.business__index button:hover { color: rgba(255,255,255,.8); }
.business__progress { position: absolute; right: -1px; top: 0; bottom: 0; width: 1px; overflow: hidden; }
.business__progress span { position: absolute; inset: 0; background: var(--blue); transform: scaleY(0); transform-origin: top; }

.business__stage { position: relative; overflow: hidden; }
.biz { position: absolute; inset: 0; }
.biz__img { position: absolute; inset: 0; overflow: hidden; clip-path: inset(100% 0 0 0); }
.biz:first-of-type .biz__img { clip-path: inset(0 0 0 0); }
.biz__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.biz__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,8,12,.92) 0%, rgba(5,8,12,.45) 40%, rgba(5,8,12,.1) 70%), linear-gradient(90deg, rgba(5,8,12,.4), transparent 50%); }
.biz__body { position: absolute; left: clamp(28px, 5vw, 96px); right: clamp(28px, 5vw, 96px); bottom: clamp(48px, 9vh, 110px); display: grid; grid-template-columns: 1fr; grid-template-areas: "kr" "name" "items"; align-items: end; }
.biz__kr { grid-area: kr; font-size: 15px; color: var(--blue); margin-bottom: 14px; font-weight: 600; }
.biz__name { grid-area: name; font-family: var(--f-display); font-weight: 500; font-stretch: 106%; font-size: clamp(40px, 5.2vw, 100px); line-height: .94; letter-spacing: -.05em; max-width: 11em; margin-bottom: 36px; }
.biz__items { grid-area: items; display: flex; flex-wrap: wrap; gap: 8px; }
.biz__items li { font-size: 14px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 100px; background: rgba(5,8,12,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.biz:not(:first-of-type) .biz__body > * { opacity: 0; }
.business__counter { position: absolute; z-index: 5; top: calc(var(--header-h) + 5vh); right: clamp(28px, 5vw, 96px); font-size: 13px; display: flex; gap: 6px; color: rgba(255,255,255,.7); }
.bc-cur { display: inline-block; height: 1.5em; overflow: hidden; color: #fff; }
.bc-cur span { display: block; }

/* =========================================================
   04 EXPERTISE
   ========================================================= */
.expertise { position: relative; background: var(--ink); color: #fff; }
.xp-reveal { position: relative; height: 240vh; }
.xp-reveal__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.xp-reveal__window { position: absolute; inset: 0; clip-path: inset(30% 34% 30% 34%); will-change: clip-path; }
.xp-video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.xp-reveal__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,8,12,.75), rgba(5,8,12,.35)); opacity: .35; }
.xp-reveal__title { position: relative; z-index: 2; font-family: var(--f-display); font-weight: 600; font-stretch: 115%; font-size: clamp(52px, 10.5vw, 210px); line-height: .84; letter-spacing: -.06em; text-align: center; pointer-events: none; text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.xp-l { display: block; }
.xp-reveal__kr { position: absolute; z-index: 2; left: 50%; bottom: 12vh; transform: translateX(-50%); width: min(92vw, 900px); text-align: center; font-size: clamp(20px, 2.2vw, 36px); font-weight: 600; letter-spacing: -.03em; line-height: 1.45; opacity: 0; }
.xp-reveal__credit { position: absolute; z-index: 2; right: var(--gutter); bottom: 28px; font-size: 10px; color: rgba(255,255,255,.45); opacity: 0; }

.xp-body { padding-top: clamp(100px, 16vh, 200px); padding-bottom: clamp(100px, 16vh, 180px); }
.xp-head { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: end; margin-bottom: clamp(56px, 8vh, 100px); }
.xp-head .sec-no { color: var(--muted-d); }
.xp-head__lead { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.6; color: rgba(255,255,255,.86); }

.divisions { border-bottom: 1px solid var(--line-d); }
.div-row { position: relative; border-top: 1px solid var(--line-d); }
.div-row::before { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); z-index: 0; }
.div-row a { position: relative; z-index: 1; display: grid; grid-template-columns: 70px minmax(0, 1.25fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center; padding: clamp(26px, 3.6vh, 44px) 12px; }
.div-row__no { color: rgba(255,255,255,.45); transition: color .4s; }
.div-row__name { font-family: var(--f-display); font-weight: 500; font-stretch: 108%; font-size: clamp(30px, 3.9vw, 72px); line-height: 1; letter-spacing: -.045em; transition: transform .7s var(--ease); }
.div-row__name .dn { display: block; }
.div-row__kr { display: block; font-family: var(--f-body); font-stretch: 100%; font-size: 14px; font-weight: 500; letter-spacing: -.01em; margin-top: 12px; color: rgba(255,255,255,.55); transition: color .4s; }
.div-row__caps { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.62); transition: color .4s; }
.div-row__arrow { width: 32px; height: 32px; transform: translateX(-12px) rotate(-45deg); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.div-row:hover::before, .div-row:focus-within::before { transform: scaleY(1); }
.div-row:hover .div-row__name, .div-row:focus-within .div-row__name { transform: translateX(18px); }
.div-row:hover .div-row__arrow, .div-row:focus-within .div-row__arrow { opacity: 1; transform: none; }
.div-row:hover .div-row__no, .div-row:hover .div-row__kr, .div-row:hover .div-row__caps,
.div-row:focus-within .div-row__no, .div-row:focus-within .div-row__kr, .div-row:focus-within .div-row__caps { color: #fff; }
.div-row a:focus-visible { outline-offset: -4px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(80px, 12vh, 140px); }
.fact { padding: 28px 24px 0 0; border-left: 1px solid var(--line-d); padding-left: 24px; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact dt { color: var(--muted-d); margin-bottom: 18px; }
.fact dd { font-family: var(--f-display); font-weight: 300; font-stretch: 112%; font-size: clamp(56px, 6.6vw, 124px); line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }

/* =========================================================
   05 PROJECTS (horizontal)
   ========================================================= */
.projects { position: relative; background: var(--paper); color: var(--ink); overflow: hidden; }
.projects__pin { height: 100vh; display: flex; flex-direction: column; padding: calc(var(--header-h) + 3vh) 0 5vh; }
.projects__head { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "no hint" "title hint"; align-items: end; max-width: none; }
.projects__head .sec-no { grid-area: no; color: var(--muted-l); margin-bottom: 2.4vh; }
.projects__title { grid-area: title; font-family: var(--f-display); font-weight: 600; font-stretch: 110%; font-size: clamp(44px, 6.2vw, 116px); line-height: .88; letter-spacing: -.055em; }
.projects__hint { grid-area: hint; display: flex; align-items: center; gap: 10px; color: var(--muted-l); }
.projects__hint svg { width: 18px; height: 18px; }
.projects__viewport { flex: 1; min-height: 0; margin-top: 4vh; }
.projects__track { display: flex; align-items: flex-start; gap: clamp(20px, 2.6vw, 44px); height: 100%; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.pj { flex: none; height: 100%; display: flex; }
.pj > a { display: flex; flex-direction: column; height: 100%; width: 100%; }
.pj__img { position: relative; overflow: hidden; flex: none; height: calc(100% - 140px); background: var(--paper-2); clip-path: inset(0 0 0 0); }
.pj__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease), filter .8s; }
.pj__img::after { content: "View project"; position: absolute; left: 20px; bottom: 20px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--ink); padding: 8px 12px; transform: translateY(12px); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.pj > a:hover .pj__img img, .pj > a:focus-visible .pj__img img { transform: scale(1.0); }
.pj > a:hover .pj__img::after, .pj > a:focus-visible .pj__img::after { transform: none; opacity: 1; }
.pj__info { padding-top: 18px; max-width: 30em; }
.pj__info .mono { color: var(--blue-ink); font-size: 11px; }
.pj__info h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.25; letter-spacing: -.02em; margin: 6px 0 6px; transition: transform .6s var(--ease); }
.pj > a:hover h3 { transform: translateX(8px); }
.pj__info p { font-size: 13px; color: var(--muted-l); line-height: 1.5; }
.pj--wide { width: clamp(420px, 44vw, 820px); }
.pj--tall { width: clamp(300px, 27vw, 480px); }
.pj--mid { width: clamp(360px, 34vw, 620px); }
.projects__bar { position: relative; height: 1px; margin-top: 3vh; max-width: none; }
.projects__bar::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--line-l); }
.projects__bar-fill { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* Project detail modal */
html.modal-open { overflow: hidden; }
.pj-modal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 5vh, 56px) var(--gutter); border: 0; background: rgba(5, 8, 12, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); overflow: hidden; opacity: 0; transition: opacity .45s var(--ease); }
.pj-modal[open] { display: grid; place-items: center; }
.pj-modal::backdrop { background: transparent; }
.pj-modal.is-open { opacity: 1; }
.pj-modal__panel { position: relative; width: min(1180px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); transform: translateY(28px) scale(.985); transition: transform .6s var(--ease); }
.pj-modal.is-open .pj-modal__panel { transform: none; }
.pj-modal__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px clamp(20px, 3vw, 40px); background: var(--paper); border-bottom: 1px solid var(--line-l); color: var(--muted-l); font-size: 11px; }
.pj-modal__x { width: 44px; height: 44px; margin-right: -12px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; transition: background .3s, color .3s; }
.pj-modal__x svg { width: 20px; height: 20px; transition: transform .5s var(--ease); }
.pj-modal__x:hover { background: var(--ink); color: #fff; }
.pj-modal__x:hover svg { transform: rotate(90deg); }
.pj-modal__content { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "img head" "img body"; grid-template-rows: auto 1fr; column-gap: clamp(32px, 4vw, 64px); padding: clamp(24px, 3vw, 40px); }
.pj-modal__head { grid-area: head; }
.pj-modal__client { color: var(--blue-ink); font-size: 11px; }
.pj-modal__title { font-family: var(--f-display); font-weight: 500; font-stretch: 106%; font-size: clamp(26px, 2.5vw, 42px); line-height: 1.08; letter-spacing: -.035em; margin: 10px 0 14px; }
.pj-modal__meta { color: var(--muted-l); font-size: 11px; }
.pj-modal__img { grid-area: img; align-self: start; background: var(--paper-2); }
.pj-modal__img img { width: 100%; height: auto; }
.pj-modal__body { grid-area: body; display: flex; flex-direction: column; align-items: flex-start; margin-top: 28px; }
.pj-modal__desc { font-size: 16px; line-height: 1.7; color: rgba(5,8,12,.78); white-space: pre-line; }
.pj-modal__spec { width: 100%; margin-top: 28px; border-bottom: 1px solid var(--line-l); }
.pj-modal__spec > div { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-l); }
.pj-modal__spec dt { color: var(--muted-l); font-size: 11px; padding-top: 3px; }
.pj-modal__spec dd { font-size: 15px; font-weight: 500; line-height: 1.5; }
.pj-modal__close { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; padding: 14px 24px; border: 1px solid var(--ink); border-radius: 100px; transition: background .4s var(--ease), color .3s; }
.pj-modal__close svg { width: 16px; height: 16px; }
.pj-modal__close:hover { background: var(--ink); color: #fff; }

/* =========================================================
   06 CONTACT
   ========================================================= */
.contact { position: relative; overflow: hidden; color: #fff; background: var(--ink); padding: clamp(140px, 22vh, 260px) 0 clamp(80px, 12vh, 140px); }
.contact__bg { position: absolute; inset: -12% 0; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: grayscale(.4) contrast(1.05); }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(5,8,12,.4) 40%, rgba(5,8,12,.7) 75%, var(--ink) 100%); }
.contact__inner { position: relative; }
.contact .sec-no { color: var(--muted-d); margin-bottom: 4vh; }
.contact__title { font-family: var(--f-display); font-weight: 600; font-stretch: 115%; font-size: clamp(60px, 12vw, 236px); line-height: .84; letter-spacing: -.065em; }
.contact__title .mask:nth-child(2) { padding-left: 1.2em; color: var(--blue); }
.contact__lead { margin-top: 5vh; max-width: 30em; color: rgba(255,255,255,.78); }
.contact__actions { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.btn-cta { position: relative; display: inline-flex; align-items: center; gap: 22px; padding: 12px 12px 12px 32px; border-radius: 100px; background: #fff; color: var(--ink); font-weight: 600; font-size: 17px; overflow: hidden; isolation: isolate; }
.btn-cta::before { content: ""; position: absolute; inset: 0; background: var(--blue); transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; border-radius: inherit; }
.btn-cta:hover::before, .btn-cta:focus-visible::before { transform: none; }
.btn-cta:hover, .btn-cta:focus-visible { color: #fff; }
.btn-cta__c { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; overflow: hidden; transition: background .4s; }
.btn-cta__c svg { width: 22px; height: 22px; transition: transform .6s var(--ease); }
.btn-cta:hover .btn-cta__c svg { animation: arrow-loop .7s var(--ease); }
@keyframes arrow-loop { 0% { transform: none; } 49% { transform: translateX(32px); } 50% { transform: translateX(-32px); } 100% { transform: none; } }
.link-arrow--light { color: #fff; margin: 0; }
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(80px, 13vh, 150px); border-top: 1px solid var(--line-d); padding-top: 32px; }
.office { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.82); }
.office .mono { color: var(--blue); margin-bottom: 12px; }
.office address { margin-bottom: 10px; }
.office .muted { font-size: 13px; }
.office a { border-bottom: 1px solid rgba(255,255,255,.3); transition: border-color .3s; }
.office a:hover { border-color: #fff; }

/* =========================================================
   07 FOOTER
   ========================================================= */
.footer { position: relative; background: var(--ink); color: rgba(255,255,255,.7); padding-top: 72px; overflow: hidden; border-top: 1px solid var(--line-d); }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-d); }
.footer__logo { height: 30px; width: calc(30px * 1860 / 420); color: #fff; fill: #fff; }
.footer__nav { display: flex; gap: 32px; flex-wrap: wrap; font-family: var(--f-display); font-weight: 500; color: #fff; }
.footer__nav a:hover { color: var(--blue); }
.to-top { display: flex; align-items: center; gap: 8px; color: #fff; }
.to-top svg { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .5s var(--ease); }
.to-top:hover svg { transform: rotate(-90deg) translateX(4px); }
.footer__info { padding: 36px 0; font-size: 14px; line-height: 1.9; }
.footer__info strong { color: #fff; font-weight: 600; margin-right: 6px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; padding-bottom: 32px; }
.footer__privacy { color: #fff; font-weight: 600; }
.footer__giant { color: rgba(255,255,255,.06); padding: 0 var(--gutter) 0; margin-bottom: -2.2vw; }
.footer__giant svg { width: 100%; height: auto; aspect-ratio: 1860 / 420; fill: currentColor; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .gnb { display: none; }
  .fullmenu__inner { grid-template-columns: 1fr; align-items: start; gap: 40px; }
  .fm-k { display: none; }
  .div-row a { grid-template-columns: 48px 1fr 32px; }
  .div-row__caps { grid-column: 2 / 3; }
  .div-row__arrow { grid-row: 1; grid-column: 3; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  /* Business — stacked, no pin */
  .business__pin { height: auto; display: block; }
  .business__left { border-right: 0; padding-bottom: 40px; }
  .business__title { margin-bottom: 0; }
  .business__index, .business__progress, .business__counter { display: none; }
  .business__stage { overflow: visible; padding-bottom: 48px; }
  .biz { position: relative; inset: auto; height: 86vh; min-height: 520px; margin-bottom: 2px; }
  .biz__img, .biz:first-of-type .biz__img { clip-path: none; }
  .biz:not(:first-of-type) .biz__body > * { opacity: 1; }

  /* Projects — native swipe */
  .projects__pin { height: auto; padding-bottom: 64px; }
  .projects__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .projects__viewport::-webkit-scrollbar { display: none; }
  .projects__track { height: 62vh; min-height: 420px; }
  .pj { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .pj--wide, .pj--mid { width: 78vw; } .pj--tall { width: 62vw; }
  .projects__track { height: auto; min-height: 0; align-items: stretch; }
  .pj { height: auto; }
  .pj__img { height: clamp(240px, 52vw, 480px); }
  .pj__img img { transform: none; }
  .projects__bar { display: none; }
  .pj-modal__panel { width: min(760px, 100%); }
  .pj-modal__content { grid-template-columns: 1fr; grid-template-areas: "head" "img" "body"; grid-template-rows: none; }
  .pj-modal__img { margin-top: 28px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .m-only { display: inline; }
  .brand__logo { height: 22px; width: calc(22px * 1860 / 420); }
  .hero__content { grid-template-columns: 1fr; bottom: 120px; }
  .hero__meta { gap: 4px 16px; font-size: 10px; }
  .hero__title { font-size: clamp(50px, 15vw, 88px); }
  .hero__title .mask:nth-child(2) { padding-left: 0; }
  .hero__sub { margin-top: 28px; }
  .about__story { grid-template-columns: 1fr; }
  .history__list { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .xp-reveal { height: 180vh; }
  .xp-reveal__window { clip-path: inset(32% 18% 32% 18%); }
  .xp-head { grid-template-columns: 1fr; gap: 20px; }
  .div-row a { grid-template-columns: 36px 1fr; gap: 12px 16px; padding: 26px 0; }
  .div-row__caps { grid-column: 2; font-size: 13px; }
  .div-row__arrow { display: none; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .biz__name { font-size: clamp(36px, 10vw, 56px); margin-bottom: 24px; }
  .projects__head { grid-template-areas: "no" "title"; grid-template-columns: 1fr; }
  .projects__hint { display: none; }
  .pj-modal { padding: 12px; }
  .pj-modal__title { font-size: clamp(24px, 7vw, 32px); }
  .pj-modal__spec > div { grid-template-columns: 1fr; gap: 4px; }
  .pj-modal__close { width: 100%; justify-content: center; }
  .offices { grid-template-columns: 1fr; }
  .contact__title .mask:nth-child(2) { padding-left: 0; }
  .footer__nav { gap: 18px; }
}

/* =========================================================
   Pre-JS / no-JS / reduced motion safety
   ========================================================= */
.no-js .hero__video { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .xp-reveal { height: auto; }
  .xp-reveal__sticky { position: relative; }
  .xp-reveal__window { clip-path: none; }
  .xp-video { transform: none; }
  .xp-reveal__shade, .xp-reveal__kr, .xp-reveal__credit { opacity: 1; }
  .biz__img img, .pj__img img { transform: none; }
}

/* Hero → About hand-off: About slides up as a sheet over the pinned hero */
.about { border-radius: clamp(16px, 2vw, 32px) clamp(16px, 2vw, 32px) 0 0; margin-top: -1px; }

/* Static layout (reduced motion on desktop) — mirrors the ≤1024px rules */
html.rm .business__pin { height: auto; display: block; }
html.rm .business__left { border-right: 0; padding-bottom: 40px; }
html.rm .business__index, html.rm .business__progress, html.rm .business__counter { display: none; }
html.rm .business__stage { overflow: visible; padding-bottom: 48px; }
html.rm .biz { position: relative; inset: auto; height: 86vh; min-height: 520px; margin-bottom: 2px; }
html.rm .biz__img { clip-path: none; }
html.rm .biz .biz__body > * { opacity: 1; }
html.rm .projects__pin { height: auto; padding-bottom: 64px; }
html.rm .projects__viewport { overflow-x: auto; }
html.rm .projects__track { height: 62vh; min-height: 420px; }
html.rm .projects__bar { display: none; }
html.rm .pj-modal, html.rm .pj-modal__panel { transition: none; }
html.rm .hero__video { opacity: 1; }
