/* ==========================================================================
   BLAZO PETS — styles.css
   TRICOLOR THEME (edit these 3 hex values to re-theme the website, and mirror
   them in <style id="tricolor-theme"> at the top of index.html).
   Note: The Hero page (#home) intentionally preserves its original stage look.
   ========================================================================== */
:root {
  --tri-accent:  #B5482A; /* Color 1: Terracotta    — CTAs, highlights & accents   */
  --tri-primary: #0F2A47; /* Color 2: Midnight Navy — headings, deep panels & brand */
  --tri-surface: #F6F3EE; /* Color 3: Warm Ivory    — page canvas & light surfaces */

  /* Derived palette tokens (auto-computed from the 3 colors above) */
  --tri-ink:              color-mix(in srgb, var(--tri-primary) 86%, #000000);
  --tri-ink-muted:        color-mix(in srgb, var(--tri-primary) 74%, var(--tri-surface));
  --tri-on-primary:       var(--tri-surface);
  --tri-on-primary-muted: color-mix(in srgb, var(--tri-surface) 80%, var(--tri-primary));
  --tri-on-accent:        #FFFFFF;
  --tri-card-bg:          color-mix(in srgb, var(--tri-surface) 35%, #FFFFFF);
  --tri-surface-tint:     color-mix(in srgb, var(--tri-primary) 5%, var(--tri-surface));
  --tri-surface-deep:     color-mix(in srgb, var(--tri-primary) 9%, var(--tri-surface));
  --tri-accent-hover:     color-mix(in srgb, var(--tri-accent) 86%, #000000);
  --tri-accent-deep:      color-mix(in srgb, var(--tri-accent) 82%, #1A0A04);
  --tri-accent-soft:      color-mix(in srgb, var(--tri-accent) 10%, var(--tri-surface));
  --tri-accent-on-dark:   color-mix(in srgb, var(--tri-accent) 62%, #FFFFFF);
  --tri-primary-deep:     color-mix(in srgb, var(--tri-primary) 84%, #000000);
  --tri-primary-darker:   color-mix(in srgb, var(--tri-primary) 70%, #000000);
  --tri-primary-glow:     color-mix(in srgb, var(--tri-primary) 72%, #4F7BAA);
  --tri-border:           color-mix(in srgb, var(--tri-primary) 12%, transparent);
  --tri-border-strong:    color-mix(in srgb, var(--tri-primary) 26%, transparent);
  --tri-border-on-dark:   color-mix(in srgb, var(--tri-surface) 18%, transparent);

  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--tri-primary) 8%, transparent);
  --shadow-md:
    0 1px 2px color-mix(in srgb, var(--tri-primary) 8%, transparent),
    0 14px 30px -18px color-mix(in srgb, var(--tri-primary) 40%, transparent);
  --shadow-lg:
    0 2px 6px color-mix(in srgb, var(--tri-primary) 10%, transparent),
    0 30px 60px -30px color-mix(in srgb, var(--tri-primary-darker) 60%, transparent);

  --ink: var(--tri-ink);
  --ink-muted: var(--tri-ink-muted);
  --white: #FFFFFF;

  --font-heading: 'Milkyway', 'Baloo 2', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: var(--font-heading);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shared layout rhythm: every section aligns to the same content edges */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --content: min(var(--container), calc(100% - 2 * var(--gutter)));
  --section-y: clamp(80px, 11vh, 128px);

  /* One size for every main section heading (Featuring, Services, About Us) */
  --heading-section: clamp(2.6rem, 6vw, 4.4rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
  font-family: 'Milkyway';
  src: url('assets/milkyway.woff?v=20261128w') format('woff'),
       url('assets/milkyway.ttf?v=20261128w') format('truetype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020, U+0041-005A, U+0061-007A;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--tri-surface);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--tri-accent);
  color: var(--tri-on-accent);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--tri-primary);
  color: var(--tri-on-primary);
  padding: 10px 18px;
  border-radius: 7px;
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus {
  top: 16px;
}

/* Keyboard focus outside the hero: terracotta ring on light surfaces,
   ivory ring on navy panels (terracotta on navy is under 3:1). */
:where(#featured, #service, #about, #contact, #site-footer, .bento-sheet) :focus-visible {
  outline: 2px solid var(--tri-accent);
  outline-offset: 3px;
}
:where(.contact-studio-hero, .owner-wa-shell, .studio-footer, .feat-card) :focus-visible {
  outline-color: var(--tri-on-primary);
}
:where(.owner-map-card, .owner-wa-composer) :focus-visible {
  outline-color: var(--tri-accent);
}

/* ==========================================================================
   Continuous Single-Page Website Layout & Smooth Sliding Pill Navigation
   ========================================================================== */

body.continuous-site {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--tri-surface);
}

.hero-ref-header {
  position: fixed;
  top: clamp(14px, 2.3vh, 28px);
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px clamp(20px, 3.7vw, 60px) 6px clamp(18px, 2.55vw, 44px);
  background: transparent !important;
  background-color: transparent !important;
  transition:
    top 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-ref-header.is-scrolled {
  top: 0;
  padding-top: 14px;
  padding-bottom: 14px;
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.hero-brand-lockup {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  color: #FFFFFF;
  text-decoration: none;
  user-select: none;
  transition: color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-emblem-svg {
  height: clamp(28px, 2.7vw, 42px);
  width: auto;
  flex-shrink: 0;
  display: block;
}

.hero-wordmark-text {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(19px, 1.75vw, 27px);
  line-height: 1;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 3px;
}

.site-nav-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-sliding-pill {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 7px;
  background: #FFFFFF;
  box-shadow: 0 4px 14px -4px rgba(3, 45, 92, 0.22);
  pointer-events: none;
  z-index: 0;
  will-change: transform, width, height;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-sliding-pill.no-anim {
  transition: none !important;
}

.hero-ref-nav {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.85vw, 10px);
  font-family: 'Plus Jakarta Sans', var(--font-sans);
}

.hero-ref-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: clamp(14px, 1.04vw, 15px);
  font-weight: 700;
  line-height: 1;
  color: #FFFFFF;
  padding: 0.62em 1.12em;
  border-radius: 7px;
  letter-spacing: -0.01em;
  user-select: none;
  transition:
    color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-ref-nav a:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-ref-nav a.is-active {
  color: #03458D;
}

/* Invisible 44px-tall tap area on header links (no visual change). */
.hero-brand-lockup {
  position: relative;
}
.hero-ref-nav a::after,
.hero-brand-lockup::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  min-height: 100%;
  transform: translateY(-50%);
}

/* Header keyboard focus: ivory ring over dark bands, navy ring over light ones. */
.hero-brand-lockup:focus-visible,
.hero-ref-nav a:focus-visible {
  outline: 2px solid var(--tri-surface);
  outline-offset: 3px;
}
.hero-brand-lockup.on-light:focus-visible,
.site-nav-wrap.on-light .hero-ref-nav a:focus-visible {
  outline-color: var(--tri-primary);
}


/* Transparent header tricolor theme outside the Hero page */
.hero-ref-header.is-scrolled .site-nav-wrap:not(.on-light) .nav-sliding-pill {
  background: var(--tri-surface);
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.32);
}

.hero-ref-header.is-scrolled .site-nav-wrap:not(.on-light) .hero-ref-nav a.is-active {
  color: var(--tri-primary);
}

.hero-brand-lockup.on-light {
  color: var(--tri-primary);
}

/* Soft ivory halo keeps navy header text readable when it passes over dark
   photos (service cards, banners). Invisible on the ivory canvas; the header
   itself stays fully transparent. */
.hero-brand-lockup.on-light .hero-wordmark-text,
.site-nav-wrap.on-light .hero-ref-nav a:not(.is-active) {
  text-shadow:
    0 0 2px color-mix(in srgb, var(--tri-surface) 85%, transparent),
    0 0 10px color-mix(in srgb, var(--tri-surface) 70%, transparent);
}
.hero-brand-lockup.on-light .hero-emblem-svg {
  filter:
    drop-shadow(0 0 1.5px color-mix(in srgb, var(--tri-surface) 85%, transparent))
    drop-shadow(0 0 6px color-mix(in srgb, var(--tri-surface) 60%, transparent));
}

.site-nav-wrap.on-light .hero-ref-nav a {
  color: var(--tri-ink);
}

/* Past the hero, white header text gets a soft navy halo so links that hang
   over the edge of a navy panel stay readable on the ivory canvas. */
.hero-ref-header.is-scrolled .hero-brand-lockup:not(.on-light) .hero-wordmark-text,
.hero-ref-header.is-scrolled .site-nav-wrap:not(.on-light) .hero-ref-nav a:not(.is-active) {
  text-shadow:
    0 0 2px color-mix(in srgb, var(--tri-primary) 70%, transparent),
    0 0 10px color-mix(in srgb, var(--tri-primary) 55%, transparent);
}

.site-nav-wrap.on-light .hero-ref-nav a:not(.is-active):hover {
  background: color-mix(in srgb, var(--tri-primary) 8%, transparent);
}

.site-nav-wrap.on-light .nav-sliding-pill {
  background: var(--tri-primary);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--tri-primary) 55%, transparent);
}

.site-nav-wrap.on-light .hero-ref-nav a.is-active {
  color: var(--tri-on-primary);
}

/* ==========================================================================
   Section 1: Studio Hero (#home)
   ========================================================================== */

.hero-ref-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-color: #0093D5;
}

.hero-studio-bg,
.hero-dog-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% center;
}

.hero-studio-bg {
  z-index: 1;
}

.hero-dog-loop {
  z-index: 2;
}

.hero-dog-intro {
  z-index: 3;
}

.hero-dog-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-right-brand {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: 9.8vw;
  width: clamp(250px, 39.8vw, 620px);
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}

.hero-main-logo {
  width: 100%;
  height: auto;
  display: block;
}

.hero-floor-shadow {
  position: absolute;
  left: 49%;
  top: calc(100% + clamp(14px, 3.8vh, 42px));
  transform: translateX(-50%);
  width: 72%;
  height: clamp(20px, 3.6vw, 50px);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 38, 84, 0.34) 0%,
    rgba(0, 48, 98, 0.17) 48%,
    rgba(0, 58, 112, 0) 76%
  );
  filter: blur(8px);
}

/* ==========================================================================
   Section 2: Our Services Bento Showcase (#service) + Expanded Sheet
   ========================================================================== */

.bento-services-section {
  --bento-bg: var(--tri-surface);
  --bento-blue: var(--tri-primary);
  --bento-accent: var(--tri-accent);
  --bento-ink: var(--tri-primary);
  --bento-cream: var(--tri-surface);
  --bento-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --bento-out: cubic-bezier(0.22, 1, 0.36, 1);
  --bento-display: var(--font-heading);
  --bento-body: var(--font-sans);

  background: var(--bento-bg);
  color: var(--tri-ink);
  font-family: var(--bento-body);
  line-height: 1.5;
  padding-top: var(--section-y);
  padding-bottom: clamp(64px, 9vh, 104px);
}

/* Title with a hairline that runs to the grid's right edge */
.bento-hero {
  width: var(--content);
  margin: 0 auto clamp(24px, 3vw, 40px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* Centred heading rule, matching the About Us heading */
.bento-hero::after {
  content: "";
  order: 2;
  width: 56px;
  height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background: var(--tri-accent);
}

.bento-title {
  font-family: var(--bento-display);
  font-weight: 400;
  color: var(--tri-primary);
  font-size: var(--heading-section);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.bento-hint {
  flex-basis: 100%;
  order: 3;
  margin-top: 10px;
  max-width: 42ch;
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--tri-ink-muted);
}

.bento-grid {
  --row: clamp(195px, 20vw, 260px);
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: var(--row) var(--row) clamp(240px, 24vw, 315px);
  grid-auto-rows: var(--row);
  width: var(--content);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.bento-grid li:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.bento-grid li:nth-child(3) {
  grid-row: span 2;
}
.bento-grid li:nth-child(5) {
  grid-column: span 4;
}

.bento-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  border-radius: 8px;
  background: var(--art-bg, var(--tri-card-bg));
  color: var(--fg, var(--bento-ink));
  box-shadow: var(--shadow-md);
  transition:
    translate 0.28s var(--bento-out),
    box-shadow 0.28s var(--bento-out);
  opacity: 0;
  transform: translateY(20px);
}

/* Hairline edge so pale photo cards stay crisp on the ivory canvas */
.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tri-primary) 8%, transparent);
  pointer-events: none;
}

.bento-services-section.in-view .bento-card {
  animation: bentoRise 0.6s var(--bento-out) forwards;
  animation-delay: calc(100ms + var(--i) * 70ms);
}

@keyframes bentoRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bento-card:hover {
  translate: 0 -4px;
  box-shadow: var(--shadow-lg);
}

.bento-card:active {
  scale: 0.99;
}

.bento-card:focus-visible {
  outline: 2px solid var(--tri-accent);
  outline-offset: 3px;
}

.bento-card .art {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--tri-primary) 7%, transparent) 14px 28px);
}

