/* ==========================================================================
   Déjà Well — deja.css
   Palette and type lifted from the brand. Structure lifted from the app's
   Today-screen date dial: the whole site is a measuring instrument.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Brand palette — exact values sampled from dejawell.com */
  --bone:      #E7E4DF;
  --bone-lift: #EFEDE9;   /* one step up, for the band behind the app shot   */
  --ink:       #202020;
  --bronze:      #887A60;   /* brand bronze — rules, the dial marker         */
  --bronze-text: #70644F;   /* the same hue, dark enough for text on bone    */
  --bronze-lift: #A9997A;   /* and light enough for text on the dark bands   */
  --deep:      #16150F;   /* full-bleed photo bands                          */

  --rule:      rgba(32, 32, 32, 0.16);
  --rule-firm: rgba(32, 32, 32, 0.42);
  --rule-bone: rgba(231, 228, 223, 0.24);

  /* Typefaces. Swap these two lines for a Typekit kit and the site is on
     real Hatton + Acumin Pro Wide with no other change. */
  --font-display: "Bodoni Moda", "Hatton", "Bodoni 72", Didot, Georgia, serif;
  --font-text:    "Archivo", "acumin-pro-wide", "Helvetica Neue", Arial, sans-serif;

  /* Wide-grotesk stand-in for Acumin Pro Wide */
  --wide: 118;

  /* Bodoni Moda's optical-size axis, matched to how big the type actually
     renders. High opsz draws hairline serifs — right at 78px, illegible at
     36px. Low opsz thickens the thin strokes, which is also closer to
     Hatton's more moderate contrast. Light-on-dark needs more weight again,
     because thin strokes get eaten by the background. */
  --opsz-hero:    40;   /* the one genuinely huge line          */
  --opsz-reverse: 40;   /* display type on photographs and ink  */
  --opsz-heading: 34;   /* section headings, 24-56px            */
  --opsz-inline:  26;   /* pull quotes, plate and retreat names */

  --step--2: 0.6875rem;                                     /* 11px labels   */
  --step--1: 0.8125rem;
  --step-0:  clamp(0.9375rem, 0.90rem + 0.16vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.05rem + 0.34vw, 1.375rem);
  --step-2:  clamp(1.5rem, 1.30rem + 0.90vw, 2.25rem);
  --step-3:  clamp(2rem, 1.55rem + 2.00vw, 3.5rem);
  /* Display sizes, by where they are used. Every one of these was a one-off
     clamp buried in a component rule until the audit; naming them is what
     stops the fifth component inventing a sixth size. */
  --display-hero:   clamp(2.5rem,  0.90rem + 4.3vw, 4.9rem);   /* the split hero  */
  --display-closer: clamp(2.25rem, 1.00rem + 3.6vw, 4.5rem);   /* the ink band    */
  --display-band:   clamp(2rem,    1.00rem + 4.0vw, 4.25rem);  /* over photographs */
  --display-page:   clamp(2rem,    1.00rem + 3.1vw, 3.75rem);  /* interior page heads */

  --gutter:  clamp(1.25rem, 4vw, 5.5rem);
  --measure: 34rem;
  --hair:    1px;          /* the only border weight. no radius anywhere.     */
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-text);
  font-variation-settings: "wdth" var(--wide);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.65;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* `overflow-x: hidden` on body turns body into a scroll container, which
   silently breaks window scroll events, position:sticky and scrollY.
   `clip` on the root suppresses sideways overflow without any of that. */
html { overflow-x: clip; }

img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--bronze-text); color: var(--bone); }

/* Focus is part of the design language: a bronze rule, never a browser halo. */
:focus-visible {
  outline: 2px solid var(--bronze-text);
  outline-offset: 4px;
}

/* Paper grain. Stops the flat bone reading as a rendered rectangle. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Type primitives ---------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-variation-settings: "opsz" var(--opsz-heading);
  font-weight: 500;
  font-size: var(--display-page);
  line-height: 0.94;
  letter-spacing: 0.035em;     /* the brand tracks display type open, not tight */
  text-wrap: balance;
}

