/* ==========================================================================
   LE STARLU · lestarlu.com
   The frame is neutral (Gallery, Onyx, Linen, Stone). Color belongs to the
   apps and appears only inside their own spaces.
   Square corners, 1px hairlines, slow fades with a small rise. Nothing bouncy.
   ========================================================================== */

:root {
  /* frame */
  --gallery: #F7F5F0;
  --onyx: #0F0F10;
  --linen: #ECE9E2;
  --ivory: #F5F3EE;
  --stone: #8C8A85;
  --stone-text: #6E6C67;
  --ink-soft: #3A3936;
  --hairline: #D8D5CC;
  --hairline-dark: #2A2A2C;

  /* art (apps only) */
  --matchly-a: #2FB3E6; --matchly-b: #3F7DE0; --matchly-c: #6A55B8;
  --matchly: linear-gradient(160deg, var(--matchly-a), var(--matchly-b) 55%, var(--matchly-c));
  --medikard-a: #F29A7E; --medikard-b: #E8735A; --medikard-c: #D65A5F;
  --medikard: linear-gradient(160deg, var(--medikard-a), var(--medikard-b) 55%, var(--medikard-c));

  /* type */
  --display: 'Syncopate', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif;
  --accent: 'Cormorant Garamond', Garamond, Georgia, serif;

  /* layout */
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --header-h: 88px;
  --section: clamp(96px, 12vw, 168px);

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: .6s;

  /* z */
  --z-header: 50;
  --z-menu: 45;
  --z-intro: 100;
  --z-toast: 110;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html, body { margin: 0; background: var(--gallery); color: var(--onyx); }
body {
  font-family: var(--body); font-weight: 300; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--onyx); color: var(--ivory); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 200; padding: 12px 18px; background: var(--onyx); color: var(--ivory); font-family: var(--display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip-link:focus { transform: none; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--display); font-weight: 400; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--stone-text); display: inline-flex; align-items: center; gap: 14px; }
.eyebrow .num { color: var(--onyx); }
.eyebrow.ruled::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display-xl, .display-l, .h2, .h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; text-wrap: balance; }
.display-xl { font-size: clamp(34px, 6.2vw, 92px); line-height: 1.04; letter-spacing: .04em; }
.display-l { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.08; letter-spacing: .05em; }
.h2 { font-size: clamp(24px, 3vw, 40px); line-height: 1.18; letter-spacing: .06em; }
.h3 { font-size: clamp(15px, 1.3vw, 17px); line-height: 1.4; letter-spacing: .2em; }
.lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.6; color: var(--ink-soft); max-width: 34em; text-wrap: pretty; }
.body-copy { color: var(--ink-soft); max-width: 36em; text-wrap: pretty; }
.body-copy + .body-copy { margin-top: 1.1em; }
.accent { font-family: var(--accent); font-style: italic; font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; color: var(--ink-soft); }
.accent-xl { font-family: var(--accent); font-style: italic; font-weight: 400; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.12; }

/* line masks for headline reveals */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; will-change: transform; }