.bento-card .art.has-img {
  background: var(--art-bg);
}

.bento-card .art picture {
  display: block;
  width: 100%;
  height: 100%;
}

.bento-card .art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.8s var(--bento-out);
}

.bento-card .art[data-fit="cat-stage"] img {
  position: absolute;
  left: auto;
  top: auto;
  right: 38px;
  bottom: 22px;
  width: 124%;
  height: auto;
  object-fit: contain;
  transform-origin: center bottom;
}

.bento-card[data-scrim="top"] .art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(9, 22, 38, 0.72) 0%,
    rgba(9, 22, 38, 0.32) 30%,
    rgba(9, 22, 38, 0) 56%
  );
}

.bento-card[data-scrim="left"] .art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(24, 22, 20, 0.6) 0%,
    rgba(24, 22, 20, 0.26) 36%,
    rgba(24, 22, 20, 0) 62%
  );
}

.bento-card:hover .art img {
  scale: 1.05;
}

.bento-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  opacity: 0.55;
}

.bento-card .t {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 2vw, 28px);
  top: clamp(16px, 1.9vw, 26px);
  right: 64px;
}

.bento-card .name {
  display: block;
  font-family: var(--bento-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.75vw, 1.65rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.bento-grid li:nth-child(1) .bento-card .name {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}

.bento-grid li:nth-child(5) .bento-card .name {
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
}

.bento-card[data-scrim] .name {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.bento-card .plus {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background: var(--tri-card-bg);
  color: var(--tri-primary);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.35);
  transition:
    background-color 0.22s var(--bento-out),
    color 0.22s var(--bento-out),
    scale 0.22s var(--bento-out);
}

.bento-card .plus::before,
.bento-card .plus::after,
.bento-sheet-close::before,
.bento-sheet-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 1px;
  background: currentColor;
}

.bento-card .plus::after {
  rotate: 90deg;
}

.bento-card:hover .plus,
.bento-card:focus-visible .plus {
  background: var(--tri-accent);
  color: var(--tri-on-accent);
  scale: 1.05;
}

/* Bento Expanded Detail Sheet — Tricolor Theme */
.bento-scrim {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--tri-primary-darker) 62%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.bento-scrim.on {
  opacity: 1;
  pointer-events: auto;
}

.bento-sheet {
  --bento-blue: var(--tri-primary);
  --bento-ink: var(--tri-ink);
  --bento-cream: var(--tri-surface);
  --bento-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --bento-display: var(--font-heading);
  --bento-body: var(--font-sans);

  position: fixed;
  z-index: 201;
  overflow: hidden;
  font-family: var(--bento-body);
  background: #FFFFFF;
  color: var(--tri-ink);
  box-shadow: 0 32px 72px -24px color-mix(in srgb, var(--tri-primary-darker) 80%, #000000);
}

.bento-sheet .inner {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.bento-sheet .s-art {
  position: relative;
  margin: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--art-bg, var(--tri-surface));
}

.bento-sheet .s-art.has-img {
  background: var(--art-bg);
}

.bento-sheet .s-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-sheet .s-art[data-fit="cat-stage"] img {
  object-fit: contain;
  object-position: center bottom;
}

.bento-sheet .s-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
  padding: clamp(24px, 3.2vw, 44px) clamp(24px, 3.2vw, 44px) 30px 16px;
}

.bento-sheet .s-body h2 {
  font-family: var(--bento-display);
  font-weight: 400;
  font-size: clamp(1.95rem, 3.4vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--tri-primary);
  padding-right: 56px;
}

.bento-sheet .lead {
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tri-ink-muted);
}

