/* Arden Bilc — draft, version C "Couture". The v6 hero, untouched, then a page that moves as you scroll:
   the about page slides up over the pinned hero, the bio fills in word by word, the listings travel
   sideways on a pinned reel, the moving line speeds up with the scroll, the services light up line by
   line, and the footer is uncovered from under the page. All of it lives in the "Version C" block at the
   end of this file and in motion.js; palette set to the exact brand hex codes.
   Direction: the name as a monument (seed 1397826071).
   Palette: Pearl Ivory, Midnight Slate, Mushroom Greige, Oxblood Burgundy, Muted Rose.
   Display type: The Seasons Light, from assets/fonts/. Cormorant Garamond Light is the fallback if it fails to load. */

@font-face {
  font-family: "The Seasons";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: local("The Seasons Light"), local("TheSeasons-Light"), local("The Seasons Lt"), local("TheSeasons-Lt"),
       url("assets/fonts/The%20Seasons%20Light.otf") format("opentype");
}

:root {
  --ivory: #f2f0ed;       /* Pearl Ivory: primary background */
  --slate: #252a2d;       /* Midnight Slate: type, contrast fields */
  --greige: #a49a9d;      /* Mushroom Greige: secondary surfaces */
  --burgundy: #633b4b;    /* Oxblood Burgundy: the accent */
  --rose: #c8acb5;        /* Muted Rose: small details */

  --bg: var(--ivory);
  --ink: var(--slate);
  --muted: #4b5154;       /* slate, one step softer, for secondary notes */
  --surface: #e6e2e0;     /* the pale greige tint from her guide: a tone step */
  --accent: var(--burgundy);
  --accent-ink: var(--ivory);
  --focus: var(--burgundy);

  --display-face: "The Seasons", "Cormorant Garamond", "Cormorant", Georgia, serif;
  --text-face: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.75vw, 1.75rem);
  --step-head: clamp(1.625rem, 2.4vw, 2.375rem);

  /* Letter widths of the display face, in em. site.js measures the face that actually loaded and
     overwrites these, so the big type refits itself whichever font is in use. */
  --a-em: 3.05;           /* ARDEN */
  --b-em: 1.95;           /* BILC */
  --mark-em: 5.25;        /* ARDEN BILC */
  --mail-em: 11.3;        /* ARDEN@ARDENBILC.COM */
  --mail2-em: 7.7;        /* ARDENBILC.COM */

  --name-w: 37.1vw;       /* the wall to her left, which ARDEN fills */
  --name-y: 14vw;         /* the name's baseline above the foot of the photograph */
  --display: calc(var(--name-w) / var(--a-em));

  --m: max(2vw, 16px);    /* the one pair of outer margins */
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(96px, 11vw, 180px);
  --nav-h: 76px;
  --hero-h: max(min(calc(100svh - var(--nav-h)), 66.667vw), 50vw);
  --drop: max(0px, calc(54vw - var(--hero-h)));   /* wide, short screens: slide the photo (and the name with it) down so the crop takes the flowers, not her head. Her hair starts ~24% down the photo. */

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text-face);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--rose); color: var(--slate); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { padding-inline: var(--m); }

/* The display voice: light, tall capitals */
h2, .nav-mark, .name, .lot-title, .slide-title, .poster-word, .marquee span, .contact-mail, .foot-mark {
  font-family: var(--display-face);
  font-weight: 300;
  text-transform: uppercase;
  font-synthesis: none;
}
h2 { font-size: var(--step-head); line-height: 1; letter-spacing: 0.01em; }

/* One button shape on the whole page: flat, square */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  font-size: var(--step-body);
}

/* ---------- Header: links, the name, the way in. It stays with you down the page ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: var(--gap);
  height: var(--nav-h);
  padding-inline: var(--m);
  background: var(--bg);
}
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }
.nav-links a, .nav-tel, .contact-foot a, .foot a, .about-facts a { transition: color 0.2s var(--ease); }
.nav-links a:hover, .nav-tel:hover, .contact-foot a:hover, .about-facts a:hover { color: var(--accent); }
.nav-more { display: none; }
.nav-mark { justify-self: center; font-size: var(--step-lead); line-height: 1; letter-spacing: 0.06em; white-space: nowrap; padding-block: 8px; }
.nav-mark span { display: block; }
.nav-end { justify-self: end; display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.nav-tel { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav-act { min-height: 44px; padding: 0 20px; white-space: nowrap; }
.nav-toggle { display: none; justify-self: start; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 500; cursor: pointer; }
section[id], main { scroll-margin-top: var(--nav-h); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  background: var(--slate);
  --focus: var(--rose);
}
.hero-pic img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  transform-origin: 50% 100%;
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.035); } }

.name {
  position: absolute;
  left: var(--m);
  bottom: calc(var(--name-y) - var(--drop));
  display: flex;
  align-items: flex-end;
  padding-top: 0.3em;
  font-size: var(--display);
  line-height: 0.72;
  letter-spacing: 0;
  color: var(--ivory);
}
.name span { display: block; white-space: nowrap; text-box: trim-both cap alphabetic; }
.name-b { margin-left: calc(61.9vw - var(--name-w) / 1.012 - var(--m)); } /* BILC starts where her sleeve ends */