/* ---------- buttons & links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 34px; overflow: hidden; isolation: isolate;
  font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn .arrow { width: 14px; height: 14px; flex: none; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover .arrow.up-right { transform: translate(3px, -3px); }
.btn-primary { background: var(--onyx); color: var(--ivory); }
.btn-primary::before { background: #2C2C2F; }
.btn-secondary { border: 1px solid var(--onyx); color: var(--onyx); }
.btn-secondary::before { background: var(--onyx); }
.btn-secondary:hover, .btn-secondary:focus-visible { color: var(--ivory); }
.btn-ivory { background: var(--ivory); color: var(--onyx); }
.btn-ivory::before { background: #fff; }
.btn-ghost-ivory { border: 1px solid rgba(245, 243, 238, .6); color: var(--ivory); }
.btn-ghost-ivory::before { background: var(--ivory); }
.btn-ghost-ivory:hover, .btn-ghost-ivory:focus-visible { color: var(--onyx); }
.btn:active { transform: scale(.985); }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-family: var(--display); font-weight: 400; font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
}
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link:hover::after { animation: link-sweep .9s var(--ease); }
@keyframes link-sweep { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 46% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }
.link .arrow { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }
.link:hover .arrow.up-right { transform: translate(3px, -3px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header); height: var(--header-h);
  color: var(--onyx); transition: transform .6s var(--ease), color .4s var(--ease), background-color .4s var(--ease);
}
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(247, 245, 240, .82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--hairline); opacity: 0; transition: opacity .5s var(--ease); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.on-dark { color: var(--ivory); }
.site-header.on-dark::before { background: rgba(15, 15, 16, .78); border-color: var(--hairline-dark); }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand svg { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(28px, 3.4vw, 52px); }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--display); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
}
.nav a::after { content: ""; position: absolute; left: 0; right: .3em; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta { padding: 0 20px; border: 1px solid currentColor; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--onyx); color: var(--ivory); border-color: var(--onyx); }
.on-dark .nav .nav-cta:hover { background: var(--ivory); color: var(--onyx); border-color: var(--ivory); }

.menu-btn { display: none; position: relative; width: 48px; height: 48px; margin-right: -12px; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.menu-btn span:nth-child(1) { top: 20px; }
.menu-btn span:nth-child(2) { top: 28px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 24px; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--gallery);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-in-out), visibility 0s 0s; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--hairline); font-family: var(--display); font-weight: 700; font-size: clamp(22px, 7vw, 34px); letter-spacing: .06em; text-transform: uppercase; }
.mobile-menu nav a small { font-family: var(--display); font-weight: 400; font-size: 10px; letter-spacing: .3em; color: var(--stone-text); }
.mobile-menu .menu-foot { display: flex; flex-direction: column; gap: 14px; }
.mobile-menu .menu-item { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.mobile-menu.is-open .menu-item { opacity: 1; transform: none; }
.mobile-menu.is-open .menu-item:nth-child(1) { transition-delay: .18s; }
.mobile-menu.is-open .menu-item:nth-child(2) { transition-delay: .24s; }
.mobile-menu.is-open .menu-item:nth-child(3) { transition-delay: .30s; }
.mobile-menu.is-open .menu-item:nth-child(4) { transition-delay: .36s; }
.mobile-menu.is-open .menu-item:nth-child(5) { transition-delay: .42s; }
body.menu-open .site-header { color: var(--onyx); }
body.menu-open .site-header::before { opacity: 0; }

/* ---------- intro (home, first visit per session) ---------- */
.intro { display: none; }
.js-anim .intro.is-active {
  position: fixed; inset: 0; z-index: var(--z-intro); display: grid; place-items: center;
  background: var(--gallery); color: var(--onyx);
}
.intro-mark { width: clamp(120px, 16vw, 180px); }
.intro-mark path { fill: transparent; stroke: currentColor; stroke-width: 6; }
.intro-rule { width: clamp(120px, 16vw, 180px); height: 1px; margin-top: 28px; background: var(--hairline); position: relative; overflow: hidden; }
.intro-rule::after { content: ""; position: absolute; inset: 0; background: var(--onyx); transform: scaleX(var(--p, 0)); transform-origin: left; }
.intro-word { margin-top: 18px; font-family: var(--display); font-size: 10px; letter-spacing: .5em; text-transform: uppercase; color: var(--stone-text); text-align: center; padding-left: .5em; }

/* ---------- rosette (engraved watch-dial texture) ---------- */
.rosette { position: absolute; pointer-events: none; user-select: none; aspect-ratio: 1; }
.rosette img { width: 100%; height: 100%; opacity: var(--rosette-o, .13); animation: rosette-spin 240s linear infinite; will-change: transform; }
.rosette.dark img { --rosette-o: .09; }
@keyframes rosette-spin { to { transform: rotate(360deg); } }