.bento-sheet .chips,
.bento-sheet .incl {
  list-style: none;
  padding: 0;
}

.bento-sheet .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-sheet .chips li {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--tri-border-strong);
  background: var(--tri-surface);
  color: var(--tri-primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.bento-sheet .incl {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--tri-border);
  font-size: 0.96rem;
  color: var(--tri-ink);
}

.bento-sheet .incl li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.bento-sheet .incl li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  translate: 0 -1px;
  border-radius: 2px;
  background: var(--tri-accent);
}

.bento-sheet .cta {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 7px;
  background: var(--tri-accent);
  color: var(--tri-on-accent);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s var(--bento-spring), background-color 0.2s;
}

.bento-sheet .cta::after {
  content: "\2197";
  margin-left: 10px;
  font-size: 0.95em;
}

.bento-sheet .cta:hover {
  background: var(--tri-accent-hover);
  transform: translateY(-2px);
}

.bento-sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: var(--tri-primary);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s var(--bento-spring), color 0.2s var(--bento-spring);
}

.bento-sheet-close:hover {
  background: var(--tri-accent);
  color: var(--tri-on-accent);
}

.bento-sheet-close::before {
  rotate: 45deg;
}

.bento-sheet-close::after {
  rotate: -45deg;
}

/* ==========================================================================
   Section 3: About Us (#about)
   ========================================================================== */

