/* ==========================================================================
   Effective Pallets Company — V3 design (home page /)
   Dark timber + warm paper, one amber accent. No framework: plain CSS.
   ========================================================================== */
:root {
    --night: #0D0B09;
    --night-2: #161210;
    --night-3: #211B17;
    --paper: #F6F1EA;
    --paper-2: #EDE5DA;
    --white: #FFFDF9;
    --ink: #1A1511;
    --ink-2: #4A4038;
    --ink-3: #6E6359;
    --line: rgba(26, 21, 17, .12);
    --line-dark: rgba(255, 245, 230, .12);
    --amber: #E3A15B;
    --amber-2: #F2C48E;
    --amber-deep: #9A5A1E;
    --eco: #8DB487;
    --radius: 22px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.65, 0, .35, 1);
    --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
    --serif: 'Instrument Serif', Georgia, serif;
    --body: 'Inter', system-ui, sans-serif;
    --wrap: min(1240px, 100% - 40px);
}
@media (min-width: 768px) { :root { --wrap: min(1240px, 100% - 64px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: var(--body); font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--night); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: var(--wrap); margin-inline: auto; }
.ico { width: 1.1em; height: 1.1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- type ---------- */
.display {
    font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: .95;
    font-variation-settings: 'opsz' 96;
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.on-dark .eyebrow { color: rgba(255, 245, 230, .6); }
.h2 { font-size: clamp(2.4rem, 6vw, 5rem); }
.h2 .serif { color: var(--amber-deep); }
.on-dark .h2 .serif { color: var(--amber); }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); max-width: 34rem; }
.on-dark .lede { color: rgba(255, 245, 230, .68); }

/* ---------- buttons ---------- */
.btn {
    --bg: var(--amber); --fg: var(--night);
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
    min-height: 52px; padding: 0 1.15rem 0 1.5rem; border-radius: 999px;
    background: var(--bg); color: var(--fg); font-weight: 600; font-size: .95rem; white-space: nowrap;
    transition: transform .5s var(--ease), color .4s var(--ease);
}
.btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: var(--night); transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--white); }
.btn-arrow {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px;
    background: var(--night); color: var(--amber); overflow: hidden; position: relative;
    transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover .btn-arrow { background: var(--amber); color: var(--night); }
.btn-arrow .ico { transition: transform .5s var(--ease); }
.btn:hover .btn-arrow .ico { animation: arrow-loop .6s var(--ease); }
@keyframes arrow-loop { 0% { transform: translateX(0); } 49% { transform: translateX(140%); } 50% { transform: translateX(-140%); } 100% { transform: translateX(0); } }
.btn--ghost { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 245, 230, .28); padding: 0 1.5rem; }
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover { color: var(--night); }
.btn--dark { --bg: var(--night); --fg: var(--white); }
.btn--dark::before { background: var(--amber); }
.btn--dark:hover { color: var(--night); }
.btn--dark .btn-arrow { background: var(--amber); color: var(--night); }
.btn--dark:hover .btn-arrow { background: var(--night); color: var(--amber); }

/* ==========================================================================
   HEADER — floating glass pill
   ========================================================================== */
.hdr {
    position: fixed; z-index: 50; top: 14px; left: 0; right: 0;
    pointer-events: none; transition: transform .6s var(--ease);
}
.hdr.is-hidden { transform: translateY(calc(-100% - 20px)); }
.hdr-bar {
    pointer-events: auto; position: relative;
    width: min(1240px, 100% - 24px); margin-inline: auto;
    display: flex; align-items: center; gap: 12px;
    height: 64px; padding: 0 8px 0 10px; border-radius: 999px;
    background: rgba(18, 15, 12, .38);
    -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: inset 0 0 0 1px rgba(255, 245, 230, .12), 0 20px 50px -30px rgba(0, 0, 0, .7);
    color: var(--white);
    transition: background .5s var(--ease), height .5s var(--ease), width .6s var(--ease);
}
.hdr.is-scrolled .hdr-bar { background: rgba(16, 13, 11, .82); height: 58px; width: min(1120px, 100% - 24px); }
.hdr-progress {
    position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; border-radius: 2px; overflow: hidden;
    background: transparent;
}
.hdr-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, transparent, var(--amber)); transform-origin: left; transform: scaleX(var(--p, 0)); }

.brand { display: flex; align-items: center; gap: 10px; padding-right: 6px; }
.brand-mark {
    position: relative; width: 44px; height: 44px; border-radius: 999px; background: var(--white);
    display: grid; place-items: center; flex-shrink: 0;
}
.hdr.is-scrolled .brand-mark { width: 40px; height: 40px; }
.brand-mark img { width: 72%; height: 72%; object-fit: contain; }
.brand-ring { position: absolute; inset: -4px; transform: rotate(-90deg); }
.brand-ring circle { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: calc(151 - 151 * var(--p, 0)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.brand-text small { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 245, 230, .55); white-space: nowrap; }

.nav { position: relative; display: none; align-items: center; margin-inline: auto; padding: 4px; border-radius: 999px; background: rgba(255, 245, 230, .05); }
.nav a { position: relative; z-index: 1; padding: .55rem 1rem; font-size: .88rem; font-weight: 500; color: rgba(255, 245, 230, .7); border-radius: 999px; transition: color .3s; }
/* header: every item on one line. The full company name shows when the bar is wide enough;
   on mid-size screens and in the compact (scrolled) bar it gives way to "EPC". */
.nav a, .status { white-space: nowrap; }
@media (min-width: 1024px) { .nav a { padding-inline: .8rem; } }
@media (min-width: 1024px) and (max-width: 1399px) { .hdr .brand-text small { display: none; } }
.hdr.is-scrolled .brand-text small { display: none; }
.nav a:hover, .nav a.is-active { color: var(--white); }
.nav a.is-active::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 9px; background: var(--amber); }
.nav-pill {
    position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px;
    background: rgba(255, 245, 230, .1); opacity: 0;
    transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.hdr-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.status {
    display: none; align-items: center; gap: .5rem; height: 40px; padding: 0 .9rem; border-radius: 999px;
    font-size: .78rem; color: rgba(255, 245, 230, .75); box-shadow: inset 0 0 0 1px rgba(255, 245, 230, .12);
}
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 9px; background: #8a8a8a; }
.status.is-open .status-dot { background: #6BD48A; }
.status.is-open .status-dot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.hdr-call { display: none; width: 44px; height: 44px; border-radius: 999px; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 245, 230, .16); transition: background .3s; }
.hdr-call:hover { background: rgba(255, 245, 230, .1); }
.hdr-cta { min-height: 46px; padding: 0 .5rem 0 1.1rem; font-size: .88rem; }
.hdr-cta .btn-arrow { width: 32px; height: 32px; }
.hdr-cta-long { display: none; }
.burger { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 245, 230, .08); }
.burger span { position: absolute; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease); }
.burger { position: relative; }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.menu-open .burger span:first-child { transform: rotate(45deg); }
.menu-open .burger span:last-child { transform: rotate(-45deg); }

