/*
Theme Name: Selvedge
Theme URI: https://example.com/selvedge
Author: Selvedge
Description: A B2B theme for a hoodie, shirt and streetwear clothing manufacturer. Dark streetwear look with garment artwork, an interactive spec builder, fabric weight explorer, quote form, schema and llms.txt. Builds the whole site on activation. No shop, no prices, no cart.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: selvedge
Tags: custom-logo, custom-menu, featured-images, translation-ready, block-patterns
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #0c0d11;
	--bg-2: #13151b;
	--card: #191c24;
	--card-2: #20242e;
	--rule: #2c313d;
	--bone: #ece7dd;
	--mute: #a2a8b6;
	--blue: #2f5bff;
	--blue-2: #8aa5ff;
	--paper: #f2efe8;
	--paper-2: #e6e1d6;
	--ink: #101216;
	--ink-2: #4b505c;
	--line: #cfc9bb;
	--error: #b3261e;
	--ok: #1d6b47;
	--g: #2f5bff;
	--display: "Big Shoulders Display", "Arial Narrow", "Impact", sans-serif;
	--font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1280px;
	--gut: clamp(1rem, 4vw, 2.5rem);
	--sec: clamp(4rem, 9vw, 8rem);
	--r: 18px;
	/* legacy names used by older templates */
	--mat: var(--bg); --mat-2: var(--bg-2); --chalk: var(--blue); --sheet: #fbfaf6; --mute-on-mat: var(--mute);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--bone); font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