.about-continuous-section {
  background: var(--tri-surface);
  color: var(--tri-ink);
  font-family: var(--font-sans);
  padding: clamp(16px, 3vh, 32px) 0 var(--section-y);
}

.about-inner {
  width: var(--content);
  margin: 0 auto;
}

/* Top banner: navy panel, photo placeholder until the real image arrives */
.about-banner {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: clamp(320px, 56vh, 540px);
  display: grid;
  place-items: center;
  padding: 88px 16px 48px;
  background:
    radial-gradient(70% 120% at 85% 0%, var(--tri-primary-glow) 0%, transparent 60%),
    radial-gradient(60% 90% at 0% 100%, var(--tri-primary-darker) 0%, transparent 70%),
    var(--tri-primary);
}

.about-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 6%;
}

/* Scrim: darker in the middle so the centred "About Us" stays legible over the photo */
.about-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 58%, rgba(8, 18, 31, 0.5) 0%, rgba(8, 18, 31, 0) 72%),
    linear-gradient(180deg, rgba(8, 18, 31, 0.35), rgba(8, 18, 31, 0.55));
  pointer-events: none;
}

.about-heading {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--tri-on-primary);
  font-size: var(--heading-section);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 2px 18px rgba(8, 18, 31, 0.45);
}

.about-heading::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: var(--tri-accent-on-dark);
}

.about-body {
  padding-top: clamp(56px, 8vh, 96px);
  display: grid;
  gap: clamp(56px, 8vh, 96px);
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.about-story-lead,
.about-reviews {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.about-reviews {
  gap: 24px;
  justify-items: stretch;
}

/* "Happy Customers" label sits centred above the full-width card row */
.about-reviews > .about-chip {
  justify-self: center;
}

/* Section labels: small tracked caps with a terracotta rule (no pill shapes) */
.about-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tri-accent-deep);
}

.about-chip::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 1px;
  background: var(--tri-accent);
}

.about-statement {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--tri-primary);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.16;
  max-width: 20ch;
  text-wrap: balance;
}

.about-statement-muted {
  color: var(--tri-ink-muted);
}

