/* =========================================================
   Eco Zen Solutions — site styles (v4)
   Colours, type and spacing are set once, in :root.
   ========================================================= */

@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  /* Deep British green (sampled from a dark green Range Rover) */
  --g-950: #050E0C;
  --g-900: #091A17;
  --g-800: #0E2420;   /* main background */
  --g-700: #15302B;   /* raised panels */
  --g-600: #1F3F39;
  --teal: #15A59D;    /* Eco Zen bin teal */
  --brass: #C9A26A;   /* accent */
  --ivory: #EEF0EC;   /* headings on green */
  --body: rgba(238, 240, 236, 0.78);  /* body text on green */
  --mute: rgba(238, 240, 236, 0.58);  /* small print on green */
  --stone: #E6E9E5;   /* light sections */
  --ink: #0E2420;     /* headings on light */
  --ink-body: #3E504A;/* body text on light */
  --line: rgba(238, 240, 236, 0.14);
  --line-strong: rgba(238, 240, 236, 0.36);
  --line-dark: rgba(14, 36, 32, 0.16);

  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;

  /* Type scale: each step clearly larger than the one below */
  --t-small: 0.875rem;     /* 14px: captions, labels */
  --t-body: 1rem;          /* 16px: paragraphs */
  --t-lead: 1.1875rem;     /* 19px: intro paragraphs */
  --t-h3: clamp(1.25rem, 1.5vw, 1.5rem);   /* 20-24px: subheadings */
  --t-h2: clamp(1.9rem, 3.2vw, 2.875rem);  /* 30-46px: section headings */
  --t-h1: clamp(2.4rem, 4.8vw, 4.5rem);    /* 38-72px: page headings */

  --gutter: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(80px, 9vw, 136px);
  --header-h: 84px;
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--g-800); scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--g-800); color: var(--body);
  font-family: var(--font); font-size: var(--t-body); line-height: 1.75; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
::selection { background: var(--brass); color: var(--g-950); }

/* ---------- Typography ---------- */
h1, .h1 { font-size: var(--t-h1); font-weight: 700; line-height: 1.06; letter-spacing: -0.025em; color: var(--ivory); text-wrap: balance; }
h2, .h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.14; letter-spacing: -0.02em; color: var(--ivory); text-wrap: balance; }
h3, .h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--ivory); }
.lead { font-size: var(--t-lead); line-height: 1.65; color: rgba(238, 240, 236, 0.86); max-width: 40ch; }
.small { font-size: var(--t-small); color: var(--mute); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: var(--t-small); font-weight: 500; color: var(--brass); letter-spacing: 0.02em; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--brass); border-radius: 2px; }
.measure { max-width: 52ch; }

.section--light { background: var(--stone); color: var(--ink-body); }
.section--light h1, .section--light h2, .section--light h3 { color: var(--ink); }
.section--light .lead { color: var(--ink-body); }
.section--light .kicker { color: #8A6A35; }
.section--light .kicker::before { background: #8A6A35; }
.section--light .small { color: rgba(14, 36, 32, 0.6); }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 200; background: var(--ivory); color: var(--g-900); padding: 10px 14px; }
.skip:focus { top: 12px; }

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: 0.25s ease both vt-out; }
  ::view-transition-new(root) { animation: 0.45s var(--ease) both vt-in; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; } }
}

