/* Beacorp. Reasons for each choice are in DESIGN.md. */
@font-face {
  font-family: "Young Serif";
  src: url("/fonts/young-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #1b1f27;
  --muted: #555c68;
  --paper: #fbfaf7;
  --cream: #f6eee2;
  --white: #fff;
  --line: #e3ddd2;
  --navy: #13325b;
  --navy-2: #0c2341;
  --navy-ink: #cfdbec;
  --navy-bg: #204c80;   /* large navy areas: lighter than the brand navy, still 8.7:1 with white */
  --navy-bg-2: #173a66; /* footer: one step darker to ground the page */
  --gold: #e8b04a;
  --gold-2: #f2c46c;
  /* faint texture for navy surfaces: fine print-like grain plus a soft wash of light from one corner */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.6 0 0 0 -.7'/%3E%3C/filter%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 0 0 0 -.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23l)' opacity='.2'/%3E%3Crect width='100%25' height='100%25' filter='url(%23d)' opacity='.3'/%3E%3C/svg%3E");
  /* soap bubbles: two tiles of different sizes, generated by tools/bubbles.py */
  --bubbles-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560'%3E%3Cdefs%3E%3CradialGradient id='f'%3E%3Cstop offset='.62' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='.12'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='357.1' cy='61.5' r='22.4' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M341.5 56.0A11.2 11.2 0 0 1 352.8 46.4' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='64.7' cy='283.6' r='34.5' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M40.8 275.2A17.2 17.2 0 0 1 58.0 260.5' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='73.8' cy='83.8' r='38.3' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.4'/%3E%3Cpath d='M47.2 74.4A19.1 19.1 0 0 1 66.3 58.1' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='312.5' cy='236.4' r='67.1' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='2.4'/%3E%3Cpath d='M265.9 220.0A33.5 33.5 0 0 1 299.4 191.5' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='3.1' stroke-linecap='round'/%3E%3Ccircle cx='468.7' cy='169.2' r='14.8' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M458.4 165.6A7.4 7.4 0 0 1 465.8 159.3' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='181.4' cy='442.7' r='20.6' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M167.1 437.7A10.3 10.3 0 0 1 177.4 428.9' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='190.8' cy='321.1' r='37.9' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.4'/%3E%3Cpath d='M164.4 311.8A19.0 19.0 0 0 1 183.4 295.7' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='425.5' cy='378.4' r='30.8' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M404.2 370.8A15.4 15.4 0 0 1 419.5 357.8' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='291.7' cy='453.9' r='46.2' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.6'/%3E%3Cpath d='M259.6 442.6A23.1 23.1 0 0 1 282.7 423.0' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E");
  --bubbles-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='380'%3E%3Cdefs%3E%3CradialGradient id='f'%3E%3Cstop offset='.62' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='.12'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='235.4' cy='183.0' r='19.8' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M221.7 178.1A9.9 9.9 0 0 1 231.6 169.7' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='292.3' cy='194.1' r='21.9' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M277.1 188.8A10.9 10.9 0 0 1 288.0 179.5' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='13.8' cy='144.3' r='10.7' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M6.4 141.7A5.4 5.4 0 0 1 11.8 137.1' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='296.1' cy='93.3' r='7.4' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M291.0 91.5A3.7 3.7 0 0 1 294.7 88.3' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='370.3' cy='276.5' r='6.8' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M365.5 274.8A3.4 3.4 0 0 1 368.9 271.9' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='352.4' cy='142.7' r='8.3' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M346.6 140.7A4.2 4.2 0 0 1 350.8 137.2' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='65.7' cy='331.8' r='22.4' fill='url(%23f)' stroke='%23fff' stroke-opacity='.22' stroke-width='1.2'/%3E%3Cpath d='M50.2 326.3A11.2 11.2 0 0 1 61.4 316.8' fill='none' stroke='%23fff' stroke-opacity='.38' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --glow: radial-gradient(120% 90% at 85% 0%, rgba(150, 190, 240, .20), transparent 60%);
  --r: 14px;
  --r-sm: 8px;
  --wrap: 1200px;
  --pad: clamp(18px, 4vw, 40px);
  --sec: clamp(60px, 8.5vw, 124px);
  --edge: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --out: cubic-bezier(.16, 1, .3, 1);
  --head: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: clamp(1rem, .96rem + .2vw, 1.125rem)/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-2); }
