/* BOXXMEN website styles
   Theme carried over from the original boxxmen.xyz (GoDaddy Airo build):
   deep navy background, steel-blue accents, Rajdhani headings, Inter text,
   angled buttons and a faint hex grid. */

:root {
  --bg: #01050e;
  --card: #061228;
  --muted: #0d1e3b;
  --border: #1a3051;
  --primary: #5985b1;
  --secondary: #7aa3cd;
  --accent: #396393;
  --text: #8eaec7;      /* body copy (muted foreground) */
  --fg: #f5f5f5;        /* headings, labels, emphasis */
  --display: #c6cdd2;   /* big hero headings */
  --good: #21c45d;
  --warn: #facc15;
  --bad: #ef4444;
  --line: rgba(89, 133, 177, 0.2);
  --line-soft: rgba(89, 133, 177, 0.12);

  --heading: "Rajdhani", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 2px;
  --angle: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpolygon points='30,2 58,17 58,47 30,62 2,47 2,17' fill='none' stroke='%235985b1' stroke-width='0.8'/%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--secondary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fg); }
strong { color: var(--fg); }

:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.05;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); text-transform: uppercase; color: var(--display); line-height: .95; letter-spacing: -0.005em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; }
h3 { font-size: 1.4rem; line-height: 1.15; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; max-width: 56ch; }
.sub { font-family: var(--heading); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: .05em; color: var(--secondary); margin-bottom: .4em; }
.muted { color: var(--text); }
.small { font-size: .9rem; }
.measure { max-width: 66ch; }

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-family: var(--heading); font-weight: 700; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--primary); }
.eyebrow::before { content: ""; width: 48px; height: 1px; background: var(--primary); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .8em 1.9em;
  font-family: var(--heading); font-weight: 700; font-size: .95rem; line-height: 1.1;
  letter-spacing: .14em; text-transform: uppercase;
  border: 0; cursor: pointer; text-decoration: none;
  clip-path: var(--angle);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #6b95c0; color: #fff; box-shadow: 0 0 20px rgba(89, 133, 177, .4); }
.btn-secondary { background: transparent; color: var(--secondary); box-shadow: inset 0 0 0 2px var(--secondary); }
.btn-secondary:hover { background: rgba(122, 163, 205, .1); color: var(--fg); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--fg); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.textlink { font-family: var(--heading); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; color: var(--primary); text-decoration: none; }
.textlink:hover { color: var(--secondary); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(1, 5, 14, .9); border-bottom: 1px solid var(--line-soft); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--fg); flex: none; }
.brand img { height: 68px; width: auto; mix-blend-mode: lighten; }
.wordmark { font-family: var(--heading); font-weight: 700; font-size: 1.6rem; letter-spacing: .08em; color: var(--fg); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { position: relative; text-decoration: none; padding: 8px 0; font-family: var(--heading); font-weight: 600; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 1px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .3s ease; }
.nav a:not(.btn):hover { color: var(--fg); }
.nav a:not(.btn):hover::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--primary); }
.nav .btn { margin-left: 6px; padding: .7em 1.4em; min-height: 44px; font-size: .9rem; color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); min-height: 44px; padding: 0 14px; font: 700 .95rem var(--heading); letter-spacing: .12em; text-transform: uppercase; color: var(--primary); cursor: pointer; }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: rgba(1, 5, 14, .98); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 2px; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 16px 0 0; border-bottom: 0; }
}
@media (max-width: 600px) {
  .site-header .wrap { min-height: 68px; }
  .brand img { height: 52px; }
}

