/* Porch Full of Posies — site styles
   Tokens come from the Figma file (Posies — Grid to ritual). */
:root {
  --bg: #f2f1ec;
  --ink: #3f403c;
  --rule: #9b9a90;
  --muted: #89897d;
  --tile: #dad8d1;
  --warm: #e0dbd0;
  --sage: #6a6c62;
  --field: #f8f7f3;
  --dark-rule: #88897f;

  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "La Belle Aurore", cursive;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

  --pad: 48px;
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- Frame ---------- */
.page {
  max-width: var(--max);
  margin: 0 auto;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--bg);
  overflow: clip;
}
.rule-b { border-bottom: 1px solid var(--rule); }

/* ---------- Type ---------- */
.label { font-size: 11px; line-height: 1.25; letter-spacing: 1.8px; text-transform: uppercase; }
.serif { font-family: var(--serif); font-weight: 400; }
.light { font-weight: 300; }
.muted { color: var(--muted); }
.body { font-size: 16px; line-height: 1.45; }
.small { font-size: 15px; line-height: 1.45; }
.note { font-size: 12px; line-height: 1.45; color: var(--muted); }
.num { font-family: var(--serif); font-size: clamp(56px, 6.5vw, 94px); line-height: 1.02; color: var(--muted); }
.num.sm { font-size: clamp(48px, 5vw, 72px); }
.h-serif { font-family: var(--serif); font-weight: 400; line-height: 1; }
.script { font-family: var(--script); font-weight: 400; line-height: 1.15; }
.bold { font-weight: 700; }

/* ---------- Nav ---------- */
.nav {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.nav-logo { font-size: 11px; letter-spacing: 1.2px; line-height: 1.2; flex: 1; text-transform: uppercase; }
.nav-links { display: flex; gap: 72px; margin-right: 72px; }
.nav-links a { font-size: 13px; line-height: 1.2; position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 300ms var(--ease-out);
}
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover::after { transform: scaleX(1); }
}
.nav .btn { width: 208px; height: 50px; padding: 0 14px; font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ink); color: var(--bg);
  padding: 16px 24px; font-size: 14px; line-height: 1.45;
  border: 1px solid var(--ink); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn .arr { display: inline-block; transition: transform 300ms var(--ease-out); }
.btn:active { transform: scale(0.98); }
.btn.light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .arr { transform: translateX(4px); }
  .btn:hover .arr.ne { transform: translate(3px, -3px); }
  .btn:not(.light):not(.outline):hover { background: #2f302d; }
  .btn.outline:hover { background: var(--field); }
}
.link-bold { font-weight: 700; font-size: 15px; display: inline-flex; gap: 8px; }
.link-bold .arr { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-bold:hover .arr { transform: translate(3px, -3px); }
}

/* ---------- Masthead ---------- */
.mast {
  min-height: 190px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 0 48px 0 20px;
  border-bottom: 1px solid var(--rule);
}
.mast h1 {
  font-weight: 700; line-height: 1; white-space: nowrap;
  font-size: var(--mast, clamp(56px, 12.85vw, 185px));
  letter-spacing: -0.01em;
  /* optical: trim descender space so caps sit on the rule */
  margin-bottom: -0.12em;
  overflow: hidden;
}
.mast h1 > span { display: inline-block; }
.mast-side { width: 440px; flex-shrink: 0; padding-bottom: 34px; display: flex; flex-direction: column; gap: 14px; }
.mast-side .h-serif { font-size: clamp(30px, 3.05vw, 44px); }

/* ---------- Section heading ---------- */
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding: 46px 48px 40px;
  border-bottom: 1px solid var(--rule);
}
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 63px); line-height: 1; }
.sec-head p { max-width: 420px; font-size: 15px; }

/* ---------- Grids ---------- */
.cols { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); border-bottom: 1px solid var(--rule); }
.cols > * { border-right: 1px solid var(--rule); }
.cols > *:last-child { border-right: 0; }
.col { padding: 48px 48px 56px; display: flex; flex-direction: column; gap: 18px; }
.col h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.25vw, 32px); line-height: 1.02; }
:where(.col p) { font-size: 15px; }

/* ---------- Media + parallax ---------- */
.media { position: relative; overflow: hidden; background: var(--tile); }
.media > .mi { position: absolute; inset: 0; }
.media img {
  position: absolute; left: 0; top: -9%; width: 100%; height: 118%;
  object-fit: cover;
  will-change: transform;
}
.media.still img { top: 0; height: 100%; }