.about-quote {
  margin: 0;
  padding: clamp(26px, 3vw, 40px);
  background: var(--tri-card-bg);
  border: 1px solid var(--tri-border);
  border-left: 3px solid var(--tri-accent);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 18px;
}

.about-quote blockquote {
  display: grid;
  gap: 14px;
}

.about-quote p {
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.72;
  color: var(--tri-ink);
}

.about-quote figcaption {
  padding-top: 16px;
  border-top: 1px solid var(--tri-border);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--tri-primary);
}

/* Supporting paragraphs under the Our Story statement and in the growth panel */
.about-lead-text {
  max-width: 54ch;
  font-size: clamp(1rem, 1.2vw, 1.06rem);
  line-height: 1.72;
  color: var(--tri-ink-muted);
}

/* Growth panel: navy, full width, South Kerala expansion */
.about-growth {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 10px;
  color: var(--tri-on-primary);
  background:
    radial-gradient(70% 120% at 90% 0%, var(--tri-primary-glow) 0%, transparent 60%),
    var(--tri-primary);
}

.about-growth-main {
  display: grid;
  gap: 20px;
  align-content: start;
  justify-items: start;
}

/* Terracotta is too dark for text on navy: ivory label, light accent rule */
.about-growth .about-chip {
  color: var(--tri-on-primary);
}
.about-growth .about-chip::before {
  background: var(--tri-accent-on-dark);
}

.about-growth-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.16;
  max-width: 22ch;
  text-wrap: balance;
}

.about-growth .about-lead-text {
  color: color-mix(in srgb, var(--tri-on-primary) 78%, transparent);
}

.about-cities {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-cities li {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--tri-on-primary) 28%, transparent);
  font-weight: 700;
  font-size: 0.98rem;
}

.about-cities li span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tri-on-primary) 62%, transparent);
}

.about-cities li.is-open {
  background: var(--tri-surface);
  border-color: var(--tri-surface);
  color: var(--tri-primary);
}

.about-cities li.is-open span {
  color: var(--tri-accent-deep);
}

.about-growth-side {
  display: grid;
  gap: 16px;
  align-content: start;
  padding-top: 4px;
}

.about-growth-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tri-on-primary) 70%, transparent);
}

.about-formats {
  list-style: none;
  padding: 0;
  display: grid;
}

.about-formats li {
  position: relative;
  padding: 13px 0 13px 22px;
  border-top: 1px solid color-mix(in srgb, var(--tri-on-primary) 16%, transparent);
  font-size: 1rem;
}

.about-formats li:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--tri-on-primary) 16%, transparent);
}

.about-formats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 2px;
  background: var(--tri-accent-on-dark);
}

.about-growth-close {
  grid-column: 1 / -1;
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid color-mix(in srgb, var(--tri-on-primary) 16%, transparent);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 899px) {
  .about-growth {
    grid-template-columns: 1fr;
  }
}

/* Happy Customers: 3 square-ish cards. Hover (mouse), click/tap or Enter/Space reveals the review. */
.review-grid {
  list-style: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}

.review-card {
  position: relative;
  aspect-ratio: 1 / 0.86;
  border-radius: 8px;
  overflow: hidden;
  background: var(--tri-card-bg);
  border: 1px solid var(--tri-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.review-card.is-open {
  border-color: var(--tri-border-strong);
  box-shadow: var(--shadow-md);
}

.review-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}

.review-toggle:focus-visible {
  outline: 3px solid var(--tri-accent);
  outline-offset: -3px;
}

.review-photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--tri-surface) 30%, var(--tri-primary));
  background:
    radial-gradient(90% 80% at 80% 0%, var(--tri-primary-glow) 0%, transparent 65%),
    var(--tri-primary);
  transform-origin: 22px 22px;
  border-radius: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.review-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 14, 24, 0.62));
  transition: opacity 0.3s;
}

.review-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-plus {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--tri-accent);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.35);
}

.review-plus::before,
.review-plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--tri-on-accent);
  transition: rotate 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.review-plus::after {
  rotate: 90deg;
}

.review-name,
.review-pet {
  position: absolute;
  left: 22px;
  right: 22px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
}

.review-name {
  bottom: 42px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.2;
  color: #FFFFFF;
}

.review-pet {
  bottom: 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.86);
}

.review-text {
  position: absolute;
  left: 22px;
  right: 22px;
  top: calc(34px + 26%);
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--tri-ink);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.35s ease 0.1s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

/* Revealed state: photo zooms out to a thumbnail, review fades in */
.review-card.is-open .review-photo {
  transform: scale(0.26);
  border-radius: 26px;
}

.review-card.is-open .review-photo::after {
  opacity: 0;
}

.review-card.is-open .review-name {
  color: var(--tri-primary);
}

.review-card.is-open .review-pet {
  color: var(--tri-ink-muted);
}

.review-card.is-open .review-plus {
  background: var(--tri-primary);
}

.review-card.is-open .review-plus::before {
  rotate: 45deg;
}

.review-card.is-open .review-plus::after {
  rotate: 135deg;
}