a[href], button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.3rem + 4.4vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.wrap.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 30; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
section { padding-block: var(--sec); }
.tint { background: var(--cream); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: var(--r-sm); background: var(--navy); color: #fff; text-decoration: none; font: inherit; font-weight: 600; border: 2px solid transparent; transition: background .15s, transform .2s var(--out); }
.btn:hover { background: var(--navy-2); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold); color: var(--navy-2); }
.btn.gold:hover { background: var(--gold-2); color: var(--navy-2); }
.btn.line { background: transparent; border-color: currentColor; color: inherit; }
.btn.line:hover { background: rgba(127, 127, 127, .12); color: inherit; }
.btn.light { background: var(--white); color: var(--navy); }
.btn.light:hover { background: var(--cream); color: var(--navy); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; transition: transform .4s var(--out), box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(12, 35, 65, .08); }
.site-header.hide { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: var(--head); }
.brandmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.35rem; margin-right: auto; }
.brandmark img { width: 46px; height: 46px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); border-radius: var(--r-sm); font-size: .95rem; transition: background .15s; }
.nav a:hover { background: var(--cream); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.head-cta { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.nav-narrow { display: none; }
@media (max-width: 1020px) {
  .nav-wide, .head-cta { display: none; }
  .nav-narrow { display: block; }
  .nav summary { list-style: none; min-height: 44px; display: flex; align-items: center; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600; }
  .nav summary::-webkit-details-marker { display: none; }
  .nav details[open] summary { background: var(--navy); color: #fff; border-color: var(--navy); }
  /* full-screen menu on phones */
  .nav details ul { position: fixed; inset: var(--head) 0 0 0; flex-direction: column; gap: 0; background: var(--navy-bg); padding: 12px var(--pad) 40px; overflow-y: auto; }
  .nav details a { padding: 16px 0; font-family: var(--serif); font-size: 1.6rem; color: #fff; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .nav details a:hover { background: none; color: var(--gold-2); }
  .nav details a[aria-current="page"] { background: none; color: var(--gold-2); }
  .nav details a.menu-wa { font-family: inherit; font-size: 1.05rem; font-weight: 600; color: var(--gold-2); border: 0; margin-top: 12px; }
  .nav details[open] li { animation: menu-in .5s var(--out) both; animation-delay: calc(var(--n, 0) * 45ms); }
}
@media (min-width: 1021px) { .nav .menu-wa { display: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(18px); } }

/* floating WhatsApp button on phones: the main way customers reach the company */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 15; display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--gold); color: var(--navy-2); transition: opacity .2s, transform .2s var(--out); text-decoration: none; font-weight: 600; font-size: .95rem; box-shadow: 0 8px 24px rgba(12, 35, 65, .3); }
.wa-float:hover { color: var(--navy-2); background: var(--gold-2); }
.wa-float.away { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; }
@media (max-width: 1020px) { .wa-float { display: inline-flex; } }

/* section heading row */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 40px); }
.sec-head h2 { margin-bottom: .2em; }
.sec-head p { margin: 0; max-width: 36em; }

/* ---------- home: hero ---------- */
.hero { background: var(--navy-bg); color: #fff; padding-block: clamp(44px, 6vw, 96px) clamp(110px, 11vw, 168px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero .lead { color: var(--navy-ink); max-width: 32em; }
.hero h1 { max-width: 9.5em; }
.hero .place { color: var(--gold-2); font-weight: 600; margin-bottom: 14px; }
.pile { position: relative; aspect-ratio: 1 / .82; }
.pile img { position: absolute; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .35)); transform: rotate(var(--rot)); animation: settle 1s var(--out) both; }
.pile img:nth-child(1) { width: 34%; left: 4%; top: 6%; --rot: -8deg; animation-delay: .05s; }
.pile img:nth-child(2) { width: 29%; left: 38%; top: 0; --rot: 5deg; animation-delay: .15s; }
.pile img:nth-child(3) { width: 30%; left: 68%; top: 12%; --rot: 9deg; animation-delay: .25s; }
.pile img:nth-child(4) { width: 36%; left: 12%; top: 54%; --rot: 6deg; animation-delay: .35s; }
.pile img:nth-child(5) { width: 30%; left: 50%; top: 50%; --rot: -6deg; animation-delay: .45s; }
.pile img:nth-child(6) { width: 22%; left: 77%; top: 58%; --rot: -14deg; animation-delay: .55s; }
@keyframes settle { from { opacity: 0; transform: translateY(-48px) rotate(calc(var(--rot) * -1.5)); } to { opacity: 1; transform: rotate(var(--rot)); } }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .pile { max-width: 520px; width: 100%; margin: 8px auto 0; }
}

