/* HDS Cut & Edge — main stylesheet. Mobile first. Every class carries the hds- prefix. */

@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-grotesk-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-grotesk-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Azeret Mono"; src: url("../fonts/azeret-mono-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
	/* melamine white ground */
	--g0: #f3f3f0;
	--g1: #eaeae5;
	--g2: #dedfd8;
	/* graphite housings */
	--h0: #1c1e1d;
	--h1: #242725;
	--h2: #2f3331;
	--h-line: #3d423f;
	--on-h: #f3f3f0;
	--on-h-2: #b6bab6;
	/* ink */
	--i0: #1c1e1d;
	--i1: #464a48;
	--i2: #5f635f;
	--ln: #d3d4cd;
	--ln-2: #bfc1b9;
	/* chipboard core */
	--core: #c9a77a;
	--core-d: #a8875c;
	/* brand */
	--red: #ec2329;
	--red-btn: #d91e25;
	--red-ink: #c4161d;
	--z-wall: #7baf42;
	--z-base: #01558f;
	--z-tall: #dc9826;
	--z-top: #1c1e1d;

	--f-display: "Familjen Grotesk", "Schibsted Grotesk", system-ui, sans-serif;
	--f-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "Azeret Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

	--wrap: 1320px;
	--gut: clamp(1.1rem, 4vw, 2.5rem);
	--r: 4px;
	--r-lg: 10px;
	--header-h: 64px;
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
	--edge: 3px;
	--core-tex: url("../img/core.webp");
}
@media (min-width: 1024px) { :root { --header-h: 76px; } }

/* ---------- base (no class weight) ---------- */
:where(.hds-site) :where(*, *::before, *::after) { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
:where(body) { margin: 0; background: var(--g0); color: var(--i0); font: 400 1.0625rem/1.55 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.hds-site) :where(img, svg, video, canvas) { max-width: 100%; height: auto; }
:where(.hds-site) :where(a) { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:where(.hds-site) :where(h1, h2, h3, h4) { font-family: var(--f-display); font-weight: 600; line-height: 1.05; letter-spacing: -.022em; margin: 0 0 .5em; text-wrap: balance; }
:where(.hds-site) :where(p) { margin: 0 0 1em; text-wrap: pretty; }
:where(.hds-site) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.hds-site) ::selection { background: var(--h0); color: var(--g0); }
:where(.hds-site) :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 2px; }
.hds-site { caret-color: var(--red); accent-color: var(--h0); scrollbar-color: var(--ln-2) var(--g1); }
.hds-site [hidden] { display: none !important; }
.hds-page { overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
.hds-page > main { flex: 1 0 auto; }
.hds-wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.hds-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hds-skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--h0); color: var(--g0); padding: .7rem 1rem; border-radius: var(--r); }
.hds-skip:focus { top: 1rem; }
.hds-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hds-mm { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: -.01em; }
.hds-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.hds-stacks__n.hds-num { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; }
.hds-ic { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- type scale ---------- */
.hds-h1 { font-size: clamp(2.5rem, 1.6rem + 3.9vw, 5.25rem); font-weight: 650; letter-spacing: -.03em; line-height: .98; }
.hds-h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); font-weight: 620; letter-spacing: -.028em; line-height: 1.02; }
.hds-h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.12; }
.hds-lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); line-height: 1.5; color: var(--i1); max-width: 38em; }
.hds-small { font-size: .875rem; color: var(--i2); }

/* ---------- buttons ---------- */
.hds-btn { --bh: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: var(--bh); padding: 0 1.3em; border-radius: var(--r); border: 1px solid transparent; font: 600 1rem/1 var(--f-body); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease-out), box-shadow .25s; -webkit-tap-highlight-color: transparent; position: relative; }
.hds-btn .hds-ic { width: 1.15em; height: 1.15em; }
.hds-btn:active { transform: translateY(1px) scale(.99); }
.hds-btn--red { background: var(--red-btn); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.18), 0 6px 14px -8px rgba(217,30,37,.7); }
.hds-btn--ink { background: var(--h0); color: var(--g0); }
.hds-btn--line { background: transparent; color: var(--i0); border-color: var(--i0); }
.hds-btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.hds-btn--sm { --bh: 40px; font-size: .9375rem; padding: 0 1em; }
.hds-btn[disabled], .hds-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
@media (hover: hover) {
	.hds-btn--red:hover { background: #b9141a; }
	.hds-btn--ink:hover { background: var(--h2); }
	.hds-btn--line:hover { background: var(--i0); color: var(--g0); }
	.hds-btn--ghost:hover { background: rgba(127,127,127,.12); }
	.hds-btn:hover .hds-ic:last-child:not(:first-child) { transform: translateX(3px); }
}
.hds-btn .hds-ic { transition: transform .3s var(--ease-out); }
.hds-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: underline; text-decoration-color: var(--ln-2); text-underline-offset: .28em; }
.hds-link:hover { text-decoration-color: var(--red); }
.hds-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; border-radius: var(--r); cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .hds-icon-btn:hover { background: rgba(127,127,127,.14); } }