.review-card.is-open .review-text {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .review-card:hover {
    border-color: var(--tri-border-strong);
    box-shadow: var(--shadow-md);
  }
  .review-card:hover .review-photo {
    transform: scale(0.26);
    border-radius: 26px;
  }
  .review-card:hover .review-photo::after {
    opacity: 0;
  }
  .review-card:hover .review-name {
    color: var(--tri-primary);
  }
  .review-card:hover .review-pet {
    color: var(--tri-ink-muted);
  }
  .review-card:hover .review-plus {
    background: var(--tri-primary);
  }
  .review-card:hover .review-plus::before {
    rotate: 45deg;
  }
  .review-card:hover .review-plus::after {
    rotate: 135deg;
  }
  .review-card:hover .review-text {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 899px) {
  .about-story {
    grid-template-columns: 1fr;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .review-card {
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 599px) {
  .review-card {
    aspect-ratio: 1 / 0.85;
  }
}

@media (max-width: 899px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: var(--row) var(--row) var(--row) var(--row) clamp(230px, 34vw, 290px);
    --row: clamp(180px, 30vw, 240px);
  }
  .bento-grid li:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  .bento-grid li:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .bento-grid li:nth-child(3) {
    grid-row: span 2;
  }
  .bento-grid li:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hero-ref-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-ref-nav {
    gap: 2px;
  }

  .hero-ref-nav a {
    font-size: 14px;
    padding: 0.52em 0.85em;
  }

  .hero-right-brand {
    right: 6vw;
    width: clamp(220px, 56vw, 340px);
  }
}

@media (max-width: 699px) {
  .bento-sheet .inner {
    display: block;
    overflow-y: auto;
  }
  .bento-sheet .s-art {
    height: min(38%, 260px);
    min-height: 180px;
    margin: 12px;
  }
  .bento-sheet .s-body {
    overflow: visible;
    padding: 10px 20px 28px;
  }
  .bento-sheet .s-body h2 {
    padding-right: 0;
  }
  .bento-sheet .cta {
    align-self: stretch;
    justify-content: center;
  }
}

@media (max-width: 599px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    --row: 240px;
  }
  .bento-grid li:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  .bento-grid li:nth-child(1),
  .bento-grid li:nth-child(5) {
    grid-row: span 2;
  }
  .bento-card .art[data-fit="cat-stage"] img {
    width: auto;
    height: 92%;
    right: 48px;
    bottom: 10px;
  }
  .bento-card[data-scrim="left"] .art::after {
    background: linear-gradient(
      180deg,
      rgba(24, 22, 20, 0.62) 0%,
      rgba(24, 22, 20, 0.24) 32%,
      rgba(24, 22, 20, 0) 58%
    );
  }
}

/* ==========================================================================
   Service popup: product browser (products come from products.js)
   ========================================================================== */
.bento-sheet .s-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tri-accent-deep);
  padding-right: 56px;
}

.bento-sheet .s-eyebrow::before {
  content: '';
  flex: none;
  width: 28px;
  height: 2px;
  border-radius: 1px;
  background: var(--tri-accent);
}

.bento-sheet .s-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bento-sheet .s-art.is-empty {
  background: var(--tri-surface);
  border: 1px dashed var(--tri-border-strong);
}

.bento-sheet .s-art .bento-ph {
  color: var(--tri-ink-muted);
  opacity: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bento-sheet .s-art[data-fit="contain"] img {
  object-fit: contain;
  object-position: center bottom;
}

/* Packshot: a cut-out product bag, shown whole with breathing room and a soft shadow */
.bento-sheet .s-art[data-fit="packshot"] img {
  box-sizing: border-box;
  padding: clamp(14px, 6%, 40px);
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(15, 42, 71, 0.22));
}

.bento-sheet .s-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bento-sheet .s-foot .cta {
  margin-top: 0;
}

.bento-sheet .s-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bento-sheet .s-nav-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: var(--tri-primary);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s var(--bento-spring), color 0.2s var(--bento-spring);
}

.bento-sheet .s-nav-btn::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  translate: -65% -50%;
  rotate: 45deg;
}

.bento-sheet .s-nav-btn.is-prev::before {
  translate: -35% -50%;
  rotate: -135deg;
}

.bento-sheet .s-nav-btn:hover {
  background: var(--tri-accent);
  color: var(--tri-on-accent);
}

.bento-sheet .s-count {
  min-width: 3.2em;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--tri-primary);
}

@media (max-width: 699px) {
  .bento-sheet .s-foot {
    position: sticky;
    bottom: 0;
    z-index: 1;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
    margin: 0 -20px -28px;
    padding: 14px 20px 18px;
    background: #FFFFFF;
    border-top: 1px solid var(--tri-border);
  }
  .bento-sheet .s-nav {
    justify-content: center;
  }
}

/* Any number of service cards other than 5: an even grid that fills its rows
   (the signature 5-card bento layout above is kept when there are exactly 5). */
.bento-grid.is-auto {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: none;
  grid-auto-rows: var(--row);
}

