/* =============================================
   LYDIA · site
   One language, the hero's: a light page, big lowercase words, pills,
   rounded color blocks with cut-out corners holding round black buttons.
   ============================================= */

:root {
  --bg: #f4f2f7;
  --card: #ffffff;
  --ink: #141118;
  --ink-2: #4a4553;
  --ink-3: #8a8494;
  --line: rgba(20, 17, 24, 0.12);
  --violet: #8f63f7;
  --violet-deep: #6a3be6;
  --lav: #e3dafd;
  --black: #0b0a0e;
  --r: 40px; /* the blocks' corners */
  --cut: 24px; /* the concave corner where a cut-out meets a block */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, p, dl, dd, figure { margin: 0; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 10px; }

.js [data-fade] { opacity: 0; transform: translateY(24px); }
.js [data-split] { visibility: hidden; }
.js [data-split].is-split { visibility: visible; }
html:not(.js) .veil { display: none; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 18px clamp(14px, 2.6vw, 36px) 0; }

/* ---------- type ---------- */
.big { font-size: clamp(2.8rem, 6.6vw, 6.8rem); line-height: 0.9; letter-spacing: -0.055em; font-weight: 800; }
.big .ln { display: block; }
.big .line, .cta h2 .line { padding-bottom: 0.14em; margin-bottom: -0.14em; }
.side { font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); max-width: 22rem; }