/* ---------- Layout ---------- */
.wrap { max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--deep { background: var(--g-900); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 4vw, 64px); }
.head > div { max-width: 760px; }
.head h2 { margin-top: 14px; }
.head .lead { margin-top: 16px; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: clamp(36px, 4vw, 56px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; border-bottom: 1px solid transparent; transition: background-color 0.35s ease, border-color 0.35s ease; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 14, 12, 0.7), rgba(5, 14, 12, 0)); transition: opacity 0.35s ease; }
.site-header.is-scrolled, .site-header.is-open { background: rgba(9, 26, 23, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-header.is-scrolled::before, .site-header.is-open::before { opacity: 0; }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 54px; width: auto; }
.site-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }
.site-nav a { font-size: 0.9375rem; font-weight: 500; color: var(--ivory); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; transition: border-color 0.2s ease, color 0.2s ease; }
.site-nav a:hover { color: #fff; border-bottom-color: rgba(238, 240, 236, 0.5); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.site-nav .login a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 18px; }
.site-nav .login a:hover { background: var(--ivory); color: var(--g-900); border-color: var(--ivory); }
.site-nav .login svg { width: 14px; height: 14px; }
.menu-toggle { display: none; font-size: 0.9375rem; font-weight: 500; color: var(--ivory); background: none; border: 1px solid var(--line-strong); padding: 9px 18px; border-radius: 999px; cursor: pointer; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; cursor: pointer;
  background: var(--ivory); color: var(--g-900); border: 0; border-radius: 999px; padding: 15px 28px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--brass); color: var(--g-950); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: var(--ivory); color: var(--g-900); }
.section--light .btn { background: var(--g-800); color: var(--ivory); }
.section--light .btn:hover { background: var(--brass); color: var(--g-950); }
.arr { display: inline-block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: width 0.3s var(--ease); }
.arr::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.btn:hover .arr, .link:hover .arr { width: 30px; }
.link { display: inline-flex; align-items: center; gap: 12px; font-size: 0.9375rem; font-weight: 500; color: var(--ivory); text-decoration: none; }
.link:hover { color: var(--brass); }
.section--light .link { color: var(--ink); }
.section--light .link:hover { color: #8A6A35; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Home: one screen ---------- */
.home { min-height: 100svh; display: flex; flex-direction: column;
  background:
    radial-gradient(55% 70% at 74% 52%, rgba(31, 92, 82, 0.55), rgba(14, 36, 32, 0) 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(201, 162, 106, 0.08), transparent 70%),
    var(--g-800); }
.home-stage { flex: 1; display: flex; align-items: center; padding-top: calc(var(--header-h) + 16px); padding-bottom: 16px; }
.home-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 56px); align-items: center; }
.home-copy h1 { margin-top: 18px; }
.home-copy .lead { margin-top: 22px; }
.home-visual { position: relative; }
.bin-stage { position: relative; height: clamp(320px, 56vh, 600px); perspective: 1800px; perspective-origin: 50% 32%; cursor: grab; touch-action: pan-y; outline: none; user-select: none; -webkit-user-select: none; }
.bin-stage.is-dragging { cursor: grabbing; }
.bin-stage:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; border-radius: var(--radius); }
.bin-scene { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.bf { position: absolute; left: 0; top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-style: preserve-3d; }
.bf::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--sh, 0.2)); pointer-events: none; }
.bin-floor { background: repeating-linear-gradient(0deg, rgba(238, 240, 236, 0.07) 0 1px, transparent 1px 60px), repeating-linear-gradient(90deg, rgba(238, 240, 236, 0.07) 0 1px, transparent 1px 60px) !important; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.bin-floor::after, .bin-shadow::after { display: none; }
.bin-shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent) !important; }
.bin-side { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.06)) !important; background-color: var(--teal) !important; }
.bin-num { position: absolute; top: 40px; left: 186px; transform: translateX(-50%); font-weight: 700; font-size: 28px; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.92); line-height: 1; }
.bin-logo { position: absolute; top: 30px; left: 467px; transform: translateX(-50%); height: 78px; width: auto; pointer-events: none; }
.side-b .bin-num { left: 374px; }
.side-b .bin-logo { left: 93px; }
.bin-rear i { position: absolute; background: rgba(0, 0, 0, 0.28); }
.bin-rear .door-l { left: 50%; top: 8px; bottom: 8px; width: 2px; }
.bin-rear .hinge { width: 10px; height: 18px; background: #1d2a28; }
.bin-rear .h1 { left: 6px; top: 24px; } .bin-rear .h2 { left: 6px; bottom: 24px; } .bin-rear .h3 { right: 6px; top: 24px; } .bin-rear .h4 { right: 6px; bottom: 24px; }
.bin-rear .lock { left: calc(50% - 30px); top: 50%; width: 60px; height: 8px; background: #1d2a28; }
.bin-inner-floor { background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0 2px, transparent 2px 40px) !important; }
.bin-ui { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.bin-ui .cap { font-size: var(--t-small); color: var(--mute); display: inline-flex; align-items: center; gap: 10px; }
.bin-ui .cap b { color: var(--ivory); font-weight: 500; }
.bin-ui .cap svg { width: 18px; height: 18px; color: var(--brass); }
.views { display: flex; gap: 6px; flex-wrap: wrap; }
.views button { font-size: 0.8125rem; font-weight: 500; color: var(--ivory); background: rgba(238, 240, 236, 0.06); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.views button:hover { border-color: var(--line-strong); }
.views button[aria-pressed="true"] { background: var(--ivory); color: var(--g-900); border-color: var(--ivory); }

/* Menu ticker */
.ticker { overflow: hidden; border-top: 1px solid var(--line); background: rgba(5, 14, 12, 0.35); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { display: inline-flex; align-items: center; font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; text-decoration: none; color: var(--ivory); padding: 22px 0; white-space: nowrap; transition: color 0.2s ease; }
.ticker-track a:hover { color: var(--brass); }
.ticker-track a .tarr { display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.3em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg) translate(-0.1em, 0.05em); opacity: 0; transition: opacity 0.2s ease; }
.ticker-track a:hover .tarr { opacity: 1; }
.ticker-track a::after { content: ""; display: inline-block; width: 0.22em; height: 0.22em; transform: rotate(45deg); background: var(--brass); margin: 0 0.9em; }
@keyframes ticker { to { transform: translateX(-50%); } }
.home-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; font-size: 0.8125rem; color: var(--mute); }
.home-foot a { color: var(--ivory); text-decoration: none; }
.home-foot a:hover { color: var(--brass); }

@media (prefers-reduced-motion: no-preference) {
  .home-copy > * { animation: fadeup 0.9s var(--ease) both; }
  .home-copy > :nth-child(2) { animation-delay: 0.08s; }
  .home-copy > :nth-child(3) { animation-delay: 0.16s; }
  .home-copy > :nth-child(4) { animation-delay: 0.24s; }
  .home-visual { animation: rise-in 1.4s var(--ease) 0.15s both; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(40px) scale(0.96); } }
}

/* ---------- Photo hero (inner pages) ---------- */
.hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--g-700); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 115%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.04); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(5, 14, 12, 0.6) 0%, rgba(5, 14, 12, 0.15) 30%, rgba(5, 14, 12, 0.45) 60%, rgba(9, 26, 23, 0.97) 100%),
  linear-gradient(90deg, rgba(5, 14, 12, 0.6) 0%, rgba(5, 14, 12, 0) 65%); }