.bento-grid.is-auto li:nth-child(n) {
  grid-column: auto;
  grid-row: auto;
}

.bento-grid.is-auto li:nth-child(3n+1):last-child {
  grid-column: 1 / -1;
}

.bento-grid.is-auto li:nth-child(3n+2):last-child {
  grid-column: span 2;
}

.bento-grid.is-auto li .bento-card .name {
  font-size: clamp(1.3rem, 1.9vw, 1.8rem);
}

.bento-grid .bento-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
}

@media (max-width: 899px) {
  .bento-grid.is-auto {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
  .bento-grid.is-auto li:nth-child(n) {
    grid-column: auto;
  }
  .bento-grid.is-auto li:nth-child(odd):last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 599px) {
  .bento-grid.is-auto {
    grid-template-columns: 1fr;
  }
  .bento-grid.is-auto li:nth-child(n) {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bento-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Walking Dog Loading Screen (#blazo-loader)
   ========================================================================== */

.blazo-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: #2A98D8; /* mean tone of studio-bg.jpg, shown until the image paints */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Same sky as the hero (studio-bg.jpg, same crop as .hero-studio-bg) */
.blazo-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #2A98D8 url("assets/studio-bg.jpg") 28% 50% / cover no-repeat;
}

/* Entry hand-off: overlay stays painted while the dog dashes off and the
   backdrop dissolves into the real hero underneath */
.blazo-loader.is-exiting {
  background-color: transparent;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: none;
}

.blazo-loader.is-exiting::before {
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.08s;
}

.blazo-loader.is-gone {
  transition: none;
}

html.blazo-loading,
html.blazo-loading body {
  overflow: hidden !important;
}

html.blazo-loading .blazo-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

html.blazo-loading.blazo-loading-fadein .blazo-loader {
  transition:
    opacity 0.18s ease-out,
    visibility 0.18s ease-out;
}

html.blazo-gate-locked body > *:not(#blazo-loader):not(script):not(iframe) {
  visibility: hidden !important;
}

.blazo-dog-svg {
  position: relative;
  z-index: 1;
  will-change: transform;
  width: min(136px, 24vw, 22vh);
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
  overflow: visible;
}

/* Hero title entrance (first visit only). loader.js drives --blazo-wipe so the
   title is unveiled in the running dog's wake, then removes these classes,
   leaving the hero title exactly as styled above. */
html.blazo-entrance .hero-main-logo {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--blazo-wipe, -20%) - 18%), transparent var(--blazo-wipe, -20%));
  mask-image: linear-gradient(90deg, #000 calc(var(--blazo-wipe, -20%) - 18%), transparent var(--blazo-wipe, -20%));
}

html.blazo-entrance .hero-floor-shadow {
  opacity: 0;
  transform: translateX(-50%) scaleX(0.4);
}

html.blazo-entrance.blazo-title-settle .hero-floor-shadow {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.blazo-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;
}

/* ==========================================================================
   Featuring Dibaq Sense (#featured) — horizontal product carousel
   Data: featured.js. The navy card stays put; the bags slide into it.
   Sizes below drive the layout; JS reads them to place the side bags.
   ========================================================================== */
.feat-section {
  --bag-h: clamp(300px, 27vw, 380px);
  --bag-ratio: 0.55;                 /* bag photo width / height (440 / 800) */
  --bag-w: calc(var(--bag-h) * var(--bag-ratio));
  --card-top: 112px;                 /* space above the bag for the name */
  --card-bottom: 78px;               /* space below the bag for the WhatsApp button */
  --card-h: calc(var(--card-top) + var(--bag-h) + var(--card-bottom));
  --card-w: calc(var(--card-h) / 2); /* card is 1:2 (width : height) */

  position: relative;
  background: var(--tri-surface);
  color: var(--tri-ink);
  font-family: var(--font-sans);
  padding: var(--section-y) 0 clamp(24px, 4vh, 48px);
  overflow: hidden;                  /* side bags never cause horizontal scroll */
}

.feat-head {
  width: var(--content);
  margin: 0 auto clamp(32px, 5vh, 56px);
  text-align: center;
}

.feat-title {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--tri-primary);
  font-size: var(--heading-section);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.feat-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: var(--tri-accent);
}

.feat-carousel {
  position: relative;
  outline: none;
}
.feat-carousel:focus-visible .feat-card {
  outline: 2px solid var(--tri-accent);
  outline-offset: 4px;
}

.feat-stage {
  position: relative;
  height: var(--card-h);
  touch-action: pan-y;               /* vertical page scroll still works on phones */
  user-select: none;
  -webkit-user-select: none;
}

/* Navy info card behind the centre bag */
.feat-card {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: var(--card-w);
  height: var(--card-h);
  aspect-ratio: 1 / 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 20px 18px;
  border-radius: 10px;
  background: var(--tri-primary);
  color: var(--tri-on-primary);
  box-shadow: var(--shadow-lg);
}

.feat-card-top,
.feat-card-bottom {
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.feat-card.is-swapping .feat-card-top,
.feat-card.is-swapping .feat-card-bottom {
  opacity: 0;
  transform: translateY(6px);
}

.feat-card-brand {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tri-on-primary-muted);
}