.serif {
  font-family: var(--font-display);
  font-variation-settings: "opsz" var(--opsz-inline);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.label {
  font-family: var(--font-text);
  font-variation-settings: "wdth" var(--wide);
  font-weight: 500;
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.26em;      /* sampled from the live site                 */
  line-height: 1.4;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  letter-spacing: 0.03em;
  max-width: 30ch;
}

.prose p { max-width: var(--measure); line-height: 1.7; text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }

.num { font-variant-numeric: tabular-nums; }

/* --- Layout ------------------------------------------------------------- */
.wrap  { padding-inline: var(--gutter); }
.centre{ margin-inline: auto; max-width: 74rem; }
.narrow{ margin-inline: auto; max-width: 46rem; }

.stack-tight  { padding-block: clamp(2.5rem, 5vw, 4rem); }
.stack-normal { padding-block: clamp(3.5rem, 7vw, 6rem); }
.stack-wide   { padding-block: clamp(6rem, 15vw, 14rem); }

/* A section that opens with its own index rule needs far less air above it —
   the rule is the section break. */
:where(section, div):has(> .index-head) { padding-top: clamp(1.75rem, 3.5vw, 3rem); }

.dark { background: var(--deep); color: var(--bone); }
.dark .label { color: var(--bone); }

/* --- The cycle rule: the site's one structural device -------------------- */
/* 28 hairline ticks. Used as every section divider, and as the interactive
   dial in the method section. Directly lifted from the app's date picker. */
.rule-28 {
  height: 22px;
  width: 100%;
  /* Two layers: 28 day ticks, and a taller mark every seventh day. */
  background-image:
    linear-gradient(to right, var(--rule-firm) 0 var(--hair), transparent var(--hair)),
    linear-gradient(to right, var(--rule)      0 var(--hair), transparent var(--hair));
  background-size: calc(100% / 4) 100%, calc(100% / 28) 56%;
  background-position: left bottom, left bottom;
  background-repeat: repeat-x, repeat-x;
}
.dark .rule-28 {
  background-image:
    linear-gradient(to right, rgba(231,228,223,0.5) 0 var(--hair), transparent var(--hair)),
    linear-gradient(to right, var(--rule-bone)      0 var(--hair), transparent var(--hair));
}

/* The dial's ticks are real elements — they change height per phase. */
.dial-track .rule-28 { background: none; display: flex; align-items: center; height: 100%; }
.dial-track .tick { flex: 1 1 0; border-left: var(--hair) solid var(--rule); }
.dial-track .tick:last-child { border-right: var(--hair) solid var(--rule); }

/* Every numbered section opens with its index: a label and the day rule. */
.index-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.index-head .label { display: block; opacity: 0.65; margin-bottom: 0.7rem; }

/* --- Header ------------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 90;
  background: var(--bone);
  border-bottom: var(--hair) solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem var(--gutter);
  transition: padding 260ms ease;
}
.masthead .nav-left  { grid-column: 1; grid-row: 1; }
.masthead .mark      { grid-column: 2; grid-row: 1; justify-self: center; }
.masthead .nav-right { grid-column: 3; grid-row: 1; justify-self: end; }
.masthead .mark img { width: clamp(74px, 8vw, 104px); height: auto; transition: width 260ms ease; }
.masthead[data-condensed="true"] { padding-block: 0.5rem; }
.masthead[data-condensed="true"] .mark img { width: clamp(58px, 5.5vw, 72px); }

.nav-left  { display: flex; gap: clamp(1rem, 2vw, 2.25rem); }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-left a, .nav-right a {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 30px;           /* WCAG 2.2 target size, without bloating the bar */
  padding-block: 0.35rem;
}
.nav-left a::after, .nav-right a.underlined::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem;
  height: var(--hair); background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-left a:hover::after, .nav-left a:focus-visible::after,
.nav-right a.underlined:hover::after { transform: scaleX(1); }

