@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
:root {
  --paper: #f4e7cf;   /* replaced at runtime with the artwork's own paper colour */
  --water: #3f6272;   /* replaced at runtime with the artwork's water colour */
  --deep: color-mix(in srgb, var(--water) 52%, #0b1a22);
  --ink: #2b2925;
  --ink-soft: #6f675c;
  --indigo: #46597a;
  --on-water: #f6f0e3;
  --line: rgba(246, 240, 227, .18);
  --serif: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 40px; font-variant-numeric: lining-nums; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
em { font-style: italic; }

/* ---- Header ---- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: max(20px, env(safe-area-inset-top)) clamp(20px, 4vw, 48px) 20px; color: var(--ink);
}
.mark { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: .14em; }
.bar nav, .foot nav { display: flex; gap: clamp(18px, 3vw, 34px); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.bar nav a, .foot nav a { opacity: .72; transition: opacity .3s; }
.bar nav a:hover, .foot nav a:hover { opacity: 1; }
body.home .bar { position: fixed; transition: color .5s var(--ease), background-color .5s var(--ease), padding .5s var(--ease); }
body.home .bar.solid {
  color: var(--on-water); padding-top: max(13px, env(safe-area-inset-top)); padding-bottom: 13px;
  background: color-mix(in srgb, var(--deep) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}

/* ---- Shared small type ---- */
.eyebrow { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; opacity: .7; }
.pill {
  display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 999px; background: var(--ink); color: var(--paper);
}

/* ---- Scroll-driven bloom ---- */
.bloom { height: 340vh; position: relative; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); contain: layout paint; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.ready #stage { opacity: 1; }
.loader { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); opacity: .35; transform: scaleX(0); transform-origin: left; transition: transform .3s linear, opacity .6s .2s; z-index: 3; }
.loader.done { opacity: 0; }
.lines { position: absolute; inset: 0; pointer-events: none; }
.line {
  position: absolute; left: 0; right: 0; top: 15vh; margin: 0; padding: 0 24px; text-align: center;
  font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -.01em; color: var(--ink);
  opacity: 0; visibility: hidden; will-change: opacity, transform;
}
.line.final { top: 9vh; }
.line.final .eyebrow { font-family: var(--sans); margin-bottom: 1vh; }
.line.final h1 { font-size: clamp(64px, min(12vw, 14vh), 168px); font-weight: 400; letter-spacing: .1em; margin-right: -.1em; line-height: 1; }
/* The call to action sits on the water so nothing covers the open flower. */
.line.cta { top: auto; bottom: 0; padding: 14vh 24px max(30px, env(safe-area-inset-bottom)); color: var(--on-water); background: linear-gradient(transparent, color-mix(in srgb, var(--water) 88%, transparent) 62%); }
.line.cta .tag { margin-bottom: 18px; font-size: clamp(21px, 2.4vw, 30px); font-style: italic; }
.line.cta .pill { font-family: var(--sans); background: var(--on-water); color: #14242c; pointer-events: auto; }
a.pill { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
a.pill:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(4, 14, 20, .7); }
.hint {
  position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--on-water); opacity: .85; transition: opacity .6s;
  pointer-events: none;
}
.hint::after { content: ""; display: block; width: 1px; height: 30px; margin: 10px auto 0; background: currentColor; animation: drop 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes drop { 0%, 100% { transform: scaleY(.2); opacity: .3; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---- Below the surface ---- */
.below { background: linear-gradient(var(--water), var(--deep) 46%); color: var(--on-water); position: relative; z-index: 2; }
.below > section { max-width: 1120px; margin: 0 auto; padding-left: clamp(22px, 5vw, 56px); padding-right: clamp(22px, 5vw, 56px); }

.statement { text-align: center; padding-top: clamp(110px, 20vh, 220px); padding-bottom: clamp(70px, 12vh, 140px); max-width: 900px !important; }
.statement h2 { font-size: clamp(42px, 6.6vw, 92px); line-height: 1.04; font-weight: 400; margin: 22px 0 30px; letter-spacing: -.015em; }
.statement p:last-child { font-size: clamp(17px, 1.5vw, 20px); opacity: .8; max-width: 600px; margin: 0 auto; }

.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 7vw, 110px); padding-top: clamp(50px, 9vh, 110px); padding-bottom: clamp(50px, 9vh, 110px); }
.feature.flip .phone { order: 2; }
.phone {
  justify-self: center; width: min(100%, 320px); padding: 9px; border-radius: 50px; background: #10161a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09) inset, 0 50px 90px -40px rgba(4, 14, 20, .85), 0 18px 36px -18px rgba(4, 14, 20, .6);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 41px; }
.copy { max-width: 440px; }
.feature.flip .copy { justify-self: end; }
.num { font-family: var(--serif); font-size: 20px; font-style: italic; opacity: .6; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.copy h3 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.08; font-weight: 400; margin-bottom: 18px; }
.copy p:last-child { font-size: 17px; opacity: .8; }

.practices { padding-top: clamp(90px, 16vh, 180px); padding-bottom: clamp(70px, 12vh, 140px); }
.practices .head { max-width: 640px; margin-bottom: clamp(36px, 6vh, 70px); }
.practices h2 { font-size: clamp(36px, 4.8vw, 66px); line-height: 1.06; font-weight: 400; margin-top: 20px; }
.practices ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.practices li { display: grid; grid-template-columns: 70px minmax(150px, 1fr) 2fr; align-items: baseline; gap: 20px; padding: clamp(22px, 3.4vh, 36px) 0; border-bottom: 1px solid var(--line); }
.practices .n { font-family: var(--serif); font-style: italic; font-size: 18px; opacity: .55; }
.practices li h3 { font-size: clamp(28px, 3vw, 42px); font-weight: 400; }
.practices li p { font-size: 17px; opacity: .8; max-width: 520px; }

.quiet { text-align: center; padding-top: clamp(60px, 10vh, 120px); padding-bottom: clamp(70px, 12vh, 140px); }
.quiet h2 { font-size: clamp(36px, 4.8vw, 66px); font-weight: 400; margin-bottom: clamp(34px, 6vh, 64px); }
.quiet ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quiet li { padding: clamp(26px, 4vh, 44px) 18px; }
.quiet li + li { border-left: 1px solid var(--line); }
.quiet strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 6px; }
.quiet span { font-size: 15px; opacity: .72; }

.close { text-align: center; padding-top: clamp(60px, 10vh, 120px); padding-bottom: clamp(100px, 18vh, 200px); }
.close .icon { width: 88px; height: 88px; border-radius: 21px; box-shadow: 0 24px 44px -20px rgba(4, 14, 20, .8); margin-bottom: 30px; }
.close h2 { font-size: clamp(46px, 7vw, 104px); line-height: 1.02; font-weight: 400; letter-spacing: -.015em; }
.close > p { margin: 24px auto 0; font-size: clamp(17px, 1.5vw, 20px); opacity: .8; max-width: 520px; }
.plan { margin: clamp(34px, 6vh, 56px) auto 30px; padding: 30px 40px; max-width: 380px; border: 1px solid var(--line); border-radius: 22px; background: rgba(246, 240, 227, .05); }
.plan .amount { font-family: var(--serif); font-size: clamp(44px, 5vw, 60px); line-height: 1; }
.plan .amount span { font-family: var(--sans); font-size: 14px; letter-spacing: .08em; opacity: .7; }
.plan .terms { margin-top: 12px; font-size: 15px; opacity: .75; }
.close .pill { background: var(--on-water); color: #14242c; }

.foot {
  background: var(--deep); color: var(--on-water); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 28px clamp(20px, 4vw, 48px) max(28px, env(safe-area-inset-bottom)); font-size: 13px; border-top: 1px solid var(--line); position: relative; z-index: 2;
}
.foot > span { opacity: .6; }

/* ---- Reveal ---- */
[data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.practices li:nth-child(2) { transition-delay: .08s; }
.practices li:nth-child(3) { transition-delay: .16s; }
.practices li:nth-child(4) { transition-delay: .24s; }

/* ---- Text pages (privacy, support) ---- */
.page { max-width: 720px; margin: 0 auto; padding: 140px 28px 90px; }
.page h1 { font-size: clamp(42px, 6vw, 68px); font-weight: 400; margin-bottom: 8px; }
.page h2 { font-size: 28px; margin: 44px 0 10px; }
.page p, .page li { font-size: 17px; color: #4a453e; }
.page p + p { margin-top: 14px; }
.page .date { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }
.page a { color: var(--indigo); text-decoration: underline; text-underline-offset: 4px; }
.page ul { padding-left: 22px; }
body.text .foot { background: transparent; color: var(--ink-soft); border-top-color: rgba(51, 48, 44, .15); }

@media (max-width: 820px) {
  .bar nav a[href^="#"] { display: none; }
  .bloom { height: 300vh; }
  .line { top: 16vh; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .feature.flip .phone { order: 0; }
  .phone { width: min(74%, 290px); }
  .copy, .feature.flip .copy { justify-self: center; }
  .practices li { grid-template-columns: 44px 1fr; }
  .practices li p { grid-column: 2; }
  .quiet ul { grid-template-columns: 1fr; }
  .quiet li + li { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .bloom { height: 100vh; height: 100svh; }
  .line { display: none; }
  .line.final, .line.cta { display: block; opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .hint { display: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
