/* ==========================================================================
   Uniformes Ariescha — Mockup v2 (dirección "Apple design")
   Principios aplicados: respuesta inmediata al tacto, manipulación directa,
   interrupción de cualquier animación, springs (no duraciones fijas),
   materiales translúcidos, tipografía con tracking según tamaño,
   reduced-motion / reduced-transparency / prefers-contrast.
   Color de marca: un solo carmesí #c10000 (crest del cliente). Todo lo demás
   es neutro Apple: blanco, #f5f5f7, #1d1d1f, negro.
   ========================================================================== */

:root {
  /* ---- neutrals */
  --bg: #fff;
  --bg-2: #f5f5f7;
  --bg-3: #fbfbfd;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.16);
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  /* ---- brand (single accent, sampled from the client's crest) */
  --brand: #c10000;
  --brand-2: #a30000;
  --wa: #1f8a4c;

  /* ---- shape */
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 28px;
  --r-xl: 36px;

  /* ---- layout */
  --pad: clamp(20px, 4vw, 48px);
  --maxw: 1280px;
  --nav-h: 52px;

  /* ---- type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* ---- springs as CSS easing (generated from the same spring maths as motion.js).
         --spring: damping 1.0 (no overshoot). --spring-bounce: damping ~0.82.
         Use with ~0.7–1s durations; motion is front-loaded like a real spring. */
  --spring: linear(0, 0.0239, 0.0821, 0.159, 0.2442, 0.3308, 0.4145, 0.4926, 0.5637, 0.6274, 0.6836, 0.7327, 0.7751, 0.8115, 0.8425, 0.8689, 0.8911, 0.9098, 0.9254, 0.9385, 0.9493, 0.9583, 0.9658, 0.972, 0.9771, 0.9813, 0.9847, 0.9875, 0.9898, 0.9917, 0.9933, 0.9945, 0.9956, 0.9964, 0.9971, 0.9976, 1);
  --spring-bounce: linear(0, 0.0225, 0.0796, 0.158, 0.2479, 0.3419, 0.4348, 0.5228, 0.6039, 0.6767, 0.7407, 0.7959, 0.8426, 0.8816, 0.9135, 0.9393, 0.9596, 0.9754, 0.9873, 0.9961, 1.0023, 1.0065, 1.0091, 1.0105, 1.0111, 1.011, 1.0104, 1.0096, 1.0087, 1.0076, 1.0066, 1.0056, 1.0047, 1.0038, 1.0031, 1.0024, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid rgba(193, 0, 0, 0.55); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 200; background: #fff; padding: .6rem 1rem; border-radius: 999px; transform: translateY(-200%); }
.skip:not(:focus) { opacity: 0; pointer-events: none; }
.skip:focus { transform: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--fill { fill: currentColor; stroke: none; }

/* ---------- Type: tracking & leading follow size (tighter as it grows) ---------- */
.t-hero  { font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1.03; letter-spacing: -0.038em; font-weight: 700; text-wrap: balance; }
.t-title { font-size: clamp(2rem, 4.8vw, 3.75rem);   line-height: 1.05; letter-spacing: -0.035em; font-weight: 650; text-wrap: balance; }
.t-sub   { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.12; letter-spacing: -0.028em; font-weight: 650; text-wrap: balance; }
.t-h3    { font-size: 1.3125rem; line-height: 1.2;  letter-spacing: -0.02em; font-weight: 600; }
.t-lead  { font-size: clamp(1.1875rem, 1.9vw, 1.5rem); line-height: 1.34; letter-spacing: -0.016em; font-weight: 400; color: var(--ink-3); text-wrap: pretty; }
.t-body  { font-size: 1.0625rem; line-height: 1.47; letter-spacing: -0.011em; text-wrap: pretty; }
.t-cap   { font-size: .8125rem; line-height: 1.35; letter-spacing: .004em; color: var(--ink-3); }
.t-label { font-size: .8125rem; line-height: 1.2; letter-spacing: .01em; font-weight: 600; }
.on-dark .t-lead, .on-dark.t-lead { color: var(--on-dark-2); }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: calc(980px + var(--pad) * 2); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.bg-2 { background: var(--bg-2); }
.center { text-align: center; }
.mt-s { margin-top: .75rem; } .mt-m { margin-top: 1.5rem; } .mt-l { margin-top: 2.5rem; }

/* ---------- Press feedback lives on pointer-down, not on release ---------- */
.btn, .chip, .iconbtn, .pcard, .hl, .channel, .swatch, .size, [data-press] {
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--h); padding: 0 1.4em; border: 0; border-radius: 999px;
  font-size: 1.0625rem; font-weight: 500; line-height: 1; letter-spacing: -0.011em; white-space: nowrap;
  cursor: pointer; background: var(--ink); color: #fff;
  transition: transform .12s ease-out, background-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.btn:active { transform: scale(.97); transition-duration: .06s; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--soft { background: rgba(0,0,0,.06); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn--sm { --h: 34px; font-size: .875rem; padding: 0 1.05em; }
.btn--lg { --h: 56px; font-size: 1.1875rem; padding: 0 1.75em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
@media (hover: hover) {
  .btn--brand:hover { background: var(--brand-2); }
  .btn--soft:hover { background: rgba(0,0,0,.1); }
  .btn--light:hover { background: #f0f0f2; }
  .btn--ghost-light:hover { background: rgba(255,255,255,.12); }
}
.link { display: inline-flex; align-items: center; gap: .2em; color: var(--brand); font-weight: 500; }
.link .i { width: 1em; height: 1em; transition: transform .6s var(--spring); }
@media (hover: hover) { .link:hover { text-decoration: underline; text-underline-offset: 3px; } .link:hover .i { transform: translateX(3px); } }
.on-dark .link, .link--light { color: #fff; }

.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.06); color: var(--ink); transition: transform .12s ease-out, background-color .25s ease, opacity .25s ease;
}
.iconbtn:active { transform: scale(.92); }
.iconbtn[aria-disabled="true"] { opacity: .3; pointer-events: none; }
@media (hover: hover) { .iconbtn:hover { background: rgba(0,0,0,.11); } }

/* App-icon tile: the one recurring icon container (rounded square, crimson) */
.appicon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff; flex: none; }
.appicon .i { width: 26px; height: 26px; }

/* ==========================================================================
   NAV — translucent material, content scrolls underneath
   ========================================================================== */
.nav { position: sticky; top: 0; z-index: 80; height: var(--nav-h); background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); }
/* scroll edge effect instead of a hard divider: a soft blurred fade appears only once content is underneath */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,0));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
  opacity: 0; transition: opacity .4s ease;
}
.nav.is-scrolled::after { opacity: 1; }
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.nav__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav__link { position: relative; font-size: .875rem; font-weight: 500; letter-spacing: -0.006em; color: var(--ink-2); padding: 6px 2px; transition: color .2s ease; }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--brand); }
@media (hover: hover) { .nav__link:hover { color: var(--ink); } }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .6s var(--spring), top .6s var(--spring); }
.nav__toggle span:nth-child(1) { top: 18px; } .nav__toggle span:nth-child(2) { top: 25px; }
.nav.menu-open .nav__toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav.menu-open .nav__toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 79; padding: 24px var(--pad) 40px; overflow: auto;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(32px); -webkit-backdrop-filter: saturate(180%) blur(32px);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s;
}
.menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu a.menu__link { display: block; padding: .35em 0; font-size: 2rem; font-weight: 650; letter-spacing: -0.03em; opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .9s var(--spring); transition-delay: calc(var(--i) * 45ms); }
.menu.is-open a.menu__link { opacity: 1; transform: none; }
.menu .btn { margin-top: 28px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 88px); text-align: center; background: linear-gradient(var(--bg), var(--bg-3)); overflow: clip; }
.hero__copy { max-width: 1040px; margin-inline: auto; padding-inline: var(--pad); }
.hero__lead { max-width: 44ch; margin: .9rem auto 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; align-items: center; justify-content: center; }
.hero__copy > * { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform 1.1s var(--spring); }
.is-ready .hero__copy > * { opacity: 1; transform: none; }
.hero__copy > *:nth-child(2) { transition-delay: .08s; } .hero__copy > *:nth-child(3) { transition-delay: .16s; }