.hero-say {
  position: absolute;
  left: var(--m);
  top: calc(100% - var(--name-y) + var(--drop) + 1.8vw);
  width: calc(var(--name-w) * 0.9);
  font-size: clamp(1rem, 1.95vw, 1.75rem);
  line-height: 1.3;
  color: var(--ivory);
}
.hero-act { position: absolute; left: 61.9vw; top: calc(100% - var(--name-y) + var(--drop) + 1.8vw); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding-block: var(--section);
}
.about-facts { grid-column: 1 / span 2; font-size: var(--step-body); line-height: 1.35; display: grid; gap: 20px; align-content: start; padding-top: calc(var(--step-head) + 40px); }
.fact-k { display: block; color: var(--muted); }
.about-body { grid-column: 3 / -1; }
.about-body h2 { margin-bottom: 40px; }
.bio { font-family: var(--display-face); font-weight: 300; font-synthesis: none; font-size: var(--step-head); line-height: 1.2; max-width: 34em; }
.bio strong { font-weight: inherit; color: var(--accent); }
.bio-second { margin-top: 1.2em; color: var(--muted); }
.bio-cap { float: left; width: 3.6em; height: 3.6em; margin: 0.08em 0.5em 0 0; object-fit: cover; }

/* ---------- Listings ---------- */
.work { padding-top: 0; }
.work-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; padding-bottom: 48px; }
.work-head h2 { grid-column: 1 / span 5; }
.work-head p { grid-column: 7 / span 5; max-width: 40ch; }

.lot { position: relative; height: 95svh; min-height: 520px; overflow: hidden; --t: 0; background: var(--slate); --focus: var(--rose); }
.pane { position: absolute; top: -22svh; bottom: -22svh; width: 50%; will-change: transform; }
.pane-l { left: 0; transform: translateY(calc(var(--t) * 20svh)); }
.pane-r { right: 0; transform: translateY(calc(var(--t) * -20svh)); }
.pane img { width: 100%; height: 100%; object-fit: cover; }
.pane::after { content: ""; position: absolute; inset: 0; background: rgba(37, 42, 45, 0.5); } /* neutral scrim under the title */

.lot-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  display: flex;
  margin-top: calc(var(--display) * -0.5);
  font-size: var(--display);
  line-height: 1;
  letter-spacing: 0;
  color: var(--ivory);
  pointer-events: none;
}
.half { flex: 1 1 50%; white-space: nowrap; will-change: transform; }
.half-l { text-align: right; padding-right: 0.12em; transform: translateY(calc(var(--t) * 30svh)); }
.half-r { text-align: left; padding-left: 0.12em; transform: translateY(calc(var(--t) * -30svh)); }

.lot-info {
  position: absolute;
  left: var(--m);
  bottom: 28px;
  max-width: 44vw;
  color: var(--ivory);
}
.lot-info a { display: inline-block; margin-top: 6px; padding: 10px 0 6px; font-weight: 500; border-bottom: 3px solid var(--rose); transition: color 0.2s var(--ease); }
.lot-info a:hover { color: var(--rose); }

/* ---------- Selling plan ---------- */
.plan { background: var(--slate); color: var(--ivory); padding-block: var(--section); --focus: var(--rose); }
.plan-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: stretch; }
.plan-say { grid-column: 1 / span 5; display: flex; flex-direction: column; }
.plan-say p { margin-top: 28px; max-width: 44ch; font-size: var(--step-lead); line-height: 1.3; }
.plan-pic { margin-top: auto; padding-top: 48px; width: 100%; }