/* Small screens: the mark and the download link share row one, and the
   section links drop to a hairline-ruled row underneath that collapses
   away once you start scrolling. */
@media (max-width: 860px) {
  .masthead {
    grid-template-columns: 1fr auto;
    row-gap: 0.7rem;
    padding-inline: 1.1rem;
  }
  .masthead .mark      { grid-column: 1; grid-row: 1; justify-self: start; }
  .masthead .nav-right { grid-column: 2; grid-row: 1; }
  .masthead .nav-left {
    grid-column: 1 / -1; grid-row: 2;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.7rem;
    border-top: var(--hair) solid var(--rule);
    font-size: 10px; letter-spacing: 0.16em;
    overflow-x: auto; scrollbar-width: none;
  }
  .masthead .nav-left::-webkit-scrollbar { display: none; }
  .masthead .nav-left a { white-space: nowrap; }
  .masthead[data-condensed="true"] .nav-left {
    display: none;
  }
}

/* --- Buttons ------------------------------------------------------------ */
/* One primary action anywhere on the page. Bordered, hard-edged, no shadow. */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-height: 48px;
  padding: 0.9rem 1.6rem;
  border: var(--hair) solid var(--ink);
  background: var(--ink); color: var(--bone);
  font-family: var(--font-text);
  font-variation-settings: "wdth" var(--wide);
  font-weight: 500; font-size: var(--step--2);
  text-transform: uppercase; letter-spacing: 0.26em;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.btn:hover { background: var(--bronze-text); border-color: var(--bronze-text); color: var(--bone); }
.btn .glyph { font-size: 1.05rem; letter-spacing: 0; line-height: 1; }

@media (max-width: 480px) {
  .btn { letter-spacing: 0.16em; padding-inline: 1.1rem; justify-content: center; text-align: center; }
  .hero-act .btn { width: 100%; }
}

.btn-quiet {
  background: transparent; color: var(--ink); border-color: var(--rule-firm);
}
.btn-quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }

