:root {
  --bg: #f4fafb;
  --surface: #ffffff;
  --ink: #0a2233;
  --muted: #5b7083;
  --line: #dbe8ee;
  --navy: #031c2e;
  --deep: #06405c;
  --teal: #0d9488;
  --aqua: #22d3ee;
  --mint: #5eead4;
  --gold: #ffb627;
  --gold-dark: #f59e0b;
  --tint: #e6f4f6;
  --radius: 20px;
  --shadow: 0 18px 40px -18px rgba(3, 28, 46, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }

h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }

a { color: inherit; }

[hidden] { display: none !important; }

[lang="bn"] { font-family: "Hind Siliguri", "Nirmala UI", "Vrinda", sans-serif; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

.section { padding: 96px 0; scroll-margin-top: 60px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--teal));
}

/* Scroll progress bar */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, var(--aqua), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
}

/* Reveal on scroll */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].in { opacity: 1; transform: none; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
  transition: background .3s, box-shadow .3s, color .3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 6px 24px -12px rgba(3, 28, 46, .3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.brand-mark { width: 56px; height: 56px; flex: none; object-fit: contain; transition: transform .5s var(--ease); }

.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }

.nav { display: flex; align-items: center; gap: 24px; }

.nav a:not(.btn) {
  position: relative;
  padding: 6px 0;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav a:not(.btn):hover,
.nav a.active { opacity: 1; }

.nav a:not(.btn):hover::after,
.nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  color: inherit;
  cursor: pointer;
  flex: none;
}

.scrolled .nav-toggle { background: var(--tint); }

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 28px -10px rgba(245, 158, 11, .7);
  transition: transform .25s var(--ease), box-shadow .25s;
}

/* Shine sweep on hover */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease);
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(245, 158, 11, .8); }
.btn:hover::before { left: 120%; }
.btn:active { transform: translateY(0); }

.btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn-small { padding: 10px 20px; font-size: .9rem; }

.btn-glass {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.btn-glass:hover { background: rgba(255, 255, 255, .2); box-shadow: none; }

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

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 130px 0 170px;
  color: #fff;
  text-align: center;
  background: linear-gradient(160deg, #031c2e 0%, #06405c 48%, #0b7f7a 100%);
  overflow: hidden;
}

/* Home page: Gallery photos changing behind the banner. */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.hero-slides.ready { opacity: 1; }

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
}

.hero-slide.under { opacity: 1; z-index: 1; }
.hero-slide.active { opacity: 1; z-index: 2; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.hero-slide.active img { animation: slow-zoom 9s linear both; }

@keyframes slow-zoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

/* The effects a new photo can arrive with; one is picked at random each time. */
.hero-slide.fx-fade { animation: fx-fade 1.8s ease both; }
.hero-slide.fx-rise { animation: fx-rise 1.6s var(--ease) both; }
.hero-slide.fx-wipe { animation: fx-wipe 1.6s var(--ease) both; }
.hero-slide.fx-zoom { animation: fx-zoom 1.7s var(--ease) both; }
.hero-slide.fx-slide { animation: fx-slide 1.5s var(--ease) both; }

@keyframes fx-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fx-rise {
  from { transform: translateY(100%); }
  to { transform: none; }
}

@keyframes fx-wipe {
  from { clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); }
  to { clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); }
}

@keyframes fx-zoom {
  from { opacity: 0; transform: scale(1.25); }
  to { opacity: 1; transform: none; }
}

@keyframes fx-slide {
  from { transform: translateX(100%); }
  to { transform: none; }
}

/* With photos behind the banner: show them in full colour, no tint or glow,
   and give the text a soft shadow so it stays readable on bright photos. */
.has-photos .hero-glow { display: none; }

/* Products page banner over photos: the same soft dark patch and shadow behind its text. */
.page-hero.has-photos .hero-inner { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6)); }

.page-hero.has-photos .hero-inner::before {
  content: "";
  position: absolute;
  inset: -40% 0;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(2, 16, 28, .6), rgba(2, 16, 28, .35) 55%, transparent);
  pointer-events: none;
}

.home-hero.has-photos .hero-copy {
  position: relative;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6));
}

/* A soft dark patch behind the text only; the rest of the photo keeps its colour. */
.home-hero.has-photos .hero-copy::before {
  content: "";
  position: absolute;
  inset: -18% -14%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(2, 16, 28, .62), rgba(2, 16, 28, .38) 55%, transparent);
}

.home-hero.has-photos .hero-local { background: rgba(2, 16, 28, .45); }

/* Home page: the feeding scene (feed, carp and shrimp), above the photos and below the text. */
.feed-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Keep the photos sharp: no frosted-glass blur on the things floating in front of them. */
.home-hero .art-tile,
.home-hero .hero-local,
.home-hero .btn-glass {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active img { animation: none; transform: none; }
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(34, 211, 238, .28), transparent 70%),
    radial-gradient(500px 420px at 85% 70%, rgba(94, 234, 212, .22), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  to { transform: translate3d(-3%, 3%, 0) scale(1.08); }
}

.bubbles { position: absolute; inset: 0; }

.bubbles span {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .45), rgba(255, 255, 255, .04) 60%);
  animation: rise linear infinite;
}

@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .8; }
  50% { transform: translate3d(18px, -55vh, 0); }
  100% { transform: translate3d(-12px, -115vh, 0); opacity: 0; }
}

.hero-inner { position: relative; z-index: 2; }

.hero-inner > * { animation: fade-up 1s var(--ease) both; }
.hero-inner > :nth-child(1) { animation-delay: .1s; }
.hero-inner > :nth-child(2) { animation-delay: .25s; }
.hero-inner > :nth-child(3) { animation-delay: .4s; }
.hero-inner > :nth-child(4) { animation-delay: .55s; }
.hero-inner > :nth-child(5) { animation-delay: .7s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}

.hero-local {
  display: inline-block;
  margin: 0 0 22px;
  padding: 10px clamp(16px, 4vw, 30px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
  /* Double size, shrinking on narrow phones so the name stays on one line. */
  font-size: min(2em, 6.4vw);
  white-space: nowrap;
  font-weight: 600;
  line-height: 1.4;
  color: var(--mint);
}

.hero h1 {
  max-width: 15ch;
  margin: 0 auto 22px;
  font-size: clamp(2.4rem, 7.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  background: linear-gradient(120deg, #fff 30%, var(--mint) 60%, #fff 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fade-up 1s var(--ease) .25s both, shimmer 7s linear 1.2s infinite;
}

@keyframes shimmer {
  to { background-position: -200% center; }
}

/* Home page: headlines that take turns. All sit in one spot; words come in one by one. */
.hero h1.headlines {
  display: grid;
  background: none;
  color: #fff;
  animation: fade-up 1s var(--ease) .25s both;
}

.headline {
  grid-area: 1 / 1;
  visibility: hidden;
}

.headline.in,
.headline.out { visibility: visible; }

.headline .word {
  display: inline-block;
  background: linear-gradient(120deg, #fff 30%, var(--mint) 60%, #fff 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
}

.headline.in .word {
  animation:
    word-in .8s var(--ease) calc(var(--i) * 90ms) both,
    shimmer 7s linear 1.2s infinite;
}

.headline.out .word { animation: word-out .45s ease-in calc(var(--i) * 40ms) both; }

@keyframes word-in {
  from { opacity: 0; transform: translateY(.55em) rotate(4deg); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes word-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-.45em); }
}

@media (prefers-reduced-motion: reduce) {
  .headline.in .word { animation: none; opacity: 1; }
}

.hero-intro {
  max-width: 54ch;
  margin: 0 auto 34px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(255, 255, 255, .8);
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Home page banner: text on the left, moving artwork on the right */
.home-hero { padding-bottom: 210px; }

.home-hero .hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 56px;
  text-align: left;
}

.home-hero h1 { margin-left: 0; }

.home-hero .hero-intro { margin-left: 0; }

.home-hero .hero-actions { justify-content: flex-start; }

.hero-art { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin-inline: auto; }

.art-ring {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .28);
  animation: spin 46s linear infinite;
}

.art-ring.two {
  inset: 19%;
  border: 1px solid rgba(94, 234, 212, .35);
  animation-duration: 30s;
  animation-direction: reverse;
}

/* A small dot riding each ring */
.art-ring::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px var(--gold);
}

.art-ring.two::before { background: var(--mint); box-shadow: 0 0 18px var(--mint); }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.art-core {
  position: absolute;
  inset: 31%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #8ff5e4, #0d9488 58%, #06405c);
  box-shadow: 0 0 90px rgba(94, 234, 212, .55), inset 0 -12px 30px rgba(3, 28, 46, .35);
  font-size: clamp(3rem, 8vw, 5.4rem);
  animation: bob 5s ease-in-out infinite;
}

/* The company logo in the middle of the banner art, with a soft glow around it. */
.art-core:has(.art-logo) {
  inset: 25%;
  background: none;
  box-shadow: 0 0 80px rgba(94, 234, 212, .5);
}

.art-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .35));
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.art-tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 23%;
  aspect-ratio: 1;
  border-radius: 26%;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  animation: bob 6s ease-in-out infinite;
}

