/* The promotional page for the four looks (public/looks.html): the studio's type (Figtree) and colours (ink, bronze,
   amber on warm paper). A hero with the four phones fanned out, one section per look (its desktop picture in a browser
   frame, its phone picture over the corner, alternating sides), a comparison table and a dark closing band. */
:root {
  --ink: #1b1712; --ink-2: #463b31; --mute: #74685c; --line: rgba(27, 23, 18, .1);
  --paper: #f6f2ec; --card: #fffdfa; --bronze: #8a5a2b; --amber: #e0a96e;
  --pad: clamp(20px, 5vw, 72px); --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 16px/1.55 Figtree, 'Figtree fallback', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
/* Every language wraps differently: body copy never ends on one lonely word, and a button or link evens out its
   lines, so its arrow never sits alone on the second one (home.js also glues the arrow to the last word). */
p, li, dd, figcaption { text-wrap: pretty; }
a, button { text-wrap: balance; }
/* Korean breaks between words, as its readers expect, not inside one (the browser's default splits syllables) */
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; } /* a word longer than the line still breaks */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 6px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; height: 68px; padding: 0 var(--pad); background: rgba(246, 242, 236, .88); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.brand { flex: none; display: inline-flex; align-items: baseline; gap: 10px; color: inherit; text-decoration: none; white-space: nowrap; } /* baseline: an inline SVG's baseline is its bottom edge, which is the wordmark's baseline (plus the o's 0.4-unit overshoot), so "sauna studio" sits on the same line as "castomo" */
.brand .logo { display: block; width: auto; height: 20px; flex: none; position: relative; inset-block-start: 0.35px; } /* inline SVG (public/img/castomo.svg, test/logo.test.ts), sharp at any zoom where an <img> was resampled. The o and s dip 0.41 of its 23.77 units below the baseline; nudging it down by that puts the wordmark's true baseline on the row's, under "sauna studio" */
.brand small { font-weight: 500; font-size: 14px; color: var(--mute); letter-spacing: 0; }
.jump { display: flex; flex: none; gap: 4px; margin-inline-start: auto; } /* none of the bar's parts shrink or wrap: when the row does not fit, the bar goes compact instead (app/bar-compact.css) */
.jump a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.jump a:hover { background: rgba(27, 23, 18, .06); }
.lang { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }

/* The Cyber Monday offer (wellness.castomo.com/black-friday/): a slim bar under the header and a section under the
   hero. Both leave the page by themselves once the offer ends (app/looks.js BF.ends). */
