/* Same Team Studio — site styles
   Brand palette and type from the Brand & Shop Guide. */

:root {
  --cream: #fcfaf6;
  --paper: #ffffff;
  --ink: #15211c;
  --ink-2: #4c5a53;
  --sage: #869a8f;
  --green: #1e5b44;
  --green-deep: #174836;
  --mint: #ddefe4;
  --sky: #dde9f4;
  --peach: #f8dfd3;
  --butter: #f3e9c2;
  --line: rgba(21, 33, 28, .12);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --shadow-page: 0 1px 2px rgba(21, 33, 28, .06), 0 12px 32px -8px rgba(21, 33, 28, .18), 0 40px 80px -30px rgba(21, 33, 28, .22);
  --ease: cubic-bezier(.2, .7, .1, 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(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Nothing may widen the page on phones (iOS ignores overflow on body alone) */
html, main, .footer { overflow-x: clip; }
@supports not (overflow: clip) { main { overflow-x: hidden; } }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.04; margin: 0; }
em { font-style: italic; color: var(--green); }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mint); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(88px, 14vw, 180px) 0; }
.eyebrow { font: 600 12.5px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.eyebrow--light { color: var(--mint); }
.h2 { font-size: clamp(36px, 5.4vw, 76px); max-width: 16ch; }
.h2 em { display: inline; }
.signoff { font: italic 400 clamp(22px, 2.4vw, 30px)/1.2 var(--serif); color: var(--green); }

.tint-mint { background: var(--mint); } .tint-sky { background: var(--sky); }
.tint-peach { background: var(--peach); } .tint-butter { background: var(--butter); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 16px 26px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 500 16px/1 var(--sans); white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--green { --bg: var(--green); }
.btn--green:hover { --bg: var(--green-deep); }
.btn--ink { --bg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(21, 33, 28, .25); }
.btn--ghost:hover { border-color: var(--ink); --bg: var(--paper); }
.btn--small { padding: 11px 18px; font-size: 14.5px; }
.btn small { font-size: 12.5px; opacity: .7; font-weight: 400; }
.btn[aria-disabled="true"] { --bg: transparent; --fg: var(--ink-2); border-color: var(--line); cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 76px;
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.nav.is-solid { background: rgba(252, 250, 246, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav__brand img { width: 40px; height: auto; }
.nav__name { font: 500 21px/1 var(--serif); letter-spacing: -.01em; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { text-decoration: none; font-size: 15px; color: var(--ink-2); position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__menu { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav__menu span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.nav__menu span:first-child { top: 18px; } .nav__menu span:last-child { top: 25px; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 76px 0 auto 0; z-index: 49; background: var(--cream); padding: 12px var(--gutter) 28px; box-shadow: 0 20px 40px -20px rgba(21, 33, 28, .25); display: grid; }
.mobile-menu a { font: 500 28px/1.2 var(--serif); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a.mobile-menu__shop { color: var(--green); border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center; gap: 2vw; padding: 120px var(--gutter) 80px; max-width: 1600px; margin: 0 auto;
}
.hero__title { font-size: clamp(44px, 4.7vw, 92px); line-height: .98; letter-spacing: -.025em; margin-bottom: 30px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; }
.hero__lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 34em; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--green); } .dot--butter { background: #cdb25c; } .dot--peach { background: #e0907a; }

.hero__desk { position: relative; height: min(78vh, 760px); }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.hero__blob--mint { width: 58%; aspect-ratio: 1; background: var(--mint); left: 2%; top: 6%; }
.hero__blob--sky { width: 52%; aspect-ratio: 1; background: var(--sky); right: -4%; top: 22%; }
.hero__blob--butter { width: 34%; aspect-ratio: 1; background: var(--butter); left: 30%; bottom: -6%; opacity: .8; }
.desk { position: absolute; inset: 0; perspective: 1600px; }
.desk__book {
  position: absolute; width: var(--w, 30%); left: var(--x); top: var(--y);
  transform: rotate(var(--r)); transform-origin: 50% 60%;
}
.desk__book button { all: unset; display: block; cursor: pointer; width: 100%; position: relative; }
.desk__book--live img { box-shadow: 0 2px 4px rgba(21,33,28,.08), 0 18px 40px -10px rgba(21,33,28,.28), 0 50px 90px -30px rgba(21,33,28,.3); }
.desk__tag {
  position: absolute; top: -11px; right: -8px; z-index: 1; transform: rotate(4deg);
  background: var(--green); color: var(--cream); padding: 7px 11px; border-radius: 999px;
  font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(21, 33, 28, .5);
}
.hero__news {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 24px;
  padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; font-size: 14.5px; line-height: 1.3; transition: border-color .3s;
}
.hero__news:hover { border-color: var(--green); }
.hero__news b { flex: none; background: var(--green); color: var(--cream); padding: 6px 10px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.hero__news i { flex: none; font-style: normal; color: var(--green); transition: transform .4s var(--ease); }
.hero__news:hover i { transform: translateX(4px); }
.desk__book img { width: 100%; aspect-ratio: 1250 / 1769; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-page); background: var(--paper); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.desk__book button:hover img, .desk__book button:focus-visible img { transform: translateY(-10px) rotate(-1.5deg) scale(1.03); box-shadow: 0 2px 4px rgba(21,33,28,.08), 0 30px 60px -10px rgba(21,33,28,.3); }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1.5px solid rgba(21, 33, 28, .35); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Belief ---------- */
.belief { position: relative; background: var(--cream); }
.belief__pin { min-height: 100vh; display: grid; place-items: center; padding: 120px var(--gutter); position: relative; overflow: hidden; }
.belief__text { font: 400 clamp(34px, 5.2vw, 78px)/1.1 var(--serif); letter-spacing: -.02em; max-width: 19ch; text-align: center; }
.belief__text em { font-style: italic; }
.belief__text .w { display: inline; }
.belief__end { display: none; }
.js .belief__end {
  display: grid; position: absolute; inset: 0; place-content: center; justify-items: center; text-align: center;
  padding: 0 var(--gutter); background: var(--green); color: var(--cream);
  clip-path: circle(0% at 50% 50%);
}
.belief__end .eyebrow { margin-bottom: 14px; }
.venn { width: clamp(120px, 14vw, 180px); height: auto; margin-bottom: 30px; overflow: visible; }
.belief__title { font-size: clamp(40px, 6vw, 92px); max-width: 14ch; margin-bottom: 26px; color: var(--cream); }
.belief__body { max-width: 38em; color: rgba(252, 250, 246, .82); font-size: clamp(16px, 1.3vw, 19px); margin-bottom: 28px; }
.belief__end .signoff { color: var(--cream); }
html:not(.js) .belief__end, .no-motion .belief__end { display: grid; position: static; clip-path: none; justify-items: center; text-align: center; padding: 90px var(--gutter); background: var(--green); color: var(--cream); }

/* ---------- How ---------- */
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; counter-reset: x; }
.how__card { border-radius: var(--radius); padding: clamp(28px, 3vw, 44px); min-height: 340px; display: flex; flex-direction: column; }
.how__num { font: 400 64px/1 var(--serif); color: var(--green); margin-bottom: auto; padding-bottom: 40px; }
.how__card h3 { font-size: 30px; margin-bottom: 12px; }
.how__card p { color: var(--ink-2); }

/* ---------- Finder ---------- */
.finder { position: relative; }
.finder__list { margin-top: 48px; border-top: 1px solid var(--line); }
.finder__item { border-bottom: 1px solid var(--line); }
.finder__item button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 20px;
  padding: clamp(18px, 2.2vw, 30px) 4px; position: relative;
}
.finder__item button::before { content: ''; position: absolute; inset: 0; background: var(--tint); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: -1; border-radius: 6px; }
.finder__item button:hover::before, .finder__item button:focus-visible::before { transform: scaleY(1); }
.finder__item { position: relative; z-index: 0; }
.finder__num { font: 500 13px/1 var(--sans); letter-spacing: .14em; color: var(--sage); }
.finder__line { font: 400 clamp(24px, 3.4vw, 50px)/1.1 var(--serif); letter-spacing: -.015em; transition: transform .55s var(--ease); }
.finder__item button:hover .finder__line { transform: translateX(14px); }
.finder__book { font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--green); display: flex; align-items: center; gap: 10px; }
.finder__book i { font-style: normal; font-size: 20px; transition: transform .5s var(--ease); }
.finder__item button:hover .finder__book i { transform: translateX(6px); }
.finder__float { position: fixed; left: 0; top: 0; width: 210px; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(.8); }
.finder__float img { width: 100%; border-radius: 4px; box-shadow: var(--shadow-page); }

/* ---------- Collection ---------- */
.collection { position: relative; background: var(--paper); }
.collection__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 40px; overflow: hidden; }
.collection__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.collection__head .eyebrow { margin-bottom: 10px; }
.collection__head .h2 { max-width: 24ch; font-size: clamp(30px, 3.4vw, 52px); }
.collection__side { display: flex; align-items: center; gap: 24px; flex: none; }
.collection__progress { font: 500 14px/1 var(--sans); letter-spacing: .1em; color: var(--ink-2); display: grid; gap: 12px; justify-items: end; white-space: nowrap; }
.collection__progress #collection-count { color: var(--ink); }
.collection__arrows { display: flex; gap: 8px; }
.collection__arrows button, .pages__nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(21, 33, 28, .22); background: var(--paper);
  cursor: pointer; font-size: 18px; display: grid; place-items: center; transition: border-color .3s, background .3s, opacity .3s;
}
.collection__arrows button:hover:not(:disabled), .pages__nav button:hover:not(:disabled) { border-color: var(--ink); }
.collection__arrows button:disabled, .pages__nav button:disabled { opacity: .3; cursor: default; }
.collection__swipe { display: none; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.collection__dots { display: flex; }
.collection__dots button { all: unset; cursor: pointer; width: 26px; height: 32px; display: grid; place-items: center; }
.collection__dots button::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: rgba(21, 33, 28, .22); transition: width .4s var(--ease), background .3s; }
.collection__dots button[aria-current="true"]::before { width: 22px; background: var(--green); }
.collection__dots button:focus-visible { outline: 2px solid var(--green); border-radius: 6px; }
.collection__hint { font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; transition: opacity .5s; }
.collection__hint span { display: inline-block; animation: nudge 1.6s var(--ease) infinite; }
.collection__track.is-swiped + .collection__swipe .collection__hint { opacity: 0; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(6px); } }
.collection__progress i { display: block; width: 160px; height: 2px; background: var(--line); }
.collection__progress b { display: block; height: 100%; width: 12.5%; background: var(--green); transition: width .2s; }
.collection__track { display: flex; gap: 24px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.panel {
  width: min(74vw, 1000px); flex: none; border-radius: 28px; padding: clamp(22px, 2.6vw, 40px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 3.4vw, 56px); align-items: center;
  background: var(--tint);
}
/* Wide screens: the pinned shelf has to fit one screen, buttons included */
@media (min-width: 901px) {
  .js:not(.no-motion) .collection__pin { height: 100vh; min-height: 0; padding: 88px 0 28px; }
  .panel__cover img { height: min(calc(100vh - 330px), 560px); width: auto; }
  .panel h3 { font-size: clamp(30px, 3vw, 46px); }
  .panel .parts li { padding: 9px 0; }
}
@media (min-width: 901px) and (max-height: 920px) {
  .collection__head { margin-bottom: 18px; }
  .collection__head .h2 { font-size: clamp(26px, 2.8vw, 42px); }
  .panel { padding: 24px 32px; }
  .panel__intro { display: none; }
  .panel h3 { font-size: clamp(28px, 2.6vw, 40px); margin-bottom: 8px; }
  .panel__num { margin-bottom: 10px; }
  .panel__tagline { margin-bottom: 14px; }
  .parts { margin-bottom: 18px; }
  .panel .parts li { padding: 7px 0; }
  .panel__meta { margin-top: 10px; }
}
@media (min-width: 901px) and (max-height: 780px) {
  .collection__head .eyebrow, .parts small, .panel__meta { display: none; }
  .js:not(.no-motion) .collection__pin { padding-top: 80px; }
  .panel__cover img { height: calc(100vh - 270px); }
}
@media (min-width: 901px) and (max-height: 620px) {
  .parts { display: none; }
}
.panel__cover { position: relative; perspective: 1400px; }
.panel__cover button { all: unset; cursor: pointer; display: block; }
.panel__cover img { width: 100%; aspect-ratio: 1250 / 1769; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-page); transform: rotate(-2deg); transition: transform .7s var(--ease); }
.panel__cover button:hover img { transform: rotate(0deg) translateY(-8px) scale(1.02); }
.panel__num { font: 500 13px/1 var(--sans); letter-spacing: .16em; color: var(--green); margin-bottom: 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .7); font: 600 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.pill--live { background: var(--green); color: var(--cream); }
.panel h3 { font-size: clamp(34px, 3.6vw, 56px); margin-bottom: 14px; }
.panel__tagline { font: italic 400 clamp(19px, 1.6vw, 24px)/1.3 var(--serif); color: var(--green); margin-bottom: 14px; }
.panel__intro { color: var(--ink-2); margin-bottom: 22px; font-size: 16px; }
.parts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; margin-bottom: 26px; border-top: 1px solid rgba(21, 33, 28, .14); }
.parts li { padding: 12px 0; border-bottom: 1px solid rgba(21, 33, 28, .14); }
.parts b { display: block; font: 600 11px/1 var(--sans); letter-spacing: .14em; color: var(--green); margin-bottom: 6px; text-transform: uppercase; }
.parts span { font: 500 18px/1.2 var(--serif); }
.parts small { display: block; color: var(--ink-2); font-size: 13.5px; }
.panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.panel__meta { font-size: 13.5px; color: var(--ink-2); margin-top: 16px; }

/* ---------- Photo moment ---------- */
.photo-moment { position: relative; height: 100vh; overflow: hidden; background: var(--paper); }
.photo-moment__frame { margin: 0; position: absolute; inset: 0; clip-path: inset(14% 18% round 28px); }
.photo-moment__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transform: scale(1.18); transform-origin: 50% 0%; }

/* ---------- Inside: flip book ---------- */
.inside { background: var(--cream); }
.inside__pin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 3vw; align-items: center; padding: 110px var(--gutter) 60px; max-width: 1600px; margin: 0 auto; }
.inside .h2 { font-size: clamp(32px, 3.6vw, 54px); margin-bottom: 30px; }
.inside__steps { border-top: 1px solid var(--line); margin-bottom: 22px; }
.inside__steps li { display: grid; grid-template-columns: 40px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); opacity: .38; transition: opacity .5s, transform .5s var(--ease); }
.inside__steps li.is-on { opacity: 1; transform: translateX(8px); }
.inside__steps b { font: 600 12px/1.9 var(--sans); letter-spacing: .1em; color: var(--green); grid-row: span 2; }
.inside__steps span { font: 500 22px/1.2 var(--serif); }
.inside__steps small { color: var(--ink-2); font-size: 14px; }
.inside__meta { font-size: 14px; color: var(--ink-2); margin-bottom: 22px; }
.book-stage { position: relative; display: grid; place-items: center; }
.book { --pw: min(25vw, 50vh, 400px); position: relative; width: calc(var(--pw) * 2); height: calc(var(--pw) * 1.415); perspective: 2600px; }
.leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; }
.leaf__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--paper); overflow: hidden; }
.leaf__face img { width: 100%; height: 100%; object-fit: cover; }
.leaf__face--front { border-radius: 2px 6px 6px 2px; box-shadow: var(--shadow-page); }
.leaf__face--back { transform: rotateY(180deg); border-radius: 6px 2px 2px 6px; box-shadow: var(--shadow-page); }
.leaf__face::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.leaf__face--front::after { background: linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,0) 7%); }
.leaf__face--back::after { background: linear-gradient(270deg, rgba(0,0,0,.10), rgba(0,0,0,0) 7%); }
.leaf__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,33,28,.0), rgba(21,33,28,.22)); opacity: 0; pointer-events: none; backface-visibility: hidden; }
.book-hint { margin-top: 64px; font: 600 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--sage); }
.book-static { display: none; }