.brand-text small { white-space: nowrap; }
@media (max-width: 420px) { .brand-text small { display: none; } }
@media (min-width: 560px) { .hdr-cta-long { display: inline; } .hdr-call { display: grid; } }
@media (min-width: 1024px) {
    .nav { display: flex; }
    .burger { display: none; }
    .hdr-bar { padding: 0 8px 0 10px; }
    .hdr-actions { margin-left: 0; }
}
@media (min-width: 1240px) { .status { display: inline-flex; } }

/* mobile menu */
.menu {
    position: fixed; inset: 0; z-index: 45; background: var(--night); color: var(--white);
    display: flex; flex-direction: column; justify-content: space-between; padding: 110px 24px 32px;
    clip-path: circle(0 at calc(100% - 46px) 46px); visibility: hidden;
    transition: clip-path .8s var(--ease-io), visibility 0s .8s;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 46px) 46px); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.menu nav a {
    display: flex; align-items: baseline; gap: 14px; padding: .35rem 0;
    font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 10vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05;
    opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .7s var(--ease);
}
.menu nav a small { font-family: var(--body); font-size: .75rem; font-weight: 500; color: var(--amber); letter-spacing: .1em; }
.menu-open .menu nav a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .06s); }
.menu-foot { display: grid; gap: .5rem; color: rgba(255, 245, 230, .65); font-size: .95rem; opacity: 0; transition: opacity .5s .5s; }
.menu-open .menu-foot { opacity: 1; }
.menu-foot a { display: flex; align-items: center; gap: .6rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; background: var(--night); color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; overflow: hidden; will-change: transform, border-radius; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: hero-zoom 2.4s var(--ease) forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-media::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 11, 9, .55) 0%, rgba(13, 11, 9, 0) 28%),
        linear-gradient(0deg, rgba(13, 11, 9, .92) 0%, rgba(13, 11, 9, .45) 42%, rgba(13, 11, 9, .1) 70%),
        linear-gradient(90deg, rgba(13, 11, 9, .55), transparent 65%);
}
.hero-inner { position: relative; z-index: 2; min-height: 100svh; padding-top: 112px; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(28px, 5vh, 56px); }
.hero-tag {
    display: inline-flex; align-items: center; gap: .6rem; align-self: flex-start;
    padding: .45rem .9rem .45rem .5rem; border-radius: 999px; font-size: .8rem; color: rgba(255, 245, 230, .85);
    background: rgba(255, 245, 230, .08); box-shadow: inset 0 0 0 1px rgba(255, 245, 230, .14);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-tag b { padding: .15rem .55rem; border-radius: 999px; background: var(--amber); color: var(--night); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.hero-title { margin-top: 22px; font-size: clamp(2.9rem, min(10.5vw, 14.5vh), 9.6rem); max-width: 13ch; }
.hero-title .serif { color: var(--amber-2); font-size: 1.04em; letter-spacing: -.02em; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; transform: translateY(105%); animation: line-up 1.2s var(--ease) forwards; animation-delay: calc(.15s + var(--i, 0) * .1s); }
@keyframes line-up { to { transform: none; } }
.hero-row { margin-top: clamp(24px, 4vh, 44px); display: grid; gap: 28px; align-items: end; }
.hero-row .lede { color: rgba(255, 245, 230, .75); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.fade-up { opacity: 0; transform: translateY(24px); animation: fade-up 1s var(--ease) forwards; animation-delay: var(--d, .6s); }
@keyframes fade-up { to { opacity: 1; transform: none; } }
.hero-stats { margin-top: clamp(28px, 5vh, 52px); display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-dark); }
.hero-stat { padding: 18px 0 0; }
.hero-stat dd { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.03em; line-height: 1; }
.hero-stat dd i { font-style: normal; color: var(--amber); }
.hero-stat dt { margin-top: 6px; font-size: .8rem; color: rgba(255, 245, 230, .55); }
.scroll-cue { position: absolute; z-index: 2; right: 20px; bottom: 30px; display: none; align-items: center; gap: 12px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 245, 230, .55); writing-mode: vertical-rl; }
.scroll-cue::after { content: ''; width: 1px; height: 56px; background: linear-gradient(var(--amber), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 768px) {
    .hero-row { grid-template-columns: 1fr auto; }
    .hero-stats { grid-template-columns: repeat(4, 1fr); }
    .scroll-cue { display: flex; }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { background: var(--amber); color: var(--night); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg) scale(1.02); margin-top: -14px; position: relative; z-index: 3; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -.02em; white-space: nowrap; }
.marquee-track span::after { content: '✦'; font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.sec { padding: clamp(88px, 13vw, 160px) 0; position: relative; }
.sec-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head .h2 { margin-top: 18px; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.on-dark { background: var(--night); color: var(--white); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- services ---------- */
.svc { display: grid; gap: 0; }
@media (min-width: 1024px) { .svc { grid-template-columns: 1fr 1fr; gap: 64px; } }
.svc-stage { display: none; }
@media (min-width: 1024px) {
    .svc-stage { display: block; position: sticky; top: 100px; height: calc(100vh - 140px); max-height: 720px; border-radius: var(--radius); overflow: hidden; background: var(--night); }
    .svc-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
    .svc-stage video.on { opacity: 1; transform: none; }
    .svc-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 11, 9, .7), transparent 45%); pointer-events: none; }
    .svc-stage-cap { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 24px; display: flex; justify-content: space-between; align-items: end; color: var(--white); }
    .svc-stage-num { font-family: var(--display); font-weight: 700; font-size: 5rem; line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 245, 230, .7); }
    .svc-stage-title { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 245, 230, .7); }
    .svc-dots { position: absolute; z-index: 2; top: 24px; left: 28px; display: flex; gap: 6px; }
    .svc-dots i { width: 22px; height: 3px; border-radius: 3px; background: rgba(255, 245, 230, .3); transition: background .4s, width .4s var(--ease); }
    .svc-dots i.on { background: var(--amber); width: 44px; }
}
.svc-list { border-top: 1px solid var(--line); }
.svc-item { padding: 36px 0; border-bottom: 1px solid var(--line); transition: opacity .5s var(--ease); }
@media (min-width: 1024px) {
    .svc-item { padding: 52px 0; min-height: 52vh; display: flex; flex-direction: column; justify-content: center; opacity: .32; }
    .svc-item.on { opacity: 1; }
    .svc-item-media { display: none; }
}
.svc-item-media { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--night); margin-bottom: 24px; }
.svc-item-media video { width: 100%; height: 100%; object-fit: cover; }
.svc-top { display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.svc-top .num { color: var(--amber-deep); }
.svc-badge { padding: .2rem .6rem; border-radius: 999px; font-size: .68rem; letter-spacing: .08em; background: rgba(141, 180, 135, .2); color: #3F6B3A; }
.svc-title { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.035em; line-height: 1; }
.svc-text { margin-top: 14px; color: var(--ink-2); max-width: 32rem; }
.svc-feats { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--ink-2); }
.svc-feats li { display: flex; align-items: center; gap: .45rem; }
.svc-feats .ico { color: var(--amber-deep); width: 1em; height: 1em; }
.chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.chip {
    display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px;
    background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums;
    transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease);
}
.chip:hover { background: var(--night); color: var(--white); transform: translateY(-2px); }
.chip--alt { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--amber-deep); border: 1px dashed transparent; }