/* facts card straddles the hero edge */
.facts-band { padding: 0; margin-top: clamp(-76px, -6vw, -56px); position: relative; z-index: 2; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--r); box-shadow: 0 14px 36px rgba(19, 50, 91, .14); }
.facts div { padding: clamp(18px, 2.4vw, 30px); }
.facts div + div { border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: .95rem; }
.tint .facts { box-shadow: none; }
@media (max-width: 700px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- sideways rows ---------- */
/* A window as wide as the page content: whole cards only, the rest slides in from behind its edges. */
.scroller-wrap { position: relative; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); --gap: 16px; --n: 1; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 22px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
.row-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: -6px; }
/* wide screens: arrows sit in the margins either side of the window, level with the pictures */
@media (min-width: 1340px) {
  .row-nav { position: absolute; left: calc(var(--pad) - 72px); right: calc(var(--pad) - 72px); top: 0; bottom: 22px; margin: 0; align-items: center; justify-content: space-between; pointer-events: none; }
  .row-nav .arrow { pointer-events: auto; }
}
.row-nav[hidden] { display: none; }
.arrow { width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--navy); display: grid; place-items: center; border: 1px solid var(--line); transition: transform .2s var(--out), opacity .2s; }
.arrow.prev svg { transform: rotate(180deg); }
.arrow:hover:not(:disabled) { transform: scale(1.1); }
.arrow:disabled { opacity: .35; }

/* ---------- brand cards ---------- */
.brands-sec { background: var(--cream); }
.scroller-wrap:has(.brand-cards) { --n: 2; }
@media (min-width: 600px) { .scroller-wrap:has(.brand-cards) { --n: 3; } }
@media (min-width: 880px) { .scroller-wrap:has(.brand-cards) { --n: 4; } }
@media (min-width: 1100px) { .scroller-wrap:has(.brand-cards) { --n: 5; } }
.brand-cards.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.brand-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 var(--line); transition: transform .3s var(--out), box-shadow .3s; }
.brand-card:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(19, 50, 91, .16); color: var(--ink); }
/* each brand's own colour behind one of its real packs */
.brand-card .shot { position: relative; aspect-ratio: 5 / 4; background: var(--c); }
.brand-card .shot img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; transform: rotate(-6deg); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .3)); transition: transform .4s var(--out); }
.brand-card:nth-child(even) .shot img { transform: rotate(5deg); }
.brand-card:hover .shot img { transform: rotate(0) scale(1.1); }
.brand-card .txt { padding: 12px 14px 14px; }
.brand-card .txt img { height: 34px; width: auto; max-width: 100%; object-fit: contain; object-position: left; margin-bottom: 6px; }
.brand-card span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.4; }