.stage { margin-top: clamp(32px, 4.5vw, 56px); display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 1.4vw, 20px); padding-inline: clamp(12px, 2vw, 24px); }
.hcard { flex: none; width: var(--w); will-change: transform; }
.hcard:nth-child(1), .hcard:nth-child(5) { --w: clamp(140px, 15vw, 230px); }
.hcard:nth-child(2), .hcard:nth-child(4) { --w: clamp(160px, 18vw, 272px); }
.hcard:nth-child(3) { --w: clamp(200px, 23vw, 352px); }
.hcard__in {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-l); overflow: hidden; background: #111;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(90px) scale(.94);
  transition: opacity .7s ease, transform 1.2s var(--spring); transition-delay: calc(var(--i) * 80ms + 150ms);
}
.is-ready .hcard__in { opacity: 1; transform: none; }
.hcard img { width: 100%; height: 100%; object-fit: cover; }
.hcard__chip {
  position: absolute; left: 12px; bottom: 12px; padding: .42rem .8rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; letter-spacing: 0; color: var(--ink);
  background: rgba(255,255,255,.66); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
}

/* ==========================================================================
   RAIL (carousel) + HIGHLIGHT CARDS
   ========================================================================== */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .t-title { max-width: 16ch; }
.rail-nav { display: flex; gap: 10px; flex: none; }
.rail-wrap { --gutter: max(var(--pad), calc((100vw - var(--maxw)) / 2)); }
.rail { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail.is-dragging a { pointer-events: none; }
.rail__track { position: relative; display: flex; gap: var(--gap, 20px); width: max-content; padding: 8px var(--gutter) 8px; }
.rail--flush .rail__track { padding-inline: 0; width: 100%; gap: 0; padding-block: 0; }
.rail--flush { scroll-padding-inline: 0; }

.hl {
  position: relative; flex: none; width: clamp(290px, 31vw, 400px); height: clamp(500px, 50vw, 580px); overflow: hidden; scroll-snap-align: start;
  border-radius: var(--r-l); background: var(--hl-bg, #000); color: var(--hl-ink, #fff); isolation: isolate;
  transition: transform .12s ease-out;
}
.hl:active { transform: scale(.985); }
.hl--light { --hl-bg: #fff; --hl-ink: var(--ink); }
.hl__text { position: relative; z-index: 2; padding: 30px 28px 0; }
.hl__kicker { font-size: .875rem; font-weight: 600; letter-spacing: -0.003em; opacity: .72; margin-bottom: 8px; }
.hl__title { font-size: clamp(1.5rem, 2.1vw, 1.9rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 650; max-width: 13ch; text-wrap: balance; }
.hl__img { position: absolute; left: 0; right: 0; bottom: 0; height: 78%; z-index: 1; }
.hl__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 10%); transition: transform 1.3s var(--spring); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); }
.hl--photo .hl__img { inset: 0; height: 100%; }
.hl--photo .hl__img img { -webkit-mask-image: none; mask-image: none; }
.hl--photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0) 48%); }
.hl__plus { position: absolute; right: 16px; bottom: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(29,29,31,.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .7s var(--spring); }
@media (hover: hover) { .hl:hover .hl__img img { transform: scale(1.04); } .hl:hover .hl__plus { transform: rotate(90deg) scale(1.08); } }

/* ==========================================================================
   BENTO
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; grid-column: span 4; min-height: 460px; border-radius: var(--r-l); overflow: hidden; color: #fff; background: #111; isolation: isolate; }
.tile--a { grid-column: span 7; min-height: 540px; } .tile--b { grid-column: span 5; min-height: 540px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(var(--s, 1)); transform-origin: var(--o, 50% 50%); transition: transform 1.4s var(--spring); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,0) 58%); }
.tile__body { padding: clamp(24px, 3vw, 36px); max-width: 26ch; }
.tile__body p { margin-top: .6rem; color: rgba(255,255,255,.86); font-size: 1.0625rem; }
@media (hover: hover) { .tile:hover img { transform: scale(calc(var(--s, 1) * 1.045)); } }

/* ==========================================================================
   STATEMENT (black) + PILLARS
   ========================================================================== */
.statement { background: #000; color: #fff; padding-block: clamp(96px, 14vw, 180px); }
.scrub { font-size: clamp(2rem, 5.2vw, 4.25rem); line-height: 1.08; letter-spacing: -0.038em; font-weight: 650; max-width: 24ch; text-wrap: pretty; }
.scrub .w { opacity: .2; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); margin-top: clamp(64px, 9vw, 120px); padding-top: 44px; border-top: 1px solid rgba(255,255,255,.16); }
.pillar h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3125rem; letter-spacing: -0.02em; font-weight: 600; margin-bottom: .5rem; }
.pillar h3 .i { width: 28px; height: 28px; }
.pillar p { color: var(--on-dark-2); font-size: 1.0625rem; }