/* ---------- Closing + footer ---------- */
.closing {
  background: var(--ink); color: var(--bg);
  min-height: 280px; padding: 41px 48px 41px 43px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
}
.closing h2 { font-weight: 400; font-size: clamp(48px, 6.2vw, 89px); line-height: 1.1; }
.closing-cta { width: 362px; display: flex; flex-direction: column; gap: 32px; }
.closing-cta .btn { height: 53px; padding: 0 18px; }
.closing-cta .note { color: var(--bg); }

.foot {
  min-height: 220px; padding: 39px 45px 22px 45px;
  display: grid; grid-template-columns: 1fr 410px; grid-template-rows: 1fr auto; column-gap: 32px;
}
.foot-name { font-family: var(--serif); font-size: clamp(44px, 5.35vw, 77px); line-height: 1.02; }
.foot-links { padding-top: 10px; font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.foot-links span { display: flex; flex-wrap: wrap; gap: 0 14px; }
.foot-links span a + a::before { content: "/"; margin-right: 14px; }
.foot-links a { transition: opacity 200ms ease; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover, .foot-meta a:hover { opacity: 0.6; } }
.foot-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 11px; padding: 24px 3px 0; }
.foot-meta .r { width: 365px; display: flex; gap: 32px; }

/* ---------- Home ---------- */
.idx { display: grid; grid-template-columns: 1fr 1fr; height: 800px; border-bottom: 1px solid var(--rule); }
.idx-r { display: grid; grid-template-rows: 1fr 1fr; border-left: 1px solid var(--rule); }
.idx-lead { padding: 46px 48px; border-bottom: 1px solid var(--rule); font-weight: 300; font-size: clamp(38px, 4.5vw, 65px); line-height: 1.08; }
.idx-b { display: grid; grid-template-columns: 1fr 1fr; }
.sub-tile { background: var(--tile); padding: 36px 32px 32px; display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid var(--rule); transition: background-color 300ms ease; }
.sub-tile .h-serif { font-size: clamp(30px, 3vw, 43px); line-height: 1.02; }
@media (hover: hover) and (pointer: fine) { .sub-tile:hover { background: #d3d1c9; } }

.phil { display: grid; grid-template-columns: repeat(3, 1fr); height: 560px; border-bottom: 1px solid var(--rule); }
.phil-t { padding: 46px 48px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.phil-t h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.65vw, 67px); line-height: 1; }
.phil-t p { font-size: 16px; }
.phil .media { border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.phil-s { background: var(--sage); color: var(--bg); padding: 46px 48px; font-weight: 300; font-size: clamp(44px, 5.35vw, 77px); line-height: 1.08; display: flex; align-items: flex-end; }

.plan-rows { border-bottom: 1px solid var(--rule); }
.prow {
  display: grid; grid-template-columns: 120px minmax(0, 1.25fr) minmax(0, 1.25fr) 185px 200px 80px;
  align-items: center; min-height: 149px; border-bottom: 1px solid var(--rule);
  padding-left: 48px; position: relative; transition: background-color 300ms ease;
}
.prow:last-child { border-bottom: 0; }
.prow .num { font-size: clamp(44px, 4vw, 58px); }
.prow-name { font-family: var(--serif); font-size: clamp(32px, 3.1vw, 45px); line-height: 1; padding-right: 24px; }
.prow-desc { font-size: 15px; max-width: 320px; padding-right: 24px; }
.prow .media { height: 149px; align-self: stretch; }
.prow-price { padding-left: 32px; display: flex; flex-direction: column; gap: 4px; }
.prow-price b { font-weight: 300; font-size: clamp(28px, 2.45vw, 35px); line-height: 1; }
.prow-arr { font-size: 26px; text-align: center; transition: transform 300ms var(--ease-out); }
.prow.dark { background: var(--ink); color: var(--bg); }
.prow.dark .num { color: #a9a99e; }
.prow .tag { border: 1px solid currentColor; padding: 3px 8px; margin-left: 10px; vertical-align: middle; font-family: var(--sans); }
@media (hover: hover) and (pointer: fine) {
  .prow:not(.dark):hover { background: var(--field); }
  .prow:hover .prow-arr { transform: translate(4px, -4px); }
}

.notes { display: grid; grid-template-columns: 840fr 600fr; height: 560px; border-bottom: 1px solid var(--rule); }
.notes .media { overflow: hidden; }
.notes .script { position: absolute; left: 49%; top: 59%; color: var(--bg); font-size: clamp(36px, 4vw, 58px); transform: rotate(-5deg); white-space: nowrap; z-index: 2; text-shadow: 0 1px 18px rgba(40,40,36,.25); }
.notes-p { background: var(--warm); border-left: 1px solid var(--rule); padding: 56px 56px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.notes-p h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.5vw, 65px); line-height: 1; }

/* ---------- How it works ---------- */
.intro3 { display: grid; grid-template-columns: 560fr 540fr 340fr; min-height: 560px; border-bottom: 1px solid var(--rule); }
.intro3 .mid { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-left: 1px solid var(--rule); }
.intro3 .mid h2 { font-weight: 300; font-size: clamp(36px, 4vw, 58px); line-height: 1.08; }
.next-tile { background: var(--tile); border-left: 1px solid var(--rule); padding: 40px 32px; display: flex; flex-direction: column; gap: 20px; justify-content: space-between; }
.next-tile .h-serif { font-size: clamp(30px, 3vw, 43px); line-height: 1.02; }
.rhythm { --n: 4; }
.rhythm h3 { font-size: 30px; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--sage); color: var(--bg); border-bottom: 1px solid var(--rule); }
.promises > div { padding: 56px 48px; font-weight: 300; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; border-right: 1px solid var(--dark-rule); }
.promises > div:last-child { border-right: 0; }

/* ---------- Plans ---------- */
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.plan-card { display: flex; flex-direction: column; }
.plan-card + .plan-card { border-left: 1px solid var(--rule); }
.plan-card .media { height: 440px; }
.plan-card .pc-body { padding: 40px 48px 48px; display: flex; flex-direction: column; gap: 24px; flex: 1; }
.plan-card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 3.6vw, 52px); line-height: 1; }
.price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.price b { font-weight: 300; font-size: clamp(48px, 4.5vw, 65px); line-height: 1; }
.plan-card ul li { border-top: 1px solid var(--rule); padding: 12px 0; font-size: 15px; }
.plan-card ul li::before { content: "— "; }
.plan-card .btn { margin-top: auto; }
.plan-card.dark { background: var(--ink); color: var(--bg); }
.plan-card.dark ul li { border-color: var(--dark-rule); }
.plan-card .tag { border: 1px solid currentColor; padding: 3px 8px; margin-left: 12px; }
.trust { --n: 3; }
.trust .col { padding: 32px 48px; gap: 10px; }
.trust .h-serif { font-size: 26px; line-height: 1.1; }