.slip-slot { grid-column: 7 / span 5; justify-self: start; width: min(100%, 480px); }
.slip {
  background: var(--ivory);
  color: var(--slate);
  padding: 12px 28px 56px;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px),
    95% 100%, 90% calc(100% - 14px), 85% 100%, 80% calc(100% - 14px), 75% 100%, 70% calc(100% - 14px), 65% 100%,
    60% calc(100% - 14px), 55% 100%, 50% calc(100% - 14px), 45% 100%, 40% calc(100% - 14px), 35% 100%,
    30% calc(100% - 14px), 25% 100%, 20% calc(100% - 14px), 15% 100%, 10% calc(100% - 14px), 5% 100%, 0 calc(100% - 14px));
}
.slip h3 { margin-top: 28px; font-family: var(--text-face); font-size: var(--step-body); font-weight: 500; }
.slip li { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.slip li i { flex: 1; min-width: 16px; border-bottom: 4px dotted var(--rose); transform: translateY(-4px); }
.slip li b { font-weight: 400; white-space: nowrap; }
.slip-end { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin: 32px -28px 0; padding: 0 28px; background: var(--burgundy); color: var(--ivory); font-weight: 500; }
.slip-end b { font-weight: 500; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: clamp(40px, 5vw, 80px); }
.marquee-run { display: flex; width: max-content; animation: run 44s linear infinite; }
.marquee:hover .marquee-run { animation-play-state: paused; }
.marquee span { padding-right: 0.6em; font-size: var(--display); line-height: 1; white-space: nowrap; color: var(--accent); }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- Services poster ---------- */
.poster { padding-top: 80px; padding-bottom: var(--section); }
.poster h2 { margin-bottom: 40px; }
.poster-list a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--gap); transition: color 0.2s var(--ease); }
.poster-list a:hover, .poster-list a:focus-visible { color: var(--accent); }
.poster-word { font-size: var(--display); line-height: 0.98; transition: transform 0.3s var(--ease); }
.poster-list a:hover .poster-word { transform: translateX(1vw); }
.poster-note { font-size: var(--step-lead); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Book ---------- */
.book { background: var(--surface); padding-block: var(--section); }
.book-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.book-form { grid-column: 1 / span 5; display: grid; gap: 36px; }
.book-form legend { margin-bottom: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--ivory);
  color: var(--slate);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.chips label:hover { background: var(--rose); }
.chips label:active { transform: translateY(2px); }
.chips input:checked + label { background: var(--slate); color: var(--ivory); }
.chips input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }

.book-note { grid-column: 7 / -1; display: grid; grid-template-columns: 2fr 5fr; gap: var(--gap); align-items: end; }
.book-note img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.note { font-size: var(--step-lead); line-height: 1.25; margin-bottom: 28px; max-width: 30em; }
.note b { font-weight: 500; color: var(--accent); }

/* ---------- Contact ---------- */
.contact { background: var(--greige); color: var(--slate); min-height: min(88svh, 54vw); display: flex; flex-direction: column; padding-block: 40px; }
.contact-top p { margin-top: 20px; max-width: 26ch; font-size: var(--step-lead); line-height: 1.3; }
.contact-mail {
  margin-top: auto;
  padding-inline: var(--m);
  font-size: calc((100vw - 2 * var(--m)) / var(--mail-em));
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.contact-mail:hover { color: var(--accent); }
.contact-foot { display: flex; justify-content: space-between; align-items: end; margin-top: 5vh; font-size: var(--step-body); }
.contact-foot ul { display: flex; gap: 28px; }

/* ---------- Footer: the contrast field. A last word, the ways to reach her, and the name with her in it ---------- */
.foot { background: var(--slate); color: var(--ivory); padding-top: clamp(64px, 7vw, 112px); --focus: var(--rose); }
.foot-top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 56px; align-items: start; }
.foot-say { grid-column: 1 / span 5; }
.foot-line { font-family: var(--display-face); font-weight: 300; font-synthesis: none; font-size: var(--step-head); line-height: 1.1; margin-bottom: 32px; }
.foot .btn { background: var(--ivory); color: var(--slate); }
.foot .btn::before { background: var(--rose); }
.foot .btn:hover { background: var(--ivory); }
.foot-col { grid-column: span 2; }
.foot-col:first-of-type { grid-column: 7 / span 2; }
.foot-col li { color: #d9d4cc; line-height: 1.5; padding-block: 5px; }
.foot-col li:first-child { color: var(--rose); padding-bottom: 14px; }
.foot-col a { color: var(--ivory); overflow-wrap: anywhere; }
.foot a:not(.btn):hover { color: var(--rose); }

.foot-mark {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: clamp(72px, 9vw, 150px);
  padding: 0.3em var(--m) 0;
  font-size: calc((100vw - 2 * var(--m)) / (var(--a-em) + var(--b-em) + 1));
  line-height: 0.72;
  letter-spacing: 0;
}
.fm-word { display: block; white-space: nowrap; text-box: trim-both cap alphabetic; }
.foot-mark img { width: calc(var(--cap-em, 0.7) * 0.78em); height: calc(var(--cap-em, 0.7) * 1em); max-width: none; object-fit: cover; object-position: 50% 30%; }   /* she stands in her name once more, exactly as tall as its letters */
.foot-legal { display: flex; justify-content: space-between; align-items: end; gap: var(--gap); padding-block: 28px 24px; color: #d9d4cc; }
.foot-legal p { max-width: 68ch; }
.foot-up { color: var(--ivory); font-weight: 500; white-space: nowrap; padding-block: 10px; }

/* ---------- Motion ----------
   Personality: premium. Slow, controlled, no bounce.
   One easing for arrivals, one for changes on screen, three durations (quick / standard / slow).
   One entrance: things rise from a baseline, the way the name rises from the wall.
   It all runs only when the script has loaded; without it the page is simply still. */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* arrivals: quick start, long soft landing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);        /* changes to things already on screen */
  --t-quick: 180ms;
  --t-std: 450ms;
  --t-slow: 950ms;
}