/* ---------- header (graphite housing) ---------- */
.hds-header { position: sticky; top: 0; z-index: 60; background: var(--h0); color: var(--on-h); transition: transform .35s var(--ease-out); }
.hds-header.is-tucked { transform: translateY(-100%); }
.hds-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--z-wall) 0 25%, var(--z-base) 25% 50%, var(--z-tall) 50% 75%, var(--red) 75%); opacity: .9; }
.hds-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 1rem; padding-inline: var(--gut); max-width: 1600px; margin-inline: auto; }
.hds-header__logo { display: block; flex: none; }
.hds-header__logo img { display: block; width: auto; height: 40px; }
@media (min-width: 1024px) { .hds-header__logo img { height: 48px; } }
.hds-nav { display: none; }
.hds-header__tools { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.hds-cart-n { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red-btn); color: #fff; font: 700 11px/18px var(--f-body); text-align: center; }
.hds-branch-chip { display: none; align-items: center; gap: .45rem; height: 40px; padding: 0 .85rem 0 .7rem; border: 1px solid var(--h-line); border-radius: 999px; background: transparent; color: var(--on-h); cursor: pointer; font-size: .875rem; margin-right: .35rem; transition: border-color .2s, background-color .2s; }
.hds-branch-chip .hds-ic { width: 1.05rem; height: 1.05rem; color: var(--z-tall); }
.hds-branch-chip__k { color: var(--on-h-2); }
.hds-branch-chip [data-branch-name] { font-weight: 600; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
@media (hover: hover) { .hds-branch-chip:hover { border-color: var(--on-h-2); background: var(--h1); } }
@media (min-width: 720px) { .hds-branch-chip { display: inline-flex; } }
@media (min-width: 1100px) {
	.hds-nav { display: block; margin-left: clamp(1rem, 3vw, 3rem); height: 100%; }
	.hds-nav__list { display: flex; height: 100%; list-style: none; margin: 0; padding: 0; gap: .25rem; }
	.hds-nav__item { display: flex; align-items: center; }
	.hds-nav__link { display: flex; align-items: center; height: 100%; padding: 0 .8rem; text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--on-h); position: relative; }
	.hds-nav__link::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 16px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
	.hds-nav__link:hover::after, .hds-nav__link[aria-current]::after, .has-mega.is-open > .hds-nav__link::after { transform: scaleX(1); }
	.hds-menu-btn { display: none; }
}

/* mega panel */
.hds-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--g0); color: var(--i0); border-bottom: 1px solid var(--ln); box-shadow: 0 24px 40px -24px rgba(20,22,21,.35); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .22s, transform .3s var(--ease-out), visibility 0s .3s; }
.has-mega.is-open > .hds-mega { visibility: visible; opacity: 1; transform: none; transition: opacity .22s, transform .3s var(--ease-out); }
.hds-mega__in { max-width: 1600px; margin: 0 auto; padding: 2rem var(--gut) 2.4rem; display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 3rem; }
.hds-mega__title { font: 600 1.5rem/1.1 var(--f-display); letter-spacing: -.02em; margin-bottom: .5rem; }
.hds-mega__text { color: var(--i1); font-size: .95rem; }
.hds-mega__cta { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 2px; }
.hds-mega__cols { list-style: none; margin: 0; padding: 0; columns: 3 200px; column-gap: 2.5rem; }
.hds-mega__cols > li { break-inside: avoid; margin-bottom: 1.1rem; }
.hds-mega__cols > li > a { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; text-decoration: none; padding: .35rem 0; border-bottom: 1px solid var(--ln); }
.hds-mega__cols ul { list-style: none; margin: .35rem 0 0; padding: 0; }
.hds-mega__cols ul a { display: block; padding: .22rem 0; font-size: .92rem; color: var(--i1); text-decoration: none; }
.hds-mega__cols a:hover span:first-child, .hds-mega__cols ul a:hover { color: var(--red-ink); }
.hds-mega__n { font: 400 .78rem/1.6 var(--f-mono); color: var(--i2); }
.hds-mega__cols--flat > li { margin-bottom: 0; }
@media (max-width: 1099px) { .hds-mega { display: none; } }