.join { display: grid; grid-template-columns: 520px 1fr; border-bottom: 1px solid var(--rule); scroll-margin-top: 0; }
.join-l { padding: 56px 48px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 28px; }
.join-l h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.4vw, 63px); line-height: 1; }
.month-box { background: var(--warm); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.join-r { padding: 56px; display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input {
  background: var(--field); border: 1px solid var(--rule); height: 54px; padding: 0 18px;
  font-size: 15px; width: 100%; border-radius: 0; appearance: none;
  transition: border-color 200ms ease, background-color 200ms ease;
}
textarea.input { height: 110px; padding: 16px 18px; resize: vertical; }
textarea.input.tall { height: 180px; }
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--ink); background: #fff; }
.seg { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 16px 18px; font-size: 15px; background: var(--field);
  border: 1px solid var(--rule); margin-left: -1px;
  transition: background-color 260ms var(--ease-out), color 260ms var(--ease-out);
}
.seg label:first-child span { margin-left: 0; }
.seg span small { font-size: 12px; opacity: 0.75; }
.seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.summary { background: var(--tile); padding: 20px 24px; font-size: 15px; }
.form-msg { font-size: 14px; background: var(--warm); padding: 16px 20px; display: none; }
.form-msg.show { display: block; }

/* ---------- This month ---------- */
.feature { display: grid; grid-template-columns: 760fr 680fr; min-height: 640px; border-bottom: 1px solid var(--rule); }
.feature-p { border-left: 1px solid var(--rule); padding: 56px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.feature-p h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(60px, 6.5vw, 94px); line-height: 0.96; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stems .srow { display: grid; grid-template-columns: 120px 560px 1fr; align-items: center; padding: 28px 48px; border-bottom: 1px solid var(--rule); }
.stems .srow .num { font-size: 44px; }
.stems .srow h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 40px); line-height: 1; }
.dates { background: var(--tile); }
.dates .col { gap: 10px; padding: 36px 48px 40px; }
.dates .h-serif { font-size: clamp(28px, 2.4vw, 34px); }
.past .col { padding: 0 0 40px; gap: 0; }
.past .media { height: 420px; }
.past .cap { padding: 24px 48px 0; display: flex; flex-direction: column; gap: 8px; }
.past .cap h3 { font-size: 32px; }