/* The load: the wall opens around her, her name rises from its baseline, the words follow */
.hero-pic { position: absolute; inset: 0; display: block; }
.hero-pic img {
  width: 102%; max-width: none; left: -1%; bottom: calc(-0.8vw - var(--drop));                            /* a little spare picture on every side, so it can move */
  translate: calc(var(--px, 0) * -0.4vw) calc(var(--hy, 0) * 1px + var(--py, 0) * -0.45vw);   /* leans away from the cursor, lags the scroll */
  scale: calc(1 + var(--hs, 0));                                     /* and comes a touch closer as you scroll away */
}
.name { translate: calc(var(--px, 0) * 0.28vw) calc(var(--py, 0) * 0.35vw); }   /* the name leans the other way: depth */
.js .nav { animation: nav-in 0.6s var(--ease-out) backwards; }   /* backwards only: a held transform would trap the full-screen menu inside the bar */
.js .hero-pic { animation: curtain 1.15s var(--ease-out) both; }
.js .hero-pic img { animation: settle 1.5s var(--ease-out) both, drift 24s ease-in-out 1.5s infinite alternate; }
.js .name { clip-path: inset(-0.45em -0.1em var(--name-clip, -0.03em) -0.1em); }
.name .ch { display: inline-block; }
.js .name.intro .ch { animation: name-up 0.75s var(--ease-out) calc(0.25s + var(--n, 0) * 45ms) both; }   /* letter by letter */
.js .name { animation: float 7s ease-in-out 1.9s infinite alternate; }                                   /* then it never quite sits still */
@media (prefers-reduced-motion: no-preference) { .js .name:not(.is-split) span { visibility: hidden; } }
@keyframes float { to { transform: translateY(-0.035em); } }
.js .hero-say { animation: say-in 0.7s var(--ease-out) 0.75s both; }
.js .hero-act { animation: say-in 0.7s var(--ease-out) 0.87s both; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes curtain { from { clip-path: inset(0 37% 0 31%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes name-up { from { transform: translateY(122%); } }
@keyframes say-in { from { opacity: 0; transform: translateY(20px); } }
@keyframes col-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -5% 0); } }

/* Entrance 1: text and small parts fade up */
.js [data-rise] { opacity: 0; transform: translateY(28px); }
.js [data-rise].in { opacity: 1; transform: none; transition: opacity var(--t-std) var(--ease) var(--d, 0ms), transform var(--t-slow) var(--ease-out) var(--d, 0ms); }

/* Entrance 2: display type rises from behind its own baseline */
.js .mask[data-rise] { opacity: 1; transform: none; }
.js .mask { clip-path: inset(-0.2em -0.1em -0.14em -0.1em); }
.js .mask-in { display: block; transform: translateY(118%); visibility: hidden; transition: transform var(--t-slow) var(--ease-out) var(--d, 0ms), visibility 0s var(--d, 0ms); }
.js .mask.in .mask-in, .js .in .mask .mask-in { transform: none; visibility: visible; }

/* Entrance 3: pictures are unveiled from the top edge down */
/* (a sliver is left unclipped and transparent: a picture clipped away completely never counts as on screen, so it would never be told to appear) */
.js [data-rise="unveil"] { opacity: 0; transform: none; clip-path: inset(0 0 calc(100% - 2px) 0); }
.js [data-rise="unveil"].in { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out) var(--d, 0ms), opacity 0.2s linear var(--d, 0ms); }
/* The header: the small name only appears once the large one has left the screen */
.nav-mark { clip-path: inset(-0.3em -0.2em -0.1em -0.2em); }
.nav-mark span { transition: transform var(--t-slow) var(--ease-out); }
.js .nav:not(.show-mark) .nav-mark { visibility: hidden; transition: visibility 0s var(--t-std); }
.js .nav:not(.show-mark) .nav-mark span { transform: translateY(130%); transition: transform var(--t-std) var(--ease); }
.nav-links a[aria-current]::after { transform: scaleX(1); }

