/* Vellam International — site styles (3D / motion edition) */
:root {
  --navy: #102A43;
  --navy-deep: #0B1F33;
  --navy-ink: #07182A;
  --aqua: #087F8C;
  --aqua-ink: #066A75;
  --aqua-light: #7FD3DB;
  --aqua-glow: #2BB3C0;
  --mist: #EAF2F4;
  --forest: #214E3B;
  --forest-deep: #153325;
  --sage: #CFE3D6;
  --ivory: #F7F5EF;
  --stone: #E4DDCD;
  --earth: #7A5C3E;
  --white: #FFFFFF;
  --text: #17252B;
  --muted: #58676B;
  --on-dark: #C9D6E2;
  --line: #DCE3E6;
  --input: #6B7A7E;
  --error: #B42318;
  --focus: #087F8C;

  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 12px;
  --radius-lg: 22px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .6em; font-weight: 800; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(860px + var(--gutter) * 2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.hero-x, .section-dark, .enquiry-band, .site-footer, .cat, .apps-green, .contact-card-dark, .space-commercial { --focus: var(--aqua-light); }
.site-header:not(.scrolled) { --focus: var(--aqua-light); }
main:focus { outline: none; }

.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--white); color: var(--navy); padding: .75rem 1rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .75rem 1.45rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .25s var(--spring), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 44px; padding: .5rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 10px 24px -12px rgba(16, 42, 67, .7); }
.btn-primary:hover { background: #1B3D5E; }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--mist); }
.btn-green, .btn-wa { background: var(--forest); color: var(--white); box-shadow: 0 10px 24px -12px rgba(21, 51, 37, .8); }
.btn-green:hover, .btn-wa:hover { background: var(--forest-deep); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--mist); }
.btn-ivory { background: var(--ivory); color: var(--forest); }
.btn-ivory:hover { background: var(--white); }
.btn-outline-light { color: var(--white); border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .04); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn-outline { color: var(--navy); border-color: var(--line); background: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); }
/* glowing primary for dark heroes */
.btn-glow {
  background: linear-gradient(180deg, #FFFFFF, #E4F3F5); color: var(--navy);
  box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 12px 32px -8px rgba(43, 179, 192, .65);
}
.btn-glow:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 16px 40px -6px rgba(43, 179, 192, .85); }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--aqua);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: rgba(8, 127, 140, .35);
  transition: text-decoration-color .2s, color .2s;
}
.text-link:hover { text-decoration-color: currentColor; }
.section-ivory .text-link { color: var(--aqua-ink); }
.line-green .text-link, .space .text-link { color: var(--forest); text-decoration-color: rgba(33, 78, 59, .35); }

/* ---------- Header (transparent over dark heroes, solid on scroll) ---------- */
.site-header {
  position: sticky;
  top: -12px;
  z-index: 44;
  color: var(--white);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(255, 255, 255, .97); color: var(--text); border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 31, 51, .5); }
main { margin-top: calc(var(--header-h) * -1); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: inherit; line-height: 1; margin-right: auto; padding: .25rem 0; }
.logo-image { display: block; width: 150px; height: auto; max-height: 50px; object-fit: contain; }
.logo-word { font-weight: 800; font-size: 1.55rem; letter-spacing: -.045em; }
.logo-sub { font-weight: 600; font-size: .72rem; letter-spacing: .14em; opacity: .75; margin-top: .2rem; }
.site-header.scrolled .logo { color: var(--navy); }
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: .25rem; list-style: none; }
.nav-desktop a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  text-decoration: none; font-weight: 600; color: inherit; opacity: .88; border-radius: 999px; transition: background-color .2s, opacity .2s;
}
.nav-desktop a:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.site-header.scrolled .nav-desktop a:hover { background: var(--mist); }
.nav-desktop a[aria-current="page"] { opacity: 1; }
.nav-desktop a[aria-current="page"]::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 6px; height: 2px; border-radius: 2px; background: var(--aqua-light);
}
.site-header.scrolled .nav-desktop a[aria-current="page"]::after { background: var(--aqua); }
.header-quote { display: none; }
.site-header:not(.scrolled) .header-quote { background: var(--white); color: var(--navy); box-shadow: 0 8px 24px -10px rgba(43, 179, 192, .7); }
.menu-toggle {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; min-width: 44px; padding: 0 1rem;
  border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 999px; background: rgba(255,255,255,.06); color: inherit; font: inherit; font-weight: 700; cursor: pointer;
}
.site-header.scrolled .menu-toggle { border-color: var(--line); background: var(--white); color: var(--navy); }
@media (min-width: 560px) { .header-quote { display: inline-flex; } }
@media (min-width: 1000px) {
  .nav-desktop {
    display: block;
    margin-right: auto;
    transform: translateY(8px);
  }

  .menu-toggle { display: none; }
  .logo { margin-right: 1.5rem; }
}