.dark .btn { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.dark .btn:hover { background: var(--bronze-text); border-color: var(--bronze-text); color: var(--bone); }

/* Secondary actions are plain underlined text, never a second button. */
.textlink {
  border-bottom: var(--hair) solid var(--rule-firm);
  padding-bottom: 2px;
  transition: border-color 200ms ease, color 200ms ease;
}
/* Standalone links (not inline in a sentence) get a real target height. */
.retreat .r-status a, .index-head .textlink, .qa .textlink, .toc .textlink {
  display: inline-flex; align-items: center; min-height: 30px;
}
.textlink:hover { color: var(--bronze-text); border-color: var(--bronze-text); }
.dark .textlink:hover, .foot .textlink:hover { color: var(--bronze-lift); border-color: var(--bronze-lift); }

/* --- Hero --------------------------------------------------------------- */
/* A split, not a letterbox: the portrait keeps its own frame and the primary
   action sits on bone at full contrast. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  min-height: clamp(34rem, 84svh, 50rem);
  border-bottom: var(--hair) solid var(--rule);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: var(--gutter);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero-copy .display {
  font-size: var(--display-hero);
  line-height: 0.98;
  letter-spacing: 0.028em;
  max-width: 13ch;
}
.hero-eyebrow { opacity: 0.65; margin-bottom: 1.25rem; }

.hero-act { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.hero-proof {
  font-size: var(--step--1); line-height: 1.7; opacity: 0.72; max-width: 34ch;
}
.hero-note { opacity: 0.68; }

.hero-media { position: relative; overflow: hidden; background: var(--deep); }
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%;
  filter: grayscale(1) contrast(1.04);
}
.hero-credit {
  position: absolute; right: 0.9rem; bottom: 0.8rem; z-index: 2;
  color: var(--bone); opacity: 0.45; font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.2em;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; aspect-ratio: 3 / 2; }
  .hero-media img { object-position: 50% 12%; }
  .hero-copy { padding-block: clamp(2.25rem, 8vw, 3.5rem); }
}

/* --- The one-line claim under the hero ---------------------------------- */
.claim {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .claim { grid-template-columns: 1fr; } }
.claim h2 { font-size: var(--step-2); line-height: 1.35; letter-spacing: 0.02em; font-weight: 300; text-wrap: balance; }
.claim .fine { font-size: var(--step--1); line-height: 1.75; opacity: 0.78; max-width: 30ch; }

/* --- The dial (signature) ----------------------------------------------- */
.dial { position: relative; }
.dial-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.dial-day {
  font-family: var(--font-text);
  font-variation-settings: "wdth" var(--wide);
  font-weight: 400;
  font-size: var(--step-3);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.dial-season { font-size: var(--step-2); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 300; }

.dial-track {
  position: relative;
  height: 74px;   /* a 74px-tall drag target across the full width */
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}
.dial-track .rule-28 { height: 100%; align-items: center; }
.dial-track .tick {
  height: 44%;
  border-left-color: var(--rule);
  transition: height 220ms cubic-bezier(0.2,0.7,0.2,1), border-color 220ms ease;
}
.dial-track .tick[data-in-phase="true"] { height: 78%; border-left-color: var(--rule-firm); }
.dial-track .tick.edge { height: 100%; }

.dial-marker {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--bronze);
  transform: translateX(-1px);
  transition: left 280ms cubic-bezier(0.2,0.7,0.2,1);
  pointer-events: none;
}
.dial-marker::before {
  content: "▼";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  color: var(--bronze); font-size: 9px; line-height: 1;
}

.dial-scale {
  display: flex; margin-top: 0.6rem;
}
.dial-scale span { flex: 1 1 0; text-align: center; font-size: 9px; letter-spacing: 0.1em; opacity: 0.68; }
@media (max-width: 700px) { .dial-scale span:nth-child(even) { visibility: hidden; } }

.dial-bands {
  display: grid; grid-template-columns: 5fr 8fr 3fr 12fr;
  margin-top: 1.5rem; border-top: var(--hair) solid var(--rule);
}
.dial-bands button {
  appearance: none; background: none; border: 0;
  border-right: var(--hair) solid var(--rule);
  padding: 0.9rem 0.5rem; text-align: left; cursor: pointer;
  font: inherit; color: inherit;
  transition: background 200ms ease, color 200ms ease;
}
.dial-bands button:last-child { border-right: 0; }
.dial-bands button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.dial-bands button:hover:not([aria-pressed="true"]) { color: var(--bronze-text); }
.dial-bands .b-season { display: block; font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.2em; font-weight: 500; }
.dial-bands .b-days   { display: block; font-size: 10px; letter-spacing: 0.1em; opacity: 0.72; margin-top: 0.35rem; white-space: nowrap; }
@media (max-width: 700px) {
  .dial-bands { grid-template-columns: 1fr 1fr; border-left: var(--hair) solid var(--rule); }
  .dial-bands button { border-bottom: var(--hair) solid var(--rule); }
}

.dial-panel {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}
@media (max-width: 860px) { .dial-panel { grid-template-columns: 1fr; } }
.dial-panel h3 {
  font-family: var(--font-text);
  font-variation-settings: "wdth" var(--wide);
  font-weight: 500;
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.68;
  margin-bottom: 1rem;
}
.dial-panel p { font-size: var(--step-0); line-height: 1.7; max-width: 42ch; }

/* Today's card, mirroring what the app actually shows */
.day-sheet { border-top: var(--hair) solid var(--rule-firm); }
.day-sheet dt {
  font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.22em;
  font-weight: 500; opacity: 0.68; padding-top: 0.9rem;
}
.day-sheet dd {
  margin: 0.25rem 0 0.9rem; padding-bottom: 0.9rem;
  border-bottom: var(--hair) solid var(--rule);
  font-size: var(--step-0); letter-spacing: 0.02em;
}

/* --- Full-bleed photo bands --------------------------------------------- */
.band { position: relative; overflow: hidden; }
.band-media { position: relative; height: clamp(24rem, 62svh, 40rem); }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band-media::after { content: ""; position: absolute; inset: 0; background: rgba(22,21,15,0.54); }
.band-copy {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; text-align: center;
  padding: var(--gutter); color: var(--bone);
}
.band-copy .display { font-size: var(--display-band); max-width: 18ch; }

/* --- The app section ---------------------------------------------------- */

.pricing { border-top: var(--hair) solid var(--rule-firm); margin-top: 2.5rem; }
.pricing-row { display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; padding: 1.1rem 0; border-bottom: var(--hair) solid var(--rule); align-items: baseline; }
.pricing-row .tier { font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.22em; font-weight: 500; min-width: 7.5rem; }
.pricing-row ul li { font-size: var(--step--1); line-height: 1.7; padding-left: 1.1rem; position: relative; }
.pricing-row ul li::before { content: "—"; position: absolute; left: 0; opacity: 0.6; }

/* --- Founder ------------------------------------------------------------ */
.founder { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }
.founder img { width: 100%; height: clamp(20rem, 46vw, 34rem); object-fit: cover; }

blockquote.pull {
  max-width: 30ch;
  font-family: var(--font-display); font-variation-settings: "opsz" 88;
  font-size: var(--step-2); line-height: 1.4; letter-spacing: 0.02em;
  border-left: var(--hair) solid var(--bronze); padding-left: 1.5rem;
}
blockquote.pull cite { display: block; margin-top: 1rem; font-style: normal; font-family: var(--font-text); font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.22em; opacity: 0.68; }

/* --- Retreats strip ----------------------------------------------------- */
.retreats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--hair) solid var(--rule); }
@media (max-width: 860px) { .retreats { grid-template-columns: 1fr; } }
.retreat {
  border-right: var(--hair) solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.retreat:last-child { border-right: 0; }
@media (max-width: 860px) { .retreat { border-right: 0; border-bottom: var(--hair) solid var(--rule); } }
.retreat .r-when { font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.22em; opacity: 0.68; }
.retreat .r-name { font-family: var(--font-display); font-variation-settings: "opsz" 72; font-size: var(--step-1); letter-spacing: 0.02em; }
.retreat .r-meta { font-size: var(--step--1); opacity: 0.75; }
/* Sold-out reads as recessed, not faded — dimming a whole card breaks its
   text contrast. */
.retreat[data-state="sold-out"] { background: rgba(32, 32, 32, 0.035); }
.retreat[data-state="sold-out"] .r-name,
.retreat[data-state="sold-out"] .r-status { opacity: 0.72; }
.retreat .r-status { margin-top: auto; padding-top: 0.9rem; font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.22em; }
.retreat[data-state="open"] .r-status { color: var(--bronze-text); }

/* --- Footer ------------------------------------------------------------- */
.foot { background: var(--deep); color: var(--bone); }
.foot a:hover { color: var(--bronze-lift); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot .label { opacity: 0.55; margin-bottom: 1.1rem; }
.foot li + li { margin-top: 0.15rem; }
.foot li a { display: inline-flex; align-items: center; min-height: 30px; padding-block: 0.3rem; }
.foot .colophon {
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem;
  border-top: var(--hair) solid var(--rule-bone);
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between;
  font-size: var(--step--1); opacity: 0.6; line-height: 1.7;
}
.foot .colophon p { max-width: 52ch; }
.foot-mark img { width: 92px; margin-bottom: 1.5rem; }

/* --- Sticky download bar (small screens only) --------------------------- */
.dockbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none;
  align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--bone);
  border-top: var(--hair) solid var(--rule-bone);
  transform: translateY(110%);
  transition: transform 320ms cubic-bezier(0.2,0.7,0.2,1);
}
.dockbar[data-shown="true"] { transform: translateY(0); }
.dockbar .dock-id { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.dockbar .dock-id img { width: 34px; height: 34px; border: var(--hair) solid var(--rule-bone); }
.dockbar .dock-id span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; line-height: 1.5; }
.dockbar .btn { background: var(--bone); color: var(--ink); border-color: var(--bone); padding: 0.7rem 1.1rem; min-height: 44px; white-space: nowrap; }
@media (max-width: 860px) { .dockbar { display: flex; } body { padding-bottom: 0; } }