/* Placed around the logo in the middle so nothing covers it. */
.art-tile.t1 { top: 0; left: 2%; animation-delay: -1s; }
.art-tile.t2 { top: 16%; right: 0; animation-delay: -3s; }
.art-tile.t3 { top: 40%; left: -4%; animation-delay: -4.5s; }

.art-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: .9rem;
  white-space: nowrap;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55);
  animation: bob 7s ease-in-out infinite;
}

.art-label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }

.art-label.l1 { bottom: 12%; right: 0; animation-delay: -2s; }
.art-label.l2 { top: 3%; left: 30%; animation-delay: -5s; }
.art-label.l3 { bottom: 8%; left: 0; animation-delay: -3.5s; }
.art-label.l4 { bottom: -10%; left: 28%; animation-delay: -6s; }
.art-label.dot-gold::before { background: var(--gold-dark); }

a.art-label { text-decoration: none; transition: scale .25s var(--ease), box-shadow .25s; }

a.art-label:hover {
  animation-play-state: paused;
  scale: 1.08;
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, .6);
}

/* Fish swimming across every banner */
.fishes { position: absolute; inset: 0; pointer-events: none; }

.fishes span {
  position: absolute;
  left: -100px;
  width: 70px;
  opacity: .13;
  animation: swim-across 34s linear infinite;
}

.fishes svg { display: block; width: 100%; fill: #fff; transform: scaleX(-1); }

.fishes span:nth-child(1) { top: 22%; animation-delay: -4s; }
.fishes span:nth-child(2) { top: 46%; width: 44px; animation-duration: 26s; animation-delay: -15s; }
.fishes span:nth-child(3) { top: 64%; width: 96px; opacity: .08; animation-duration: 44s; animation-delay: -22s; }
.fishes span:nth-child(4) { top: 34%; width: 36px; animation-duration: 22s; animation-delay: -9s; }
.fishes span:nth-child(5) { top: 76%; width: 54px; animation-duration: 30s; animation-delay: -27s; }

@keyframes swim-across {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(calc(50vw + 100px), -22px, 0); }
  100% { transform: translate3d(calc(100vw + 200px), 0, 0); }
}

/* Numbers card that overlaps the bottom of the home banner */
.stats-bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: -96px 0 56px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 30px 60px -26px rgba(3, 28, 46, .4);
  overflow: hidden;
}

.stat { position: relative; padding: 30px 20px; text-align: center; }

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24%;
  bottom: 24%;
  width: 1px;
  background: var(--line);
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--deep), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat span { font-size: .88rem; font-weight: 600; color: var(--muted); }

.waves {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 110px;
  z-index: 1;
}

.wave-layers use { animation: wave 25s cubic-bezier(.55, .5, .45, .5) infinite; }
.wave-layers use:nth-child(1) { fill: rgba(244, 250, 251, .25); animation-delay: -2s; animation-duration: 7s; }
.wave-layers use:nth-child(2) { fill: rgba(244, 250, 251, .4); animation-delay: -3s; animation-duration: 10s; }
.wave-layers use:nth-child(3) { fill: rgba(244, 250, 251, .6); animation-delay: -4s; animation-duration: 13s; }
.wave-layers use:nth-child(4) { fill: var(--bg); animation-delay: -5s; animation-duration: 20s; }

@keyframes wave {
  from { transform: translate3d(-90px, 0, 0); }
  to { transform: translate3d(85px, 0, 0); }
}

/* Smaller banner at the top of the inner pages */
.page-hero { min-height: 0; padding: 150px 0 140px; }

.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: 14px; }

.page-hero .hero-intro { margin-bottom: 0; }

.crumbs {
  margin: 0 0 18px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mint);
}

.crumbs a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 6px; opacity: .5; }

.section-foot { margin: 44px 0 0; text-align: center; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.more::after { content: "→"; transition: transform .25s var(--ease); }
.more:hover::after { transform: translateX(6px); }

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--deep);
}

.marquee-track span::after { content: "✦"; color: var(--gold-dark); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* About / features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s, opacity .8s var(--ease);
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--aqua), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}

.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }

.feature-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #d5f5f6, #c6f1e7);
  font-size: 1.8rem;
  transition: transform .5s var(--ease);
}

.feature:hover .feature-icon { transform: rotate(-8deg) scale(1.1); }

.feature h3 { font-size: 1.15rem; font-weight: 800; }

.feature p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Company profile */
.company {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 88px;
}

.company.first { margin-top: 0; }

.company-text { color: var(--muted); font-size: 1.05rem; margin: 0 0 28px; }

.quote {
  margin: 0;
  padding: 22px 26px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quote blockquote { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; }

.quote blockquote::before { content: "“"; }
.quote blockquote::after { content: "”"; }

.quote figcaption { color: var(--muted); font-size: .85rem; }

.facts-card {
  padding: 32px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(150deg, var(--navy), var(--deep));
  box-shadow: var(--shadow);
}

.facts-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--mint); margin-bottom: 18px; }

.facts-card dl { margin: 0; }

.facts-card dt {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.facts-card dd {
  margin: 2px 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-weight: 600;
}

.facts-card dd:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

/* Brands */
.brands { background: var(--surface); border-block: 1px solid var(--line); }

.brand-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}

.brand-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }

.brand-logo {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--aqua), var(--teal));
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  overflow: hidden;
  transition: transform .5s var(--ease);
}

.brand-card:nth-child(even) .brand-logo { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); }

.brand-card:hover .brand-logo { transform: rotate(-8deg) scale(1.08); }

.brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

.brand-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }

.brand-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.reach { display: grid; gap: 8px; justify-items: start; }

.contact-card p.last { margin-bottom: 0; }

/* Products */
.products { background: linear-gradient(180deg, var(--bg), var(--tint)); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.count {
  margin: 0 0 1.4em;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
}

.controls { display: flex; gap: 12px; margin: 16px 0 18px; }

.search { position: relative; flex: 1; min-width: 0; }

.search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.controls input,
.controls select {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}

.controls input { padding-left: 50px; }

.controls select { width: auto; cursor: pointer; }

.controls input:focus,
.controls select:focus {
  outline: 0;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, .15);
}

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }

.chip {
  font: inherit;
  font-weight: 700;
  font-size: .92rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: transform .25s var(--ease), color .2s, border-color .2s, background .2s, box-shadow .2s;
}

.chip:hover { transform: translateY(-2px); color: var(--ink); border-color: var(--teal); }

.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--deep), var(--teal));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(13, 148, 136, .8);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: card-in .6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: transparent; }

.card-media {
  position: relative;
  aspect-ratio: 1; /* square: tall bag designs show bigger */
  display: grid;
  place-items: center;
  font-size: 4.4rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0b7f7a, #22d3ee);
}

.card-media[data-tone="1"] { background: linear-gradient(135deg, #06405c, #3b82f6); }
.card-media[data-tone="2"] { background: linear-gradient(135deg, #b45309, #fbbf24); }
.card-media[data-tone="3"] { background: linear-gradient(135deg, #065f46, #34d399); }

/* Soft light circles behind the icon */
.card-media::before,
.card-media::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  transition: transform .7s var(--ease);
}

.card-media::before { width: 170px; height: 170px; top: -60px; right: -50px; }
.card-media::after { width: 110px; height: 110px; bottom: -40px; left: -30px; }

.card:hover .card-media::before { transform: scale(1.35); }
.card:hover .card-media::after { transform: scale(1.5); }

.card-emoji {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 14px rgba(3, 28, 46, .35));
  transition: transform .5s var(--ease);
}

.card:hover .card-emoji { animation: swim 1.6s ease-in-out infinite; }

@keyframes swim {
  0%, 100% { transform: translate(0, 0) rotate(0) scale(1.12); }
  25% { transform: translate(6px, -6px) rotate(6deg) scale(1.12); }
  75% { transform: translate(-6px, 4px) rotate(-6deg) scale(1.12); }
}

.card-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain; /* product photos are whole bag designs: show all of the bag */
  padding: 8px;
  transition: transform .7s var(--ease);
}

.card:hover .card-media img { transform: scale(1.08); }

.badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}

.size-pill {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
}

.card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px; flex: 1; }

.card-cat {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
}

.card h3 { font-size: 1.2rem; font-weight: 800; margin: 0; }

.card p { margin: 0; color: var(--muted); font-size: .94rem; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

.tag {
  font-size: .74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--deep);
}

a.card-media { text-decoration: none; }

.card-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 4px;
  color: var(--teal);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.card-details::after { content: "→"; transition: transform .25s var(--ease); }
.card-details:hover::after { transform: translateX(5px); }

/* Product details page */
.crumbs b { font-weight: 700; }

.detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  animation: fade-up .9s var(--ease) both;
}

.detail-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 32px;
  background: linear-gradient(135deg, #0b7f7a, #22d3ee);
  box-shadow: 0 40px 70px -30px rgba(3, 28, 46, .5);
  overflow: hidden;
}

