/* LifeHub site: shared look for every page (the film engine is film.js).
   Colours are the app's tokens (packages/tokens); markers are the app's
   (slate you, ochre family, plum circles). Solid colours only, no gradients.
   Anything that moves moves through transform and opacity, driven by calc()
   from the custom properties film.js writes. */

@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-var.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-600SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-700Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #FBF6EF;
  --hero: #F3E9DC;
  --sand-2: #EADBC8;
  --wall: #D6C3AF;
  --ink: #2B2320;
  --muted: #6B5F57;
  --line: #E7DCCF;
  --field: #DCCFC0;
  --past: #C5B9AC;
  --accent: #B5573A;
  --accent-hi: #E0876A;
  --accent-bg: #F3E4DC;
  --label: #965D00;
  --ok: #547054;
  --ok-bg: #E7EEE4;
  --you: #59718A;
  --fam: #B0762A;
  --cir: #5B3A62;
  --night: #110C0A;
  --night-2: #28211E;
  --night-3: #342D2A;
  --night-ink: #F7F1EB;
  --night-muted: #C4B8AF;
  --bezel: #1A1512;
  --display: "Bricolage", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  --lift: 0 30px 60px -28px rgba(43, 35, 32, .38), 0 12px 24px -14px rgba(43, 35, 32, .22);
  --soft: 0 16px 36px -22px rgba(43, 35, 32, .4);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.dbg) { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 40; }
.skip:focus { left: 8px; }
svg { overflow: visible; }

/* ---------- header: a slim bar, the areas, one call to action (nav.js) ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; padding-right: var(--sbw, 0px); transition: transform .34s cubic-bezier(.2,.7,.2,1); }
.top.away { transform: translateY(-110%); }
.nv-bar { position: relative; display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 var(--gut); }
.nv-bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .25s ease; }
.top.solid .nv-bar::before, .nv-open .nv-bar::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -.01em; flex: none; }
.brand img { width: 40px; height: 24px; }
.top .brand { margin-right: auto; }

/* inline area links (desktop): a marker dot each; the current one sits on a pill with an underline in its colour */
.nv-links { display: flex; gap: 2px; position: absolute; left: 50%; transform: translateX(-50%); }
.nv-l { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font: 600 14px/1 var(--body); white-space: nowrap; }
.nv-l i, .nv-card b i { width: 7px; height: 7px; border-radius: 50%; background: var(--mk); flex: none; }
.nv-l:hover { color: var(--ink); background: var(--hero); }
.nv-l[aria-current="page"] { color: var(--ink); background: var(--hero); }
.nv-l[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -9px; height: 2px; border-radius: 2px; background: var(--mk); }
.m-you { --mk: var(--you); } .m-fam { --mk: var(--fam); } .m-cir { --mk: var(--cir); } .m-acc { --mk: var(--accent); }