.hero-content { width: 100%; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero-content h1 { margin-top: 18px; max-width: 18ch; }
.hero-content .lead { margin-top: 20px; }

/* Split hero */
.hero-split { position: relative; min-height: 84svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--g-800); }
.hero-split .copy { display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 48px) clamp(24px, 5vw, 80px) clamp(48px, 6vw, 88px) max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter))); }
.hero-split .copy h1 { margin-top: 18px; }
.hero-split .copy .lead { margin-top: 22px; }
.hero-split .visual { position: relative; overflow: hidden; background: var(--g-700); }
.hero-split .visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-split .visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 36, 32, 0.5), rgba(14, 36, 32, 0) 35%); pointer-events: none; }
.mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; background: var(--g-900); }
.mosaic span { position: relative; overflow: hidden; background: var(--g-700); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 14, 12, 0) 55%, rgba(5, 14, 12, 0.65)); }
.mosaic em { position: absolute; left: 20px; bottom: 16px; z-index: 1; font-style: normal; font-size: var(--t-small); font-weight: 500; color: var(--ivory); }

/* Certificate fan */
.fan { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 90% at 70% 40%, var(--g-600), var(--g-900)); cursor: pointer; }
.fan-stack { position: relative; width: min(54%, 340px); aspect-ratio: 3 / 4; }
.fan-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); transition: transform 0.8s var(--ease); }
.fan-stack img:nth-child(1) { transform: rotate(-9deg) translate(-14%, 4%); }
.fan-stack img:nth-child(2) { transform: rotate(7deg) translate(14%, 2%); }
.fan-stack img:nth-child(3) { transform: rotate(-1deg); }
.fan:hover .fan-stack img:nth-child(1), .fan-stack.is-open img:nth-child(1) { transform: rotate(-14deg) translate(-36%, 6%); }
.fan:hover .fan-stack img:nth-child(2), .fan-stack.is-open img:nth-child(2) { transform: rotate(12deg) translate(36%, 4%); }
.fan:hover .fan-stack img:nth-child(3), .fan-stack.is-open img:nth-child(3) { transform: translateY(-4%) scale(1.04); }

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: zoom 9s var(--ease) both; }
  @keyframes zoom { from { transform: translate3d(0, 0, 0) scale(1.14); } }
  .hero-content > *, .hero-split .copy > * { animation: fadeup 1s var(--ease) both; }
  .hero-content > :nth-child(2), .hero-split .copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-content > :nth-child(3), .hero-split .copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-content > :nth-child(4), .hero-split .copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-split .visual { animation: unveil 1.4s var(--ease) 0.1s both; }
  @keyframes fadeup { from { opacity: 0; transform: translateY(20px); } }
  @keyframes unveil { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
  .js [data-anim] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-anim].is-in { opacity: 1; transform: none; }
  .js [data-anim="wipe"] { opacity: 1; transform: none; }
  .js [data-anim="wipe"] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-anim="wipe"].is-in > * { clip-path: inset(0 0 0 0); }
}