/* search */
.hds-search { background: var(--h1); border-top: 1px solid var(--h-line); }
.hds-search__form { display: flex; align-items: center; gap: .75rem; height: 64px; }
.hds-search__form input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--on-h); font-size: 1.1rem; outline: none; }
.hds-search__form input::placeholder { color: var(--on-h-2); }

/* drawer */
.hds-drawer { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--h0); color: var(--on-h); display: none; flex-direction: column; }
.hds-drawer[open] { display: flex; animation: hds-drawer-in .38s var(--ease-out); }
.hds-drawer::backdrop { background: rgba(10,11,11,.55); }
@keyframes hds-drawer-in { from { transform: translateX(40px); opacity: 0; } }
.hds-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: .9rem var(--gut); border-bottom: 1px solid var(--h-line); }
.hds-drawer__head img { height: 40px; width: auto; }
.hds-drawer nav { flex: 1; overflow-y: auto; padding: .5rem var(--gut) 1rem; overscroll-behavior: contain; }
.hds-drawer__list { list-style: none; margin: 0; padding: 0; }
.hds-drawer__list a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--h-line); font: 600 1.45rem/1.1 var(--f-display); text-decoration: none; letter-spacing: -.02em; }
.hds-drawer[open] .hds-drawer__list li { animation: hds-rise .5s var(--ease-out) both; }
.hds-drawer[open] .hds-drawer__list li { animation-duration: .3s; }
.hds-drawer[open] .hds-drawer__list li:nth-child(2) { animation-delay: .03s; } .hds-drawer[open] .hds-drawer__list li:nth-child(3) { animation-delay: .06s; } .hds-drawer[open] .hds-drawer__list li:nth-child(4) { animation-delay: .09s; } .hds-drawer[open] .hds-drawer__list li:nth-child(5) { animation-delay: .12s; } .hds-drawer[open] .hds-drawer__list li:nth-child(6) { animation-delay: .15s; }
@keyframes hds-rise { from { opacity: 0; transform: translateY(10px); } }
.hds-drawer__more { border-bottom: 1px solid var(--h-line); }
.hds-drawer__more summary { padding: 1rem 0; cursor: pointer; font-weight: 600; color: var(--on-h-2); list-style: none; }
.hds-drawer__more ul { list-style: none; margin: 0 0 1rem; padding: 0; columns: 2; }
.hds-drawer__more a { display: block; padding: .4rem 0; text-decoration: none; font-size: .95rem; }
.hds-drawer__foot { display: grid; gap: .6rem; padding: 1rem var(--gut) calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--h-line); }