/* the Menu button: a 2x2 grid that turns into a cross while the menu is open */
.nv-btn { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 600 14px/1 var(--body); cursor: pointer; }
.nv-btn:hover, .nv-btn[aria-expanded="true"] { border-color: var(--ink); }
.nv-ico { position: relative; width: 14px; height: 14px; }
.nv-ico i { position: absolute; width: 5px; height: 5px; border-radius: 1.5px; background: currentColor; transition: transform .25s ease; }
.nv-ico i:nth-child(1) { left: 0; top: 0; } .nv-ico i:nth-child(2) { right: 0; top: 0; } .nv-ico i:nth-child(3) { left: 0; bottom: 0; } .nv-ico i:nth-child(4) { right: 0; bottom: 0; }
.nv-btn[aria-expanded="true"] .nv-ico i:nth-child(1) { transform: translate(4.5px, 4.5px); } .nv-btn[aria-expanded="true"] .nv-ico i:nth-child(2) { transform: translate(-4.5px, 4.5px); }
.nv-btn[aria-expanded="true"] .nv-ico i:nth-child(3) { transform: translate(4.5px, -4.5px); } .nv-btn[aria-expanded="true"] .nv-ico i:nth-child(4) { transform: translate(-4.5px, -4.5px); }
.nv-cta { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font: 700 14px/1 var(--body); white-space: nowrap; }
.nv-cta:hover { background: #A34B2F; }
html:not(.nv-js) .nv-btn { display: none; }

/* ---------- the menu panel: a dropdown on desktop ---------- */
.nv-scrim { position: fixed; inset: 0; z-index: -2; background: rgba(20,14,10,.32); opacity: 0; transition: opacity .3s ease; }
.nv-show .nv-scrim { opacity: 1; }
.nv-panel { position: absolute; top: 70px; right: var(--gut); width: min(860px, calc(100vw - 2 * var(--gut))); max-height: calc(100vh - 86px); overflow: auto; overscroll-behavior: contain;
  padding: 22px; border-radius: 28px; background: var(--bg); box-shadow: 0 40px 80px -30px rgba(43,35,32,.45), 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(-10px) scale(.985); transform-origin: top right; transition: opacity .26s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
.nv-show .nv-panel { opacity: 1; transform: none; }
.nv-panel[hidden], .nv-scrim[hidden] { display: none; }
.nv-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 14px; }
.nv-title { margin: 0; font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.nv-x { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.nv-x:hover { border-color: var(--ink); }
.nv-x svg, .nv-arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nv-grid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nv-card, .nv-home { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--hero); color: var(--ink); text-decoration: none; transition: background .2s ease; }
.nv-card { flex-direction: column; align-items: stretch; gap: 12px; padding: 10px 10px 14px; }
.nv-card:hover, .nv-home:hover { background: var(--sand-2); }
.nv-card { overflow: hidden; }
.nv-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--mk); }
.nv-card .nv-th { box-shadow: 0 0 0 1px var(--line); }
.nv-th { flex: none; display: block; overflow: hidden; border-radius: 13px; background: var(--bg); }
.nv-card .nv-th { height: 92px; }
.nv-th img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nv-home .nv-th { width: 74px; height: 54px; }
.nv-tx { display: grid; gap: 4px; min-width: 0; padding: 0 4px; }
.nv-tx b { display: flex; align-items: center; gap: 8px; font: 700 18px/1.15 var(--display); letter-spacing: -.01em; }
.nv-tx span { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.nv-arr { position: absolute; right: 14px; bottom: 16px; color: var(--muted); transition: transform .2s ease; }
.nv-home .nv-arr { bottom: auto; top: calc(50% - 9px); }
.nv-card:hover .nv-arr, .nv-home:hover .nv-arr { transform: translateX(3px); color: var(--ink); }
.nv-card[aria-current="page"], .nv-home[aria-current="page"] { background: #fff; box-shadow: inset 0 0 0 2px var(--mk, var(--ink)); }
.nv-card[aria-current="page"]::after, .nv-home[aria-current="page"]::after { content: "You're here"; position: absolute; top: 18px; right: 18px; padding: 5px 9px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 11px/1 var(--body); letter-spacing: .04em; }
.nv-home[aria-current="page"]::after { top: calc(50% - 11px); right: 44px; }
.nv-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 14px 4px 0; border-top: 1px solid var(--line); }
.nv-foot p { margin: 0; font-size: 14px; color: var(--muted); }
.nv-cta.big { height: 46px; padding: 0 20px; font-size: 15px; }
.nv-open, .nv-open body { overflow: hidden; }

/* ---------- phones: the bar keeps brand + Menu; the menu is a full-height sheet ---------- */
@media (max-width: 1080px) { .nv-links { display: none; } }
@media (max-width: 719px) {
  .nv-bar { height: 56px; gap: 10px; }
  .nv-bar .nv-cta { display: none; }
  .nv-btn { height: 44px; padding: 0 18px 0 16px; font-size: 15px; font-weight: 700; background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(43,35,32,.6); }
  .nv-btn:hover, .nv-btn[aria-expanded="true"] { border-color: var(--ink); }
  .nv-ico { width: 15px; height: 15px; }
  .nv-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, calc(100vw - 44px)); max-height: none; height: 100%; height: 100dvh; border-radius: 28px 0 0 28px; padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; transform: translateX(104%); opacity: 1; transition: transform .34s cubic-bezier(.2,.7,.2,1); box-shadow: -30px 0 60px -30px rgba(43,35,32,.5); }
  .nv-show .nv-panel { transform: none; }
  .nv-head { margin: 2px 0 12px; min-height: 44px; }
  .nv-x { width: 44px; height: 44px; }
  .nv-grid { grid-template-columns: 1fr; gap: 8px; }
  .nv-card { flex-direction: row; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; min-height: 72px; }
  .nv-card .nv-th, .nv-home .nv-th { width: 64px; height: 56px; }
  .nv-tx b { font-size: 19px; }
  .nv-l i, .nv-card b i { width: 8px; height: 8px; }
  .nv-card::before { width: 5px; }
  .nv-arr { bottom: auto; top: calc(50% - 9px); }
  .nv-card[aria-current="page"]::after, .nv-home[aria-current="page"]::after { top: 8px; right: 10px; font-size: 10px; padding: 4px 7px; }
  .nv-foot { margin-top: auto; flex-direction: column; align-items: stretch; text-align: center; gap: 10px; padding-top: 16px; }
  .nv-cta.big { justify-content: center; height: 52px; font-size: 16px; }
}
@media (max-width: 719px) and (max-height: 700px) { .nv-card { min-height: 60px; } .nv-card .nv-th, .nv-home .nv-th { height: 46px; } }
@media (prefers-reduced-motion: reduce) {
  .top, .nv-panel, .nv-scrim, .nv-ico i, .nv-arr { transition: none !important; }
}

