/* Self-hosted fonts (no requests to Google): Outfit and Inter variable, SIL Open Font License 1.1
   (assets/fonts/*-OFL.txt), from Fontsource. One file per family covers weights 100–900. */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/outfit-latin-wght-normal.6c18d579fd.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/outfit-latin-ext-wght-normal.0f53d1c03b.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.3100e775e8.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-ext-wght-normal.34b9c504ca.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* Smartistica v6 (textured) — the frozen v4 dark design plus dimmed section textures.
   Smartistica v4 (dark) — built only from the brand tokens and the dark applications
   of the identity: navy banner, blue card front, charcoal enclosure (#2A303D / #363D4C / #8A93A6). */
:root {
  --sm-blue: #1F3FAE;
  --sm-navy: #0F1F5C;
  --sm-charcoal: #1C2230;
  --sm-slate: #5A6272;
  --sm-lens: #C9D4FF;
  --sm-mist: #F4F6FB;
  --sm-white: #FFFFFF;
  --sm-border: #E3E7F0;
  --sm-btn-border: #DCE1EC;
  --sm-font-display: "Outfit", system-ui, sans-serif;
  --sm-font-body: "Inter", system-ui, sans-serif;
  --sm-radius-sm: 10px;
  --sm-radius-md: 16px;
  --sm-radius-lg: 20px;
  --sm-radius-pill: 999px;
  --gutter: clamp(20px, 4vw, 56px);
  --wrap: 1360px;

  --sm-enclosure: #2A303D;   /* raised surface (product enclosure in the identity) */
  --sm-enclosure-edge: #363D4C;
  --sm-etched: #8A93A6;      /* etched mark grey: decoration only */
  --sm-soft: #C5CAD6;        /* secondary text on charcoal (9.7:1) */

  /* section themes: charcoal (default), navy (.dark), blue (.blue) */
  --bg: var(--sm-charcoal);
  --fg: var(--sm-white);
  --muted: var(--sm-soft);
  --line: var(--sm-lens);
  --hair: rgba(201,212,255,.16);
  --surface: var(--sm-enclosure);
  --surface-edge: var(--sm-enclosure-edge);
}
.dark { --bg: var(--sm-navy); --muted: var(--sm-lens); --hair: rgba(201,212,255,.2); --surface: var(--sm-charcoal); --surface-edge: rgba(201,212,255,.16); }
.blue { --bg: var(--sm-blue); --muted: var(--sm-lens); --line: var(--sm-white); --hair: rgba(255,255,255,.26); --surface: var(--sm-charcoal); --surface-edge: rgba(201,212,255,.16); }

*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: dark; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sm-font-body); font-size: 16px; line-height: 26px; color: var(--sm-white); background: var(--sm-charcoal); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sm-lens); outline-offset: 3px; border-radius: 4px; }
.blue :focus-visible { outline-color: var(--sm-white); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 3000; background: #fff; color: var(--sm-charcoal); padding: 10px 16px; border-radius: var(--sm-radius-sm); }
.skip:focus { left: 8px; }
p { margin: 0 0 16px; }

/* Brand label style (Inter 600, caps, +0.12em) used as the small technical voice */
.label, .meta { font: 600 12px/16px var(--sm-font-body); text-transform: uppercase; letter-spacing: 0.12em; }

/* Placeholders */
.ph { background: rgba(255,214,102,.14); color: #FFE7A3 !important; border: 1px dashed rgba(255,214,102,.7); border-radius: 6px; padding: 0 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; font-style: normal; }
.ph-block { display: grid; place-items: center; text-align: center; background: rgba(255,214,102,.08); color: #FFE7A3; border: 1px dashed rgba(255,214,102,.6); border-radius: var(--sm-radius-md); padding: 20px; font-size: 14px; line-height: 22px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; font: 500 14px/1 var(--sm-font-body); border-radius: var(--sm-radius-pill); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--sm-blue); color: #fff; }
.btn-primary:hover { background: var(--sm-navy); }
.btn-secondary { background: transparent; color: var(--fg); border-color: rgba(201,212,255,.4); }
.btn-secondary:hover { border-color: var(--fg); }
.dark .btn-primary, .blue .btn-primary { background: #fff; color: var(--sm-navy); }
.dark .btn-primary:hover, .blue .btn-primary:hover { background: var(--sm-lens); }

/* ---------- Aperture menu (replaces the top bar) ----------
   A small aperture sits in the top-right corner of every page. It opens a full-screen
   menu through a shutter: the hexagon grows from the button while the blades turn. */
.site-header { position: fixed; top: 16px; right: 16px; z-index: 300; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
/* The word "Menu" and the Artística Blue disc share one frosted-glass pill, so the label stays
   legible over any section. The tint alone keeps white text above 4.5:1 even over white text behind
   it (0.68 charcoal over #FFF ≈ #656A75 → 5.9:1); without backdrop blur the pill turns solid. */
.menu-btn { display: inline-flex; align-items: center; gap: 12px; padding: 4px 4px 4px 20px; border-radius: 999px; cursor: pointer;
  color: #fff; font: 500 15px/1 var(--sm-font-body);
  background: rgba(28,34,48,.68); border: 1px solid rgba(201,212,255,.22);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 24px rgba(10,14,28,.28); transition: border-color .2s, background-color .2s; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .menu-btn { background: #1C2230; } }
.menu-btn:hover { border-color: rgba(201,212,255,.55); background: rgba(42,48,64,.78); }
.menu-disc { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--sm-blue); box-shadow: 0 0 0 1px rgba(255,255,255,.35); transition: background-color .2s, box-shadow .2s; }
.menu-btn:hover .menu-disc { background: #2A4FD0; box-shadow: 0 0 0 1px #fff; }
.menu-btn:focus-visible { outline: 3px solid var(--sm-lens); outline-offset: 4px; border-radius: 999px; }
.menu-btn, .menu-btn:hover, .menu-btn:focus { text-decoration: none; }
.menu-ap { width: 34px; height: 34px; overflow: visible; }
html.menu-open { overflow: hidden; }
.site-menu { position: fixed; inset: 0; z-index: 400; }
.site-menu[hidden] { display: none; }
.menu-blades { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.menu-panel { position: absolute; inset: 0; overflow-y: auto; background: var(--sm-charcoal); display: flex; }
.menu-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(textures/lens-rings.59548ced1a.svg) no-repeat right -420px center / 1500px; opacity: .09; }
.menu-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 55% at 80% 0%, rgba(201,212,255,.06), rgba(201,212,255,0) 70%); }
.menu-panel .wrap { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: 22px; padding-bottom: 32px; min-height: 100%; }
.menu-panel .lockup { align-self: flex-start; }
.menu-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(201,212,255,.18); }
.menu-links li { border-bottom: 1px solid rgba(201,212,255,.18); }
.menu-links a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding: clamp(14px, 2.2vh, 24px) 0; text-decoration: none; color: #fff; }
.mi-t { font: 600 clamp(40px, 6.4vw, 96px)/1 var(--sm-font-display); letter-spacing: -0.045em; transition: color .2s, transform .35s cubic-bezier(.2,.7,.2,1); }
.mi-s { font: 400 15px/22px var(--sm-font-body); color: var(--sm-soft); }
.menu-links a:hover .mi-t, .menu-links a:focus-visible .mi-t { color: var(--sm-lens); transform: translateX(10px); }
.menu-links a[aria-current="page"] .mi-t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }
.menu-links a.cta .mi-t { color: var(--sm-lens); }
.menu-links a.cta:hover .mi-t { color: #fff; }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; color: var(--sm-soft); font-size: 15px; }
.menu-foot p { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; margin: 0; }
.menu-foot a { min-height: 44px; display: inline-flex; align-items: center; color: #fff; }
.menu-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
@media (max-width: 760px) {
  .site-header, .menu-close { top: 12px; right: 12px; }
  .menu-btn { gap: 10px; padding-left: 16px; }
  .menu-disc { width: 50px; height: 50px; }
  .menu-ap { width: 28px; height: 28px; }
  .menu-links a { flex-direction: column; gap: 6px; }
  .mi-t { font-size: clamp(36px, 11vw, 52px); }
  .mi-s { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .mi-t { transition: none; } .menu-links a:hover .mi-t { transform: none; } }

/* Notes page bar (proposal.html only) */
.notes-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; color: #fff; background: var(--sm-charcoal); transition: color .25s, background-color .25s; }
.notes-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.lockup { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.lockup svg { width: 26px; height: 26px; color: #fff; }
.lockup span { font: 600 20px/1 var(--sm-font-display); letter-spacing: -0.025em; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font: 600 12px/1 var(--sm-font-body); text-transform: uppercase; letter-spacing: 0.12em; }
.nav-links a:not(.btn):hover { text-decoration: underline; }
.nav-links .btn { margin-left: 10px; min-height: 40px; padding: 0 18px; }
.notes-header.on-dark .nav-links .btn-primary { background: #fff; color: var(--sm-navy); }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--sm-radius-pill); border: 1px solid currentColor; background: transparent; color: inherit; font: 600 12px var(--sm-font-body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
  .nav-links { display: none; position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--sm-charcoal); color: #fff; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--sm-enclosure-edge); }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { min-height: 52px; border-bottom: 1px solid var(--sm-enclosure-edge); padding: 0; font-size: 13px; }
  .nav-links .btn { margin: 16px 0 0; }
  .notes-header.on-dark .nav-links .btn-primary { background: var(--sm-blue); color: #fff; }
}

/* Demo notice: small fixed pill so it never breaks the layout */
.demo-pill { position: fixed; right: 12px; bottom: 12px; width: 300px; z-index: 300; display: flex; align-items: center; gap: 4px; max-width: calc(100% - 24px); background: var(--sm-enclosure); color: #fff; border-radius: var(--sm-radius-md); padding: 6px 6px 6px 14px; font-size: 12px; line-height: 18px; box-shadow: 0 0 0 1px var(--sm-enclosure-edge); }
.demo-pill p { margin: 0; }
.demo-pill button { min-width: 44px; min-height: 36px; border: 0; border-radius: var(--sm-radius-sm); background: rgba(255,255,255,.1); color: #fff; font: 500 12px var(--sm-font-body); cursor: pointer; }
.demo-pill[hidden] { display: none; }

/* ---------- Intro: the logo draws itself, then the shutter opens ---------- */
.intro { position: fixed; inset: 0; z-index: 1000; pointer-events: auto; }
.intro svg { width: 100%; height: 100%; max-width: none; }

html[data-intro] body::after { content: ""; position: fixed; inset: 0; z-index: 999; background: var(--sm-charcoal); animation: cover-off .3s 3s forwards; }
@keyframes cover-off { to { opacity: 0; visibility: hidden; } }
.hero-title { transition: filter 1.2s cubic-bezier(.2,.7,.2,1), opacity 1.2s; }
html.intro-run:not(.intro-done) .hero-title { filter: blur(18px); opacity: .15; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg); padding: 104px 0 40px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.hero-title { font: 600 clamp(54px, 11.2vw, 184px)/0.88 var(--sm-font-display); letter-spacing: -0.055em; margin: 0; color: #fff; }
.hero-title span { display: block; }
.hero-title span:nth-child(2) { padding-left: 0.5em; }
.hero > .wrap { width: 100%; }
/* Home hero: centred vertically in the first screen (the top bar is gone) */
.hero.hero-home { justify-content: center; gap: clamp(48px, 8vh, 96px); padding: 96px 0; }
@media (max-width: 760px) { .hero.hero-home { min-height: 100vh; min-height: 100svh; padding: 80px 0; gap: 56px; } }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero-copy .hero-h1 { font: 600 clamp(20px, 1.9vw, 26px)/1.3 var(--sm-font-display); letter-spacing: -0.015em; color: #fff; max-width: 30em; margin: 0 0 14px; }
.hero-copy .lead { font-size: 18px; line-height: 30px; color: var(--muted); max-width: 30em; margin: 0 0 24px; }
.hero-copy .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; min-height: 44px; }
.scroll-hint svg { width: 22px; height: 22px; color: var(--sm-lens); }
@media (max-width: 760px) { .hero-title { font-size: 15.5vw; } .hero-title span:nth-child(2) { padding-left: 0; } .hero { padding-top: 96px; min-height: auto; gap: 64px; padding-bottom: 32px; } .demo-pill { width: auto; left: 12px; } }

.ways { background: var(--bg); padding: 40px 0 clamp(96px, 12vw, 160px); }
.ways-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(32px, 6vw, 96px); align-items: center; }
.ways-title { font: 600 clamp(34px, 4.6vw, 64px)/1 var(--sm-font-display); letter-spacing: -0.04em; margin: 0 0 20px; }
.lens-blurb { color: var(--muted); font-size: 18px; line-height: 28px; max-width: 26em; min-height: 56px; }
@media (max-width: 900px) { .ways-grid { grid-template-columns: 1fr; } }

/* Hero aperture: a line drawing whose six blades are the six sections */
.lens { position: relative; width: 100%; max-width: 600px; justify-self: end; aspect-ratio: 1; }
.lens svg { width: 100%; height: 100%; overflow: visible; }
.lens .ring, .lens .hex, .lens .bl { fill: none; stroke: var(--sm-lens); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.lens .zone { fill: var(--sm-blue); fill-opacity: 0; transition: fill-opacity .2s; cursor: pointer; }
.lens .zone.on { fill-opacity: 1; }
.lens .node { fill: var(--sm-charcoal); stroke: var(--sm-lens); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.lens .node.on { fill: var(--sm-lens); }
.lens-label { position: absolute; transform: translate(-50%, -50%); text-align: center; width: max-content; max-width: 30%; line-height: 1.25 !important; text-decoration: none; font: 600 12px/1 var(--sm-font-body); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; padding: 12px 8px; border-radius: var(--sm-radius-sm); }
.lens-label b { display: block; color: var(--sm-lens); font-weight: 600; margin-bottom: 4px; }
.lens-label:hover, .lens-label.on { color: #fff; }
.lens-label.on b { color: #fff; }
@media (max-width: 900px) { .lens { justify-self: center; max-width: 420px; margin-top: 8px; } .lens-label { font-size: 11px; letter-spacing: .06em; } }

/* ---------- Worlds (one per section) ---------- */
/* No top bar: section and hero top padding only keeps the content clear of the Menu pill.
   Section separators are the colour change alone (no top lines). */
.world { position: relative; background: var(--bg); color: var(--fg); padding: clamp(96px, 11vh, 120px) 0 clamp(96px, 12vw, 160px); overflow: hidden; }
.gate { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; z-index: 5; pointer-events: none; max-width: none; }
.world-meta { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); }
.world-meta .num { color: var(--line); }
.world-title { font: 600 clamp(40px, 12.5vw, 220px)/0.88 var(--sm-font-display); letter-spacing: -0.055em; margin: 28px 0 0; will-change: filter; }
.world-title.small { font-size: clamp(44px, 9vw, 150px); }
.stage { position: relative; margin: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.illo { width: 100%; height: auto; overflow: visible; }
.illo .d { fill: none; stroke: var(--line); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.illo .dash { stroke-dasharray: 4 6; }
.illo .dot { fill: var(--line); }
.cards { display: grid; gap: 16px; align-content: center; }
.card { background: var(--surface); color: #fff; border: 1px solid var(--surface-edge); border-radius: var(--sm-radius-md); padding: 16px 18px; max-width: 360px; font-size: 14px; line-height: 20px; will-change: transform; }
.card .meta { color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 10px; }
.card h3, .card .card-title { font: 600 18px/24px var(--sm-font-display); margin: 0 0 4px; }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid var(--surface-edge); }
.tag { font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 6px; background: rgba(201,212,255,.14); color: var(--sm-lens); }
.tag.fix { background: var(--sm-blue); color: #fff; }
.card:nth-child(2) { margin-left: clamp(0px, 4vw, 56px); }
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; } .card:nth-child(2) { margin-left: 24px; } }

.world-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 96px); border-top: 1px solid var(--hair); padding-top: 32px; }
.world-body .lead { font: 500 clamp(22px, 2.4vw, 30px)/1.3 var(--sm-font-display); letter-spacing: -0.015em; margin: 0; }
.world-body p { color: var(--muted); max-width: 40em; }
@media (max-width: 900px) { .world-body { grid-template-columns: 1fr; } }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; line-height: 20px; padding: 5px 12px; border-radius: var(--sm-radius-sm); border: 1px solid rgba(201,212,255,.3); color: var(--fg); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); counter-reset: s; border-top: 1px solid var(--hair); }
.steps li { counter-increment: s; padding: 18px 16px 0 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 12px/16px var(--sm-font-body); letter-spacing: .12em; color: var(--line); margin-bottom: 10px; }
.steps h3 { font: 600 17px/24px var(--sm-font-display); margin: 0 0 4px; }
.steps p { font-size: 14px; line-height: 22px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 0 16px; } .steps li { padding-bottom: 18px; } }

/* Care plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 40px; }
.plan { background: var(--surface); border: 1px solid var(--surface-edge); border-radius: var(--sm-radius-lg); padding: 24px; display: flex; flex-direction: column; }
.plan.featured { background: var(--sm-blue); color: #fff; border-color: var(--sm-blue); }
.plan h3 { font: 600 22px/28px var(--sm-font-display); margin: 0; }
.plan .price { font: 500 18px var(--sm-font-display); margin: 8px 0 16px; }
.plan ul { margin: 0 0 24px; padding: 0 0 0 18px; font-size: 15px; line-height: 24px; color: var(--muted); }
.plan.featured ul { color: var(--sm-lens); }
.plan .btn { margin-top: auto; }
.plan.featured .btn-primary { background: #fff; color: var(--sm-navy); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
/* Care plan tiers (On screen, 03): sits above the parallax cards */
.plans-care { position: relative; z-index: 2; margin-top: clamp(64px, 8vw, 104px); align-items: stretch; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-tag { font: 600 12px/1 var(--sm-font-body); padding: 7px 10px; border-radius: var(--sm-radius-pill); background: #fff; color: var(--sm-navy); }
.price-year { display: block; margin-top: 4px; font: 400 14px/20px var(--sm-font-body); color: var(--muted); }
.plan.featured .price-year { color: var(--sm-lens); }
.plan-inc { margin: 0 0 8px; font-size: 15px; line-height: 22px; color: #fff; }
.plan .btn { align-self: flex-start; }
.plans-note { position: relative; z-index: 2; margin: 20px 0 0; color: var(--sm-soft); }

/* Work */
.work-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.work-list li { display: grid; grid-template-columns: 80px minmax(0, 5fr) minmax(0, 4fr) 200px; gap: 16px 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--hair); }
.work-list .n { color: var(--line); }
.work-list h3 { font: 600 clamp(28px, 4vw, 56px)/1 var(--sm-font-display); letter-spacing: -0.04em; margin: 0; }
.work-list p { margin: 0; color: var(--muted); }
.work-list .ph-block { min-height: 110px; padding: 10px; font-size: 12px; line-height: 16px; }
@media (max-width: 900px) { .work-list li { grid-template-columns: 48px 1fr; } .work-list p, .work-list .ph-block { grid-column: 2; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 6vw, 96px); margin-top: 40px; align-items: start; }
.about-grid .lead { font: 500 clamp(22px, 2.4vw, 30px)/1.3 var(--sm-font-display); letter-spacing: -0.015em; }
.construction { width: 100%; max-width: 320px; color: var(--sm-lens); margin: 0 0 16px; }
.construction .guide { stroke: var(--sm-etched); stroke-width: .5; stroke-dasharray: 2 2; fill: none; }
.construction text { font: 600 5px var(--sm-font-body); letter-spacing: .1em; fill: var(--sm-soft); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; padding: 14px 0; font: 500 clamp(18px, 2vw, 24px)/1.3 var(--sm-font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 28px/1 var(--sm-font-body); color: var(--line); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 22px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px clamp(32px, 6vw, 96px); margin-top: 48px; align-items: start; }
.facts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hair); }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.facts span { color: var(--muted); }
form.project { background: var(--sm-charcoal); color: #fff; border-radius: var(--sm-radius-lg); padding: clamp(22px, 3vw, 32px); }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-size: 13px; color: var(--sm-soft); font-weight: 400; }
.field input[type=text], .field input[type=email], .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px/24px var(--sm-font-body); color: #fff; border: 1px solid var(--sm-etched); border-radius: var(--sm-radius-sm); background: var(--sm-enclosure); }
.field textarea { min-height: 120px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--sm-radius-pill); border: 1px solid rgba(201,212,255,.4); font-size: 14px; font-weight: 500; }
.choice input:checked + span { background: var(--sm-blue); border-color: var(--sm-blue); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--sm-lens); outline-offset: 2px; }
/* file picker: the native input stays in the page for keyboard and screen readers, drawn as a site button */
.file-pick { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.file-pick .file-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.field .file-pick .file-btn { display: inline-flex; margin: 0; min-height: 44px; padding: 0 20px; flex: none; font: 500 14px/1 var(--sm-font-body); }
.file-pick .file-input:focus-visible + .file-btn { outline: 3px solid var(--sm-lens); outline-offset: 3px; }
.file-pick .file-input:hover + .file-btn, .file-pick .file-btn:hover { border-color: var(--fg); }
.file-names { flex: 1 1 160px; min-width: 0; font-size: 14px; line-height: 20px; color: var(--sm-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-names.has-files { color: var(--fg); }
/* Turnstile: Cloudflare draws the widget in its own frame; this panel and the clipped corners fit it to the site */
.field.turnstile { padding: 12px; border: 1px solid var(--surface-edge); border-radius: var(--sm-radius-md); background: var(--surface); }
.field.turnstile .cf-turnstile { min-height: 65px; border-radius: var(--sm-radius-sm); overflow: hidden; line-height: 0; }
.field.turnstile .cf-turnstile iframe { display: block; }
.form-note { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--sm-radius-sm); background: var(--sm-enclosure); font-size: 14px; }
.form-note[hidden] { display: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-grid > *, form.project, .facts, .facts li > * { min-width: 0; }
.facts a, .facts span { overflow-wrap: anywhere; }
.field input, .field textarea, .field select { max-width: 100%; }

.site-footer { background: var(--sm-charcoal); color: #fff; padding: 40px 0 88px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.site-footer .lockup svg { color: #fff; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer nav a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; padding: 0 8px; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .legal { width: 100%; color: var(--sm-lens); margin: 0; }
.site-footer .legal-nav { width: 100%; margin: -8px 0 0 -8px; }
.site-footer .legal-nav a { color: var(--sm-soft); }
.site-footer nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Textures (v6): one dimmed texture per section, plus film grain ---------- */
.ways { position: relative; }
.hero::before, .ways::before, .world::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--tex, none); opacity: var(--tex-o, .06);
  -webkit-mask-image: var(--tex-mask, none); mask-image: var(--tex-mask, none);
}
/* soft studio light from the top of each section */
.hero::after, .ways::after, .world::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 55% at var(--light-x, 25%) 0%, rgba(201,212,255,.055), rgba(201,212,255,0) 70%);
}
.hero > .wrap, .ways > .wrap, .world > .wrap { position: relative; z-index: 1; }
.gate { z-index: 5; }
/* film grain over the whole page: very faint, gives the flat colours a printed, photographic feel */
body::before { content: ""; position: fixed; inset: 0; z-index: 150; pointer-events: none; background: url(textures/grain.52229c0262.svg) repeat; background-size: 220px; opacity: .045; }

/* Textures by class, so each page can pick from the v6 set */
.tx-rings    { --tex: url(textures/lens-rings.59548ced1a.svg) no-repeat right -360px center / 1500px; --tex-o: .085; --light-x: 80%; }
.tx-rings-l  { --tex: url(textures/lens-rings.59548ced1a.svg) no-repeat left -420px center / 1500px; --tex-o: .12; --light-x: 30%; }
.tx-rays     { --tex: url(textures/rays.8f23f4b782.svg) no-repeat center center / 1400px; --tex-o: .05;
               --tex-mask: radial-gradient(circle at 50% 50%, #000 0 30%, transparent 70%); }
.tx-pixels   { --tex: url(textures/pixels.769871f274.svg) repeat 0 0 / 32px; --tex-o: .07;
               --tex-mask: radial-gradient(ellipse 70% 60% at 70% 35%, #000, transparent 75%); }
.tx-contours { --tex: url(textures/contours.c6be287a13.svg) no-repeat center 120px / 1500px; --tex-o: .075; --light-x: 70%; }
.tx-streaks  { --tex: url(textures/streaks.b63f90032a.svg) repeat-y center 0 / 1600px; --tex-o: .07;
               --tex-mask: linear-gradient(180deg, transparent 0, #000 20%, #000 60%, transparent 100%); }
.tx-signal   { --tex: url(textures/signal.116ca9dd74.svg) no-repeat left -200px bottom -200px / 1500px; --tex-o: .08; --light-x: 75%; }
.tx-pcb      { --tex: url(textures/pcb.88370d419c.svg) repeat 0 0 / 160px; --tex-o: .07;
               --tex-mask: radial-gradient(ellipse 65% 55% at 30% 40%, #000, transparent 75%); }
.tx-iso      { --tex: url(textures/isometric.398c55a87d.svg) repeat 0 0 / 60px 34.64px; --tex-o: .085;
               --tex-mask: radial-gradient(ellipse 70% 60% at 65% 35%, #000, transparent 75%); --light-x: 65%; }
.tx-brushed  { --tex: url(textures/brushed.b67c348f94.svg) repeat 0 0 / 600px 300px; --tex-o: .07; }
.tx-hex      { --tex: url(textures/hexgrid.aae056a257.svg) repeat 0 0 / 48.5px 42px; --tex-o: .06;
               --tex-mask: radial-gradient(ellipse 60% 60% at 80% 30%, #000, transparent 75%); --light-x: 75%; }
.tx-dots     { --tex: url(textures/dots.dbab2a9059.svg) repeat 0 0 / 24px; --tex-o: .1;
               --tex-mask: radial-gradient(ellipse 70% 70% at 50% 20%, #000, transparent 80%); }
@media (max-width: 760px) {
  .tx-rings { --tex: url(textures/lens-rings.59548ced1a.svg) no-repeat right -520px top 40px / 1000px; }
  .tx-rings-l { --tex: url(textures/lens-rings.59548ced1a.svg) no-repeat left -560px top 60px / 1000px; }
  .tx-contours, .tx-signal { --tex-o: .065; }
}

/* ---------- v6 restructure: two paths ---------- */

/* Two doors on the home page */
.doors { position: relative; padding: clamp(96px, 11vh, 120px) 0 clamp(96px, 12vw, 160px); }
.doors-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.doors-head h2 { font: 600 clamp(30px, 3.6vw, 52px)/1.02 var(--sm-font-display); letter-spacing: -0.04em; margin: 0; }
.doors-head p { color: var(--muted); max-width: 26em; margin: 0; font-size: 18px; line-height: 28px; }
.door-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.door { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: min(76vh, 680px); padding: clamp(24px, 3vw, 40px); border-radius: var(--sm-radius-lg); text-decoration: none; color: #fff;
  border: 1px solid rgba(201,212,255,.16); transition: border-color .25s; }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tex, none); opacity: var(--tex-o, .07); -webkit-mask-image: var(--tex-mask, none); mask-image: var(--tex-mask, none); }
.door.screen { background: var(--sm-navy); }
.door.hand { background: var(--sm-enclosure); }
.door:hover, .door:focus-visible { border-color: var(--sm-lens); }
.door-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.door-top .meta { color: var(--sm-lens); }
.door-ap { width: clamp(72px, 9vw, 120px); height: auto; color: var(--sm-lens); flex: none; overflow: visible; }
.door-title { display: block; font: 600 clamp(56px, 8.4vw, 136px)/0.88 var(--sm-font-display); letter-spacing: -0.055em; }
.door-sub { display: block; font: 500 clamp(20px, 2vw, 26px)/1.2 var(--sm-font-display); color: var(--sm-lens); margin-top: 14px; letter-spacing: -0.01em; }
.door p { color: var(--sm-soft); margin: 18px 0 0; max-width: 30em; }
.door.screen p { color: var(--sm-lens); }
.door-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; min-height: 48px; padding: 0 22px; border-radius: var(--sm-radius-pill); background: #fff; color: var(--sm-navy); font: 500 14px/1 var(--sm-font-body); align-self: flex-start; }
@media (max-width: 900px) { .door-grid { grid-template-columns: 1fr; } .door { min-height: 440px; } }

/* Mixed work strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.strip a { display: flex; flex-direction: column; text-decoration: none; color: #fff; background: var(--surface); border: 1px solid var(--surface-edge); border-radius: var(--sm-radius-md); overflow: hidden; transition: border-color .2s; }
.strip a:hover, .strip a:focus-visible { border-color: var(--sm-lens); }
.strip .ph-block { border-radius: 0; border-width: 0 0 1px; min-height: 180px; font-size: 13px; }
.strip .body { padding: 16px 18px 20px; }
.strip .meta { color: var(--muted); display: block; margin-bottom: 8px; }
.strip h3 { font: 600 22px/28px var(--sm-font-display); letter-spacing: -0.02em; margin: 0; }
@media (max-width: 1000px) { .strip { grid-template-columns: repeat(4, minmax(260px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .strip a { scroll-snap-align: start; } }

/* The line about Leo */
.leo { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: end; margin-top: 32px; }
.leo-line { font: 600 clamp(32px, 4.4vw, 68px)/0.98 var(--sm-font-display); letter-spacing: -0.05em; margin: 0; }
.leo p { color: var(--muted); }
@media (max-width: 900px) { .leo { grid-template-columns: 1fr; } }

/* Page heroes for the two paths and About */
.page-hero { min-height: 78vh; min-height: 78svh; }
.page-hero .hero-title { font-size: clamp(64px, 14vw, 230px); }
.page-hero .door-sub { font-size: clamp(24px, 3vw, 40px); }
.jump { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--sm-radius-pill); border: 1px solid rgba(201,212,255,.35); color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; }
.jump a:hover { border-color: #fff; }
.steps.six { grid-template-columns: repeat(6, minmax(0,1fr)); }
@media (max-width: 900px) { .steps.six { grid-template-columns: 1fr 1fr; } }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 56px; padding: 28px 32px; border-radius: var(--sm-radius-lg); background: var(--surface); border: 1px solid var(--surface-edge); }
.cta-band p { margin: 0; font: 500 clamp(20px, 2.2vw, 28px)/1.25 var(--sm-font-display); letter-spacing: -0.015em; }

/* ---------- Proposal page ---------- */
.prop { padding: 120px 0 80px; }
.prop h1 { font: 600 clamp(44px, 7vw, 104px)/0.92 var(--sm-font-display); letter-spacing: -0.05em; margin: 16px 0 24px; }
.prop .lead { font-size: 18px; line-height: 30px; color: var(--sm-soft); max-width: 40em; }
.prop h2 { font: 600 clamp(28px, 3.4vw, 44px)/1.1 var(--sm-font-display); letter-spacing: -0.03em; margin: 72px 0 20px; }
.prop h3 { font: 600 20px/28px var(--sm-font-display); margin: 0 0 6px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.box { background: var(--sm-enclosure); border: 1px solid var(--sm-enclosure-edge); border-radius: var(--sm-radius-md); padding: 22px; }
.box p { color: var(--sm-soft); font-size: 15px; line-height: 24px; margin: 0; }
.box .meta { color: var(--sm-lens); margin-bottom: 10px; }
.box dl { margin: 0; font-size: 15px; line-height: 24px; }
.box dt { font-weight: 600; margin-top: 10px; }
.box dd { margin: 2px 0 0; color: var(--sm-soft); }
.spec-wrap { overflow-x: auto; }
.spec { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; line-height: 24px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--hair); }
.spec th { font: 600 12px/16px var(--sm-font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--sm-soft); }
.spec td:first-child { font: 600 16px var(--sm-font-display); white-space: nowrap; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html[data-intro] body::after { display: none; }
  .gate, .intro { display: none !important; }
  .world-title { filter: none !important; opacity: 1 !important; }
}

/* ---------- Legal pages (legal.html, privacy.html, cookies.html): plain reading pages ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero.legal-hero { min-height: 0; padding-bottom: clamp(48px, 7vw, 88px); }
.legal-hero .hero-title { font-size: clamp(48px, 8.5vw, 128px); }
.legal-body { position: relative; background: var(--bg); color: #fff; padding: clamp(64px, 8vw, 104px) 0 clamp(96px, 12vw, 140px); }
.legal-doc { max-width: 72ch; font-size: 17px; line-height: 28px; }
.legal-doc h2 { font: 600 clamp(22px, 2.2vw, 28px)/1.25 var(--sm-font-display); letter-spacing: -0.015em; margin: 48px 0 12px; color: #fff; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--sm-soft); }
.legal-doc ul { margin: 0 0 16px; padding-left: 20px; }
.legal-doc li { margin: 4px 0; }
.legal-doc a { color: #fff; text-underline-offset: 3px; }
.legal-doc a:hover { color: var(--sm-lens); }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; line-height: 22px; }
.legal-table th { text-align: left; font: 600 13px/18px var(--sm-font-body); color: var(--sm-lens); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--hair); vertical-align: bottom; }
.legal-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hair); color: var(--sm-soft); vertical-align: top; }
.legal-table td:first-child { color: #fff; }
@media (max-width: 700px) {
  /* each row becomes a small labelled card so nothing scrolls sideways */
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table thead tr, .legal-table thead th { display: block; width: 1px; padding: 0; margin: 0; border: 0; white-space: nowrap; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tbody tr { border: 1px solid var(--hair); border-radius: var(--sm-radius-md); padding: 4px 16px; margin: 0 0 12px; }
  .legal-table td { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 10px 0; }
  .legal-table td:last-child { border-bottom: 0; }
  .legal-table td::before { content: attr(data-label); font: 600 13px/20px var(--sm-font-body); color: var(--sm-lens); }
  .legal-table td, .legal-table td::before { overflow-wrap: anywhere; min-width: 0; }
  .legal-table tr { max-width: 100%; }
}

/* ---------- Contact form: privacy consent ---------- */
.field.consent { margin: 4px 0 20px; }
.field .check, .check { display: grid; margin: 0; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; line-height: 22px; color: var(--sm-soft); cursor: pointer; }
.field .check input, .check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--sm-blue); cursor: pointer; }
.check a { color: #fff; }
.field .check span { font-weight: 400; }
.check input[aria-invalid="true"] { outline: 2px solid #FFB4A8; outline-offset: 2px; }
.field-error { margin: 8px 0 0 36px; font-size: 14px; line-height: 20px; color: #FFB4A8; }
.form-privacy { margin: 14px 0 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.form-privacy a { color: inherit; }

/* ---------- 404 page ---------- */
.hero.nf-hero { justify-content: center; gap: clamp(40px, 6vh, 72px); }
.nf-hero .hero-title { font-size: clamp(54px, 9.5vw, 156px); }
.nf-lead { max-width: 46ch; margin: 28px 0 0; color: var(--sm-soft); font-size: 18px; line-height: 28px; }
.nf-links .mi-t { font-size: clamp(30px, 4.2vw, 60px); }
.nf-links a { padding: clamp(12px, 1.8vh, 20px) 0; }

/* ---------- Language switch (menu and footer): EN / ES ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font: 600 14px/1 var(--sm-font-body); letter-spacing: .08em; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px; border-radius: var(--sm-radius-pill); color: var(--sm-soft); text-decoration: none; }
.lang-switch a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.lang-switch a[aria-current="true"] { color: #fff; background: rgba(201,212,255,.12); }
.lang-switch span { color: rgba(201,212,255,.35); }
.site-footer .lang-switch { margin-left: -8px; }
.site-footer .lang-switch a { padding: 0 8px; }

/* ---------- Contact form: sending ---------- */
.form-req { margin: 0 0 18px; font-size: 13px; line-height: 20px; color: var(--sm-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* spam trap: people never see it */
.form-error { margin: 0 0 14px; }
.form-status { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--sm-radius-sm); background: var(--sm-enclosure); font-size: 14px; line-height: 22px; }
.form-status[data-state="ok"] { background: rgba(201,212,255,.14); color: #fff; }
.form-status[data-state="error"] { background: rgba(255,180,168,.12); color: #FFB4A8; }
form.project button[aria-busy="true"] { opacity: .7; cursor: progress; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #FFB4A8; }

/* ---------- Large headings never split or cut a word ----------
   fit_headings.py measures each heading's widest word in em at build time and writes it as --fit.
   The font size is capped so that word fits the available width on one line, in every language. */
.hero-title, .world-title { overflow-wrap: normal; word-break: normal; hyphens: manual;
  --fit-size: calc((min(100vw, var(--wrap)) - 2 * var(--gutter) - 24px) / var(--fit, 0.0001)); }
/* Sizes (2026-11-21): smaller display type so every heading and its section's opening content fit one screen.
   Section titles are also capped by length (--len, the whole title on one line, in em, measured at build time)
   so long ones run to about two or three lines on desktop; --fit still keeps every word whole. */
.hero-title { font-size: min(clamp(54px, 9vw, 150px), var(--fit-size)); }
.page-hero .hero-title { font-size: min(clamp(60px, 11vw, 180px), var(--fit-size)); }
.legal-hero .hero-title { font-size: min(clamp(44px, 7vw, 108px), var(--fit-size)); }
.nf-hero .hero-title { font-size: min(clamp(50px, 8vw, 132px), var(--fit-size)); }
.world-title { --lines-size: calc((min(100vw, var(--wrap)) - 2 * var(--gutter)) * 2.3 / var(--len, 0.0001));
  font-size: min(var(--fit-size), max(30px, min(clamp(36px, 6.4vw, 112px), var(--lines-size)))); line-height: 0.92; }
.world-title.small { font-size: min(var(--fit-size), max(30px, min(clamp(34px, 5vw, 88px), var(--lines-size)))); }
@media (max-width: 760px) {
  .hero-title { font-size: min(14vw, var(--fit-size)); }
  .page-hero .hero-title { font-size: min(clamp(60px, 11vw, 180px), var(--fit-size)); }
  .legal-hero .hero-title { font-size: min(clamp(44px, 7vw, 108px), var(--fit-size)); }
  .nf-hero .hero-title { font-size: min(clamp(50px, 8vw, 132px), var(--fit-size)); }
}
/* the small label row above each section title can wrap instead of running past the edge */
.world-meta { flex-wrap: wrap; row-gap: 4px; }

.nowrap { white-space: nowrap; }
/* short phones (e.g. 320 x 568): the hero's display line, H1 and intro still fit one screen */
@media (max-width: 760px) and (max-height: 700px) {
  .hero, .hero.hero-home { padding-top: 76px; gap: 20px; }
  .hero-top .label { margin-bottom: 10px !important; }
  .hero-copy .hero-h1 { font-size: 17px; line-height: 1.28; margin-bottom: 8px; }
  .hero-copy .lead { font-size: 15px; line-height: 23px; margin-bottom: 16px; }
  .page-hero .door-sub { font-size: 20px; }
}

/* Language suggestion pill, under the menu pill: same frosted glass and height, a link and a close disc */
.lang-pill { display: inline-flex; align-items: center; gap: 12px; padding: 4px 4px 4px 20px; border-radius: 999px;
  color: #fff; font: 500 15px/1 var(--sm-font-body);
  background: rgba(28,34,48,.68); border: 1px solid rgba(201,212,255,.22);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  animation: lang-pill-in .3s ease-out both; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .lang-pill { background: #1C2230; } }
.lang-pill:hover { border-color: rgba(201,212,255,.55); }
.lang-pill-link { color: #fff; text-decoration: none; white-space: nowrap; }
/* pills never underline their text, in any state; the hover cue is the pill border lightening, and keyboard
   focus keeps its outline */
.btn, .btn:hover, .btn:focus, .btn:focus-visible, .btn *,
.menu-btn, .menu-btn:hover, .menu-btn:focus-visible, .menu-btn *,
.file-btn, .file-btn *, .lang-pill, .lang-pill *, .lang-pill-link:hover, .lang-pill-link:focus, .lang-pill-link:focus-visible { text-decoration: none; }
.lang-pill-link:focus-visible { outline: 3px solid var(--sm-lens); outline-offset: 4px; border-radius: 4px; }
.lang-pill-close { display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.06); border: 0; box-shadow: 0 0 0 1px rgba(201,212,255,.35); color: #fff; transition: background-color .2s, box-shadow .2s; }
.lang-pill-close:hover { background: rgba(255,255,255,.14); box-shadow: 0 0 0 1px #fff; }
.lang-pill-close:focus-visible { outline: 3px solid var(--sm-lens); outline-offset: 3px; }
.lang-pill-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@keyframes lang-pill-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .lang-pill { animation: none; } }
@media (max-width: 760px) { .site-header { gap: 8px; } .lang-pill { gap: 10px; padding-left: 16px; } .lang-pill-close { width: 50px; height: 50px; } }

/* No text selection and no text cursor anywhere, except the email address (selectable, so it can be copied)
   and the contact form's text fields (typing, selecting and pasting work as normal). */
html { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: default; caret-color: transparent; }
a[href] { cursor: pointer; }
a[href^="mailto:"], .email { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), textarea {
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; cursor: text; caret-color: auto; }

/* Tools and AI: four-step process; Websites: build price line above the care plans */
.steps.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .steps.four { grid-template-columns: 1fr 1fr; } }
.price-lead { margin: 8px 0 28px; max-width: 40ch; }
.plans .plan > p:not(.price):not(.plan-inc) { margin: 0 0 12px; }
/* Home hero: the display line runs to three lines ("Your own tools, / your own AI, / your data stays with
   you."), so it's a size smaller than the other display lines: each line stays whole on desktop and the hero
   fits one screen; the Spanish lines are longer, so on phones they run smaller still */
.hero-home .hero-title { font-size: min(clamp(48px, 7vw, 116px), var(--fit-size)); }
@media (max-width: 760px) { html[lang="es"] .hero-home .hero-title { font-size: min(11.5vw, var(--fit-size)); } }
/* door titles: the long Spanish word "Herramientas" must fit narrow phones */
@media (max-width: 420px) { .door-title { font-size: clamp(40px, 13.5vw, 56px); } }