.detail-media[data-tone="1"] { background: linear-gradient(135deg, #06405c, #3b82f6); }
.detail-media[data-tone="2"] { background: linear-gradient(135deg, #b45309, #fbbf24); }
.detail-media[data-tone="3"] { background: linear-gradient(135deg, #065f46, #34d399); }

.detail-media::before,
.detail-media::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
}

.detail-media::before { width: 62%; aspect-ratio: 1; top: -18%; right: -16%; }
.detail-media::after { width: 40%; aspect-ratio: 1; bottom: -14%; left: -10%; }

.detail-media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 18px; }

.detail-emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(7rem, 22vw, 12rem);
  line-height: 1;
  filter: drop-shadow(0 24px 30px rgba(3, 28, 46, .4));
  animation: bob 5s ease-in-out infinite;
}

.detail-info { display: flex; flex-direction: column; gap: 16px; }

.detail-info .card-cat { text-decoration: none; }

.detail-info h2 { margin: 0; }

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--tint);
}

.detail-price strong { font-size: 2.2rem; font-weight: 800; color: var(--deep); line-height: 1.1; }

.detail-price strong.price-ask { font-size: 1.05rem; }

.detail-price span { color: var(--muted); font-weight: 600; }

.detail-text { margin: 0; color: var(--muted); font-size: 1.08rem; }

.detail-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }

.more.back::after { content: none; }
.more.back::before { content: "←"; transition: transform .25s var(--ease); }
.more.back:hover::before { transform: translateX(-5px); }

.detail-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 64px;
}

.detail-box {
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.detail-box h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }

.detail-box p { margin: 0 0 10px; color: var(--muted); }
.detail-box p:last-child { margin-bottom: 0; }

.spec-list { display: grid; grid-template-columns: auto 1fr; margin: 0; }

.spec-list dt,
.spec-list dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }

.spec-list dt { padding-right: 24px; color: var(--muted); font-weight: 600; }

.spec-list dd { font-weight: 800; text-align: right; }

.spec-list dt:nth-last-child(2),
.spec-list dd:last-child { border-bottom: 0; }

@media (max-width: 860px) {
  .detail-top { grid-template-columns: 1fr; gap: 32px; }
  .detail-media { max-width: 420px; width: 100%; margin-inline: auto; }
}

.card-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.price { font-size: 1.5rem; font-weight: 800; color: var(--deep); }

.price small { font-size: .85rem; font-weight: 600; color: var(--muted); }

.price { white-space: nowrap; }

.price-ask { font-size: .82rem; font-weight: 600; color: var(--muted); white-space: normal; }

.card-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--deep);
  justify-content: center;
  font-weight: 800;
  font-size: .84rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s, color .25s, gap .25s;
}

.card-foot a::after { content: "→"; transition: transform .25s var(--ease); }

.card:hover .card-foot a { background: var(--deep); color: #fff; }
.card-foot a:hover::after { transform: translateX(4px); }

.card.sold-out .card-media { filter: grayscale(1); opacity: .65; }
.card.sold-out .price { color: var(--muted); text-decoration: line-through; }

.empty { text-align: center; color: var(--muted); padding: 50px 0; }

/* Management team (Contact page) */
.team { border-bottom: 1px solid var(--line); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px 30px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}

/* Coloured band behind the top of the photo */
.team-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 104px;
  background: linear-gradient(135deg, var(--deep), var(--teal));
  transition: height .45s var(--ease);
}

.team-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: transparent; }
.team-card:hover::before { height: 124px; }

.team-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  margin-bottom: 20px;
  border: 5px solid var(--surface);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-size: 2.6rem;
  font-weight: 800;
  box-shadow: 0 16px 30px -14px rgba(3, 28, 46, .5);
  overflow: hidden;
  transition: transform .45s var(--ease);
}

.team-card:hover .team-photo { transform: scale(1.06); }

.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-card h3 { margin: 0 0 4px; font-size: 1.2rem; font-weight: 800; }

.team-role {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.team-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--tint);
  color: var(--deep);
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}

.team-phone svg { width: 16px; height: 16px; fill: currentColor; }

a.team-phone:hover,
.team-card:hover a.team-phone { background: var(--deep); border-color: var(--deep); color: #fff; }

/* Comment box (Contact page) */
.comment-section { background: linear-gradient(180deg, var(--bg), var(--tint)); }

.comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 36px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.comment-form .wide { grid-column: 1 / -1; }

.comment-form label { display: grid; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--muted); }

.comment-form input,
.comment-form select,
.comment-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.comment-form textarea { resize: vertical; min-height: 130px; }

.comment-form input:focus,
.comment-form select:focus,
.comment-form textarea:focus {
  outline: 0;
  border-color: var(--teal);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, .15);
}

/* Spam trap: kept out of sight and out of the tab order */
.comment-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.comment-form .btn { justify-self: start; }

.comment-form .btn:disabled { opacity: .6; cursor: default; transform: none; }

.form-message { margin: 0; padding: 14px 18px; border-radius: 14px; font-weight: 700; animation: fade-up .5s var(--ease) both; }

.form-message.success { background: #dcf5ec; color: #0a6b4f; }

.form-message.error { background: #fdecea; color: #b3261e; }

/* Dealer area */
.login-form { max-width: 460px; margin-top: 0; }

.login-form .btn { justify-self: stretch; }

.login-help { margin: 0; color: var(--muted); font-size: .9rem; text-align: center; }

.portal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }

.portal-bar .eyebrow { margin: 0; }

.portal-logout {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.portal-logout:hover { border-color: var(--teal); color: var(--teal); }

.portal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.portal-stat {
  display: grid;
  gap: 4px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  animation: card-in .6s var(--ease) both;
}

.portal-stat:first-child { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--deep), var(--teal)); }

.portal-stat span { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }

.portal-stat strong { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }

.portal-stat small { opacity: .7; }

.portal-heading { margin: 64px 0 20px; font-size: clamp(1.5rem, 3.5vw, 2.1rem); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Dealer area: the logged-in dealer's shop photo behind the top banner, instead of the bubbles and fish */
.shop-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.shop-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: shop-photo-drift 24s ease-in-out infinite alternate;
}

/* A dark tint so the shop name and address stay readable on any photo */
.shop-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 28, 46, .55), rgba(3, 28, 46, .35) 50%, rgba(3, 28, 46, .6));
}

@keyframes shop-photo-drift {
  from { transform: scale(1.04); }
  to { transform: scale(1.14) translate(-1.5%, -1%); }
}

.has-shop-photo .bubbles,
.has-shop-photo .fishes,
.has-shop-photo .hero-glow { display: none; }

.has-shop-photo .hero-inner { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .55)); }

@media (prefers-reduced-motion: reduce) {
  .shop-photo img { animation: none; }
}

/* Dealer area: tabs (Home, New order, My orders, Messages) */
.portal-tabs {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  margin-bottom: 26px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -18px rgba(3, 28, 46, .35);
}

.portal-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 8px;
  border-radius: 13px;
  color: var(--muted);
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.portal-tabs a:hover { color: var(--deep); background: var(--tint); }

.portal-tabs a[aria-current="page"] { color: #fff; background: linear-gradient(135deg, var(--deep), var(--teal)); }

.portal-tabs svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: .72rem;
  line-height: 1.5;
  text-align: center;
}

.tab-count[hidden] { display: none; }

.portal-page { animation: card-in .35s var(--ease) both; }

.portal-page[hidden] { display: none; }

.portal-page .portal-heading { margin-top: 0; }

.order-jump { margin-top: 18px; }

.just-placed { outline: 3px solid var(--teal); outline-offset: 2px; }

/* The order total and button stay in view while choosing products. */
.order-summary {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: var(--surface);
  box-shadow: 0 -10px 24px -18px rgba(3, 28, 46, .4);
}

/* Dealer area: the Messages tab */
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

.page-top .portal-heading { margin: 0; }

.page-top small { color: var(--muted); }

.chat-call {
  flex: none;
  padding: 9px 16px;
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.chat-call:hover { background: var(--tint); }

.chat-open .chat-thread { height: calc(100vh - 420px); min-height: 320px; max-height: none; }

/* Dealer area: call the mill and message it */
.unread-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 22px;
  padding: 16px 20px;
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius);
  background: #fff8e6;
  animation: card-in .6s var(--ease) both;
}

.unread-notice[hidden] { display: none; }

.unread-notice > div { display: grid; flex: 1 1 240px; gap: 2px; min-width: 0; }

.unread-notice span:not(.unread-bell) { overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }

.unread-bell { font-size: 1.6rem; animation: bell-ring 2.4s ease-in-out infinite; transform-origin: 50% 0; }

@keyframes bell-ring {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20%, 40% { transform: rotate(-14deg); }
}

.chat-bubble.new { outline: 2px solid #f59e0b; }

.chat-new {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .unread-bell { animation: none; }
}

.call-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.call-button::before { content: "📞"; margin-right: 6px; }

.btn-ghost {
  border: 1.5px solid var(--teal);
  background: var(--surface);
  color: var(--teal);
  box-shadow: none;
}

.btn-ghost:hover { background: var(--tint); }

.contact-mill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 22px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-mill > div:first-child { display: grid; gap: 2px; flex: 1 1 220px; }

.contact-mill span { color: var(--muted); }

.message-badge {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: .75rem;
}

.chat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  min-height: 160px;
  padding: 20px;
  overflow-y: auto;
  background: var(--tint);
}