.feat-card-name {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.1;
  color: var(--tri-on-primary);
}

.feat-card-desc {
  margin-top: 6px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--tri-on-primary-muted);
}

.feat-card-bottom {
  display: flex;
}

/* Full-width WhatsApp button (no price on featured bags) */
.feat-wa {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  background: var(--tri-accent);
  color: var(--tri-on-accent);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.feat-wa:hover {
  background: var(--tri-accent-hover);
  transform: translateY(-2px);
}
.feat-wa svg {
  flex: none;
  width: 20px;
  height: 20px;
}

/* Bags: every slide sits on the same line; JS sets --x, --s, --o */
.feat-track {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.feat-slide {
  position: absolute;
  top: var(--card-top);
  left: 50%;
  width: var(--bag-w);
  height: var(--bag-h);
  margin-left: calc(var(--bag-w) / -2);
  transform: translate3d(var(--x, 0px), 0, 0) scale(var(--s, 1));
  opacity: var(--o, 1);
  transition:
    transform 0.75s var(--ease),
    opacity 0.55s var(--ease);
  will-change: transform, opacity;
  pointer-events: auto;
  cursor: pointer;
}
.feat-slide.is-active {
  z-index: 3;
  cursor: grab;
}
.feat-slide:not(.is-active) {
  z-index: 2;
}
.feat-slide.no-anim {
  transition: none;
}
.feat-slide.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.feat-slide img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(15, 42, 71, 0.18));
  -webkit-user-drag: none;
}

/* Soft floor shadow under each bag */
.feat-slide::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(8, 18, 31, 0.32), rgba(8, 18, 31, 0));
}
.feat-slide.is-active::after {
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

/* Prev / dots / next */
.feat-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(24px, 4vh, 36px);
}

.feat-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  border: 1.5px solid var(--tri-border-strong);
  background: transparent;
  color: var(--tri-primary);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.feat-arrow:hover {
  background: var(--tri-primary);
  border-color: var(--tri-primary);
  color: var(--tri-on-primary);
}
.feat-arrow svg {
  width: 20px;
  height: 20px;
}
.feat-arrow[hidden] {
  display: none;
}


.feat-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feat-dots[hidden] {
  display: none;
}
.feat-dot {
  display: block;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.feat-dot::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  background: var(--tri-border-strong);
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}
.feat-dot[aria-current="true"]::before {
  width: 22px;
  background: var(--tri-accent);
}

.feat-fallback {
  width: var(--content);
  margin: 0 auto;
  text-align: center;
  color: var(--tri-ink-muted);
}

@media (max-width: 600px) {
  .feat-section {
    --bag-h: clamp(260px, 72vw, 300px);
    --card-top: 104px;
    --card-bottom: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feat-slide,
  .feat-card-top,
  .feat-card-bottom {
    transition: none !important;
  }
}

/* ==========================================================================
   Motion layer (2026-11-28 polish pass)
   Restrained and compositor-only: transform and opacity. Nothing is hidden
   unless JS has set html.m-ready (motion allowed + IntersectionObserver),
   so no-JS and reduced-motion visitors always see the finished page.
   ========================================================================== */

/* 1. Terracotta rules draw in once as their heading reaches the viewport */
html.m-ready .feat-title::after,
html.m-ready .bento-hero::after,
html.m-ready .about-heading::after {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease) 0.12s;
}
html.m-ready .about-chip::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ease) 0.08s;
}
html.m-ready .feat-title.is-seen::after,
html.m-ready .bento-hero.is-seen::after,
html.m-ready .about-heading.is-seen::after,
html.m-ready .about-chip.is-seen::before {
  transform: none;
}

/* 2. The page's one type moment: the three-line story statement settles
      line by line, once. */
.about-statement .st {
  display: block;
}
html.m-ready .about-statement .st {
  opacity: 0.16;
  transform: translateY(0.28em);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
html.m-ready .about-statement .st:nth-child(2) { transition-delay: 0.16s; }
html.m-ready .about-statement .st:nth-child(3) { transition-delay: 0.32s; }
html.m-ready .about-statement.is-seen .st {
  opacity: 1;
  transform: none;
}

/* 3. Hover and press: a quiet lift, a slow photo drift, a firm press */
.bento-card:hover {
  translate: 0 -2px;
}
.bento-card .art img {
  transition: scale 1.1s var(--ease);
}
.bento-card:hover .art img {
  scale: 1.03;
}
.studio-btn:active,
.feat-arrow:active,
.copy-chip:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}

/* Text links draw their underline instead of snapping it on */
.card-action-link > span:first-child,
.card-action-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 calc(50% + 0.75em);
  background-size: 0% 1px;
  transition:
    color 0.18s var(--ease),
    gap 0.18s var(--ease),
    background-size 0.35s var(--ease);
}
.card-action-link:hover {
  background-size: 100% 1px;
}

@media (prefers-reduced-motion: reduce) {
  .bento-card .art img,
  .card-action-link {
    transition: none;
  }
}