/* branch dialog */
.hds-branch-dlg { width: min(560px, calc(100% - 1.5rem)); max-height: min(80dvh, 720px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--g0); color: var(--i0); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.hds-branch-dlg::backdrop { background: rgba(10,11,11,.5); }
.hds-branch-dlg[open] { animation: hds-pop .32s var(--ease-out); }
@keyframes hds-pop { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.hds-branch-dlg__in { display: flex; flex-direction: column; max-height: inherit; padding: 1.25rem 1.25rem 0; }
.hds-branch-dlg__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.hds-branch-dlg__head h2 { font-size: 1.5rem; margin: 0; }
.hds-branch-dlg__lede { color: var(--i1); font-size: .95rem; margin: .35rem 0 .9rem; }
.hds-branch-dlg__msg { font-size: .875rem; color: var(--i2); margin: .5rem 0 0; min-height: 1.2em; }
.hds-branch-dlg__list { overflow-y: auto; margin: .25rem -1.25rem 0; padding: 0 1.25rem 1.25rem; overscroll-behavior: contain; }
.hds-bopt { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; width: 100%; text-align: left; padding: .8rem .2rem; border: 0; border-bottom: 1px solid var(--ln); background: none; cursor: pointer; }
.hds-bopt__n { font-weight: 600; }
.hds-bopt__a { grid-column: 1; font-size: .85rem; color: var(--i2); }
.hds-bopt__d { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 400 .8rem var(--f-mono); color: var(--i2); }
.hds-bopt[aria-selected="true"] .hds-bopt__n::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: .5rem; border-radius: 50%; background: var(--red); vertical-align: middle; }
@media (hover: hover) { .hds-bopt:hover { background: var(--g1); } }
.hds-bprov { font: 600 .8rem/1 var(--f-body); color: var(--i2); padding: 1rem .2rem .4rem; position: sticky; top: 0; background: var(--g0); }

/* ---------- reveals (one grammar, varied by role) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.hds-js [data-rv] { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--rv-d, 0) * 1ms); }
	.hds-js [data-rv].is-in { opacity: 1; transform: none; }
	.hds-js [data-rv="mask"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); transition-delay: calc(var(--rv-d, 0) * 1ms); }
	.hds-js [data-rv="mask"].is-in { clip-path: inset(0 0 0 0); }
	.hds-js [data-rv="feed"] { opacity: 0; transform: translateX(-28px); }
	.hds-js [data-rv="feed"].is-in { opacity: 1; transform: none; }
	/* headline lines rise from their own line box */
	.hds-js [data-split] .hds-ln { display: block; overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }
	.hds-js [data-split] .hds-ln > span { display: block; transform: translateY(105%); filter: blur(3px); transition: transform .8s var(--ease-out), filter .55s var(--ease-out); transition-delay: calc(var(--rv-d, 0) * 1ms + var(--ln-i, 0) * 70ms); }
	.hds-js [data-split].is-in .hds-ln > span { transform: none; filter: none; }
	/* edge band pressed onto a panel: the signature reveal, used on panels only */
	.hds-js .hds-edged::after { transform: scaleX(0); transition: transform 1.2s var(--ease-io) .15s; }
	.hds-js .hds-edged.is-in::after { transform: scaleX(1); }
}
[data-split] .hds-ln, [data-split] .hds-ln > span { display: block; }
.hds-edged { position: relative; }
.hds-edged::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--edge); background: var(--band, var(--red)); transform-origin: left center; }

/* chipboard core strip: a board seen from its cut edge */
.hds-core { height: 14px; background: var(--core) var(--core-tex) 0 0 / 256px 14px repeat-x; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.18); }

/* ---------- sections ---------- */
.hds-sec { padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); position: relative; }
.hds-sec--tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.hds-sec--dark { background: var(--h0); color: var(--on-h); }
.hds-sec--dark .hds-lede, .hds-sec--dark .hds-small { color: var(--on-h-2); }
.hds-sec--paper { background: var(--g1); }
.hds-sec__head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 1.4rem + 2.5vw, 3.75rem); max-width: 50rem; }
.hds-sec__head > * { margin: 0; }
.hds-sec__head--split { max-width: none; }
@media (min-width: 900px) { .hds-sec__head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 3rem; } }

/* ---------- page head (inner pages) ---------- */
.hds-phead { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(2rem, 1.5rem + 2vw, 3.5rem); border-bottom: 1px solid var(--ln); }
.hds-phead__in { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .hds-phead__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 3rem; } }
.hds-phead h1 { margin: 0; }
.hds-phead p { margin: 0; }
.hds-crumbs { font-size: .85rem; color: var(--i2); padding: 1.25rem 0 0; }
.hds-crumbs a { text-decoration: none; }
.hds-crumbs a:hover { text-decoration: underline; }