/* ---------- footer ---------- */
.foot { padding: 34px var(--gut) 30px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 15px; }
.foot nav { gap: 0 22px; }
.foot-legal span { display: inline-flex; align-items: center; min-height: 44px; }
.foot nav a:hover { color: var(--accent); }
.foot-legal { font-size: 14px; color: var(--muted); }
.foot-legal span { color: #8F837A; }

/* ---------- the film ---------- */
.film { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sc { position: absolute; inset: 0; visibility: hidden; opacity: var(--vis, 1); --in: 1; transform: translateY(calc(var(--out, 0) * -36px)); }
.sc.on { visibility: visible; }
html:not(.js) .sc, .rm .sc { position: relative; visibility: visible; opacity: 1; transform: none; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
html:not(.js) .stage, .rm .stage { position: relative; height: auto; }
.night { background: var(--night); color: var(--night-ink); }
.sc > .bgfill { position: absolute; inset: 0; }

/* Headline, kicker and one plain line, top centre. */
.hl {
  position: absolute; left: 0; right: 0; top: clamp(56px, 9svh, 96px); margin: 0; padding: 0 var(--gut);
  text-align: center; font: 700 clamp(34px, 4.4vw, 64px)/1.02 var(--display); letter-spacing: -.028em; color: inherit;
  opacity: var(--in); transform: translateY(calc((1 - var(--in)) * 26px));
}
.hl + .sub, .sub { position: absolute; left: 0; right: 0; top: calc(clamp(56px, 9svh, 96px) + clamp(44px, 5.4vw, 76px)); margin: 0 auto; padding: 0 var(--gut); max-width: 36em; text-align: center; font: 400 clamp(16px, 1.3vw, 19px)/1.45 var(--body); color: var(--muted); opacity: var(--in); transform: translateY(calc((1 - var(--in)) * 20px)); }
.night .sub { color: var(--night-muted); }
.kick { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.kick i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

/* "See more" pill, bottom centre of a scene. */
.more { position: absolute; left: 50%; bottom: clamp(20px, 4svh, 40px); z-index: 6; transform: translate(-50%, calc((1 - var(--m, 1)) * 14px)); opacity: var(--m, 1); display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 15px/1 var(--body); text-decoration: none; box-shadow: var(--soft); white-space: nowrap; }
.more:hover { background: var(--accent); }
.night .more { background: var(--night-ink); color: var(--ink); }

/* Generic rise/pop helpers: an element with data-k="r:a-b" rises or pops in. */
.rise { opacity: var(--r, 1); transform: translateY(calc((1 - var(--r, 1)) * 30px)); }
.pop { opacity: var(--r, 1); transform: scale(calc(.86 + var(--r, 1) * .14)); }
.fade { opacity: var(--r, 1); }

/* ---------- a phone: the element is the screen; the bezel sits behind ---------- */
.ph { position: relative; width: var(--w, 260px); aspect-ratio: 1080 / 2400; isolation: isolate; flex: none; }
.ph::before { content: ""; position: absolute; inset: calc(var(--w, 260px) * -.034); border-radius: calc(var(--w, 260px) * .15); background: var(--bezel); z-index: -1; box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 50px 80px -40px rgba(43,35,32,.5), 0 20px 36px -22px rgba(43,35,32,.38); }
.ph > img, .ph > video, .ph > .scr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w, 260px) * .115); background: var(--bg); }
.ph > .scr { overflow: hidden; }
.ph > .scr > img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }

