@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-600-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/hanken-grotesk-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/hanken-grotesk-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/archivo-700-latin.woff2') format('woff2');
}

:root {
  --page: #f8e7d6; /* exact flat fill of the hero background asset */
  --ink: #4a4540;
  --muted: #6f665e; /* secondary text, ≥ 4.5:1 on the page (4.65:1), the same value on every landing page */
  --sage: #9db4b8; /* the brand sage: decorative (fills, rules, underlines); as text ~1.8:1 */
  --sage-ink: #4f6a6f; /* sage for small text: 4.6:1 on the footer (#f3e2cf) */
  /* --muted on paper darker than the page (the hero poster's sheet with its shadow, slide 2's look cards):
     ≥ 4.5:1 under the glyphs there (~4.7:1 at worst) */
  --muted-paper: #665d56;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-tap-highlight-color: transparent;
}
body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

.scrolly {
  position: relative;
  height: 320vh;
}
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
/* decorative daylight: leaf shadows cast from the left, multiplied over the whole
hero (beige, sheet, photos). The image is dark leaves on white, so multiply drops the
white and keeps only the shadow. */
.leafshadow {
  position: absolute;
  left: -8vw;
  top: -2%;
  width: auto;
  height: 104%;
  max-width: none;
  opacity: 0;
  filter: blur(3px);
  pointer-events: none;
  z-index: 6;
  transform-origin: 38% 42%;
  will-change: transform;
  animation: monsteraSway 13.5s cubic-bezier(0.45, 0.05, 0.35, 0.95) infinite alternate;
  transition: opacity 2800ms cubic-bezier(0.22, 0.61, 0.36, 1);
  -webkit-mask-image: linear-gradient(to right, #000 42%, transparent 100%);
  mask-image: linear-gradient(to right, #000 42%, transparent 100%);
}
.leafshadow.is-loaded {
  opacity: 0.38;
}
@media (max-aspect-ratio: 100/115) {
  .leafshadow {
    left: -75vw;
  }
  .leafshadow.is-loaded {
    opacity: 0.26;
  }
}
@keyframes monsteraSway {
  0% {
    transform: translate3d(-2.2%, -0.9%, 0) rotate(-0.72deg) scale(1.018);
  }
  34% {
    transform: translate3d(0.55%, 0.62%, 0) rotate(0.28deg) scale(1.028);
  }
  68% {
    transform: translate3d(2.45%, -0.22%, 0) rotate(0.88deg) scale(1.04);
  }
  100% {
    transform: translate3d(0.85%, 1.05%, 0) rotate(0.46deg) scale(1.03);
  }
}
@media (prefers-reduced-motion: reduce) {
  .leafshadow {
    animation: none;
  }
}
/* the poster is centered in the screen under the fixed header (--hdr-h: its height, site-header.css) */
.stage {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--hdr-h, 0px) / 2);
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(var(--sc, 1));
  z-index: 1;
}
.stage > img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.item {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: center;
  will-change: transform;
  filter: drop-shadow(2px 5px 7px rgba(45, 35, 28, 0.3));
}
.item img {
  display: block;
  width: 100%;
  height: auto;
}
/* progressive image load: every content image starts at opacity 0 and is faded
in by fadeIn() once it decodes, so the unsized/stretched pre-load state is
never shown. The fade is driven imperatively in JS (rAF), not via a CSS
transition: the hero/collage items live on will-change:transform compositing
layers where CSS opacity transitions freeze, but per-frame opacity writes
paint correctly. */

/* sheet copy (sheet: 599..1323 x 48..1013). The wordmark is permanent and
fixed just under the tape — its final resting place above the collage.
The tagline + use-case line form one composed block, vertically centered
in the blank space below the wordmark; they dissolve as the collage
assembles (see the p<0.32 fade in apply()), so "Lookbox" is all that's
left once the items land. */
.brandmark {
  position: absolute;
  left: 961px;
  top: 172px;
  transform: translate(-50%, -50%);
  text-align: center;
}
/* the page's h1 (wordmark + tagline): spans, as an h1 holds phrasing content only, laid out as the divs they
replaced; the h1 drops the UA heading font (its margin is reset by *) */
h1.brandmark {
  font: inherit;
}
.brandmark > span {
  display: block;
}
.brandmark .eyebrow {
  margin-top: 10px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--sage);
}
.brandmark .brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 94px;
  line-height: 1.04;
  color: var(--ink);
}
/* The script places the hero's text (positionText). Until its first placement the text stays hidden
   (visibility, not opacity: no paint, so no frame shows it at its CSS spot and then moves it, a layout shift).
   The script drops .hero-unplaced right after that placement (safety nets: the page script places and shows
   it after 6s without the geometry, the <head> script shows it after 7s should the page script fail); without
   JS (no html.js) the text shows after 2.5s. */