/* --- Motion: one gesture, used three times ------------------------------ */
/* Full-bleed photo bands settle from 1.06 to 1 as they enter. Nothing else
   on the site animates on scroll. */
.settle img { transform: scale(1.06); transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }
.settle[data-settled="true"] img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .settle img, .settle[data-settled="true"] img { transform: none; transition: none; }
  .dial-marker, .dial-track .tick, .masthead, .dockbar { transition: none; }
  /* Nothing on this site animates position or scale for someone who asked
     it not to. Colour and opacity changes stay — they carry meaning. */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: color, background-color, border-color, opacity, outline-color !important;
    transition-duration: 120ms !important;
    scroll-behavior: auto !important;
  }
  .nav-left a::after, .nav-right a.underlined::after { transform: scaleX(1); opacity: 0; }
  .nav-left a:hover::after, .nav-right a.underlined:hover::after { opacity: 1; }
  .dockbar { transform: translateY(0); }
  .dockbar[data-shown="false"] { display: none; }
}

/* --- Utilities ---------------------------------------------------------- */
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; top: -100px; left: var(--gutter); z-index: 300;
  background: var(--ink); color: var(--bone); padding: 0.8rem 1.2rem;
  font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.22em;
}
.skip:focus { top: 0.75rem; }

/* ==========================================================================
   Interior pages
   ========================================================================== */