/* ---------- Pickup ---------- */
.intro2 { display: grid; grid-template-columns: 800fr 640fr; min-height: 600px; border-bottom: 1px solid var(--rule); }
.intro2 .txt { padding: 56px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.intro2 .txt h2 { font-weight: 300; font-size: clamp(40px, 4.5vw, 65px); line-height: 1.08; }
.intro2 .media { border-left: 1px solid var(--rule); }
.drow { display: grid; grid-template-columns: 160px 620px 1fr 220px; align-items: stretch; border-bottom: 1px solid var(--rule); }
.badge { background: var(--ink); color: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 0; min-height: 150px; }
.badge.sage { background: var(--sage); }
.badge .h-serif { font-size: clamp(44px, 4.5vw, 65px); }
.drow > div { padding: 0 48px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.drow > .badge { padding: 24px 0; }
.drow h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.1vw, 45px); line-height: 1; }
.drow .cal { border-left: 1px solid var(--rule); }

/* ---------- FAQ ---------- */
.faq-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 0; padding: 36px 48px; border-bottom: 1px solid var(--rule); align-items: start; }
.faq-row .num { font-size: 40px; }
.faq-row h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.05; padding-right: 48px; }
.wonder { background: var(--warm); display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 48px; border-bottom: 1px solid var(--rule); }
.wonder h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 63px); line-height: 1; }

/* ---------- About ---------- */
.meet { display: grid; grid-template-columns: 800fr 640fr; min-height: 620px; border-bottom: 1px solid var(--rule); position: relative; }
.meet-p { background: var(--warm); border-left: 1px solid var(--rule); padding: 64px 56px 56px; display: flex; flex-direction: column; gap: 28px; }
.meet-p h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.5vw, 65px); line-height: 1; }
.meet-p .script { font-size: 48px; line-height: 1; }
.meet > .script { position: absolute; left: 29%; top: 71%; color: var(--bg); font-size: clamp(36px, 4vw, 58px); z-index: 2; white-space: nowrap; text-shadow: 0 1px 18px rgba(40,40,36,.25); }
.quote { background: var(--sage); color: var(--bg); padding: 80px 48px; display: flex; flex-direction: column; gap: 28px; border-bottom: 1px solid var(--rule); }
.quote p.q { font-weight: 300; font-size: clamp(30px, 3.9vw, 56px); line-height: 1.18; max-width: 1100px; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); height: 420px; border-bottom: 1px solid var(--rule); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 560px 1fr; border-bottom: 1px solid var(--rule); }
.contact-l { border-right: 1px solid var(--rule); }
.contact-l > div { padding: 40px 48px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.contact-l > div:last-child { border-bottom: 0; }
.contact-l .h-serif { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.02; overflow-wrap: anywhere; }
.contact-r { padding: 56px; display: flex; flex-direction: column; gap: 28px; }
.contact-r h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.4vw, 63px); line-height: 1; }

/* ---------- Thanks ---------- */
.confirm { display: grid; grid-template-columns: 600px 1fr; border-bottom: 1px solid var(--rule); }
.confirm .media { min-height: 560px; }
.confirm-p { border-left: 1px solid var(--rule); padding: 56px; display: flex; flex-direction: column; gap: 28px; }
.confirm-p h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 5.55vw, 80px); line-height: 0.96; }
.sum-row { display: flex; gap: 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--rule); }
.sum-row:last-child { border-bottom: 1px solid var(--rule); }
.sum-row .label { width: 160px; flex-shrink: 0; }
.manage { background: var(--tile); display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 48px; border-bottom: 1px solid var(--rule); }
.manage h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 3.6vw, 52px); line-height: 1; }
.manage p { max-width: 440px; }
.manage .btn { width: 240px; }

