:root {
  --bg: #efece4;
  --bg-2: #e7e2d6;
  --ink: #17191d;
  --soft: #3e444c;
  --muted: #6f675e;
  --line: rgba(23, 25, 29, 0.14);
  --brass: #8d6b3a;
  --brass-2: #c6a36b;
  --deep: #12151a;
  --deep-2: #1b212b;
  --paper: #f7f5f0;
  --warn: #8a3a32;
  --nav: 72px;
  --shadow-soft: 0 18px 50px rgba(18, 21, 26, 0.1);
  --shadow-heavy: 0 32px 90px rgba(8, 10, 13, 0.22);
  --serif: "Noto Serif KR", "Song Myung", serif;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --num: "Newsreader", "Noto Serif KR", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #e4d2ae; color: var(--ink); }

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brass-2);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 60;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  background: rgba(239, 236, 228, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
body.is-scrolled .nav {
  background: rgba(247, 245, 240, 0.94);
  box-shadow: 0 10px 28px rgba(18, 21, 26, 0.08);
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
}
.logo strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.logo small {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  color: var(--soft);
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--ink);
  transition: right 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.btn.light { background: var(--paper); color: var(--ink); }
.btn.line {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn.wide { width: 100%; height: 54px; }
.nav-cta { min-height: 40px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  min-height: calc(100vh - var(--nav));
  background: var(--deep);
  color: #f4efe6;
}
.hero-copy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px 56px 56px;
  background:
    radial-gradient(circle at 18% 22%, rgba(198, 163, 107, 0.13), transparent 30%),
    var(--deep);
}
.hero-copy::before {
  content: "DAMDAE";
  position: absolute;
  z-index: -1;
  top: 40px;
  left: 48px;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--num);
  font-size: clamp(86px, 13vw, 190px);
  line-height: 0.8;
  letter-spacing: -0.07em;
  pointer-events: none;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--brass-2);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.eyebrow i {
  font-style: normal;
  font-family: var(--num);
  font-size: 18px;
}
.hero h1, .dhero h1, .section h2, .ch h2, .apply h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(46px, 5.4vw, 82px);
  line-height: 1.16;
}
.lede {
  max-width: 460px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(244, 239, 230, 0.78);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-copy > * {
  animation: hero-rise 0.8s both cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.fine, .note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.hero .fine { color: rgba(244, 239, 230, 0.5); margin: 18px 0 0; max-width: 460px; }
.hero-visual { position: relative; min-height: 520px; overflow: hidden; background: #0c0e12; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 14, 18, 0.26), transparent 35%),
    linear-gradient(180deg, transparent 62%, rgba(12, 14, 18, 0.35));
  pointer-events: none;
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-image-in 1.4s both cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-card {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 22px;
  width: min(300px, calc(100% - 44px));
  padding: 18px 18px 14px;
  background: rgba(247, 245, 240, 0.95);
  color: var(--ink);
  box-shadow: var(--shadow-heavy);
  backdrop-filter: blur(12px);
  animation: hero-card-in 0.8s 0.45s both cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-card span { font-size: 12px; letter-spacing: 0.12em; color: var(--brass); }
.hero-card strong {
  display: block;
  margin: 4px 0 10px;
  font-family: var(--num);
  font-size: 40px;
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-card ol { list-style: none; margin: 0; padding: 0; }
.hero-card li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.hero-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

.ticker {
  display: flex;
  gap: 0;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  scrollbar-width: none;
}
.ticker-track {
  display: flex;
  flex: 0 0 auto;
  width: max-content;
  animation: ticker-loop 44s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker::-webkit-scrollbar { display: none; }
.ticker span {
  flex: 0 0 auto;
  padding: 13px 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-right: 1px solid var(--line);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.quick-facts a {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 23px 24px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease;
}
.quick-facts a:last-child { border-right: 0; }
.quick-facts i {
  color: var(--brass);
  font-family: var(--num);
  font-size: 21px;
  font-style: normal;
}
.quick-facts span { min-width: 0; }
.quick-facts small, .quick-facts strong { display: block; }
.quick-facts small { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.quick-facts strong { margin-top: 2px; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.quick-facts b { font-size: 17px; font-weight: 400; transition: transform 0.3s ease; }
.quick-facts a:hover { background: var(--deep); color: #f4efe6; }
.quick-facts a:hover small { color: rgba(244, 239, 230, 0.62); }
.quick-facts a:hover b { transform: translate(3px, 3px); }

.section {
  position: relative;
  padding: 104px 0;
  border-bottom: 1px solid rgba(23, 25, 29, 0.07);
}
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.wrap-s { width: min(760px, calc(100% - 48px)); margin: 0 auto; }
.kicker {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 13px;
  letter-spacing: 0.14em;
}
.section h2, .apply h2, .dhero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.28;
}
.section .intro, .apply .intro {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--soft);
}

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: end; }
.offer-grid, .num-grid, .fit-grid, .apply-grid, .two {
  display: grid;
  gap: 18px;
}
.offer-grid { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.offer, .stat, .fit article, .case {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.offer-grid .offer:nth-child(2) {
  background: var(--deep-2);
  color: #f4efe6;
  border-color: transparent;
  transform: translateY(-12px);
  box-shadow: var(--shadow-soft);
}
.offer-grid .offer:nth-child(2) em { color: var(--brass-2); }
.offer-grid .offer:nth-child(2) p { color: rgba(244, 239, 230, 0.68); }
.offer em, .stat em, .case em {
  font-family: var(--num);
  font-style: normal;
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1;
}
.offer em { display: block; font-size: 42px; margin-bottom: 12px; }
.offer h3, .fit h3, .case h3 { margin: 0 0 8px; font-size: 18px; font-weight: 650; }
.offer p, .fit p, .case p { margin: 0; color: var(--soft); font-size: 15px; }

.ink {
  background: var(--deep);
  color: #f4efe6;
}
.ink .kicker { color: var(--brass-2); }
.ink .intro, .ink .fine { color: rgba(244, 239, 230, 0.68); }
.quotes { list-style: none; margin: 36px 0 0; padding: 0; }
.quotes li {
  padding: 22px 0;
  border-top: 1px solid rgba(244, 239, 230, 0.16);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
}
.answer {
  margin-top: 28px;
  max-width: 560px;
  font-size: 18px;
  color: rgba(244, 239, 230, 0.82);
}

.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 42px 56px; margin-top: 48px; }
.area h3 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--brass);
  font-weight: 600;
}
.area ul { list-style: none; margin: 0; padding: 0; }
.area li { padding: 13px 0; border-top: 1px solid var(--line); }
.area li strong { display: block; font-size: 17px; letter-spacing: -0.02em; }
.area li span { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 36px; }
.step { border-top: 1px solid var(--line); padding-top: 14px; }
.step i {
  display: block;
  font-family: var(--num);
  font-style: normal;
  color: var(--brass);
  font-size: 28px;
  line-height: 1;
}
.step strong { display: block; margin: 10px 0 6px; }
.step span { color: var(--muted); font-size: 14px; }

.ladder { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ladder span {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-family: var(--serif);
}
.ink .step { border-top-color: rgba(244, 239, 230, 0.18); }
.ink .step span { color: rgba(244, 239, 230, 0.66); }
.ink .fine { color: rgba(244, 239, 230, 0.62); }
.ladder span + span::before { content: "→  "; color: var(--brass); }

.num-grid { grid-template-columns: repeat(4, 1fr); }
.stat.wide { grid-column: 1 / -1; }
.stat em { display: block; font-size: clamp(28px, 3vw, 40px); margin: 8px 0; }
.stat b { font-weight: 600; font-size: 14px; }
.stat.wide { background: #1b212b; color: #f4efe6; border-color: transparent; }
.stat.wide em { color: var(--brass-2); }
.slips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.slips figure { margin: 0; background: white; border: 1px solid var(--line); padding: 8px; }
.slips figcaption { padding: 8px 4px 2px; font-size: 13px; color: var(--muted); }
.slips img { width: 100%; height: auto; }

.cases { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.case em { display: block; font-size: 26px; margin: 8px 0; }
.case.total { background: var(--deep); color: #f4efe6; border-color: transparent; }
.case.total em { color: var(--brass-2); }

.bento { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; margin-top: 28px; }
.bento figure { margin: 0; position: relative; background: #ccc; }
.bento figure { overflow: hidden; }
.bento img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.bento figure:hover img { transform: scale(1.035); filter: contrast(1.03); }
.bento .tall img { aspect-ratio: 3/4; }
.span2 { grid-column: 1 / -1; }
.bento .span2 img, .wide-photo img { aspect-ratio: 16/8; }
.bento figcaption, .wide-photo figcaption, .frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px 0;
  font-size: 13px;
  color: var(--muted);
}
.wide-photo { margin: 28px 0 0; }
.wide-photo img { width: 100%; object-fit: cover; max-height: 720px; }

.fit-grid { grid-template-columns: 1fr 1fr; margin-top: 28px; }
.fit ul { margin: 8px 0 0; padding-left: 18px; }
.fit li { margin: 6px 0; }
.fit .no { background: transparent; }

.rules { width: 100%; border-collapse: collapse; margin-top: 22px; }
.rules th, .rules td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rules th { width: 28%; font-weight: 600; }

.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; letter-spacing: -0.02em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq details p { margin: 10px 0 0; color: var(--soft); }

.apply { background: var(--bg-2); }
.apply-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); padding: 22px; position: relative; }
.form-card { box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 50px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
}
.field textarea { height: 110px; padding: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(141, 107, 58, 0.28);
  outline-offset: 1px;
  border-color: var(--brass);
}
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--warn); }
.field .err { display: none; margin-top: 4px; color: var(--warn); font-size: 12px; }
.field.is-error .err { display: block; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
form.is-done { display: none; }
.form-success {
  padding: 28px 8px 12px;
}
.form-success strong {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 8px;
}
.form-success p { margin: 0 0 8px; color: var(--soft); }

.dhero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 56px;
  background:
    radial-gradient(circle at 78% 16%, rgba(198, 163, 107, 0.17), transparent 26%),
    var(--deep);
  color: #f4efe6;
}
.dhero::after {
  content: "31";
  position: absolute;
  right: 5vw;
  bottom: -0.28em;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--num);
  font-size: clamp(160px, 25vw, 360px);
  line-height: 1;
}
.dhero .wrap-s { width: min(860px, calc(100% - 48px)); }
.dhero .kicker { color: var(--brass-2); }
.dhero p { color: rgba(244, 239, 230, 0.75); }
.story {
  display: grid;
  grid-template-columns: 132px minmax(0, 760px);
  gap: 28px;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 20px;
}
.story > article {
  min-width: 0;
  padding: 0 38px 44px;
  background: rgba(247, 245, 240, 0.72);
  border: 1px solid rgba(23, 25, 29, 0.08);
  box-shadow: 0 24px 70px rgba(18, 21, 26, 0.06);
}
.rail {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding-right: 8px;
}
.rail a {
  display: block;
  padding: 3px 0;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.rail a:hover { color: var(--ink); }
.rail a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.ch { scroll-margin-top: 92px; padding: 52px 0 14px; border-top: 1px solid var(--line); }
.ch-no { font-family: var(--num); color: var(--brass); font-size: 20px; }
.ch h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.32; margin: 6px 0 14px; }
.ch p { margin: 0 0 12px; }
.ch .cases { grid-template-columns: 1fr 1fr; }
.ch .areas { grid-template-columns: 1fr; gap: 8px; }
.ch .say {
  margin: 18px 0;
  padding-left: 16px;
  border-left: 1px solid var(--brass);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
}
.flow {
  display: grid;
  gap: 0;
  margin: 18px 0;
}
.flow div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.flow i { font-family: var(--num); font-style: normal; color: var(--brass); }
.bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 22px;
  margin-bottom: 8px;
}
.bleed img { width: 100%; max-height: 760px; object-fit: cover; }
.frame { margin: 18px 0; }
.frame { overflow: hidden; }
.frame img { width: 100%; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.frame:hover img { transform: scale(1.02); }

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.mobile-bar { display: none; }

.nav-toggle { display: none; }
.nav-drawer[hidden] { display: none; }
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 18px;
  background: rgba(8, 10, 13, 0.74);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-drawer.is-open { opacity: 1; visibility: visible; }
.nav-drawer__panel {
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100%;
  margin-left: auto;
  padding: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-heavy);
  transform: translateX(24px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-drawer.is-open .nav-drawer__panel { transform: translateX(0); }
.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.nav-drawer__head span { color: var(--brass); font-size: 11px; letter-spacing: 0.18em; }
.nav-drawer__close {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 25px;
  line-height: 1;
}
.nav-drawer nav { display: grid; margin: auto 0; }
.nav-drawer nav a {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 28px;
  text-decoration: none;
}
.nav-drawer nav a:last-child { border-bottom: 1px solid var(--line); }
.nav-drawer .btn { margin-top: 20px; }
body.menu-open { overflow: hidden; }

.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

@media (hover: hover) {
  .offer:hover, .stat:hover, .fit article:hover, .case:hover {
    transform: translateY(-5px);
    border-color: rgba(141, 107, 58, 0.38);
    box-shadow: var(--shadow-soft);
  }
  .offer-grid .offer:nth-child(2):hover { transform: translateY(-17px); }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-image-in {
  from { opacity: 0.5; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes hero-card-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ticker-loop {
  to { transform: translateX(-50%); }
}

body.popup-open { overflow: hidden; }
.contact-popup[hidden] { display: none; }
.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.contact-popup.is-open {
  opacity: 1;
  visibility: visible;
}
.contact-popup__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(8, 10, 13, 0.72);
  backdrop-filter: blur(7px);
  cursor: pointer;
}
.contact-popup__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.1fr);
  width: min(780px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-popup.is-open .contact-popup__panel { transform: translateY(0) scale(1); }
.contact-popup__media {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--deep);
}
.contact-popup__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(10, 12, 16, 0.72));
}
.contact-popup__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-popup__media span {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 17px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.contact-popup__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 42px 40px;
}
.contact-popup__eyebrow {
  margin: 0 0 13px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.18em;
}
.contact-popup__copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.045em;
}
.contact-popup__copy > p:not(.contact-popup__eyebrow) {
  margin: 20px 0 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.7;
}
.contact-popup__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0;
}
.contact-popup__meta span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.contact-popup__cta {
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding-inline: 18px;
}
.contact-popup__cta span { font-size: 19px; font-weight: 400; }
.contact-popup__close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(247, 245, 240, 0.92);
  color: var(--ink);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero, .split, .areas, .apply-grid, .fit-grid { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: 1fr 1fr; }
  .quick-facts a:nth-child(2) { border-right: 0; }
  .quick-facts a:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .num-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cases { grid-template-columns: 1fr 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-grid .offer:nth-child(2) { transform: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 17px; height: 1px; background: currentColor; }
  .hero-copy { padding: 36px 22px 28px; }
  .hero-visual { min-height: 0; }
  .hero-visual img { position: static; height: auto; aspect-ratio: 4/3; }
  .hero-card { position: relative; left: auto; bottom: auto; width: auto; margin: 12px; }
  .story { grid-template-columns: 1fr; width: min(760px, calc(100% - 32px)); }
  .rail {
    position: static;
    max-height: none;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .rail a { border: 1px solid var(--line); padding: 4px 7px; background: var(--paper); }
}
@media (max-width: 720px) {
  :root { --nav: 64px; }
  body { font-size: 16px; }
  .wrap, .dhero .wrap-s { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .section h2, .apply h2, .dhero h1 { font-size: clamp(30px, 9.5vw, 42px); }
  .nav { height: var(--nav); gap: 10px; padding: 0 14px; }
  .nav-cta { display: none; }
  .logo strong { font-size: 20px; }
  .hero { min-height: 0; }
  .hero-copy { min-height: 510px; padding: 54px 22px 34px; }
  .hero-copy::before { top: 54px; left: 18px; font-size: 92px; }
  .hero h1 { font-size: clamp(43px, 13vw, 58px); }
  .lede { font-size: 16px; }
  .hero-visual img { aspect-ratio: 4/4.15; }
  .hero-card { margin: 10px; }
  .quick-facts a { padding: 20px 18px; }
  .steps, .form-grid, .slips, .bento, .cases, .num-grid, .ch .cases { grid-template-columns: 1fr; }
  .story { width: calc(100% - 24px); padding-top: 18px; }
  .story > article { padding: 0 18px 30px; }
  .rail { margin-inline: -2px; }
  .rail a { flex: 0 0 auto; padding: 6px 9px; }
  .ch { scroll-margin-top: 74px; padding: 42px 0 10px; }
  .ch h2 { font-size: clamp(27px, 8vw, 36px); }
  .dhero { padding: 68px 0 42px; }
  .dhero p { font-size: 15px; }
  .rules, .rules tbody { display: block; }
  .rules tr { display: grid; grid-template-columns: 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .rules th, .rules td { display: block; width: 100%; padding: 2px 0; border: 0; }
  .rules td { color: var(--soft); }
  .contact-popup { padding: 12px; }
  .contact-popup__panel {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 24px);
  }
  .contact-popup__media { min-height: 190px; height: 31vh; }
  .contact-popup__copy { padding: 28px 24px 24px; }
  .contact-popup__copy h2 { font-size: 38px; }
  .contact-popup__copy > p:not(.contact-popup__eyebrow) { margin-top: 14px; font-size: 14px; }
  .contact-popup__meta { margin: 18px 0; }
  .contact-popup__close {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(10, 12, 16, 0.46);
  }
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(247, 245, 240, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    z-index: 45;
  }
  body { padding-bottom: 74px; }
}

@media (max-width: 560px) {
  .quick-facts { grid-template-columns: 1fr; }
  .quick-facts a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .quick-facts a:last-child { border-bottom: 0; }
  .quick-facts a:nth-child(2) { border-right: 0; }
  .offer, .stat, .fit article, .case { padding: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .contact-popup, .contact-popup__panel, .reveal-item { transition: none; }
  .hero-copy > *, .hero-visual img, .hero-card, .ticker-track { animation: none; }
  .reveal-item { opacity: 1; transform: none; }
}

@media print {
  .nav, .nav-drawer, .rail, .mobile-bar, .progress, .ticker, .apply, .hero-actions, .contact-popup { display: none !important; }
  body { background: white; padding: 0; }
  .hero, .dhero, .ink { background: white; color: black; }
  .bleed { width: auto; left: auto; margin-left: 0; }
  a { text-decoration: none; }
}