/* ---------- Mobile menu (bottom sheet, one-handed) ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 80; }
.mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(7, 24, 42, .6); opacity: 0; transition: opacity .3s var(--ease); }
.mobile-menu-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100dvh - 24px); overflow-y: auto;
  background: var(--white); border-radius: 26px 26px 0 0; padding: 1.25rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .4s var(--spring); color: var(--text);
}
.mobile-menu-sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: -.25rem auto 1rem; }
.mobile-menu.open .mobile-menu-backdrop { opacity: 1; }
.mobile-menu.open .mobile-menu-sheet { transform: none; }
.mobile-menu-sheet ul { list-style: none; }
.mobile-menu-sheet nav a {
  display: flex; align-items: center; min-height: 56px; padding: 0 .5rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em;
  text-decoration: none; color: var(--navy); border-bottom: 1px solid var(--line);
}
.mobile-menu-sheet nav a[aria-current="page"] { color: var(--aqua); }
.mobile-menu-actions { display: grid; gap: .75rem; margin-top: 1.25rem; }
.mobile-menu-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.menu-close { width: 100%; min-height: 52px; border: 1.5px solid var(--line); }
@media (min-width: 1000px) { .mobile-menu { display: none !important; } }

/* ---------- Dark 3D hero ---------- */
.hero-x {
  --mx: 0;
  --my: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-dark);
  padding: 75px 0 35px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(43, 179, 192, .18), transparent 60%),
    linear-gradient(160deg, #0D2740 0%, var(--navy-ink) 70%);
}
.hero-x::before { /* fine engineering grid, fades out at edges */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(rgba(127, 211, 219, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 211, 219, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}
.hero-green {
  background:
    radial-gradient(1000px 600px at 85% 0%, rgba(207, 227, 214, .16), transparent 60%),
    linear-gradient(160deg, #24543F 0%, var(--forest-deep) 75%);
}
.hero-green::before { background-image: linear-gradient(rgba(207, 227, 214, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(207, 227, 214, .06) 1px, transparent 1px); }
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; transition: transform .8s var(--ease); }
.glow-a { width: 520px; height: 520px; left: -160px; top: 10%; background: rgba(43, 179, 192, .28); transform: translate(calc(var(--mx) * 40px), calc(var(--my) * 30px)); }
.glow-b { width: 460px; height: 460px; right: -120px; bottom: -140px; background: rgba(67, 140, 95, .30); transform: translate(calc(var(--mx) * -50px), calc(var(--my) * -30px)); }
.hero-green .glow-a { background: rgba(207, 227, 214, .18); }
.hero-green .glow-b { background: rgba(122, 92, 62, .35); }

.hero-x-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .hero-x-grid {grid-template-columns: 1fr 1.05fr;gap: 3rem;} }

/* Water Tanks hero without the 3D tank */
.hero-water .hero-x-grid {
  grid-template-columns: 1fr;
}

.hero-water .hero-x-text {
  max-width: 760px;
}

.hero-x-solo { position: relative; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem .9rem .4rem .7rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  font-weight: 600;
  font-size: .9rem;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua-light); box-shadow: 0 0 0 0 rgba(127, 211, 219, .6); animation: ping 2.4s var(--ease) infinite; }
.hero-green .pill::before { background: var(--sage); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(127, 211, 219, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(127, 211, 219, 0); } }
.hero-x-h { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: -.045em; perspective: 800px; margin-bottom: 1.25rem; }
.hero-x-h .hl { display: block; transform-origin: 50% 100%; }
.hero-x-h .hl-green {
  background: linear-gradient(90deg, #CFE3D6, #9FD6C0 60%, #7FD3DB); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-x-lead {
  font-size: 1rem;
  max-width: 50ch;
  color: var(--on-dark);
  margin-bottom: 1rem;
}
.hero-compact { padding-bottom: clamp(4.5rem, 8vw, 6rem); }
.hero-compact .hero-x-h { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2.25rem; margin: 1rem 0 0; }
.stats div { display: flex; flex-direction: column-reverse; padding-left: 1rem; border-left: 2px solid rgba(127, 211, 219, .4); }
.stats dt { font-size: .85rem; color: #9FB3C6; font-weight: 600; }
.stats dd { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; color: var(--white); letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 420px) { .stats { gap: .9rem 1.1rem; } .stats div { padding-left: .6rem; } }

/* intro sequence — the one orchestrated page-load moment */
.js .intro-1, .js .intro-2, .js .intro-3, .js .intro-4, .js .intro-5, .js .intro-6 { opacity: 0; animation: rise .9s var(--ease) forwards; }
.js .intro-2, .js .intro-3 { animation-name: rise3d; animation-duration: 1.1s; }
.js .intro-1 { animation-delay: .05s; } .js .intro-2 { animation-delay: .12s; } .js .intro-3 { animation-delay: .26s; }
.js .intro-4 { animation-delay: .42s; } .js .intro-5 { animation-delay: .54s; } .js .intro-6 { animation-delay: .66s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise3d { from { opacity: 0; transform: translateY(40px) rotateX(-55deg); } to { opacity: 1; transform: none; } }

/* ---------- 3D stage ---------- */
.stage3d { position: relative; height: 340px; border-radius: var(--radius-lg); }
.stage3d::before { /* floor glow */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 6%; height: 30%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(43, 179, 192, .35), transparent 70%); filter: blur(10px);
}
.hero-green .stage3d::before { background: radial-gradient(ellipse at center, rgba(207, 227, 214, .3), transparent 70%); }
.stage3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity .6s var(--ease); }
.stage3d.ready canvas { opacity: 1; }
.stage3d.grabbing canvas { cursor: grabbing; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.stage3d.ready .stage-fallback { display: none; }
.stage3d.no-webgl canvas, .stage3d.no-webgl .stage-hint { display: none; }
.stage-fallback > img { width: 92%; border-radius: var(--radius-lg); background: var(--ivory); }
.fallback-tanks { display: flex; align-items: flex-end; justify-content: center; width: 86%; aspect-ratio: 4 / 3;   border-radius: 999px 999px var(--radius-lg) var(--radius-lg); isolation: isolate; padding: 6%; }
.fallback-tanks img { object-fit: contain; }
.fb-1 { width: 40%; margin-right: -6%; } .fb-2 { width: 55%; }
.stage-chip {
  position: absolute; z-index: 2; display: flex; flex-direction: column; gap: .1rem; padding: .7rem 1rem; border-radius: 14px;
  background: rgba(7, 24, 42, .72); border: 1px solid rgba(255, 255, 255, .16); color: var(--white); text-decoration: none;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .3s var(--spring), border-color .2s; animation: bob 6s ease-in-out infinite;
}
.stage-chip:hover { border-color: var(--aqua-light); transform: translateY(-3px) scale(1.03); }
.stage-chip strong { font-size: .98rem; }
.stage-chip span { font-size: .82rem; color: var(--aqua-light); font-weight: 700; }
.chip-water { left: 2%; top: 6%; }
.chip-green { right: 2%; bottom: 10%; animation-delay: -3s; }
.chip-green span { color: var(--sage); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.stage-hint {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0; display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .75); padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .07);
  transition: opacity .5s;
}
.stage3d.interacted .stage-hint { opacity: 0; }
.hint-hand { width: 18px; height: 10px; border: 2px solid currentColor; border-radius: 6px; position: relative; }
.hint-hand::after { content: ""; position: absolute; top: 50%; left: 2px; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: currentColor; animation: slide 1.8s ease-in-out infinite; }
@keyframes slide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.stage-col { display: grid; gap: .75rem; justify-items: center; }
.stage-col .stage3d { width: 100%; }
.swatches { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; justify-content: center; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: transparent; display: grid; place-items: center;
}
.swatch::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 6px rgba(0,0,0,.25), 0 0 0 2px rgba(255,255,255,.25); transition: transform .25s var(--spring), box-shadow .2s; }
.swatch:hover::before { transform: scale(1.12); }
.swatch[aria-pressed="true"]::before { box-shadow: inset 0 -3px 6px rgba(0,0,0,.25), 0 0 0 2px var(--navy-ink), 0 0 0 4px var(--white); }
.hero-green .swatch[aria-pressed="true"]::before { box-shadow: inset 0 -3px 6px rgba(0,0,0,.25), 0 0 0 2px var(--forest-deep), 0 0 0 4px var(--white); }
.swatch-label { font-size: .85rem; color: #9FB3C6; margin-left: .35rem; }
.hero-green .swatch-label { color: #C3D6C9; }

/* drifting leaves (green hero) */
.leaves i {
  position: absolute; z-index: -1; width: 26px; height: 26px; border-radius: 0 100% 0 100%; background: rgba(207, 227, 214, .22);
  animation: drift 18s linear infinite;
}
.leaves i:nth-child(1) { left: 8%; top: -40px; animation-delay: -2s; }
.leaves i:nth-child(2) { left: 46%; top: -40px; width: 18px; height: 18px; animation-delay: -9s; animation-duration: 22s; }
.leaves i:nth-child(3) { left: 70%; top: -40px; animation-delay: -14s; }
.leaves i:nth-child(4) { left: 90%; top: -40px; width: 20px; height: 20px; animation-delay: -5s; animation-duration: 26s; }
@keyframes drift { from { transform: translate(0, 0) rotate(0); } to { transform: translate(-120px, 900px) rotate(540deg); } }

/* ---------- Waves ---------- */
.wave { position: absolute; left: -10%; right: -10%; bottom: -1px; height: clamp(48px, 7vw, 96px); pointer-events: none; }
.wave svg { width: 100%; height: 100%; display: block; }
.wave path { fill: var(--to); }
.wave .wave-a { display: none; animation: sway 9s ease-in-out infinite alternate; }
.wave .wave-b { animation: sway 12s ease-in-out infinite alternate-reverse; }
@keyframes sway { from { transform: translateX(-4%); } to { transform: translateX(4%); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--white); padding: 1.1rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; list-style: none; }
.marquee-row li { display: flex; align-items: center; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; color: var(--navy); padding-right: 2.5rem; white-space: nowrap; }
.marquee-row li::after { content: ""; width: 10px; height: 10px; margin-left: 2.5rem; border-radius: 50%; background: linear-gradient(135deg, var(--aqua-glow), #6DB38A); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(4rem, 9vw, 7rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-flush-top { padding-top: clamp(2rem, 4vw, 3rem); }
.section-ivory { background: var(--ivory); }
.section-mist { background: var(--mist); }
.section-dark { background: var(--navy-deep); color: var(--on-dark); }
.section-dark .section-h { color: var(--white); }
.section-dark .section-intro p { color: var(--on-dark); }
.section-h { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--navy); }
.theme-green .section:not(.section-dark) .section-h { color: var(--forest); }
.section-intro { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-intro p { color: var(--muted); font-size: 1.0625rem; }
.kicker { font-weight: 800; color: var(--earth); margin-bottom: .5rem; }

/* ---------- 3D tilt ---------- */
.tilt { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; position: relative; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), box-shadow .4s var(--ease); will-change: transform; }
.tilt.tilting { transition: transform .08s linear, box-shadow .4s var(--ease); }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--gx) var(--gy), rgba(255, 255, 255, .22), transparent 45%);
}
.tilt.tilting::after { opacity: 1; }

/* category panels */
.cat-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
.cat { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--on-dark); box-shadow: 0 30px 60px -40px rgba(11, 31, 51, .8); }
.cat:hover { box-shadow: 0 40px 70px -35px rgba(11, 31, 51, .9); }
.cat-water { background: linear-gradient(160deg, #143656, var(--navy-ink)); }
.cat-green { background: linear-gradient(160deg, #2A5E47, var(--forest-deep)); color: #E3ECE6; }
.cat h3 { color: var(--white); font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.cat-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; isolation: isolate; }
.cat-media-water { background: radial-gradient(circle at 50% 70%, #FFFFFF, var(--mist) 70%); padding: 1.5rem 1.5rem 0; }
.cat-media-water .ring { position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 18%; border-radius: 50%; border: 1.5px dashed rgba(8, 127, 140, .3); animation: spin 40s linear infinite; z-index: -1; }
@keyframes spin { to { transform: rotate(360deg); } }
.cat-tank { object-fit: contain; height: auto; transition: transform .6s var(--spring); }
.cat-tank.t1 { width: 30%; margin-right: -7%; transform: translateY(4%); }
.cat-tank.t2 { width: 40%; position: relative; z-index: 1; }
.cat-tank.t3 { width: 30%; margin-left: -7%; transform: translateY(4%); }
.cat:hover .cat-tank.t1 { transform: translate(-6%, 0) rotate(-3deg); }
.cat:hover .cat-tank.t2 { transform: translateY(-4%) scale(1.04); }
.cat:hover .cat-tank.t3 { transform: translate(6%, 0) rotate(3deg); }
.cat-media-green { background: var(--ivory); align-items: center; padding: 1rem; }
.cat-planters { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .8s var(--ease); }
.cat:hover .cat-planters { transform: scale(1.05); }
.cat-body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.cat-body p { max-width: 46ch; margin-bottom: 1.5rem; }
.cat-body .btn { margin-top: auto; }

/* ---------- Exploded layer stacks (CSS 3D) ---------- */
.stack { --gap: 7px; --t: 8px; position: relative; display: grid; place-items: center; perspective: 1100px; }
.stack-sm { height: 170px; }
.stack-lg { --gap: 12px; --t: 14px; height: clamp(260px, 44vw, 380px); }
.stack-3d {
  position: relative; width: 46%; aspect-ratio: 1.25; transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-38deg) translateZ(calc(var(--n) * var(--gap) * -.5));
  transition: transform .9s var(--ease);
}
.stack-lg .stack-3d { width: 52%; }
.slab {
  position: absolute; inset: 0; border-radius: 6px; transform-style: preserve-3d;
  background: linear-gradient(135deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%), var(--c);
  transform: translateZ(calc(var(--i) * var(--gap)));
  transition: transform .8s var(--spring); transition-delay: calc(var(--i) * 45ms);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset;
}
.slab::before, .slab::after { content: ""; position: absolute; background: var(--c); }
.slab::before { left: 0; right: 0; bottom: 0; height: var(--t); transform-origin: bottom; transform: rotateX(-90deg); filter: brightness(.68); border-radius: 0 0 4px 4px; }
.slab::after { top: 0; bottom: 0; right: 0; width: var(--t); transform-origin: right; transform: rotateY(90deg); filter: brightness(.82); }
.slab-foam { background: radial-gradient(circle at 30% 30%, #D8C88E 1.6px, transparent 2px) 0 0 / 9px 9px, radial-gradient(circle at 70% 70%, #D8C88E 1.3px, transparent 1.8px) 0 0 / 9px 9px, #EADFB8; }
.stack-tag { position: absolute; left: 0; bottom: .25rem; font-size: .82rem; font-weight: 700; color: var(--navy); }
.type-card:hover .stack, .stack.exploded { --gap: 18px; }
.stack-lg.exploded { --gap: 40px; }
.type-card:hover .stack-3d, .stack.exploded .stack-3d { transform: rotateX(56deg) rotateZ(-30deg) translateZ(calc(var(--n) * var(--gap) * -.5)); }

/* explorer */
.explorer { border-radius: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1); padding: clamp(1rem, 3vw, 2rem); }
.ex-tabs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; padding: .3rem; border-radius: 999px; background: rgba(0, 0, 0, .25); margin-bottom: 1.5rem; }
.ex-tab {
  position: relative; z-index: 1; min-height: 46px; border: 0; border-radius: 999px; background: transparent; color: var(--on-dark);
  font: inherit; font-weight: 700; font-size: clamp(.85rem, 2.6vw, 1rem); cursor: pointer; transition: color .3s;
}
.ex-tab[aria-selected="true"] { color: var(--navy); }
.ex-tab:hover:not([aria-selected="true"]) { color: var(--white); }
.ex-indicator { position: absolute; z-index: 0; top: .3rem; bottom: .3rem; left: .3rem; width: calc(25% - .4rem); border-radius: 999px; background: var(--white); box-shadow: 0 8px 24px -8px rgba(43, 179, 192, .7); transition: transform .5s var(--spring), width .5s var(--spring); }
.no-js .ex-indicator { display: none; }
.ex-panel { display: grid; gap: 1.5rem; align-items: center; animation: panelIn .6s var(--ease); }
@media (min-width: 900px) { .ex-panel { grid-template-columns: 1.15fr 1fr; gap: 2.5rem; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ex-visual { position: relative; border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 45%, rgba(127, 211, 219, .18), transparent 65%); }
.ex-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: center; padding: 0 .5rem 1rem; font-size: .88rem; color: var(--on-dark); }
.ex-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.chip-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.ex-copy h3 { color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: .4rem; }
.ex-copy .type-summary { color: var(--aqua-light); }
.ex-copy p { color: var(--on-dark); }
.ex-cap { font-size: .92rem; color: #9FB3C6 !important; }
.ex-note { font-size: .82rem; color: #8FA4B8; margin: 1rem 0 0; text-align: center; }

/* tank construction cards */
.type-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .type-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .type-grid { grid-template-columns: repeat(4, 1fr); } }
.type-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.type-card:hover { box-shadow: 0 28px 50px -30px rgba(16, 42, 67, .55); }
.type-visual { background: radial-gradient(circle at 50% 40%, #FFFFFF, var(--mist) 75%); padding: .75rem 1rem .25rem; }
.type-body { padding: 1.1rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.type-body h3 { margin-bottom: .35rem; color: var(--navy); }
.type-summary { font-weight: 700; color: var(--aqua); margin-bottom: .5rem; }
.type-body p:not(.type-summary) { color: var(--muted); font-size: .98rem; }
.type-body .text-link { margin-top: auto; }

/* collection card */
.collection-card { display: grid; background: var(--ivory); border-radius: 28px; overflow: hidden; border: 1px solid var(--stone); box-shadow: 0 40px 80px -60px rgba(21, 51, 37, .7); }
@media (min-width: 900px) { .collection-card { grid-template-columns: 1.1fr 1fr; } }
.collection-media {isolation: isolate;background: var(--ivory);min-height: 240px;overflow: hidden;display: flex; align-items: center;}
.planter-collage { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; height: 100%; }
.planter-collage img { width: 100%; height: auto; object-fit: contain; display: block; }
.planter-collage img { width: 100%; height: auto; object-fit: contain; display: block; transition: transform 1.2s var(--ease); }
.collection-body { padding: clamp(1.5rem, 3.5vw, 3rem); align-self: center; }
.collection-body h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--forest); }
.collection-body p { color: var(--muted); max-width: 48ch; }
.ticks { list-style: none; display: grid; gap: .55rem; margin: 0 0 1.75rem; }
.ticks li { position: relative; padding-left: 2rem; font-weight: 700; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--forest); }
.ticks li::after { content: ""; position: absolute; left: .4rem; top: .52em; width: .5rem; height: .28rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* about preview */
.about-preview { display: grid; gap: 1rem 3rem; }
@media (min-width: 900px) { .about-preview { grid-template-columns: 1fr 2fr; align-items: start; } }
.statement { font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.38; font-weight: 700; letter-spacing: -.02em; color: var(--text); max-width: 34ch; }

/* applications */
.apps { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .apps { grid-template-columns: 1fr 1.6fr; } }
.apps-col { border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.apps-water { background: linear-gradient(160deg, #FFFFFF, var(--mist)); border: 1px solid var(--line); }
.apps-water h3 { color: var(--navy); }
.apps-green { background: linear-gradient(160deg, #2A5E47, var(--forest-deep)); color: #E3ECE6; }
.apps-green h3 { color: var(--white); }
.app-list { list-style: none; display: grid; gap: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .apps-green .app-list { grid-template-columns: 1fr 1fr; } }
.app-list li { display: flex; gap: 1rem; align-items: flex-start; }
.app-list .icon { width: 3rem; height: 3rem; padding: .65rem; border-radius: 14px; }
.apps-water .icon { background: var(--white); color: var(--aqua); box-shadow: 0 8px 20px -12px rgba(8, 127, 140, .6); }
.apps-green .icon { background: rgba(255, 255, 255, .1); color: var(--sage); }
.app-list strong { display: block; font-size: 1.05rem; }
.apps-water strong { color: var(--navy); }
.apps-green strong { color: var(--white); }
.apps-water li span { color: var(--muted); }
/* icon line-drawing on reveal */
.js .draw .icon path, .js .draw .icon circle { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.js .draw.in .icon path, .js .draw.in .icon circle { stroke-dashoffset: 0; }

/* enquiry band */
.enquiry-band { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(160deg, #143656, var(--navy-ink)); color: var(--on-dark); padding-block: clamp(4rem, 8vw, 6rem); }
.theme-green .enquiry-band { background: linear-gradient(160deg, #2A5E47, var(--forest-deep)); color: #E3ECE6; }
.band-waves { position: absolute; left: -10%; right: -10%; bottom: 0; height: 70%; z-index: -1; pointer-events: none; }
.band-waves svg { width: 100%; height: 100%; }
.bw-1 { fill: rgba(127, 211, 219, .07); animation: sway 10s ease-in-out infinite alternate; }
.bw-2 { fill: rgba(127, 211, 219, .09); animation: sway 14s ease-in-out infinite alternate-reverse; }
.theme-green .bw-1, .theme-green .bw-2 { fill: rgba(207, 227, 214, .07); }
.enquiry-inner { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 1000px) { .enquiry-inner { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }
.enquiry-band h2 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 22ch; }
.enquiry-band p { max-width: 52ch; margin: 0; }
.enquiry-actions { display: grid; gap: .75rem; }
@media (min-width: 560px) { .enquiry-actions { grid-template-columns: 1fr 1fr; } .enquiry-actions .btn-light { grid-column: 1 / -1; } }
.theme-green .enquiry-band .btn-light { color: var(--forest); }

/* ---------- Water Tanks page ---------- */
.capacity { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .75rem; margin: 0 0 1.75rem; }
.capacity-num {
  font-size: clamp(3rem, 8.5vw, 5.5rem); font-weight: 800; letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFFFFF 10%, var(--aqua-light) 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.capacity-unit { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; color: var(--white); }

.guide { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .guide { grid-template-columns: 1fr 2fr; gap: 4rem; } .guide-intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.guide-intro p { color: var(--muted); }
.steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; position: relative; }
.steps > li { counter-increment: step; position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.25rem 4.75rem; border: 1px solid var(--line); box-shadow: 0 20px 40px -34px rgba(16, 42, 67, .6); }
.steps > li::before {
  content: counter(step); position: absolute; left: 1.25rem; top: 1.25rem; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: var(--white);
  background: linear-gradient(160deg, var(--aqua), var(--navy)); box-shadow: 0 8px 18px -8px rgba(8, 127, 140, .8);
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.25rem + 1.2rem - 1px); top: 3.9rem; bottom: -1.1rem; width: 2px; background: linear-gradient(var(--aqua), transparent); transform-origin: top; transform: scaleY(0); transition: transform 1s var(--ease) .3s; z-index: 1; }
.steps > li.in::after { transform: none; }
.no-js .steps > li::after { transform: none; }
.steps h3 { color: var(--navy); margin-bottom: .4rem; }
.steps p { color: var(--muted); margin: 0; }
.steps a { color: var(--aqua); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: .97rem; margin-top: .5rem; }
.compare th, .compare td { text-align: left; padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .85rem; color: var(--muted); font-weight: 700; }
.compare tbody th { color: var(--navy); white-space: nowrap; padding-right: 1.25rem; }
.compare td { color: var(--muted); }

.gallery { list-style: none; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery li { background: radial-gradient(circle at 50% 40%, #FFFFFF, var(--mist) 75%); border-radius: var(--radius-lg); aspect-ratio: 1; isolation: isolate; display: grid; place-items: center; padding: 8%; }
.gallery li:hover { box-shadow: 0 30px 50px -30px rgba(16, 42, 67, .5); }
.gallery img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* ---------- Vellam Green page ---------- */
.hero-green .hero-x-h .hl-green { background: linear-gradient(90deg, #E9E1C9, #CFE3D6); -webkit-background-clip: text; background-clip: text; }
.coll { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .coll { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; } }
.coll-text p { color: var(--muted); max-width: 52ch; }
.coll-photo { margin-top: 1.5rem; border-radius: var(--radius-lg); background: var(--ivory); isolation: isolate; overflow: hidden; border: 1px solid var(--stone); }
.coll-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
}
/* Desktop view */
@media (min-width: 900px) {
  .coll-photo img {
    object-fit: contain;
    padding: 12px;
  }
}
@media (min-width: 560px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius-lg); padding: 1.5rem; transition-delay: var(--d); }
.feature-n { display: block; width: 2.6rem; height: 2.6rem; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, #3E7C5D, var(--forest)); margin-bottom: 1rem; box-shadow: 0 10px 20px -10px rgba(33, 78, 59, .7); }
.feature h3 { color: var(--forest); font-size: 1.15rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); margin: 0; }
.spaces { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 640px) { .spaces { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .spaces { grid-template-columns: repeat(4, 1fr); } }
.space { background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius-lg); padding: 1.6rem; display: flex; flex-direction: column; }
.space:hover { box-shadow: 0 28px 50px -30px rgba(21, 51, 37, .5); }
.space-icon { display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 16px; background: var(--ivory); color: var(--forest); margin-bottom: 1rem; }
.space-icon .icon { width: 1.7rem; height: 1.7rem; }
.space h3 { color: var(--forest); margin-bottom: .35rem; }
.space p { color: var(--muted); }
.space .text-link { margin-top: auto; }
.space-commercial { background: linear-gradient(160deg, #2A5E47, var(--forest-deep)); border-color: var(--forest); color: #E3ECE6; }
.space-commercial h3 { color: var(--white); }
.space-commercial p { color: #D5E2D9; }
.space-commercial .space-icon { background: rgba(255, 255, 255, .12); color: var(--sage); }
.space.space-commercial .text-link { color: var(--white); text-decoration-color: rgba(255, 255, 255, .5); }

/* ---------- About ---------- */
.aim { display: grid; gap: 1rem 3rem; }
@media (min-width: 900px) { .aim { grid-template-columns: 1fr 2fr; } }
.aim-quote { margin: 0; border-left: 4px solid; border-image: linear-gradient(var(--aqua), var(--forest)) 1; padding-left: clamp(1rem, 3vw, 2rem); }
.aim-quote p { font-size: clamp(1.25rem, 2.3vw, 1.7rem); font-weight: 700; line-height: 1.45; letter-spacing: -.015em; color: var(--text); margin: 0; max-width: 40ch; }
.lines { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .lines { grid-template-columns: 1fr 1fr; } }
.line { display: grid; gap: 1.25rem; background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--stone); }
@media (min-width: 560px) { .line { grid-template-columns: 160px 1fr; align-items: start; } }
.line-media { isolation: isolate; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; }
.line-water .line-media { background: var(--mist); padding: 10%; }
.line-green .line-media { background: var(--ivory); }
.line-media img { width: 100%; height: 100%; object-fit: contain; }
.line h3 { color: var(--navy); }
.line-green h3 { color: var(--forest); }
.line p { color: var(--muted); }
.values { list-style: none; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; border-top: 4px solid var(--navy); }
.values li:nth-child(2) { border-top-color: var(--aqua); }
.values li:nth-child(3) { border-top-color: var(--forest); }
.values h3 { color: var(--navy); }
.values p { color: var(--muted); margin: 0; }
.md-card { display: flex; gap: 1rem; align-items: center; margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--mist); border-radius: var(--radius-lg); max-width: 520px; }
.md-card .icon { width: 2.75rem; height: 2.75rem; padding: .6rem; background: var(--white); border-radius: 50%; color: var(--navy); }
.md-card p { margin: 0; color: var(--muted); }
.md-card strong { display: block; color: var(--navy); font-size: 1.1rem; }
.md-card a { color: var(--aqua-ink); font-weight: 700; }

/* ---------- Contact ---------- */
.contact-section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.contact-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.6fr 1fr; gap: 2.5rem; } .contact-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.form-card { background: var(--white); border-radius: 26px; padding: clamp(1.25rem, 3.5vw, 2.5rem); box-shadow: 0 40px 80px -50px rgba(11, 31, 51, .55); border: 1px solid var(--line); margin-top: -3.5rem; position: relative; z-index: 2; }
.field { margin: 0 0 1.35rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; color: var(--text); margin-bottom: .35rem; padding: 0; }
.optional { font-weight: 500; color: var(--muted); }
.hint { font-size: .92rem; color: var(--muted); margin: -.15rem 0 .5rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; padding: .75rem 1rem; font: inherit; font-size: 1rem; color: var(--text); background: var(--white);
  border: 1.5px solid var(--input); border-radius: var(--radius); transition: border-color .15s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(8, 127, 140, .25); }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-weight: 600; font-size: .93rem; margin: .4rem 0 0; display: flex; gap: .35rem; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; border-radius: 50%; background: var(--error); color: #fff; font-size: .75rem; font-weight: 800; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.choice { position: relative; display: block; margin: 0 !important; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: .5rem;
  border: 1.5px solid var(--input); border-radius: var(--radius); font-weight: 700; font-size: .95rem; line-height: 1.2; color: var(--text);
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--spring);
}
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(16, 42, 67, .8); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-row[data-invalid] .choice span { border-color: var(--error); }
.field-pair { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.product-note { background: var(--mist); color: var(--navy); border-radius: var(--radius); padding: .7rem .9rem; font-weight: 600; margin: -.5rem 0 1.35rem; font-size: .95rem; }
.form-actions { margin-top: .5rem; }
.form-note { font-size: .92rem; color: var(--muted); margin: .75rem 0 0; }
.form-note a { color: var(--aqua); font-weight: 700; }
.form-errors { border: 2px solid var(--error); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: #FEF3F2; }
.form-errors h2 { font-size: 1.05rem; color: var(--error); margin-bottom: .4rem; letter-spacing: 0; }
.form-errors ul { padding-left: 1.2rem; }
.form-errors a { color: var(--error); font-weight: 600; }
.review h2, .status h2 { font-size: 1.5rem; color: var(--navy); }
.review > p { color: var(--muted); }
.review-text { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: .98rem; line-height: 1.55; background: var(--mist); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 0 0 1.25rem; }
.status.is-success h2 { color: var(--forest); }
.status.is-error h2 { color: var(--error); }
.contact-aside { display: grid; gap: 1rem; }
.contact-card { background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius-lg); padding: 1.5rem; }
.contact-card h2 { font-size: 1.2rem; color: var(--navy); letter-spacing: -.01em; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.contact-card-dark { background: linear-gradient(160deg, #143656, var(--navy-ink)); border: 0; color: var(--on-dark); }
.contact-card-dark h2 { color: var(--white); }
.contact-action {
  display: flex; align-items: center; gap: .9rem; min-height: 64px; padding: .75rem 1rem; margin-bottom: .6rem; border-radius: var(--radius); text-decoration: none;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-dark); transition: border-color .2s, transform .25s var(--spring), background-color .2s;
}
.contact-action:hover { border-color: var(--aqua-light); background: rgba(255, 255, 255, .12); transform: translateX(4px); }
.contact-action .icon { width: 1.5rem; height: 1.5rem; color: var(--aqua-light); }
.contact-action strong { display: block; color: var(--white); }
.contact-person { margin: 1rem 0 0; font-weight: 700; color: var(--white); }
.contact-person span { font-weight: 500; color: var(--on-dark); }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; white-space: nowrap; text-align: right; }
.hours-lg div { border-bottom: 1px solid var(--stone); padding: .6rem 0; }
.hours-lg div[data-today] dt::after { content: " (today)"; font-weight: 500; color: var(--muted); }
.today { margin: .9rem 0 0; font-weight: 700; color: var(--forest); }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.social a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; color: var(--navy); }

/* 404 */
.notfound { min-height: 80vh; display: grid; align-content: center; }
.nf-code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin: 0 0 .5rem; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(127,211,219,.2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: var(--on-dark); padding: 3.5rem 0 1.5rem; font-size: .97rem; }
.site-footer .logo { color: var(--white); margin-bottom: 1rem; }
.site-footer .logo-sub { color: #9FB3C6; opacity: 1; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand p { max-width: 36ch; }
.footer-h { font-size: 1rem; color: var(--white); letter-spacing: 0; margin-bottom: .75rem; }
.site-footer ul { list-style: none; }
.site-footer li { min-height: 36px; display: flex; align-items: center; }
.site-footer a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .social a { color: var(--white); }
.site-footer .hours div { flex-direction: column; gap: 0; padding: .25rem 0; }
.site-footer .hours dd { color: var(--white); text-align: left; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .9rem; }
.footer-base p { margin: 0; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(160deg, #2E6B51, var(--forest-deep)); color: var(--white); box-shadow: 0 14px 30px -10px rgba(11, 31, 51, .6);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .3s var(--ease), transform .4s var(--spring), visibility 0s linear .3s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(46, 107, 81, .6); animation: ripple 2.6s var(--ease) infinite; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.no-js .wa-float { display: none; }

/* ---------- Reveal (3D rise) ---------- */
.js .reveal { opacity: 0; transform: perspective(1000px) translateY(28px) rotateX(8deg); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.tilt.in { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .reveal, .js [class*="intro-"] { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-row[aria-hidden="true"] { display: none; }
  .leaves, .wa-float::before, .cat-media-water .ring { display: none; }
  .tilt { transform: none !important; }
  .js .draw .icon path, .js .draw .icon circle { stroke-dashoffset: 0; }
}
/* ---------- Small-screen refinements ---------- */

@media (max-width: 959px) {
  .stage3d[data-scene="home"] {
    height: clamp(380px, 100vw, 480px);
  }

  .chip-water {
    left: 0;
    top: 0;
  }

  .chip-green {
    right: 0;
    top: 0;
    bottom: auto;
  }

  .stage-chip {
    padding: .55rem .8rem;
    animation-delay: 0s;
  }
}

@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stats div:last-child {
    grid-column: 1 / -1;
  }

  .ex-tab {
    font-size: .8rem;
    padding: 0 .2rem;
    white-space: nowrap;
  }
}

.stack-lg.exploded {
  --gap: 52px;
}

/* ---------- Homepage video hero ---------- */

.hero-x:has(.hero-video) {
  position: relative;
  height: 560px;
  min-height: 560px;
  padding: 20px 0;
  overflow: hidden;
}

.hero-x:has(.hero-video) .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-x:has(.hero-video) .hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 20, 34, .55);
  z-index: 1;
  pointer-events: none;
}

.hero-x:has(.hero-video) .glow {
  z-index: 2;
}

.hero-x:has(.hero-video) > .hero-x-grid {
  position: absolute;
  inset: 0;
  z-index: 5;

  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;

  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 70px var(--gutter) 20px;
}

.hero-x:has(.hero-video) .hero-x-text {
  position: relative;
  z-index: 6;
  visibility: visible;
  opacity: 1;
}

.hero-x:has(.hero-video) .hero-x-text .pill,
.hero-x:has(.hero-video) .hero-x-text h1,
.hero-x:has(.hero-video) .hero-x-text .hero-x-lead,
.hero-x:has(.hero-video) .hero-x-text .btn-row,
.hero-x:has(.hero-video) .hero-x-text .stats {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.hero-x:has(.hero-video) .hero-x-text .hl {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

.hero-x:has(.hero-video) .stage3d {
  position: relative;
  z-index: 6;
  height: 300px;
}

@media (max-width: 959px) {
  .hero-x:has(.hero-video) {
    height: auto;
    min-height: 0;
    padding: 30px 0 20px;
  }

  .hero-x:has(.hero-video) > .hero-x-grid {
    position: relative;
    inset: auto;

    grid-template-columns: 1fr;
    gap: 1rem;

    height: auto;
    padding-inline: var(--gutter);
  }

  .hero-x:has(.hero-video) .stage3d {
    height: 280px;
  }
}

/* Home hero showcase */
  .vellam-showcase {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    padding: 36px;
    border: 1px solid #e1ebe8;
    border-radius: 32px;
    background: linear-gradient(145deg, #f6faf8, #e7f2ee);
    color: #153d35;
  }

  .vellam-showcase,
  .vellam-showcase * {
    box-sizing: border-box;
  }

  .vellam-showcase .showcase-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #497365;
  }

  .vellam-showcase h2 {
    margin: 14px 0 12px;
    font-size: clamp(30px, 3.5vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.5px;
  }

  .vellam-showcase .showcase-heading p {
    max-width: 320px;
    margin: 0;
    color: #60766e;
    font-size: 14px;
    line-height: 1.6;
  }

  .vellam-showcase .showcase-products {
    position: relative;
    height: 320px;
    margin-top: 12px;
  }

  .vellam-showcase .showcase-ring {
    position: absolute;
    width: 270px;
    height: 270px;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid #c6ddd3;
    border-radius: 50%;
    box-shadow:
      0 0 0 28px rgb(255 255 255 / 25%),
      0 0 0 56px rgb(255 255 255 / 15%);
  }

  .vellam-showcase .showcase-tank {
    position: absolute;
    object-fit: contain;
    height: auto;
    filter: drop-shadow(0 22px 14px rgb(23 62 49 / 16%));
    transition: transform 350ms ease;
  }

  .vellam-showcase .tank-white {
    width: 48%;
    max-width: 250px;
    left: 5%;
    bottom: 40px;
    transform: rotate(-8deg);
    z-index: 1;
  }

  .vellam-showcase .tank-yellow {
    width: 62%;
    max-width: 320px;
    right: 1%;
    bottom: 30px;
    transform: rotate(5deg);
    z-index: 2;
  }

  .vellam-showcase:hover .tank-white {
    transform: translateY(-8px) rotate(-5deg);
  }

  .vellam-showcase:hover .tank-yellow {
    transform: translateY(-10px) rotate(2deg);
  }

  .vellam-showcase .showcase-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #60766e;
  }

  .vellam-showcase .showcase-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .vellam-showcase .showcase-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgb(255 255 255 / 90%);
    border-radius: 18px;
    background: rgb(255 255 255 / 75%);
    color: #153d35;
    text-decoration: none;
    transition: background 200ms ease, transform 200ms ease;
  }

  .vellam-showcase .showcase-links a:hover {
    background: #fff;
    transform: translateY(-3px);
  }

  .vellam-showcase .showcase-links a:focus-visible {
    outline: 3px solid #367b62;
    outline-offset: 4px;
  }

  .vellam-showcase .showcase-links strong {
    display: block;
    font-size: 14px;
  }

  .vellam-showcase .showcase-links div span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #60766e;
  }

  @media (max-width: 600px) {
    .vellam-showcase {
      padding: 24px;
      border-radius: 24px;
    }

    .vellam-showcase .showcase-products {
      height: 270px;
    }

    .vellam-showcase .showcase-ring {
      width: 210px;
      height: 210px;
    }

    .vellam-showcase .showcase-links {
      grid-template-columns: 1fr;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .vellam-showcase .showcase-tank,
    .vellam-showcase .showcase-links a {
      transition: none;
    }

    .vellam-showcase:hover .tank-white {
      transform: rotate(-8deg);
    }

    .vellam-showcase:hover .tank-yellow {
      transform: rotate(5deg);
    }

    .vellam-showcase .showcase-links a:hover {
      transform: none;
    }
  }
.planters-feature-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  align-self: center;
  margin-block: auto;
}

/* Vellam Green hero without the pot */
.hero-green .hero-x-grid {
  grid-template-columns: 1fr;
}

.hero-green .hero-x-text {
  max-width: 760px;
}