/* ---------- forms ---------- */
.hds-field { display: grid; gap: .4rem; }
.hds-field > span, .hds-label { font-size: .875rem; font-weight: 600; color: var(--i1); }
.hds-input, .hds-select, .hds-textarea { width: 100%; min-height: 48px; padding: .7rem .85rem; background: #fff; border: 1px solid var(--ln-2); border-radius: var(--r); font-size: 1rem; color: var(--i0); transition: border-color .2s, box-shadow .2s; }
.hds-textarea { min-height: 120px; resize: vertical; }
.hds-site select.hds-select { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231c1e1d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; background-size: 20px; }
.hds-input:focus, .hds-select:focus, .hds-textarea:focus { outline: none; border-color: var(--i0); box-shadow: 0 0 0 3px rgba(28,30,29,.12); }
.hds-field.is-bad .hds-input, .hds-field.is-bad .hds-select, .hds-field.is-bad .hds-textarea { border-color: var(--red-ink); box-shadow: 0 0 0 3px rgba(196,22,29,.12); }
.hds-field__err { font-size: .85rem; color: var(--red-ink); }
.hds-form { display: grid; gap: 1rem; }
.hds-form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .hds-form__row--2 { grid-template-columns: 1fr 1fr; } }
.hds-form__status { padding: .9rem 1rem; border-radius: var(--r); font-size: .95rem; }
.hds-form__status.is-ok { background: #e6efdc; color: #2f4a17; }
.hds-form__status.is-bad { background: #f8e0e0; color: #7d1014; }
.hds-seg { display: inline-flex; padding: 3px; background: var(--g1); border: 1px solid var(--ln); border-radius: 999px; gap: 2px; }
.hds-seg button, .hds-seg label { border: 0; background: transparent; border-radius: 999px; padding: .5rem .95rem; font-size: .9rem; font-weight: 600; color: var(--i1); cursor: pointer; transition: background-color .2s, color .2s; white-space: nowrap; }
.hds-seg [aria-pressed="true"], .hds-seg [aria-selected="true"], .hds-seg input:checked + span { background: var(--h0); color: var(--g0); }

/* ---------- sheet layout printout (home demo + cutting list) ---------- */
.hds-printout { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--ln); border-radius: var(--r); box-shadow: 0 30px 50px -40px rgba(20,22,21,.5); }
.hds-printout .p-sheet { fill: #fbfbf9; stroke: var(--i0); stroke-width: 4; }
.hds-printout .p-trim { fill: none; stroke: var(--ln-2); stroke-width: 2; stroke-dasharray: 12 10; }
.hds-printout .p-part { stroke: var(--i0); stroke-width: 2.5; transition: opacity .3s; }
.hds-printout .p-lab { font: 500 40px var(--f-mono); fill: var(--i0); text-anchor: middle; dominant-baseline: central; }
.hds-printout .p-dim { font: 400 28px var(--f-mono); fill: var(--i1); text-anchor: middle; }
.hds-printout .p-hatch { stroke: var(--ln-2); stroke-width: 2; }
.hds-cut .hds-printout .p-part, .hds-cut .hds-printout .p-sheet { vector-effect: non-scaling-stroke; stroke-width: 1.25px; }
.hds-cut .hds-printout .p-hatch, .hds-cut .hds-printout .p-trim { vector-effect: non-scaling-stroke; stroke-width: 1px; }
.hds-cut .hds-printout .p-lab { font-size: 64px; font-weight: 600; }
.hds-cut .hds-printout .p-dim { font-size: 46px; }

/* ---------- branch map (home + branches) ---------- */
.hds-map { display: block; width: 100%; height: auto; overflow: visible; }
.hds-map__prov { fill: var(--g2); stroke: var(--g0); stroke-width: 2; transition: fill .3s; }
.hds-map__prov.is-served { fill: #cfd1c8; }
.hds-map__prov.is-hot { fill: #b5b8ac; }
.hds-map__halo { fill: var(--red); opacity: .16; }
.hds-map__dot { fill: var(--red); stroke: var(--g0); stroke-width: 1.6; }
.hds-map__b { cursor: pointer; transition: opacity .3s; }
.hds-map__b.is-near .hds-map__halo { opacity: .35; }
.hds-map__b.is-near .hds-map__dot { fill: var(--h0); }
@media (prefers-reduced-motion: no-preference) {
	.hds-js [data-inview] .hds-map__b { opacity: 0; transition: opacity .4s; transition-delay: calc(var(--i) * 40ms + 300ms); }
	.hds-js [data-inview].is-in .hds-map__b { opacity: 1; }
	.hds-js [data-inview].is-in .hds-map__halo { animation: hds-ping 2.6s var(--ease-out) calc(var(--i) * 40ms + 600ms) 1 both; transform-box: fill-box; transform-origin: center; }
}
@keyframes hds-ping { 0% { transform: scale(.4); opacity: .5; } 100% { transform: scale(1); opacity: .16; } }

/* ---------- content area (editor / Elementor) ---------- */
.hds-content-area { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.hds-prose { max-width: 70ch; }
.hds-prose h2 { font-size: 1.8rem; margin-top: 2.2em; }
.hds-prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.hds-prose a { color: var(--red-ink); }
.hds-prose ul, .hds-prose ol { padding-left: 1.2em; }
.hds-prose li { margin-bottom: .35em; }

/* ---------- footer: out-feed ---------- */
.hds-footer { background: var(--h0); color: var(--on-h); margin-top: auto; position: relative; }
.hds-footer__close { padding: clamp(4rem, 3rem + 5vw, 7.5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); display: grid; gap: 1.75rem; }
@media (min-width: 900px) { .hds-footer__close { grid-template-columns: minmax(0, 1.25fr) auto; align-items: end; } }
.hds-footer__h { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 5rem); line-height: .98; letter-spacing: -.03em; margin: 0; max-width: 13ch; }
.hds-footer__acts { display: flex; flex-wrap: wrap; gap: .75rem; }
.hds-stack { display: grid; gap: 0; padding: 0 var(--gut); max-width: 1600px; margin: 0 auto; perspective: 900px; }
.hds-stack__sheet { display: block; height: clamp(9px, .7vw + 5px, 14px); background: var(--hex) var(--tex, none) center / 360px auto; border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(0,0,0,.35); transform-origin: 50% 100%; }
.hds-stack__sheet:nth-child(odd) { margin-inline: .4%; }
.hds-stack__sheet:nth-child(3n) { margin-inline: .9% .2%; }
@media (prefers-reduced-motion: no-preference) {
	.hds-js .hds-stack__sheet { opacity: 0; transform: translateY(-28px) rotateX(-18deg); transition: opacity .5s, transform .7s var(--ease-out); transition-delay: calc((21 - var(--i)) * 45ms); }
	.hds-js .hds-stack.is-in .hds-stack__sheet { opacity: 1; transform: none; }
}
.hds-footer__grid { display: grid; gap: 2.5rem; padding: clamp(3rem, 2rem + 3vw, 5rem) 0 2.5rem; border-bottom: 1px solid var(--h-line); }
@media (min-width: 720px) { .hds-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.hds-footer__brand img { height: 58px; width: auto; margin-bottom: 1rem; }
.hds-footer__brand p { color: var(--on-h-2); max-width: 28ch; }
.hds-footer__contact { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.hds-footer__contact a { display: inline-flex; gap: .6rem; align-items: center; text-decoration: none; font-weight: 500; }
.hds-footer__contact a:hover { color: #fff; text-decoration: underline; }
.hds-footer__contact .hds-ic { color: var(--on-h-2); }
.hds-footer__social { display: flex; gap: .25rem; margin-left: -10px; }
.hds-footer__k { font: 600 .82rem/1 var(--f-body); color: var(--on-h-2); margin-bottom: 1rem; }
.hds-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.hds-footer__col a { text-decoration: none; color: var(--on-h); font-size: .98rem; }
.hds-footer__col a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.hds-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom)); font-size: .85rem; color: var(--on-h-2); }
@media (max-width: 1099px) { .hds-footer__base { padding-right: 76px; } }
.hds-footer__base p { margin: 0; }
.hds-credit a { color: var(--on-h); font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.hds-credit a:hover { color: #fff; text-decoration: underline; }

/* WhatsApp button (phones) */
.hds-wa-fab { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1f7a45; color: #fff; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); transition: transform .3s var(--ease-out); }
.hds-wa-fab .hds-ic { width: 28px; height: 28px; }
.hds-wa-fab:active { transform: scale(.94); }
@media (min-width: 1100px) { .hds-wa-fab { display: none; } }
.hds-t-finish-studio .hds-wa-fab, .hds-t-cutting-list .hds-wa-fab { display: none; }

/* promotion card */
.hds-promo { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; width: min(420px, calc(100% - 24px)); transform: translateX(-50%); }
.hds-promo__card { background: var(--h0); color: var(--on-h); border-radius: var(--r-lg); padding: 1.25rem 1.25rem 1.3rem; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); position: relative; animation: hds-pop .5s var(--ease-out); border-top: var(--edge) solid var(--red); }
.hds-promo__x { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; background: none; color: var(--on-h-2); cursor: pointer; display: grid; place-items: center; }
.hds-promo__title { font: 600 1.4rem/1.1 var(--f-display); letter-spacing: -.02em; margin: 0 2rem .4rem 0; }
.hds-promo__text { color: var(--on-h-2); font-size: .95rem; }

/* ---------- generic page ---------- */
.hds-main { padding-bottom: 2rem; }
.hds-404 { padding-block: clamp(5rem, 4rem + 6vw, 10rem); }
.hds-posts { display: grid; gap: 2rem; padding-block: 3rem; }
.hds-post a { text-decoration: none; }
.hds-post h2 { font-size: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
	.hds-header, .hds-footer, .hds-wa-fab, .hds-promo { display: none !important; }
	:where(body) { background: #fff; }
}

/* ---------- shared controls (moved from studio.css) ---------- */
.hds-tool { display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .8rem; border: 1px solid var(--ln-2); border-radius: var(--r); background: transparent; font-size: .88rem; font-weight: 600; color: var(--i1); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.hds-tool[aria-pressed="true"] { background: var(--h0); color: var(--g0); border-color: var(--h0); }
@media (hover: hover) { .hds-tool:hover:not([aria-pressed="true"]) { border-color: var(--i0); color: var(--i0); } }
.hds-panel__k { font: 600 .8rem/1 var(--f-body); color: var(--i2); margin: 0 0 .7rem; }
.hds-tones { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.hds-tone { height: 30px; padding: 0 .65rem; border-radius: 999px; border: 1px solid var(--ln); background: var(--g0); font-size: .8rem; color: var(--i1); cursor: pointer; }
.hds-tone[aria-pressed="true"] { border-color: var(--i0); color: var(--i0); background: #fff; box-shadow: inset 0 0 0 1px var(--i0); }
.hds-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 90; background: var(--h0); color: var(--g0); padding: .75rem 1rem; border-radius: var(--r); font-size: .9rem; transition: opacity .25s, transform .35s var(--ease-out); pointer-events: none; }
.hds-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- shared controls (moved from cutlist.css) ---------- */
.hds-look { padding: .9rem 1rem; background: #f6f1e7; border: 1px solid #e4dccb; border-bottom: 0; }
.hds-look__k { margin: 0 0 .4rem; font-size: .8rem; font-weight: 600; color: var(--i2); }
.hds-look ul { list-style: none; margin: 0 0 .7rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .88rem; }
.hds-look li { display: inline-flex; align-items: center; gap: .4rem; }
.hds-look__acts { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.hds-look--inline { border-bottom: 1px solid #e4dccb; border-radius: var(--r); margin: 0; font-size: .9rem; }

/* ---------- touch feel, dialogs ---------- */
html.hds-js, .hds-site { -webkit-tap-highlight-color: transparent; }
.hds-site :where(a, button, summary, label, [role="radio"], [role="option"]) { touch-action: manipulation; }
html:has(dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
/* dialogs close as softly as they open */
.hds-drawer, .hds-branch-dlg, .hds-bdlg, .hds-hand { transition: opacity .18s ease-in, transform .18s ease-in, overlay .18s allow-discrete, display .18s allow-discrete; }
.hds-drawer:not([open]) { opacity: 0; transform: translateX(24px); }
.hds-branch-dlg:not([open]), .hds-bdlg:not([open]), .hds-hand:not([open]) { opacity: 0; transform: translateY(8px) scale(.99); }
.hds-drawer::backdrop, .hds-branch-dlg::backdrop, .hds-bdlg::backdrop, .hds-hand::backdrop { transition: opacity .2s, overlay .2s allow-discrete, display .2s allow-discrete; }
.hds-drawer__more summary { display: flex; justify-content: space-between; align-items: center; }
.hds-drawer__more summary::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease-out); }
.hds-drawer__more[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.hds-drawer__branch { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; min-height: 50px; padding: 0 1rem; border: 1px solid var(--h-line); border-radius: var(--r); background: transparent; color: var(--on-h); font-weight: 600; cursor: pointer; }
.hds-drawer__branch .hds-ic { color: var(--z-tall); }
@media (hover: none) { .hds-link:hover { text-decoration-color: var(--ln-2); } .hds-footer__col a:hover { text-decoration: none; } }
