:root {
  --paper: #f2ede2;
  --paper-2: #e9e2d3;
  --ink: #17150f;
  --ink-soft: #5b5648;
  --olive: #3f4728;
  --olive-deep: #262b17;
  --clay: #c2512b;
  --line: rgba(23, 21, 15, .16);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; color: var(--clay); }
::selection { background: var(--clay); color: var(--paper); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(64px, 11.5vw, 184px); }
h2 { font-size: clamp(44px, 6.4vw, 96px); }
h3 { font-size: 15px; font-weight: 700; letter-spacing: .01em; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--clay); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .link:focus-visible, .card:focus-visible, summary:focus-visible, .rail:focus-visible {
  outline: 2px solid var(--clay); outline-offset: 3px;
}
.btn-small { min-height: 40px; padding: 0 20px; font-size: 13px; }
.btn-wide { width: 100%; }
.link { font-weight: 600; font-size: 15px; text-underline-offset: 5px; }
.link:hover { color: var(--clay); }

/* top bar */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mark { font-family: var(--serif); font-size: 28px; line-height: 1; text-decoration: none; }
.mark span { color: var(--clay); }
.top-note { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4f9a4a; box-shadow: 0 0 0 0 rgba(79, 154, 74, .5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(79, 154, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 154, 74, 0); } }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
  padding: clamp(110px, 13vw, 170px) var(--pad) clamp(40px, 6vw, 80px);
  min-height: 100svh;
}
.hero-copy { padding-bottom: 8px; }
.lede { max-width: 30em; margin-top: 28px; font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }
.hero-facts {
  list-style: none; padding: 0; margin-top: clamp(36px, 5vw, 64px);
  display: flex; flex-wrap: wrap; gap: 14px 44px;
  border-top: 1px solid var(--line); padding-top: 20px;
  font-family: var(--serif); font-size: 24px; line-height: 1.2;
}
.hero-facts span { display: block; font: 600 11px/1.8 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5.6; object-fit: cover; object-position: 50% 30%;
  border-radius: 999px 999px 10px 10px;
}
.hero-photo figcaption, .rail figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.hero-photo figcaption { font-family: var(--serif); font-style: italic; font-size: 18px; }

/* marquee */
.marquee { background: var(--olive); color: var(--paper); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: slide 36s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); white-space: nowrap; }
.marquee i { font-style: normal; color: #d9a35a; font-size: 14px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* shared section */
section { padding: clamp(72px, 10vw, 150px) var(--pad); }
.section-head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }
.sub, .hint { margin-top: 18px; color: var(--ink-soft); max-width: 34em; }
.hint { font-size: 13px; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photos { position: relative; padding: 0 0 12% 0; }
.ph { border-radius: 10px; object-fit: cover; }
.ph-a { width: 74%; aspect-ratio: 3 / 4; }
.ph-b { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; border: 8px solid var(--paper); transform: rotate(3deg); }
.about-copy > p:not(.eyebrow) { margin-top: 24px; max-width: 32em; color: var(--ink-soft); font-size: 17px; }
.specs { margin-top: 36px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-top: 5px; }
.specs dd { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.25; text-align: right; }

/* gallery */
.gallery { padding-left: 0; padding-right: 0; background: var(--paper-2); }
.gallery .section-head { padding: 0 var(--pad); }
.rail {
  display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--pad) 18px;
  scroll-snap-type: x proximity; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail figure { flex: 0 0 clamp(240px, 26vw, 360px); scroll-snap-align: start; }
.rail figure:nth-child(even) { margin-top: 48px; }
.rail img { width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; border-radius: 10px; user-select: none; -webkit-user-drag: none; }
.rail b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; color: var(--clay); margin-right: 8px; }

/* game */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 28px; text-align: left;
  min-height: 300px; padding: 28px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 14px;
  font: inherit; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card .num { font-size: 12px; font-weight: 600; letter-spacing: .16em; }