.chat-empty { margin: auto; color: var(--muted); text-align: center; }

.chat-bubble {
  max-width: min(80%, 520px);
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(3, 28, 46, .08);
}

.chat-bubble p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }

.chat-bubble small { color: var(--muted); font-size: .75rem; }

.chat-bubble.mine { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--teal); color: #fff; }

.chat-bubble.mine small { color: rgba(255, 255, 255, .8); }

.chat-bubble.theirs { align-self: flex-start; border-bottom-left-radius: 4px; }

.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }

.chat-form textarea {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  resize: vertical;
}

.chat .form-message { margin: 0 14px 14px; }

.order-form {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: clip; /* rounded corners, while the order total can still stick to the screen */
}

.order-line {
  display: grid;
  grid-template-columns: 1fr auto auto 120px;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  transition: background .25s;
}

.order-line.chosen { background: var(--tint); }

.order-name strong { display: block; }

.order-name small,
.order-price { color: var(--muted); font-size: .9rem; }

.order-price { white-space: nowrap; }

.order-amount { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

.qty { display: flex; align-items: center; gap: 6px; }

.qty input {
  width: 74px;
  padding: 9px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: center;
}

.qty input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13, 148, 136, .15); }

.qty-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--tint);
  color: var(--deep);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.order-line.chosen .qty-button { background: var(--surface); }

.qty-button:hover { background: var(--deep); color: #fff; }

.order-note-label { display: grid; gap: 8px; padding: 20px 24px 0; font-size: .88rem; font-weight: 700; color: var(--muted); }

.order-note-label textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  resize: vertical;
}

.order-note-label textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13, 148, 136, .15); }

.order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 24px;
}

.order-summary div { display: grid; gap: 2px; }

.order-summary span,
.order-summary small { color: var(--muted); font-size: .9rem; }

.order-summary strong { font-size: 2rem; font-weight: 800; color: var(--deep); line-height: 1.1; font-variant-numeric: tabular-nums; }

.order-summary .btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }

#order-message { margin-top: 18px; }

.order-history { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.order-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.order-head strong { display: block; font-size: 1.1rem; }

.order-head small { color: var(--muted); }

.status {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
}

.status.pending { background: #fff3d6; color: #8a5a00; }
.status.confirmed { background: #dcecff; color: #0b4a8f; }
.status.delivered { background: #dcf5ec; color: #0a6b4f; }
.status.cancelled { background: #eceff1; color: #5b6b75; }

.order-items { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .95rem; }

.order-items li { display: flex; justify-content: space-between; gap: 16px; }

.order-items li span:last-child { font-weight: 700; white-space: nowrap; }

.order-note { margin: 0; color: var(--muted); font-size: .9rem; }

.order-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.order-foot strong { font-size: 1.3rem; font-weight: 800; color: var(--deep); }

.order-cancel {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: #b3261e;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}

.order-cancel:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .order-line { grid-template-columns: 1fr auto; gap: 10px 16px; padding: 16px; }
  .order-price { grid-column: 1; }
  .order-amount { grid-column: 2; grid-row: 1; }
  .qty { grid-column: 2; grid-row: 2; }
  .order-history { grid-template-columns: 1fr; }
}

/* Dealers */
.dealer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.dealer-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  animation: card-in .6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}

.dealer-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: transparent; }

.dealer-media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--deep), var(--teal));
  font-size: 4rem;
  overflow: hidden;
}

.dealer-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }

.dealer-card:hover .dealer-media img { transform: scale(1.08); }

.dealer-body { display: flex; flex-direction: column; gap: 14px; padding: 22px; flex: 1; }

.dealer-body h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }

.dealer-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0;
  font-size: .95rem;
}

.dealer-details dt {
  padding-top: 3px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
}

.dealer-details dd { margin: 0; overflow-wrap: anywhere; }

.dealer-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--deep);
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  transition: background .25s, color .25s;
}

.dealer-call svg { width: 16px; height: 16px; fill: currentColor; }