/* ---------- sous-traitance: dark video card that settles into place ---------- */
.st { padding: 0 12px; }
.st-card {
    position: relative; isolation: isolate; overflow: hidden;
    max-width: 1440px; margin-inline: auto; border-radius: 32px; background: var(--night); color: var(--white);
    transform: scale(var(--s, 1)); transform-origin: 50% 0;
}
.st-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.st-card::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(13, 11, 9, .92) 0%, rgba(13, 11, 9, .7) 50%, rgba(13, 11, 9, .35) 100%),
                linear-gradient(0deg, rgba(13, 11, 9, .6), transparent 50%);
}
.st-body { display: grid; gap: 40px; padding: clamp(56px, 8vw, 110px) clamp(22px, 6vw, 88px); }
.st-copy .eyebrow { color: rgba(255, 245, 230, .6); }
.st-copy .h2 { margin-top: 18px; max-width: 12ch; }
.st-copy .h2 .serif { color: var(--amber); }
.st-copy .lede { margin-top: 22px; color: rgba(255, 245, 230, .75); }
.st-list { margin-top: 26px; display: grid; gap: 10px; max-width: 34rem; }
.st-list li { display: flex; gap: .6rem; align-items: center; color: rgba(255, 245, 230, .88); font-size: .95rem; }
.st-list .ico { color: var(--amber); }
.st-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.st-ctas .btn--ghost .ico { color: var(--amber); }
.st-flow { display: grid; gap: 12px; align-self: end; }
.st-flow li {
    display: flex; gap: 18px; padding: 20px 22px; border-radius: 20px;
    background: rgba(255, 245, 230, .07); box-shadow: inset 0 0 0 1px rgba(255, 245, 230, .12);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.st-flow span { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--amber); line-height: 1.5; }