.bf-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 14px; padding: 10px var(--pad); background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; text-align: center; }
.bf-bar a { color: var(--amber); font-weight: 700; white-space: nowrap; }
/* desktop: the offer bar at twice its phone height, in larger type, so it reads as a headline strip under the header */
@media (min-width: 901px) { .bf-bar { padding-block: 26px; font-size: 18px; gap: 6px 20px; } }
.bf { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(48px, 7vw, 88px); }
.bf-box { display: grid; align-items: center; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: var(--ink); color: var(--paper); }
.bf .eyebrow { color: var(--amber); }
.bf h2 { margin: 0; font-size: clamp(24px, 3vw, 42px); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; }
.bf-text { margin: 18px 0 0; max-width: 30em; font-size: 18px; color: rgba(246, 242, 236, .78); }
.bf-price { align-self: start; padding: 26px; border-radius: 22px; background: rgba(246, 242, 236, .07); box-shadow: inset 0 0 0 1px rgba(246, 242, 236, .14); }
.bf-now { margin: 0; font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.bf-once { margin: 6px 0 0; color: rgba(246, 242, 236, .7); font-size: 15px; }
.bf-after { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(246, 242, 236, .14); font-size: 15px; color: rgba(246, 242, 236, .7); }
.bf-after b { color: var(--paper); }
.bf-free { margin: 14px 0 0; font-size: 15px; }
.bf-free b { color: var(--amber); }
.bf-go { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 22px; padding: 12px 22px; border-radius: 999px; background: var(--amber); color: var(--ink); font-weight: 800; text-align: center; text-decoration: none; transition: background .15s; }
.bf-go:hover, .bf-go:focus-visible { background: #f0c08c; }
/* the arrow leans toward the offer on hover, as on the looks' .go buttons; it points the reading way in RTL */
.bf-go span { display: inline-block; transition: transform .15s; }
[dir="rtl"] .bf-go span { transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) {
  .bf-go:hover span, .bf-go:focus-visible span { transform: translateX(3px); }
  [dir="rtl"] .bf-go:hover span, [dir="rtl"] .bf-go:focus-visible span { transform: translateX(-3px) scaleX(-1); }
}
.bf-small { margin: 14px 0 0; font-size: 12.5px; line-height: 1.45; color: rgba(246, 242, 236, .55); }
/* Cyber Monday badge: the cut in a hot chip, the deadline beside it; the dot pulses so the promotion reads as live */
.bf-plus { color: var(--amber); }
.bf-badge { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(224, 169, 110, .16); box-shadow: inset 0 0 0 1px rgba(224, 169, 110, .5); color: var(--amber); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bf-badge b { padding: 6px 12px; border-radius: 999px; background: #e8462e; color: #fff; font-size: 21px; letter-spacing: 0; }
.bf-badge span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: #e8462e; vertical-align: .05em; }
@media (prefers-reduced-motion: no-preference) { .bf-badge span::before { animation: bf-pulse 1.6s ease-in-out infinite; } }
@keyframes bf-pulse { 50% { opacity: .25; transform: scale(.7); } }
/* the countdown: four tiles, tabular digits so the seconds don't jitter */
.bf-clock { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 24px; color: rgba(246, 242, 236, .7); font-size: 14px; font-weight: 600; }
.bf-units { display: flex; gap: 8px; }
.bf-units span { display: grid; justify-items: center; min-width: 58px; padding: 8px 6px 6px; border-radius: 12px; background: rgba(246, 242, 236, .08); box-shadow: inset 0 0 0 1px rgba(246, 242, 236, .14); }
.bf-units b { color: var(--paper); font-size: 24px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.bf-units small { margin-top: 4px; font-size: 11px; letter-spacing: .04em; color: rgba(246, 242, 236, .6); }
.bf-bar[hidden], .bf[hidden] { display: none; }
@media (max-width: 900px) { .bf-box { grid-template-columns: 1fr; } }

/* hero: the words on the left, the four phones fanned on the right */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--pad) clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bronze); }
/* sized so each sentence keeps to one line (the title breaks between them) */
.hero h1 { margin: 0; font-size: clamp(34px, 4.2vw, 58px); line-height: .98; font-weight: 900; letter-spacing: -.035em; }
.lead { margin: 26px 0 0; max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }
/* the hero's demo link: the page's first call to action; the arrow leans forward on hover */
.hero-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 16px 28px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 17px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 28px rgba(27, 23, 18, .22); transition: background .15s, transform .15s; }
.hero-cta:hover, .hero-cta:focus-visible { background: var(--bronze); }
.hero-cta span { display: inline-block; transition: transform .15s; }
[dir="rtl"] .hero-cta span { transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) {
  .hero-cta:hover { transform: translateY(-2px); }
  .hero-cta:hover span, .hero-cta:focus-visible span { transform: translateX(4px); }
  [dir="rtl"] .hero-cta:hover span, [dir="rtl"] .hero-cta:focus-visible span { transform: translateX(-4px) scaleX(-1); }
}
@media (max-width: 520px) { .hero-cta { display: flex; justify-content: center; } }
.fan { position: relative; height: clamp(360px, 42vw, 560px); }
.fan img { position: absolute; top: 50%; left: 50%; width: 30%; border-radius: 24px; border: 6px solid #1b1712; box-shadow: 0 30px 60px -30px rgba(27, 23, 18, .6); transform-origin: 50% 120%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.fan img:nth-child(1) { transform: translate(-50%, -50%) translateX(-92%) rotate(-10deg); }
.fan img:nth-child(2) { transform: translate(-50%, -50%) translateX(-31%) rotate(-3.5deg); z-index: 2; }
.fan img:nth-child(3) { transform: translate(-50%, -50%) translateX(31%) rotate(3.5deg); z-index: 3; }
.fan img:nth-child(4) { transform: translate(-50%, -50%) translateX(92%) rotate(10deg); z-index: 4; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fan:hover img:nth-child(1) { transform: translate(-50%, -50%) translateX(-104%) rotate(-13deg); }
  .fan:hover img:nth-child(4) { transform: translate(-50%, -50%) translateX(104%) rotate(13deg); }
}

/* the types: a rail of shape tiles (icon, name, count; the chosen one ringed in amber), a line on the chosen type, then
   a card per model that opens it in the garden studio */
.types { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--pad); border-top: 1px solid var(--line); }
.types h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.types-lead { margin: 16px 0 0; max-width: 40em; font-size: 18px; color: var(--ink-2); }
/* one row always: the nine tiles share the width, and scroll sideways once they would get narrower than 118px */
.types .arrows, .types > .rail { margin-top: 32px; } /* app/arrows.js wraps the rail in .arrows after load; the rail alone keeps the same place until then, so nothing moves */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.rail::-webkit-scrollbar { display: none; }
.rail button { display: grid; gap: 2px; justify-items: start; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: inherit; text-align: start; color: var(--ink); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.rail svg { width: 44px; height: 32px; margin-bottom: 10px; fill: none; stroke: var(--mute); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rail b { font-size: 15px; font-weight: 700; }
.rail small { font-size: 13px; color: var(--mute); }
.rail [aria-pressed="true"] { background: #fff8ef; box-shadow: inset 0 0 0 2px var(--amber); }
.rail [aria-pressed="true"] svg { stroke: var(--bronze); }
@media (hover: hover) { .rail button:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(27, 23, 18, .25); } .rail [aria-pressed="true"]:hover { box-shadow: inset 0 0 0 2px var(--amber); } }
.type-note { margin: 22px 0 0; min-height: 1.5em; font-weight: 600; color: var(--ink-2); }
.cards { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 18px; }
/* A card is one link, and the cards butt together into one sheet: no gaps, corners or insets, each edged by a half
   hairline so two neighbours' edges make one line. The picture is the product alone on a clear background
   (tools/pictures.ts); on hover it grows up out of its tile and over the edge (the card rises above its neighbours). */
.card { position: relative; display: grid; align-content: start; background: var(--card); box-shadow: 0 0 0 .5px var(--line); text-decoration: none; transition: box-shadow .25s; }
.card .pic { display: block; }
.card img { width: 100%; aspect-ratio: 300 / 220; object-fit: contain; transform-origin: 50% 82%; transition: transform .4s cubic-bezier(.2, .9, .25, 1.15); }
.card .info { display: grid; gap: 4px; padding: 4px 14px 16px; }
.card b { font-size: 17px; font-weight: 800; }
.card small { font-size: 13.5px; line-height: 1.4; color: var(--mute); }
.card:hover, .card:focus-visible { z-index: 2; box-shadow: 0 0 0 .5px var(--line), 0 28px 56px -30px rgba(27, 23, 18, .65); }
@media (prefers-reduced-motion: no-preference) {
  .card:hover img, .card:focus-visible img { transform: scale(1.22) translateY(-6%); }
}
/* Desktops with a mouse: the cards leave the text column and fill the window's width, bigger, pictures only; the name
   and highlights rise over the picture's foot on hover or keyboard focus (still read out by screen readers, since
   they are only faded). Touch screens keep the text below, as there is no hover to reveal it. */
@media (min-width: 901px) and (hover: hover) {
  .cards { width: 100vw; margin-inline: calc(50% - 50vw); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .card .info { position: absolute; inset-inline-start: 12px; inset-inline-end: 12px; bottom: 12px; z-index: 1; padding: 12px 14px; border-radius: 14px; background: rgba(255, 253, 250, .9); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), 0 12px 30px -18px rgba(27, 23, 18, .5); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .3s cubic-bezier(.2, .9, .25, 1); }
  .card:hover .info, .card:focus-visible .info { opacity: 1; transform: none; }
}

/* The home page's "all models" tile: the first rows only, fading into the page under a link to /catalog. overflow: clip
   with a margin keeps a top-row picture growing on hover from being cut at the sheet's top edge; the fade reaches into
   that margin at the foot, so nothing shows below it. */
.cards.peek { max-height: 720px; overflow: clip; overflow-clip-margin: 60px; }
.cards.peek::after { content: ''; position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: -60px; z-index: 3; height: 340px; background: linear-gradient(rgba(246, 242, 236, 0), var(--paper) 88%); pointer-events: none; }
.more { position: relative; z-index: 4; display: table; margin: -72px auto 0; padding: 14px 26px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.more[hidden] { display: none; }
/* /catalog: the types section alone */
.catalog .hero, .catalog #looks, .catalog .compare, .catalog .close { display: none; }
.catalog .types { border-top: 0; }
.more:hover { background: var(--amber); color: var(--ink); }

/* The story's sections (app/journey.js): an eyebrow, a two-line headline, then its items: two columns set against
   each other (versus), numbered steps, or a grid of points. */
.story { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--pad); border-top: 1px solid var(--line); }
.story h2 { margin: 0; max-width: 22em; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; text-wrap: balance; }
.story-lead { margin: 18px 0 0; max-width: 38em; font-size: 18px; color: var(--ink-2); }
.story-items { display: grid; gap: 16px; margin: 36px 0 0; padding: 0; list-style: none; }
.story-items li { padding: 24px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.story-items b { display: block; font-size: 18px; font-weight: 800; }
.story-items p { margin: 8px 0 0; color: var(--ink-2); }
.story-items.versus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story-items.versus li:first-child { background: none; }
.story-items.versus li:first-child b { color: var(--mute); }
.story-items.versus li:last-child { background: var(--ink); color: var(--paper); box-shadow: none; }
.story-items.versus li:last-child b { color: var(--amber); }
.story-items.versus li:last-child p { color: rgba(246, 242, 236, .8); }
.story-items.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.story-items.steps li { counter-increment: step; }
.story-items.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 900; }
.story-items.grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.story-shot { margin: 36px 0 0; }
.story-go { display: inline-block; margin-top: 28px; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.story-go:hover { background: var(--amber); color: var(--ink); }
.looks-head { padding-bottom: 0; }
#looks .look:first-child { border-top: 0; } /* the looks' heading above already opens the run */
.close-links a.main { background: var(--amber); color: var(--ink); box-shadow: none; }
.catalog #storyA, .catalog #storyB, .catalog #storyC { display: none; }
@media (max-width: 900px) { .story-items.versus, .story-items.steps { grid-template-columns: 1fr; } }

/* one section per look */
.look { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--pad); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; border-top: 1px solid var(--line); }
.look.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.look.flip .shots { order: 2; }
.shots { position: relative; margin: 0 0 40px; }
.browser { border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(27, 23, 18, .55); }
.chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #ede7de; }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(27, 23, 18, .18); }
.chrome span { margin-inline-start: 14px; padding: 3px 14px; border-radius: 999px; background: rgba(255, 253, 250, .8); font-size: 12px; color: var(--mute); }
.shots .phone { position: absolute; inset-inline-end: -4%; bottom: -40px; width: 24%; border-radius: 22px; border: 5px solid #1b1712; box-shadow: 0 30px 60px -24px rgba(27, 23, 18, .6); }
.look.flip .shots .phone { inset-inline-end: auto; inset-inline-start: -4%; }
.num { margin: 0; font-size: 14px; font-weight: 800; color: var(--bronze); /* amber on paper read 1.9:1 */ letter-spacing: .06em; }
.copy h2 { margin: 6px 0 0; font-size: clamp(34px, 4vw, 52px); line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.tag { margin: 16px 0 0; font-size: 19px; line-height: 1.45; color: var(--ink-2); }
.copy ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.copy li { position: relative; padding-inline-start: 26px; }
.copy li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .62em; width: 12px; height: 2px; border-radius: 2px; background: var(--amber); }
.best { margin: 22px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink-2); }
.best b { color: var(--ink); }
.go { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; min-height: 52px; padding: 12px 26px; border-radius: 999px; background: linear-gradient(160deg, #9b6835, #7a4c22); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 12px 28px -12px rgba(138, 90, 43, .7); transition: transform .15s, box-shadow .15s; }
.go:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgba(138, 90, 43, .8); }
.go span { transition: transform .15s; }
.go:hover span { transform: translateX(3px); }

/* the comparison */
.compare { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--pad); border-top: 1px solid var(--line); }
.compare h2 { margin: 0 0 24px; font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; letter-spacing: -.03em; }
.table-wrap { overflow-x: auto; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 16px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: 16px; font-weight: 800; }
thead th a { text-decoration: none; }
thead th a:hover { color: var(--bronze); }
tbody th { width: 16%; font-weight: 600; color: var(--mute); }
td { color: var(--ink-2); }

/* the closing band */
.close { margin: clamp(32px, 5vw, 64px) var(--pad) var(--pad); padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px); border-radius: 32px; background: var(--ink); color: #f6f2ec; text-align: center; }
.close h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; }
.close p { max-width: 36em; margin: 18px auto 0; color: rgba(246, 242, 236, .75); font-size: 18px; }
.close-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.close-links a { padding: 12px 22px; border-radius: 999px; background: rgba(246, 242, 236, .1); color: #fff; font-weight: 700; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(246, 242, 236, .18); transition: background .15s; }
.close-links a:hover { background: var(--amber); color: var(--ink); }

/* the menu button: phones and tablets only, three bars that fold into a cross while the menu is open */
.menu-btn { display: none; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: var(--ink); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--paper); transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.jump-cta { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }


/* tablets and phones: one column, the pictures above the words */
@media (max-width: 900px) {
  /* the rail bleeds to the screen's edges, so a cut-off tile shows it scrolls; three cards a row (two on phones):
     four at this width squeeze the pictures and wrap every name onto three lines */
  .types .arrows, .types > .rail { margin: 28px calc(-1 * var(--pad)) 0; }
  .rail { padding: 2px var(--pad); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards.peek { max-height: 640px; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .fan { height: clamp(300px, 80vw, 460px); }
  .look, .look.flip { grid-template-columns: 1fr; }
  .look.flip .shots { order: 0; }
  .shots .phone { width: 28%; inset-inline-end: -2%; bottom: -30px; }
  .look.flip .shots .phone { inset-inline-start: auto; inset-inline-end: -2%; }
}
@media (max-width: 560px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .brand small { display: none; }
  .fan img { width: 40%; border-width: 4px; border-radius: 18px; }
  .chrome span { display: none; }
}

/* The message form (app/journey.js contactForm): two columns of fields, the message and consent across both */
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; max-width: 760px; margin-top: 20px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.contact-form .wide { grid-column: 1 / -1; }
.contact-form input:not([type=checkbox]), .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-weight: 400; color: var(--ink); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form :is(input, textarea):focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.contact-form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.contact-form .check input { margin-top: 3px; }
.contact-form .hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .story-go { justify-self: start; margin-top: 4px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.contact-form .story-go:disabled { opacity: .6; cursor: default; }
.contact-note { margin: 0; min-height: 1.4em; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .contact-form { grid-template-columns: 1fr; } }

/* The contact block (app/journey.js reachSection): two choice cards, a call or a message, and only the chosen form
   below them. The mark on each card draws itself in on hover and when chosen (house rule: every button's icon moves). */
.reach-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 660px; margin-top: 32px; }
.reach-tab { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); color: var(--ink); font: inherit; text-align: start; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.reach-tab svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--mute); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; transition: stroke .15s, transform .2s; }
.reach-tab span { display: grid; gap: 2px; }
.reach-tab b { font-size: 16px; }
.reach-tab small { font-size: 13px; color: var(--mute); }
.reach-tab:hover { border-color: rgba(27, 23, 18, .25); }
.reach-tab:hover svg { transform: translateY(-2px) rotate(-6deg); }
.reach-tab[aria-selected="true"] { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink), 0 12px 28px -18px rgba(27, 23, 18, .5); }
.reach-tab[aria-selected="true"] svg { stroke: var(--bronze); animation: reach-draw .5s ease-out; }
@keyframes reach-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .menu-btn span { transition: none; } }
@media (prefers-reduced-motion: reduce) { .reach-tab svg { transition: none; animation: none !important; transform: none !important; } }
.reach-panel[hidden] { display: none; }
.reach-lead { max-width: 640px; margin: 28px 0 0; color: var(--ink-2); }
@media (max-width: 520px) { .reach-tabs { grid-template-columns: 1fr; } }

/* The booking calendar (app/journey.js reachSection; app/booking.js and booking.css, the castomo booking widget): the
   widget draws in its host's --p-* tokens, set here to this page's palette. */
.call { --p-ink: var(--ink); --p-muted: var(--mute); --p-accent: var(--bronze); --p-action: var(--ink); --p-action-ink: var(--paper); --p-bg: #fff; --p-surface: var(--card); }
.call .cb { margin-top: 28px; }
.call .cb__form label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.call .cb__form :is(input, textarea) { padding: 12px 14px; border-radius: 12px; }
.call .cb__submit { padding: 14px 24px; font-weight: 700; transition: background .15s, color .15s; }
.call .cb__submit:hover:not(:disabled) { background: var(--amber); color: var(--ink); }

/* the fanned phone pictures (.fan) lean past the screen edge on phones: the hero clips them, so the page never scrolls sideways */
.hero { overflow-x: clip; }

/* The display headlines break only at their authored <br>, one clause per line: a line never wraps by itself. When the
   longest one is wider than the box (a narrow column, a long language), the headline is set smaller, by CSS alone:
   the server sends its longest line's width in em as --fit (app/fit.js, measured per language by tools/fit.ts), so
   98cqi / --fit is the size at which that line fills 98 % of its box. Never under 20px, beside the page's 17px text
   (each line fits a 320px phone at that size in every language, app/home.js); without --fit, the designed size.
   contain: inline-size keeps the unwrapped lines from widening their grid column (a 1fr track grows to its content's
   min-content) and the page. */
.hero-text, .bf-box > div:first-child, .close, .reach { container-type: inline-size; }
.hero h1, .bf h2, .close h2, .reach h2 { white-space: nowrap; contain: inline-size; }
.hero h1 { font-size: min(clamp(34px, 4.2vw, 58px), max(20px, 98cqi / var(--fit, .01))); }
.bf h2 { font-size: min(clamp(24px, 3vw, 42px), max(20px, 98cqi / var(--fit, .01))); }
.close h2 { font-size: min(clamp(30px, 4vw, 52px), max(20px, 98cqi / var(--fit, .01))); }
.reach h2 { max-width: none; font-size: min(clamp(30px, 3.6vw, 48px), max(20px, 98cqi / var(--fit, .01))); } /* its box, not .story's 22em */

/* Chinese, Japanese and Korean have no spaces to break at: headings break only between phrases and at punctuation */
:is(:lang(ja), :lang(zh), :lang(ko)) :is(h1, h2, h3) { word-break: keep-all; line-break: strict; overflow-wrap: anywhere; }