/* ==========================================================================
   CLIENT LOGOS
   ========================================================================== */
.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.logo-cell { min-width: 0; display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 18px; border-radius: 20px; background: var(--bg-2); }
.logo-cell img { max-width: 78%; max-height: 46px; width: auto; height: auto; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); opacity: .78; transition: filter .5s ease, opacity .5s ease; }
@media (hover: hover) { .logo-cell:hover img { filter: none; opacity: 1; } }

/* ==========================================================================
   CTA CARD + FOOTER
   ========================================================================== */
.cta { background: var(--brand); color: #fff; border-radius: var(--r-xl); text-align: center; padding: clamp(56px, 9vw, 112px) clamp(24px, 6vw, 80px); }
.cta .t-lead { color: rgba(255,255,255,.9); max-width: 40ch; margin: 1rem auto 2rem; }
.cta__row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.footer { background: var(--bg-2); color: var(--ink-3); font-size: .75rem; line-height: 1.5; letter-spacing: 0; padding-block: 28px 32px; }
.footer__top { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer__brand img { height: 44px; width: auto; margin-bottom: 14px; }
.footer__brand p { max-width: 30ch; }
.footer h4 { font-size: .75rem; font-weight: 600; color: var(--ink); margin-bottom: .7em; letter-spacing: 0; }
.footer li + li { margin-top: .5em; }
.footer a { color: var(--ink-2); }
@media (hover: hover) { .footer a:hover { text-decoration: underline; color: var(--ink); } }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; }

.fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.2);
  transform: scale(.4); opacity: 0; transition: transform .8s var(--spring-bounce), opacity .3s ease;
}
.fab.is-in { transform: none; opacity: 1; }
.fab.is-in:active { transform: scale(.92); transition-duration: .08s; }
.fab .i { width: 28px; height: 28px; }

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 7px; }
.field > label, .legend { font-size: .8125rem; font-weight: 600; letter-spacing: .002em; color: var(--ink-2); }
.input {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: 14px; border: 1px solid rgba(0,0,0,.14); background: #fff;
  font: inherit; font-size: 1.0625rem; letter-spacing: -0.011em; color: var(--ink); appearance: none; -webkit-appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.input { min-height: 104px; resize: vertical; line-height: 1.4; }
select.input { padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.input::placeholder { color: #9a9aa0; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(193,0,0,.16); }
.field.has-error .input { border-color: var(--brand); }
.field__msg { font-size: .8125rem; color: var(--brand); display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--spring); }
.field__msg > span { overflow: hidden; }
.field.has-error .field__msg { grid-template-rows: 1fr; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }

.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: rgba(118,118,128,.12); }
.seg--block { display: grid; }
.seg__thumb { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 9px; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.06); pointer-events: none; will-change: transform, width; }
.seg button { position: relative; z-index: 1; min-height: 38px; padding: 0 1.05rem; border: 0; background: none; border-radius: 9px; font-size: .9375rem; font-weight: 500; letter-spacing: -0.008em; color: var(--ink); cursor: pointer; white-space: nowrap; }
.seg button[aria-checked="true"] { font-weight: 600; }
.seg-scroll { overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
.seg-scroll::-webkit-scrollbar { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: .4em; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid rgba(0,0,0,.14); background: #fff; font-size: .9375rem; font-weight: 500; letter-spacing: -0.008em; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .12s ease-out; }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); }
.switch { position: relative; flex: none; width: 51px; height: 31px; border: 0; border-radius: 999px; background: rgba(120,120,128,.32); cursor: pointer; transition: background-color .3s ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); transition: transform .7s var(--spring-bounce); }
.switch:active::after { width: 33px; }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.switch[aria-checked="true"]:active::after { transform: translateX(14px); }

.quote-ctx { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border-radius: 16px; background: var(--bg-2); }
.quote-ctx img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; object-position: 50% 25%; }
.quote-ctx b { display: block; font-weight: 600; letter-spacing: -0.011em; }
.quote-ctx span { font-size: .875rem; color: var(--ink-3); }