.hero-unplaced :is(.brandmark, .herocopy, .finalcta) {
  visibility: hidden;
}
html:not(.js) .hero-unplaced :is(.brandmark, .herocopy, .finalcta) {
  animation: hero-unplaced-reveal 0s 2.5s forwards;
}
@keyframes hero-unplaced-reveal {
  to {
    visibility: visible;
  }
}
.herocopy {
  position: absolute;
  left: 961px;
  top: 250px;
  height: 700px;
  width: 476px;
  transform: translateX(-50%);
  transform-origin: top center;
  will-change: opacity, transform, filter;
}
/* width:max-content forces the shrink-wrap box to size off actual content
instead of the browser's own auto-width heuristic for abspos+right — Safari's
version of that heuristic can undersize italic webfont text, slicing off the
trailing glyph against the box's own right edge. */
.herocopy .line1 {
  position: absolute;
  left: 0;
  top: 0;
  text-align: left;
  max-width: 66%;
  width: max-content;
}
.herocopy .line2 {
  position: absolute;
  right: 0;
  top: 50%;
  text-align: right;
  max-width: 70%;
  width: max-content;
}
/* the two taglines: one heading face, Cormorant Garamond 600 at one size, roman then the italic accent */
.herocopy .line1 .t {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 1.08;
  color: var(--ink);
}
.herocopy .line2 .t {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 56px;
  line-height: 1.08;
  color: var(--ink);
}
.herocopy .sub {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted-paper);
  max-width: 270px;
  line-height: 1.55;
}
.herocopy .line2 .sub {
  margin-left: auto;
}
.herocopy .diag {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 44%;
  height: 1px;
  background: rgba(74, 69, 64, 0.16);
  transform-origin: left;
}
/* final-state CTA: hidden during the intro, fades in under the wordmark once the
collage has assembled (opacity + position driven by apply()). */
.finalcta {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #fbf7f2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(74, 69, 64, 0.2);
  opacity: 1;
  pointer-events: auto;
  will-change: transform;
}
.finalcta:hover {
  box-shadow: 0 12px 28px rgba(74, 69, 64, 0.28);
}
/* transform is driven by JS every scroll frame (see apply()), so press feedback here
can't use transform — filter/box-shadow instead. */
.finalcta:active {
  filter: brightness(0.9);
  box-shadow: 0 4px 12px rgba(74, 69, 64, 0.22);
}
/* mobile: the diagonal offsets don't fit the narrow band — stack everything
centered so it flows and fills the sheet's free top area. */
body.m .herocopy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-left: 13%;
  padding-right: 13%;
}
body.m .herocopy .line1,
body.m .herocopy .line2 {
  position: static;
  max-width: 100%;
  width: auto;
  text-align: center;
}
body.m .herocopy .line1 {
  margin-bottom: 4px;
}
body.m .herocopy .line2 {
  margin-top: 8px;
}
body.m .herocopy .sub {
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}
body.m .herocopy .diag {
  position: static;
  width: 62%;
  margin: 22px auto;
  transform-origin: center;
}
/* mobile: anchor the scene near the top of the viewport (raise it) instead of
vertically centering, so the sheet + grid sit high and the grid stays visible */
body.m .stage {
  top: calc(50% + var(--hdr-h, 0px) / 2);
  transform: translate(-50%, -50%) scale(var(--sc, 1));
  transform-origin: 50% 50%;
}
/* mobile: the eyebrow's 10px margin scales down to ~5px — give it more air under the wordmark */
body.m .brandmark .eyebrow {
  margin-top: 22px;
}
/* Small screens (body.hero-px, set by JS): fitting the whole poster shrank the copy to 5-10px, so the copy is
counter-scaled by JS (positionText) and the sizes below are real CSS pixels. Three layouts use it:
- phones (portrait, narrower than 600px, body.hero-phone): the stage is scaled so the sheet fills the screen
width (the photo rows below it may run past the fold), the copy stacks on the sheet;
- portrait 600-767px (a Fold's inner screen, small tablets): the whole poster as before, the copy stacks on
the sheet;
- phones in landscape and small near-square touch screens (body.hero-land): the poster on the right, the copy
in a column on the left.
Same specificity as the body.m rules: this block must stay after them. */
body.hero-phone .scrolly .sticky {
  height: max(100vh, var(--hero-h, 100vh));
}
body.hero-phone .stage {
  top: var(--stage-top, 0px);
  transform: translate(-50%, 0) scale(var(--sc, 1));
  transform-origin: 50% 0;
}
body.hero-px .brandmark .brand {
  font-size: clamp(42px, 13vw, 56px);
}
/* a darker shade of --sage on small screens (owner's call): at 12px the brand sage is ~1.9:1 on the sheet and
~1.7:1 on the background, this one ~3.6-3.9:1 */
body.hero-px .brandmark .eyebrow {
  margin-top: 4px;
  font-size: var(--fs-label);
}
body.hero-px .brandmark .eyebrow {
  color: #5f7b80;
}
body.hero-px .herocopy {
  padding-left: 0;
  padding-right: 0;
}
/* one size for both taglines, the mean of the old pair (8vw Hanken, 9.4vw Cormorant): the stack keeps its
height, so each screen keeps its density step */
body.hero-px .herocopy .t {
  font-size: clamp(28px, 8.7vw, 35px);
}
/* body copy at reading size: the footer ink, ≥ 4.5:1 on the sheet */
body.hero-px .herocopy .sub {
  margin-top: 8px;
  font-size: var(--fs-body);
  line-height: 1.45;
  max-width: 30ch;
  color: #6b625b;
  text-wrap: balance;
}
body.hero-px .herocopy .diag {
  margin: 18px auto;
}
body.hero-px .finalcta {
  min-height: 48px;
  padding: 0 26px;
  font-size: var(--fs-body);
}
/* phones in landscape: the poster sits on the right (translated and scaled by JS), the copy is a centered
column on the left, on the background rather than the sheet */
body.hero-land .stage {
  left: 0;
  top: 0;
  transform: translate(var(--stage-x, 0px), var(--stage-y, 0px)) scale(var(--sc, 1));
  transform-origin: 0 0;
}
body.hero-land .herocopy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
body.hero-land .herocopy .line1,
body.hero-land .herocopy .line2 {
  position: static;
  max-width: 100%;
  width: auto;
  text-align: center;
}
/* the copy sits beside the sheet here, so the sheet gets its wordmark back: the desktop poster's serif
"Lookbox", scaled with the poster (no counter-scale), centered in the free space above the collage. A copy of
the column's wordmark, hidden from screen readers. */
.sheetmark {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 94px;
  line-height: 1.04;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
}
body.hero-land .sheetmark {
  display: block;
}
/* no rule between the two lines in the column: the space between them is enough, and a landscape phone has
no height to spare */
body.hero-land .herocopy .line2 {
  margin-top: 16px;
}
body.hero-land .herocopy .sub {
  margin-left: auto;
  margin-right: auto;
  line-height: 1.35;
}
body.hero-land .herocopy .diag {
  display: none;
}
body.hero-land .brandmark .brand {
  font-size: 40px;
}
body.hero-land .herocopy .t {
  font-size: 28px;
}
/* Two denser steps, picked by JS (positionTextPhone / positionTextLand) when the copy does not fit at the step
above:
compact (short phones like the iPhone SE) tightens the tagline block's spacing, tight (a 280px Fold cover,
split screen, large display zoom) also sets a smaller wordmark and taglines (the captions and the CTA keep the
body size). A class rather than a media query, so the CSS
always matches the spacing the JS laid the stack out with. */
body.hero-compact .herocopy .sub {
  margin-top: 6px;
  line-height: 1.4;
}
body.hero-compact .herocopy .diag {
  margin: 12px auto;
}
body.hero-tight .brandmark .brand {
  font-size: 38px;
}
body.hero-tight .finalcta {
  min-height: 44px;
  padding: 0 18px;
}
body.hero-tight .herocopy .t {
  font-size: 23px;
}
body.hero-tight .herocopy .diag {
  margin: 8px auto;
}
/* the last landscape step, a column under ~300px tall: the captions give way to the headlines and the CTA */
body.hero-mini .herocopy .sub {
  display: none;
}
/* ---------------- section 2: wardrobe -> looks ---------------- */
.scrolly2 {
  position: relative;
  height: 300vh;
}
.scrolly2 .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  /* the screen with the browser's bars shown (iOS: 100vh is the screen without them), as fit2() measures */
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage2 {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--hdr-h, 0px) / 2);
  transform: translate(-50%, -50%) scale(var(--sc2, 1));
}
.sheetimg {
  position: absolute;
  display: block;
}
.gitem {
  position: absolute;
  will-change: opacity, filter;
}
.gitem img,
.fitem img {
  display: block;
  width: 100%;
  height: auto;
}
.fitem {
  position: absolute;
  z-index: 6;
  will-change: transform;
  filter: drop-shadow(2px 5px 7px rgba(45, 35, 28, 0.22));
}
/* ---- look card (taped craft-paper slot) ---- */
.nichewrap {
  position: absolute;
  z-index: 3;
}
.lookcard {
  position: absolute;
  inset: 0;
}
.lc-paper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.lc-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11%;
  z-index: 2;
  text-align: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted-paper);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