/* ---------- Content blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.split figure { border-radius: var(--radius); overflow: hidden; background: var(--g-700); }
.split figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h2 { margin-top: 14px; }
.split p + p { margin-top: 16px; }
.split .body { margin-top: 22px; }

.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.panel { background: var(--g-700); border-radius: var(--radius); padding: clamp(28px, 3.5vw, 48px); border-top: 3px solid var(--brass); transition: background-color 0.4s ease, transform 0.6s var(--ease); }
.panel:hover { background: var(--g-600); transform: translateY(-6px); }
.panel h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.panel p { margin-top: 16px; }

.quote { max-width: 26ch; font-size: clamp(1.75rem, 3vw, 2.625rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--ivory); }
.quote::before { content: "“"; display: block; font-size: 2.2em; line-height: 0.6; color: var(--brass); margin-bottom: 0.15em; }

.places { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.place { background: #fff; border-radius: var(--radius); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 12px; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.place:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(14, 36, 32, 0.12); }
.place .tag { display: inline-flex; align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: var(--g-800); background: rgba(21, 165, 157, 0.16); border-radius: 999px; padding: 5px 12px; }
.place h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.place p { color: var(--ink-body); }
.place .link { margin-top: 8px; }

/* Services rows */
.rows { display: grid; gap: clamp(72px, 9vw, 136px); }
.row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.row:nth-child(even) figure { order: 2; }
.row figure { border-radius: var(--radius); overflow: hidden; background: var(--g-700); }
.row figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 1.2s var(--ease); }
.row:hover figure img { transform: scale(1.04); }
.row .num { font-size: var(--t-small); font-weight: 700; color: var(--brass); }
.row h2 { margin-top: 10px; }
.row p { margin-top: 18px; font-size: var(--t-lead); line-height: 1.65; max-width: 40ch; }
.row ul { margin-top: 26px; border-top: 1px solid var(--line); }
.row li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ivory); font-weight: 500; display: flex; gap: 14px; align-items: baseline; }
.row li::before { content: ""; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg) translateY(-2px); flex: 0 0 auto; }