.done { text-align: center; padding: 28px 8px 12px; display: grid; justify-items: center; gap: 10px; }
.done__check { width: 72px; height: 72px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; color: #fff; transform: scale(.4); opacity: 0; animation: pop .9s var(--spring) forwards; }
.done__check svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .28s ease-out forwards; }
@keyframes pop { to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.note { font-size: .8125rem; color: var(--ink-3); background: var(--bg-2); border-radius: 12px; padding: .7rem .9rem; }

/* ==========================================================================
   SHEET (quote) — drag to dismiss, spring, interruptible
   ========================================================================== */
.sheet { position: fixed; inset: 0; z-index: 120; display: none; }
.sheet.is-open { display: block; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.44); backdrop-filter: blur(8px) saturate(140%); -webkit-backdrop-filter: blur(8px) saturate(140%); opacity: 0; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: min(94dvh, 900px);
  background: rgba(250,250,252,.9); backdrop-filter: saturate(180%) blur(40px); -webkit-backdrop-filter: saturate(180%) blur(40px);
  border-radius: 28px 28px 0 0; box-shadow: 0 -24px 80px -24px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.8);
  will-change: transform; outline: none;
}
.sheet__head { flex: none; padding: 8px 20px 8px 28px; cursor: grab; touch-action: none; user-select: none; }
.sheet__head:active { cursor: grabbing; }
.sheet__grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.2); margin: 0 auto 10px; }
.sheet__title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet__body { padding: 8px 28px calc(28px + env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; }
@media (min-width: 760px) {
  .sheet__panel { left: 50%; right: auto; top: 50%; bottom: auto; translate: -50% -50%; width: min(580px, 92vw); border-radius: 28px; box-shadow: 0 40px 120px -20px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.8); max-height: min(90dvh, 860px); }
}