/* brands page: index with sticky column */
.index { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.index-side { position: sticky; top: calc(var(--head) + 24px); }
.index-side ul { list-style: none; padding: 0; margin: 24px 0 0; }
.index-side li a { display: flex; justify-content: space-between; min-height: 48px; align-items: center; border-bottom: 1px solid #e2d6c3; text-decoration: none; color: var(--ink); transition: padding .25s var(--out); }
.index-side li a:hover { color: var(--navy); padding-left: 8px; }
.index-side li span { color: var(--muted); }
@media (max-width: 880px) { .index { grid-template-columns: 1fr; } .index-side { position: static; } }
.brand-group + .brand-group { margin-top: 44px; }
.page-head + .brands-sec { padding-top: 16px; }
/* category header photos: a dark scrim at the bottom keeps the white label readable on any photo */
.cat-photo { position: relative; border-radius: var(--r); overflow: hidden; margin-bottom: 14px; aspect-ratio: 16 / 5; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-photo h3 { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 18px 14px; color: #fff; font-size: 1.5rem; background: linear-gradient(transparent, rgba(0, 0, 0, .68)); }
@media (max-width: 600px) { .cat-photo { aspect-ratio: 16 / 7; } }
.side-still { margin: 28px 0 0; }
.side-still img { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 880px) { .side-still { display: none; } }

/* ---------- home: what we make ---------- */
.make { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.make > img { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 880px) { .make { grid-template-columns: 1fr; } .make > img { aspect-ratio: 16 / 10; } }
.make-list { list-style: none; padding: 0; margin: 24px 0 0; }
.make-list a { display: grid; grid-template-columns: minmax(120px, 170px) 1fr 20px; gap: 16px; align-items: center; padding: 18px 12px 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: padding .3s var(--out), background .2s; border-radius: 0; }
.make-list li:last-child a { border-bottom: 1px solid var(--line); }
.make-list a:hover { padding-left: 14px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--ink); }
.make-list b { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.make-list span { color: var(--muted); }
.make-list svg { color: var(--navy); transition: transform .3s var(--out); }
.make-list a:hover svg { transform: translateX(4px); }
@media (max-width: 560px) { .make-list a { grid-template-columns: 1fr 20px; } .make-list span { grid-column: 1; grid-row: 2; } .make-list svg { grid-row: 1 / 3; grid-column: 2; } }

/* ---------- full-width photo band ---------- */
.band { position: relative; padding: 0; min-height: clamp(420px, 52vw, 640px); display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--navy-2); }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 35, 65, .94) 0%, rgba(12, 35, 65, .78) 45%, rgba(12, 35, 65, .25) 100%); }
.band .wrap { position: relative; z-index: 1; width: 100%; padding-block: clamp(40px, 6vw, 88px); }
.band-text { max-width: 31em; }
.band-text p { color: var(--navy-ink); }
@media (max-width: 700px) { .band::after { background: linear-gradient(0deg, rgba(12, 35, 65, .96) 0%, rgba(12, 35, 65, .8) 55%, rgba(12, 35, 65, .3) 100%); } }

/* ---------- photo shelf ---------- */
.shelf-sec { background: var(--paper); }
.shelf-sec + .history-sec, .band + .shelf-sec { margin-top: 0; }
@media (min-width: 700px) { .scroller-wrap:has(.shelf) { --n: 2; } }
.shelf a { position: relative; display: block; border-radius: var(--r); overflow: hidden; }
.shelf img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--out); }
.shelf a:hover img, .shelf a:focus-visible img { transform: scale(1.06); }
.shelf span { position: absolute; left: 14px; bottom: 14px; background: var(--c); color: #fff; font-weight: 600; padding: 6px 12px; border-radius: var(--r-sm); }

/* ad films (hidden until SHOW_ADS is on) */
.ads-sec { background: var(--navy-2); color: #fff; }
.ads-sec p { color: var(--navy-ink); }
.ads { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--edge) 18px; scroll-padding-inline: var(--edge); }
.ad { margin: 0; flex: none; scroll-snap-align: start; }
.ad video { display: block; height: min(64vh, 520px); width: auto; max-width: 86vw; object-fit: contain; border-radius: var(--r); background: #000; }
.ad figcaption { padding-top: 10px; }
.ad figcaption a { color: #fff; }

/* ---------- history ---------- */
.history-sec { background: var(--navy-bg); color: #fff; }
.history-sec .muted { color: var(--navy-ink); }
.history-sec a { color: var(--gold-2); }
.years { list-style: none; margin: 36px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; }
.years::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: rgba(255, 255, 255, .2); }
.years li { position: relative; padding-top: 52px; color: var(--navy-ink); font-size: .95rem; }
.years b { position: absolute; top: 0; left: 0; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--gold-2); background: var(--grain), var(--navy-bg); padding-right: 10px; line-height: 1.4; }
@media (max-width: 880px) {
  .years { grid-template-columns: 1fr; gap: 0; border-left: 2px solid rgba(255, 255, 255, .2); margin-left: 4px; }
  .years::before { display: none; }
  .years li { padding: 0 0 22px 22px; }
  .years b { position: static; display: block; background: none; font-size: 1.4rem; }
}

/* ---------- export ---------- */
.export { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 880px) { .export { grid-template-columns: 1fr; } }
.regions { list-style: none; margin: 0; padding: 0; font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.8rem); line-height: 1.2; color: var(--navy); }
.regions li { padding: .32em 0; border-bottom: 1px solid var(--line); }
.regions li:first-child { border-top: 1px solid var(--line); }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
.ticks li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid #e2d6c3; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 6px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.h-gap { margin-top: 1.4em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 60px; padding: 12px 0; font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: system-ui, sans-serif; font-size: 1.6rem; line-height: 1; color: var(--navy); transition: transform .3s var(--out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 44em; color: var(--muted); padding-bottom: 8px; }

/* ---------- certificates ---------- */
.cert-row { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 880px) { .cert-row { grid-template-columns: 1fr; } }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.certs figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.certs img { width: 100%; aspect-ratio: 500 / 354; object-fit: cover; }
.certs figcaption { padding: 12px 14px; font-size: .92rem; }
.cert-gap { margin-top: 36px; }

/* ---------- csr ---------- */
.csr { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.csr figure { margin: 0; }
.csr img { border-radius: var(--r); border: 1px solid var(--line); width: 100%; }
.csr figcaption { padding-top: 10px; }
.csr small { color: var(--muted); display: block; }

/* ---------- careers strip + contact band ---------- */
.careers-strip { background: var(--navy-bg); color: #fff; }
.careers-strip .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 16px clamp(24px, 4vw, 56px); align-items: center; }
.careers-strip h2, .careers-strip p { margin: 0; }
.careers-strip p { color: var(--navy-ink); max-width: 36em; }
@media (max-width: 880px) { .careers-strip .wrap { grid-template-columns: 1fr; } .careers-strip .btn { justify-self: start; } }
.contact-band { background: var(--cream); border-top: 4px solid var(--gold); }
.contact-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 40px; align-items: center; }
.contact-band h2 { color: var(--navy); }
.contact-band p { color: var(--muted); margin: 0; }
.contact-band .btns { margin-top: 0; justify-content: flex-end; }
@media (max-width: 880px) { .contact-band .wrap { grid-template-columns: 1fr; } .contact-band .btns { justify-content: flex-start; } }

/* ---------- inner pages ---------- */
.page-head { background: var(--cream); padding-block: clamp(36px, 5vw, 72px) clamp(32px, 4vw, 56px); }
.page-head h1 { color: var(--navy); margin-bottom: .25em; }
.page-head .lead { max-width: 40em; color: var(--muted); margin: 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.subnav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-sm); background: var(--white); color: var(--ink); text-decoration: none; }
.subnav a[aria-current="page"] { background: var(--navy); color: #fff; }
.banner-sec { padding: 40px 0 0; }
.banner { border-radius: var(--r); overflow: hidden; }
.banner img { width: 100%; aspect-ratio: 1440 / 560; object-fit: cover; }
.prose { max-width: 680px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split > img { border-radius: var(--r); width: 100%; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.timeline b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--navy); }
.jobs { list-style: none; padding: 0; margin: 0 0 24px; }
.jobs li { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.15rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list b { display: block; font-size: .9rem; color: var(--muted); font-weight: 600; }
.contact-list a { font-size: 1.15rem; }

/* ---------- brand page ---------- */
.brand-hero { padding: 0; height: clamp(220px, 40vw, 540px); overflow: hidden; background: var(--c); }
.brand-hero img { width: 100%; height: 100%; object-fit: cover; }
.brand-intro { padding-block: 0 clamp(28px, 4vw, 52px); background: color-mix(in srgb, var(--c) 9%, #fff); border-bottom: 4px solid var(--c); }
.brand-top { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3.5vw, 48px); align-items: start; }
.brand-top .logo { position: relative; z-index: 1; background: var(--white); border-radius: var(--r); padding: clamp(16px, 2.2vw, 28px); margin-top: clamp(-72px, -6vw, -40px); box-shadow: 0 14px 36px rgba(0, 0, 0, .16); }
.brand-top .logo img { max-height: clamp(64px, 8vw, 104px); width: auto; }
.brand-top > div:last-child { padding-top: clamp(20px, 3vw, 36px); }
.brand-intro h1 { color: var(--c); margin: 0 0 .2em; }
.brand-intro .lead { color: var(--ink); max-width: 36em; }
@media (max-width: 640px) { .brand-top { grid-template-columns: 1fr; gap: 0; } .brand-top .logo { justify-self: start; } }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { background: var(--white); border-radius: var(--r-sm); padding: 6px 12px; font-size: .9rem; color: var(--muted); }
.prod-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: clamp(20px, 3vw, 32px) 0 0; }
.prod-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--c, var(--navy)) 30%, #fff); background: var(--white); color: var(--ink); text-decoration: none; font-size: .95rem; transition: background .15s, color .15s; }
.prod-nav a:hover { background: var(--c, var(--navy)); border-color: var(--c, var(--navy)); color: #fff; }
.products { padding-top: clamp(24px, 4vw, 56px); }
.product { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: clamp(32px, 4.5vw, 60px); border-top: 1px solid var(--line); }
.product:first-child { border-top: 0; }
.product:nth-child(even) .product-text { order: 2; }
.product h2 { color: var(--c); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; } .product:nth-child(even) .product-text { order: 0; } }
/* pack tiles: one size for every pack, laid at small angles like a flatlay; tap to enlarge */
.packs { display: grid; grid-template-columns: repeat(auto-fill, 176px); gap: 14px; }
.packs figure { position: relative; margin: 0; width: 176px; aspect-ratio: 1; background: var(--white); border: 1px solid color-mix(in srgb, var(--c) 20%, #fff); border-radius: var(--r); transition: box-shadow .3s, transform .3s var(--out); }
.packs figure:hover { box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 22%, transparent); transform: translateY(-4px); }
.packs a { position: absolute; inset: 0; border-radius: var(--r); cursor: zoom-in; }
.packs img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; transform: rotate(-3deg); transition: transform .4s var(--out); }
.packs figure:nth-child(even) img { transform: rotate(3deg); }
.packs figure:hover img { transform: rotate(0) scale(1.08); }
@media (max-width: 480px) { .packs { grid-template-columns: 1fr 1fr; } .packs figure { width: auto; } }
dialog.lightbox { border: 0; border-radius: var(--r); padding: 18px; width: min(92vw, 640px); background: var(--white); color: var(--ink); }
dialog.lightbox::backdrop { background: rgba(12, 35, 65, .82); }
dialog.lightbox[open] { animation: pop .35s var(--out); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.lightbox .btn { min-height: 44px; padding: 6px 16px; }
.lightbox img { max-height: 66vh; width: auto; max-width: 100%; margin: 0 auto; }
.lightbox p { margin: 14px 0 0; text-align: center; }
.other-brands { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.other-brands a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-top: 3px solid var(--oc); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); background: var(--white); transition: transform .2s var(--out); }
.other-brands a:hover { border-color: var(--oc); color: var(--ink); transform: translateY(-2px); }

/* ---------- products page ---------- */
.products-page { padding-top: clamp(20px, 3vw, 40px); }
.products-page .prod-nav { margin-top: 0; }
.pgroup { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.pgroup:last-child { border-bottom: 0; padding-bottom: 0; }
.pgroup:nth-of-type(even) .ptext { order: 2; }
@media (max-width: 880px) { .pgroup { grid-template-columns: 1fr; } .pgroup:nth-of-type(even) .ptext { order: 0; } }
.pvisual img { border-radius: var(--r); width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.pnote { margin: 0; background: var(--navy-bg); color: #fff; border-radius: var(--r); padding: clamp(28px, 5vw, 64px); font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.25; }
.pbrands { margin: 1.2em 0 0; }

/* footer */
.site-footer { background: var(--navy-bg-2); color: var(--navy-ink); padding: clamp(40px, 6vw, 72px) 0 calc(32px + 64px); font-size: .95rem; }
@media (min-width: 1021px) { .site-footer { padding-bottom: 32px; } }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1.15rem; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-2); }
@media (max-width: 1020px) { .site-footer li { padding: 0; } .site-footer a { display: inline-block; padding-block: 11px; } }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); color: #a9b8cd; }

/* ---------- motion ---------- */
/* Page-to-page: a soft cross-fade, and the brand logo travels from its card to the brand page. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
}
/* Photos drift slightly inside their frame while the page scrolls (browsers without support show them still). */
.parallax { overflow: hidden; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .parallax img { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { transform: translateY(-7%) scale(1.16); } to { transform: translateY(7%) scale(1.16); } }
  }
}
/* Entrance (motion.js adds .js on <html> and .in when a block enters view). Plays once, no bounce. */
.js [data-anim]:not([data-stagger]):not([data-mask]) { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .9s var(--out); }
.js [data-anim].in:not([data-stagger]):not([data-mask]) { opacity: 1; transform: none; }
.js .make > img[data-anim], .js .split > img[data-anim], .js .pvisual[data-anim] { transform: translateY(0) scale(.94); }
.js [data-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .8s var(--out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-stagger].in > * { opacity: 1; transform: none; }
.js .scroller[data-stagger] > *, .js .ads[data-stagger] > * { transform: translateX(64px); }
.js .scroller[data-stagger].in > *, .js .ads[data-stagger].in > * { transform: none; }
.js .regions[data-stagger] > * { transform: translateX(-28px); }
.js .regions[data-stagger].in > * { transform: none; }
/* brand cards: card arrives, then its pack settles onto the colour panel */
.js .brand-cards[data-stagger] .shot img { transform: rotate(0) translateY(-18px) scale(.9); opacity: 0; transition: transform .9s var(--out), opacity .5s ease; transition-delay: calc(var(--i, 0) * 70ms + .25s); }
.js .brand-cards[data-stagger].in .brand-card .shot img { transform: rotate(-6deg); opacity: 1; }
.js .brand-cards[data-stagger].in .brand-card:nth-child(even) .shot img { transform: rotate(5deg); }
.js .brand-cards[data-stagger].in .brand-card:hover .shot img { transform: rotate(0) scale(1.1); transition-delay: 0s; }
/* once a group has arrived, hover effects respond at once */
.js [data-stagger].done > *, .js .brand-cards[data-stagger].done .shot img { transition-delay: 0s; }
/* headings rise out of a mask */
[data-mask] .m { display: block; overflow: hidden; padding-bottom: .1em; }
[data-mask] .m > span { display: block; }
.js [data-mask] .m > span { transform: translateY(108%); transition: transform 1s var(--out); }
.js [data-mask].in .m > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- navy texture (declared last so it layers over each surface's own colour) ---------- */
.hero, .careers-strip, .pnote, .nav details ul { background-image: var(--grain), var(--glow); }
.history-sec, .site-footer { background-image: var(--grain); }
/* Soap bubbles sit on their own layer, faded out wherever body text sits so rings never cross it. */
.hero, .history-sec, .careers-strip { position: relative; isolation: isolate; }
.hero::before, .history-sec::before, .careers-strip::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--bubbles-a), var(--bubbles-b); }
.hero::before { background-position: 62% 30%, 20% 70%; -webkit-mask-image: linear-gradient(to right, transparent 36%, #000 58%); mask-image: linear-gradient(to right, transparent 36%, #000 58%); }
.history-sec::before { background-position: 10% 0, 75% 40%; -webkit-mask-image: radial-gradient(55% 45% at 100% 0, #000 30%, transparent 80%); mask-image: radial-gradient(55% 45% at 100% 0, #000 30%, transparent 80%); }
.careers-strip::before { background-position: 30% 40%, 80% 10%; -webkit-mask-image: linear-gradient(to left, #000 8%, transparent 30%, transparent 72%, #000 100%); mask-image: linear-gradient(to left, #000 8%, transparent 30%, transparent 72%, #000 100%); }
@media (max-width: 880px) {
  .hero::before { -webkit-mask-image: linear-gradient(to bottom, transparent 52%, #000 66%); mask-image: linear-gradient(to bottom, transparent 52%, #000 66%); }
  .careers-strip::before { -webkit-mask-image: radial-gradient(60% 50% at 100% 0, #000 20%, transparent 80%); mask-image: radial-gradient(60% 50% at 100% 0, #000 20%, transparent 80%); }
}