h1, h2, h3, h4 { margin: 0 0 .4em; font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h3 { font-size: 1.6rem; line-height: 1; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 800px; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--bone); color: var(--ink); padding: .75rem 1rem; font-weight: 700; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.7rem; border: 2px solid transparent; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, transform .18s; }
.btn:hover { transform: translateY(-2px); }
.btn--chalk, .btn--solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--chalk:hover, .btn--solid:hover { background: #4a71ff; border-color: #4a71ff; }
.btn--ghost { border-color: rgba(236, 231, 221, .5); color: var(--bone); }
.btn--ghost:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.text-link { font-weight: 700; color: var(--blue-2); }
.text-link:hover { text-decoration-thickness: .16em; }

/* ---------- Announcement + header ---------- */
.announce { margin: 0; padding: .6rem var(--gut); background: var(--blue); color: #fff; text-align: center; font-size: .95rem; font-weight: 600; }
.announce a { font-weight: 800; margin-left: .35rem; }
.site-header { position: sticky; top: 0; z-index: 50; padding: .75rem 0; }
.site-header__in { display: flex; align-items: center; gap: 1.25rem; min-height: 4rem; padding: .4rem .5rem .4rem 1.4rem; background: rgba(19, 21, 27, .78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--rule); border-radius: 999px; transition: background-color .2s, border-color .2s; }
.site-header.is-stuck .site-header__in { background: rgba(12, 13, 17, .93); border-color: #3a4050; }
.brand { margin-right: auto; }
.brand__name { font-family: var(--display); font-weight: 900; font-size: 1.75rem; line-height: 1; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; }
.custom-logo { display: block; max-height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; flex: 1; }
.menu { display: flex; gap: 1.5rem; margin: 0 auto; padding: 0; list-style: none; }
.menu li { position: relative; }
.menu a { display: block; padding: .6rem 0; font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--bone); }
.menu > li > a:hover, .menu .current-menu-item > a, .menu .current_page_item > a { color: var(--blue-2); }
.menu .sub-menu, .menu .children { position: absolute; left: -1.25rem; top: 100%; min-width: 16rem; margin: 0; padding: .75rem 1.25rem; list-style: none; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .16s, transform .16s; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu, .menu li:hover > .children, .menu li:focus-within > .children { visibility: visible; opacity: 1; transform: none; }
.menu .sub-menu a { padding: .42rem 0; font-weight: 500; color: var(--mute); }
.menu .sub-menu a:hover { color: var(--bone); }
@media (min-width: 1001px) {
	.menu .sub-menu:has(li:nth-child(6)) { columns: 2; column-gap: 1.75rem; min-width: 31rem; }
	.menu .sub-menu li { break-inside: avoid; }
}
.site-nav__cta { min-height: 2.9rem; }
.nav-toggle { display: none; align-items: center; gap: .6rem; min-height: 2.9rem; padding: 0 1.1rem; background: var(--bone); border: 0; border-radius: 999px; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.nav-toggle__bars { width: 1.05rem; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
@media (max-width: 1000px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: var(--gut); right: var(--gut); top: calc(100% - .25rem); flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); max-height: calc(100vh - 7rem); overflow: auto; }
	.site-nav.is-open { display: flex; }
	.menu { flex-direction: column; gap: 0; margin: 0; }
	.menu a { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
	.menu .sub-menu, .menu .children { position: static; visibility: visible; opacity: 1; transform: none; padding: 0 0 0 1rem; border: 0; box-shadow: none; background: none; }
}

/* ---------- Garment artwork ---------- */
.gm { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.gm-b { fill: var(--g); transition: fill .35s; }
.gm-alt { fill: var(--bone); }
.gm-s1 { fill: #000; opacity: .16; }
.gm-s2 { fill: #000; opacity: .3; }
.gm-in { fill: #000; opacity: .5; }
.gm-hi { fill: #fff; opacity: .1; }
.gm-l { fill: none; stroke: #000; stroke-opacity: .32; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.gm-l--thin { stroke-width: 1.5; stroke-opacity: .25; }
.gm-rib { fill: none; stroke: #000; stroke-opacity: .28; stroke-width: 11; stroke-linecap: round; }
.gm-cord { fill: none; stroke: #fff; stroke-opacity: .75; stroke-width: 4; stroke-linecap: round; }
.gm-snap { fill: #fff; opacity: .8; }
.gm-fit { transform-box: fill-box; transform-origin: 50% 40%; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.gm-art rect { fill: #fff; opacity: .92; }
.gm-art text { font-family: var(--display); font-weight: 900; font-size: 30px; fill: var(--ink); letter-spacing: .02em; }
.gm-art__emb ellipse { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 4 3; opacity: .9; }
.gm-art__emb text { font-size: 16px; fill: #fff; text-transform: uppercase; }
.gm-art__emb { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; margin-top: -5.5rem; padding-top: 5.5rem; background: radial-gradient(60rem 36rem at 78% 42%, rgba(47, 91, 255, .28), transparent 62%), radial-gradient(40rem 30rem at 0% 100%, rgba(47, 91, 255, .12), transparent 60%), var(--bg); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(236, 231, 221, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 231, 221, .04) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem); }
.hero__kicker { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.25rem; padding: .4rem .9rem; border: 1px solid var(--rule); border-radius: 999px; background: rgba(25, 28, 36, .7); font-size: .92rem; font-weight: 600; color: var(--bone); }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: #41d67c; box-shadow: 0 0 0 0 rgba(65, 214, 124, .6); animation: sv-pulse 2.2s infinite; }
@keyframes sv-pulse { 70% { box-shadow: 0 0 0 .6rem rgba(65, 214, 124, 0); } 100% { box-shadow: 0 0 0 0 rgba(65, 214, 124, 0); } }
.hero__title { font-size: clamp(3rem, 6.5vw, 6.6rem); overflow-wrap: break-word; font-weight: 900; line-height: .86; margin-bottom: 1.5rem; }
.hero__text { max-width: 33rem; font-size: 1.18rem; color: var(--mute); }
.hero__act { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 2.5rem; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 2.25rem; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.facts dt { font-size: .85rem; color: var(--mute); }
.facts dd { margin: .15rem 0 0; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }

/* spec builder */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 13.5rem; gap: 1rem; align-items: stretch; }
.builder__stage { position: relative; display: grid; place-items: center; min-height: 26rem; padding: 1.5rem; border: 1px solid var(--rule); border-radius: 28px; background: linear-gradient(160deg, rgba(32, 36, 46, .9), rgba(19, 21, 27, .9)); overflow: hidden; }
.builder__word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); margin: 0; width: max-content; font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 11vw, 9.5rem); line-height: .8; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(236, 231, 221, .1); pointer-events: none; }
.builder__gm { grid-area: 1 / 1; position: relative; max-width: 25rem; }
.builder[data-product="hoodie"] .gm--tee, .builder[data-product="tee"] .gm--hoodie { display: none; }
.builder .builder__gm { animation: sv-pop .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes sv-pop { from { opacity: 0; transform: translateY(14px) scale(.94); } }
.builder[data-fit="regular"] .gm-fit { transform: scale(.9, .98); }
.builder[data-fit="oversized"] .gm-fit { transform: scale(1.04, 1.02); }
.builder[data-fit="boxy"] .gm-fit { transform: scale(1.1, .9); }
.builder[data-deco="emb"] .gm-art__print, .builder[data-deco="none"] .gm-art { display: none; }
.builder[data-deco="emb"] .gm-art__emb { display: block; }
.builder__spec { position: absolute; left: 1rem; bottom: 1rem; margin: 0; padding: .45rem .9rem; border-radius: 999px; background: rgba(12, 13, 17, .8); border: 1px solid var(--rule); font-size: .9rem; font-weight: 600; }
.builder__panel { display: flex; flex-direction: column; gap: .8rem; padding: 1.1rem; border: 1px solid var(--rule); border-radius: 28px; background: var(--card); }
.builder__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
.opt { display: flex; flex-wrap: wrap; gap: .35rem; }
.opt__btn { flex: 1 1 auto; min-height: 2.5rem; padding: 0 .8rem; border: 1px solid var(--rule); border-radius: 999px; background: none; color: var(--bone); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.opt__btn:hover { border-color: var(--mute); }
.opt__btn[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; margin-top: .2rem; }
.swatch { aspect-ratio: 1; min-width: 24px; border-radius: 50%; border: 2px solid var(--card); outline: 1px solid var(--rule); cursor: pointer; padding: 0; transition: transform .15s; }
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { outline: 2px solid var(--bone); outline-offset: 2px; }
.builder__note { margin: auto 0 0; font-size: .85rem; color: var(--mute); }
@media (max-width: 1100px) { .builder { grid-template-columns: 1fr; } .builder__panel { flex-direction: row; flex-wrap: wrap; align-items: center; } .builder__title, .builder__note { flex: 1 1 100%; } .swatches { grid-template-columns: repeat(6, 2rem); } }
@media (max-width: 900px) { .hero__in { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; } .builder__stage { min-height: 21rem; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--rule); background: var(--bg-2); padding: 1.1rem 0; }
.ticker__run { display: flex; width: max-content; animation: sv-tick 38s linear infinite; }
.ticker span { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.ticker span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.ticker span::after { content: ""; width: .7rem; height: .7rem; margin: 0 1.6rem; border-radius: 50%; background: var(--blue); }
@keyframes sv-tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec); }
.sec__head { max-width: 50rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec__head p { color: var(--mute); font-size: 1.12rem; max-width: 38rem; }
.sec__head--row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; max-width: none; }
.sec__head--row h2 { margin: 0; }

/* hoodies / shirts panels */
.duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.panel { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: 1rem; min-height: 26rem; padding: clamp(1.25rem, 2.5vw, 2.25rem); border-radius: 28px; overflow: hidden; isolation: isolate; }
.panel--hoodie { background: linear-gradient(150deg, #1c2a6b, #10152e 70%); }
.panel--tee { background: linear-gradient(150deg, #3a352b, #17150f 70%); }
.panel::before { content: ""; position: absolute; z-index: -1; left: -10%; top: 10%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .07); filter: blur(10px); }
.panel__art { margin: -14% -22% -14% -16%; }
.tile .gm .gm-fit { transform: scale(1.22); }
.panel__art .gm { transition: transform .5s cubic-bezier(.3, 1.3, .5, 1); }
.panel:hover .panel__art .gm { transform: rotate(-5deg) scale(1.05); }
.panel h3 { font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 900; margin-bottom: .2em; }
.panel h3 a { text-decoration: none; }
.panel h3 a::after { content: ""; position: absolute; inset: 0; }
.panel__body p { color: #cfd3dd; max-width: 24rem; }
.chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.1rem 0 1.4rem; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 .85rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s; }
.chips a:hover { background: var(--bone); color: var(--ink); }
.panel__more { position: relative; z-index: 1; font-weight: 700; color: #fff; }
@media (max-width: 1000px) { .duo__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .panel { grid-template-columns: 1fr; } .panel__art { max-width: 15rem; margin-inline: auto; } }

.rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.tile { display: grid; gap: .75rem; padding: 1.25rem 1.25rem 1.1rem; border: 1px solid var(--rule); border-radius: 22px; background: var(--card); text-decoration: none; transition: background-color .2s, transform .2s, border-color .2s; }
.tile:hover { background: var(--card-2); border-color: #4a5164; transform: translateY(-6px); }
.tile .gm { max-width: 11rem; margin-inline: auto; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .4)); transition: transform .4s cubic-bezier(.3, 1.3, .5, 1); }
.tile:hover .gm { transform: rotate(-6deg) scale(1.06); }
.tile__name { font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1; text-transform: uppercase; }
@media (max-width: 1000px) { .rail { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .rail { grid-template-columns: 1fr 1fr; } }

/* bento */
.sec--bento { background: var(--bg-2); border-block: 1px solid var(--rule); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(11.5rem, auto); gap: 1.25rem; }
.cell { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border: 1px solid var(--rule); border-radius: 24px; background: var(--card); text-decoration: none; overflow: hidden; transition: border-color .2s, transform .2s, background-color .2s; }
.cell:hover { border-color: var(--blue-2); transform: translateY(-4px); }
.cell__name { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.cell__text { color: var(--mute); font-size: .98rem; max-width: 22rem; }
.cell__label { font-size: .95rem; font-weight: 600; opacity: .85; }
.cell--moq { grid-column: span 2; grid-row: span 2; justify-content: flex-end; background: var(--blue); border-color: var(--blue); color: #fff; }
.cell--moq .cell__text { color: #dfe6ff; font-size: 1.05rem; }
.cell__big { font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 9vw, 8rem); line-height: .82; text-transform: uppercase; }
.cell--cut, .cell--deco { grid-column: span 2; }
.cell__art { position: absolute; right: 1rem; bottom: .75rem; width: 46%; fill: none; stroke: var(--bone); stroke-width: 2.5; stroke-linecap: round; opacity: .85; }
.cell__art .dash { stroke: var(--blue-2); stroke-dasharray: 7 7; animation: sv-sew 1.2s linear infinite; }
@keyframes sv-sew { to { stroke-dashoffset: -14; } }
.wovenlabel { align-self: flex-start; margin-top: auto; padding: .5rem 1.1rem; background: var(--bone); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; border-radius: 3px; outline: 1.5px dashed var(--ink-2); outline-offset: -5px; transform: rotate(-3deg); transition: transform .3s; }
.cell:hover .wovenlabel { transform: rotate(2deg) scale(1.05); }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.pills span { padding: .35rem .8rem; border: 1px solid #454c5e; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.washes { display: flex; gap: .4rem; margin-block: .4rem; }
.washes i { flex: 1; height: 3.2rem; border-radius: 12px; }
.washes i:nth-child(1) { background: linear-gradient(135deg, #3c5c8a, #27406a); }
.washes i:nth-child(2) { background: radial-gradient(circle at 30% 30%, #8d8f95 0 12%, transparent 30%), radial-gradient(circle at 70% 65%, #7c7e84 0 14%, transparent 34%), #3a3c42; }
.washes i:nth-child(3) { background: linear-gradient(135deg, #7d6a55, #a8957e 50%, #7d6a55); }
@media (max-width: 1000px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .cell--moq, .cell--cut, .cell--deco { grid-column: auto; } }

/* fabric weight explorer */
.gsm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.gsm .sec__head { margin: 0; }
.gsm__card { padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--rule); border-radius: 28px; background: var(--card); }
.gsm__value { margin: 1.25rem 0 .25rem; font-family: var(--display); font-weight: 900; font-size: clamp(4.5rem, 10vw, 7.5rem); line-height: .85; }
.gsm__value span { font-size: .32em; color: var(--mute); }
.gsm__range { width: 100%; height: 2.75rem; margin: .5rem 0; accent-color: var(--blue); cursor: pointer; }
.gsm__stack { display: flex; flex-direction: column; gap: 3px; margin: .5rem 0 1.25rem; }
.gsm__stack i { height: 5px; border-radius: 3px; background: var(--blue); opacity: .15; transition: opacity .2s; }
.gsm__stack i.on { opacity: 1; }
.gsm__band { margin: 0 0 .3rem; font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.gsm__text { color: var(--bone); min-height: 3.3em; }
.gsm__foot { margin: 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .9rem; color: var(--mute); }
.gsm__foot a { color: var(--blue-2); font-weight: 600; }
@media (max-width: 900px) { .gsm { grid-template-columns: 1fr; } }

/* process */
.sec--process { background: var(--paper); color: var(--ink); }
.steps { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 2.1rem; border-top: 2px dashed var(--ink); transform-origin: left; }
.steps li { position: relative; counter-increment: step; padding-top: 5.25rem; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; padding-right: .75rem; background: var(--paper); font-family: var(--display); font-weight: 900; font-size: 4.2rem; line-height: 1; color: var(--blue); }
.steps h3 { font-size: 1.6rem; }
.steps p { color: var(--ink-2); font-size: .98rem; margin: 0; }
.js .steps[data-reveal]::before { transform: scaleX(0); }
.js .steps[data-reveal] li { opacity: 0; transform: translateY(16px); }
.js .steps.is-in::before { transform: none; transition: transform 1.5s cubic-bezier(.5, 0, .2, 1); }
.js .steps.is-in li { opacity: 1; transform: none; transition: opacity .5s, transform .5s; }
.js .steps.is-in li:nth-child(2) { transition-delay: .15s; } .js .steps.is-in li:nth-child(3) { transition-delay: .3s; }
.js .steps.is-in li:nth-child(4) { transition-delay: .45s; } .js .steps.is-in li:nth-child(5) { transition-delay: .6s; } .js .steps.is-in li:nth-child(6) { transition-delay: .75s; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; } .steps::before { display: none; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .steps li { padding-top: 4.5rem; } }

/* factory */
.sec--factory { background: var(--bg); }
.shots { display: grid; gap: 1.25rem; grid-template-columns: 1.4fr 1fr 1fr; }
.shots--1 { grid-template-columns: 1fr; } .shots--2 { grid-template-columns: 1.3fr 1fr; }
.shot { margin: 0; border-radius: 24px; overflow: hidden; background: var(--card); }
.shot img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.shot:hover img { transform: scale(1.05); }
.admin-note { padding: 1rem 1.25rem; border: 1.5px dashed var(--mute); border-radius: 14px; color: var(--mute); max-width: 46rem; }
@media (max-width: 760px) { .shots, .shots--2 { grid-template-columns: 1fr; } }

/* guides on home */
.sec--guides { background: var(--bg-2); border-top: 1px solid var(--rule); }
.guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.guides a { display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: 1.5rem; border: 1px solid var(--rule); border-radius: 22px; background: var(--card); text-decoration: none; transition: transform .2s, border-color .2s; }
.guides a:hover { transform: translateY(-5px); border-color: var(--blue-2); }
.guides__kind { align-self: flex-start; padding: .2rem .7rem; border-radius: 999px; background: rgba(47, 91, 255, .2); color: var(--blue-2); font-size: .82rem; font-weight: 700; }
.guides__name { font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: 1; text-transform: uppercase; }
.guides__text { color: var(--mute); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1000px) { .guides { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guides { grid-template-columns: 1fr; } }

/* home long text */
.sec--about { background: var(--paper); color: var(--ink); }
.sec--about .wrap--narrow { padding-block: 0; }

/* quote banner */
.cta { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.cta::before { content: ""; position: absolute; right: -8rem; top: -8rem; width: 28rem; height: 28rem; border-radius: 50%; border: 3.5rem solid rgba(255, 255, 255, .1); }
.cta__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; }
.cta h2 { font-size: clamp(2.8rem, 6.4vw, 5.8rem); font-weight: 900; }
.cta p { color: #e3e9ff; font-size: 1.15rem; max-width: 36rem; margin: 0; }
.cta__act { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.cta .btn--chalk { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.cta .btn--chalk:hover { background: #fff; border-color: #fff; }
.cta .btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
@media (max-width: 860px) { .cta__in { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { position: relative; margin-top: -5.5rem; padding: calc(5.5rem + clamp(2.5rem, 6vw, 5rem)) 0 clamp(2.5rem, 6vw, 4.5rem); background: radial-gradient(50rem 26rem at 85% 0%, rgba(47, 91, 255, .3), transparent 65%), var(--bg); border-bottom: 1px solid var(--rule); }
.page-head__title { font-size: clamp(3rem, 7.4vw, 6.4rem); font-weight: 900; line-height: .88; max-width: 16ch; margin: 0; }
.page-head__text { max-width: 42rem; margin: 1.4rem 0 0; font-size: 1.2rem; color: var(--mute); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; font-size: .95rem; color: var(--mute); }
.crumbs a { color: var(--bone); }
.site-main > .wrap, .site-main > .wrap--narrow, .site-main > article.wrap { color: var(--ink); }
.site-main { background: var(--bg); }
body:not(.is-front) .site-main { background: var(--paper); color: var(--ink); }
body:not(.is-front) .page-head { color: var(--bone); }

.landing { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.quote-card { position: sticky; top: 6.5rem; display: grid; gap: .75rem; padding: 1.25rem; background: var(--bg); color: var(--bone); border-radius: 24px; }
.quote-card .btn { width: 100%; }
.quote-card .btn--line { border-color: rgba(236, 231, 221, .5); color: var(--bone); }
.quote-card .btn--line:hover { background: var(--bone); color: var(--ink); }
.quote-card .text-link { justify-self: center; padding: .5rem; }
.tag { margin: 0; display: grid; }
.tag > div { padding: .8rem .25rem; }
.tag > div + div { border-top: 1px solid var(--rule); }
.tag dt { font-size: .85rem; color: var(--mute); }
.tag dd { margin: .1rem 0 0; font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
@media (max-width: 900px) { .landing { grid-template-columns: 1fr; } .quote-card { position: static; } }

.prose { max-width: 72ch; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.5em; font-size: clamp(2.1rem, 4vw, 3.1rem); }
.prose h3 { margin-top: 1.5em; font-size: 1.7rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose a { font-weight: 600; color: #1d3fd0; }
.prose a:hover { background: #dfe6ff; }
.prose img { border-radius: 18px; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose .wp-block-table { margin-inline: 0; overflow-x: auto; }
.prose .is-style-spec table, .sheet { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--ink); border-collapse: separate; border-spacing: 0; }
.prose .is-style-spec thead th { background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; border: 0; }
.prose .is-style-spec td:first-child, .prose .is-style-spec tbody th { font-weight: 700; width: 30%; }
.prose .is-style-spec tr:last-child td { border-bottom: 0; }
.prose blockquote { margin-inline: 0; padding: .25rem 0 .25rem 1.25rem; border-left: .4rem solid var(--blue); font-size: 1.15rem; }
.prose details { border-top: 1.5px solid var(--ink); margin: 0; }
.prose details:last-of-type { border-bottom: 1.5px solid var(--ink); }
.prose summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 700; font-size: 1.12rem; cursor: pointer; list-style: none; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; background: var(--ink); color: var(--paper); border-radius: 50%; font-weight: 700; transition: transform .25s, background-color .2s; }
.prose details[open] > summary::after { content: "\2212"; background: var(--blue); color: #fff; transform: rotate(180deg); }
.prose details > :not(summary) { margin: 0 0 1.1rem; max-width: 62ch; color: var(--ink-2); }
.prose ol.is-style-steps { list-style: none; padding: 0; counter-reset: step; }
.prose ol.is-style-steps li { position: relative; counter-increment: step; padding: 0 0 1.4rem 3.75rem; margin: 0 0 0 1.25rem; border-left: 2px dashed var(--ink); }
.prose ol.is-style-steps li:last-child { border-left-color: transparent; }
.prose ol.is-style-steps li::before { content: counter(step); position: absolute; left: -1.35rem; top: -.25rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--blue); color: #fff; border-radius: 50%; font-weight: 800; }
.faqs { margin-top: clamp(2rem, 5vw, 3.5rem); }

.related { background: var(--paper-2); color: var(--ink); padding-block: clamp(3rem, 6vw, 5rem); }
.related h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.related__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.related__list a { display: grid; gap: .4rem; height: 100%; padding: 1.3rem; background: var(--paper); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: background-color .18s, color .18s, transform .18s; }
.related__name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
.related__text { color: var(--ink-2); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.related__list a:hover { background: var(--ink); color: var(--paper); transform: translateY(-4px); }
.related__list a:hover .related__text { color: #b9bdc7; }
@media (max-width: 900px) { .related__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .related__list { grid-template-columns: 1fr; } }

.posts { margin: 0; padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4.5rem); list-style: none; color: var(--ink); }
.post-row { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .25rem 2rem; padding: 1.6rem 0; border-top: 1.5px solid var(--ink); }
.post-row time, .post-meta, .post-row__kind { color: var(--ink-2); font-size: .95rem; }
.post-row h2 { grid-column: 2; font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0; }
.post-row h2 a { text-decoration: none; }
.post-row h2 a:hover { color: #1d3fd0; }
.post-row p { grid-column: 2; margin: .5rem 0 0; color: var(--ink-2); max-width: 60ch; }
.guides-intro { padding-top: clamp(2rem, 5vw, 3.5rem); }
.nav-links { display: flex; gap: .5rem; padding-bottom: 3rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 .75rem; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; text-decoration: none; }
.page-numbers.current { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .post-row { grid-template-columns: 1fr; } .post-row h2, .post-row p { grid-column: 1; } }

/* ---------- Forms ---------- */
.rfq-wrap { padding-bottom: 3rem; scroll-margin-top: 7rem; }
.rfq { padding: clamp(1.25rem, 3vw, 2.25rem); background: #fff; border-radius: 24px; box-shadow: 0 0 0 1.5px var(--ink); }
.rfq__group { margin: 0 0 2rem; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.rfq__group legend { padding: 0; margin-bottom: 1rem; font-family: var(--display); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; }
.field { margin: 0; display: grid; gap: .35rem; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 700; }
.field__hint { color: var(--ink-2); font-size: .95rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], input[type="file"], select, textarea { width: 100%; min-height: 3.1rem; padding: .7rem .9rem; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink-2); border-radius: 12px; font: inherit; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--ink); }
.rfq__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 2px solid; border-radius: 14px; background: #fff; font-weight: 600; }
.notice--ok { border-color: var(--ok); color: var(--ok); }
.notice--err { border-color: var(--error); color: var(--error); }
@media (max-width: 640px) { .rfq__group { grid-template-columns: 1fr; } }
.search-form { display: flex; gap: .5rem; }
.search-form label { flex: 1; }
.search-submit, .comment-form input[type="submit"] { min-height: 3.1rem; padding: 0 1.4rem; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.comments { padding-bottom: 3rem; }
.comment-list { padding-left: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: var(--bone); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); overflow: hidden; }
.site-footer__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: start; }
.site-footer__name { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; text-transform: uppercase; margin-bottom: .6rem; }
.site-footer__about p:last-child { color: var(--mute); max-width: 30rem; }
.menu--footer { flex-direction: column; gap: 0; margin: 0; }
.menu--footer a { color: var(--mute); padding: .3rem 0; }
.menu--footer a:hover { color: var(--bone); }
.site-footer__act { display: grid; gap: 1rem; justify-items: start; }
.site-footer__word { margin: clamp(2rem, 5vw, 4rem) 0 -0.16em; font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 21vw, 19rem); line-height: .8; text-align: center; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px #343a48; }
.site-footer__legal { position: relative; padding-block: 1.25rem; border-top: 1px solid var(--rule); background: var(--bg); color: var(--mute); font-size: .95rem; }
.site-footer__legal p { margin: 0; }
@media (max-width: 860px) { .site-footer__in { grid-template-columns: 1fr; } }
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: inline-flex; align-items: center; gap: .5rem; min-height: 3.1rem; padding: 0 1.2rem; background: #25d366; color: #06240f; border-radius: 999px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .15s; }
.wa-float:hover { transform: translateY(-3px); }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { color: var(--ink-2); font-size: .92rem; margin-top: .4rem; }
.sticky, .bypostauthor, .gallery-caption { /* intentionally unstyled */ }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .steps[data-reveal]::before { transform: none; }
	.js .steps[data-reveal] li { opacity: 1; transform: none; }
}