/* The footer: the name rises once more and her picture comes up between the words */
.js .foot-mark[data-rise] { opacity: 1; transform: none; clip-path: inset(-0.2em 0 -0.03em 0); }
.js .foot-mark .fm-word { transform: translateY(128%); }
.js .foot-mark img { clip-path: inset(100% 0 0 0); }
.js .foot-mark.in .fm-word { transform: none; transition: transform 1.1s var(--ease-out); }
.js .foot-mark.in .fm-word:last-child { transition-delay: 0.14s; }
.js .foot-mark.in img { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out) 0.3s; }
.foot-col a, .foot-up { position: relative; }
.foot-up::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--rose); transform: scaleX(0); transform-origin: left center; transition: transform var(--t-std) var(--ease); }
.foot-up:hover::after, .foot-up:focus-visible::after { transform: scaleX(1); }

/* The slip prints out of its slot, then its lines arrive and the dots run across */
.slip-slot { overflow: hidden; }
.js .slip-slot[data-rise] { opacity: 1; transform: none; }
.js .slip-slot .slip { transform: translateY(-101%); }
.js .slip-slot.in .slip { transform: none; transition: transform 1.2s var(--ease-out); }
.slip li i { transform: translateY(-4px) scaleX(1); transform-origin: left center; }
.js .slip-slot h3, .js .slip-slot li, .js .slip-slot .slip-end { opacity: 0; transform: translateY(8px); }
.js .slip-slot li i { transform: translateY(-4px) scaleX(0); }
.js .slip-slot.in h3, .js .slip-slot.in li, .js .slip-slot.in .slip-end {
  opacity: 1; transform: none;
  transition: opacity var(--t-std) var(--ease) calc(450ms + var(--i, 0) * 35ms), transform var(--t-std) var(--ease-out) calc(450ms + var(--i, 0) * 35ms);
}
.js .slip-slot.in li i { transform: translateY(-4px) scaleX(1); transition: transform 0.7s var(--ease-out) calc(560ms + var(--i, 0) * 35ms); }