/* --- Page head: a title against a full-bleed photograph ----------------- */
.page-head { position: relative; background: var(--deep); overflow: hidden; }
.page-head-media { position: relative; height: clamp(21rem, 58svh, 36rem); }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; }
.page-head-media::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(22, 21, 15, 0.16);
}
/* A solid caption bar hugging the bottom of the photograph. Hard top edge,
   no blur — it reads as a deliberate band rather than a veil, and the title
   keeps its contrast no matter how bright the picture is. */
.page-head-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter);
  color: var(--bone);
  background: rgba(22, 21, 15, 0.78);
  border-top: var(--hair) solid var(--rule-bone);
}
.page-head-copy .label { opacity: 0.75; margin-bottom: 1rem; }
.page-head-copy h1 { font-size: var(--display-page); max-width: 22ch; }

/* --- A ruled list: the site's answer to the three-card grid ------------- */
.ruled { border-top: var(--hair) solid var(--rule-firm); }
.ruled > li, .ruled > .row {
  display: grid;
  grid-template-columns: minmax(0, 7rem) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 0.5rem clamp(1rem, 3vw, 3rem);
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
  border-bottom: var(--hair) solid var(--rule);
  align-items: start;
}
@media (max-width: 780px) {
  .ruled > li, .ruled > .row { grid-template-columns: 1fr; }
}
.ruled .r-idx { font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.22em; font-weight: 500; opacity: 0.68; padding-top: 0.35rem; }
.ruled .r-title { font-family: var(--font-display); font-variation-settings: "opsz" 72; font-size: var(--step-1); letter-spacing: 0.02em; }
.ruled .r-role { display: block; font-family: var(--font-text); font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.22em; opacity: 0.68; margin-top: 0.5rem; }
.ruled .r-body { font-size: var(--step--1); line-height: 1.75; max-width: 62ch; }

/* --- Q&A as prose, not an accordion ------------------------------------- */
.qa { border-top: var(--hair) solid var(--rule-firm); }
.qa > div { padding: clamp(1.25rem, 2.5vw, 2rem) 0; border-bottom: var(--hair) solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 0.75rem clamp(1rem, 3vw, 3rem); }
@media (max-width: 780px) { .qa > div { grid-template-columns: 1fr; } }
.qa h3 {
  font-family: var(--font-text);
  font-variation-settings: "wdth" var(--wide);
  font-weight: 500; font-size: var(--step-1);
  letter-spacing: 0.01em; line-height: 1.35; max-width: 24ch;
}
.qa p { font-size: var(--step--1); line-height: 1.78; max-width: 62ch; }
.qa p + p { margin-top: 0.9rem; }