/* ---------- Hex grid backdrop ---------- */
.hexbg { position: relative; isolation: isolate; }
.hexbg::before { content: ""; position: absolute; inset: 0; background-image: var(--hex); opacity: .07; z-index: -1; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(89, 133, 177, .09) 0%, transparent 70%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(88px, 10vw, 136px); }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-bottom: 30px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; background: var(--muted); clip-path: polygon(0 100%, 100% 0, 100% 100%); pointer-events: none; }
.hero-drawing { margin: 0; background-color: var(--card); background-image: linear-gradient(rgba(89, 133, 177, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(89, 133, 177, .06) 1px, transparent 1px); background-size: 40px 40px; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px, 2vw, 20px); }
.hero-drawing figcaption { font-size: .82rem; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text); }
.legend-cut::before, .legend-crease::before { content: ""; display: inline-block; width: 26px; vertical-align: middle; margin-right: 8px; border-top: 2px solid var(--display); }
.legend-crease::before { border-top: 2px dashed var(--secondary); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

.dieline .cut { stroke: var(--display); stroke-width: 3.5; fill: none; stroke-linejoin: round; }
.dieline .crease { stroke: var(--secondary); stroke-width: 3; stroke-dasharray: 13 9; fill: none; }
.dieline .dim { stroke: var(--text); stroke-width: 1.6; fill: none; }
.dieline text { font-family: var(--heading); font-weight: 700; font-size: 34px; fill: var(--fg); }
.dieline .panel-label { font-family: var(--body); font-weight: 500; font-size: 24px; fill: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .dieline .cut { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s ease-out .2s forwards; }
  .dieline .crease, .dieline .dims, .dieline .panel-label { opacity: 0; animation: appear .6s ease-out 1.5s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* ---------- Page heads (inner pages) ---------- */
.page-head { border-bottom: 1px solid var(--line-soft); background: radial-gradient(ellipse 70% 80% at 15% 40%, rgba(89, 133, 177, .08) 0%, transparent 70%), var(--bg); }
.page-head .wrap { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 20ch; }
.page-head .lede { margin-bottom: 0; max-width: 62ch; }
.crumbs { font-size: .85rem; margin-bottom: 18px; color: var(--text); }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { margin: 0 8px; color: var(--primary); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--muted); }
.section-head { max-width: 64ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { font-size: 1.08rem; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

/* tools list */
.tool-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--primary); }
.tool-list li { border-bottom: 1px solid var(--line); }
.tool-list a { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) auto; gap: 6px 32px; align-items: baseline; padding: 22px 8px; text-decoration: none; color: var(--text); transition: background-color .2s ease; }
.tool-list a:hover { background: rgba(89, 133, 177, .07); color: var(--text); }
.tool-list .t-name { font-family: var(--heading); font-weight: 700; font-size: 1.3rem; color: var(--fg); }
.tool-list .t-go { font-family: var(--heading); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--primary); white-space: nowrap; }
@media (max-width: 760px) { .tool-list a { grid-template-columns: 1fr; gap: 4px; } }

/* services grid */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; }
.svc h3 { margin-bottom: .4em; }
.svc p { margin-bottom: .8em; }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }

/* steps: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 70px; }
.steps li::before { content: "0" counter(step); position: absolute; top: 0; left: 0; font-family: var(--heading); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--primary); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 76px; right: -16px; height: 1px; background: linear-gradient(90deg, var(--primary), transparent); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* founder */
.founder { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.portrait { aspect-ratio: 4 / 5; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.portrait .mono { font-family: var(--heading); font-weight: 700; font-size: 4.5rem; letter-spacing: .05em; color: var(--primary); }
.founder .role { font-family: var(--heading); font-weight: 600; font-size: 1.2rem; letter-spacing: .05em; color: var(--secondary); margin-top: -.2em; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .portrait { max-width: 240px; } }

/* Studio promo on the home page */
.studio-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.studio-promo .preview { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.studio-promo ul { padding-left: 1.1em; margin: 0 0 24px; }
.studio-promo li { margin-bottom: 6px; }
@media (max-width: 860px) { .studio-promo { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.direct { list-style: none; padding: 0; margin: 24px 0 0; }
.direct li { padding: 12px 0; border-top: 1px solid var(--line); }
.direct li:last-child { border-bottom: 1px solid var(--line); }
.direct .k { display: block; font-family: var(--heading); font-weight: 700; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); }
.direct a { font-weight: 600; color: var(--fg); }

.form { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 500; font-size: .92rem; color: var(--fg); margin-bottom: 6px; }
.field > span .req { color: var(--secondary); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 12px; min-height: 48px;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; -webkit-appearance: none; appearance: none; padding-right: 36px; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
input::placeholder, textarea::placeholder { color: #4f6a85; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .86rem; margin: 12px 0 0; }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); font-weight: 500; display: none; }
.form-status.ok { display: block; background: rgba(33, 196, 93, .12); color: #7ee2a3; border: 1px solid rgba(33, 196, 93, .35); }
.form-status.err { display: block; background: rgba(239, 68, 68, .12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, .35); }
.form-status a { color: inherit; }
.prefill-note { background: rgba(89, 133, 177, .1); border-left: 3px solid var(--primary); padding: 10px 14px; margin-bottom: 18px; font-size: .92rem; display: none; color: var(--fg); }
.prefill-note.show { display: block; }

/* ---------- Calculators ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .tool-layout { grid-template-columns: 1fr; } }
.calc fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.calc legend { font-family: var(--heading); font-weight: 700; font-size: 1.3rem; color: var(--fg); padding: 0; margin-bottom: 12px; }
.calc .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; align-items: end; }
.calc .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; align-items: end; }
@media (max-width: 480px) { .calc .grid3 { grid-template-columns: 1fr 1fr; } }
.unit { position: relative; display: block; }
.unit input { padding-right: 52px; }
.unit::after { content: attr(data-unit); position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .82rem; color: var(--text); pointer-events: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--fg); margin-bottom: 14px; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--primary); }
.hint { font-size: .84rem; margin: -10px 0 16px; }

.results { position: sticky; top: 104px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
@media (max-width: 900px) { .results { position: static; } }
.results h2 { font-size: 1.5rem; margin-bottom: 12px; }
.verdict { font-family: var(--heading); font-weight: 700; font-size: 1.7rem; line-height: 1.15; margin: 0 0 6px; color: var(--fg); }
.verdict.good { color: var(--good); }
.verdict.warn { color: var(--warn); }
.verdict.bad { color: var(--bad); }
.kv { margin: 16px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--line); }
.kv dt, .kv dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { padding-right: 12px; }
.kv dd { font-weight: 600; color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; }
.kv dd.big { font-family: var(--heading); font-weight: 700; font-size: 1.4rem; }
.results .btn-row { margin-top: 20px; }
.layer-plan { margin: 18px 0 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.layer-plan svg { width: 100%; height: auto; }
.layer-plan figcaption { font-size: .84rem; margin-top: 6px; }

.explain { margin-top: clamp(40px, 6vw, 64px); max-width: 72ch; }
.explain h2 { font-size: 1.8rem; }
.formula { font-family: var(--heading); font-weight: 600; font-size: 1.1rem; letter-spacing: .02em; color: var(--fg); background: var(--muted); border-left: 3px solid var(--primary); padding: 12px 16px; margin: 0 0 1em; overflow-x: auto; }
table.simple { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: .94rem; }
table.simple th, table.simple td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.simple th { font-family: var(--heading); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--primary); border-bottom: 1px solid var(--primary); }
table.simple td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--fg); }
.disclaimer { font-size: .88rem; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }

/* ply builder rows */
.ply-row { display: grid; grid-template-columns: 7rem minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.5fr); gap: 10px; align-items: end; margin-bottom: 10px; }
.ply-row .lbl { font-weight: 600; font-size: .9rem; color: var(--fg); padding-bottom: 12px; }
.ply-row .field { margin-bottom: 0; }
.ply-row .field > span { font-size: .78rem; font-weight: 500; color: var(--text); }
.ply-row.liner .tk { visibility: hidden; }
@media (max-width: 520px) { .ply-row { grid-template-columns: 1fr 1fr 1fr; } .ply-row .lbl { grid-column: 1 / -1; padding-bottom: 0; } }

/* ---------- Content pages ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.svc-block { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.svc-block:first-of-type { border-top: 0; padding-top: 0; }
.svc-block .num { font-family: var(--heading); font-weight: 700; font-size: 1rem; letter-spacing: .2em; color: var(--primary); display: block; margin-bottom: 8px; }
.svc-block h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.svc-block .tagline { font-family: var(--heading); font-weight: 600; font-size: 1.25rem; letter-spacing: .04em; color: var(--secondary); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); position: relative; color: var(--fg); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
@media (max-width: 860px) { .svc-block { grid-template-columns: 1fr; } }

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
.ruled > * { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ruled h3 { margin-bottom: .4em; }
.ruled p:last-child { margin-bottom: 0; }

.callout { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.callout h2 { margin: 0 0 6px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.callout p { margin: 0; }

.article-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--primary); }
.article-list li { border-bottom: 1px solid var(--line); padding: 28px 0; }
.article-list h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); text-transform: none; margin-bottom: 6px; }
.article-list h2 a { color: var(--fg); text-decoration: none; }
.article-list h2 a:hover { color: var(--secondary); text-decoration: underline; }
.article-list p { margin-bottom: 6px; max-width: 72ch; }
.meta { font-size: .88rem; color: var(--primary); }

.legal h2 { font-size: 1.6rem; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); text-transform: none; }
.legal h3 { font-size: 1.2rem; margin: 1.3em 0 .4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); position: relative; }
.site-footer::before { content: ""; display: block; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), var(--secondary)); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 64px 0 44px; }
.foot-grid h2 { font-family: var(--heading); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 10px; font-size: .92rem; }
.foot-grid p { font-size: .92rem; }
.foot-grid .brand img { height: 56px; }
.foot-bottom { border-top: 1px solid var(--line-soft); padding: 22px 0 30px; font-size: .8rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot-bottom p { margin: 0; }
.foot-bottom .sep { color: rgba(89, 133, 177, .35); margin: 0 8px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { padding: clamp(64px, 12vw, 140px) 0; }

/* ================================================================
   Studio Lite
   ================================================================ */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) { .studio { grid-template-columns: 1fr; } }

.stepper { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stepper button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px 6px 6px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font: 600 .9rem var(--heading); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.stepper button .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--muted); color: var(--fg); font-size: .85rem; letter-spacing: 0; }
.stepper button[aria-current="step"] { border-color: var(--primary); color: var(--fg); background: rgba(89, 133, 177, .12); }
.stepper button[aria-current="step"] .n { background: var(--primary); }
.stepper button.done .n { background: var(--accent); }

.step-panel { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.step-panel[hidden] { display: none; }
.step-panel h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 6px; }
.step-panel > p.muted { margin-bottom: 20px; }
.step-panel .q { font-weight: 500; color: var(--fg); margin: 0 0 10px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 22px; }
.choice { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; min-height: 112px; padding: 14px 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); cursor: pointer; font: 600 .98rem var(--heading); letter-spacing: .05em; text-align: center; line-height: 1.15; }
.choice svg { width: 52px; height: 44px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.choice small { font-family: var(--body); font-weight: 400; font-size: .76rem; letter-spacing: 0; color: var(--text); }
.choice:hover { border-color: var(--primary); color: var(--fg); }
.choice[aria-pressed="true"] { border-color: var(--primary); background: rgba(89, 133, 177, .16); color: var(--fg); box-shadow: inset 0 0 0 1px var(--primary); }
.choice[aria-pressed="true"] svg { stroke: var(--secondary); }

.toggles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 22px; }
.toggle { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); cursor: pointer; font: 600 .95rem var(--heading); letter-spacing: .04em; text-align: left; }
.toggle svg { width: 30px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.toggle[aria-pressed="true"] { border-color: var(--primary); background: rgba(89, 133, 177, .16); color: var(--fg); }
.toggle[aria-pressed="true"] svg { stroke: var(--secondary); }

.model-wrap { position: sticky; top: 104px; }
@media (max-width: 960px) { .model-wrap { position: static; order: -1; } }
.model { background-color: var(--bg); background-image: linear-gradient(rgba(89, 133, 177, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(89, 133, 177, .06) 1px, transparent 1px); background-size: 32px 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.model-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(6, 18, 40, .8); }
.model-bar .title { font: 700 .82rem var(--heading); letter-spacing: .15em; text-transform: uppercase; color: var(--primary); margin-right: auto; }
.viewbtn { min-height: 36px; padding: 4px 12px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font: 700 .82rem var(--heading); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.viewbtn[aria-pressed="true"] { background: rgba(89, 133, 177, .18); border-color: var(--primary); color: var(--fg); }
.model-canvas { padding: 10px; }
.model-canvas svg { width: 100%; height: auto; max-height: 460px; }
.model-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 14px 12px; font-size: .8rem; }
.model-legend span::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; background: var(--c); border-radius: 1px; }
.model-facts { margin-top: 14px; }

.concepts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 560px) { .concepts { grid-template-columns: 1fr; } }
.concept { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.concept.best { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.concept .badge { position: absolute; top: -1px; right: -1px; background: var(--primary); color: #fff; font: 700 .72rem var(--heading); letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%); }
.concept svg.icon { width: 64px; height: 50px; stroke: var(--secondary); fill: none; stroke-width: 2; stroke-linejoin: round; margin-bottom: 8px; }
.concept h3 { font-size: 1.3rem; margin-bottom: 4px; }
.concept .fit { display: flex; gap: 4px; margin: 6px 0 10px; align-items: center; font-size: .8rem; }
.concept .fit i { width: 22px; height: 6px; background: var(--muted); border-radius: 1px; }
.concept .fit i.on { background: var(--primary); }
.concept .fit span { margin-left: 8px; }
.concept ul { margin: 0; padding-left: 1.1em; font-size: .88rem; }
.concept li { margin-bottom: 3px; }
.concept .why { font-size: .86rem; color: var(--fg); margin: 10px 0 0; }

.bom { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 6px 0 18px; }
.bom th, .bom td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bom th { font: 700 .78rem var(--heading); letter-spacing: .12em; text-transform: uppercase; color: var(--primary); border-bottom-color: var(--primary); }
.bom td:last-child { color: var(--fg); }

.notice { font-size: .86rem; border-left: 3px solid var(--warn); background: rgba(250, 204, 21, .07); padding: 10px 12px; color: var(--fg); margin: 0 0 16px; }

@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle, .stepper, .step-nav { display: none !important; }
  body { background: #fff; color: #111; }
  .results, .model-wrap { position: static; }
}