/* Materials */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter { border: 1px solid var(--line-strong); background: transparent; color: var(--ivory); border-radius: 999px; padding: 10px 20px; font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.filter:hover { background: var(--g-700); }
.filter[aria-pressed="true"] { background: var(--ivory); color: var(--g-900); border-color: var(--ivory); }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tile { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: left; background: var(--g-700); isolation: isolate; }
.tile[hidden] { display: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; color: transparent; transition: transform 1.1s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 14, 12, 0) 40%, rgba(5, 14, 12, 0.88) 100%); }
.tile .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.tile .grp { display: block; font-size: 0.75rem; font-weight: 500; color: var(--brass); margin-bottom: 4px; }
.tile .nm { display: block; font-size: var(--t-h3); font-weight: 700; line-height: 1.2; color: var(--ivory); }
.tile .plus { position: relative; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(238, 240, 236, 0.6); color: var(--ivory); transition: background-color 0.3s ease, transform 0.5s var(--ease); }
.tile .plus::before, .tile .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.tile .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.07); }
.tile:hover .plus { background: var(--brass); border-color: var(--brass); color: var(--g-950); transform: rotate(90deg); }
@media (prefers-reduced-motion: no-preference) { .tile.is-entering { animation: fadeup 0.6s var(--ease) both; } }

dialog { border: 0; padding: 0; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(5, 14, 12, 0.72); backdrop-filter: blur(5px); }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; width: min(580px, 100%); background: var(--g-900); color: var(--body); overflow-y: auto; }
.drawer[open] { animation: slide-in 0.5s var(--ease); }
@keyframes slide-in { from { transform: translateX(60px); opacity: 0; } }
.drawer-inner { padding: 20px var(--gutter) 48px; }
.drawer-top { display: flex; justify-content: flex-end; }
.close { background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 18px; cursor: pointer; font-size: 0.875rem; font-weight: 500; color: var(--ivory); }
.close:hover { background: var(--ivory); color: var(--g-900); }
.drawer figure { margin: 20px calc(var(--gutter) * -1) 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--g-700); }
.drawer figure img { width: 100%; height: 100%; object-fit: cover; color: transparent; }
.drawer .grp { margin-top: 28px; font-size: var(--t-small); font-weight: 500; color: var(--brass); }
.drawer h2 { margin-top: 6px; }
.drawer p.d { margin-top: 16px; font-size: var(--t-lead); line-height: 1.6; }
.drawer h3 { margin-top: 28px; font-size: 1.0625rem; }
.drawer ul { margin-top: 10px; border-top: 1px solid var(--line); }
.drawer li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: 32px; }

/* Credentials */
.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--gap); }
.cert { border: 0; padding: 0; background: none; text-align: left; cursor: zoom-in; display: block; width: 100%; color: inherit; }
.cert .mat { display: grid; place-items: center; aspect-ratio: 4 / 5; background: radial-gradient(120% 100% at 50% 30%, var(--g-600), var(--g-800)); padding: 12%; border-radius: var(--radius); overflow: hidden; }
.cert .mat img { max-height: 100%; width: auto; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); transition: transform 0.7s var(--ease); }
.cert:hover .mat img, .cert:focus-visible .mat img { transform: translateY(-10px) rotate(-1.5deg) scale(1.03); }
.cert h3 { margin-top: 18px; }
.cert .sub { display: block; margin-top: 6px; font-size: var(--t-small); color: var(--mute); }
.register { border-top: 1px solid var(--line-dark); }
.register > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--gap); padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.register dt { font-size: var(--t-h3); font-weight: 700; line-height: 1.3; color: var(--ink); }
.register dd { color: var(--ink-body); max-width: 56ch; padding-top: 2px; }
.lightbox { background: transparent; width: 100%; height: 100%; margin: 0; inset: 0; position: fixed; }
.lightbox[open] { display: grid; place-items: center; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; } }
.lightbox-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; max-height: 100%; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; max-width: min(92vw, 900px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); background: #fff; }
.lightbox-bar { display: flex; gap: 16px; align-items: center; justify-content: space-between; width: 100%; max-width: 900px; color: var(--ivory); font-weight: 500; }