.filled .lc-name {
  opacity: 1;
  transform: none;
}
.s2copy {
  position: absolute;
  will-change: opacity, transform;
}
.s2copy h2 {
  margin-top: 18px;
  font-weight: 400;
}
/* the heading: Cormorant Garamond 600 at one size, roman then the italic accent (as "How Lookbox works") */
.s2copy h2 .hs {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 1.08;
  color: var(--ink);
}
.s2copy h2 .hi {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 56px;
  line-height: 1.08;
  color: var(--ink);
}
.s2copy .lead2 {
  margin-top: 24px;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty; /* no one-word last line */
}
.s2copy .occ {
  margin-top: 26px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--faint);
  line-height: 2;
  white-space: normal;
  text-wrap: balance; /* two even lines where the 12px tags wrap, not one word alone */
}
.s2copy .cta2 {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: var(--fs-body);
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #fbf7f2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(74, 69, 64, 0.2);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.s2copy .cta2:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(74, 69, 64, 0.26);
}
.s2copy .cta2:active {
  transform: scale(0.96);
  box-shadow: 0 4px 12px rgba(74, 69, 64, 0.22);
}
/* Landscape screens too short for the copy beside the sheet under the site header (phones in landscape):
fitCopy2() takes the first step that fits, so where the copy fits nothing changes. Smaller type and spacing (the
text scale's lower steps, the lead not under 14px; the 12px tags as on every screen), the CTA stays a 44px
target. */
.s2copy.s2-compact h2 .hs,
.s2copy.s2-compact h2 .hi {
  font-size: 32px;
}
.s2copy.s2-compact .lead2 {
  margin-top: 12px;
  font-size: var(--fs-small);
  line-height: 1.5;
}
.s2copy.s2-compact .occ {
  margin-top: 12px;
}
.s2copy.s2-compact .cta2 {
  margin-top: 16px;
  font-size: var(--fs-small);
  padding: 13px 24px;
}
/* the 12px tags take a line more than the old 10px ones: a smaller heading and tighter lines pay for it, so
   every screen keeps its step and its pin (the lead stays at 14px, above the tags) */
.s2copy.s2-tight h2 .hs,
.s2copy.s2-tight h2 .hi {
  font-size: 24px;
}
.s2copy.s2-tight .lead2 {
  margin-top: 8px;
  line-height: 1.45;
}
.s2copy.s2-tight .occ {
  margin-top: 8px;
  line-height: 1.4;
}
.s2copy.s2-tight .cta2 {
  margin-top: 10px;
}
/* past the last step (a landscape phone ~320px tall) the slide is not pinned: a block as tall as its copy
(fitCopy2() sets the height), scrolled past like a page, the scene showing the assembled looks */
.scrolly2.s2-flow {
  height: auto;
}
.scrolly2.s2-flow .sticky {
  position: relative;
}
/* mobile: copy baked into the scaled stage above the wardrobe (see the JS mobile branch) */
body.m .s2copy .hs {
  font-size: 58px;
  line-height: 1.08;
}
body.m .s2copy .hi {
  font-size: 58px;
  line-height: 1.08;
}
body.m .s2copy h2 {
  margin-top: 0;
}
body.m .s2copy .lead2 {
  font-size: 31px;
  max-width: none;
  margin-top: 30px;
  line-height: 1.5;
}
body.m .s2copy .occ {
  font-size: 23px;
  white-space: normal;
}
body.m .lc-name {
  font-size: 23px;
}
body.m .s2copy .cta2 {
  font-size: 32px;
  padding: 24px 50px;
  margin-top: 38px;
  box-shadow: 0 14px 30px rgba(74, 69, 64, 0.22);
}
@media (prefers-reduced-motion: reduce) {
  .scrolly {
    height: auto;
  }
  /* relative, not static: the sticky box stays the containing block that clips the stage and the leaf
     shadow, else they widen the page (on a phone the layout viewport grew past 800px) */
  .sticky {
    position: relative;
    height: 100vh;
  }
}