/* ---------- glow (app color, only behind its phone) ---------- */
.glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px); opacity: .55; will-change: transform; }
.glow.matchly { background: radial-gradient(circle at 40% 40%, #7FB0FF, #8E86F2 55%, transparent 70%); }
.glow.matchly-2 { background: radial-gradient(circle, #6FD0F5, transparent 68%); }
.glow.medikard { background: radial-gradient(circle at 45% 45%, #F7B19B, #F08A72 55%, transparent 70%); }

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); overflow: clip; }
.hero .rosette { width: min(1240px, 128vw); right: -24vw; top: 50%; translate: 0 -50%; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 7vh, 96px); }
.hero-copy { display: flex; flex-direction: column; gap: clamp(22px, 2.6vw, 34px); }
.hero-copy .actions { margin-top: 6px; }
.hero-art { position: relative; height: clamp(520px, 72vh, 720px); }
.hero-art .glow.matchly { width: 70%; aspect-ratio: 1; left: 12%; top: 14%; }
.hero-art .glow.matchly-2 { width: 46%; aspect-ratio: 1; left: 44%; top: 46%; opacity: .4; }
.phone { position: absolute; filter: drop-shadow(0 40px 50px rgba(15, 15, 16, .16)) drop-shadow(0 8px 14px rgba(15, 15, 16, .08)); }
.phone img { width: 100%; height: auto; }
.hero-art .phone.back { width: 46%; left: 8%; top: 4%; }
.hero-art .phone.front { width: 50%; left: 44%; top: 16%; }
.wall-label { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 14px 0; border-top: 1px solid var(--onyx); min-width: 220px; background: transparent; }
.wall-label .t { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.wall-label .m { font-size: 14px; line-height: 1.45; color: var(--stone-text); }
.hero-art .wall-label { left: 8%; bottom: 0; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--stone-text); }
.scroll-cue i { position: relative; width: 1px; height: 44px; background: var(--hairline); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--onyx); animation: cue 2.4s var(--ease-in-out) infinite; }
@media (max-height: 940px) { .scroll-cue { display: none; } }
@keyframes cue { 0% { transform: translateY(-100%); } 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: var(--section); }
.section.linen { background: var(--linen); }
.section.tight { padding-block: calc(var(--section) * .7); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head > div { display: flex; flex-direction: column; gap: 18px; }
.hairline { height: 1px; background: var(--hairline); border: 0; margin: 0; }
.rule-draw { display: block; height: 1px; background: currentColor; transform-origin: left; }

/* manifesto */
.manifesto { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px clamp(32px, 6vw, 96px); }
.manifesto-text { font-family: var(--body); font-weight: 300; font-size: clamp(26px, 3.4vw, 50px); line-height: 1.25; letter-spacing: -.005em; text-wrap: pretty; }
.manifesto-text .w { display: inline; color: var(--onyx); transition: color .2s linear; }
.js-anim .manifesto-text .w { color: #C9C6BE; }
.manifesto-text em { font-family: var(--accent); font-style: italic; font-weight: 400; font-size: 1.12em; }
.manifesto .accent { margin-top: clamp(28px, 3vw, 44px); }

/* collection cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 16px; min-height: clamp(380px, 34vw, 480px);
  padding: clamp(28px, 2.8vw, 40px); overflow: hidden; isolation: isolate;
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
a.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(15, 15, 16, .35); }
.card .kicker { font-family: var(--display); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
.card .title { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); letter-spacing: .08em; text-transform: uppercase; }
.card p { font-size: 17px; line-height: 1.55; max-width: 22em; position: relative; z-index: 1; }
.card .more { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; border-top: 1px solid currentColor; padding-top: 18px; position: relative; z-index: 1; }
.card .more .arrow { width: 14px; height: 14px; transition: transform .5s var(--ease); }
a.card:hover .more .arrow { transform: translateX(5px); }
.card.app { color: #fff; }
.card.app .kicker { opacity: .85; }
.card.app .more { width: 54%; }
.card.matchly { background: var(--matchly); }
.card.medikard { background: var(--medikard); }
.card .card-phone { position: absolute; right: -6%; bottom: -46%; width: 52%; z-index: 0; transform: translateY(0) rotate(-6deg); transition: transform 1s var(--ease); filter: drop-shadow(0 30px 40px rgba(10, 20, 60, .35)); }
a.card:hover .card-phone { transform: translateY(-12%) rotate(-3deg); }
.card .card-badge { position: absolute; top: clamp(28px, 2.8vw, 40px); right: clamp(28px, 2.8vw, 40px); width: 44px; height: auto; opacity: .95; }
.card.next { border: 1px solid var(--hairline); background: var(--gallery); color: var(--stone-text); }
.card.next .title { color: var(--stone); }
.card.next .frame-corners { position: absolute; inset: 18px; pointer-events: none; }
.card .status { display: inline-flex; align-items: center; gap: 10px; }
.card .status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* showcase (pinned on desktop) */
.showcase { position: relative; }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.showcase-stage { position: relative; height: min(78vh, 720px); display: grid; place-items: center; }
.showcase-stage .glow.matchly { width: 86%; aspect-ratio: 1; left: 7%; top: 12%; }
.showcase-stage .rosette { width: 120%; left: -10%; top: 50%; translate: 0 -50%; }
.showcase-phones { position: relative; height: 92%; aspect-ratio: 760 / 1559; }
.showcase-phones .phone { inset: 0; position: absolute; }
.showcase-phones .phone img { width: 100%; height: 100%; object-fit: contain; }
.showcase-steps { display: flex; flex-direction: column; }
.showcase-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; font-family: var(--display); font-size: 11px; letter-spacing: .3em; }
.showcase-progress .bar { position: relative; flex: 0 0 120px; height: 1px; background: var(--hairline); }
.showcase-progress .bar i { position: absolute; inset: 0; background: var(--onyx); transform-origin: left; transform: scaleX(.25); }
.step { padding-block: 28px; border-top: 1px solid var(--hairline); }
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step .n { font-family: var(--display); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--stone-text); }
.step h3 { margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.step p { margin-top: 12px; color: var(--ink-soft); max-width: 32em; }
.step .step-phone { display: none; }
.showcase-foot { margin-top: 40px; }

/* desktop pinned mode, enabled by JS */
.showcase.is-pinned { padding-block: 0; }
.showcase.is-pinned .showcase-grid { min-height: 100vh; padding-block: calc(var(--header-h) + 8px) 32px; }
.showcase.is-pinned .showcase-stage { height: min(80vh, 720px); }
.showcase.is-pinned .step { padding-block: 18px; transition: opacity .6s var(--ease); }
.showcase.is-pinned .step:not(.is-active) { opacity: .34; }
.showcase.is-pinned .step p { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; transition: max-height .8s var(--ease), opacity .6s var(--ease), margin-top .8s var(--ease); }
.showcase.is-pinned .step.is-active p { max-height: 8em; opacity: 1; margin-top: 12px; }
.showcase.is-pinned .showcase-foot { margin-top: 28px; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 56px); }
.principles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.principle { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; position: relative; }
.principle::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--onyx); transform-origin: left; }
.js-anim .principle::before { transform: scaleX(var(--draw, 0)); transition: transform 1.2s var(--ease); }
.principle .n { font-family: var(--display); font-size: 10px; letter-spacing: .3em; color: var(--stone-text); }
.principle h3 { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.5; }
.principle p { color: var(--ink-soft); }

