/* ==========================================================================
   REER — style.css
   토큰 → 기본 → 컴포넌트 → 섹션 → 반응형 → 모션 순서
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #000000; /* 순검정: 히어로 글자 마스크(multiply)가 바깥에 흔적을 남기지 않도록 */
  --surface: #111113;
  --surface-2: #0f0f11;
  --text: #ececee;
  --text-2: #a2a2a8;
  --text-3: #7d7d84;
  --text-4: #5f5f66;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.1);

  --font-ko: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-wm: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 3.9vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --holo: linear-gradient(105deg, #bdbdc3 0%, #f6f6f8 14%, #c6d2e8 27%, #ecd6ea 40%, #fbfbfc 52%, #cbd8d3 64%, #b1b1b8 78%, #e8e8ec 90%, #c0c0c6 100%);
  --holo-live: linear-gradient(105deg, #b4b4ba 0%, #f6f6f8 16%, #c2cfe8 30%, #eed4ea 44%, #fdfdfe 56%, #c6d6cf 70%, #a9a9b0 84%, #eaeaee 100%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ko);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after { /* film grain */
  content: "";
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: 0.05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #ececee; outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10000; padding: 8px 12px; background: #ececee; color: #0a0a0b; }
.skip:focus { left: 8px; }

.mono { font-family: var(--font-mono); }
.wm { font-family: var(--font-wm); font-weight: 800; font-stretch: 100%; letter-spacing: -0.04em; line-height: 0.85; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* 홀로그램 텍스트 */
.holo, .holo-live {
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.holo { background-image: var(--holo); background-size: 220% 100%; animation: sheen 7s ease-in-out infinite alternate; }
.holo-live { background-image: var(--holo-live); background-size: 260% 100%; background-position: var(--mx, 50%) 50%; transition: background-position 0.35s ease-out; }
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* 버튼 / 링크 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 2px;
  background: #ececee; color: #0a0a0b; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn .i { transition: transform 0.25s; }
.btn:hover .i { transform: translateX(4px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.25); height: 56px; padding: 0 32px; }
.btn--ghost:hover { background: rgba(255,255,255,0.06); }
.link { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.link:hover { color: var(--text); }
.label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.nav__brand { font-size: 32px; }
.nav__links { display: flex; gap: 36px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__burger { display: none; width: 44px; height: 44px; margin-right: -12px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform 0.3s, opacity 0.3s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px var(--gutter) 24px; border-top: 1px solid var(--line); }
.mobile-menu[data-open] { display: flex; }
.mobile-menu a:not(.btn) { padding: 14px 0; font-size: 20px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(88vh, 840px); max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vh, 104px) var(--gutter) 0; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.hero__inner { position: static; }
.hero__title { margin-top: 28px; font-size: clamp(36px, 5.8vw, 84px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.04; max-width: 960px; word-break: keep-all; text-wrap: pretty; }
.hero__lead { position: relative; z-index: 2; margin-top: 32px; max-width: 540px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.7; color: var(--text-2); word-break: keep-all; }
.hero__actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero__caption { position: absolute; left: var(--gutter); bottom: 32px; z-index: 2; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-4); }

/* 워드마크 (영상 마스크) ------------------------------------------------
   .mark__media  : 영상 또는 CSS 은박(폴백)
   .mark__text   : 검정 바탕 + 흰 글자, mix-blend-mode: multiply → 글자 부분에만 아래가 비침 */
.mark { position: absolute; right: calc(var(--gutter) - 16px); bottom: -0.11em; z-index: 1; font-size: clamp(120px, 29.8vw, 430px); line-height: 0.85; pointer-events: none; isolation: isolate; will-change: transform; }
.mark__text { position: relative; z-index: 2; color: #fff; background: var(--bg); mix-blend-mode: multiply; padding: 0 0.02em; }
.mark__media { position: absolute; inset: 1px; z-index: 1; overflow: hidden; } /* 1px 안쪽: 글자 상자 가장자리에 미세한 테두리가 비치지 않게 */
.mark__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s; }
.mark[data-video-ready] .mark__video { opacity: 1; }
.mark[data-video-ready] .mark__foil { opacity: 0; }

/* CSS 은박 폴백: 영상이 없거나 아직 안 왔을 때 글자 안을 채움 */
@property --fa { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.mark__foil { position: absolute; inset: 0; transition: opacity 0.8s; }
.mark__foil > span { position: absolute; inset: 0; }
.mark__foil-base { background-image: linear-gradient(105deg, #a9a9b0 0%, #eeeef1 16%, #b9c6de 30%, #e6cfe4 44%, #f7f7f9 56%, #bccdc6 70%, #9e9ea5 84%, #e2e2e6 100%); background-size: 220% 100%; animation: sheen 9s ease-in-out infinite alternate; }
.mark__foil-iri { background-image: conic-gradient(from var(--fa) at 50% 50%, #f1c9e6, #bfe0f5, #d7cdf2, #c9f0e0, #f4e2c8, #f1c9e6); animation: foil-spin 16s linear infinite; mix-blend-mode: screen; opacity: 0.5; }
.mark__foil-ridge { background-image: repeating-linear-gradient(112deg, rgba(255,255,255,0) 0 5px, rgba(255,255,255,0.28) 5px 6px, rgba(255,255,255,0) 6px 11px); background-size: 420px 420px; animation: foil-ridge 7s linear infinite; mix-blend-mode: overlay; opacity: 0.75; }
.mark__foil-spot { background-image: radial-gradient(34% 58% at var(--fx, 55%) var(--fy, 45%), rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.35) 32%, rgba(255,255,255,0) 72%); mix-blend-mode: screen; }
@keyframes foil-spin { to { --fa: 360deg; } }
@keyframes foil-ridge { to { background-position: 420px 0; } }

/* 확인용 화면 (?guide=1): 글자 안에 네 구역을 색으로 표시 */
.mark.is-guide .mark__video, .mark.is-guide .mark__foil { display: none; }
.mark__guide { position: absolute; inset: 0; z-index: 3; display: flex; }
.mark__guide-col { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--font-mono); font-size: 0.055em; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; color: #000; font-weight: 500; }
.mark__guide-col::after { content: ""; position: absolute; left: 0; right: 0; top: 10%; bottom: 10%; border-top: 2px dashed rgba(0,0,0,0.55); border-bottom: 2px dashed rgba(0,0,0,0.55); }
.mark__guide-col[data-i="1"] { background: #ff6b6b; }
.mark__guide-col[data-i="2"] { background: #ffd166; }
.mark__guide-col[data-i="3"] { background: #6be3ff; }
.mark__guide-col[data-i="4"] { background: #c59bff; }
.mark__guide-col + .mark__guide-col { border-left: 2px solid #000; }
.guide-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000; padding: 10px 16px; background: #ffd166; color: #000; font-size: 12px; letter-spacing: 0.04em; text-align: center; }

/* ---------- Ticker ---------- */
.ticker { height: 64px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.ticker__track { display: flex; width: max-content; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; animation: ticker 32s linear infinite; }
.ticker__track span { padding-right: 64px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 11vw, 160px) var(--gutter) 0; }
.section--contact { padding-bottom: clamp(72px, 8vw, 112px); }

/* 섹션 제목: 대형 홀로그램 타이포 (WORKS 스타일을 전 섹션에 적용) */
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); margin-bottom: clamp(40px, 5vw, 72px); }
.sec__title { font-size: clamp(72px, 15.2vw, 220px); margin-left: -0.04em; }
.sec__title--long { font-size: clamp(48px, 11.6vw, 168px); }
.sec__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; padding-bottom: 36px; }

/* Services rows */
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 40px; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line-2); align-items: start; transition: background 0.25s; }
.row--project { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); }
.row__meta { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); text-align: right; padding-top: 12px; white-space: nowrap; }
.row:last-child { border-bottom: 1px solid var(--line-2); }
.row:hover { background: rgba(255,255,255,0.025); }
.row__title { font-size: clamp(24px, 2.5vw, 36px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; transition: transform 0.35s var(--ease); }
.row:hover .row__title { transform: translateX(12px); }
.row__desc { font-size: 16px; line-height: 1.75; color: var(--text-2); word-break: keep-all; }
.row__arrow { display: flex; justify-content: flex-end; padding-top: 10px; color: var(--text-4); font-size: 20px; transition: transform 0.35s, color 0.25s; }
.row:hover .row__arrow { transform: translate(4px, -4px); color: var(--text); }

/* Works */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.chip:hover { color: var(--text); border-color: var(--text); }

.cat { margin-top: clamp(64px, 7.8vw, 112px); scroll-margin-top: 96px; }
.cat:first-of-type { margin-top: 0; }
.cat__head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; }
.cat__title { display: flex; align-items: baseline; gap: 20px; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.grid > [data-span="12"] { grid-column: span 12; }
.grid > [data-span="8"]  { grid-column: span 8; }
.grid > [data-span="7"]  { grid-column: span 7; }
.grid > [data-span="6"]  { grid-column: span 6; }
.grid > [data-span="5"]  { grid-column: span 5; }
.grid > [data-span="4"]  { grid-column: span 4; }
.grid__note { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 12px 32px; }
.grid__note-title { font-size: clamp(26px, 2.8vw, 40px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.2; word-break: keep-all; max-width: 640px; }
.grid__note-desc { margin-top: 20px; font-size: 16px; line-height: 1.75; color: var(--text-2); max-width: 520px; word-break: keep-all; }

.card { position: relative; display: flex; flex-direction: column; min-height: 560px; overflow: hidden; border-radius: 6px; background: var(--surface-2); border: 1px solid rgba(255,255,255,0.07); transition: border-color 0.3s, transform 0.5s var(--ease); }
.card[data-span="8"], .card[data-span="4"] { min-height: 660px; }
.card.card--tall { min-height: 720px; }
.card.card--xtall { min-height: 880px; }
.card.card--wide { min-height: 700px; }
.card:hover { border-color: rgba(255,255,255,0.22); transform: translateY(-4px); }
.card__media { position: relative; flex: 1; overflow: hidden; background: radial-gradient(120% 90% at 18% 8%, var(--tint, #1a1c24) 0%, #0f1016 55%, var(--bg) 100%); transition: transform 0.9s var(--ease); }
.card:hover .card__media { transform: scale(1.03); }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.card--wide .card__img { object-position: center; }
.card__arrow { position: absolute; right: 24px; top: 20px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: #ececee; color: #0a0a0b; font-size: 22px; opacity: 0; transform: translate(6px, -6px); transition: opacity 0.3s, transform 0.4s; }
.card:hover .card__arrow { opacity: 1; transform: translate(0, 0); }
.card__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 24px 28px 28px; }
.card__meta--stack { flex-direction: column; align-items: flex-start; gap: 14px; }
.card__name { font-size: clamp(26px, 2.5vw, 36px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.card__sub { margin-top: 8px; font-size: 16px; color: var(--text-2); }
.card__tags { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; padding-bottom: 4px; }

/* Projects tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 540px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; transition: transform 0.4s var(--ease), border-color 0.3s; }
.tile:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.22); }
.tile__top { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.tile__top span:last-child { color: var(--text-4); letter-spacing: 0; }
.tile__art { margin: 24px 0; overflow: hidden; border-radius: 4px; background: #fff; }
/* 로고 원본(정사각, 흰 여백 포함)의 가운데를 가로형으로 잘라 판을 꽉 채움 */
.tile__logo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile:hover .tile__logo { transform: scale(1.04); }
.tile__name { font-size: 44px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.tile__latin { margin-top: 8px; font-size: 13px; letter-spacing: 0.08em; color: var(--text-3); }
.tile__desc { margin-top: 18px; font-size: 15px; line-height: 1.6; color: #6f6f76; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.contact__lead { font-size: clamp(22px, 2.1vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; word-break: keep-all; }
.contact__note { margin-top: 20px; font-size: 15px; line-height: 1.7; color: var(--text-2); word-break: keep-all; }
.contact__links { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.contact__links > div { display: flex; align-items: baseline; gap: 16px; }
.contact__links dt { min-width: 68px; font-size: 13px; letter-spacing: 0.02em; color: var(--text-4); }
.contact__links dd { margin: 0; font-size: 17px; color: var(--text); }
.contact__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.contact__tagline { margin-top: clamp(96px, 11vw, 160px); font-family: var(--font-wm); font-weight: 800; font-size: clamp(48px, 8.6vw, 124px); letter-spacing: -0.045em; line-height: 0.96; }

/* 문의 폼 */
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field--wide { grid-column: span 2; }
.field__label { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-2); }
.field__label em { font-style: normal; font-weight: 400; color: var(--text-4); margin-left: 6px; }
.field__input { width: 100%; height: 48px; padding: 0; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.18); border-radius: 0; color: var(--text); font: inherit; font-size: 17px; outline: none; transition: border-color 0.25s; }
.field__input::placeholder { color: var(--text-4); }
.field__input:focus { border-bottom-color: #ececee; }
.field__input--area { height: auto; padding: 12px 0; line-height: 1.6; resize: vertical; min-height: 120px; }
.field__input:user-invalid { border-bottom-color: #ff7b7b; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.choice input:checked + span { color: #0a0a0b; background: #ececee; border-color: #ececee; }
.choice input:focus-visible + span { outline: 2px solid #ececee; outline-offset: 3px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.agree { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.agree input { width: 18px; height: 18px; accent-color: #ececee; }
.form__submit { min-width: 180px; }
.form__submit[disabled] { opacity: 0.5; pointer-events: none; }
.form__status { margin-top: 18px; min-height: 1.6em; font-size: 14px; color: var(--text-2); }
.form__status[data-state="ok"] { color: #cfe8d6; }
.form__status[data-state="error"] { color: #ffb4b4; }
.form__status a { text-decoration: underline; text-underline-offset: 3px; }
.form.is-sent .form__grid, .form.is-sent .form__foot { opacity: 0.35; pointer-events: none; }

/* Footer */
.footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line); }
.footer__brand { font-size: 22px; }
.footer__info { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; font-size: 12px; line-height: 1.7; color: var(--text-4); }
.footer__meta a { transition: color 0.2s; }
.footer__meta a:hover { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.footer__copy { margin-top: 10px; font-size: 12px; letter-spacing: 0.06em; color: var(--text-4); }

/* ---------- Motion ---------- */
[data-rise] { opacity: 0; transform: translateY(10px); filter: blur(10px); animation: fadein 1.6s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadein { 60% { filter: blur(0); } to { opacity: 1; transform: none; filter: blur(0); } }
.mark[data-rise] { filter: none; transform: none; animation-name: fadein-plain; animation-duration: 2.2s; }
@keyframes fadein-plain { to { opacity: 1; } }

[data-reveal] { opacity: 0; transform: translateY(16px); filter: blur(8px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }
.grid > [data-reveal]:nth-child(2) { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-rise], [data-reveal] { opacity: 1; transform: none; filter: none; animation: none; transition: none; }
  .holo, .mark__foil > span, .ticker__track { animation: none; }
  .card:hover .card__media, .row:hover .row__title, .tile:hover .tile__logo { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid > [data-span="8"], .grid > [data-span="4"], .grid > [data-span="7"], .grid > [data-span="5"] { grid-column: span 6; }
  .card, .card[data-span="8"], .card[data-span="4"] { min-height: 520px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: minmax(0, 1fr) 32px; }
  .row__desc { grid-column: 1; }
  .row__arrow { grid-row: 1; grid-column: 2; }
  .row--project { grid-template-columns: minmax(0, 1fr); }
  .row__meta { text-align: left; padding-top: 0; }
}

@media (max-width: 768px) {
  .nav__inner { height: 64px; }
  .nav__brand { font-size: 28px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero { min-height: 0; padding-bottom: 56px; }
  .hero__title { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.12; }
  .hero__lead { margin-top: 24px; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .btn { width: 100%; }
  .hero__caption { display: none; }
  /* 모바일: REER를 헤드라인 바로 아래 흐름 안에 둠 */
  .mark { position: relative; right: auto; left: 0; bottom: auto; margin: 28px 0 0 -0.03em; font-size: 33vw; }
  .ticker { height: 52px; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 20px; margin-bottom: 32px; }
  .sec__aside { align-items: flex-start; padding-bottom: 0; }
  .chips { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; padding-bottom: 4px; }
  .cat__title { font-size: 24px; gap: 14px; }
  .grid { display: flex; flex-direction: column; gap: 14px; }
  .card, .card[data-span="8"], .card[data-span="4"], .card.card--tall, .card.card--wide { min-height: 480px; }
  .card.card--xtall { min-height: 560px; }
  .card__meta { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px 22px; }
  .card__arrow { display: none; }
  .grid__note { padding: 8px 0 0; }
  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .tile { min-height: 0; padding: 18px; justify-content: flex-start; }
  .tile__art { margin: 16px 0 20px; }
  .tile__name { font-size: 32px; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .form__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .field--wide { grid-column: span 1; }
  .form__foot { flex-direction: column; align-items: stretch; }
  .form__submit { width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px var(--gutter) 40px; }
  .footer__info { align-items: flex-start; text-align: left; gap: 10px; }
  .footer__meta { justify-content: flex-start; flex-direction: column; gap: 4px; }
  .footer__brand { font-size: 18px; }
}