/* --- Two-up editorial split --------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img { width: 100%; height: clamp(18rem, 42vw, 32rem); object-fit: cover; }
.split .display { font-size: var(--step-3); }

/* --- Long-form legal prose ---------------------------------------------- */
.legal { max-width: 46rem; }
.legal h2 {
  font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.26em;
  font-weight: 500; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.25rem;
  border-top: var(--hair) solid var(--rule-firm);
}
.legal h3 {
  font-family: var(--font-text);
  font-variation-settings: "wdth" var(--wide);
  font-weight: 500; font-size: var(--step-1);
  letter-spacing: 0.01em; margin-top: 2rem;
}
.legal p, .legal li { font-size: var(--step--1); line-height: 1.8; max-width: 68ch; }
.legal p { margin-top: 0.9rem; }
.legal ul { margin-top: 0.9rem; }
.legal ul li { padding-left: 1.2rem; position: relative; margin-top: 0.45rem; }
.legal ul li::before { content: "—"; position: absolute; left: 0; opacity: 0.6; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; margin-top: 1.5rem; }

/* --- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid dt { font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.22em; font-weight: 500; opacity: 0.68; padding-top: 1rem; }
.contact-grid dd { margin: 0.3rem 0 1rem; padding-bottom: 1rem; border-bottom: var(--hair) solid var(--rule); font-size: var(--step-1); }
.contact-grid dl { border-top: var(--hair) solid var(--rule-firm); }

/* --- The closer --------------------------------------------------------- */
/* The page ends on the same rule it is built from: two day-scales with the
   last word between them. */