/* ---------------- try-on: a store photo + the wardrobe -> three looks (between slides 2 and 3, pinned) ---------------- */
/* Pinned as slide 2: 300vh of scroll, the slide's box (100svh, under the site header) held at the screen's top while
   the scene plays. The copy beside the scene (landscape and wide screens) or above it (portrait phones and tablets,
   the same choice as fitTryon's in home-scene.js); the scene's box takes the rest, and fitTryon() scales the stage,
   laid out in its own px, into it. */
.tryon {
  position: relative;
  height: 300vh;
}
.to-sticky {
  position: sticky;
  top: 0;
  /* the screen with the browser's bars shown (iOS: 100vh is the screen without them), as slide 2 */
  height: 100vh;
  height: 100svh;
  padding-top: var(--hdr-h, 0px);
  overflow: hidden;
  display: flex;
}
.to-main {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 64px);
  padding: 16px clamp(18px, 5vw, 96px);
}
.to-copy {
  flex: 0 0 clamp(240px, 28vw, 440px);
}
.to-scene {
  position: relative;
  flex: 1;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
}
/* portrait phones and tablets, portrait windows at least 1.3 times as tall as wide (fitTryon's toTall), and a
   landscape screen under 500px tall (below): the copy centred above the scene */
@media (max-width: 1099.98px) and (orientation: portrait),
  (orientation: portrait) and (max-aspect-ratio: 10/13),
  (orientation: landscape) and (max-height: 500px) {
  .to-main {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(12px, 3vh, 32px);
    gap: clamp(12px, 3svh, 32px);
  }
  .to-copy {
    flex: none;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
  }
  .to-lead {
    margin-left: auto;
    margin-right: auto;
  }
}
.to-eyebrow {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--sage-ink);
}
.to-copy h2 {
  margin-top: 14px;
  font-weight: 400;
}
/* the heading pair is slide 3's (one rule below); its size here */
.tryon .to-copy .hs,
.tryon .to-copy .hi {
  font-size: clamp(28px, 2.2vw + 14px, 46px);
  line-height: 1.1;
}
.to-lead {
  margin-top: 20px;
  max-width: 40ch;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
/* a landscape screen under 500px tall (a phone turned): not pinned, the copy above the scene, the scene the page's
   width (the strip composition's aspect: all on screen), played as it scrolls into view (fitTryon's choice too) */
@media (orientation: landscape) and (max-height: 500px) {
  .tryon {
    height: auto;
  }
  /* in the page's flow, no room kept for the header: the header script resets --hdr-h on resize, after the page
     has re-laid out, and the slide's height would change a second time under the visitor */
  .to-sticky {
    position: relative;
    height: auto;
    padding-top: 0;
  }
  .to-main {
    padding-top: 24px;
    padding-bottom: 32px;
  }
  .to-scene {
    flex: none;
    aspect-ratio: 1700 / 452;
  }
}
/* short screens (landscape phones, small portrait phones): tighter copy, the lead not under 14px, the CTA a 44px
   target */
@media (max-height: 540px), (max-width: 599.98px) and (max-height: 760px) {
  .to-eyebrow {
    display: none;
  }
  .to-copy h2 {
    margin-top: 0;
  }
  .tryon .to-copy .hs,
  .tryon .to-copy .hi {
    font-size: 26px;
  }
  .to-lead {
    margin-top: 8px;
    font-size: var(--fs-small);
    line-height: 1.45;
  }
  .tryon .to-cta {
    margin-top: 12px;
    font-size: var(--fs-small);
    /* slide 2's compact CTA's: a 44px target */
    padding: 13px 24px;
  }
}
/* a short portrait phone (an iPhone SE with Safari's bars): the heading and the CTA, the scene the room the lead
   took (else its labels went under 9px) */
@media (orientation: portrait) and (max-height: 600px) {
  .to-lead {
    display: none;
  }
}
/* with reduced motion the slide is not pinned: one screen, the assembled looks; without the script there is no
   scene to show (its pieces are laid out and loaded by it): only the copy */
@media (prefers-reduced-motion: reduce) {
  .tryon {
    height: auto;
  }
  .to-sticky {
    position: relative;
  }
  .tryon .lc-name {
    transition: none;
  }
}
/* without the script (.to-static in the markup), or with no cutouts' ratios (failed, or not in 6s), only the copy,
   not pinned */
.tryon.to-static {
  height: auto;
}
.tryon.to-static .to-sticky {
  position: relative;
  height: auto;
}
.tryon.to-static .to-scene {
  display: none;
}
.to-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
/* the instant photo: cream paper, the photo inset, a strip below it where the verdict is written */
.to-pol,
.to-ward {
  position: absolute;
  z-index: 1;
  background: #fbf7f2;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(45, 35, 28, 0.12),
    4px 14px 26px rgba(45, 35, 28, 0.18);
}
.to-photo {
  position: absolute;
  overflow: hidden;
  background: #e9dfd2;
}
.to-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* the jacket is lifted off: its cut-out copies (.to-fly) are over the empty hanger */
.to-pol.lifted .to-shot {
  visibility: hidden;
}
/* the empty hanger only under the lifted jacket (it can load first) */
.to-pol:not(.lifted) .to-shot-empty {
  visibility: hidden;
}
.to-strip {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  opacity: 0;
}
.to-verdict {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, calc(22px * var(--to-k, 1)), 44px);
  line-height: 1;
  color: var(--ink);
}
/* The scene's text is sized against the stage's scale (--to-k: stage px per screen px, fitTryon): at 1:1 the page's
   sizes (the meta 16px, the labels 12px), scaled down at least 12px on screen, up to what the photo's strip and
   the cards hold. */