.st-flow b { font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.st-flow p { margin-top: 4px; font-size: .9rem; color: rgba(255, 245, 230, .68); }
@media (min-width: 640px) { .st-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
    .st { padding: 0 20px; }
    .st-body { grid-template-columns: 1.25fr .75fr; gap: 64px; min-height: min(88vh, 820px); align-items: center; }
    .st-flow { align-self: center; }
}

/* ---------- about statement ---------- */
.statement { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: 1.08; letter-spacing: -.035em; max-width: 22ch; }
.statement .w { opacity: var(--o, 1); transition: opacity .2s linear; }
.statement em { font-family: var(--serif); font-weight: 400; color: var(--amber-deep); }
.about-grid { margin-top: clamp(56px, 8vw, 110px); display: grid; gap: 32px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; } }
.about-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--paper-2); }
.about-photo img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, -8%)); }
.about-badge {
    position: absolute; left: 18px; bottom: 18px; padding: 16px 20px; border-radius: 16px;
    background: rgba(13, 11, 9, .72); color: var(--white); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.about-badge b { display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; letter-spacing: -.04em; }
.about-badge span { font-size: .8rem; color: rgba(255, 245, 230, .7); }
.about-copy p + p { margin-top: 16px; }
.about-copy p { color: var(--ink-2); }
.values { margin-top: 32px; display: grid; gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; }
@media (min-width: 560px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values div { background: var(--paper); padding: 20px; }
.values dt { font-weight: 700; font-family: var(--display); font-size: 1.1rem; display: flex; gap: .5rem; align-items: center; }
.values dt .ico { color: var(--amber-deep); }
.values dd { margin-top: 4px; font-size: .88rem; color: var(--ink-3); }

/* ---------- process ---------- */
.steps { position: relative; display: grid; gap: 40px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.steps-line { display: none; }
@media (min-width: 900px) {
    .steps-line { display: block; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px; background: var(--line-dark); }
    .steps-line span { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(var(--p, 0)); }
}
.step { position: relative; }
.step-n {
    position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px;
    background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-dark); font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--amber);
    transition: background .5s, color .5s, box-shadow .5s;
}
.step.lit .step-n { background: var(--amber); color: var(--night); box-shadow: 0 0 0 8px rgba(227, 161, 91, .12); }
.step h3 { margin-top: 24px; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; }
.step p { margin-top: 10px; color: rgba(255, 245, 230, .62); font-size: .95rem; }
.process-cta { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; padding-top: 40px; border-top: 1px solid var(--line-dark); }
.process-cta p { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; letter-spacing: -.02em; margin-right: auto; }

/* ---------- why (bento + spotlight) ---------- */
.bento { display: grid; gap: 14px; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
    .bento { grid-template-columns: repeat(6, 1fr); }
    .card:nth-child(1) { grid-column: span 3; }
    .card:nth-child(2) { grid-column: span 3; }
    .card:nth-child(3), .card:nth-child(4), .card:nth-child(5) { grid-column: span 2; }
    .card:nth-child(6) { grid-column: span 6; }
}
.card {
    --mx: 50%; --my: 50%;
    position: relative; overflow: hidden; isolation: isolate;
    padding: 28px; border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
    display: flex; flex-direction: column; min-height: 250px;
    transition: transform .6s var(--ease), box-shadow .4s;
}
.card::before {
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(227, 161, 91, .22), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(154, 90, 30, .3), 0 30px 60px -40px rgba(26, 21, 17, .5); }
.card-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); color: var(--amber-deep); }
.card-ico .ico { width: 22px; height: 22px; }
.card h3 { margin-top: 22px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.card-stat { margin-top: auto; padding-top: 26px; display: flex; align-items: baseline; gap: .6rem; }
.card-stat b { font-family: var(--display); font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.card-stat span { font-size: .85rem; color: var(--ink-3); }
.card--dark { background: var(--night); color: var(--white); box-shadow: none; }
.card--dark p, .card--dark .card-stat span { color: rgba(255, 245, 230, .65); }
.card--dark .card-ico { background: rgba(255, 245, 230, .08); color: var(--amber); }
.card--eco .card-ico { background: rgba(141, 180, 135, .18); color: #3F6B3A; }
.card--eco .card-stat b { color: #3F6B3A; }
.card--wide { flex-direction: column; }
@media (min-width: 1024px) { .card--wide { flex-direction: row; align-items: center; gap: 40px; min-height: 0; } .card--wide .card-stat { margin: 0 0 0 auto; padding: 0; } .card--wide h3 { margin-top: 0; } }

/* ---------- contact ---------- */
.contact { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.contact-info { display: grid; gap: 4px; margin-top: 40px; }
.contact-info a, .contact-info div {
    display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark);
    color: rgba(255, 245, 230, .85); transition: color .3s, padding .5s var(--ease);
}
.contact-info a:hover { color: var(--amber); padding-left: 8px; }
.contact-info .ico { width: 20px; height: 20px; color: var(--amber); }
.contact-info small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 245, 230, .45); }
.form { padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-dark); display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field input, .field select, .field textarea {
    width: 100%; padding: 22px 0 10px; border: 0; border-bottom: 1px solid rgba(255, 245, 230, .2); background: transparent;
    color: var(--white); font: inherit; font-size: 1rem; outline: none; border-radius: 0; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select option { background: var(--night-2); }
.field label { position: absolute; left: 0; top: 22px; color: rgba(255, 245, 230, .5); font-size: 1rem; pointer-events: none; transform-origin: left; transition: transform .4s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select.filled + label { transform: translateY(-20px) scale(.78); color: var(--amber); }
.field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field-caret { position: absolute; right: 0; top: 24px; color: rgba(255, 245, 230, .5); pointer-events: none; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 6px; }
.form-foot p { font-size: .82rem; color: rgba(255, 245, 230, .5); max-width: 22rem; }
.form-ok { padding: 14px 16px; border-radius: 14px; background: rgba(107, 212, 138, .1); color: #A6E6B8; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq { grid-template-columns: 1fr 1.6fr; gap: 80px; } .faq-side { position: sticky; top: 120px; align-self: start; } }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; text-align: left; font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.35rem); letter-spacing: -.015em; }
.faq-plus { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, transform .6s var(--ease); }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; margin: -.8px 0 0 -7px; background: currentColor; transition: transform .6s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item.open .faq-plus { background: var(--night); color: var(--amber); transform: rotate(180deg); }
.faq-item.open .faq-plus::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 60px 28px 0; color: var(--ink-2); }

/* ---------- CTA + footer ---------- */
.foot { background: var(--night); color: var(--white); overflow: hidden; }
.foot-cta { padding: clamp(80px, 12vw, 150px) 0 clamp(56px, 8vw, 90px); text-align: center; }
.foot-cta .h2 { font-size: clamp(2.8rem, 8.5vw, 7.5rem); max-width: 14ch; margin: 18px auto 0; }
.foot-cta .btn { margin-top: 40px; }
.foot-grid { display: grid; gap: 36px; padding: 48px 0; border-top: 1px solid var(--line-dark); }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid a.brand { display: flex; padding: 0; color: var(--white); }
.foot-grid h4 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 245, 230, .45); font-weight: 600; margin-bottom: 14px; }
.foot-grid li + li { margin-top: 4px; }
.foot-grid a, .foot-grid li > span { display: inline-block; padding: 4px 0; color: rgba(255, 245, 230, .72); font-size: .92rem; transition: color .3s; }
.foot-grid a:hover { color: var(--amber); }
.foot-grid p { color: rgba(255, 245, 230, .6); font-size: .92rem; max-width: 22rem; margin-top: 14px; }
/* Wordmark  E ffective · P allets · C ompany
   --fp (0 → 1, scroll) fills the initials with amber one after the other;
   .on (footer in view) brings the small letters in, one by one, and draws their underline. */
.foot-word {
    display: flex; justify-content: center; align-items: baseline; gap: .1em;
    padding: 1vw 16px 0; font-family: var(--display); font-weight: 800; font-size: min(21vw, 20rem);
    line-height: .82; letter-spacing: -.02em; white-space: nowrap; user-select: none;
}
.fw-part {
    display: inline-flex; align-items: baseline;
    opacity: 0; transform: translateY(.14em);
    transition: opacity 1s var(--ease) calc(var(--k) * .14s), transform 1.2s var(--ease) calc(var(--k) * .14s);
}
.fw-big {
    color: transparent;
    background:
        linear-gradient(180deg, var(--amber-2), var(--amber) 55%, var(--amber-deep)) no-repeat,
        linear-gradient(rgba(255, 245, 230, .08), rgba(255, 245, 230, .08));
    background-size: clamp(0%, (var(--fp, 0) * 3 - var(--k)) * 100%, 100%) 100%, 100% 100%;
    -webkit-background-clip: text; background-clip: text;
    transition: transform .6s var(--ease);
}
.fw-rest {
    position: relative; margin-left: .03em; padding-bottom: .12em;
    font-size: max(.16em, 11px); font-weight: 600; letter-spacing: .02em; line-height: 1;
    color: rgba(255, 245, 230, .8); transition: color .4s;
}
.fw-rest::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: max(2px, .08em); border-radius: 2px;
    background: linear-gradient(90deg, var(--amber), transparent);
    transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) calc(var(--k) * .25s + .6s);
}
.fw-rest i {
    display: inline-block; font-style: normal; opacity: 0; transform: translateY(.9em) rotate(12deg); filter: blur(3px);
    transition: opacity .6s var(--ease), transform .9s var(--ease), filter .6s var(--ease);
    transition-delay: calc(var(--k) * .25s + var(--i) * 45ms + .2s);
}
.foot-word.on .fw-part { opacity: 1; transform: none; }
.foot-word.on .fw-rest i { opacity: 1; transform: none; filter: none; }
.foot-word.on .fw-rest::after { transform: scaleX(1); }
.fw-part:hover .fw-big { transform: translateY(-.05em); }
.fw-part:hover .fw-rest { color: var(--amber-2); }
@media (max-width: 600px) { .foot-word { font-size: 24vw; gap: .06em; padding-inline: 10px; } .fw-rest { font-size: max(.17em, 12px); } }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; border-top: 1px solid var(--line-dark); font-size: .8rem; color: rgba(255, 245, 230, .42); }