.card .claim { font-family: var(--serif); font-size: clamp(26px, 2.5vw, 36px); line-height: 1.08; flex: 1; }
.card .pick { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.card[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.card[aria-checked="true"] .pick { text-decoration: none; color: #e9a488; }
.verdict { min-height: 34px; margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: 26px; }

/* standards */
.standards { background: var(--olive-deep); color: var(--paper); }
.standards .eyebrow { color: rgba(242, 237, 226, .6); }
.standards em { color: #e59a78; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.col { padding: 30px; border: 1px solid rgba(242, 237, 226, .22); border-radius: 14px; }
.col h3 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 32px; margin-bottom: 18px; }
.col ul { list-style: none; padding: 0; }
.col li { position: relative; padding: 13px 0 13px 28px; border-top: 1px solid rgba(242, 237, 226, .14); color: rgba(242, 237, 226, .86); }
.col li::before { content: "+"; position: absolute; left: 2px; top: 11px; font-weight: 700; color: #a9c27a; }
.col-no li::before { content: "×"; color: #e59a78; font-size: 18px; top: 9px; }
.col-me { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.col-me li { color: var(--ink); border-color: var(--line); }
.col-me li::before { content: "✦"; color: var(--clay); font-size: 11px; top: 16px; }

/* process */
.process { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.process-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px 10px 999px 999px; }
.steps { list-style: none; padding: 0; margin-top: 40px; }
.steps li { display: flex; gap: 26px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps span { font-family: var(--serif); font-style: italic; font-size: 54px; line-height: .8; color: var(--clay); min-width: 34px; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); max-width: 34em; }

/* faq */
.faq { background: var(--paper-2); }
.faq-list { max-width: 860px; border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--ink); }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--sans); font-size: 24px; font-weight: 400; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 26px; max-width: 38em; color: var(--ink-soft); font-size: 17px; }

/* apply */
.apply { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.apply-intro { position: sticky; top: 100px; }
.apply-intro > p:not(.eyebrow) { margin-top: 22px; max-width: 30em; color: var(--ink-soft); font-size: 17px; }
.apply-intro .yes { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink) !important; }
.apply-intro img { margin-top: 32px; width: min(280px, 60%); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; transform: rotate(-2deg); }
.form { display: grid; gap: 22px; padding: clamp(22px, 3vw, 40px); background: #fbf8f1; border: 1px solid var(--line); border-radius: 18px; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
label small { font-weight: 400; color: var(--ink-soft); margin-top: -4px; }
input, textarea {
  width: 100%; padding: 14px 16px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  font: 400 16px/1.5 var(--sans); resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(194, 81, 43, .22); }
.bad { border-color: var(--clay) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 22px; font-size: 14px; font-weight: 600; color: var(--clay); }
.fine { font-size: 12px; color: var(--ink-soft); }
.done { grid-column: 2; padding: clamp(28px, 4vw, 56px); background: var(--olive); color: var(--paper); border-radius: 18px; }
.done .eyebrow { color: rgba(242, 237, 226, .7); }
.done em { color: #f0b08f; }
.done p:last-child { margin-top: 20px; font-size: 18px; max-width: 26em; }
[hidden] { display: none !important; }

/* footer */
.foot { padding: clamp(60px, 9vw, 130px) var(--pad) 36px; background: var(--ink); color: var(--paper); }
.foot-big { font-family: var(--serif); font-size: clamp(72px, 15vw, 240px); line-height: .9; letter-spacing: -.02em; }
.foot em { color: #e59a78; }
.foot-small { margin-top: 36px; font-size: 13px; color: rgba(242, 237, 226, .6); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero-copy > *, .hero-photo { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-photo { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 104px; }
  .hero-photo { order: -1; width: min(72%, 340px); }
  .hero-photo figcaption { display: none; }
  .about, .process, .apply { grid-template-columns: 1fr; }
  .cards, .cols { grid-template-columns: 1fr; }
  .card { min-height: 0; gap: 18px; }
  .apply-intro { position: static; }
  .apply-intro img { display: none; }
  .done { grid-column: 1; }
  .process-photo { width: min(70%, 320px); }
  .top-note { display: none; }
  .rail figure { flex-basis: 68vw; }
  .rail figure:nth-child(even) { margin-top: 28px; }
}
@media (max-width: 520px) {
  .row.two { grid-template-columns: 1fr; }
  .hero-facts { gap: 14px 28px; font-size: 21px; }
  .specs dd { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .dot, .hero-copy > *, .hero-photo { animation: none; }
}