/* Clients */
.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.logos li { background: #fff; border-radius: var(--radius); aspect-ratio: 16 / 10; display: grid; grid-template-rows: 1fr auto; padding: 22px 24px; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.logos li:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(14, 36, 32, 0.12); }
.logos .lg { display: grid; place-items: center; }
.logos img { max-height: 92px; max-width: 70%; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.4s ease, opacity 0.4s ease, transform 0.6s var(--ease); }
.logos li:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.logos .nm { font-size: 0.8125rem; font-weight: 500; color: var(--ink-body); }

/* CTA band */
.cta { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(110px, 14vw, 200px); background: var(--g-700); }
.cta > img { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; transform: translate3d(0, var(--py, 0px), 0); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 14, 12, 0.92), rgba(5, 14, 12, 0.5)); }
.cta h2 { margin-top: 14px; max-width: 18ch; }
.cta .lead { margin-top: 16px; }
.cta .btn { margin-top: 32px; }

/* Contact */
.contact-top { padding-top: calc(var(--header-h) + clamp(48px, 6vw, 96px)); padding-bottom: var(--section); background:
    radial-gradient(50% 60% at 85% 30%, rgba(31, 92, 82, 0.45), transparent 70%), var(--g-800); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.contact-grid h1 { margin-top: 18px; }
.contact-grid .lead { margin-top: 20px; }
.contact-email { display: inline-block; margin-top: 32px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 500; color: var(--ivory); overflow-wrap: anywhere; }
.contact-email:hover { color: var(--brass); }
.address { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.address h3 { font-size: 1.0625rem; }
.address p { margin-top: 6px; }
.address .link { margin-top: 10px; }
.form-card { background: var(--ivory); color: var(--ink-body); border-radius: 16px; padding: clamp(28px, 4vw, 52px); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3); }
.form-card h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); color: var(--ink); }
.form-card > p { margin-top: 8px; }
.enquiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--gap); margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide, .form-foot { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.field label .opt { font-weight: 400; color: rgba(14, 36, 32, 0.55); }
.field input, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid rgba(14, 36, 32, 0.18); border-radius: 8px; padding: 12px 14px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--g-800); box-shadow: 0 0 0 3px rgba(21, 165, 157, 0.25); }
.field.has-error input, .field.has-error textarea { border-color: #B4472B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-card .btn { background: var(--g-800); color: var(--ivory); }
.form-card .btn:hover { background: var(--brass); color: var(--g-950); }
.enquiry button[disabled] { opacity: 0.6; cursor: progress; }
.form-status { font-size: 0.9375rem; font-weight: 500; color: var(--g-800); max-width: 46ch; }
.form-status.is-error { color: #A13D22; }

/* Footer */
.site-footer { background: var(--g-950); color: var(--mute); font-size: 0.9375rem; padding-block: clamp(64px, 7vw, 100px) 32px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--gap); }
.footer-top img { height: 76px; width: auto; }
.footer-top .tagline { margin-top: 22px; font-size: clamp(1.25rem, 1.8vw, 1.625rem); font-weight: 700; line-height: 1.25; color: var(--ivory); max-width: 14ch; }
.footer-col h2 { font-size: 0.9375rem; font-weight: 700; color: var(--ivory); margin-bottom: 14px; letter-spacing: 0; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--ivory); text-decoration: underline; }
.footer-base { margin-top: clamp(48px, 6vw, 72px); padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8125rem; }