.to-meta {
  font-size: clamp(16px, calc(12px * var(--to-k, 1)), 24px);
  line-height: 1.3;
  color: var(--muted-paper);
  /* on two even lines where the scaled-down scene's larger type takes them (the photo's strip holds two) */
  padding: 0 10px;
  text-wrap: balance;
}
/* the strip composition is scaled furthest down: its text up to larger */
.tryon[data-layout='strip'] .to-meta {
  font-size: clamp(16px, calc(12px * var(--to-k, 1)), 28px);
}
.tryon[data-layout='strip'] .to-wlabel {
  font-size: clamp(12px, calc(12px * var(--to-k, 1)), 34px);
}
/* the wardrobe: the pieces on the paper, its label in the band below them */
.to-witem,
.to-fly {
  position: absolute;
}
/* the wardrobe's pieces and their copies landed in the cards (.landed: applyTryon) */
.to-witem,
.to-fly.landed {
  filter: drop-shadow(1px 3px 4px rgba(45, 35, 28, 0.18));
}
.to-witem img,
.to-fly img {
  display: block;
  width: 100%;
  height: 100%;
}
.to-wlabel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5%;
  text-align: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(12px, calc(12px * var(--to-k, 1)), 24px);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted-paper);
}
.to-card {
  position: absolute;
  z-index: 2;
}
/* the card's paper and tape are cut out clean (assets/tryon/look-card.webp); its shadow is drawn here */
.to-card .lc-paper {
  filter: drop-shadow(3px 8px 10px rgba(45, 35, 28, 0.2));
}
.to-fly {
  left: 0;
  top: 0;
  will-change: transform;
}
/* the cards' labels: slide 2's look-card label, sized here (more specific than slide 2's body.m rule), no wider than
   the card's paper: the longest, EVERYDAY, takes about 0.105 of the card's width (24px on the 240px cards, 19px on
   the portrait composition's 186px ones), so on the most scaled-down scenes they go under 12px on screen */
.tryon .to-card .lc-name {
  font-size: clamp(12px, calc(12px * var(--to-k, 1)), 24px);
}
.tryon[data-layout='tall'] .to-card .lc-name {
  font-size: clamp(12px, calc(12px * var(--to-k, 1)), 19px);
}

/* ---------------- section 3: scroll-through screenshot stack ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* without the script nothing reveals it: shown as is */
html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

.scrolly3 {
  position: relative;
  /* 80vh of scroll per sheet change (three changes for four sheets), as with three sheets in 260vh */
  height: 340vh;
}
/* the slide's content sits under the fixed site header (--hdr-h: its height, site-header.css) */
.s3sticky {
  position: sticky;
  top: 0;
  /* the screen with the browser's bars (on iOS 100vh is without them), as slide 2 */
  height: 100vh;
  height: 100svh;
  padding-top: var(--hdr-h, 0px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.s3-main {
  --copyW: clamp(340px, 23vw, 410px);
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
}
.s3-copy {
  flex: 0 0 auto;
  width: var(--copyW);
  padding: 0 2vw 0 clamp(24px, 5vw, 96px);
}
/* the heading: Cormorant Garamond 600 at one size, roman then the italic accent; the size is the mean of the
   old pair (Hanken 2.05vw, Cormorant 2.6vw), so the column keeps its height and the slide its pin/flow choice */
.s3-copy .hs,
.to-copy .hs {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(22px, 2.3vw, 35px);
  line-height: 1.14;
  color: var(--ink);
}
.s3-copy .hi,
.to-copy .hi {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 2.3vw, 35px);
  line-height: 1.14;
  color: var(--ink);
  padding-bottom: 0.06em;
}
.s3-lead {
  margin-top: 22px;
  max-width: 42ch;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--muted);
}
.s3-cta,
.to-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 32px;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: var(--fs-body);
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fbf7f2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(74, 69, 64, 0.2);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.s3-cta:hover,
.to-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(74, 69, 64, 0.26);
}
.s3-cta:active,
.to-cta:active {
  transform: scale(0.96);
  box-shadow: 0 4px 12px rgba(74, 69, 64, 0.22);
}

/* Get the app. Мышь: QR слева, значки сторов столбиком справа (44 + 24 + 44 = 112 — верх и низ значков
   совпадают с QR). Тач и портрет — ниже, в @media (pointer: coarse). */