.closer { padding-block: clamp(3rem, 7vw, 5.5rem); }
.closer .rule-28 { opacity: 0.8; }
.closer-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: end;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
@media (max-width: 860px) { .closer-body { grid-template-columns: 1fr; align-items: start; } }
.closer-body .display { font-size: var(--display-closer); max-width: 13ch; }
.closer-act { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.closer-act .label { opacity: 0.7; }

/* ==========================================================================
   The plate row — the app itself, shown as a ruled contact sheet
   ========================================================================== */
/* No device frames, no shadows, no rounded corners: the screens sit in
   hairline-ruled cells and run off the right edge, which is the invitation
   to scroll. Same language as every other rule on the site. */

.plates-band {
  background: var(--bone-lift);
  border-block: var(--hair) solid var(--rule);
  padding-block: clamp(2rem, 4vw, 3.25rem);
  margin-block: clamp(2rem, 4vw, 3.25rem);
}
.plates-head {
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem;
  justify-content: space-between; align-items: baseline;
  padding-inline: var(--gutter);
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.plates-head .label { opacity: 0.68; }
.plates-hint { opacity: 0.68; }

.plates {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(15.5rem, 27vw, 22rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--rule-firm) transparent;
}
.plates:focus-visible { outline: 2px solid var(--bronze-text); outline-offset: 6px; }
.plates::-webkit-scrollbar { height: 3px; }
.plates::-webkit-scrollbar-thumb { background: var(--rule-firm); }
.plates::-webkit-scrollbar-track { background: var(--rule); }

.plate {
  scroll-snap-align: start;
  margin: 0;
  padding: 0 clamp(0.7rem, 1.2vw, 1.15rem);
  border-left: var(--hair) solid var(--rule-firm);
  display: flex; flex-direction: column; gap: 1rem;
}
.plate:last-child { border-right: var(--hair) solid var(--rule-firm); }
.plate img {
  width: 100%; height: auto; display: block;
  border: var(--hair) solid var(--rule);
  background: var(--bone);
}
.plate figcaption { display: block; }
.plate .p-idx {
  display: block; font-size: var(--step--2); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em; opacity: 0.68;
}
.plate .p-name {
  display: block; margin-top: 0.45rem;
  font-family: var(--font-display); font-variation-settings: "opsz" 72;
  font-size: var(--step-1); letter-spacing: 0.02em;
}
.plate .p-body {
  display: block; margin-top: 0.5rem;
  font-size: var(--step--1); line-height: 1.7;
}

/* --- Section 02 head: the argument beside a real hand holding the app ---- */
.appshow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) { .appshow { grid-template-columns: 1fr; } }
.appshow-copy { padding-block: 0; }
.appshow-shot { margin: 0; }
.appshow-shot img {
  width: 100%; max-width: none;
  height: clamp(18rem, 40vw, 30rem);
  object-fit: cover; object-position: 52% 46%;
  border: var(--hair) solid var(--rule);
}
.appshow-shot figcaption {
  margin-top: 0.85rem; text-align: left; opacity: 0.68;
  font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.26em; font-weight: 500;
}


/* ==========================================================================
   Optical size, applied where the type actually is
   ========================================================================== */

/* Bodoni is a didone: at a high optical size its thin strokes go to hairlines
   and, on a warm bone ground at 78px, effectively disappear. Dropping the
   optical size and adding weight thickens those strokes while keeping the
   same face — which is what matches the DÉJÀ wordmark. */
.hero-copy .display {
  font-variation-settings: "opsz" var(--opsz-hero);
  font-weight: 600;
}

/* Reversed out of a photograph or the ink band, where thin strokes are eaten
   by the background — these need the weight even more than the hero does. */
.band-copy .display,
.closer-body .display,
.page-head-copy h1 {
  font-variation-settings: "opsz" var(--opsz-reverse);
  font-weight: 600;
}

/* Mid-size serif set in running content. */
.ruled .r-title,
.plate .p-name,
.retreat .r-name,
blockquote.pull {
  font-variation-settings: "opsz" var(--opsz-inline);
  font-weight: 500;
}

/* The season name sits at 36px in the display face; 300 is too light for it. */
.dial-season { font-weight: 400; }


/* ==========================================================================
   Where each face is allowed
   ==========================================================================
   The app itself reserves the serif for the wordmark, the big date and the
   phase name; everything functional is set in the grotesk. The site follows
   that. Rule of thumb: sentences and data go in Archivo, short proper names
   and display statements go in Bodoni. A didone is a beautiful display face
   and a poor label face — its hairlines and its numerals both fight a reader
   at 22-36px.
   ========================================================================== */

/* --- Newsletter sign-up (inert until a form action is set) -------------- */
.signup { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.signup .label { display: block; opacity: 0.68; margin-bottom: 0.6rem; }
.signup-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.signup input[type="email"] {
  flex: 1 1 14rem; min-height: 48px;
  background: var(--bone-lift); color: var(--ink);
  border: var(--hair) solid var(--rule-firm);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-text); font-variation-settings: "wdth" var(--wide);
  font-size: var(--step-0); letter-spacing: 0.02em;
}
.signup input::placeholder { color: var(--ink); opacity: 0.5; }
.signup input:focus-visible { outline: 2px solid var(--bronze-text); outline-offset: 2px; border-color: var(--bronze-text); }
.signup-note { margin-top: 0.75rem; font-size: var(--step--1); opacity: 0.72; max-width: 40ch; }

/* --- The two co-founders ------------------------------------------------ */
.founders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  border-top: var(--hair) solid var(--rule-firm);
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
}
@media (max-width: 780px) { .founders { grid-template-columns: 1fr; } }
.founder-card { margin: 0; }
.founder-card img {
  width: 100%;
  height: clamp(20rem, 44vw, 32rem);
  object-fit: cover; object-position: 50% 28%;
  border: var(--hair) solid var(--rule);
  margin-bottom: 1.1rem;
}
.f-name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" var(--opsz-inline);
  font-weight: 500; font-size: var(--step-2);
  letter-spacing: 0.02em;
}
.f-role {
  margin-top: 0.4rem;
  font-size: var(--step--2); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em; opacity: 0.68;
}
.f-bio { margin-top: 0.9rem; font-size: var(--step--1); line-height: 1.75; max-width: 46ch; }