/* ---------- Deck ---------- */
.deck { background: var(--paper); }
.deck__wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.deck .h2 { font-size: clamp(34px, 4.4vw, 64px); max-width: 15ch; margin-bottom: 20px; }
.deck__lede { color: var(--ink-2); margin-bottom: 30px; max-width: 32em; }
.suits { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.suit { cursor: pointer; border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: 10px 16px; display: inline-flex; gap: 8px; align-items: center; font-size: 15px; transition: background .3s, border-color .3s; }
.suit i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--tint); }
.suit[aria-selected="true"] { background: var(--tint); border-color: transparent; }
.suit small { color: var(--ink-2); font-style: italic; font-family: var(--serif); font-size: 15px; }
.lines { border-top: 1px solid var(--line); }
.lines li button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 6px; border-bottom: 1px solid var(--line);
  font: italic 400 clamp(20px, 2vw, 27px)/1.25 var(--serif); color: var(--ink);
  transition: padding .45s var(--ease), background .3s;
}
.lines li button::after { content: '→'; font: 400 18px/1 var(--sans); color: var(--green); opacity: 0; transform: translateX(-8px); transition: .4s var(--ease); }
.lines li button:hover { padding-left: 16px; }
.lines li button:hover::after, .lines li button[aria-pressed="true"]::after { opacity: 1; transform: none; }
.lines li button[aria-pressed="true"] { background: var(--tint); padding-left: 16px; }
.deck__stage { position: sticky; top: 110px; display: grid; justify-items: center; }
.card3d { width: min(100%, 400px); aspect-ratio: 512 / 722; perspective: 1800px; }
.card3d__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.3, 1.3, .4, 1); }
.card3d.is-flipped .card3d__inner { transform: rotateY(180deg); }
.card3d__back, .card3d__front { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; box-shadow: 0 2px 4px rgba(21,33,28,.06), 0 30px 60px -20px rgba(21,33,28,.3); background: var(--paper); object-fit: cover; }
.card3d__front { transform: rotateY(180deg); }
.card3d.is-idle .card3d__inner { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(8deg) rotateX(-2deg) translateY(-10px); } }
.deck__after { text-align: center; margin-top: 26px; max-width: 400px; }
.deck__pulled { font: 400 19px/1.4 var(--serif); margin-bottom: 14px; min-height: 2.8em; }
.deck__buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- Free ---------- */
.free__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 52px; }
.free__head .h2 { max-width: 15ch; margin-bottom: 18px; }
.free__lede { color: var(--ink-2); max-width: 34em; }
.free__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
.free__item a { display: block; text-decoration: none; }
.free__thumb { position: relative; aspect-ratio: 1250 / 1769; margin-bottom: 16px; }
.free__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-page); transition: transform .6s var(--ease); background: var(--paper); }
.free__thumb img + img { transform: translate(10px, -10px) rotate(3deg); z-index: -1; }
.free__item a:hover .free__thumb img:first-child { transform: translateY(-8px) rotate(-1deg); }
.free__book { font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.free__title { font: 500 21px/1.15 var(--serif); }
.free__title span { color: var(--sage); }
.free__dl { display: inline-flex; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.free__item a:hover .free__dl { color: var(--green); }

/* ---------- Promise ---------- */
.promise { background: var(--paper); }
.promise__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 52px; }
.promise__grid li { display: flex; gap: 22px; padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--cream); }
.ico { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 20px; }
.promise__grid h3 { font-size: 27px; margin-bottom: 8px; }
.promise__grid p { color: var(--ink-2); }