/* Feedback: buttons fill from the left, links draw their line, chips settle */
.btn { overflow: hidden; isolation: isolate; transition: transform var(--t-quick) var(--ease); }
.btn:not(.hero-act) { position: relative; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--slate); transform: scaleX(0); transform-origin: left center; transition: transform var(--t-std) var(--ease); }
.btn:hover { background: var(--accent); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:active { transform: translateY(2px) scale(0.985); }

.nav-links a { position: relative; padding-block: 6px; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform var(--t-std) var(--ease); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }

.chips label { transition: background-color var(--t-std) var(--ease), color var(--t-std) var(--ease), transform var(--t-quick) var(--ease); }
.chips label:active { transform: translateY(2px) scale(0.97); }
.note b { display: inline-block; }
.poster-word { transition: transform var(--t-std) var(--ease-out); }
.poster-note { transition: transform var(--t-std) var(--ease-out); }
.poster-list a:hover .poster-note { transform: translateX(-1vw); }

/* ---------- Narrow header: the links fold into a full-screen menu ---------- */
@media (max-width: 1099px) { .nav-tel { display: none; } }
@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.2vh;
    padding: 0 var(--m) 10vh; overflow: auto;
    background: var(--slate); color: var(--ivory);
    visibility: hidden; opacity: 0;
    transition: opacity var(--t-std) var(--ease), visibility 0s var(--t-std);
    --focus: var(--rose);
  }
  .js .nav-links > a {
    font-family: var(--display-face); font-weight: 300; font-synthesis: none; text-transform: uppercase;
    font-size: clamp(2.5rem, 12vw, 5rem); line-height: 1.08; padding-block: 0;
    opacity: 0; transform: translateY(45%);
    transition: opacity var(--t-quick) var(--ease), transform var(--t-quick) var(--ease), color 0.2s var(--ease);
  }
  .js .nav-links > a:hover { color: var(--rose); }
  .js .nav-links > a::after { display: none; }
  .js .nav-more { display: grid; gap: 6px; margin-top: 5vh; opacity: 0; transition: opacity var(--t-std) var(--ease); }
  .js .nav-more a { padding-block: 6px; }
  .menu-open .nav-links { visibility: visible; opacity: 1; transition-delay: 0s; }
  .menu-open .nav-links > a { opacity: 1; transform: none; transition: opacity var(--t-std) var(--ease) calc(80ms + var(--k, 0) * 55ms), transform var(--t-slow) var(--ease-out) calc(80ms + var(--k, 0) * 55ms), color 0.2s var(--ease); }
  .menu-open .nav-more { opacity: 1; transition-delay: 0.45s; }
  html.menu-open { overflow: hidden; }
  /* without the script there is no menu to open, so the links simply wrap under the bar */
  html:not(.js) .nav { height: auto; grid-template-columns: 1fr auto; row-gap: 8px; padding-block: 10px; }
  html:not(.js) .nav-links { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; }
  html:not(.js) .nav-mark { justify-self: start; grid-row: 1; }
}