.dealer-card:hover .dealer-call { background: var(--deep); color: #fff; }

/* Gallery slideshow */
.slideshow {
  position: relative;
  aspect-ratio: 16 / 8;
  border-radius: 30px;
  background: var(--navy);
  box-shadow: 0 40px 70px -30px rgba(3, 28, 46, .55);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(135deg, #06405c, #0d9488);
  transition: opacity 1.2s ease;
}

.slide[data-tone="1"] { background: linear-gradient(135deg, #031c2e, #3b82f6); }
.slide[data-tone="2"] { background: linear-gradient(135deg, #065f46, #22d3ee); }
.slide[data-tone="3"] { background: linear-gradient(135deg, #7c2d12, #fbbf24); }

.slide.active { opacity: 1; }

.slide-empty { color: rgba(255, 255, 255, .7); font-size: 1.1rem; font-weight: 700; }

.slide.has-photo .slide-empty { display: none; }

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

/* Slow zoom and drift while a photo is on screen */
.slide.active img { animation: ken-burns 8s ease-out both; }
.slide:nth-child(even).active img { animation-name: ken-burns-reverse; }

@keyframes ken-burns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-2%, -2%, 0); }
}

@keyframes ken-burns-reverse {
  from { transform: scale(1.14) translate3d(2%, -1%, 0); }
  to { transform: scale(1) translate3d(0, 0, 0); }
}

/* Dark fade so the caption stays readable */
.slides::after {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(transparent, rgba(3, 28, 46, .85));
  pointer-events: none;
}

.slide-caption { position: absolute; left: 36px; right: 36px; bottom: 34px; z-index: 2; color: #fff; }

.slide-caption.swap { animation: fade-up .8s var(--ease) both; }

.slide-caption small {
  display: block;
  margin-bottom: 6px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--gold);
}

.slide-caption strong { font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }

.slide-nav,
.slide-toggle {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background .25s, transform .25s var(--ease);
}

.slide-nav { top: 50%; margin-top: -26px; }

.slide-prev { left: 18px; }
.slide-next { right: 18px; }

.slide-nav:hover,
.slide-toggle:hover { background: var(--gold); color: var(--navy); border-color: transparent; }

.slide-prev:hover { transform: translateX(-4px); }
.slide-next:hover { transform: translateX(4px); }

.slide-toggle { top: 18px; right: 18px; width: 44px; height: 44px; font-size: .8rem; }

.slide-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--aqua), var(--gold));
  transform-origin: left;
  animation: slide-timer 5s linear both;
}

/* Hovering or pressing pause holds the current photo */
.slideshow:hover .slide-progress,
.slideshow.paused .slide-progress { animation-play-state: paused; }

@keyframes slide-timer {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.thumbs {
  position: relative;
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 6px 4px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.thumb {
  display: grid;
  place-items: center;
  width: 118px;
  height: 78px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #06405c, #0d9488);
  color: rgba(255, 255, 255, .85);
  font: inherit;
  font-weight: 800;
  opacity: .55;
  overflow: hidden;
  cursor: pointer;
  transition: opacity .3s, transform .3s var(--ease), box-shadow .3s;
}

.thumb[data-tone="1"] { background: linear-gradient(135deg, #031c2e, #3b82f6); }
.thumb[data-tone="2"] { background: linear-gradient(135deg, #065f46, #22d3ee); }
.thumb[data-tone="3"] { background: linear-gradient(135deg, #7c2d12, #fbbf24); }

.thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb:hover { opacity: 1; transform: translateY(-3px); }

.thumb.active { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--gold); }

.gallery-head { margin-top: 88px; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
  margin-top: 36px;
}

.gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  font: inherit;
  cursor: zoom-in;
}

/* First photo is the large feature tile */
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(3, 28, 46, .85));
  color: #fff;
  font-weight: 700;
  text-align: left;
  transition: padding .4s var(--ease);
}

.gallery-item:hover .gallery-caption { padding-bottom: 24px; }

.gallery-item.placeholder {
  cursor: default;
  background: linear-gradient(110deg, #d9e8ee 30%, #edf5f7 50%, #d9e8ee 70%);
  background-size: 200% 100%;
  animation: skeleton 2.4s linear infinite;
}

@keyframes skeleton {
  to { background-position: -200% 0; }
}

.gallery-item.placeholder::before {
  content: "Photo coming soon";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}

.lightbox[open] { display: grid; place-items: center; }

.lightbox::backdrop { background: rgba(3, 18, 30, .92); backdrop-filter: blur(6px); }

.lightbox figure { margin: 0; text-align: center; }

.lightbox figure.swap { animation: zoom-in .45s var(--ease); }

@keyframes zoom-in {
  from { opacity: 0; transform: scale(.92); }
}

.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 14px; display: block; }

.lightbox figcaption { color: #fff; font-weight: 600; margin-top: 14px; }

.lightbox button {
  position: fixed;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}

.lightbox button:hover { background: rgba(255, 255, 255, .3); }

.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact {
  position: relative;
  color: #fff;
  background: linear-gradient(150deg, #031c2e, #06405c);
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 360px at 90% 10%, rgba(34, 211, 238, .22), transparent 70%),
    radial-gradient(460px 340px at 5% 95%, rgba(255, 182, 39, .14), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}

.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact .eyebrow { color: var(--mint); }

.contact-text { max-width: 46ch; color: rgba(255, 255, 255, .78); margin: 0 0 32px; }

.phone-big {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 30px 14px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  text-decoration: none;
  transition: background .3s, transform .3s var(--ease), opacity .8s var(--ease);
}

.phone-big:hover { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }

.phone-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  flex: none;
}

.phone-icon::after,
.fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(1.7); opacity: 0; }
}

.phone-icon svg { width: 26px; height: 26px; fill: var(--navy); animation: ring 3s ease-in-out infinite; }

@keyframes ring {
  0%, 80%, 100% { transform: rotate(0); }
  84%, 92% { transform: rotate(-14deg); }
  88%, 96% { transform: rotate(14deg); }
}

.phone-big small { display: block; font-size: .8rem; color: rgba(255, 255, 255, .7); }

.phone-big strong { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; letter-spacing: -.01em; }

.contact-cards { display: grid; gap: 16px; }

.contact-card {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
}

.contact-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--mint); }

.contact-card p { margin: 0 0 14px; color: rgba(255, 255, 255, .85); }

.link { color: var(--gold); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.link:hover { text-decoration: underline; }

.hours table { width: 100%; border-collapse: collapse; }
.hours td { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-weight: 700; }

/* Contact page: the same blocks on a light background */
.contact-page .contact-text { color: var(--muted); }

.contact-page .phone-big {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.contact-page .phone-big:hover { background: var(--surface); }

.contact-page .phone-big small { color: var(--muted); }

.contact-page .contact-card {
  background: var(--surface);
  border-color: var(--line);
  transition: transform .4s var(--ease), box-shadow .4s;
}

.contact-page .contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.contact-page .contact-card h3 { color: var(--teal); }

.contact-page .contact-card p { color: var(--ink); }

.contact-page .link { color: var(--deep); }

.contact-page .hours td { border-color: var(--line); }

/* "Ready to order?" band above the footer */
.cta-band {
  position: relative;
  padding: 72px 0;
  color: #fff;
  background: linear-gradient(150deg, #031c2e, #06405c);
  overflow: hidden;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { margin-bottom: 8px; }

.cta-band p { margin: 0; max-width: 48ch; color: rgba(255, 255, 255, .78); }

.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #021421; color: rgba(255, 255, 255, .6); padding: 48px 0 26px; font-size: .9rem; }

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-name { display: block; margin-bottom: 6px; font-size: 1.15rem; color: #fff; }

.footer-top p { margin: 0; }

.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }

.footer-nav a { opacity: .75; transition: opacity .2s; }
.footer-nav a:hover { opacity: 1; }

/* Right padding keeps the links clear of the floating call button. */
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-right: 96px; }

.site-footer a { color: #fff; font-weight: 600; text-decoration: none; }

.footer-links { display: flex; gap: 22px; }

.site-footer .admin-link { opacity: .45; font-weight: 500; }
.site-footer .admin-link:hover { opacity: 1; }

/* Floating call button */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 14px 30px -8px rgba(245, 158, 11, .8);
  opacity: 0;
  transform: translateY(20px) scale(.8);
  pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease);
}

.fab.show { opacity: 1; transform: none; pointer-events: auto; }

.fab svg { width: 28px; height: 28px; fill: var(--navy); }

/* Home page sections */
.tinted { background: linear-gradient(180deg, var(--tint), var(--bg)); }

.center-head { max-width: 640px; margin: 0 auto 8px; text-align: center; }

.center-head .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--aqua));
}

.lead { margin: 0; color: var(--muted); font-size: 1.05rem; }

.ranges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.range {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 30px;
  border-radius: 28px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(150deg, #0b7f7a, #22d3ee);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s;
}

.range[data-tone="1"] { background: linear-gradient(150deg, #06405c, #3b82f6); }
.range[data-tone="2"] { background: linear-gradient(150deg, #065f46, #34d399); }
.range[data-tone="3"] { background: linear-gradient(150deg, #b45309, #fbbf24); }

.range::before,
.range::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  transition: transform .8s var(--ease);
}

.range::before { width: 260px; height: 260px; top: -110px; right: -90px; }
.range::after { width: 150px; height: 150px; bottom: -70px; left: -50px; }

.range:hover { transform: translateY(-12px); box-shadow: 0 34px 60px -24px rgba(3, 28, 46, .55); }
.range:hover::before { transform: scale(1.3); }
.range:hover::after { transform: scale(1.5); }

.range-emoji {
  position: absolute;
  top: 26px;
  right: 30px;
  z-index: 1;
  font-size: 5rem;
  line-height: 1;
  filter: drop-shadow(0 14px 18px rgba(3, 28, 46, .4));
  transition: transform .5s var(--ease);
}

.range:hover .range-emoji { animation: swim 1.6s ease-in-out infinite; }

.range h3 { position: relative; z-index: 1; margin: 0 0 4px; font-size: 1.6rem; font-weight: 800; }

.range p { position: relative; z-index: 1; margin: 0; opacity: .85; font-weight: 600; }

.range-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform .4s var(--ease), background .3s;
}

.range:hover .range-arrow { transform: translateX(8px); background: var(--gold); }

/* How to order */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

/* Dashed line joining the three numbers */
.steps::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 16%;
  right: 16%;
  border-top: 2px dashed var(--line);
}

.step { position: relative; text-align: center; }

.step-number {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 0 0 10px var(--bg), 0 16px 30px -10px rgba(245, 158, 11, .7);
  transition: transform .5s var(--ease);
}

.step:hover .step-number { transform: scale(1.12) rotate(-8deg); }

.step h3 { font-size: 1.25rem; font-weight: 800; }

.step p { max-width: 30ch; margin: 0 auto 14px; color: var(--muted); }

/* Customer quote */
.praise { padding-top: 0; }

.praise-card {
  position: relative;
  margin: 0;
  padding: 64px 40px 52px;
  border-radius: 32px;
  color: #fff;
  text-align: center;
  background: linear-gradient(140deg, var(--deep), var(--teal));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.praise-mark {
  position: absolute;
  top: -30px;
  left: 30px;
  font-family: Georgia, serif;
  font-size: 14rem;
  line-height: 1;
  color: rgba(255, 255, 255, .12);
}

.praise-card blockquote {
  position: relative;
  max-width: 22ch;
  margin: 0 auto 18px;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.praise-card figcaption { position: relative; color: rgba(255, 255, 255, .78); font-size: .95rem; }

/* Tablet and phone */
@media (max-width: 1180px) {
  .section { padding: 72px 0; }

  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-12px) scale(.98);
    pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
  }

  .nav.open { opacity: 1; transform: none; pointer-events: auto; }

  .nav a:not(.btn) { padding: 12px 14px; border-radius: 12px; opacity: 1; }
  .nav a:not(.btn)::after { display: none; }
  .nav a:not(.btn):hover,
  .nav a.active { background: var(--tint); }
  .nav .btn { margin-top: 6px; }

  .brand { font-size: 1.15rem; gap: 10px; }
  .brand-mark { width: 44px; height: 44px; }

  .hero { padding: 120px 0 150px; }
  .waves { height: 70px; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  .company { grid-template-columns: 1fr; gap: 32px; margin-top: 64px; }

  .home-hero { padding-bottom: 180px; }
  .home-hero .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .home-hero h1,
  .home-hero .hero-intro { margin-left: auto; }
  .home-hero .hero-actions { justify-content: center; }
  .hero-art { max-width: 340px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 12px; }
  .slideshow { aspect-ratio: 4 / 3; border-radius: 22px; }
  .slide-caption { left: 20px; right: 20px; bottom: 24px; }
  .slide-nav { width: 42px; height: 42px; }
  .thumb { width: 84px; height: 58px; }
}

@media (max-width: 560px) {
  .controls { flex-direction: column; }
  .controls select { width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-media { font-size: 3.2rem; }
  .card-body { padding: 16px; }
  .card h3 { font-size: 1.02rem; }
  .card p { font-size: .86rem; }
  .card-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .card-foot a { justify-content: center; }
  .stat { padding: 22px 8px; }
  .stat span { font-size: .78rem; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .comment-form { grid-template-columns: 1fr; padding: 24px; }
  .comment-form .btn { justify-self: stretch; }
  .steps::before { display: none; }
  .praise-card { padding: 52px 24px 40px; }
  .range { min-height: 230px; }
  .size-pill { right: 10px; bottom: 10px; }
}

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

/* Respect people who turn animations off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
  .bubbles { display: none; }
}

/* Phones: an app-like layout with the tabs fixed at the bottom of the screen. */
@media (max-width: 700px) {
  .portal-on .page-hero { padding: 104px 0 64px; }
  .portal-on .page-hero h1 { font-size: 1.9rem; margin-bottom: 6px; }
  .portal-on .page-hero .hero-intro { font-size: .95rem; }
  .portal-on .fab { display: none; }
  .portal-on main > .section { padding-top: 26px; padding-bottom: 110px; }

  .portal-tabs {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 24px -14px rgba(3, 28, 46, .35);
  }

  .portal-tabs a {
    flex-direction: column;
    gap: 3px;
    padding: 7px 2px 6px;
    border-radius: 12px;
    font-size: .72rem;
    line-height: 1.1;
  }

  .portal-tabs a[aria-current="page"] { color: var(--teal); background: var(--tint); }

  .portal-tabs svg { width: 24px; height: 24px; }

  .tab-count { position: absolute; top: 2px; left: calc(50% + 6px); }

  .portal-bar { margin-bottom: 14px; }

  .portal-stats { grid-template-columns: 1fr 1fr; gap: 10px; }

  .portal-stat { padding: 14px; border-radius: 16px; }

  .portal-stat:first-child { grid-column: 1 / -1; }

  .portal-stat strong { font-size: 1.35rem; }

  .portal-stat small { font-size: .78rem; }

  .contact-mill { padding: 16px; gap: 12px; }

  .contact-mill .call-buttons,
  .contact-mill .message-jump { width: 100%; }

  .call-buttons .btn { flex: 1 1 140px; justify-content: center; }

  .message-jump,
  .order-jump { display: flex; justify-content: center; width: 100%; }

  .portal-heading { margin-bottom: 14px; font-size: 1.45rem; }

  /* Order form: big, easy buttons for the thumb */
  .order-line { padding: 14px; }
  .qty-button { width: 44px; height: 44px; font-size: 1.4rem; }
  .qty input { width: 64px; padding: 11px 4px; font-size: 1.05rem; }
  .order-note-label { padding: 16px 14px 0; }
  .order-summary {
    bottom: calc(66px + env(safe-area-inset-bottom));
    flex-wrap: nowrap;
    gap: 12px;
    padding: 10px 14px;
  }
  .order-summary div { gap: 0; }
  .order-summary span { font-size: .8rem; }
  .order-summary strong { font-size: 1.35rem; }
  .order-summary small { display: none; }
  .order-summary .btn { flex: none; padding: 12px 20px; }

  /* Messages fill the screen above the tabs */
  .chat-thread { max-height: none; height: calc(100svh - 330px); min-height: 240px; padding: 14px; }
  .chat-bubble { max-width: 86%; }
  .chat-form { padding: 10px; }
  .chat-form .btn { padding-inline: 18px; }

  .unread-notice { padding: 14px; }
  .unread-notice .btn { width: 100%; justify-content: center; }
}

/* Phones: New order, My orders and Messages each fill the screen above the tabs, like an app. */
@media (max-width: 700px) {
  .app-open { overflow: hidden; }

  .app-open .portal-page:not([hidden]) {
    position: fixed;
    top: 0;
    right: 0;
    bottom: calc(66px + env(safe-area-inset-bottom)); /* the height of the tab bar */
    left: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
    animation: none;
  }

  .app-open .portal-tabs { z-index: 70; }

  .app-open .page-top {
    position: sticky;
    top: 0;
    z-index: 6;
    flex: none;
    margin: 0;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    background: linear-gradient(135deg, var(--deep), var(--teal));
    color: #fff;
  }

  .app-open .page-top .portal-heading { font-size: 1.15rem; color: #fff; }

  .app-open .page-top small { color: rgba(255, 255, 255, .8); font-size: .78rem; }

  .app-open .chat-call { border-color: rgba(255, 255, 255, .7); color: #fff; padding: 8px 14px; }

  /* New order: the products scroll, the total and Place order stay at the bottom */
  .app-open .portal-page[data-page="order"] > .empty,
  .app-open .portal-page[data-page="order"] > .form-message { margin: 12px 14px 0; }

  .app-open .order-form { flex: 1 0 auto; border: 0; border-radius: 0; }

  .app-open .order-summary { bottom: 0; }

  /* My orders */
  .app-open .portal-page[data-page="orders"] > .form-message { margin: 12px 14px 0; }

  .app-open .order-history { padding: 12px; gap: 12px; }

  /* Messages: only the conversation scrolls */
  .app-open .portal-page[data-page="messages"] { overflow: hidden; }

  .app-open .chat {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .app-open .chat-thread { flex: 1; height: auto; min-height: 0; max-height: none; }

  .app-open .chat-form { flex: none; background: var(--surface); }
}

/* ---- Employee area: an employee's own attendance and salary ---- */
.staff-who { display: flex; align-items: center; gap: 14px; }
.staff-who strong { display: block; font-size: 1.15rem; }
.staff-who small { color: var(--muted); }
.staff-avatar { width: 56px; height: 56px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); font-weight: 800; }
.staff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-section { margin-top: 40px; }
.staff-section .portal-heading { margin: 0 0 16px; }
.staff-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.staff-section-head .portal-heading { margin: 0; }
.staff-month { display: grid; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.staff-month select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; color: var(--ink); }
.staff-month-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.staff-month-facts > div { flex: 1 1 120px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.staff-month-facts span { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); }
.staff-month-facts strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.staff-month-facts .late strong { color: #b3261e; }
.staff-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.staff-weekday { text-align: center; font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.staff-day { min-height: 64px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.staff-day b { font-size: 1.05rem; }
.staff-day small { font-size: .68rem; line-height: 1.25; color: var(--muted); }
.staff-day.friday { background: #f6f3ee; }
.staff-day.today { box-shadow: inset 0 0 0 2px var(--gold-dark); }
.staff-day.future { opacity: .4; }
.staff-day.present { background: #12a37c; border-color: #0a8f6a; color: #fff; }
.staff-day.present small { color: #eafff6; font-weight: 700; }
.staff-note { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.staff-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.staff-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.staff-table th, .staff-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.staff-table th:first-child, .staff-table td:first-child { text-align: left; }
.staff-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.staff-table tr:last-child td { border-bottom: 0; }
.staff-table td.late { color: #b3261e; font-weight: 700; }
@media (max-width: 560px) {
  .staff-calendar { gap: 3px; }
  .staff-day { min-height: 48px; border-radius: 8px; }
  .staff-day small { font-size: 0; }
  .staff-day.present small::before { content: "✓"; font-size: .8rem; }
}
.staff-day.absent { border-color: #e6a39f; background: #fdf3f2; }
.staff-day.absent small { color: #b3261e; font-weight: 700; }
.staff-day.holiday { background: #fff3d6; }

/* Employee area: tabs and pages like the dealer area */
.staff-jumps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.staff-page-body { display: grid; gap: 14px; }
.page-top .staff-month { flex: none; }
.staff-month span { font-size: .78rem; }
.staff-months, .staff-payments { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.staff-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.staff-card.owed { border-color: #f1b8b3; }
.staff-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.staff-card-head strong { font-size: 1.1rem; }
.staff-pill { padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.staff-pill.due { background: #fdecea; color: #b3261e; }
.staff-pill.paid { background: #dcf5ec; color: #0a6b4f; }
.staff-card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0; }
.staff-card-facts > div { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; }
.staff-card-facts dt { color: var(--muted); }
.staff-card-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.staff-card-facts .strong dd { color: var(--deep); font-size: 1rem; }
.staff-card-facts .late dd { color: #b3261e; }
.staff-card-line { margin: 2px 0 0; font-size: .9rem; }
.staff-card-line.muted { color: var(--muted); }

@media (max-width: 700px) {
  /* The open page fills the screen above the tab bar; its content gets a little room at the sides. */
  .app-open .staff-page-body { padding: 12px; }
  .app-open .page-top .staff-month { color: rgba(255, 255, 255, .85); }
  .app-open .page-top .staff-month select { padding: 7px 10px; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .15); color: #fff; }
  .app-open .page-top .staff-month option { color: var(--ink); }
  .staff-month-facts > div { flex: 1 1 calc(50% - 10px); padding: 8px 12px; }
  .staff-card-facts { grid-template-columns: 1fr; }
  .staff-jumps .btn { flex: 1 1 140px; justify-content: center; }
  .staff-who .staff-avatar { width: 46px; height: 46px; }
}
/* Employee area: late hours and overtime on the calendar, also on phones */
.staff-day-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 2px; }
.staff-tag { padding: 1px 5px; border-radius: 999px; font-style: normal; font-size: .64rem; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.staff-tag.late { background: #fdecea; color: #b3261e; }
.staff-tag.ot { background: #fff1c7; color: #7a4f00; }
.staff-tag.forgiven { background: #e3f0fb; color: #1f5f95; }
@media (max-width: 560px) {
  .staff-day { min-height: 54px; padding: 4px 2px; }
  .staff-tag { padding: 0 3px; font-size: .56rem; }
}
/* Employee area: the salary working, like a receipt */
.staff-sum { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.staff-sum td { padding: 6px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.staff-sum td:last-child { text-align: right; white-space: nowrap; font-weight: 700; padding-left: 10px; }
.staff-sum td span { display: block; font-weight: 700; }
.staff-sum td small { display: block; color: var(--muted); font-size: .8rem; }
.staff-sum tr.minus td:last-child { color: #b3261e; }
.staff-sum tr.muted td { color: var(--muted); }
.staff-sum tr.note td { padding-top: 0; border-bottom: 0; }
.staff-sum tr.total td { border-bottom: 1px solid var(--ink); font-size: 1.02rem; }
.staff-sum tr.total td:last-child { color: var(--deep); }
.staff-sum tr.total.owed td:last-child { color: #b3261e; }
.staff-sum tr:last-child td { border-bottom: 0; }

/* ---- Full-screen slides: each part of a page fills one screen, and the page snaps from one to the next ---- */
html.screens-on { scroll-snap-type: y proximity; } /* soft: scrolling is free, and only settles on a part when you stop near its top */
.screens-on .screen {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-margin-top: 0; /* the part's own top padding already clears the header */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* The parts' content keeps the page width (a sideways row inside must not widen it). */
.screens-on .screen > * { width: 100%; min-width: 0; box-sizing: border-box; }
.screens-on main > section.section.screen { padding: 96px 0 56px; }
.screens-on .hero.screen { padding-top: 100px; padding-bottom: 80px; }
.screens-on .slide-end { display: flex; flex-direction: column; }
.screens-on .slide-end .cta-band { flex: 1; display: flex; align-items: center; }

/* The parts slide and fade in as they come onto the screen. The content is always visible: the
   animation only plays when a part becomes the current one, so nothing can stay hidden. */
@keyframes screen-in {
  from { opacity: 0; transform: translateY(48px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .screens-on .screen.enter > .wrap,
  .screens-on .screen.enter > .hero-inner,
  .screens-on .screen-end.enter .cta-inner,
  .screens-on .slide-end.enter .cta-inner { animation: screen-in .7s cubic-bezier(.2, .7, .2, 1) both; }
  .screens-on .screen.enter > .wrap:nth-of-type(2) { animation-delay: .08s; }
  .screens-on .screen.enter > .wrap:nth-of-type(3) { animation-delay: .16s; }
}

/* Long lists swipe sideways inside their screen. */
.screens-on .slide-row {
  display: flex !important;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 10px;
  margin-bottom: 0;
}
.screens-on .slide-row::-webkit-scrollbar { display: none; }
.screens-on .slide-row > * { flex: 0 0 min(84%, 360px); scroll-snap-align: start; margin: 0; }
.screens-on .slide-row > [hidden] { display: none; }
.screens-on .gallery-grid.slide-row > * { flex-basis: min(70%, 300px); }
@media (min-width: 900px) {
  .screens-on .slide-row > * { flex-basis: calc((100% - 32px) / 3); }
  .screens-on .gallery-grid.slide-row > * { flex-basis: calc((100% - 48px) / 4); }
}
.row-arrows { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.row-arrow {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--deep); font-size: 1.5rem; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 16px -10px rgba(3, 28, 46, .4);
}
.row-arrow:hover { border-color: var(--teal); color: var(--teal); }

/* Dots on the right: where you are on the page. */
.slide-dots {
  position: fixed; top: 50%; right: 12px; z-index: 45; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 9px; padding: 8px 5px; border-radius: 999px;
  background: rgba(3, 28, 46, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.slide-dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .6); transition: height .3s, background .3s;
}
.slide-dot.on { height: 24px; background: var(--gold); }

/* Phones: everything of a part has to fit on one screen. */
@media (max-width: 700px) {
  .screens-on main > section.section.screen { padding: 74px 0 24px; }
  .screens-on .screen .center-head,
  .screens-on .screen .section-head { margin-bottom: 18px; }
  .screens-on .screen h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .screens-on .screen .section-foot { margin-top: 12px; }
  .screens-on .slide-dots { right: 6px; gap: 7px; }
  .screens-on .slide-dot { width: 7px; height: 7px; }
  .screens-on .slide-dot.on { height: 18px; }
  .screens-on .row-arrows { display: none; } /* swipe on phones */
  /* Home page banner: the text and a smaller logo animation together on one screen. */
  .screens-on .home-hero.screen { padding-top: 84px; padding-bottom: 40px; }
  .screens-on .home-hero .hero-art { max-width: min(230px, 27svh); margin-top: 4px; }
  .screens-on .home-hero h1 { font-size: clamp(1.8rem, 8.5vw, 2.4rem); }
  .screens-on .home-hero .hero-intro { font-size: .95rem; margin-bottom: 16px; }
  .screens-on .home-hero .waves { display: none; }
  .screens-on .stats-bar { margin-bottom: 14px; }
  .screens-on .marquee { display: none; }
  /* Products: search and sort side by side, the range buttons on one sideways line, shorter cards. */
  .screens-on .products .controls { display: flex; gap: 8px; margin-bottom: 10px; }
  .screens-on .products .controls .search { flex: 1; min-width: 0; }
  .screens-on .products .controls select { flex: 0 0 auto; max-width: 42%; }
  .screens-on .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding-bottom: 2px; }
  .screens-on .chips::-webkit-scrollbar { display: none; }
  .screens-on .chips > * { flex: none; }
  .screens-on .slide-row .card-media { height: 130px; aspect-ratio: auto; }
  .screens-on .slide-row .card-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .screens-on .slide-row .card-foot { padding-top: 10px; }
  .screens-on .slide-row .card-body .tags { display: none; }
  .screens-on .screen-end .cta-band, .screens-on .slide-end .cta-band { padding: 40px 0; }
  .screens-on .slide-end .site-footer { padding: 28px 0 18px; }
  .screens-on .comment-form { gap: 10px; }
  /* About: the company text and its facts are two panels side by side that swipe. */
  .screens-on .company { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .screens-on .company::-webkit-scrollbar { display: none; }
  .screens-on .company > * { flex: 0 0 90%; scroll-snap-align: start; margin: 0; }
}
/* Slides on every screen size: cards and pictures sized so a part fits the screen height. */
.screens-on main > section.section.screen { padding-top: 84px; padding-bottom: 28px; }
.screens-on .screen .center-head, .screens-on .screen .section-head { margin-bottom: 20px; }
.screens-on .slide-row .card-media { height: min(170px, 22vh); aspect-ratio: auto; }
.screens-on .slide-row .card-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.screens-on .gallery .thumbs { display: none; } /* the sideways row below shows every photo */
.screens-on .gallery .slideshow { height: min(46vh, 520px); aspect-ratio: auto; }
.screens-on .gallery .gallery-head { margin: 16px 0 10px; }
.screens-on .gallery-grid.slide-row > * { height: min(22vh, 200px); }
.screens-on .gallery-grid.slide-row img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .screens-on main > section.section.screen { padding-top: 74px; padding-bottom: 24px; }
  .screens-on .slide-row .card-media { height: 130px; }
  .screens-on .gallery .slideshow { height: 34svh; }
}
@media (max-height: 760px) {
  .screens-on .home-hero .hero-art { max-width: min(200px, 24svh); }
}
/* Sideways rows only scroll sideways, so an up/down wheel or swipe over them moves the page. */
.screens-on .slide-row, .screens-on .company, .screens-on .chips { overflow-y: hidden; }
/* Products page on phones: the up-and-down product list, two smaller cards side by side. */
@media (max-width: 700px) {
  .screens-on[class] .products .grid:not(.slide-row) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .screens-on .products .grid:not(.slide-row) .card-media { height: 170px; aspect-ratio: auto; }
  .screens-on .products .grid:not(.slide-row) .card-body { padding: 10px; gap: 4px; }
  .screens-on .products .grid:not(.slide-row) .card-body h3 { font-size: .95rem; }
  .screens-on .products .grid:not(.slide-row) .card-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; }
  .screens-on .products .grid:not(.slide-row) .tags { display: none; }
  .screens-on .products .grid:not(.slide-row) .card-foot { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 10px 10px; }
  .screens-on .products .grid:not(.slide-row) .card-foot .btn { justify-content: center; padding: 8px 10px; font-size: .85rem; }
}
@media (max-width: 700px) {
  /* Narrow product cards: the price and the dealer link wrap instead of running off the card. */
  .screens-on .products .grid:not(.slide-row) .card-foot > * { white-space: normal; text-align: center; min-width: 0; }
  .screens-on .products .grid:not(.slide-row) .card-foot .price { font-size: 1.15rem; line-height: 1.2; }
  .screens-on .products .grid:not(.slide-row) .card-foot .price small { display: block; font-size: .72rem; }
  .screens-on .products .grid:not(.slide-row) .card-foot a { padding: 7px 8px; font-size: .78rem; line-height: 1.25; }
}
@media (max-width: 700px) {
  .screens-on .products .controls { flex-direction: row; flex-wrap: nowrap; align-items: stretch; }
  .screens-on .products .controls .search { width: auto; flex: 1 1 60%; }
  .screens-on .products .controls select { width: auto; flex: 0 1 40%; min-width: 0; }
}
/* Dealer area: your commission, worked out like a receipt */
.portal-commission { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.portal-commission .portal-heading { margin: 0 0 12px; font-size: 1.35rem; }
.commission-sum { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.commission-sum td { padding: 7px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.commission-sum td:last-child { text-align: right; white-space: nowrap; font-weight: 700; padding-left: 12px; }
.commission-sum td span { display: block; font-weight: 700; }
.commission-sum td small { display: block; color: var(--muted); font-size: .82rem; }
.commission-sum tr.total td { border-bottom: 1px solid var(--ink); }
.commission-sum tr.total td:last-child { color: var(--teal); }
.commission-sum tr.minus td:last-child { color: #b3261e; }
.commission-sum tr.muted td { color: var(--muted); }
.commission-sum tr:last-child td { border-bottom: 0; }
.commission-rates { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.commission-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.commission-top .portal-heading { margin: 0; }
.commission-toggle { padding: 8px 14px; border: 1.5px solid var(--teal); border-radius: 999px; background: var(--surface); color: var(--teal); font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer; }
.commission-toggle:hover { background: var(--tint); }

/* "My profile" on the employee, dealer and supplier pages */
.my-profile { display: grid; gap: 14px; }
.profile-card-view { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.profile-avatar { width: 84px; height: 84px; font-size: 1.4rem; }
.profile-facts { flex: 1 1 240px; display: grid; gap: 8px; margin: 0; }
.profile-facts > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.profile-facts dt { color: var(--muted); font-size: .88rem; }
.profile-facts dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.profile-facts dd.empty { color: var(--muted); font-weight: 500; }
.profile-shop { display: grid; gap: 6px; }
.profile-shop img { width: 100%; max-width: 420px; border-radius: 14px; }
.profile-shop small { color: var(--muted); }
.my-profile > .btn { justify-self: start; }
.profile-form { max-width: 720px; }
.profile-form .check-row { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.profile-form .check-row input { width: auto; margin: 0; }
.profile-photo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.profile-photo-pick > div { flex: 1 1 180px; display: grid; gap: 2px; }
.profile-photo-pick small { color: var(--muted); font-weight: 500; }

/* ---- Phones: one calm page that scrolls normally (no full-screen parts, see setupSlides in script.js),
   a shorter banner, compact two-column cards and a quick-action bar at the bottom of the screen ---- */
.quick-bar { display: none; }

@media (max-width: 760px) {
  body:has(.quick-bar) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .quick-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 24px -14px rgba(3, 28, 46, .35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .quick-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 50px;
    border-radius: 12px;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
    text-decoration: none;
  }
  .quick-bar a:first-child { color: var(--navy); background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
  .quick-bar a[aria-current="page"] { color: var(--teal); background: var(--tint); }
  .quick-bar svg { width: 22px; height: 22px; fill: currentColor; }
  .quick-bar a:last-child svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
  .fab { display: none; }

  .wrap { padding: 0 16px; }
  .section { padding: 44px 0; }
  .center-head h2, .section-head h2 { font-size: 1.55rem; line-height: 1.2; }
  .center-head .lead { font-size: .95rem; }
  .section-foot { margin-top: 22px; }
  input, select, textarea { font-size: 16px; } /* stops phones zooming in when a box is tapped */

  /* Banners: short, with the words first and no decoration that pushes them down. */
  .hero { min-height: 0; padding: 96px 0 64px; }
  .home-hero { padding-bottom: 84px; }
  .home-hero .hero-inner { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .home-hero h1, .home-hero .hero-intro { margin-inline: auto; }
  .hero-art { display: none; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); line-height: 1.15; }
  .hero-intro { font-size: .95rem; }
  .hero-actions, .home-hero .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; justify-content: center; }
  .hero-actions .btn { justify-content: center; }
  .page-hero { padding: 92px 0 56px; }
  .page-hero h1 { font-size: 1.9rem; }

  .stats-bar { margin: -48px 0 28px; grid-template-columns: repeat(3, 1fr); border-radius: 20px; }
  .stat { padding: 16px 6px; }

  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
  .feature { padding: 16px 14px; }
  .feature h3 { font-size: 1rem; }
  .feature p { font-size: .84rem; }

  /* Product cards: two side by side, only what helps to choose. */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-media { aspect-ratio: 1; font-size: 2.8rem; }
  .card-body { padding: 10px; gap: 4px; }
  .card h3 { font-size: .92rem; line-height: 1.25; }
  .card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8rem; }
  .card .tags, .card .card-cat { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 6px; text-align: center; padding-top: 8px; }
  .card-foot .price { font-size: 1.1rem; }
  .card-foot a { display: none; } /* the bottom bar already has "Find a dealer" */
  .size-pill { right: 6px; bottom: 6px; font-size: .68rem; padding: 3px 7px; }

  /* Dealers: a plain list with the call button in reach. */
  .dealer-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
  .dealer-card { flex-direction: row; align-items: stretch; animation: none; }
  .dealer-card:hover { transform: none; }
  .dealer-media { flex: 0 0 64px; aspect-ratio: auto; font-size: 1.6rem; }
  .dealer-body { padding: 12px 14px; gap: 8px; }
  .dealer-body h3 { font-size: 1.02rem; }
  .dealer-details { font-size: .86rem; gap: 4px 10px; }

  /* People on the Contact and About pages: two small cards side by side. */
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
  .team-card { padding: 18px 10px 16px; border-radius: 18px; }
  .team-card::before { height: 56px; }
  .team-card:hover { transform: none; }
  .team-photo { width: 72px; height: 72px; margin-bottom: 10px; border-width: 3px; font-size: 1.4rem; }
  .team-card h3 { font-size: .95rem; }
  .team-role { margin-bottom: 10px; font-size: .66rem; letter-spacing: .06em; }
  .team-phone { font-size: .8rem; padding: 6px 10px; }

  .cta-band { padding: 48px 0; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }
}

/* ---- Gallery page: no banner, the photos start right under the menu on a dark background,
   a big slideshow, then every photo in a wall that keeps each photo's own shape ---- */
.gallery-page {
  min-height: 100vh;
  padding: 104px 0 72px;
  background: radial-gradient(1200px 500px at 50% -10%, #0b4f6c 0%, transparent 70%), #031c2e;
  color: #fff;
}
.gallery-page .slideshow { aspect-ratio: 16 / 8; border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.gallery-page .thumbs { margin-top: 14px; }
.gallery-page .thumb.active { box-shadow: 0 0 0 3px #031c2e, 0 0 0 6px var(--gold); }
.gallery-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 44px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-size: 1.15rem;
  font-weight: 800;
}
.gallery-label span { color: rgba(255, 255, 255, .55); font-size: .85rem; font-weight: 600; }
.gallery-page .gallery-grid {
  display: block;
  columns: 3 260px;
  column-gap: 14px;
  margin-top: 0;
}
.gallery-page .gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  border-radius: 18px;
}
.gallery-page .gallery-item:first-child { grid-column: auto; grid-row: auto; }
.gallery-page .gallery-item img { height: auto; }
.gallery-page .gallery-item.placeholder { aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .08); animation: none; }
.gallery-page .gallery-item.placeholder::before { color: rgba(255, 255, 255, .5); }
.gallery-page .gallery-caption { padding: 34px 14px 12px; font-size: .92rem; }
.gallery-page .gallery-item:hover img { transform: scale(1.05); }

@media (max-width: 760px) {
  .gallery-page { padding: 84px 0 40px; }
  .gallery-page .wrap { padding: 0 10px; }
  .gallery-page .slideshow { aspect-ratio: 4 / 3; border-radius: 16px; }
  .gallery-page .thumb { width: 72px; height: 52px; border-radius: 10px; }
  .gallery-label { margin: 26px 4px 12px; font-size: 1rem; }
  .gallery-page .gallery-grid { columns: 2; column-gap: 8px; }
  .gallery-page .gallery-item { margin-bottom: 8px; border-radius: 12px; }
  .gallery-page .gallery-caption { padding: 26px 10px 8px; font-size: .78rem; }
}

/* Dealer login → Payments */
.payment-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.payment-sum .portal-stat.due strong { color: #b3261e; }
.payment-sum .portal-stat:first-child { grid-column: auto; } /* the two boxes side by side, also on phones */
.payment-list { display: grid; gap: 10px; }
.payment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.payment-card > div { display: grid; gap: 2px; min-width: 0; }
.payment-card small { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.payment-amount { color: #0a6b4f; font-size: 1.15rem; font-weight: 800; white-space: nowrap; }

/* Employee page: a type B worker's shifts, day orange, night purple; overtime adds brown (70% / 30%) */
.staff-day.present.shift-day { background: #f08a24; color: #fff; }
.staff-day.present.shift-night { background: #7d3cb5; color: #fff; }
.staff-day.present.shift-day.ot { background: linear-gradient(90deg, #f08a24 0 70%, #7b4a1e 70% 100%); }
.staff-day.present.shift-night.ot { background: linear-gradient(90deg, #7d3cb5 0 70%, #7b4a1e 70% 100%); }
.staff-day.present.shift-day small, .staff-day.present.shift-night small { color: #fff; }
.staff-subheading { margin: 22px 0 10px; font-size: 1.15rem; }
.staff-commission-now { margin-bottom: 14px; }
.staff-card.commission-now { border: 2px dashed #d9a400; background: #fffbea; }
.staff-notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #eaf7f1; border: 1px solid #0a7a52; color: #0a5c3e; font-weight: 700; }
