/* ALVARA storefront prototype
   Layout concept: quiet editorial shop. Full-bleed ride imagery, a tight product grid,
   product page with stacked images left and a sticky buy column right.
   One accent (electric blue) used only for focus, active states and one CTA per screen. */

:root {
  /* Color */
  --paper: #F4F5F3;        /* page ground, cool off-white */
  --paper-2: #E9EBEC;      /* image wells, soft panels */
  --ink: #101B32;          /* deep navy, text and logo */
  --ink-2: #4F5868;        /* secondary text */
  --line: #D5D9DE;         /* hairlines */
  --blue: #0066FF;         /* luminous electric blue, accent */
  --pink: #FF3D93;         /* reserved for the white/pink colourway */
  --white: #FFFFFF;

  /* Type */
  --f-sans: "Rethink Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-md: 1rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --t-hero: clamp(2.4rem, 1.4rem + 4.4vw, 5rem);

  /* Space */
  --gutter: clamp(16px, 3.2vw, 40px);
  --max: 1440px;
  --header-h: 60px;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}

.mono { font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0; }

/* ---------- Announcement + header ---------- */

.announce {
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-align: center;
}
.announce .wrap { padding-block: 9px; }

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.nav { display: flex; gap: 28px; font-size: var(--t-sm); }
.nav a { text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.logo { justify-self: center; display: block; }
.logo img { height: 18px; width: auto; }

.header-tools { justify-self: end; display: flex; gap: 20px; align-items: center; font-size: var(--t-sm); }
.header-tools a, .header-tools button { text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.cart-count { font-variant-numeric: tabular-nums; }

.menu-toggle { display: none; background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: var(--t-sm); }

@media (max-width: 760px) {
  .site-header .wrap { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .logo { justify-self: center; }
  .header-tools .hide-sm { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 16px max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .nav.is-open a { padding-block: 12px; font-size: var(--t-md); border-bottom: 1px solid var(--line); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--block { width: 100%; }

.link-arrow { font-size: var(--t-sm); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  height: clamp(460px, 64vw, 760px);
  overflow: hidden;
  background: var(--paper-2);
  color: var(--white);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 27, 50, .62), rgba(16, 27, 50, 0) 55%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  padding-block: clamp(28px, 5vw, 64px);
}
.hero h1 {
  margin: 0;
  font-size: var(--t-hero);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero .eyebrow { color: rgba(255, 255, 255, .82); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 8vw, 112px); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-head h2 {
  margin: 6px 0 0;
  font-size: var(--t-xl);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---------- Product cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; min-width: 0; }
.card-media {
  aspect-ratio: 4 / 5;
  max-width: 100%;
  background: var(--paper-2);
  overflow: hidden;
  position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.025); }
.card-media .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.card:hover .card-media .alt { opacity: 1; }

.card-meta { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); }
.card-meta strong { font-weight: 600; }
.card-meta span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card-colour { font-size: var(--t-xs); color: var(--ink-2); margin-top: -8px; }

/* Placeholder visual for products without photography yet */
.placeholder-garment {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
}
.placeholder-garment svg { width: 62%; height: auto; }
.placeholder-garment .mono { color: var(--ink-2); }
.ph-blue { background: #DCE6F7; }
.ph-white { background: #ECEDEB; }

/* ---------- Facts strip ---------- */

.facts {
  border-block: 1px solid var(--line);
}
.facts .wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fact { padding: clamp(24px, 3vw, 40px) clamp(0px, 2vw, 32px); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact h3 { margin: 0; font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.01em; }
.fact p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); max-width: 36ch; }
@media (max-width: 760px) {
  .facts .wrap { grid-template-columns: minmax(0, 1fr); }
  .fact { padding-inline: 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Story split ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}
.split-media { aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--paper-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.split-copy { display: flex; flex-direction: column; gap: 18px; max-width: 46ch; }
.split-copy h2 { margin: 0; font-size: var(--t-xl); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.split-copy p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Newsletter ---------- */

.signup { background: var(--ink); color: var(--paper); }
.signup .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  padding-block: clamp(48px, 6vw, 88px);
}
.signup h2 { margin: 8px 0 0; font-size: var(--t-xl); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
.signup .eyebrow { color: rgba(244, 245, 243, .7); }
.signup form { display: flex; gap: 0; border-bottom: 1px solid rgba(244, 245, 243, .5); }
.signup input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--paper);
  font: inherit;
  padding: 14px 0;
}
.signup input::placeholder { color: rgba(244, 245, 243, .55); }
.signup input:focus { outline: none; }
.signup form:focus-within { border-bottom-color: var(--blue); }
.signup button { background: none; border: 0; color: var(--paper); font-weight: 600; font-size: var(--t-sm); cursor: pointer; padding: 0 0 0 16px; }
.signup .note { font-size: var(--t-xs); color: rgba(244, 245, 243, .7); margin: 10px 0 0; min-height: 1.5em; }
@media (max-width: 760px) { .signup .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); font-size: var(--t-sm); }
.site-footer .wrap {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-block: 48px 32px;
}
.site-footer h4 { margin: 0 0 12px; font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-mark img { height: 34px; width: auto; }
.footer-base { border-top: 1px solid var(--line); }
.footer-base .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; font-size: var(--t-xs); color: var(--ink-2); grid-template-columns: none; }
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-mark { grid-column: 1 / -1; }
}

/* ---------- Product page ---------- */

.crumbs { font-size: var(--t-xs); color: var(--ink-2); padding-block: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding-bottom: clamp(48px, 6vw, 96px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.gallery figure { margin: 0; background: var(--paper-2); aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure.wide { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.gallery[hidden] { display: none !important; }
.gallery figure.wide img { object-position: 50% 45%; }
.gallery-dots { display: none; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure, .gallery figure.wide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 5; }
  .gallery-dots { display: flex; justify-content: center; gap: 8px; padding-top: 12px; }
  .gallery-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s; }
  .gallery-dots span.is-active { background: var(--ink); }
}

.buy {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
@media (max-width: 900px) { .buy { position: static; } }

.buy-head { display: flex; flex-direction: column; gap: 6px; }
.buy-head h1 { margin: 0; font-size: var(--t-xl); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
.price { font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
.price small { font-size: var(--t-xs); color: var(--ink-2); margin-left: 6px; }
.lede { margin: 0; color: var(--ink-2); max-width: 48ch; }

.opt { display: flex; flex-direction: column; gap: 10px; }
.opt-label { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); }
.opt-label b { font-weight: 600; }
.opt-label button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font-size: var(--t-sm); }

.swatches { display: flex; gap: 10px; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line);
  padding: 0; cursor: pointer; position: relative;
}
.swatch[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--ink);
}
.swatch:disabled { cursor: not-allowed; opacity: .45; }

.sizes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.sizes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.size {
  min-height: 46px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
}
.size:hover { border-color: var(--ink); }
.size[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size:disabled { color: var(--ink-2); text-decoration: line-through; cursor: not-allowed; opacity: .6; }
.size-hint { font-size: var(--t-xs); color: var(--ink-2); min-height: 1.4em; margin: 0; }
.size-hint.is-error { color: #B42318; }

.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--t-sm); }
.perks li { display: flex; gap: 10px; align-items: baseline; }
.perks li::before { content: ""; width: 6px; height: 6px; background: var(--blue); flex: 0 0 auto; transform: translateY(-2px); }

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 16px;
  cursor: pointer;
  font-size: var(--t-sm);
  font-weight: 600;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-weight: 400; font-size: var(--t-lg); line-height: 1; }
.acc details[open] summary::after { content: "–"; }
.acc .acc-body { padding-bottom: 20px; font-size: var(--t-sm); color: var(--ink-2); display: flex; flex-direction: column; gap: 10px; }
.acc .acc-body p { margin: 0; }

.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 400; color: var(--ink-2); width: 42%; padding-right: 12px; }
.spec td { color: var(--ink); }

.table-scroll { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); font-variant-numeric: tabular-nums; min-width: 420px; }
.size-table th, .size-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.size-table th:first-child, .size-table td:first-child { text-align: left; padding-left: 0; }
.size-table thead th { font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }

/* Size guide dialog */
dialog.sheet {
  border: 0;
  padding: 0;
  width: min(640px, calc(100% - 32px));
  background: var(--paper);
  color: var(--ink);
}
dialog.sheet::backdrop { background: rgba(16, 27, 50, .45); }
.sheet-inner { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sheet-head h2 { margin: 0; font-size: var(--t-lg); font-weight: 600; }
.sheet-head button { background: none; border: 0; cursor: pointer; font-size: var(--t-sm); text-decoration: underline; }
.sheet p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-size: var(--t-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 80;
  max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Placeholder marker for copy that still needs real content */
[data-placeholder] { }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Spotlight (Apple / Teenage Engineering: one product, one message, studio ground) ---------- */

.spotlight { background: var(--paper-2); }
.spot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 104px);
}
.spot-copy { display: flex; flex-direction: column; gap: 18px; max-width: 44ch; }
.spot-copy h2 { margin: 0; font-size: var(--t-hero); line-height: 1; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.spot-copy p { margin: 0; color: var(--ink-2); }
.spot-media { margin: 0; position: relative; max-width: 460px; justify-self: center; width: 100%; }
.spot-media img { width: 100%; height: auto; mix-blend-mode: multiply; }
.callout {
  position: absolute;
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: var(--t-xs);
  background: var(--paper);
  padding: 6px 10px;
  white-space: nowrap;
}
.callout .mono { color: var(--blue); font-size: var(--t-xs); }
.callout.c1 { top: 12%; right: -4%; }
.callout.c2 { top: 52%; left: -6%; }
.callout.c3 { bottom: 16%; right: -2%; }
@media (max-width: 860px) {
  .spot-grid { grid-template-columns: minmax(0, 1fr); }
  .callout.c1 { right: 0; }
  .callout.c2 { left: 0; }
  .callout.c3 { right: 0; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Catalogue additions ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
@media (max-width: 520px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.card-colour { display: flex; align-items: center; gap: 8px; }
.card-dots { display: inline-flex; gap: 4px; }
.card-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line); }

.shop-title { margin: 6px 0 0; font-size: var(--t-hero); line-height: 1; font-weight: 600; letter-spacing: -0.025em; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  min-height: 44px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: var(--t-sm);
  cursor: pointer;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card[hidden] { display: none; }

.link-button { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 2px; cursor: pointer; }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.deal { margin: -8px 0 0; font-size: var(--t-sm); color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.deal b { background: var(--blue); color: var(--white); font-size: var(--t-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; }
.about { background: var(--paper-2); }
.about .split-copy h2 { font-size: var(--t-xl); }
.split--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 860px) { .split--flip { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Loading screen (home, only when loading is slow) ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: #043369;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.splash.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease; }
.splash img { width: min(56vmin, 420px); height: auto; }
.about .split-media { background: #043369; }

/* ---------- Motion layer (GSAP + Lenis) ---------- */
.site-header { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.site-header.is-hidden { transform: translateY(-100%); }
.has-motion .hero img { will-change: transform; }

[data-parallax] { overflow: hidden; }
[data-wipe] { will-change: clip-path; }
@media (min-width: 901px) {
  .has-motion .spot-grid { min-height: 100vh; min-height: 100svh; }
}

/* ---------- Spotlight callouts: hover, focus or tap for more info ---------- */
.callout { padding: 0; background: none; white-space: normal; display: block; z-index: 2; }
.callout:hover, .callout:focus-within, .callout.is-open { z-index: 4; }
.callout-btn {
  display: inline-flex; align-items: baseline; gap: 8px;
  min-height: 36px; padding: 8px 12px;
  background: var(--paper); border: 0; cursor: pointer;
  font-size: var(--t-xs); white-space: nowrap; text-align: left;
}
.callout-btn .mono { color: var(--blue); font-size: var(--t-xs); }
.callout-plus { margin-left: 4px; color: var(--blue); font-weight: 600; transition: transform .25s ease; }
.callout:hover .callout-plus, .callout:focus-within .callout-plus, .callout.is-open .callout-plus { transform: rotate(45deg); }
.callout-info {
  position: absolute; top: calc(100% + 6px);
  width: min(260px, 70vw); margin: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 14px; font-size: var(--t-xs); line-height: 1.55;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.callout.c1 .callout-info, .callout.c3 .callout-info { right: 0; }
.callout.c2 .callout-info { left: 0; }
.callout:hover .callout-info, .callout:focus-within .callout-info, .callout.is-open .callout-info {
  opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease;
}