/* dark band (one per page) */
.band { position: relative; background: var(--onyx); color: var(--ivory); overflow: clip; }
.band .rosette { width: min(1100px, 110vw); right: -18vw; top: 50%; translate: 0 -50%; }
.band-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px 64px; }
.band blockquote { margin: 0; font-family: var(--accent); font-style: italic; font-weight: 400; font-size: clamp(30px, 4vw, 58px); line-height: 1.16; max-width: 18em; text-wrap: balance; }
.band .sig { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.band .sig svg { width: 92px; height: auto; color: var(--ivory); }
.band .eyebrow { color: var(--stone); }
.band .band-cta { margin-top: 44px; }

/* contact CTA */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.cta .lead { text-align: center; }
.email-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.copy-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border: 1px solid var(--hairline); font-family: var(--display); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--stone-text); transition: border-color .4s var(--ease), color .4s var(--ease); }
.copy-btn:hover { border-color: var(--onyx); color: var(--onyx); }
.copy-btn svg { width: 14px; height: 14px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: var(--z-toast); translate: -50% 0; padding: 14px 22px; background: var(--onyx); color: var(--ivory); font-family: var(--display); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.toast.is-on { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.footer { position: relative; border-top: 1px solid var(--hairline); padding-block: clamp(72px, 8vw, 112px) 32px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.footer-logo { width: clamp(150px, 14vw, 190px); color: var(--onyx); }
.footer-tag { margin-top: 26px; font-family: var(--accent); font-style: italic; font-size: 22px; color: var(--ink-soft); }
.footer h4 { font-family: var(--display); font-weight: 400; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--stone-text); margin-bottom: 18px; }
.footer ul { display: flex; flex-direction: column; gap: 4px; }
.footer ul a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 16px; color: var(--ink-soft); transition: color .3s var(--ease); }
.footer ul a:hover { color: var(--onyx); }
.footer ul a .arrow { width: 12px; height: 12px; opacity: .6; }
.footer-bottom { margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: 14px; color: var(--stone-text); }
.to-top { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--display); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
.to-top svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.to-top:hover svg { transform: translateY(-4px); }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(64px, 10vw, 140px)); padding-bottom: clamp(64px, 8vw, 112px); overflow: clip; }
.page-hero .rosette { width: min(980px, 110vw); right: -16vw; top: 0; }
.page-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: end; gap: 32px 64px; }
.page-hero-inner > div:first-child { display: flex; flex-direction: column; gap: 28px; }
.page-hero .accent { max-width: 14em; text-align: right; }