/* floating mobile call */
.fab {
    position: fixed; z-index: 40; right: 16px; bottom: 16px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px;
    background: var(--amber); color: var(--night); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6);
    transform: scale(0); transition: transform .5s var(--ease);
}
.fab.show { transform: scale(1); }
.fab .ico { width: 22px; height: 22px; }
@media (min-width: 1024px) { .fab { display: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
}

/* ==========================================================================
   Showroom 3D — every product opens in a live 3D viewer (js/v3-3d.js)
   ========================================================================== */

/* entry points on the services list */
.svc-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.svc-actions .btn-arrow .ico { width: 16px; height: 16px; }
.svc-quote {
    display: inline-flex; align-items: center; gap: .5rem; padding: 4px 0;
    font-weight: 600; font-size: .92rem; color: var(--ink); border-bottom: 1px solid var(--line);
    transition: color .3s, border-color .3s, gap .4s var(--ease);
}
.svc-quote:hover { color: var(--amber-deep); border-color: currentColor; gap: .8rem; }
.chip { cursor: pointer; }
.chip:focus-visible { outline-offset: 2px; }
.svc-3d {
    position: absolute; z-index: 3; top: 12px; right: 12px;
    display: inline-flex; align-items: center; gap: .45rem; height: 36px; padding: 0 14px 0 11px; border-radius: 999px;
    background: rgba(13, 11, 9, .62); color: var(--white); font-size: .8rem; font-weight: 600; letter-spacing: .02em;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 245, 230, .16);
    transition: background .35s, color .35s, transform .5s var(--ease);
}
.svc-3d .ico { color: var(--amber); transition: color .35s, transform .8s var(--ease); }
.svc-3d:hover { background: var(--amber); color: var(--night); transform: translateY(-2px); }
.svc-3d:hover .ico { color: var(--night); transform: rotate(-20deg); }
.svc-3d--stage { top: 18px; right: 22px; height: 44px; padding: 0 18px 0 14px; font-size: .88rem; }
.svc-3d--stage .ico { width: 1.25em; height: 1.25em; }

/* ---------- dialog shell ---------- */
html.viewer-open, html.viewer-open body { overflow: hidden; }
.viewer {
    --v-line: rgba(255, 245, 230, .12);
    position: fixed; inset: 0; z-index: 100;
    display: grid; grid-template-rows: minmax(0, 56fr) minmax(0, 44fr);
    height: 100vh; height: 100dvh;
    background: var(--night); color: var(--white);
    opacity: 0; transform: scale(.985); transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.viewer[hidden] { display: none; }
.viewer.is-open { opacity: 1; transform: none; }
@media (min-width: 1024px) {
    .viewer { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) clamp(360px, 30vw, 440px); }
}