/* ==========================================================================
   CATALOG
   ========================================================================== */
.page-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(24px, 3vw, 40px); }
.page-head .t-hero { font-size: clamp(2.5rem, 6.4vw, 4.75rem); }
.page-head .t-lead { max-width: 40ch; margin-top: .9rem; }
.filterbar { position: sticky; top: var(--nav-h); z-index: 40; padding-block: 12px; background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.filterbar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; pointer-events: none; background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0)); -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.filterbar__row { display: flex; align-items: center; gap: 16px; }
.filterbar__row .seg-scroll { flex: 1; min-width: 0; }
.search { position: relative; flex: none; width: min(260px, 32vw); }
.search .i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--ink-3); width: 18px; height: 18px; pointer-events: none; }
.search .input { min-height: 44px; padding-left: 42px; border-radius: 999px; background: rgba(118,118,128,.12); border-color: transparent; }
.search .input:focus { background: #fff; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-block: 28px clamp(64px, 8vw, 112px); }
.pcard { position: relative; display: flex; flex-direction: column; padding: 12px 12px 22px; border-radius: var(--r-l); background: var(--bg-2); transition: transform .12s ease-out; will-change: transform; }
.pcard:active { transform: scale(.985); }
.pcard.is-leaving { opacity: 0; transform: scale(.96); transition: opacity .16s ease, transform .16s ease; }
.pcard__media { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #e8e8ed; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 25%); transition: transform 1.2s var(--spring); }
.pcard__body { padding: 20px 10px 0; display: grid; gap: 4px; }
.pcard h3 { font-size: 1.3125rem; line-height: 1.18; letter-spacing: -0.022em; font-weight: 650; text-wrap: balance; }
.pcard__meta { font-size: .9375rem; color: var(--ink-3); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.dots { display: flex; align-items: center; }
.dot { width: 14px; height: 14px; border-radius: 50%; margin-right: -3px; background: var(--c, #ccc); box-shadow: 0 0 0 2px var(--bg-2), inset 0 0 0 1px rgba(0,0,0,.14); }
.dots small { margin-left: 10px; font-size: .8125rem; color: var(--ink-3); }
.pcard .link { font-size: .9375rem; }
@media (hover: hover) { .pcard:hover .pcard__media img { transform: scale(1.045); } }
.rail .pcard { flex: none; width: clamp(260px, 26vw, 340px); scroll-snap-align: start; }
.empty { grid-column: 1 / -1; text-align: center; padding: 80px 0; color: var(--ink-3); }

/* ==========================================================================
   PRODUCT
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 22px; font-size: .8125rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); } .crumbs a:hover { text-decoration: underline; }
.crumbs .i { width: 12px; height: 12px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: clamp(20px, 3vw, 36px) clamp(64px, 8vw, 112px); }
.gal { position: relative; }
.gal .rail { border-radius: var(--r-l); background: var(--bg-2); cursor: grab; }
.gal__slide { flex: none; width: 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; scroll-snap-stop: always; }
.gal__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; mix-blend-mode: multiply; }  /* white studio backdrops melt into the gray card */
.gal__bar { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: flex; align-items: center; gap: 12px; padding: 9px 18px; border-radius: 999px; background: rgba(255,255,255,.62); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }
.gal__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(0,0,0,.28); cursor: pointer; transition: transform .7s var(--spring), background-color .3s ease; }
.gal__dot[aria-current="true"] { transform: scaleX(2.6); background: var(--ink); }
.gal__arrows { position: absolute; inset: 0; pointer-events: none; }
.gal__arrows .iconbtn { position: absolute; top: 50%; translate: 0 -50%; pointer-events: auto; background: rgba(255,255,255,.66); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.gal__arrows .iconbtn:first-child { left: 14px; } .gal__arrows .iconbtn:last-child { right: 14px; }

.pdp__info { position: sticky; top: calc(var(--nav-h) + 28px); display: grid; gap: 26px; }
.pdp__info .t-title { font-size: clamp(2rem, 3.6vw, 3rem); }
.pdp__tag { display: inline-flex; align-items: center; gap: 8px; }
.pdp__tag b { display: inline-block; padding: .25rem .6rem; border-radius: 999px; background: var(--bg-2); font-size: .8125rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.opt { display: grid; gap: 12px; }
.opt__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; letter-spacing: -0.011em; }
.opt__label span { font-weight: 400; color: var(--ink-3); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); transition: transform .12s ease-out; }
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); opacity: 0; transform: scale(.8); transition: opacity .25s ease, transform .6s var(--spring-bounce); }
.swatch:active { transform: scale(.9); }
.swatch[aria-pressed="true"]::after { opacity: 1; transform: none; }
.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.size { min-height: 52px; border-radius: 14px; border: 1px solid rgba(0,0,0,.16); background: #fff; font-weight: 600; font-size: 1rem; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .12s ease-out; }
.size:active { transform: scale(.96); }
.size[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.perks { display: grid; gap: 14px; padding-top: 6px; }
.perk { display: flex; gap: 14px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); }
.perk .i { color: var(--ink); margin-top: 2px; }
.perk b { display: block; color: var(--ink); font-weight: 600; }
.pdp__cta { display: grid; gap: 10px; }
.photo-note { font-size: .8125rem; color: var(--ink-3); margin-top: -4px; min-height: 1.2em; }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); }
.spec { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.spec dt { color: var(--ink-3); } .spec dd { text-align: right; font-weight: 500; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.split__img { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 3; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split .t-lead { margin: 1rem 0 1.75rem; max-width: 34ch; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.channel { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 240px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-l); background: var(--bg-2); transition: transform .12s ease-out; }
.channel:active { transform: scale(.985); }
.channel__head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.channel .appicon { width: auto; height: auto; border-radius: 0; background: none; color: var(--brand); }   /* bare glyph beside the title: no icon tile */
.channel .appicon .i { width: 30px; height: 30px; }
.channel--wa .appicon { background: none; color: #3fb97a; }
.channel h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.026em; font-weight: 650; }
.channel p { color: var(--ink-3); }
.channel .link { margin-top: auto; padding-top: 10px; }
.channel--wa { background: #000; color: #fff; } .channel--wa p { color: var(--on-dark-2); }
.channel--wa .link { color: #fff; }
.contact { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__aside { position: sticky; top: calc(var(--nav-h) + 32px); }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 28px; margin-top: 32px; }
.steps li { counter-increment: s; position: relative; padding-left: 60px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; background: var(--ink); color: #fff; }
.steps b { display: block; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.015em; }
.steps span { color: var(--ink-3); }
.formcard { padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: var(--bg-2); }
.formcard .input { background: #fff; }
.map { margin-top: 32px; display: flex; gap: 14px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 18px; background: var(--bg-2); }
.map .appicon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); }

/* ==========================================================================
   REVEAL-ON-SCROLL (spring-eased, interruptible: it's a transition, never a keyframe)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform 1.2s var(--spring); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .channels { grid-template-columns: minmax(0, 1fr); }
  .channel { min-height: 0; }
}
@media (max-width: 900px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: block; }
  .stage { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: 14vw; gap: 12px; }
  .stage::-webkit-scrollbar { display: none; }
  .hcard { --w: 72vw !important; scroll-snap-align: center; }
  .pdp, .contact, .split { grid-template-columns: minmax(0, 1fr); }
  .pdp__info, .contact__aside { position: static; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile--a, .tile--b { grid-column: auto; min-height: 420px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .specs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .search { display: none; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .rail-nav { display: none; }
}

/* ==========================================================================
   ACCESSIBILITY: motion, transparency, contrast
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  /* no travel, only a gentle cross-fade */
  .js [data-reveal], .hero__copy > *, .hcard__in, .menu a.menu__link { transform: none !important; transition: opacity .3s ease !important; }
  .fab { transform: none; }
  .hl__img img, .tile img, .pcard__media img, .link .i { transition: none !important; }
  .hl:hover .hl__img img, .tile:hover img, .pcard:hover .pcard__media img { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .filterbar, .menu { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav::after, .filterbar::after { display: none; }
  .sheet__panel { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sheet__scrim { background: rgba(0,0,0,.62); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hcard__chip, .gal__bar, .gal__arrows .iconbtn, .hl__plus { background: #fff; color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hl__plus { background: #1d1d1f; color: #fff; }
}
@media (prefers-contrast: more) {
  :root { --ink-3: #424245; --line: rgba(0,0,0,.4); }
  .input, .size, .chip { border-color: #000; }
  .t-lead { color: var(--ink-2); }
  .on-dark .t-lead, .pillar p, .channel--wa p { color: #fff; }
}
@supports not (backdrop-filter: blur(1px)) and (not (-webkit-backdrop-filter: blur(1px))) {
  .nav, .filterbar, .menu, .sheet__panel { background: rgba(255,255,255,.97); }
}
