/* Al-Awtad for Food Supplies - site styles
   Brand: plum #672666 (from existing site), crimson #B10739 kept as a rare secondary.
   Radius system: controls (buttons, inputs, chips) = full pill, media + panels = 20px. */

/* Hanken Grotesk, self-hosted (same files Google Fonts serves). It's a variable font: one file covers weights 400–700.
   The latin-ext file only downloads if a page uses one of its characters. */
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --plum: #672666;
  --plum-strong: #521e51;
  --plum-deep: #2e0f2e;
  --plum-soft: #f3eaf3;
  --plum-text: #672666;
  --crimson: #b10739;

  --bg: #f8f7f9;
  --surface: #ffffff;
  --surface-2: #f1eef2;
  --ink: #1e1720;
  --ink-2: #4a424d;
  --muted: #6c6470;
  --line: #e4dfe6;

  --on-plum: #fbf7fb;
  --on-plum-muted: #d9c4d8;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(46 15 46 / .05), 0 12px 32px -12px rgb(46 15 46 / .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --plum: #8a3d89;
    --plum-strong: #a04f9f;
    --plum-deep: #1f0b20;
    --plum-soft: #2a1a2b;
    --plum-text: #d39ad1;
    --bg: #131015;
    --surface: #1b171d;
    --surface-2: #231e25;
    --ink: #f2eef3;
    --ink-2: #cfc6d2;
    --muted: #a69ca9;
    --line: #322b35;
    --on-plum: #fbf7fb;
    --on-plum-muted: #dcc6db;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
  }
}
:root[data-theme="dark"] {
  --plum: #8a3d89;
  --plum-strong: #a04f9f;
  --plum-deep: #1f0b20;
  --plum-soft: #2a1a2b;
  --plum-text: #d39ad1;
  --bg: #131015;
  --surface: #1b171d;
  --surface-2: #231e25;
  --ink: #f2eef3;
  --ink-2: #cfc6d2;
  --muted: #a69ca9;
  --line: #322b35;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
/* Slim page scrollbar: brand-plum thumb on a light grey track */
html { scrollbar-width: thin; scrollbar-color: var(--plum) #e5e5e5; }
/* Safari (no scrollbar-width / scrollbar-color support) */
::-webkit-scrollbar { width: 8px; height: 8px; background: #e5e5e5; }
::-webkit-scrollbar-track { background: #e5e5e5; }
::-webkit-scrollbar-thumb { background: var(--plum); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--plum-strong); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--plum-text); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--plum); color: #fff; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.display { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.h3 { font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.2; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 54ch; }
.body { color: var(--ink-2); max-width: 65ch; }
.tone { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--plum-text); margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn i { font-size: 18px; transition: transform .3s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-strong); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--on-plum); color: #2e0f2e; }
.btn-light:hover { background: #fff; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--plum-text); }
.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}

.nav { position: relative; display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  font: inherit; font-size: 15.5px; font-weight: 500; color: var(--ink-2);
  background: none; border: 0; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.nav > a:hover, .nav-drop > button:hover, .nav-drop.is-open > button { color: var(--ink); background: var(--surface-2); }
.nav > a[aria-current="page"] { color: var(--ink); }
.site-header.on-dark:not(.is-scrolled) :is(.nav > a, .nav-drop > button) { color: #fff; } /* pure white while the header is transparent over the hero */
.nav-drop { position: static; }
.nav-drop > button i { font-size: 13px; transition: transform .25s var(--ease); }
.nav-drop.is-open > button i { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(560px, calc(100vw - 32px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 10px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .2s;
}
.nav-drop.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; transition: background-color .2s; }
.dropdown a:hover { background: var(--surface-2); }
.dropdown img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.header-cta { margin-left: 8px; }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 22px; cursor: pointer; align-items: center; justify-content: center; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: rgb(255 255 255 / .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 16px var(--gutter) 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav > a, .mobile-nav summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] summary i { transform: rotate(180deg); }
.mobile-nav details a { display: block; padding: 10px 0 10px 4px; color: var(--ink-2); font-size: 17px; }
.mobile-nav details ul { padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { width: fit-content; padding: 16px 30px; margin: 40px auto 10px; justify-content: center; }

@media (max-width: 1023px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
body.nav-locked { overflow: hidden; }
/* Mobile menu open: the header turns into the same frosted white as the menu panel, with the plum logo. */
body.nav-locked .site-header.on-dark::before { opacity: 1; inset: 0; -webkit-mask-image: none; mask-image: none; background: rgb(255 255 255 / .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.nav-locked .site-header.on-dark .logo-light { display: block; }
body.nav-locked .site-header.on-dark .logo-dark { display: none; }
body.nav-locked .site-header.on-dark .menu-toggle { background: initial; border-color: var(--plum); color: #1e1720; }

/* ---------- Hero (editorial type) ---------- */
/* The site is light; the home hero is a brand-plum band, and the header joins it while over it. */
.hero, .site-header.on-dark, .site-footer, .a-sec {
  --plum-text: #fff;
  --bg: #672666;
  --surface: rgb(255 255 255 / .08);
  --surface-2: rgb(255 255 255 / .14);
  --ink: #fff;
  --ink-2: #f0e2ef;
  --muted: #dcc6db;
  --line: rgb(255 255 255 / .3);
  color: var(--ink);
}
/* The hero and the numbers section share one cloudy plum band, which slides up under the transparent header. */
.hero-band {
  position: relative; isolation: isolate; overflow: clip;
  margin-top: calc(-1 * var(--header-h) - 1px); /* header is header-h + its 1px bottom border */
  background: #5a1f59;
}
.hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-band::before, .hero-band::after, .site-footer::before, .site-footer::after { content: ""; position: absolute; inset: -25%; z-index: -1; pointer-events: none; }
.hero-band::before {
  background:
    radial-gradient(38% 34% at 76% 24%, rgb(31 26 31 / .36), transparent 70%),
    radial-gradient(42% 40% at 18% 72%, rgb(154 74 152), transparent 72%),
    radial-gradient(30% 28% at 52% 48%, rgb(132 50 131), transparent 70%),
    radial-gradient(34% 30% at 92% 86%, rgb(97 78 97), transparent 70%);
}
.hero-band::after {
  background:
    radial-gradient(26% 22% at 34% 26%, rgb(248 116 247 / .22), transparent 70%),
    radial-gradient(36% 32% at 70% 70%, #a15ba080, transparent 72%),
    radial-gradient(30% 30% at 8% 18%, #3f143e, transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-band::before, .site-footer::before { animation: cloud-a 26s ease-in-out infinite alternate; }
  .hero-band::after, .site-footer::after { animation: cloud-b 34s ease-in-out infinite alternate; }
  @keyframes cloud-a { to { transform: translate3d(6%, -4%, 0) scale(1.12) rotate(4deg); } }
  @keyframes cloud-b { to { transform: translate3d(-7%, 5%, 0) scale(1.08) rotate(-5deg); } }
}
.hero .btn-primary, .site-header.on-dark .btn-primary { background: var(--on-plum); color: #2e0f2e; }
.hero .btn-primary:hover, .site-header.on-dark .btn-primary:hover { background: #fff; }
/* The header is a translucent plum cloud; on every page it starts clear over the dark hero and fades in on scroll. */
.site-header.on-dark { isolation: isolate; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.on-dark::before {
  content: ""; position: absolute; inset: 0 0 -26px; z-index: -1; pointer-events: none;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  /* Eased fade (not linear) so the bottom edge melts away instead of ending in a band. */
  --fade: linear-gradient(to bottom, #000 48%, rgb(0 0 0 / .93) 55%, rgb(0 0 0 / .8) 62%, rgb(0 0 0 / .62) 69%, rgb(0 0 0 / .44) 76%, rgb(0 0 0 / .28) 83%, rgb(0 0 0 / .15) 89%, rgb(0 0 0 / .06) 95%, transparent);
  -webkit-mask-image: var(--fade); mask-image: var(--fade);
  opacity: .95; transition: opacity .4s var(--ease);
  background:
    radial-gradient(34% 170% at 12% 30%, rgb(91 8 89), transparent 72%),
    radial-gradient(30% 170% at 84% 45%, rgb(91 8 89), transparent 72%),
    radial-gradient(22% 150% at 42% 10%, rgb(114 36 113), transparent 72%),
    radial-gradient(22% 150% at 58% 40%, rgb(63 20 62 / .6), transparent 72%),
    radial-gradient(14% 130% at 30% 50%, rgb(248 116 247 / .1), transparent 72%),
    #6d126d;
}
.site-header.on-dark:not(.is-scrolled)::before { opacity: 0; }
.site-header.on-dark .logo-light { display: none; }
.site-header.on-dark .logo-dark { display: block; }
/* The dropdown is a light panel even when the header is plum. */
.site-header.on-dark .dropdown { --surface: #fff; --surface-2: #f1eef2; --line: #e4dfe6; color: #1e1720; }
.hx { position: relative; }
.hx-title {
  font-size: clamp(3.4rem, 10.2vw, 9.25rem); font-weight: 600;
  letter-spacing: -0.055em; line-height: .94; color: var(--plum-text);
}
.hx-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hx-title .line > span { display: inline-block; }
.hx-title .l2 { padding-left: 24%; }
.hx-title .dot { color: var(--crimson); }
.hx-aside p { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.hx-actions { margin-top: 32px; }
.hx-caption { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.8; }

@media (min-width: 1024px) {
  .hx-aside { position: absolute; top: 1.1rem; right: 0; width: 32%; }
  .hx-actions { margin-left: 24%; }
  .hx-caption { position: absolute; left: 0; bottom: .9rem; }
}
.hx-caption > span { display: block; }

/* Phones and tablets (one breakpoint for the whole site: under 1024px = this single-column layout).
   One centered column: a one-line "Alawtad Co · Est. 2005" caption, the title centered line by line,
   then the photo filmstrip, the description and both buttons stacked. */
@media (max-width: 1023px) {
  #home > .container { display: flex; flex-direction: column; align-items: center; } /* home hero only; inner-page heroes stay left */
  .hx { display: contents; }
  .hx-caption { order: -1; margin: 0 0 22px; font-size: 11.5px; text-align: center; }
  .hx-caption > span { display: inline; }
  .hx-caption > span + span::before { content: "·"; margin-inline: .7em; }
  .hx-caption > span:last-child { display: none; } /* Amman, Jordan: desktop only */
  .hx-title { text-align: center; }
  .hx-title .line { white-space: nowrap; }
  .hx-title .l2 { padding-left: 0; }
  .hx-media { order: 1; align-self: stretch; margin-top: 32px; }
  .hx-aside { order: 2; margin-top: 28px; text-align: center; }
  .hx-aside p { margin-inline: auto; }
  .hx-actions { order: 3; align-self: stretch; display: grid; gap: 10px; margin-top: 24px; }
  .hx-actions .btn { width: 80%; max-width: 420px; justify-content: center; margin: 0 auto 5px; }
  .hx-aside p { max-width: 46ch; }
}
.hx-media { display: grid; gap: 16px; margin-top: clamp(40px, 5vw, 64px); grid-template-columns: 1fr 1fr; }
.hx-media img { width: 100%; height: clamp(180px, 28vw, 400px); object-fit: cover; border-radius: var(--radius); }
.hx-media img:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
/* Phones and tablets: a filmstrip instead of a grid. The three photos sit in one row that runs off the right edge (the hero
   band clips it); main.js slides the row left as the page scrolls, so each photo passes through view in turn. */
@media (max-width: 1023px) {
  .hx-media { display: flex; gap: 12px; margin-top: 44px; }
  .hx-media img { flex: none; width: 74%; min-width: 0; height: auto; aspect-ratio: 4 / 5; border-radius: 18px; }
  .hx-media img:nth-child(2) { grid-column: auto; grid-row: auto; }
}
@media (min-width: 600px) and (max-width: 1023px) { .hx-media img { width: 46%; } } /* tablets: about two photos in view */
@media (min-width: 1024px) {
  .hx-media { grid-template-columns: 1fr 1.45fr 1fr; }
  .hx-media img:nth-child(2) { grid-column: auto; grid-row: auto; }
  .hx-media img:nth-child(1), .hx-media img:nth-child(3) { margin-top: clamp(24px, 4vw, 56px); height: calc(clamp(180px, 28vw, 400px) - clamp(24px, 4vw, 56px)); }
}

/* ---------- Numbers (the page's one dark color block) ---------- */
.numbers { color: var(--on-plum); padding-block: clamp(56px, 9vw, 128px); }
/* Fades the shared clouds darker toward the bottom so the white text reads well; starts clear so there is no seam. */
.hero-band .numbers {
  padding-top: clamp(24px, 4vw, 56px);
  background:
    radial-gradient(42% 55% at 20% 55%, rgb(30 6 29 / .55), transparent 75%),
    linear-gradient(to bottom, transparent, rgb(36 9 35 / .3) 35%, rgb(36 9 35 / .6));
}
.numbers-grid { display: grid; gap: 56px; }
.numbers .eyebrow { color: #e7b9e5; }
.numbers .h2 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; }
.numbers .body { color: var(--on-plum-muted); margin-top: 28px; max-width: 46ch; }
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat-col + .stat-col { border-left: 1px solid rgb(255 255 255 / .12); }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 220px; padding: 28px 24px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.stat strong { font-size: clamp(2.8rem, 5.6vw, 5.2rem); font-weight: 500; line-height: .95; letter-spacing: -0.05em; color: #fff; font-variant-numeric: tabular-nums; }
.stat > span { font-size: 15.5px; color: var(--on-plum-muted); max-width: 22ch; }
.stat-col:first-child .stat:first-child { border-top: 1px solid rgb(255 255 255 / .12); }
.stat-col:last-child { padding-top: 0; }
@media (min-width: 1024px) {
  .numbers-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
  .stat { min-height: 260px; padding: 32px; }
  .stat-col:first-child { margin-top: 130px; }
  .stat-col:last-child .stat:first-child { border-top: 1px solid rgb(255 255 255 / .12); }
}
@media (max-width: 1023px) {
  .stat-col:last-child .stat:first-child { border-top: 1px solid rgb(255 255 255 / .12); }
  .stat-col:first-child { margin-top: 72px; } /* keep the staggered columns of desktop on smaller screens */
}
@media (max-width: 479px) { .stat { padding: 22px 16px; min-height: 180px; } }

/* ---------- Products: sticky showcase ---------- */
.showcase { display: grid; gap: 40px; }
.showcase-side .body { margin-top: 20px; }
.showcase-index { display: none; list-style: none; margin: 40px 0 0; padding: 0; }
.showcase-index a {
  position: relative; display: block; padding: 11px 0 11px 22px;
  font-size: 17px; font-weight: 500; color: var(--muted);
  transition: color .3s var(--ease);
}
.showcase-index a::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px;
  background: var(--line); transition: background-color .3s var(--ease);
}
.showcase-index a:hover { color: var(--ink); }
.showcase-index a.is-active { color: var(--ink); }
.showcase-index a.is-active::before { background: var(--plum-text); }
.showcase-cta { display: none; margin-top: 36px; }
.showcase-cards { display: grid; gap: 20px; }
.scard {
  position: relative; display: block; isolation: isolate; overflow: hidden;
  border-radius: var(--radius); background: var(--plum-deep); color: #fff;
  aspect-ratio: 4 / 3.4;
}
.scard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.scard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(30 8 30 / 0) 40%, rgb(30 8 30 / .3) 60%, rgb(30 8 30 / .88) 100%); }
.scard:hover img { transform: scale(1.04); }
.scard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.scard h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.025em; }
.scard p { margin-top: 10px; color: rgb(255 255 255 / .85); max-width: 44ch; font-size: 16px; }
@media (min-width: 1024px) {
  .showcase { grid-template-columns: .85fr 1fr; gap: 80px; align-items: start; }
  .showcase-side { align-self: stretch; }
  .showcase-sticky { position: sticky; top: calc(var(--header-h) + 48px); }
  .showcase-index, .showcase-cta { display: block; }
  .showcase-cta { display: inline-flex; }
  .showcase-cards { gap: 28px; }
  .scard { aspect-ratio: auto; height: min(74vh, 640px); }
  .scard-body { padding: 36px; }
}
/* Phones and tablets: the cards stack as you scroll, each one sliding up over the last and covering it fully. */
@media (max-width: 1023px) {
  .showcase-cards { gap: 16px; }
  .scard { position: sticky; top: calc(var(--header-h) + 12px); }
}

/* ---------- Markets marquee ---------- */
.markets { overflow: hidden; background: var(--plum); color: #fff; border-block: 1px solid rgb(255 255 255 / .12); }
.markets-row { display: grid; grid-template-columns: auto 1fr; align-items: center; }
.markets-label {
  position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px);
  padding: clamp(22px, 3vw, 36px) clamp(20px, 2.4vw, 36px) clamp(22px, 3vw, 36px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  background: var(--plum);
  font-size: clamp(1.6rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; color: #fff;
}
.markets .marquee { padding-block: clamp(22px, 3vw, 36px); }
.marquee { display: flex; overflow: hidden; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent); }
.marquee-track { display: flex; flex-shrink: 0; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex-shrink: 0; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px); }
.marquee-group li { white-space: nowrap; font-size: clamp(1.6rem, 3.6vw, 3rem); font-weight: 600; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.1; }
.marquee-group .solid { color: #fff; }
.marquee-group .outline { color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / .7); }
.marquee-group .star { font-size: clamp(1.1rem, 2vw, 1.7rem); color: #e7b9e5; display: grid; place-items: center; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; justify-content: center; }
  .marquee-track { flex-wrap: wrap; justify-content: center; flex-shrink: 1; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-track { width: 100%; }
  .marquee-group { flex-wrap: wrap; flex-shrink: 1; min-width: 0; width: 100%; justify-content: center; row-gap: 8px; padding-inline: 16px; }
  .marquee-group li:last-child { display: none; }
}

/* ---------- Why choose us ---------- */
.why { border-top: 1px solid var(--line); }
.why-grid { display: grid; gap: 48px; }
.why-media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.why-media img { width: 100%; height: 100%; object-fit: cover; }

/* Section tag: short solid rule + tracked caps (no pill) */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--plum);
}
.tag::before { content: ""; width: 34px; height: 2px; margin-left: 4px; background: currentColor; }
.why-copy .h2 { margin-top: 20px; max-width: 18ch; }
.why-copy > .body { margin-top: 22px; }
/* Four strengths: one square-cornered panel split by hairlines */
.why-list { margin-top: 40px; display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.why-list li {
  display: flex; flex-direction: column; gap: 6px; padding: 28px;
  background: transparent;
  transition: background-color .4s var(--ease);
}
.why-list li:hover { background: var(--surface); }
.why-list li:hover .why-ic { transform: translateY(-2px); }
.why-ic { display: block; color: var(--plum-text); font-size: 30px; line-height: 1; margin-bottom: 28px; transition: transform .4s var(--ease); }
.why-list h3 { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.why-list p { color: var(--muted); font-size: 15px; line-height: 1.5; }
/* Cards are see-through (the section letter shows behind them) and fill in on hover; dividers are borders */
.why-list li + li { border-top: 1px solid var(--line); }
@media (min-width: 560px) {
  .why-list { grid-template-columns: 1fr 1fr; }
  .why-list li:nth-child(2) { border-top: 0; }
  .why-list li:nth-child(even) { border-left: 1px solid var(--line); }
}
.why-copy .hero-actions { margin-top: 36px; }
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: .82fr 1fr; gap: 72px; align-items: center; }
  .why-media { aspect-ratio: auto; height: 100%; min-height: 620px; }
}

/* ---------- Contact ---------- */
.contact { padding-top: clamp(56px, 9vw, 120px); }
.contact-top { display: grid; gap: 48px; padding-bottom: clamp(56px, 7vw, 96px); }
.contact-intro .lead { margin-top: 18px; max-width: 46ch; }
.contact-info { display: grid; }
.contact-block { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; padding: 16px 0; }
.contact-block .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--plum-soft); color: var(--plum-text); font-size: 22px; }
.contact-block h3 { font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.3; }
.contact-block p { margin-top: 4px; color: var(--ink-2); line-height: 1.6; }
.contact-block p.tone { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.contact-block a { color: inherit; transition: color .2s; }
.contact-block a:hover { color: var(--plum-text); }
@media (min-width: 1024px) { .contact-top { grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; } }

.contact-map { position: relative; height: clamp(380px, 48vw, 560px); background: var(--surface-2); }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-cta { position: absolute; left: var(--gutter); bottom: 24px; box-shadow: 0 12px 30px -10px rgb(46 15 46 / .5); }

/* Contact sits on the deep brand plum */
#contact { background: var(--plum); color: var(--on-plum); }
#contact .h2 { color: #fff; }
#contact .lead { color: var(--on-plum-muted); }
#contact .contact-block .ic { background: rgb(255 255 255 / .08); color: #e7b9e5; }
#contact .contact-block h3 { color: #fff; }
#contact .contact-block p { color: var(--on-plum-muted); }
#contact .contact-block p.tone { color: rgb(217 196 216 / .7); }
#contact .contact-block a:hover { color: #e7b9e5; }
#contact .contact-map { background: var(--plum-strong); }
#contact .map-cta { background: var(--on-plum); color: #2e0f2e; }
#contact .map-cta:hover { background: #fff; }
#contact :focus-visible { outline-color: #e7b9e5; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form-card h3 { font-size: 1.6rem; }
.form-card > p { margin-top: 8px; color: var(--muted); }
.form-grid { display: grid; gap: 20px; margin-top: 32px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--muted) 60%, var(--line)); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--plum-text); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--plum-text) 18%, transparent); }
.field .error { display: none; font-size: 14px; color: #b10739; }
.field.invalid input, .field.invalid textarea { border-color: #b10739; }
.field.invalid .error { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .error { color: #ff8aa8; } :root:not([data-theme="light"]) .field.invalid input, :root:not([data-theme="light"]) .field.invalid textarea { border-color: #ff8aa8; } }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.form-status { font-size: 15px; color: var(--muted); }
.form-status.ok { color: var(--plum-text); font-weight: 500; }
@media (min-width: 640px) { .form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 639px) { .form-grid .two { display: grid; gap: 20px; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: clip; padding-block: 64px 32px; background: #5a1f59; color: var(--ink); }
.site-footer .logo-light { display: none; }
.site-footer .logo-dark { display: block; }
/* The footer is short and wide, so it gets fewer, broader clouds than the hero to keep the darks rich. */
.site-footer::before {
  background:
    radial-gradient(60% 120% at 18% 25%, rgb(132 50 131 / .5), transparent 70%),
    radial-gradient(55% 110% at 85% 85%, rgb(58 17 57 / .85), transparent 70%);
}
.site-footer::after {
  background:
    radial-gradient(45% 100% at 62% 30%, rgb(154 74 152 / .28), transparent 70%),
    radial-gradient(50% 120% at 32% 95%, rgb(44 11 43 / .7), transparent 70%);
}
.footer-top { display: grid; gap: 40px; }
.footer-top .brand img { height: 34px; }
.footer-about { margin-top: 18px; color: var(--muted); max-width: 38ch; font-size: 15.5px; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: 0; }
.footer-col li + li { margin-top: 8px; }
.footer-col a, .footer-col li > span { color: var(--muted); font-size: 15.5px; transition: color .2s; }
.footer-col a:hover { color: #e7b9e5; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14.5px; }
.footer-credit a { color: var(--ink); font-weight: 600; transition: color .2s; }
.footer-credit a:hover { color: #e7b9e5; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
/* Tablets in portrait (600–1023px) get the phone layouts; these keep them from stretching too wide. */
@media (min-width: 600px) and (max-width: 899px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 600px) and (max-width: 1023px) {
  .a-story-grid, .a-products-grid { max-width: 680px; }
}

/* ---------- Inner pages ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); margin-bottom: 24px; }
.crumbs a:hover { color: var(--plum-text); }
.crumbs i { font-size: 12px; }

.prose-grid { display: grid; gap: 40px; }
.prose-grid h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.prose-grid .body + .body { margin-top: 18px; }
@media (min-width: 1024px) { .prose-grid { grid-template-columns: .85fr 1.15fr; gap: 80px; } }

/* Product pages: the category photo fills the hero; a plum shade from the left carries the type. */
.p-hero { position: relative; isolation: isolate; overflow: clip; margin-top: calc(-1 * var(--header-h) - 1px); min-height: clamp(460px, 64svh, 640px); display: grid; align-items: end; background: #2e0f2e; }
.p-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.p-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: #00000050; } /* desktop: an even ~31% black over the photo; phones get the bottom-up plum shade below */
.p-hero .crumbs, .p-hero .crumbs a, .p-hero .lead { color: #fff; }
.p-cta-sec { background: var(--surface); padding-top: 0; } /* white like the carousel section above it, so its bottom padding is the only gap */
:is(.p-hero, .a-hero) .crumbs { margin-bottom: clamp(28px, 4vw, 48px); }
:is(.p-hero, .a-hero) .crumbs span { color: var(--ink); }
:is(.p-hero, .a-hero) h1 { font-size: clamp(2.8rem, 7vw, 4rem); text-wrap: balance; }
:is(.p-hero, .a-hero) .lead { margin-top: 24px; max-width: 46ch; }
.p-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: clamp(32px, 4vw, 44px); }
@media (min-width: 1024px) { :is(.p-hero, .a-hero) :is(h1, .lead) { max-width: 62%; } }
/* About hero: the product hero's text layout on the plum cloud band, no photo. */
.a-hero { position: relative; isolation: isolate; min-height: clamp(420px, 56svh, 580px); display: grid; align-items: end; }
/* Faint NOVA letters (traced from the logo) on the right, set low; main.js drifts them on scroll via --py. */
.a-mark { position: absolute; z-index: -1; right: var(--gutter); bottom: 111px; height: clamp(90px, 15vw, 210px); width: auto; translate: 0 var(--py, 0px); pointer-events: none; fill: #fff; fill-rule: evenodd; opacity: .06; }
@media (max-width: 1023px) { .a-mark { bottom: 30px; opacity: .05; } }
@media (max-width: 1023px) {
  .p-hero, .a-hero { min-height: 0; } /* on phones the hero is as tall as its content, no empty band above the title */
  .p-hero::before { background: linear-gradient(to top, rgb(46 15 46 / .74) 13%, rgb(46 15 46 / .48) 56%, rgb(46 15 46 / .15)); }
}
@media (prefers-reduced-motion: no-preference) {
  .p-hero-bg { animation: hero-settle 2.6s var(--ease) both; }
  @keyframes hero-settle { from { scale: 1.12; } }
}

.p-apps .prose-grid h2 { text-wrap: balance; }
@media (min-width: 1024px) { .p-apps .prose-grid h2 { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }
.apps { display: grid; column-gap: 48px; border-top: 1px solid var(--line); }
.apps li { display: flex; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.05rem, 1.3vw, 1.2rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.apps li::before { content: ""; flex: none; width: 7px; height: 7px; translate: 0 -2px; rotate: 45deg; background: var(--plum); }
@media (min-width: 640px) { .apps { grid-template-columns: 1fr 1fr; } }
/* Phones and tablets: two columns, tighter items, no rule under each item. */
@media (max-width: 1023px) {
  .apps { grid-template-columns: 1fr 1fr; column-gap: 16px; padding-top: 10px; }
  .apps li { gap: 10px; padding: 20px 5px 10px 2px; border-bottom: 0; font-size: 16px; }
  .apps li::before { width: 6px; height: 6px; }
}
.app-block + .app-block { margin-top: 56px; }
.app-block h3 { font-size: 1.15rem; margin-bottom: 18px; letter-spacing: -0.01em; }
.app-block p { color: var(--ink-2); margin-bottom: 18px; max-width: 60ch; }
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.formats li { padding: 22px; border-radius: var(--radius); background: var(--plum-soft); }
.formats i { font-size: 26px; color: var(--plum-text); }
.formats strong { display: block; margin-top: 12px; font-size: 1.1rem; }

.related { background: var(--surface); border-top: 1px solid var(--line); }

/* Product pages: "Other applications" photo carousel with arrows. */
.related-x { background: var(--surface); border-top: 1px solid var(--line); }
.rx-nav { display: flex; align-items: center; gap: 10px; }
.rx-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--plum); background: var(--plum); color: #fff; font-size: 18px; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), opacity .25s; }
.rx-btn:hover:not(:disabled) { background: var(--plum-strong); border-color: var(--plum-strong); }
.rx-btn:disabled { opacity: .35; cursor: default; }
@media (hover: none) { .rx-nav { display: none; } }
.rx-track { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.rx-track::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .rx-track { grid-auto-columns: calc((100% - 2 * 20px) / 2.35); gap: 20px; } }
@media (min-width: 1100px) { .rx-track { grid-auto-columns: calc((100% - 3 * 24px) / 3.35); gap: 24px; } }
.rx-card { position: relative; display: block; scroll-snap-align: start; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--surface-2); }
.rx-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.02; transition: scale 1.1s var(--ease); }
.rx-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(46 15 46 / .82), rgb(46 15 46 / .28) 38%, transparent 62%); transition: opacity .5s var(--ease); }
.rx-meta { position: absolute; z-index: 1; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: clamp(20px, 2.4vw, 28px); color: #fff; }
.rx-name { font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; max-width: 12ch; text-wrap: balance; }
.rx-go { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--plum); font-size: 18px; transition: rotate .5s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.rx-card:hover img, .rx-card:focus-visible img { scale: 1.09; }
.rx-card:hover .rx-go, .rx-card:focus-visible .rx-go { rotate: 45deg; background: var(--plum); color: #fff; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rx-card { animation: rx-in linear both; animation-timeline: view(inline); animation-range: entry 0% entry 70%; }
    @keyframes rx-in { from { opacity: .4; scale: .9; } }
  }
}
.related-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }

.cta-band { border-radius: var(--radius); background: var(--plum); color: #fff; padding: clamp(36px, 5vw, 64px); display: grid; gap: 28px; align-items: center; }
.cta-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); max-width: 20ch; color: #fff; }
.cta-band p { margin-top: 12px; color: rgb(255 255 255 / .82); max-width: 50ch; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* About page: everything sits on the home page's plum. Hero + story share one cloud band, the quality gauge is a
   deeper plum block, then products + closing share a second cloud band. */
/* The closing quote band is a rounded card inset from the page edges, on the light page background. */
/* White like the products section above, so the card doesn't sit in a grey strip of page background. */
.a-close-wrap { background: var(--surface); padding-bottom: calc(clamp(40px, 5vw, 72px) + 50px); }
.a-cloud { width: min(100% - 2 * var(--gutter), var(--max) - 2 * var(--gutter)); margin: 0 auto; border-radius: var(--radius); }
.a-close .container { padding-inline: clamp(24px, 6vw, 96px); }
.a-sec { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(56px, 9vw, 128px); }
.a-sec .section-mark { fill: #fff; opacity: .045; }
.a-sec .eyebrow { color: #e7b9e5; }
.a-big { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); font-weight: 500; line-height: 1.18; letter-spacing: -0.03em; max-width: 100%; text-wrap: balance; }
.a-mid { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); font-weight: 500; line-height: 1.18; letter-spacing: -0.03em; max-width: 100%; margin-bottom: 28px; text-wrap: balance; }
.a-side { color: var(--ink-2); font-size: 1.1rem; }
/* Our story: two overlapping photos (large top-left, smaller inset bottom-right) beside the text column. */
.a-story-grid { display: grid; gap: 56px; align-items: center; }
.a-story-copy .a-big { margin-bottom: 24px; }
/* "Our story" / "Our products" use the same .h2 as "Our quality gauge"; plum, with room before the statement. */
/* "Our story" / "Our products": the home page's .tag label (plum rule + tracked caps, as on "Why choose us"), larger. */
.a-title { display: inline-flex; align-items: center; gap: 14px; margin-bottom: clamp(20px, 2.4vw, 28px); font-size: clamp(15px, 1.3vw, 18px); font-weight: 600; line-height: 1.2; letter-spacing: .18em; text-transform: uppercase; color: var(--plum); }
.a-title::before { content: ""; width: 48px; height: 2px; margin-left: 4px; background: currentColor; }
/* About sections each carry one faint logo letter: N story, O gauge, V products, A closing quote. */
.a-story, .a-gauge, .a-products { position: relative; isolation: isolate; overflow: clip; }
.a-gauge .section-mark { fill: #fff; opacity: .045; }
@media (max-width: 1023px) {
  .a-gauge .section-mark { left: auto; right: 0; transform: translateX(28%); } /* the O sits on the right on phones */
  .a-close .a-quote p { letter-spacing: 0; }
}
.a-duo { position: relative; padding-bottom: 9.2%; }
.a-duo img { display: block; object-fit: cover; border-radius: var(--radius); }
.a-duo-main { width: 68%; aspect-ratio: 1; }
.a-duo-inset { position: absolute; right: 0; bottom: 0; width: 50%; aspect-ratio: 16 / 15; box-shadow: 0 30px 60px -24px rgb(20 4 20 / .45); }
@media (max-width: 1023px) { .a-duo { padding-bottom: 20%; } } /* the inset sits lower on phones and tablets */
/* Reveal: the big photo settles down into place, the inset rises up into it. */
@media (prefers-reduced-motion: no-preference) {
  .a-duo.reveal { opacity: 1; transform: none; }
  .a-duo img { opacity: 0; transition: opacity .9s var(--ease), translate 1.3s var(--ease); }
  .a-duo .a-duo-main { translate: 0 -56px; }
  .a-duo .a-duo-inset { translate: 0 56px; transition-delay: .18s; }
  .a-duo.is-in img { opacity: 1; translate: none; }
}
@media (min-width: 1024px) {
  .a-story-grid { grid-template-columns: 1.1fr 1fr; gap: 96px; }
}

.a-gauge { --ink: #fff; --ink-2: #f0e2ef; --muted: #dcc6db; --line: rgb(255 255 255 / .22); --plum-text: #fff; background: var(--plum-strong); color: var(--ink); }
.a-gauge-grid { display: grid; gap: 40px; }
.a-gauge-intro .body { margin-top: 18px; color: var(--muted); }
.a-gauge-list li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.a-gauge-list li:first-child { border-top: 1px solid var(--line); }
.a-gauge-list i { font-size: 28px; color: #e7b9e5; }
.a-gauge-list h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.a-gauge-close { color: var(--ink-2); }
@media (min-width: 1024px) {
  .a-gauge-grid { grid-template-columns: 1fr 1.4fr; column-gap: 96px; row-gap: 32px; }
  .a-gauge-intro { grid-row: span 2; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .a-gauge-close { grid-column: 2; }
}


.a-products-grid { display: grid; gap: 48px; align-items: center; }
.a-products-media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: 0 30px 60px -24px rgb(20 4 20 / .4); }
.a-products-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.a-products .body + .body { margin-top: 16px; }
@media (min-width: 1024px) {
  .a-products-grid { grid-template-columns: .9fr 1.1fr; gap: 96px; }
  .a-products-media img { aspect-ratio: 4 / 5; max-height: 640px; }
}

/* Closing statement: the page's last plum moment, a large pull quote with the second sentence in pink. */
.a-close { padding-block: clamp(48px, 5.5vw, 88px) clamp(60px, 7vw, 112px); }
.a-quote { margin: 0; }
.a-quote i { display: block; margin-bottom: clamp(18px, 2.4vw, 28px); font-size: clamp(32px, 3.4vw, 46px); line-height: 1; color: #e7b9e5; }
.a-quote p { max-width: 42ch; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.18; text-wrap: balance; }
.a-quote .tone { margin-top: .5em; color: #e7b9e5; }

/* ---------- Touch targets ---------- */
/* On touch screens, small text links get a taller hit area (about 44px) without moving anything: the padding is
   cancelled by an equal negative margin, so the visual layout is unchanged. */
@media (pointer: coarse) {
  .crumbs a, .contact-block a { display: inline-block; padding-block: 10px; margin-block: -10px; }
  .p-hero .link-arrow { padding-block: 10px; margin-block: -10px; }
  .footer-col li + li { margin-top: 0; }
  .footer-col a, .footer-col li > span { display: inline-block; padding-block: 9px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .reveal.is-in { opacity: 1; transform: none; }
  /* Stronger fade-up: longer travel plus a soft blur that clears as it lands */
  .reveal-up { transform: translateY(56px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
  .reveal-up.is-in { filter: none; }
  .btn.reveal-up { transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease), background-color .25s var(--ease), color .25s var(--ease); transition-delay: calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms), 0s, 0s; }
  /* Why choose us cards: the card frame stays put while its icon, title and text rise in, staggered per card */
  .why-list li.reveal { opacity: 1; transform: none; }
  .why-list li.reveal > * { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease), translate 1s var(--ease); }
  .why-list li.reveal > h3 { transition-delay: calc(var(--i, 0) * 120ms + 120ms); }
  .why-list li.reveal > p { transition-delay: calc(var(--i, 0) * 120ms + 220ms); }
  .why-list li.reveal > .why-ic { scale: .5; transition: opacity .5s, translate 1s var(--ease), scale .7s cubic-bezier(.34, 1.56, .64, 1), transform .4s var(--ease); transition-delay: calc(var(--i, 0) * 120ms), calc(var(--i, 0) * 120ms), calc(var(--i, 0) * 120ms), 0s; }
  .why-list li.reveal.is-in > * { opacity: 1; translate: none; scale: 1; }
  /* Why choose us fades without the blur used elsewhere */
  .why .reveal-up { filter: none; }
  .hero .load { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  .hx-title .load { opacity: 1; transform: translateY(105%); animation: lineup 1.1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 120ms + 60ms); }
  .hx-media img.load { opacity: 0; transform: translateY(28px) scale(.985); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
  @keyframes lineup { to { transform: none; } }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Products showcase: soft brand-plum glow behind the sticky index (no per-category colors) ---------- */
@property --note { syntax: "<color>"; inherits: true; initial-value: #672666; }
.showcase { transition: --note 1.1s var(--ease); }
.showcase-sticky { isolation: isolate; }
.showcase-sticky::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -18%; top: -14%; width: 120%; height: 128%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--plum) 10%, transparent), transparent 75%);
}
@media (max-width: 1023px) { .showcase-sticky::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .showcase { transition: none; } }

/* ---------- Delight: contact message-ready state ---------- */
.form-done { padding-top: 8px; }
.form-done:focus { outline: none; }
.form-done-mark {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px;
  background: var(--plum-soft); color: var(--plum-text); font-size: 26px; margin-bottom: 24px;
}
.form-done h3 { font-size: 1.6rem; }
.form-done p { margin-top: 10px; color: var(--ink-2); max-width: 46ch; }
.form-done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.form-done [data-copy-email].is-copied { background: var(--plum-strong); }
@media (prefers-reduced-motion: no-preference) {
  .form-done:not([hidden]) { animation: doneIn .7s var(--ease) both; }
  @keyframes doneIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .form-done:not([hidden]) .form-done-mark { animation: pop .6s cubic-bezier(.34, 1.56, .64, 1) .15s both; }
  @keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
}
.form-card.is-done > h3, .form-card.is-done > p { display: none; }
/* the form grid's display would otherwise override the hidden attribute */
.form-card [hidden] { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .showcase-sticky::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--plum) 30%, transparent), transparent 75%); }
}


/* ---------- Logo letter marks (N, O, V, A) ---------- */
/* One oversized, faint letter of the logo per section, alternating sides and cropped by the section edge.
   overflow: clip (not hidden) keeps position: sticky working inside these sections. */
.numbers, #products, #about, #contact { position: relative; isolation: isolate; overflow: clip; }
.section-mark {
  position: absolute; z-index: -1; pointer-events: none;
  top: 50%; height: min(78%, 640px); width: auto; translate: 0 -50%;
  fill: var(--plum); fill-rule: evenodd; opacity: .05;
}
.mark-left { left: 0; transform: translateX(-28%); }
.mark-right { right: 0; transform: translateX(28%); }
/* The N behind "Regional know-how" drifts slightly on scroll; main.js sets --py */
.numbers .section-mark { translate: 0 calc(-50% + var(--py, 0px)); }
.numbers .section-mark, #contact .section-mark { fill: #fff; opacity: .045; }
/* Contact: centre the letter on the text block, above the full-width map */
#contact .section-mark { top: 0; height: calc(100% - clamp(380px, 48vw, 560px)); translate: none; }
/* Phones/tablets: the tall stacked text block made the A fill the whole background; keep it a moderate letter
   at the bottom right, just above the map, cropped by the right edge. */
@media (max-width: 1023px) {
  /* Home "Why choose us" V: about 60% of the screen width visible (72% of it shows after the 28% edge crop). */
  #about .section-mark { width: calc(60vw / .72); height: auto; }
  .a-close .section-mark { top: auto; bottom: 0; translate: none; } /* About quote card: A sits on the bottom edge */
  #contact .section-mark { top: auto; bottom: clamp(380px, 48vw, 560px); left: auto; right: 0; height: min(62%, 380px); transform: translateX(32%); }
}
@media (max-width: 767px) { .section-mark { height: min(60%, 420px); opacity: .04; } }
/* Products is a tall scrolling section: the O rides along under the header instead of sitting at its middle */
.mark-pin { position: sticky; top: var(--header-h); height: 0; z-index: -1; }
.mark-pin .section-mark { top: 24px; height: min(calc(100vh - var(--header-h) - 48px), 640px); translate: none; }