/* ---------- exhibits (apps page) ---------- */
.exhibit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.exhibit + .exhibit { margin-top: clamp(96px, 12vw, 176px); }
.exhibit.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.exhibit.flip .exhibit-art { order: 2; }
.exhibit-art { position: relative; aspect-ratio: 7 / 6; overflow: hidden; isolation: isolate; }
.exhibit-art.matchly { background: var(--matchly); }
.exhibit-art.medikard { background: var(--medikard); }
.exhibit-art.empty { border: 1px solid var(--hairline); background: var(--gallery); display: grid; place-items: center; }
.exhibit-phones { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5%; }
.exhibit-phones .phone { position: relative; flex: none; width: 33%; }
.exhibit-phones .phone.a { transform: translateY(-4%) rotate(-4deg); }
.exhibit-phones .phone.b { transform: translateY(4%) rotate(3deg); }
.section.tight.exhibits { padding-top: clamp(24px, 4vw, 64px); }
.page-hero .rosette { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%); mask-image: linear-gradient(to bottom, #000 55%, transparent 92%); }
.exhibit-art .sheen { position: absolute; inset: 0; background: radial-gradient(120% 80% at 80% 0%, rgba(255, 255, 255, .22), transparent 55%); pointer-events: none; }
.exhibit-label { display: flex; flex-direction: column; gap: 22px; }
.exhibit-label .meta { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; padding-block: 22px; border-block: 1px solid var(--hairline); font-size: 15px; }
.exhibit-label .meta dt { font-family: var(--display); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--stone-text); padding-top: 4px; }
.exhibit-label .meta dd { margin: 0; color: var(--ink-soft); }
.empty-frame { width: 58%; aspect-ratio: 3 / 4; border: 1px solid var(--hairline); display: grid; place-items: center; text-align: center; padding: 24px; }
.empty-frame .accent { font-size: clamp(20px, 2vw, 28px); color: var(--stone-text); }

/* ---------- app pages ---------- */
.app-hero { position: relative; padding-top: calc(var(--header-h) + 24px); }
.app-frame { position: relative; overflow: hidden; isolation: isolate; min-height: min(86vh, 820px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: clamp(36px, 6vw, 96px); color: #fff; }
.app-frame.matchly { background: var(--matchly); }
.app-frame.medikard { background: var(--medikard); }
.app-frame .sheen { position: absolute; inset: 0; background: radial-gradient(90% 70% at 85% 10%, rgba(255, 255, 255, .25), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(20, 10, 60, .22), transparent 60%); pointer-events: none; z-index: -1; }
.app-frame .copy { display: flex; flex-direction: column; gap: 26px; max-width: 34em; }
.app-frame .eyebrow { color: rgba(255, 255, 255, .82); }
.app-frame .lead { color: rgba(255, 255, 255, .9); }
.app-frame .app-name { display: flex; align-items: center; gap: 18px; }
.app-frame .app-name .app-icon { width: clamp(52px, 5vw, 72px); height: auto; border-radius: 22.5%; box-shadow: 0 12px 30px rgba(10, 16, 60, .25); }
.app-frame .tagline { font-family: var(--accent); font-style: italic; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; }
.app-phones { position: relative; height: clamp(440px, 64vh, 660px); }
.app-phones .phone { width: 46%; top: 6%; left: 27%; z-index: 2; filter: drop-shadow(0 50px 60px rgba(10, 16, 60, .35)); }
.app-phones .phone.l { left: 0; top: 14%; width: 40%; z-index: 1; opacity: .96; }
.app-phones .phone.r { left: 60%; top: 14%; width: 40%; z-index: 1; opacity: .96; }
.btn-store { background: #fff; color: var(--onyx); }
.btn-store::before { background: var(--ivory); }
.btn-store svg { width: 16px; height: 16px; }
.app-frame .link { color: #fff; }
.frame-caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; font-size: 14px; color: var(--stone-text); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 10vw, 152px); }
.feature.flip .feature-art { order: 2; }
.feature-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--linen); overflow: hidden; }
.feature-art .glow { width: 70%; aspect-ratio: 1; left: 15%; top: 15%; }
.feature-art .phone { position: relative; width: 42%; }
.feature-copy { display: flex; flex-direction: column; gap: 22px; }
.feature-copy .tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.feature-copy .tags li { padding: 8px 14px; border: 1px solid var(--hairline); font-size: 14px; color: var(--ink-soft); }