/* ---------- stage ---------- */
.v-stage {
    position: relative; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(ellipse 70% 60% at 50% 62%, #2B2019 0%, #17120F 55%, #0B0907 100%);
}
.v-stage::before {      /* faint blueprint grid fading towards the edges */
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(255, 245, 230, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 245, 230, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 20%, transparent 75%);
}
.v-canvas { position: absolute; inset: 0; cursor: grab; }
.v-canvas:active { cursor: grabbing; }
.v-canvas canvas { width: 100% !important; height: 100% !important; outline: none; }

/* dimension labels, positioned on the model each frame */
.v-dims { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.v-dims span {
    position: absolute; top: 0; left: 0; padding: 4px 10px; border-radius: 999px;
    background: var(--amber); color: var(--night); font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6); opacity: 0; transition: opacity .35s var(--ease);
}
.v-dims.is-ready span { opacity: 1; }
.v-dims.is-off span { opacity: 0 !important; }

/* loading / failure */
.v-loading {
    position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    padding: 24px; text-align: center; font-size: .9rem; color: rgba(255, 245, 230, .7);
}
.viewer.is-loading .v-loading, .viewer.is-failed .v-loading { display: flex; }
.v-spin { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 245, 230, .12); border-top-color: var(--amber); animation: v-spin .9s linear infinite; }
.viewer.is-failed .v-spin { display: none; }
@keyframes v-spin { to { transform: rotate(1turn); } }

/* top bar: kicker · product tabs · close */
.v-top {
    position: absolute; z-index: 3; top: 0; left: 0; right: 0;
    display: flex; align-items: center; gap: 14px; padding: 14px 14px 0 16px;
}
.v-kicker {
    display: none; align-items: center; gap: .5rem; flex-shrink: 0;
    font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 245, 230, .62);
}
.v-kicker .ico { color: var(--amber); width: 1.3em; height: 1.3em; }
.v-tabs {
    flex: 1; min-width: 0; display: flex; gap: 4px; padding: 4px; border-radius: 999px; overflow-x: auto; scrollbar-width: none;
    background: rgba(22, 18, 16, .6); box-shadow: inset 0 0 0 1px var(--v-line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.v-tabs::-webkit-scrollbar { display: none; }
.v-tabs button {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem; height: 36px; padding: 0 14px; border-radius: 999px;
    font-size: .84rem; font-weight: 600; color: rgba(255, 245, 230, .62); white-space: nowrap;
    transition: background .35s var(--ease), color .35s;
}
.v-tabs button small { font-size: .66rem; letter-spacing: .06em; color: rgba(255, 245, 230, .35); font-variant-numeric: tabular-nums; transition: color .35s; }
.v-tabs button:hover { color: var(--white); }
.v-tabs button[aria-pressed="true"] { background: var(--amber); color: var(--night); }
.v-tabs button[aria-pressed="true"] small { color: rgba(13, 11, 9, .55); }
.v-close {
    flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
    background: rgba(22, 18, 16, .6); box-shadow: inset 0 0 0 1px var(--v-line); color: var(--white);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transition: background .3s, color .3s, transform .5s var(--ease);
}
.v-close:hover { background: var(--white); color: var(--night); transform: rotate(90deg); }
.v-close .ico { width: 20px; height: 20px; }

/* caption: product number, name, category */
.v-caption { position: absolute; z-index: 2; left: 18px; top: 70px; pointer-events: none; max-width: calc(100% - 36px); }
.v-num { font-size: .7rem; font-weight: 600; letter-spacing: .18em; color: var(--amber); font-variant-numeric: tabular-nums; }
.v-title { margin-top: 6px; font-size: clamp(1.45rem, 5vw, 3.4rem); line-height: 1; max-width: 14ch; }
.v-cat { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.6vw, 1.25rem); color: rgba(255, 245, 230, .62); }
.viewer.is-switching .v-caption > * { animation: v-rise .7s var(--ease) both; }
.viewer.is-switching .v-title { animation-delay: .05s; }
.viewer.is-switching .v-cat { animation-delay: .1s; }
@keyframes v-rise { from { opacity: 0; transform: translateY(14px); } }

.v-hint {
    position: absolute; z-index: 2; left: 50%; bottom: 66px; transform: translateX(-50%);
    padding: 7px 14px; border-radius: 999px; background: rgba(22, 18, 16, .6); box-shadow: inset 0 0 0 1px var(--v-line);
    font-size: .75rem; color: rgba(255, 245, 230, .72); white-space: nowrap; pointer-events: none;
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.v-hint.is-gone { opacity: 0; transform: translate(-50%, 8px); }

/* view controls */
.v-ctrl {
    position: absolute; z-index: 3; left: 50%; bottom: 12px; transform: translateX(-50%);
    display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; max-width: calc(100% - 24px);
    background: rgba(22, 18, 16, .72); box-shadow: inset 0 0 0 1px var(--v-line), 0 18px 40px -20px rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.v-seg { display: flex; gap: 2px; }
.v-seg button { height: 36px; padding: 0 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: rgba(255, 245, 230, .62); transition: background .3s var(--ease), color .3s; }
.v-seg button:hover { color: var(--white); }
.v-seg button[aria-pressed="true"] { background: var(--white); color: var(--night); }
.v-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--v-line); }
.v-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: rgba(255, 245, 230, .62); transition: background .3s, color .3s; }
.v-icon:hover { color: var(--white); background: rgba(255, 245, 230, .08); }
.v-icon[aria-pressed="true"] { color: var(--amber); background: rgba(227, 161, 91, .14); }
.v-icon .ico { width: 18px; height: 18px; }