/* ---------- the explode rig: a screen that comes apart into its layers ---------- */
/* <div class="xr" data-k="e:..."><div class="xr-rig"><i class="xr-slab"></i><i class="xr-bezel"></i>
   <div class="xr-screen"><img class="xr-base"><img class="xr-full"></div><img class="ly ..."></div></div> */
.xr { --e: 0; position: absolute; width: var(--w, 300px); aspect-ratio: 1080 / 2400; perspective: calc(var(--w, 300px) * 6); perspective-origin: 50% 40%; }
.xr-rig { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateY(calc(var(--e) * var(--w, 300px) * .34)) rotateX(calc(var(--e) * 48deg)) rotateZ(calc(var(--e) * -32deg)) scale(calc(1 - var(--e) * var(--es, .14))); }
.xr-bezel, .xr-slab { position: absolute; inset: calc(var(--w, 300px) * -.034); border-radius: calc(var(--w, 300px) * .15); background: var(--bezel); }
.xr-bezel { transform: translateZ(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 50px 80px -40px rgba(43,35,32,.5), 0 20px 36px -22px rgba(43,35,32,.36); }
.xr-slab { background: #0B0807; transform: translateZ(calc(var(--w, 300px) * -.05)); opacity: var(--e); }
.xr-screen { position: absolute; inset: 0; border-radius: calc(var(--w, 300px) * .115); overflow: hidden; background: var(--bg); transform: translateZ(0); }
.xr-screen img, .xr-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xr-full { opacity: calc(1 - min(1, var(--e) * 40)); }
.xr .ly { position: absolute; height: auto; transform: translateZ(calc(var(--e) * var(--z, .3) * var(--w, 300px))); opacity: min(1, calc(var(--e) * 40)); }
.xr .ly.card { box-shadow: 0 calc(var(--e) * 26px) calc(var(--e) * 40px) calc(var(--e) * -14px) rgba(43,35,32,.45); }
.mob .xr { --es: .36; }

/* ---------- app pieces recreated in HTML ---------- */
.toast { position: absolute; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 6px 16px 6px 7px; border-radius: 999px; background: var(--accent-bg); border: 1.5px solid var(--accent); color: var(--ink); font: 600 15px/1.2 var(--body); box-shadow: 0 10px 24px -8px rgba(43,35,32,.32); }
.toast .mark { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.toast svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chip { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; padding: .5em .95em .5em .8em; border-radius: 999px; background: var(--accent-bg); border: 2px solid var(--accent); color: var(--ink); font: 600 var(--cf, 16px)/1 var(--body); }
.chip svg { width: 1em; height: 1em; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip.plain { background: #fff; border-color: var(--line); }
.card { background: #fff; border-radius: 20px; box-shadow: 0 8px 24px -14px rgba(43,35,32,.3); }
.av { display: inline-grid; place-items: center; width: var(--as, 32px); height: var(--as, 32px); border-radius: 50%; background: var(--fam); color: #fff; font: 700 calc(var(--as, 32px) * .4)/1 var(--body); font-style: normal; flex: none; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- areas strip (index and the end of every area page) ---------- */
.areas { padding: clamp(70px, 11svh, 120px) var(--gut) clamp(40px, 6svh, 70px); }
.areas h2 { margin: 0 0 8px; text-align: center; font: 700 clamp(30px, 3.6vw, 52px)/1.04 var(--display); letter-spacing: -.026em; }
.areas > p { margin: 0 auto; max-width: 30em; text-align: center; color: var(--muted); }
.area-grid { list-style: none; margin: clamp(30px, 5svh, 52px) auto 0; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.area-grid li { min-width: 0; }
.area-grid a { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 26px; background: var(--hero); color: var(--ink); text-decoration: none; padding: 24px 24px 0; transition: transform .25s ease; }
.area-grid a:hover { transform: translateY(-4px); }
.area-grid b { display: flex; align-items: center; gap: 9px; font: 700 26px/1.1 var(--display); letter-spacing: -.02em; }
.area-grid b i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); }
.area-grid span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.4; min-height: 2.8em; }
.area-grid img { display: block; width: 72%; height: auto; margin: 18px auto 0; border-radius: 22px 22px 0 0; box-shadow: 0 -2px 0 6px var(--bezel); transform: translateY(6px); }
.area-grid .here { outline: 2px solid var(--ink); }

/* ---------- next area ---------- */
.next { display: block; margin: 0 var(--gut) clamp(50px, 8svh, 90px); padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: var(--ink); color: var(--night-ink); text-decoration: none; }
.next small { display: block; font: 600 14px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); }
.next strong { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; font: 700 clamp(38px, 6vw, 88px)/1 var(--display); letter-spacing: -.035em; }
.next strong span { font-family: var(--body); font-weight: 400; transition: transform .25s ease; }
.next:hover strong span { transform: translateX(8px); }
.next em { display: block; margin-top: 10px; font-style: normal; color: var(--night-muted); font-size: 17px; }

/* ---------- invite ---------- */
.invite { padding: clamp(30px, 6svh, 60px) var(--gut) clamp(80px, 12svh, 130px); }
.invite-card { max-width: 640px; margin: 0 auto; text-align: center; background: var(--hero); border-radius: 32px; padding: clamp(36px, 6vw, 60px) clamp(20px, 5vw, 56px); }
.invite h2 { margin: 0; font: 700 clamp(30px, 3.4vw, 46px)/1.05 var(--display); letter-spacing: -.025em; }
.invite p { margin: 12px 0 0; color: var(--muted); }
.code-form { display: flex; gap: 10px; margin: 26px auto 0; max-width: 460px; }
.code-form input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; border-radius: 16px; border: 1.5px solid var(--field); background: #fff; color: var(--ink); font: 600 19px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.code-form input::placeholder { color: #B4A79C; letter-spacing: .12em; }
.code-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.code-form button { height: 56px; padding: 0 22px; border: 0; border-radius: 16px; background: var(--accent); color: #fff; font: 700 16px/1 var(--body); cursor: pointer; }
.code-form button:hover { background: #A34B2F; }
.invite .small { font-size: 14px; margin-top: 16px; }

/* ---------- area page intro (big title over an exploding phone) ---------- */
.intro-t { position: absolute; left: var(--gut); top: 50%; margin: 0; transform: translateY(-50%); max-width: 7.5em; font: 750 clamp(64px, 8vw, 132px)/.92 var(--display); letter-spacing: -.045em; opacity: var(--t, 1); }
.intro-t em { font-style: normal; color: var(--accent); }
.intro-s { position: absolute; left: var(--gut); top: calc(50% + clamp(64px, 8vw, 132px) * 1.15); margin: 0; max-width: 22em; font: 400 clamp(17px, 1.4vw, 20px)/1.45 var(--body); color: var(--muted); opacity: var(--t, 1); }

/* ---------- small screens ---------- */
@media (max-width: 719px) {
  .toast { font-size: 13.5px; gap: 8px; padding: 5px 13px 5px 6px; }
  .toast .mark { width: 22px; height: 22px; }
  .toast svg { width: 13px; height: 13px; }
  .more { font-size: 15px; min-height: 44px; padding: 0 18px; }
  .area-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .area-grid a { padding: 16px 14px 0; border-radius: 20px; }
  .area-grid b { font-size: 20px; }
  .area-grid span { font-size: 13px; }
  .area-grid img { width: 84%; border-radius: 16px 16px 0 0; box-shadow: 0 -2px 0 4px var(--bezel); }
  .code-form { flex-direction: column; }
  .code-form input { flex: none; width: 100%; }
  .intro-t { left: 0; right: 0; top: clamp(78px, 11svh, 104px); transform: none; max-width: none; text-align: center; font-size: clamp(52px, 15vw, 72px); }
  .intro-s { left: 0; right: 0; top: calc(clamp(78px, 11svh, 104px) + clamp(52px, 15vw, 72px) * 1.02 + 14px); max-width: none; padding: 0 var(--gut); text-align: center; font-size: 16px; }
}
@media (max-width: 380px) { .area-grid { grid-template-columns: 1fr; } }

/* ---------- the app's alarm clock face (clock.js) ---------- */
.clock { margin: 0; width: min(440px, 84vw); }
.face { display: block; width: 100%; height: auto; }
.c-ring { fill: var(--hero); }
.c-face { fill: #fff; stroke: var(--field); stroke-width: 3; }
.c-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.c-min line { stroke: var(--ink); stroke-width: 2.4; }
.c-hours line { stroke: var(--ink); stroke-width: 10; }
.c-n12 text { font: 800 84px/1 var(--body); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.c-n24 text { font: 700 33px/1 var(--body); fill: var(--muted); text-anchor: middle; dominant-baseline: central; }
.c-label { font: 600 30px/1 var(--body); letter-spacing: .18em; fill: var(--muted); text-anchor: middle; }
.c-date { fill: #FBF6EF; stroke: var(--ink); stroke-width: 4; }
.c-datet { font: 700 50px/1 var(--body); fill: var(--ink); text-anchor: middle; }
.c-alarm { stroke: var(--accent); stroke-width: 14; stroke-linecap: round; transform-origin: 500px 500px; transform: rotate(187.5deg); }
.hand { transform-origin: 500px 500px; transform: rotate(0deg); }
.clock.go .hand { transition: transform 1.4s cubic-bezier(.2,.7,.1,1); }
.clock.tick .h-sc { transition: transform .22s cubic-bezier(.3,1.6,.5,1); }
.clock.tick .h-hr, .clock.tick .h-mn { transition: transform .4s ease; }
.hand-b { fill: #E0D3C3; stroke: var(--ink); stroke-width: 7; stroke-linejoin: round; }
.hand-t { fill: var(--ink); }
.c-hub { fill: var(--ink); }
.sec { stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.sec-w { fill: #fff; stroke: var(--accent); stroke-width: 7; }
.sec-hub { fill: #fff; stroke: var(--accent); stroke-width: 7; }
.clock figcaption { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dig { font: 400 clamp(48px, 5vw, 72px)/1 var(--body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dig small { font-size: .45em; font-weight: 600; letter-spacing: 0; }
.dig-d { font-size: clamp(17px, 1.5vw, 22px); color: var(--muted); }
.rm .clock .hand { transition: none !important; }
.area-grid b i.you { background: var(--you); } .area-grid b i.fam { background: var(--fam); } .area-grid b i.cir { background: var(--cir); }