.gallery-strip { position: relative; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 280px); gap: clamp(16px, 2vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 8px var(--gutter) 32px; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.strip figure .phone { position: relative; }
.strip figcaption { font-family: var(--display); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--stone-text); }
.strip-ctrl { display: flex; gap: 10px; }
.strip-ctrl button { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--onyx); transition: background .4s var(--ease), color .4s var(--ease), opacity .3s; }
.strip-ctrl button:hover:not(:disabled) { background: var(--onyx); color: var(--ivory); }
.strip-ctrl button:disabled { opacity: .3; cursor: default; }
.strip-ctrl svg { width: 16px; height: 16px; }

.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hairline); }
.fact { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 10px; }
.fact + .fact { padding-left: 32px; border-left: 1px solid var(--hairline); }
.fact:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.fact h3 { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.fact p { color: var(--ink-soft); font-size: 16px; }

/* coming-soon seal (MediKard, in development) */
.seal { position: relative; width: min(56%, 340px); aspect-ratio: 1; color: #fff; }
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: rosette-spin 90s linear infinite; }
.seal-ring circle { fill: none; stroke: currentColor; stroke-width: .6; opacity: .6; }
.seal-ring text { font-family: var(--display); font-weight: 400; font-size: 9.5px; fill: currentColor; }
.seal-core { position: absolute; inset: 0; display: grid; place-items: center; }
.seal-core svg { width: 30%; height: auto; }
.seal.mini { position: absolute; right: -12%; bottom: -16%; width: 58%; opacity: .5; z-index: 0; transition: transform 1.4s var(--ease), opacity .8s var(--ease); }
a.card:hover .seal.mini { transform: rotate(-12deg); opacity: .7; }
.seal.large { width: min(72%, 420px); }
.seal-stage { position: relative; display: grid; place-items: center; min-height: clamp(320px, 50vh, 560px); }
.exhibit-art.medikard .rosette img, .app-frame.medikard .rosette img { --rosette-o: .22; }
.app-frame .rosette { z-index: -1; }

/* ---------- story ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 112px); align-items: center; }
.founder-photo { margin: 0; position: relative; }
.founder-photo .frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--linen); }
.founder-photo img { width: 100%; height: 115%; object-fit: cover; object-position: center 20%; will-change: transform; }
.founder-photo figcaption { margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--stone-text); border-top: 1px solid var(--onyx); padding-top: 14px; }
.founder-photo figcaption b { font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--onyx); }
.founder-copy { display: flex; flex-direction: column; gap: 24px; }
.two-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 6vw, 112px); }
.two-col .cols { columns: 2 22em; column-gap: clamp(32px, 4vw, 64px); }
.two-col .cols p { color: var(--ink-soft); break-inside: avoid; margin-bottom: 1.1em; }
.dropcap::first-letter { font-family: var(--accent); font-style: italic; font-size: 3.6em; float: left; line-height: .8; padding: .08em .1em 0 0; color: var(--onyx); }

/* ---------- contact ---------- */
.contact-hero-email { display: inline-block; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 4.4vw, 60px); letter-spacing: .04em; line-height: 1.1; text-transform: uppercase; word-break: break-word; position: relative; }
.contact-hero-email::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease); }
.contact-hero-email:hover::after { transform: scaleX(1); transform-origin: left; }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hairline); }
.topic { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 24px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--hairline); transition: background .5s var(--ease); }
.topic:nth-child(odd) { padding-right: 32px; }
.topic:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--hairline); }
.topic .n { font-family: var(--display); font-size: 10px; letter-spacing: .3em; color: var(--stone-text); padding-top: 4px; }
.topic h3 { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
.topic p { grid-column: 2; color: var(--ink-soft); font-size: 16px; }
.topic .arrow { width: 16px; height: 16px; margin-top: 2px; transition: transform .5s var(--ease); grid-row: 1; grid-column: 3; }
.topic:hover .arrow { transform: translate(3px, -3px); }
.topic:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 48px clamp(32px, 6vw, 112px); }
.legal-toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: flex; flex-direction: column; gap: 4px; }
.legal-toc a { font-size: 15px; color: var(--stone-text); min-height: 36px; display: flex; align-items: center; }
.legal-toc a:hover { color: var(--onyx); }
.prose { max-width: 42em; color: var(--ink-soft); }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--onyx); margin: 56px 0 16px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--onyx); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose .updated { font-family: var(--display); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--stone-text); margin-bottom: 40px; }