@media (min-width: 640px) {
    .v-top { padding: 18px 20px 0 24px; }
    .v-kicker { display: inline-flex; }
    .v-tabs { flex: 0 1 auto; margin-inline: auto; }
    .v-caption { left: 28px; top: auto; bottom: 28px; max-width: 46%; }
    .v-ctrl { left: auto; right: 20px; bottom: 20px; transform: none; }
    .v-hint { top: 82px; bottom: auto; }
    .v-seg button { padding: 0 14px; }
}
@media (min-width: 640px) and (max-width: 1023px) { .v-caption { top: 80px; bottom: auto; } .v-hint { top: auto; bottom: 70px; } .v-ctrl { left: 50%; right: auto; transform: translateX(-50%); } }

/* ---------- side panel (bottom sheet on mobile) ---------- */
.v-panel {
    position: relative; z-index: 4; display: flex; flex-direction: column;
    margin-top: -18px; padding: 26px 20px 22px; border-radius: 22px 22px 0 0;
    background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
}
@media (min-width: 1024px) {
    .v-panel { margin: 0; border-radius: 0; padding: 32px 30px 26px; box-shadow: -1px 0 0 var(--line-dark); }
}
.v-readout { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.v-readout small { flex-basis: 100%; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.v-readout b { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.v-badge { padding: .25rem .65rem; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; background: var(--night); color: var(--amber-2); }
.v-badge.is-eco { background: rgba(141, 180, 135, .22); color: #3F6B3A; }
.v-desc { margin-top: 12px; font-size: .92rem; color: var(--ink-2); }
.v-h {
    margin: 24px 0 10px; display: flex; align-items: center; gap: .6rem;
    font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.v-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.v-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-fmt {
    position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; text-align: left;
    background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
    transition: background .3s var(--ease), color .3s, box-shadow .3s, transform .4s var(--ease);
}
.v-fmt b { font-family: var(--display); font-weight: 700; font-size: .98rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.v-fmt small { font-size: .76rem; color: var(--ink-3); transition: color .3s; }
.v-fmt:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(26, 21, 17, .3); }
.v-fmt[aria-pressed="true"] { background: var(--night); color: var(--white); box-shadow: none; }
.v-fmt[aria-pressed="true"] small { color: var(--amber-2); }
.v-fmt[aria-pressed="true"]::after { content: ''; position: absolute; top: 12px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.v-fmt--custom { background: transparent; box-shadow: inset 0 0 0 1px rgba(154, 90, 30, .45); }
.v-fmt--custom b { color: var(--amber-deep); }
.v-fmt--custom[aria-pressed="true"] b { color: var(--white); }

.v-custom { margin-top: 10px; display: grid; gap: 14px; padding: 16px; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.v-custom[hidden] { display: none; }
.v-range { display: grid; gap: 8px; }
.v-range > span { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; }
.v-range output { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--amber-deep); }
.v-range input { width: 100%; height: 22px; margin: 0; background: none; accent-color: var(--amber-deep); cursor: pointer; }

.v-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 14px; overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.v-specs div { padding: 11px 14px; background: var(--white); }
.v-specs dt { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.v-specs dd { margin-top: 2px; font-size: .9rem; font-weight: 600; }

.v-quote { margin-top: auto; padding-top: 24px; display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: end; }
.v-qty { display: grid; gap: 6px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.v-qty input {
    width: 100%; height: 52px; padding: 0 14px; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1px var(--line);
    background: var(--white); color: var(--ink); font: 600 1rem var(--body); letter-spacing: 0; text-transform: none;
}
.v-qty input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--amber-deep); }
.v-quote .btn { width: 100%; justify-content: space-between; }
.v-note { margin-top: 12px; display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--ink-3); }
.v-note .ico { color: var(--amber-deep); }

@media (prefers-reduced-motion: reduce) {
    .viewer { transform: none; }
}

/* ==========================================================================
   Nov 21 — logo size, recycled highlight, cales note, language switch, Arabic (RTL)
   ========================================================================== */
/* slightly larger logo */
.hdr-bar { height: 68px; }
.hdr.is-scrolled .hdr-bar { height: 60px; }
.brand-mark { width: 52px; height: 52px; }
.hdr.is-scrolled .brand-mark { width: 46px; height: 46px; }
.brand-mark img { width: 78%; height: 78%; }
.brand-text b { font-size: 1.15rem; }

/* "recyclé(e)s" → green word with the recycling logo */
.eco-word {
    --eco-c: #23803A;
    display: inline-flex; align-items: baseline; gap: .18em; white-space: nowrap;
    color: var(--eco-c); font-weight: 650;
    background: linear-gradient(transparent 64%, rgba(46, 139, 62, .16) 64%);
    border-radius: 2px; padding: 0 .08em;
}
.eco-word .ico { width: .95em; height: .95em; align-self: center; stroke-width: 2.2; transition: transform 1.2s var(--ease); }
.svc-title .eco-word .ico { width: .7em; height: .7em; stroke-width: 2.6; }
.svc-item:hover .eco-word .ico, .eco-word:hover .ico { transform: rotate(360deg); }
.on-dark .eco-word, .card--dark .eco-word, .st-card .eco-word { --eco-c: #7FD08C; background: linear-gradient(transparent 64%, rgba(127, 208, 140, .16) 64%); }
.svc-badge { display: inline-flex; align-items: center; gap: .35rem; background: rgba(46, 139, 62, .14); color: #1F6F33; font-weight: 700; }
.svc-badge .ico { width: 1.15em; height: 1.15em; stroke-width: 2.2; }

/* cales: the third dimension is always made to measure */
.cale-note {
    margin-top: 14px; display: inline-flex; align-items: center; gap: .6rem;
    padding: .6rem .95rem; border-radius: 12px; font-size: .88rem; color: var(--ink-2);
    background: rgba(227, 161, 91, .14); box-shadow: inset 0 0 0 1px rgba(154, 90, 30, .18);
}
.cale-note .ico { color: var(--amber-deep); width: 1.15em; height: 1.15em; }
.cale-note b { color: var(--ink); font-weight: 700; }

/* language switch */
.lang {
    display: none; align-items: center; gap: 2px; height: 40px; padding: 4px; border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 245, 230, .14);
}
.lang a {
    display: grid; place-items: center; min-width: 32px; height: 100%; padding: 0 .55rem; border-radius: 999px;
    font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: rgba(255, 245, 230, .72); transition: background .2s, color .2s;
}
.lang a:hover { background: rgba(255, 245, 230, .1); color: var(--white); }
.lang a[aria-current] { background: var(--amber); color: var(--night); }
@media (min-width: 480px) { .lang { display: flex; } }
.menu-lang { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.menu-lang a { padding: .5rem .95rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 245, 230, .18); font-size: .9rem; }
.menu-lang a[aria-current] { background: var(--amber); color: var(--night); box-shadow: none; font-weight: 600; }

/* ---------- Arabic: fonts + right-to-left ---------- */
[lang="ar"] {
    --display: 'Cairo', 'Bricolage Grotesque', system-ui, sans-serif;
    --body: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
    --serif: 'Amiri', 'Instrument Serif', serif;
}
[lang="ar"] body, [lang="ar"] body * { letter-spacing: 0 !important; }
[lang="ar"] .serif, [lang="ar"] .statement em { font-style: normal; font-weight: 700; }
[lang="ar"] .display, [lang="ar"] .statement, [lang="ar"] .svc-title, [lang="ar"] .h2 { line-height: 1.25; }
[lang="ar"] .hero-title { line-height: 1.2; }
[lang="ar"] .line { padding-bottom: .12em; margin-bottom: -.12em; }
[lang="ar"] .eyebrow, [lang="ar"] .chips-label, [lang="ar"] .svc-top { text-transform: none; }

[dir="rtl"] .hero-media::after {
    background:
        linear-gradient(180deg, rgba(13, 11, 9, .55) 0%, rgba(13, 11, 9, 0) 28%),
        linear-gradient(0deg, rgba(13, 11, 9, .92) 0%, rgba(13, 11, 9, .45) 42%, rgba(13, 11, 9, .1) 70%),
        linear-gradient(270deg, rgba(13, 11, 9, .55), transparent 65%);
}
[dir="rtl"] .st-card::before {
    background: linear-gradient(270deg, rgba(13, 11, 9, .92) 0%, rgba(13, 11, 9, .7) 50%, rgba(13, 11, 9, .35) 100%),
                linear-gradient(0deg, rgba(13, 11, 9, .6), transparent 50%);
}
[dir="rtl"] .btn-arrow .ico, [dir="rtl"] .svc-quote .ico, [dir="rtl"] .faq-q .ico { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn-arrow .ico { animation: none; }
[dir="rtl"] .scroll-cue { right: auto; left: 20px; }
[dir="rtl"] .fab { right: auto; left: 16px; }
[dir="rtl"] .menu { clip-path: circle(0 at 46px 46px); }
[dir="rtl"].menu-open .menu, .menu-open [dir="rtl"] .menu, [dir="rtl"] .menu-open .menu { clip-path: circle(150% at 46px 46px); }
[dir="rtl"] .marquee-track { direction: ltr; }
[dir="rtl"] .faq-a p { padding: 0 0 28px 60px; }
[dir="rtl"] .contact-info a:hover { padding-left: 0; padding-right: 8px; }
[dir="rtl"] .about-badge { left: auto; right: 18px; }
[dir="rtl"] .field label { left: auto; right: 0; transform-origin: right; }
[dir="rtl"] .field-caret { right: auto; left: 0; }
[dir="rtl"] .field::after, [dir="rtl"] .steps-line span, [dir="rtl"] .hdr-progress span { transform-origin: right; }
[dir="rtl"] .hdr-progress span { background: linear-gradient(270deg, transparent, var(--amber)); }
.v-range[hidden], .v-custom[hidden] { display: none !important; }
/* sizes like "7,5 × 7,5 cm" keep their reading order inside Arabic text */
[dir="rtl"] .chip, [dir="rtl"] .v-fmt b, [dir="rtl"] .v-readout b, [dir="rtl"] .v-range output { direction: ltr; unicode-bidi: isolate; }

/* ==========================================================================
   Nov 24 — header: every item fits inside the pill (the "Devis gratuit" button used to overflow)
   Measured needs: full bar ≈ 1290px (logo + company name, nav, languages, opening hours, call, CTA).
   ========================================================================== */
.hdr-bar { width: min(1320px, 100% - 24px); }
.hdr-bar > * { flex-shrink: 0; }
/* compact (scrolled) bar: drop the opening hours, they don't fit in 1120px */
.hdr.is-scrolled .status { display: none; }
/* phones / tablets: "EPC" only, the full company name doesn't fit next to the buttons */
@media (max-width: 767px) { .hdr .brand-text small { display: none; } }
/* CTA concentric with the pill's round end: same 11px around it as above/below (68px bar, 46px button) */
.hdr-bar { padding-inline: 11px; }
.hdr.is-scrolled .hdr-bar { padding-inline: 7px; } /* 60px bar, 46px button */
@media (min-width: 1024px) and (max-width: 1279px) { .nav a { padding-inline: .62rem; } .hdr-actions { gap: 6px; } }

/* 3D viewer on phones: a bigger bottom sheet and finger-sized sliders.
   (Scrolling inside the sheet: #viewer has data-lenis-prevent, Lenis is stopped while it's open
   and otherwise swallowed every swipe, so "Sur mesure" and the sliders were unreachable.) */
@media (max-width: 1023px) {
    .viewer { grid-template-rows: minmax(0, 50fr) minmax(0, 50fr); }
    .v-panel { -webkit-overflow-scrolling: touch; touch-action: pan-y; }
    .v-range input { height: 36px; touch-action: pan-x; }
}