.s3-get {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 24px;
}
/* Фирменный QR (ведёт на lookbox.style/get), как есть: без подложки, тени, скругления и подписи */
.s3-qr {
  display: block;
  flex: none;
  width: 112px;
  height: 112px;
}
.s3-stores {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
/* Официальные значки сторов без изменений (правила Apple и Google): одна видимая высота, App Store первым,
   чёрный значок Apple рядом с другими сторами, поле вокруг не меньше 1/4 высоты (11px при 44px).
   Ширина натуральная, до одной ширины не растягиваем. Анимировать значки нельзя, поэтому без hover-эффектов. */
.storebadge {
  --bh: 44px;
  display: block;
  height: var(--bh);
  line-height: 0;
}
.storebadge img {
  display: block;
  height: 100%;
  width: auto;
}
/* PNG Google Play: значок 564x168 с прозрачным полем 41px по краям. Поле срезаем, видимая высота = --bh */
.storebadge-gp {
  aspect-ratio: 564 / 168;
  overflow: hidden;
}
.storebadge-gp img {
  height: calc(var(--bh) * 250 / 168);
  max-width: none;
  margin: calc(var(--bh) * -41 / 168);
}
/* Тач и портрет: QR не нужен (сканировать собственный экран незачем). Значок только своей платформы —
   класс platform-ios / platform-android на <html> ставит скрипт в <head> по user agent; без скрипта и на
   неизвестной платформе видны оба. Веб открывает кнопка «Open Lookbox» над ними. */
@media (pointer: coarse), (max-aspect-ratio: 100/115) {
  .s3-get {
    flex-direction: column;
    align-items: flex-start;
  }
  .s3-qr {
    display: none;
  }
  .s3-stores {
    gap: 12px; /* оба значка (без скрипта): поле не меньше 1/4 высоты */
  }
  .platform-ios .storebadge-gp,
  .platform-android .storebadge-as {
    display: none;
  }
}
/* В приложении (?app=1, in-app.js) приложение у посетителя уже есть: группы «Get the app» нет вовсе — ни QR
   (ведёт на /get, оттуда в оба стора), ни значков (Google Play внутри iOS-приложения недопустим, и наоборот;
   на Mac с UA Macintosh платформа и не определяется) */
.in-app .s3-get {
  display: none;
}

.s3-right {
  --sheetW: min(calc(100vw - var(--copyW) - 36px), calc(150vh - 285px));
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.7vh, 22px);
}
/* The sheets are decorative. Flipped-away sheets go transparent but stay hit-testable, and in portrait
they drift over the store badges and swallow taps, so the stack never takes pointer events */
.s3-stack {
  pointer-events: none;
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: calc(var(--sheetW) / 1.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.s3sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  width: var(--sheetW);
  aspect-ratio: 1536/1024;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(10px 14px 16px rgba(45, 35, 28, 0.22));
  --paper-l: 7.9%;
  --paper-r: 9.2%;
  --paper-t: 13.8%;
  --paper-b: 12.9%;
}
.s3-inner {
  position: absolute;
  left: var(--paper-l);
  right: var(--paper-r);
  top: var(--paper-t);
  bottom: var(--paper-b);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4%;
}
.s3-vspace {
  flex: 0 0 0;
  height: 0;
  width: 100%;
}
.s3-title {
  flex: 0 0 auto;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(16px, 1.7vw, 25px);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: 0.002em;
}
/* the stack sized by the slide script (--sw: the sheet's width): the caption scales with the sheet, 12px+ */
.s3-stack.s3-sized .s3-title {
  font-size: clamp(12px, calc(var(--sw) / 26), 25px);
}
.s3-devices {
  flex: 1;
  min-height: 0;
  width: 100%;
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6%;
}
.s3dev {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow:
    0 12px 24px -10px rgba(74, 69, 64, 0.3),
    0 3px 8px -4px rgba(74, 69, 64, 0.18);
}
.s3dev img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s3dev.mobile {
  height: min(99cqh, 42cqw);
  aspect-ratio: 1170/2532;
  border-radius: clamp(5px, 0.6vw, 9px);
}
.s3dev.desktop {
  height: min(99cqh, 42cqw);
  aspect-ratio: 16/10;
  border-radius: clamp(5px, 0.6vw, 9px);
}

/* portrait: text on top, mobile screens, then desktop screens (no pinning/flip) */
@media (max-aspect-ratio: 100/115) {
  .s3-main {
    flex-direction: column;
    justify-content: center;
    gap: clamp(24px, 4.4vh, 50px);
    padding: 6vh 18px 3vh;
  }
  .s3-copy {
    flex: none;
    width: auto;
    max-width: none;
    padding: 0;
    text-align: center;
  }
  .s3-copy .hs {
    white-space: nowrap;
  }
  .s3-copy .hs,
  .s3-copy .hi {
    font-size: min(6vw, 31px);
  }
  .s3-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .s3-cta {
    margin-top: 24px;
  }
  .s3-get,
  .s3-stores {
    align-items: center;
  }
  .s3-right {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    gap: 12px;
  }
  .s3-stack {
    flex: 0 0 auto;
    width: min(98vw, 640px);
    height: calc(min(98vw, 640px) / 1.5);
  }
  .s3sheet {
    width: 100%;
  }
}

/* Слайд не влезает в экран (класс s3-flow на #scrolly3 ставит скрипт слайда): закреплённый слайд — это 100vh
   с overflow: hidden, где помещаются колонка текста (в портрете ещё и стопка) под фиксированной шапкой
   (--hdr-h); футера в нём нет, он в конце страницы. На низких экранах (телефон в ландшафте, телефон с панелями
   браузера, невысокое окно) колонка не влезала: центрированная, она вылезала сверху и снизу, заголовок срезало.
   Тогда слайд не закрепляется и идёт обычным потоком: экран с текстом и стопкой (не ниже экрана; место под
   шапку — тот же padding-top у .s3sticky, что и в закреплённом слайде), под ним «How Lookbox works». Отступы
   колонки плотнее, чтобы она по возможности влезала в экран целиком. */
.s3-flow {
  height: auto;
}
.s3-flow .s3sticky {
  position: relative;
  height: auto;
  overflow: visible;
  /* сдвинутые листы стопки не дают горизонтального скролла: hidden для Safari до 16, clip там, где есть */
  overflow-x: hidden;
  overflow-x: clip;
}
.s3-flow .s3-main {
  flex: none;
  box-sizing: border-box;
  min-height: calc(100vh - var(--hdr-h, 0px));
  min-height: calc(100svh - var(--hdr-h, 0px));
  padding-top: 8px;
  padding-bottom: 8px;
}
.s3-flow .s3-lead {
  margin-top: 10px;
  line-height: 1.5;
}
.s3-flow .s3-cta {
  margin-top: 16px;
}
.s3-flow .s3-get {
  margin-top: 14px;
}
/* Поток в ландшафте, где колонка рядом с текстом слишком узка для стопки (почти квадратное окно): стопка под
   текстом во всю ширину */
.s3-under .s3-main {
  flex-wrap: wrap;
}
.s3-under .s3-right {
  flex: 0 0 100%;
  height: auto;
}
/* Закреплённый портрет, стопку подгоняет скрипт слайда: колонка и стопка делят высоту без своих отступов слайда
   (до шапки и низа экрана зазоры держит скрипт), между ними 12px */
.s3-fill .s3-main {
  padding-top: 0;
  padding-bottom: 0;
  row-gap: 12px;
}

/* the page's last block, after "How Lookbox works" */
.footer {
  background: #f3e2cf;
  border-top: 1px solid rgba(74, 69, 64, 0.1);
  padding: 20px clamp(24px, 6vw, 120px) 18px;
}
.footer-in {
  max-width: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.footer .mark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 0.9;
  color: var(--ink);
}
.footer .tag {
  margin-top: 7px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--sage-ink);
}
.footer nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: baseline;
}
.footer nav a {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: var(--fs-small);
  color: #6b625b; /* контраст ≥ 4.5:1 — юридическая навигация */
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer nav a:hover {
  color: var(--ink);
}
.footer .base {
  width: 100%;
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(74, 69, 64, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--fs-legal);
  color: #6b625b; /* контраст ≥ 4.5:1 (был #b3a797 — 1.9:1) */
}
/* the trademark line the store badges' rules ask for (Apple, Google), right above the footer's bottom row */
.footer .legal {
  margin-top: 16px;
  max-width: 708px;
  font-size: var(--fs-legal);
  line-height: 1.5;
  color: #6b625b;
}
@media (max-width: 760px) {
  .footer {
    padding: 20px 20px 16px;
  }
  .footer .mark {
    font-size: 32px;
  }
  .footer nav {
    gap: 16px;
  }
}
/* Портретные viewport, которым не хватает высоты: телефоны до 800px (в браузере это почти любой телефон —
   панели Safari/Chrome съедают 40–100px экрана) и окна шире 430px до 950px (планшеты 7–8" в портрете, узкие
   окна десктопа: стопка там шире и выше, на dev 600x841 срезало заголовок). Без этого блока слайд «anywhere»
   не помещался в 100vh: центрированная колонка прятала первую строку заголовка, а стопка скриншотов уходила
   за низ экрана. Ужимаем отступы, а стопку уменьшаем плавно вместе с высотой (как --sheetW на десктопе),
   ничего не скрывая. */
@media (max-aspect-ratio: 100/115) and (max-height: 800px),
  (max-aspect-ratio: 100/115) and (min-width: 431px) and (max-height: 950px) {
  .s3-main {
    padding: 3vh 18px 2vh;
    gap: clamp(14px, 2.4vh, 24px);
  }
  .s3-lead {
    margin-top: 12px;
    line-height: 1.55;
  }
  .s3-cta,
  .s3-get {
    margin-top: 16px;
  }
  .s3-stack {
    --sw: min(98vw, 640px, max(44vw, calc(150vh - 700px)));
    width: var(--sw);
    height: calc(var(--sw) / 1.5);
  }
  /* В маленькой стопке (до ~220px) заголовок листа 16px переносился на две строки и съедал скриншоты */
  .s3-title {
    font-size: clamp(12px, calc(var(--sw) / 14), 16px);
  }
}
/* Шесть ссылок футера (Pricing, Terms, Privacy, Refunds, Support, Contact) — в одну строку на телефонах до
   400px: ссылки растягиваются на всю ширину (space-between), кегль 12px (--fs-legal), зазор минимальный;
   если шрифт не успел загрузиться и строка не влезла, ссылки переносятся без горизонтального скролла. */
@media (max-width: 400px) {
  .footer nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px 6px;
  }
  .footer nav a {
    font-size: var(--fs-legal);
  }
}