/* ---------- 404 ---------- */
.notfound { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: clip; padding: var(--header-h) var(--gutter); }
.notfound .rosette { width: min(900px, 140vw); left: 50%; top: 50%; translate: -50% -50%; }
.notfound .inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }

/* ---------- reveal states (only when JS + motion are available) ---------- */
.js-anim [data-reveal] { opacity: 0; transform: translateY(12px); }
.js-anim [data-hero] { opacity: 0; }
.js-anim [data-hero-line] { transform: translateY(105%); }
.js-anim [data-clip] { clip-path: inset(100% 0 0 0); }
.js-anim [data-fade] { opacity: 0; }

/* ---------- page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
.site-header { view-transition-name: site-header; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .principles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .brand svg { height: 24px; }

  .hero { min-height: auto; align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 40px 24px; }
  .hero .rosette { width: 150vw; right: -70vw; top: 30%; }
  .hero-art { height: auto; aspect-ratio: 1 / 1.5; max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-art .phone.back { top: 2%; }
  .hero-art .phone.front { top: 10%; }
  .scroll-cue { display: none; }

  .manifesto { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 340px; }
  .card .card-phone { width: 42%; bottom: -60%; }

  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-stage { display: none; }
  .step { padding-block: 32px; }
  .step .step-phone { display: block; position: relative; margin: 28px auto 0; width: min(62%, 300px); }
  .step .step-phone .glow { width: 120%; aspect-ratio: 1; left: -10%; top: 0; }
  .step .step-phone .phone { position: relative; }
  .showcase-progress { display: none; }

  .principles, .principles.four { grid-template-columns: 1fr; gap: 36px; }
  .band-inner { grid-template-columns: 1fr; align-items: start; }
  .band .sig { align-items: flex-start; }
  .band .rosette { right: -60vw; width: 150vw; }

  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero .accent { text-align: left; }

  .exhibit, .exhibit.flip { grid-template-columns: 1fr; }
  .exhibit.flip .exhibit-art { order: 0; }
  .exhibit-art { aspect-ratio: 1 / 1; }
  .exhibit-phones .phone { width: 38%; }
  .seal.large { width: min(78%, 340px); }
  .seal-stage { min-height: 0; padding-block: 24px 48px; }

  .app-frame { grid-template-columns: 1fr; padding: 40px 24px 0; min-height: 0; }
  .app-phones { height: auto; aspect-ratio: 1 / 1.05; }
  .app-hero .wrap { padding-inline: 12px; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-art { order: 0; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 24px 0; border-left: 0; }

  .founder, .two-col { grid-template-columns: 1fr; }
  .topics { grid-template-columns: 1fr; }
  .topic:nth-child(odd), .topic:nth-child(even) { padding: 28px 0; border-left: 0; }
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: none; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .actions { gap: 16px 28px; }
  .actions .btn { width: 100%; }
  .email-row .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (hover: none) {
  a.card:hover { transform: none; box-shadow: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rosette img { animation: none; }
  @view-transition { navigation: none; }
}
