/* ==========================================================
   DALRAE — 셰틀랜드 쉽독 모델 포트폴리오
   디자인 토큰 → 레이아웃 → 섹션 → 컴포넌트 → 모션 순서
   ========================================================== */

:root {
  /* 브랜드 컬러는 스튜디오 배경지(딥 그린)에서 추출 */
  --teal: #0e8f88;
  --teal-bright: #23bdb3;
  --ink: #0a0a0b;
  --ink-soft: #16171a;
  --paper: #f6f6f7;
  --paper-2: #ffffff;
  --tint: #eef3f2;
  --text: #1d1d1f;
  --text-dim: #6e6e73;
  --text-on-dark: #f5f5f7;
  --text-on-dark-dim: #9a9aa2;
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --line-dark: rgba(255, 255, 255, 0.14);

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(88px, 12vw, 180px);
  --radius: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.62s;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', system-ui, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 스티키 네비 높이만큼 앵커 오프셋 */
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* width/height 속성으로 종횡비를 예약하되, 실제 크기는 컨테이너에 맞춘다 */
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: #fff; color: #000; font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── 타이포 ────────────────────────────────────────────── */

.kicker {
  margin: 0 0 18px;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.section--dark .kicker,
.hero .kicker { color: var(--teal-bright); }

.sechead { max-width: 46rem; margin-bottom: clamp(44px, 6vw, 88px); }
.sechead--center { margin-inline: auto; text-align: center; }

.sechead__title {
  margin: 0;
  font-size: clamp(32px, 5.4vw, 66px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.sechead__lead {
  margin: 22px 0 0;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 40rem;
}
.sechead--center .sechead__lead { margin-inline: auto; }
.section--dark .sechead__lead { color: var(--text-on-dark-dim); }

/* ── 내비게이션 ────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  border-bottom-color: var(--line-dark);
}

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 56px;
  display: flex; align-items: center; gap: 28px;
  color: var(--text-on-dark);
}

.nav__brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.02em; }
.nav__mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: url('/icon-180.png') center/cover no-repeat;
  box-shadow: 0 0 0 1px var(--line-dark);
}
.nav__word { font-size: 17px; }

.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav__links a { color: var(--text-on-dark-dim); transition: color 0.25s var(--ease); position: relative; }
.nav__links a:hover { color: var(--text-on-dark); }
.nav__links a.is-active { color: var(--text-on-dark); }
.nav__links a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; border-radius: 2px; background: var(--teal-bright);
}

.nav__cta {
  font-size: 14px; font-weight: 600;
  padding: 7px 15px; border-radius: 999px;
  background: var(--text-on-dark); color: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav__cta:hover { transform: translateY(-1px); opacity: 0.9; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 10px; width: 20px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded='true'] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.nav__sheet {
  display: grid;
  padding: 8px var(--gutter) 22px;
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-on-dark);
}
.nav__sheet[hidden] { display: none; }
.nav__sheet a {
  padding: 14px 2px;
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0; transform: translateY(-6px);
  animation: sheetIn 0.4s var(--ease) forwards;
}
.nav__sheet a:nth-child(2) { animation-delay: 0.04s; }
.nav__sheet a:nth-child(3) { animation-delay: 0.08s; }
.nav__sheet a:nth-child(4) { animation-delay: 0.12s; }
.nav__sheet a:nth-child(5) { animation-delay: 0.16s; }
.nav__sheet a:last-child { border-bottom: 0; color: var(--teal-bright); }
@keyframes sheetIn { to { opacity: 1; transform: none; } }

/* ── 버튼 ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; min-height: 46px;
  padding: 0 26px; border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-bright); }
.btn--ghost {
  background: transparent; color: var(--teal-bright);
  box-shadow: inset 0 0 0 1px currentColor;
}
.section--light .btn--ghost, .section--tint .btn--ghost { color: var(--teal); }

/* ── HERO ─────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 110px);
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(58% 52% at 68% 34%, color-mix(in srgb, var(--teal) 46%, transparent) 0%, transparent 68%),
    radial-gradient(46% 46% at 14% 82%, color-mix(in srgb, #1b4f6b 40%, transparent) 0%, transparent 70%);
  filter: blur(6px);
  opacity: 0.85;
  animation: bgDrift 22s var(--ease-inout) infinite alternate;
}
@keyframes bgDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

.hero__grid {
  position: relative;
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr 0.86fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
}

.hero__title {
  margin: 0;
  font-size: clamp(72px, 17vw, 220px);
  font-weight: 800; line-height: 0.86;
  letter-spacing: -0.055em;
}
.hero__title span {
  background: linear-gradient(178deg, #ffffff 32%, #b9c6c4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero__sub {
  margin: clamp(20px, 3vw, 34px) 0 0;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.6; color: var(--text-on-dark-dim);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }

.hero__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
  will-change: transform;
}
.hero__figure img { width: 100%; height: auto; }

.hero__scroll {
  position: relative;
  margin: clamp(36px, 6vw, 72px) auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-on-dark-dim);
}
.hero__scroll span {
  width: 1px; height: 34px;
  background: linear-gradient(var(--teal-bright), transparent);
  animation: scrollCue 2.4s var(--ease-inout) infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ── 스펙 스트립 (무한 마퀴) ──────────────────────────── */

.strip {
  background: var(--ink-soft);
  color: var(--text-on-dark);
  border-block: 1px solid var(--line-dark);
  overflow: hidden;
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip__track {
  display: flex; gap: 44px; width: max-content;
  animation: marquee 34s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.strip__item {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-size: 14px; white-space: nowrap;
}
.strip__item b { font-weight: 600; letter-spacing: -0.01em; }
.strip__item i { font-style: normal; color: var(--text-on-dark-dim); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.strip__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); align-self: center; }

/* ── 섹션 베이스 ──────────────────────────────────────── */

.section { padding: var(--section-y) 0; }
.section--light { background: var(--paper); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark .sechead__title { letter-spacing: -0.04em; }

/* ── PROFILE ──────────────────────────────────────────── */

.profile {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.profile__shot {
  margin: 0; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  background: #e9e9ea;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.4);
  /* 오른쪽 스펙을 읽는 동안 사진이 따라온다 */
  position: sticky; top: 88px;
}

.spec {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; margin: 0 0 clamp(28px, 4vw, 48px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec__cell { background: var(--paper-2); padding: 20px 22px; }
.spec dt { font-size: 12px; letter-spacing: 0.06em; color: var(--text-dim); }
.spec dd {
  margin: 6px 0 0;
  font-size: clamp(20px, 2.2vw, 26px); font-weight: 650;
  letter-spacing: -0.03em;
}
.spec dd small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }

.skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.skills li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr; gap: 6px;
}
.skills li:last-child { border-bottom: 1px solid var(--line); }
.skills h3 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.skills p { margin: 0; font-size: 15px; color: var(--text-dim); }

/* ── PORTFOLIO ────────────────────────────────────────── */

.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.filters button {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark-dim);
  padding: 9px 17px; border-radius: 999px;
  font-size: 14px; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.filters button:hover { color: var(--text-on-dark); transform: translateY(-1px); }
.filters button[aria-selected='true'] {
  background: var(--text-on-dark); border-color: transparent; color: var(--ink); font-weight: 600;
}
.filters button i { font-style: normal; opacity: 0.6; margin-left: 6px; font-size: 12px; }

.grid {
  columns: 3;
  column-gap: 16px;
}
.card {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  width: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden;
  display: block;
  opacity: 0; transform: translateY(22px) scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.card.is-in { opacity: 1; transform: none; }
.card::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-radius: inherit; pointer-events: none;
}
.card img {
  width: 100%; height: auto;
  background-size: cover; background-position: center;
  transition: transform 0.85s var(--ease), filter 0.5s var(--ease);
}
.card:hover img { transform: scale(1.045); }
.card__meta {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 16px 14px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 10px;
  font-size: 12px; letter-spacing: 0.02em; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:hover .card__meta, .card:focus-visible .card__meta { opacity: 1; transform: none; }
.card__meta i { font-style: normal; opacity: 0.75; }

.fallback { color: var(--text-on-dark-dim); }

/* ── TIMELINE ─────────────────────────────────────────── */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 118px 200px 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: clamp(24px, 3vw, 38px) 0;
  border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.timeline li.is-in { opacity: 1; transform: none; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }

.tl__date { font-size: 14px; color: var(--text-dim); letter-spacing: 0.02em; padding-top: 4px; }
.tl__thumb {
  margin: 0; border-radius: 12px; overflow: hidden; background: #e6e6e7;
  aspect-ratio: 4 / 3;
}
.tl__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tl__body h3 { margin: 0 0 6px; font-size: clamp(19px, 2vw, 24px); font-weight: 650; letter-spacing: -0.025em; }
.tl__body p { margin: 0; color: var(--text-dim); font-size: 15px; max-width: 44rem; }
.tl__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tl__tag {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  color: color-mix(in srgb, var(--teal) 82%, #000);
  font-weight: 600;
}

/* ── KIT ──────────────────────────────────────────────── */

.kit { display: grid; gap: clamp(40px, 6vw, 76px); }
.kit__group { display: grid; grid-template-columns: 280px 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.kit__head h3 {
  margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700; letter-spacing: -0.03em;
}
.kit__head p { margin: 0; font-size: 15px; color: var(--text-dim); }

.kit__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.item {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.item.is-in { opacity: 1; transform: none; }
a.item:hover {
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.35);
  border-color: color-mix(in srgb, var(--teal) 40%, transparent);
  transform: translateY(-3px);
}
.item__brand { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.item__name { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.item__why { font-size: 14px; color: var(--text-dim); margin: 0; }
.item__spec { font-size: 12px; color: var(--text-dim); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }
.item__go { font-size: 13px; font-weight: 600; color: var(--teal); display: inline-flex; gap: 4px; align-items: center; }
.item__go span { transition: transform 0.3s var(--ease); }
a.item:hover .item__go span { transform: translateX(3px); }
.item--soon { opacity: 1; }
.item--soon .item__go { color: var(--text-dim); }

.disclosure {
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 16px 18px;
  font-size: 13px; line-height: 1.6; color: var(--text-dim);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* ── CONTACT ──────────────────────────────────────────── */

.cform { max-width: 720px; margin-inline: auto; display: grid; gap: 16px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; color: var(--text-on-dark-dim); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px;
  width: 100%; padding: 14px 16px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 132px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-on-dark-dim) 50%), linear-gradient(135deg, var(--text-on-dark-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal-bright);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff6b6b; }

.cform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.cform__status { font-size: 13px; color: var(--teal-bright); }
.cform__hint { margin: 0; font-size: 12px; color: var(--text-on-dark-dim); }

/* ── FOOTER ───────────────────────────────────────────── */

.foot { background: #000; color: var(--text-on-dark-dim); padding: clamp(48px, 6vw, 80px) 0 40px; border-top: 1px solid var(--line-dark); }
.foot__inner { display: grid; gap: 18px; }
.foot__brand { margin: 0; font-size: 20px; font-weight: 700; color: var(--text-on-dark); letter-spacing: -0.02em; }
.foot__brand span { font-size: 12px; letter-spacing: 0.2em; color: var(--text-on-dark-dim); margin-left: 8px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.foot__links a:hover { color: var(--text-on-dark); }
.foot__meta, .foot__copy { margin: 0; font-size: 12px; line-height: 1.7; }
.foot__copy { color: #5c5c63; }

/* ── LIGHTBOX ─────────────────────────────────────────── */

.lb {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: clamp(12px, 3vw, 48px);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }

.lb__stage { margin: 0; display: grid; gap: 14px; justify-items: center; max-height: 100%; }
.lb__stage img {
  max-width: min(100%, 1400px);
  max-height: calc(100svh - clamp(88px, 8vw, 132px));
  width: auto; height: auto;
  border-radius: 10px;
  transform: scale(0.965); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}
.lb.is-open .lb__stage img { transform: none; opacity: 1; }

.lb__cap { display: flex; gap: 12px; font-size: 13px; color: #b9b9c0; }
.lb__cap span:last-child { color: #74747c; font-variant-numeric: tabular-nums; }

.lb__close, .lb__nav {
  position: absolute; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff; cursor: pointer; font-size: 20px; line-height: 1;
  display: grid; place-items: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lb__close:hover, .lb__nav:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.06); }
.lb__close { top: clamp(12px, 2.5vw, 28px); right: clamp(12px, 2.5vw, 28px); font-size: 15px; }
.lb__nav { top: 50%; margin-top: -23px; font-size: 30px; padding-bottom: 4px; }
.lb__nav--prev { left: clamp(8px, 2vw, 28px); }
.lb__nav--next { right: clamp(8px, 2vw, 28px); }

/* ── 리빌 모션 ────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay='1'] { transition-delay: 0.08s; }
[data-reveal-delay='2'] { transition-delay: 0.16s; }
[data-reveal-delay='3'] { transition-delay: 0.24s; }

.lazy { filter: blur(14px); transform: scale(1.02); }
.lazy.is-loaded { filter: none; transform: none; }

/* ── 반응형 ───────────────────────────────────────────── */

@media (max-width: 1024px) {
  .grid { columns: 2; }
  .kit__group { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile__shot { max-width: 520px; position: static; }
  .timeline li { grid-template-columns: 104px 160px 1fr; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  /* 세로 화면에서는 사진을 줄여 제목·CTA까지 첫 화면에 들어오게 한다 */
  .hero__figure { width: min(64vw, 46svh); margin-inline: auto; order: -1; }
  .hero__copy { text-align: center; }
  .hero__actions { justify-content: center; }
  .timeline li { grid-template-columns: 1fr; gap: 14px; }
  .tl__thumb { max-width: 200px; }
  .tl__date { padding-top: 0; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 64px; }
  .grid { columns: 1; }
  .spec { grid-template-columns: 1fr 1fr; }
  .kit__items { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
  .lb__nav { top: auto; bottom: 14px; margin-top: 0; }
  .lb__nav--prev { left: 28%; }
  .lb__nav--next { right: 28%; }
}

/* ── 접근성: 모션 최소화 ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  [data-reveal], .card, .timeline li, .item { opacity: 1 !important; transform: none !important; }
  .strip__track { animation: none; }
  .lazy { filter: none; }
}