/* ---------- Prose (privacy) ---------- */
.prose { padding: 56px 48px 72px; max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; margin-top: 18px; }

/* =====================================================
   Motion
   Reveal: fade + small rise, long soft ease-out.
   Parallax: JS sets --py on .media img, smoothed with lerp.
   ===================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 900ms var(--ease-soft) var(--d, 0ms),
    transform 1200ms var(--ease-out) var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* image frames: soft fade + settle from a slight zoom */
.js .media[data-reveal] { transform: none; }
.js .media[data-reveal] > .mi {
  transform: scale(1.06);
  transition: transform 1600ms var(--ease-out) var(--d, 0ms);
}
.js .media[data-reveal].is-in > .mi { transform: none; }

.media img { transform: translate3d(0, var(--py, 0px), 0); }

/* masthead: words rise out of a mask on load */
.js .mast h1 > span {
  transform: translate3d(0, 105%, 0);
  animation: rise 1100ms var(--ease-out) 80ms forwards;
}
.js .mast-side { opacity: 0; animation: fade-up 900ms var(--ease-soft) 380ms forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

/* handwritten script: wipes in left to right like it's being written */
.js [data-write] { clip-path: inset(0 100% 0 0); transition: clip-path 1800ms var(--ease-in-out) 400ms; }
.js [data-write].is-in { clip-path: inset(0 0 0 0); }

/* scroll-linked fade-out of the masthead as you move past it */
.mast { opacity: var(--out, 1); }

/* page-to-page cross-fade (supporting browsers) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 260ms var(--ease-soft) both; }
::view-transition-new(root) { animation: vt-in 520ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; transition: opacity 400ms ease var(--d, 0ms); }
  .js .media[data-reveal] > .mi { transform: none; transition: none; }
  .media img { transform: none !important; top: 0; height: 100%; }
  .js .mast h1 > span { transform: none; animation: none; }
  .js .mast-side { opacity: 1; animation: none; }
  .js [data-write] { clip-path: none; transition: none; }
  .mast { opacity: 1; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }
  .btn, .btn .arr, .prow-arr, .nav-links a::after { transition-duration: 0ms; }
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1180px) {
  .nav-links a { width: auto; }
  .nav-links { gap: 28px; margin-right: 28px; }
  .prow { grid-template-columns: 90px 1fr 1fr 150px 70px; }
  .prow .media { display: none; }
  .stems .srow { grid-template-columns: 100px 1fr 1fr; }
  .drow { grid-template-columns: 140px 1fr 1fr 200px; }
  .join { grid-template-columns: 420px 1fr; }
  .contact { grid-template-columns: 440px 1fr; }
  .confirm { grid-template-columns: 460px 1fr; }
}

@media (max-width: 900px) {
  :root { --pad: 24px; }
  .nav { height: auto; flex-wrap: wrap; padding: 16px 20px 0; gap: 12px; }
  .nav-logo { order: 1; }
  .nav .btn { order: 2; width: auto; height: 44px; gap: 10px; }
  .nav-links { order: 3; width: 100%; margin: 0; gap: 22px; overflow-x: auto; padding: 4px 0 12px; }
  .nav-links a { white-space: nowrap; }

  .mast { flex-direction: column; align-items: flex-start; padding: 36px 20px 24px; min-height: 0; gap: 18px; }
  .mast h1 { font-size: var(--mast-m, 17vw); margin-bottom: 0; white-space: normal; }
  .mast-side { width: 100%; padding-bottom: 0; }
  .mast-side .h-serif { font-size: 30px; }

  .sec-head { flex-direction: column; align-items: flex-start; padding: 36px 24px 28px; gap: 14px; }

  .cols, .rhythm, .promises, .trust { grid-template-columns: 1fr; }
  .cols > *, .promises > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .promises > div { border-color: var(--dark-rule); padding: 32px 24px; }
  .cols > *:last-child, .promises > div:last-child { border-bottom: 0; }
  .col { padding: 32px 24px 36px; }
  .trust .col { padding: 24px; }

  .closing { flex-direction: column; align-items: flex-start; padding: 40px 24px; }
  .closing-cta { width: 100%; gap: 16px; }
  .foot { grid-template-columns: 1fr; padding: 32px 24px 20px; gap: 24px; }
  .foot-meta { flex-direction: column; gap: 12px; padding: 0; }
  .foot-meta .r { width: auto; }

  .idx { grid-template-columns: 1fr; height: auto; }
  .idx > .media { height: 110vw; max-height: 620px; }
  .idx-r { border-left: 0; border-top: 1px solid var(--rule); }
  .idx-lead { padding: 32px 24px; }
  .idx-b { grid-template-columns: 1fr; }
  .idx-b .media { height: 90vw; max-height: 520px; }
  .sub-tile { border-left: 0; border-top: 1px solid var(--rule); gap: 24px; padding: 32px 24px; }

  .phil { grid-template-columns: 1fr; height: auto; }
  .phil-t { padding: 36px 24px; gap: 24px; }
  .phil .media { height: 100vw; max-height: 560px; border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .phil-s { padding: 36px 24px 44px; }

  .prow { grid-template-columns: 56px 1fr auto; grid-template-areas: "n name arr" "n desc desc" "n price price"; padding: 24px; row-gap: 10px; }
  .prow .num { grid-area: n; font-size: 36px; align-self: start; }
  .prow-name { grid-area: name; }
  .prow-desc { grid-area: desc; }
  .prow-price { grid-area: price; padding-left: 0; flex-direction: row; align-items: baseline; gap: 10px; }
  .prow-arr { grid-area: arr; }

  .notes { grid-template-columns: 1fr; height: auto; }
  .notes .media { height: 100vw; max-height: 560px; }
  .notes .script { left: 8%; top: 68%; }
  .notes-p { border-left: 0; border-top: 1px solid var(--rule); padding: 36px 24px; }

  .intro3, .intro2, .feature, .meet, .confirm, .join, .contact, .plan-pick { grid-template-columns: 1fr; }
  .intro3 > .media, .intro2 > .media, .feature > .media, .meet > .media, .confirm > .media { height: 100vw; max-height: 560px; min-height: 0; }
  .intro3 .mid, .intro2 .txt, .feature-p, .meet-p, .confirm-p { border-left: 0; border-top: 1px solid var(--rule); padding: 36px 24px; }
  .intro2 .media { border-left: 0; border-top: 1px solid var(--rule); }
  .next-tile { border-left: 0; border-top: 1px solid var(--rule); padding: 32px 24px; }
  .meet > .script { left: 8%; top: 44vw; }

  .plan-card + .plan-card { border-left: 0; border-top: 1px solid var(--rule); }
  .plan-card .media { height: 90vw; max-height: 440px; }
  .plan-card .pc-body { padding: 32px 24px 36px; }
  .join-l { border-right: 0; border-bottom: 1px solid var(--rule); padding: 36px 24px; }
  .join-r, .contact-r { padding: 32px 24px 40px; }
  .row2 { grid-template-columns: 1fr; }
  .seg.four { grid-template-columns: 1fr 1fr; }
  .seg.four span { margin-left: -1px; margin-top: -1px; }

  .stems .srow { grid-template-columns: 56px 1fr; padding: 24px; row-gap: 8px; }
  .stems .srow .num { font-size: 32px; grid-row: span 2; }
  .past .media { height: 90vw; max-height: 420px; }
  .past .cap { padding: 20px 24px 0; }

  .drow { grid-template-columns: 110px 1fr; }
  .drow > div { padding: 20px 24px; }
  .drow > .badge { grid-row: span 3; padding: 20px 0; min-height: 0; }
  .drow .cal { border-left: 0; border-top: 1px solid var(--rule); }

  .faq-row { grid-template-columns: 56px 1fr; padding: 28px 24px; row-gap: 12px; }
  .faq-row .num { font-size: 32px; grid-row: span 2; }
  .faq-row h2 { padding-right: 0; }
  .wonder, .manage { flex-direction: column; align-items: flex-start; padding: 36px 24px; }
  .manage .btn { width: 100%; }

  .quote { padding: 48px 24px; }
  .strip { grid-template-columns: 1fr; height: auto; }
  .strip .media { height: 90vw; max-height: 420px; border-bottom: 1px solid var(--rule); }
  .strip .media:last-child { border-bottom: 0; }

  .contact-l { border-right: 0; border-bottom: 1px solid var(--rule); }
  .contact-l > div { padding: 28px 24px; }
  .sum-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sum-row .label { width: auto; }
  .prose { padding: 36px 24px 56px; }
}