/* ---------- Tablet: the side columns fold under ---------- */
@media (max-width: 1040px) {
  .about { display: flex; flex-direction: column; }
  .about-body { order: 1; }
  .about-facts { order: 2; padding-top: 0; margin-top: 48px; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
  .slip-slot { grid-column: 7 / -1; width: 100%; }
  .book-form { grid-column: 1 / span 6; }
  .book-note { grid-column: 8 / -1; grid-template-columns: 1fr; }
  .foot-say { grid-column: 1 / -1; }
  .foot-col, .foot-col:first-of-type { grid-column: span 4; }
}

/* ---------- Phone and narrow: its own composition ---------- */
@media (max-width: 699px) {
  :root { --m: 16px; --nav-h: 60px; --display: calc((100vw - 32px) / (var(--a-em) + var(--b-em) + 0.3)); }
  .nav-act { min-height: 40px; padding: 0 14px; }
  .nav-mark { font-size: 1.25rem; letter-spacing: 0.04em; }

  /* Phone hero: the same idea as the wide screen, turned upright. The photograph is cropped tall around her
     and her name runs down the wall on either side: ARDEN to her left, BILC to her right. */
  .hero { height: auto; overflow: visible; background: var(--bg); display: flex; flex-direction: column; --focus: var(--burgundy); --pic-h: clamp(125vw, calc(100svh - var(--nav-h) - 150px), 153.4vw); }
  .hero-pic { order: 1; position: relative; inset: auto; overflow: hidden; height: var(--pic-h); background: var(--slate); }
  .hero-pic img { position: static; width: 117.3vw; max-width: none; height: auto; margin-left: -8.3vw; translate: none; }
  .js .hero-pic img { animation: settle 1.5s var(--ease-out) both; transform-origin: 50% 40%; }
  .name, .js .name {
    position: absolute; left: 0; right: 0; top: 0; bottom: auto; height: var(--pic-h);
    display: block; padding: 0; clip-path: none; translate: none; z-index: 2;
    --pitch: min(21.5vw, calc((var(--pic-h) - 42vw) / 5));          /* five letters must fit between the top of the wall and the foot of the picture */
    font-size: calc(var(--pitch) / 1.2); line-height: 0.7em; letter-spacing: -0.1em; color: var(--ivory);
  }
  .name span { position: absolute; top: 36vw; line-height: inherit; writing-mode: vertical-rl; text-orientation: upright; text-box: normal; }
  .name-a { left: calc(var(--m) + 6px); }
  .name-b { right: calc(var(--m) + 6px); margin-left: 0; }
  .js .name.intro span { animation: col-in 1.1s var(--ease-out) 0.35s both; }      /* each column is drawn from the top down */
  .js .name.intro .name-b { animation-delay: 0.5s; }
  .hero-say { order: 3; position: static; width: auto; padding: 20px var(--m) 0; font-size: var(--step-lead); color: var(--ink); }
  .hero-act { order: 4; position: relative; left: auto; top: auto; margin: 20px var(--m) 28px; min-height: 52px; }

  .about-facts { margin-top: 40px; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .about-body h2 { margin-bottom: 28px; }
  .bio { font-size: 1.5rem; line-height: 1.22; }
  .bio-cap { width: 4.6em; height: 4.6em; }

  .work-head { display: block; }
  .work-head p { margin-top: 16px; }
  .lot { height: 86svh; }
  .lot-title { flex-direction: column; align-items: center; margin-top: calc(var(--display) * -1); }
  .half { flex: none; padding: 0; }
  .half-l { transform: translateX(calc(var(--t) * -40vw)); }
  .half-r { transform: translateX(calc(var(--t) * 40vw)); }
  .lot-info { max-width: none; right: var(--m); bottom: 20px; }
  .lot-info a { min-height: 44px; }

  .plan-grid { display: block; }
  .plan-pic { padding-top: 32px; }
  .slip-slot { width: 100%; margin-top: 40px; }
  .slip { padding-inline: 20px; }
  .slip-end { margin-inline: -20px; padding-inline: 20px; }

  .poster { padding-top: 56px; }
  .poster-list a { display: block; }
  .poster-word { display: block; }
  .poster-note { display: block; text-align: left; font-size: var(--step-body); margin: 2px 0 22px; }

  .book-grid { display: block; }
  .book-note { margin-top: 48px; grid-template-columns: 1fr 2fr; align-items: start; }

  .contact { min-height: 78svh; }
  .contact-mail { font-size: calc((100vw - 32px) / var(--mail2-em)); white-space: normal; }
  .contact-mail span { display: block; }
  .contact-foot { display: block; margin-top: 40px; }
  .contact-foot ul { margin-top: 16px; flex-direction: column; gap: 12px; }
  .contact-foot a { display: inline-block; padding-block: 6px; }

  .foot-top { row-gap: 40px; }
  .foot-col, .foot-col:first-of-type { grid-column: span 6; }
  .foot-legal { display: block; }
  .foot-up { display: inline-block; margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .nav, .js .hero-pic, .js .hero-pic img, .marquee-run, .js .name span, .js .hero-say, .js .hero-act { animation: none; }
  .hero-pic img { translate: none; scale: none; }
  .name { translate: none; }
  .js .name, .js .name .ch { animation: none; }
  .js [data-rise], .js [data-rise="unveil"] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .js .mask-in { transform: none; visibility: visible; transition: none; }
  .js .slip-slot .slip, .js .slip-slot h3, .js .slip-slot li, .js .slip-slot .slip-end { opacity: 1; transform: none; transition: none; }
  .js .slip-slot li i { transform: translateY(-4px) scaleX(1); transition: none; }
  .pane-l, .pane-r, .half-l, .half-r { transform: none; }
  .nav-mark span, .js .nav-links, .js .nav-links > a, .js .nav-more, .foot-up::after { transition: none; }
  .js .foot-mark[data-rise] { clip-path: none; }
  .js .foot-mark .fm-word { transform: none; transition: none; }
  .js .foot-mark img { clip-path: none; transition: none; }
  .btn, .btn::before, .nav-links a::after, .chips label, .poster-word, .poster-note { transition: none; }
}

/* ================= Version C: the scroll choreography =================
   Every number below (--out, --ink, --x, --p, --mq, --lit, --rev) is written by motion.js from the
   scroll position, already smoothed by the scroll itself, so none of these properties carry transitions.
   Without the script, or with reduced motion, each one rests at its finished value. */

/* Smooth scroll (Lenis) housekeeping */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* The page sits above the footer, so the footer can be uncovered at the end */
main { position: relative; z-index: 1; background: var(--bg); }

/* Scene 1: the about page slides up over the pinned hero. The wall darkens and her name parts. */
@media (min-width: 700px) {
  .stack .hero { position: sticky; top: min(var(--nav-h), calc(100svh - var(--hero-h))); z-index: 0; }
  .stack .about { position: relative; z-index: 1; background: var(--bg); align-content: start; padding-top: clamp(64px, 6vw, 104px); }   /* the heading arrives with the panel */
  .hero::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--slate); opacity: calc(var(--out, 0) * 0.7); pointer-events: none; }
  .name-a { transform: translateX(calc(var(--out, 0) * -6vw)); }
  .name-b { transform: translateX(calc(var(--out, 0) * 6vw)); }
  .hero-say, .hero-act { translate: 0 calc(var(--out, 0) * -5vh); }
}

/* On landscape screens the About panel is a full screen, so it covers the pinned hero completely */
@media (min-width: 700px) and (min-aspect-ratio: 1/1) {
  .stack .about { min-height: calc(100svh - var(--nav-h)); }
}

/* Scene 2: the bio fills in like ink, a few words ahead of the reader */
.ink .bio .w { opacity: calc(0.3 + var(--ink, 1) * 0.7); }

/* Scene 3: the listings. On wide screens a pinned reel travels sideways; each picture drifts inside
   its frame and the small second picture is unveiled as its house reaches the middle. */
.reel { position: relative; }
.reel-track { display: grid; gap: 96px; padding: 0 var(--m) var(--section); }
.slide { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr auto; column-gap: var(--gap); }
.slide-pic { position: relative; overflow: hidden; background: var(--slate); }
.slide-pic img { width: 100%; height: 116%; max-width: none; object-fit: cover; transform: translate3d(0, calc(-6.9% + var(--p, 0) * 6.9%), 0); }
.slide-pic-a { grid-column: 1 / span 7; grid-row: 1 / -1; aspect-ratio: 4 / 5; }
.slide-pic-b { grid-column: 9 / span 4; grid-row: 1; align-self: start; aspect-ratio: 4 / 5; }
.slide-text { grid-column: 9 / span 4; grid-row: 2; padding-top: 28px; }
.slide-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.slide-title { margin: 8px 0 14px; font-size: clamp(2.25rem, 4.4vw, 4.75rem); line-height: 1; letter-spacing: 0.01em; }
.slide-text a { display: inline-block; margin-top: 8px; padding: 10px 0 6px; font-weight: 500; border-bottom: 3px solid var(--rose); transition: color var(--t-quick) var(--ease); }
.slide-text a:hover { color: var(--accent); }

.reel-on .reel-stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); overflow: hidden; display: flex; align-items: center; }
.reel-on .reel-track { display: flex; gap: 7vw; padding: 0 14vw 0 var(--m); transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); will-change: transform; }
.reel-on .slide { flex: none; width: min(84vw, 150svh); height: min(76svh, 80vw); }
.reel-on .slide-pic-a { aspect-ratio: auto; height: 100%; }
.reel-on .slide-pic-b { width: 100%; max-height: 100%; clip-path: inset(0 0 calc(clamp(0, var(--p, 0), 1) * 100%) 0); }
.reel-on .slide-pic img { width: 118%; height: 100%; transform: translate3d(calc(-7.6% + var(--p, 0) * 7.6%), 0, 0); }
.reel-on .slide-text { opacity: calc(1 - clamp(0, var(--p, 0) * 1.6, 0.92)); translate: calc(clamp(0, var(--p, 0), 1) * 10vw) 0; }