/* ---------- pills and round buttons ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--card); font-size: 0.8rem; font-weight: 500; white-space: nowrap; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.pill--dark { background: var(--black); color: #fff; }
.pill--dark svg { width: 14px; height: 14px; }
.pill--soft { background: rgba(20, 17, 24, 0.07); }
.pill--line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); height: 40px; font-size: 0.85rem; }
.dot-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; transition: transform 0.4s var(--ease); }
.dot-btn:hover { transform: scale(1.08) rotate(-6deg); }
.orb { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: #fff; font-weight: 600; font-size: 0.85rem; transition: transform 0.5s var(--ease), background 0.3s; }
.orb svg { width: 24px; height: 24px; transition: transform 0.5s var(--ease); }
a.orb:hover, button.orb:hover, a:hover > .orb { transform: scale(1.07); }
a:hover > .orb svg, button.orb:hover svg { transform: rotate(45deg); }
.orb--violet { background: var(--violet); }
.orb--big { width: 92px; height: 92px; }
.orb--big svg { width: 34px; height: 34px; }
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.link-u:hover { background-size: 100% 1px; }

/* ---------- veil ---------- */
.veil { position: fixed; inset: 0; z-index: 1000; background: var(--violet); display: none; }
.veil.is-on { display: block; }
.veil__stage { position: absolute; inset: 0; display: grid; place-items: center; }
.veil__word svg { overflow: visible; }
.veil__word .glyph { fill: #fff; }
.veil__count { position: absolute; right: 28px; bottom: 22px; color: #fff; font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- nav: one bar, pills inside ---------- */
.nav { position: sticky; top: 14px; z-index: 50; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 12px 0 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 rgba(20, 17, 24, 0.04), 0 10px 30px -18px rgba(20, 17, 24, 0.25); }
.word { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.06em; line-height: 1; display: inline-flex; }
.word .ch { display: inline-block; }
.nav__links { margin-left: auto; display: flex; gap: 6px; }
.nav__links a { height: 36px; padding: 0 18px; display: grid; place-items: center; border-radius: 999px; background: var(--card); font-size: 0.8rem; font-weight: 500; box-shadow: 0 0 0 1px rgba(20, 17, 24, 0.04); transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.nav__links a:hover { background: var(--lav); }
.nav__links a.is-active { background: var(--violet); color: #fff; }
.nav__tools { display: flex; align-items: center; gap: 6px; margin-left: 14px; }
.nav__tools .pill--dark { gap: 9px; padding: 0 18px; }
.nav__tools .pill--dark:hover { background: var(--violet-deep); }
.burger { display: none; background: var(--black); }
.burger i { position: absolute; width: 14px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.4s var(--ease); }
.burger { position: relative; }
.burger i:first-child { transform: translateY(-3px); }
.burger i:last-child { transform: translateY(3px); }
.burger[aria-expanded='true'] i:first-child { transform: rotate(45deg); }
.burger[aria-expanded='true'] i:last-child { transform: rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: 110px 24px 24px; visibility: hidden; clip-path: inset(0 0 100% 0); }
.drawer nav { display: grid; gap: 4px; }
.drawer a { font-size: 3rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1.1; }

/* ---------- blocks: color, round corners, cut-outs ---------- */
.block { position: relative; border-radius: var(--r); overflow: hidden; isolation: isolate; }
.block--violet { background: var(--violet); color: #fff; }
.block--dark { background: var(--black); color: #fff; }
.block--lav { background: var(--lav); color: var(--ink); }
.cut { position: absolute; z-index: 5; background: var(--bg); display: grid; gap: 10px; place-items: center; }
.cut::before, .cut::after { content: ''; position: absolute; width: var(--cut); height: var(--cut); pointer-events: none; }
/* top right: the corner and the two little curves that join it to the block */
.cut--tr { top: 0; right: 0; padding: 0 0 12px 12px; border-bottom-left-radius: calc(var(--r) - 6px); }
.cut--tr::before { right: 100%; top: 0; background: radial-gradient(circle at 0 100%, transparent calc(var(--cut) - 0.5px), var(--bg) var(--cut)); }
.cut--tr::after { right: 0; top: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--cut) - 0.5px), var(--bg) var(--cut)); }
.cut--bl { left: 0; bottom: 0; padding: 12px 12px 0 0; border-top-right-radius: calc(var(--r) - 6px); }
.cut--bl::before { left: 0; bottom: 100%; background: radial-gradient(circle at 100% 0, transparent calc(var(--cut) - 0.5px), var(--bg) var(--cut)); }
.cut--bl::after { left: 100%; bottom: 0; background: radial-gradient(circle at 100% 0, transparent calc(var(--cut) - 0.5px), var(--bg) var(--cut)); }
.cut--br { right: 0; bottom: 0; padding: 12px 0 0 12px; border-top-left-radius: calc(var(--r) - 6px); }
.cut--br::before { right: 0; bottom: 100%; background: radial-gradient(circle at 0 0, transparent calc(var(--cut) - 0.5px), var(--bg) var(--cut)); }
.cut--br::after { right: 100%; bottom: 0; background: radial-gradient(circle at 0 0, transparent calc(var(--cut) - 0.5px), var(--bg) var(--cut)); }
.cut--tl { left: 0; top: 0; padding: 0 12px 12px 0; border-bottom-right-radius: calc(var(--r) - 6px); }
.cut--tl::before { left: 100%; top: 0; background: radial-gradient(circle at 100% 100%, transparent calc(var(--cut) - 0.5px), var(--bg) var(--cut)); }
.cut--tl::after { left: 0; top: 100%; background: radial-gradient(circle at 100% 100%, transparent calc(var(--cut) - 0.5px), var(--bg) var(--cut)); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 60px); align-items: center; min-height: calc(100svh - 92px); padding: 28px 0 40px; }
.hero__copy { display: grid; gap: 30px; }
.hero__copy .side { justify-self: start; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); padding-top: 26px; border-top: 1px solid var(--line); }
.stats dt { display: flex; justify-content: center; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1; font-weight: 600; letter-spacing: -0.05em; color: var(--violet); font-variant-numeric: tabular-nums; }
.stats sup { font-size: 0.5em; line-height: 1.4; margin-right: 2px; }
.stats dd { margin-top: 8px; text-align: center; font-size: 0.82rem; line-height: 1.35; color: var(--ink-2); }

.stage { height: min(78svh, 700px); min-height: 480px; }
.ghost { position: absolute; z-index: -1; left: 26px; top: 18px; font-size: clamp(5rem, 9vw, 9rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4); writing-mode: vertical-rl; transform: rotate(180deg); }
.demo { position: absolute; z-index: 2; left: 50%; top: 0; width: min(94%, 760px); transform: translateX(-50%); }
.demo__win { position: relative; aspect-ratio: 840 / 478; clip-path: inset(0 calc(50% - 105px) calc(100% - 40px) calc(50% - 105px) round 0 0 22px 22px); }
.demo__win img { position: absolute; top: 0; left: 50%; height: auto; transform: translateX(-50%); opacity: 0; }
.demo__win img.is-on { opacity: 1; }
.demo__pill { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 210px; height: 40px; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 0 0 22px 22px; background: #000; color: #fff; font-weight: 600; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.demo__pill span:last-child { color: #c9b6ff; }
.lydia--hero { position: absolute; z-index: 1; left: 50%; bottom: 6%; width: clamp(130px, 24%, 200px); transform: translateX(-50%); }
.stage .cut--br .orb { width: 64px; height: 64px; }
.thumb { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #000; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line); transition: transform 0.5s var(--ease); }
.thumb:hover { transform: scale(1.08); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transform: scale(1.9); transform-origin: 24% 30%; }

/* Lydia, as she is in the app */
.lydia svg { width: 100%; height: auto; overflow: visible; }
.lydia .body { transform-origin: 50% 90%; animation: breathe 4.4s ease-in-out infinite; }
.lydia .face { transition: transform 0.16s ease-out; }
.lydia .eye-dot { fill: #f6f1ff; transform-box: fill-box; transform-origin: center; transition: transform 0.09s ease-in-out, opacity 0.2s; }
.lydia .eye-happy { fill: none; stroke: #f6f1ff; stroke-width: 3.6; stroke-linecap: round; opacity: 0; transition: opacity 0.2s; }
.lydia.blink .eye-dot { transform: scaleY(0.1); }
.lydia.happy .eye-dot { opacity: 0; }
.lydia.happy .eye-happy { opacity: 1; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, 0.98); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 10vw, 150px) 0 0; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 30px; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.span-2 { grid-column: span 2; }
.tile { height: clamp(320px, 30vw, 400px); }
.tile__shot { position: absolute; left: 50%; top: 0; width: 88%; height: 62%; transform: translateX(-50%); transition: transform 0.8s var(--ease); }
.tile__shot img { width: 100%; height: 100%; object-fit: contain; object-position: top center; }
.tile:hover .tile__shot { transform: translateX(-50%) translateY(6px) scale(1.02); }
.tile__foot { position: absolute; left: 24px; right: 110px; bottom: 22px; display: grid; gap: 10px; justify-items: start; }
.tag { height: 32px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 0.8rem; font-weight: 600; background: #fff; color: var(--ink); }
.block--lav .tag { background: var(--black); color: #fff; }
.tile__foot p { font-size: 0.92rem; line-height: 1.4; opacity: 0.85; }
.orb--num { width: 56px; height: 56px; font-size: 0.8rem; }
.block--dark .orb--num { background: var(--violet); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.split__copy { display: grid; gap: 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.talk { height: clamp(460px, 44vw, 600px); display: grid; place-items: center; align-content: center; gap: 30px; }
.lydia--talk { width: clamp(150px, 15vw, 210px); }
.bubbles { display: grid; gap: 10px; width: min(80%, 380px); }
.bubble { padding: 12px 18px; border-radius: 22px; font-size: 0.92rem; max-width: 90%; opacity: 0; }
.bubble--me { justify-self: end; background: var(--violet); border-bottom-right-radius: 6px; }
.bubble--her { justify-self: start; background: #221d2d; color: #e7e0fb; border-bottom-left-radius: 6px; }

.stats--wide { grid-template-columns: repeat(3, 1fr); border-top: 0; padding-top: 0; }

.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto 52px; align-items: center; gap: 18px; padding: 10px 10px 10px 14px; border-radius: 24px; background: var(--card); }
.row .pill--dark { justify-content: center; height: 40px; }
.pill--rec { height: 26px; padding: 0 10px; font-size: 0.7rem; font-weight: 600; background: var(--violet); color: #fff; }
.row__tag { display: flex; gap: 6px; align-items: center; }
.row__who { font-weight: 500; }
.row code { font: 500 0.82rem ui-monospace, 'SFMono-Regular', Menlo, monospace; color: var(--ink-2); }
.row .orb { width: 52px; height: 52px; }
.row .orb svg { width: 20px; height: 20px; }
.row .orb.is-copied { background: var(--violet); }
.row .orb:hover svg { transform: none; }

.cta { min-height: clamp(320px, 34vw, 460px); padding: clamp(36px, 5vw, 64px); display: flex; align-items: flex-end; }
.cta h2 { font-size: clamp(2.6rem, 6.4vw, 6.4rem); line-height: 0.92; letter-spacing: -0.055em; font-weight: 800; max-width: 12ch; }
.cut--big { padding: 16px 0 0 16px; }

/* ---------- footer ---------- */
.footer { padding: 40px 0 0; }
.footer__row { display: flex; justify-content: space-between; gap: 20px; font-size: 0.85rem; color: var(--ink-2); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer__mark { margin-top: 20px; }
.footer__mark svg { width: 100%; height: auto; overflow: visible; }
.footer__mark .glyph { fill: var(--ink); transition: fill 0.4s; }
.footer__mark:hover .glyph { fill: var(--violet); }
.footer__mark .hit { fill: transparent; cursor: pointer; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none; }
.cursor__label { display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--violet); color: #fff; transform: scale(0); }
.cursor__text { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) { .nav__tools .date { display: none; } .nav__links a { padding: 0 13px; } }
@media (max-width: 960px) {
  .nav__links, .nav__tools .pill { display: none; }
  .nav__tools { margin-left: auto; }
  .burger { display: grid; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .stage { height: 540px; }
  .intro { grid-template-columns: 1fr; align-items: start; }
  .bento { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 200px minmax(0, 1fr) 52px; }
  .row code { display: none; }
}
@media (max-width: 620px) {
  :root { --r: 30px; --cut: 18px; }
  .bento { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
    .stage { height: 470px; }
  .stage .cut--br .orb, .orb { width: 50px; height: 50px; }
  .thumb { width: 46px; height: 46px; }
  .stats--wide { grid-template-columns: 1fr 1fr 1fr; }
  .stats--wide dt { font-size: 2.4rem; }
  .row { grid-template-columns: 1fr 52px; }
  .row .pill--dark, .row__tag { justify-self: start; }
  .row__who { grid-column: 1; grid-row: 2; font-size: 0.85rem; color: var(--ink-2); }
  .row .orb { grid-row: 1 / 3; grid-column: 2; }
  .footer__row { flex-direction: column; }
}