/* Plain pages */
.plain { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; }
.plain img { height: 64px; width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .site-nav ul { gap: 16px; }
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 44px; }
  .menu-toggle { display: inline-block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: var(--g-900); display: none; overflow-y: auto; overscroll-behavior: contain; }
  .site-nav.is-open { display: block; animation: fade 0.3s ease; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 18px 0; font-size: 1.5rem; font-weight: 700; border-bottom: 0; }
  .site-nav a[aria-current="page"] { color: var(--brass); }
  .site-nav .login { border-bottom: 0; padding-top: 24px; }
  .site-nav .login a { display: inline-flex; font-size: 1rem; font-weight: 500; padding: 12px 20px; }

  .home-grid { grid-template-columns: 1fr; }
  .home-stage { padding-top: calc(var(--header-h) + 28px); }
  .bin-stage { height: clamp(260px, 62vw, 420px); }
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-split .copy { padding: calc(var(--header-h) + 40px) var(--gutter) 40px; }
  .hero-split .visual { min-height: 64vw; }
  .split, .row, .row:nth-child(even), .contact-grid { grid-template-columns: 1fr; }
  .row:nth-child(even) figure { order: 0; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards2, .places { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile .meta { padding: 14px; }
  .tile .plus { display: none; }
  .tile .nm { font-size: 1.0625rem; }
  .certs { gap: 28px 14px; }
  .cert h3 { font-size: 1.0625rem; }
  .register > div { grid-template-columns: 1fr; gap: 6px; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .logos li { aspect-ratio: auto; min-height: 136px; padding: 14px; gap: 10px; }
  .logos img { max-height: 60px; }
  .enquiry { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .bin-ui { justify-content: center; }
  .views button { padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Home refinements ---------- */
.home > .wrap, .home-stage > .wrap { width: 100%; }
.home-copy h1 { font-size: clamp(2.3rem, 4.1vw, 3.9rem); }
@media (max-width: 960px) {
  .home-copy .lead { font-size: 1.0625rem; margin-top: 16px; }
  .home-copy .hero-actions { margin-top: 22px; gap: 10px; }
  .home-copy .btn { padding: 13px 20px; }
  .home-copy .btn .arr { display: none; }
  .bin-stage { height: 250px; }
  .bin-ui { margin-top: 0; }
  .bin-ui .cap { display: none; }
  .ticker-track a { padding: 16px 0; }
  .home-foot { justify-content: center; }
}
@media (max-width: 960px) { .contact-grid, .split, .row, .row:nth-child(even) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .enquiry { grid-template-columns: minmax(0, 1fr); } .form-card { padding: 22px; } .home-copy .kicker { display: none; } .home-copy h1 { margin-top: 0; } .bin-stage { height: 230px; } }
img { color: transparent; }
.hero-split .copy h1 { font-size: clamp(2.2rem, 3.8vw, 3.6rem); }
.footer-top .tagline { max-width: 16ch; }
.bin-scene, .bin-scene * { pointer-events: none; }
.bin-ui { position: relative; z-index: 2; }
.footer-col h2 { font-size: 1.0625rem; }
.footer-col li { overflow-wrap: anywhere; }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; row-gap: 32px; } .footer-top > :first-child, .footer-top > :nth-child(3) { grid-column: 1 / -1; } }

/* Mobile menu: solid bar while open, page behind does not scroll */
@media (max-width: 960px) {
  .site-header.is-open { background: var(--g-900); backdrop-filter: none; -webkit-backdrop-filter: none; }
  html.menu-open, html.menu-open body { overflow: hidden; }
}

/* Keep the 3D floor from extending the page */
.home { overflow: hidden; }
@supports (overflow: clip) { .home { overflow: clip; } }

/* ---------- Home mini game: scrap bales ---------- */
.bin-mark::after { display: none; }
.bf-group { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transition: transform 0.75s cubic-bezier(0.3, 1.35, 0.5, 1); }
.bf-scrap { background-image:
  repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 9px),
  repeating-linear-gradient(28deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 7px),
  linear-gradient(90deg, transparent 30%, rgba(20, 30, 28, 0.5) 30% 33%, transparent 33% 67%, rgba(20, 30, 28, 0.5) 67% 70%, transparent 70%); }
.scrap-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.scrap { position: absolute; width: clamp(44px, 4.6vw, 66px); aspect-ratio: 1; margin: calc(clamp(44px, 4.6vw, 66px) / -2) 0 0 calc(clamp(44px, 4.6vw, 66px) / -2); padding: 0; border: 0; background: none; cursor: grab; pointer-events: auto; touch-action: none; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.4)); transition: transform 0.45s var(--ease), opacity 0.3s ease, filter 0.2s ease; }
.scrap svg { width: 100%; height: 100%; display: block; }
.scrap:hover { filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.45)) brightness(1.08); }
.scrap:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 8px; }
.scrap.is-dragging { cursor: grabbing; transition: none; z-index: 5; filter: drop-shadow(0 22px 18px rgba(0, 0, 0, 0.5)) brightness(1.1); }
.scrap.is-dropping { transition: transform 0.32s cubic-bezier(0.5, 0, 0.8, 0.6), opacity 0.32s ease; pointer-events: none; }
.scrap[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .scrap.is-hint { animation: nudge 1.6s ease-in-out 3; }
  @keyframes nudge { 0%, 100% { translate: 0 0; } 20% { translate: 0 -10px; } 40% { translate: 0 0; } 55% { translate: 0 -5px; } 70% { translate: 0 0; } }
}
.bin-stage.is-target .bin-inner, .bin-stage.is-target .bin-inner-floor { box-shadow: inset 0 0 0 999px rgba(201, 162, 106, 0.35); }