/* Scene 4: the moving line speeds up while you scroll */
.marquee-run { translate: calc(var(--mq, 0) * -1px) 0; }

/* Scene 5: services. The line nearest the middle of the screen is lit. */
.poster-list li { --lit: 1; }
.poster-word { color: color-mix(in srgb, var(--ink) calc(30% + var(--lit) * 70%), var(--greige)); }
.poster-list a:hover .poster-word, .poster-list a:focus-visible .poster-word { color: var(--accent); }
.poster-note { opacity: calc(0.7 + var(--lit) * 0.3); }

/* Scene 6: the footer waits under the page and is uncovered; its contents rise to meet you */
.foot-reveal .foot { position: sticky; bottom: 0; z-index: 0; }
.foot-reveal .foot-top, .foot-reveal .foot-mark { translate: 0 calc((1 - var(--rev, 1)) * -14vh); }

@media (max-width: 699px) {
  .reel-track { gap: 72px; }
  .slide { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .slide-pic-a { grid-column: 1; grid-row: 1; }
  .slide-pic-b { grid-column: 1; grid-row: 1; align-self: end; justify-self: end; width: 42%; margin: 0 14px 14px 0; border: 8px solid var(--bg); z-index: 1; }
  .slide-text { grid-column: 1; grid-row: 2; padding-top: 20px; }
  .slide-title { font-size: 2.5rem; }
  .slide-text a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide-pic img { transform: none; height: 100%; }
  .marquee-run { translate: none; }
}