/* ---------- Close ---------- */
.close { padding: clamp(110px, 16vw, 220px) 0; text-align: center; background: var(--cream); overflow: hidden; }
.close__inner { display: grid; justify-items: center; }
.close__mark { width: 120px; height: auto; margin-bottom: 36px; }
.close__title { font-size: clamp(38px, 6vw, 92px); max-width: 17ch; margin-bottom: 24px; }
.close__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(252, 250, 246, .78); padding: 64px 0 40px; font-size: 15px; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 28px 48px; align-items: start; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand b { display: block; font: 500 21px/1.2 var(--serif); color: var(--cream); }
.footer__brand em { color: var(--mint); font-family: var(--serif); }
.footer__links { display: grid; gap: 8px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--cream); }
.footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--cream); text-decoration: underline; }
.footer__copy { grid-column: 1 / -1; border-top: 1px solid rgba(252, 250, 246, .12); padding-top: 22px; font-size: 13.5px; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(21, 33, 28, .45); opacity: 0; transition: opacity .5s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(920px, 100%); background: var(--cream);
  overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform .7s var(--ease);
  outline: none;
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { position: fixed; top: 16px; right: 16px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--cream); font-size: 26px; line-height: 1; cursor: pointer; }
.drawer__hero { padding: 56px clamp(20px, 5vw, 64px) 40px; background: var(--tint); display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; }
.drawer__hero img { border-radius: 4px; box-shadow: var(--shadow-page); }
.drawer__hero h2 { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 12px; }
.drawer__body { padding: 40px clamp(20px, 5vw, 64px) 64px; }
.drawer__welcome { font: 500 clamp(26px, 3vw, 36px)/1.1 var(--serif); margin-bottom: 14px; }
.drawer__welcome span { color: var(--sage); display: block; }
.drawer__intro { color: var(--ink-2); max-width: 40em; margin-bottom: 32px; }
.drawer h4 { font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin: 40px 0 16px; }
.pages { position: relative; }
.pages__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 2px 18px; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.pages__track::-webkit-scrollbar { display: none; }
.pages__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.pages__track figure { margin: 0; flex: 0 0 min(300px, 68%); scroll-snap-align: start; }
.pages__bar { display: flex; align-items: center; gap: 20px; }
.pages__range { flex: 1; min-width: 0; height: 32px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.pages__range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--green), var(--green)) 0 0 / var(--p, 0%) 100% no-repeat, rgba(21, 33, 28, .14); }
.pages__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--green); box-shadow: 0 2px 8px rgba(21, 33, 28, .2); }
.pages__range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(21, 33, 28, .14); }
.pages__range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--green); }
.pages__range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--green); }
.pages__range:focus-visible { outline: none; }
.pages__range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--green); outline-offset: 3px; }
.pages__track img { width: 100%; aspect-ratio: 1250 / 1769; object-fit: cover; border-radius: 4px; box-shadow: 0 1px 2px rgba(21,33,28,.06), 0 10px 26px -10px rgba(21,33,28,.25); background: var(--paper); }
.pages__track figcaption { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.pages__nav { display: flex; gap: 8px; flex: none; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photos img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photos img:first-child { grid-column: 1 / -1; }
.drawer__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.drawer__note { font-size: 14px; color: var(--ink-2); margin-top: 14px; }

/* ---------- About, contact and legal pages ---------- */
.doc-page .nav { position: sticky; }
.doc { max-width: 760px; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(72px, 10vw, 128px); }
.doc h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 20px; }
.doc h2 { font-size: clamp(24px, 3vw, 32px); margin: 44px 0 12px; }
.doc p, .doc ul { margin-bottom: 16px; color: var(--ink-2); }
.doc ul { list-style: disc; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--green); }
.doc__lede { font: 400 clamp(20px, 2vw, 24px)/1.45 var(--serif); color: var(--ink) !important; margin-bottom: 28px !important; }
.doc__updated { font-size: 14px; margin-bottom: 18px !important; }
.doc .signoff { margin-top: 32px; }
.doc__contact { display: grid; gap: 12px; margin: 0 0 16px; }
.doc__contact div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.doc__contact dt { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.doc__contact dd { margin: 0; font-size: 18px; }
@media (max-width: 760px) { .doc__back { display: none; } }

/* ---------- Reveal defaults (JS sets the start state) ---------- */
.js [data-reveal], .js [data-card] { will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav { background: rgba(252, 250, 246, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
  .hero { padding-top: 100px; }
  .hero__desk { height: min(70vh, 620px); }
  .inside__pin { grid-template-columns: 1fr; padding-top: 84px; gap: 22px; align-content: center; }
  .inside .h2 { font-size: clamp(26px, 6.4vw, 40px); margin-bottom: 18px; }
  .inside__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border: 0; margin-bottom: 0; }
  .inside__steps li { display: block; padding: 8px 0 0; border: 0; border-top: 2px solid var(--line); }
  .inside__steps li.is-on { transform: none; border-top-color: var(--green); }
  .inside__steps span { font-size: 15px; display: block; }
  .inside__steps small, .inside__steps b, .inside__meta, .inside__copy > .btn { display: none; }
  .book-hint { margin-top: 36px; }
  .book { --pw: min(42vw, 300px); }
  .deck__wrap { grid-template-columns: 1fr; }
  .deck__stage { position: relative; top: 0; order: -1; }
  .card3d { width: min(70vw, 340px); }
  .free__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 10px; min-height: auto; }
  .hero__desk { height: auto; aspect-ratio: 1 / 1.04; width: min(100%, 620px); order: -1; margin: 0 auto 7vw; }
  .scroll-cue { display: none; }
  .collection__pin { min-height: 0; padding: 90px 0 70px; }
  .collection__side { display: none; }
  .collection__head { margin-bottom: 14px; }
  .collection__swipe { order: 1; margin: 0 0 16px; }
  .collection__track { order: 2; }
  .collection__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding-bottom: 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .collection__track::-webkit-scrollbar { display: none; }
  .collection__swipe { display: flex; }
  .panel { width: 80vw; grid-template-columns: 1fr; scroll-snap-align: center; }
  .panel__cover { max-width: 230px; }
  .how__grid { grid-template-columns: 1fr; }
  .how__card { min-height: 0; }
  .how__num { padding-bottom: 22px; font-size: 52px; }
  .promise__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .drawer__hero { grid-template-columns: 120px 1fr; gap: 20px; padding-top: 72px; }
  .finder__item button { grid-template-columns: 1fr; gap: 8px; }
  .finder__num { display: none; }
  .finder__float { display: none; }
  .photo-moment { height: 70vh; }
}
/* Tablets in portrait: covers beside the text, and a smaller desk so the headline shows */
@media (min-width: 901px) and (max-width: 1080px) {
  .js:not(.no-motion) .collection__pin { padding-top: 96px; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .hero__desk { width: min(78%, 560px); }
  .panel { width: 82vw; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); align-items: start; }
  .panel__cover { max-width: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { height: 64px; }
  .mobile-menu { inset: 64px 0 auto 0; }
  .nav__cta { display: none; }
  .nav__menu { display: block; }
  .nav__name { font-size: 19px; }
  .hero { padding-top: 84px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .panel { width: 78vw; padding: 22px; border-radius: 22px; gap: 22px; }
  .panel__cover { max-width: 170px; }
  .panel__intro, .panel .parts small, .panel__meta { display: none; }
  .panel .parts { grid-template-columns: 1fr 1fr; }
  .panel .parts span { font-size: 16px; }
  .panel h3 { font-size: 34px; }
  .hero__news { font-size: 13.5px; }
  .desk__tag { font-size: 8.5px; padding: 5px 7px; top: -8px; right: -5px; letter-spacing: .1em; }
  .parts { grid-template-columns: 1fr; }
  .free__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .free__title { font-size: 17px; }
  .free__all { width: 100%; justify-content: center; }
  .promise__grid li { padding: 24px; gap: 16px; }
  .book { --pw: 44vw; }
  .photos { grid-template-columns: 1fr; }
  .drawer__hero { grid-template-columns: 1fr; }
  .drawer__hero img { width: 140px; }
}

/* Reduced motion: no pinning, no smooth scroll, everything readable as a normal page */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.no-motion .belief__pin { min-height: 0; }
.no-motion .collection__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; }
.no-motion .panel { scroll-snap-align: center; }
.no-motion .collection__swipe { display: flex; }
.no-motion .collection__side { display: none; }
.no-motion .collection__swipe { order: 1; margin: 0 0 16px; }
.no-motion .collection__track { order: 2; }
.no-motion .photo-moment__frame { clip-path: none; }
.no-motion .photo-moment__frame img { transform: none; }
.no-motion .book, .no-motion .book-hint { display: none; }
.no-motion .book-static { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; width: 100%; }
.no-motion .book-static img { flex: none; width: min(240px, 62vw); scroll-snap-align: start; border-radius: 4px; box-shadow: var(--shadow-page); }
.no-motion .inside__steps li { opacity: 1; transform: none; }