.bin-ui .cap { flex-direction: column; align-items: flex-start; gap: 2px; }
.cap-main { display: inline-flex; align-items: center; gap: 12px; font-size: 0.9375rem; color: var(--ivory); }
.cap-main b { font-weight: 700; }
.scrap-count { font-size: 0.8125rem; font-weight: 700; color: var(--g-950); background: var(--brass); border-radius: 999px; padding: 3px 10px; font-variant-numeric: tabular-nums; }
.cap-sub { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--mute); }
.cap-sub svg { width: 16px; height: 16px; color: var(--brass); }

.home-visual { position: relative; }
.scrap-done { position: absolute; left: 50%; top: 42%; z-index: 6; transform: translate(-50%, -50%); width: min(420px, 92%); text-align: center; background: rgba(9, 26, 23, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-strong); border-radius: 16px; padding: 28px 28px 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); }
.scrap-done[hidden] { display: none; }
.scrap-done h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.scrap-done p { margin-top: 8px; }
.scrap-done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
@media (prefers-reduced-motion: no-preference) { .scrap-done:not([hidden]) { animation: pop 0.5s var(--ease) both; } @keyframes pop { from { opacity: 0; transform: translate(-50%, -44%) scale(0.96); } } }

@media (max-width: 960px) {
  .bin-ui .cap { display: flex; }
  .cap-sub { display: none; }
  .bin-ui { justify-content: space-between; }
  .scrap { width: 40px; margin: -20px 0 0 -20px; }
}

/* ---------- Collection run launcher ---------- */
.run-launch { display: inline-flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; color: var(--ivory); background: rgba(201, 162, 106, 0.1); border: 1px solid rgba(201, 162, 106, 0.6); border-radius: 14px; padding: 10px 18px 10px 14px; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.run-launch:hover { background: var(--brass); border-color: var(--brass); color: var(--g-950); }
.run-launch:hover small { color: rgba(5, 14, 12, 0.75); }
.run-launch svg { width: 34px; height: 26px; color: var(--brass); flex: 0 0 auto; transition: color 0.2s ease; }
.run-launch:hover svg { color: var(--g-950); }
.run-launch b { display: block; font-size: 0.9375rem; font-weight: 700; line-height: 1.3; }
.run-launch small { display: block; font-size: 0.8125rem; color: var(--mute); line-height: 1.4; transition: color 0.2s ease; }
.run-launch.is-loading { opacity: 0.7; cursor: progress; }
@media (max-width: 960px) {
  .bin-ui { flex-direction: column; align-items: stretch; gap: 10px; }
  .run-launch { width: 100%; }
  .views { justify-content: center; }
}

/* Home on phones and tablets: 3D bin first, then the headline */
@media (max-width: 960px) {
  .home-grid { display: flex; flex-direction: column; gap: 0; }
  .home-visual { display: contents; }
  .bin-stage { order: 0; height: clamp(190px, 46vw, 300px); margin: 0 calc(var(--gutter) * -1); }
  .home-copy { order: 1; margin-top: 4px; }
  .bin-ui { order: 2; margin-top: 22px; }
  .views { display: none; }
  .home-stage { padding-top: calc(var(--header-h) + 4px); align-items: flex-start; }
  .home-copy .kicker { display: none; }
  .home-copy h1 { margin-top: 0; font-size: clamp(1.9rem, 7.4vw, 2.75rem); }
}