/* How Lookbox works (design handoff «How it works», variant 2a): a text section after the last slide, the
   page's text for search and for visitors who read on. One h2, steps h3, questions h4 in <summary>; the answers
   are in <details>, so they are in the HTML (indexable) while collapsed. The prints are owner-approved images
   (assets/how-it-works/, the whole 504x504 print with its cream paper), decorative: the text carries the
   meaning. Breakpoints: from 1120px the heading has its own column; 704-1119px everything is stacked, the four
   steps in two rows of two (one row of four from 1760px) with the 168px print above; below 704px the print (140px) is left of the title; below 600px it
   is 104px (88px below 362px) and the step text runs full width under it. Side margins: the footer's below it
   (clamp(24px, 6vw, 120px), 20px up to 760px), so one left edge runs through the section and the footer; the
   safe area + 16px would count only with viewport-fit=cover, which the landing does not set. Wider than 1440px
   the section spans the footer's width too (the same left and right edges): the heading column on the left,
   the steps across the rest with their text at most 40ch, the questions at most 900px (so their + stays near
   the question). Up to 1440px those limits are wider than the columns, so nothing changes there. */
.hiw {
  --hair: rgba(74, 69, 64, 0.14);
  --clay: #b5694f;
  --cream: #fbf7f2;
  /* the footer's horizontal padding (.footer) */
  --gut: clamp(24px, 6vw, 120px);
}
.hiw {
  border-top: 1px solid var(--hair);
  padding: 56px max(var(--gut), calc(env(safe-area-inset-right) + 16px)) 48px
    max(var(--gut), calc(env(safe-area-inset-left) + 16px));
  color: var(--ink);
}
/* an anchor or a focused question lands under the fixed site header, not behind it */
.hiw h2,
.hiw summary {
  scroll-margin-top: calc(var(--hdr-h, 0px) + 12px);
}
.hiw-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.hiw-row + .hiw-row {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--hair);
}
.hiw h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.08;
  text-wrap: balance;
}
.hiw h2 em {
  font-style: italic;
}
.hiw-lead {
  margin-top: 12px;
  max-width: 34ch;
  font-size: var(--fs-body);
  line-height: 1.6;
  text-wrap: pretty;
}
.hiw-steps {
  list-style: none;
  display: grid;
  /* four steps in two rows: up to 1760px four in a row leave each step too narrow (the print 168px, the text) */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
}
.hiw-step {
  display: flex;
  flex-direction: column;
}
.hiw-print {
  position: relative;
  width: 168px;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(74, 69, 64, 0.12),
    0 10px 20px -10px rgba(74, 69, 64, 0.32);
}
.hiw-step:nth-child(1) .hiw-print {
  transform: rotate(-1.6deg);
}
.hiw-step:nth-child(2) .hiw-print {
  transform: rotate(1.2deg);
}
.hiw-step:nth-child(3) .hiw-print {
  transform: rotate(-0.9deg);
}
.hiw-step:nth-child(4) .hiw-print {
  transform: rotate(1.4deg);
}
/* the whole print, its paper included (504x504: 168px at 3x) */
.hiw-print img {
  display: block;
  width: 100%;
  height: 100%;
}
/* viewfinder corners on the step 1 print, over the image */
.hiw-mark {
  position: absolute;
  width: 13%;
  height: 13%;
  border: 0 solid rgba(74, 69, 64, 0.5);
}
.hiw-mark.tl {
  top: 9%;
  left: 9%;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
}
.hiw-mark.tr {
  top: 9%;
  right: 9%;
  border-top-width: 1.5px;
  border-right-width: 1.5px;
}
.hiw-mark.bl {
  bottom: 9%;
  left: 9%;
  border-bottom-width: 1.5px;
  border-left-width: 1.5px;
}
.hiw-mark.br {
  bottom: 9%;
  right: 9%;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
}
.hiw-step-t {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 22px;
}
.hiw-no {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  color: var(--clay);
  /* Cormorant's default old-style 1 reads as an I: lining figures, as in the handoff */
  font-variant-numeric: lining-nums;
}
.hiw h3 {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.4;
}
.hiw-step p,
.hiw-a p {
  font-size: var(--fs-small);
  line-height: 1.65;
  text-wrap: pretty;
}
.hiw-step p {
  margin-top: 6px;
}
.hiw .hiw-qh {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
}
.hiw-q {
  font: inherit;
}
.hiw-acc {
  border-bottom: 1px solid var(--hair);
}
.hiw-acc details {
  border-top: 1px solid var(--hair);
}
/* the row's own rule is just above: no second one over the first question */
.hiw-acc details:first-child {
  border-top: 0;
}
.hiw-acc summary {
  list-style: none;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  cursor: pointer;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.4;
}
.hiw-acc summary::-webkit-details-marker {
  display: none;
}
.hiw-acc summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}
.hiw-ic {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}
.hiw-ic::before,
.hiw-ic::after {
  content: '';
  position: absolute;
  background: var(--ink);
}
.hiw-ic::before {
  left: 3px;
  right: 3px;
  top: 9.25px;
  height: 1.5px;
}
.hiw-ic::after {
  top: 3px;
  bottom: 3px;
  left: 9.25px;
  width: 1.5px;
}
.hiw-acc details[open] .hiw-ic::after {
  display: none;
}
.hiw-a {
  padding: 0 36px 20px 0;
  max-width: 68ch;
}
/* wide desktop: heading column + content column */
@media (min-width: 1120px) {
  .hiw-row {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
  }
}
/* wider than 1440px: the section spans the footer's width (owner's decision 2026-10-21, variant B) */
@media (min-width: 1441px) {
  .hiw-step p {
    max-width: 40ch;
  }
  .hiw-acc {
    max-width: 900px;
  }
}
/* four steps in a row once each column is about 220px wide: narrower, the step text wraps into a tall strip */
@media (min-width: 1760px) {
  .hiw-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* the footer's padding up to 760px */
@media (max-width: 760px) {
  .hiw {
    --gut: 20px;
  }
}
/* below ~700px the prints move left of the step title */
@media (max-width: 703px) {
  .hiw-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .hiw-step {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    grid-template-areas: 'p t' 'p b';
    /* the print spans both rows: the text row takes the rest, so the text sits right under the title */
    grid-template-rows: auto 1fr;
    column-gap: 28px;
    row-gap: 8px;
    align-items: start;
  }
  .hiw-print {
    grid-area: p;
    width: 140px;
  }
  .hiw-step-t {
    grid-area: t;
    margin-top: 0;
  }
  .hiw-step p {
    grid-area: b;
    margin-top: 0;
  }
}
/* phones */
@media (max-width: 599px) {
  .hiw {
    padding-top: 40px;
    padding-bottom: 36px;
  }
  .hiw-row {
    gap: 28px;
  }
  .hiw-row + .hiw-row {
    margin-top: 36px;
    padding-top: 28px;
  }
  .hiw h2 {
    font-size: 28px;
  }
  .hiw-step {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-areas: 'p t' 'b b';
    column-gap: 18px;
    row-gap: 14px;
    align-items: center;
  }
  .hiw-print {
    width: 104px;
  }
}
@media (max-width: 361px) {
  .hiw-step {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .hiw-print {
    width: 88px;
  }
}
