:root {
    --board: #FFFFFF;
    --kraft: #B98A5A;
    --kraft-deep: #7A5634;
    --kraft-light: #EFE3D3;
    --cut: #D7262E;
    --crease: #1F6FD1;
    --ink: #2A2320;
    --muted: #6F6760;
    --line: #E4DED6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Sarabun', system-ui, sans-serif; font-size: 16.5px; line-height: 1.7; color: var(--ink); background: var(--board); font-variant-numeric: tabular-nums; }
h1, h2, h3, .display { font-family: 'Chakra Petch', 'Sarabun', sans-serif; line-height: 1.2; letter-spacing: -0.005em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--crease); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head { background: var(--board); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-head .wrap { display: flex; align-items: center; gap: 36px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 21px; }
.nav { display: flex; gap: 26px; font-size: 15.5px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.head-actions { margin-left: auto; display: flex; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 4px; font: inherit; font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; }
.btn:hover { background: #000; border-color: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--kraft-light); border-color: var(--ink); }
.btn-line { background: #06C755; border-color: #06C755; }
.btn-line:hover { background: #05B24C; border-color: #05B24C; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--ink); border-radius: 4px; padding: 7px 12px; font: inherit; font-weight: 600; }

/* Hero: kraft board with flutes */
.builder-band {
    background:
        repeating-linear-gradient(90deg, rgba(122, 86, 52, 0.10) 0 2px, transparent 2px 9px),
        var(--kraft);
    padding: 56px 0 64px;
    border-bottom: 6px solid var(--kraft-deep);
}
.hero-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
.builder-band h2.band-title { font-size: clamp(30px, 3.6vw, 48px); margin: 0; color: #fff; flex-shrink: 0; text-shadow: 0 1px 0 rgba(122, 86, 52, 0.4); }
.hero-head p { margin: 0; color: #FFF7EC; max-width: 30em; font-size: 17.5px; }
.tool { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: stretch; }
.spec, .drawing { background: var(--board); border-radius: 6px; box-shadow: 0 2px 0 var(--kraft-deep); }
.spec { padding: 24px; }
.spec h2 { font-size: 20px; margin: 0 0 16px; }
.field { margin-bottom: 14px; }
.field > label, .field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
select, input[type="text"], input[type="tel"], input[type="number"], input[type="email"] { width: 100%; font: inherit; font-size: 15.5px; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
select:focus, input:focus { border-color: var(--ink); outline: none; }
.styles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: block; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 4px; font-size: 14.5px; cursor: pointer; line-height: 1.35; }
.opt span small { display: block; color: var(--muted); font-size: 12.5px; }
.opt input:checked + span { border-color: var(--ink); background: var(--kraft-light); }
.opt input:focus-visible + span { outline: 2px solid var(--crease); outline-offset: 2px; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dims label { font-size: 13px; color: var(--muted); font-weight: 500; }
.dims input { margin-top: 2px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: flex; align-items: center; gap: 6px; font-size: 14.5px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 4px; cursor: pointer; }
.checks input { accent-color: var(--ink); }
.estimate { margin-top: 18px; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.estimate .big { font-family: 'Chakra Petch', sans-serif; font-size: 36px; font-weight: 700; line-height: 1.1; }
.estimate .big small { font-size: 16px; font-weight: 500; }
.estimate p { margin: 4px 0 14px; color: var(--muted); font-size: 14.5px; }
.estimate .err { color: var(--cut); font-weight: 600; }

.drawing { padding: 20px 24px 24px; display: flex; flex-direction: column; min-width: 0; }
.drawing-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.drawing-head h2 { font-size: 20px; margin: 0; }
.legend { display: flex; gap: 18px; font-size: 13.5px; color: var(--muted); }
.legend i { display: inline-block; width: 26px; height: 0; vertical-align: middle; margin-right: 6px; }
.legend .l-cut { border-top: 2px solid var(--cut); }
.legend .l-crease { border-top: 2px dashed var(--crease); }
.board-svg { flex: 1; min-height: 330px; margin: 12px 0; background:
        linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px; border: 1px solid var(--line); border-radius: 4px; }
.board-svg svg { width: 100%; height: 100%; display: block; }
.blank { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; }
.blank strong { color: var(--ink); }
.moq { width: 100%; border-collapse: collapse; font-size: 15px; }
.moq th { text-align: right; font-weight: 600; font-size: 13.5px; color: var(--muted); padding: 0 0 8px; border-bottom: 1.5px solid var(--ink); }
.moq th:first-child, .moq td:first-child { text-align: left; }
.moq td { text-align: right; padding: 8px 0; border-bottom: 1px solid var(--line); }
.moq tr.pick td { background: var(--kraft-light); font-weight: 600; }
.moq tr.pick td:first-child { box-shadow: inset 3px 0 0 var(--kraft-deep); padding-left: 10px; }

/* Sections */


/* Tool tabs: boxes first, general print second */
.tabs { display: flex; gap: 4px; margin-bottom: -1px; position: relative; z-index: 1; }
.tabs button { font: inherit; font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: 16.5px; padding: 12px 22px; border: 0; border-radius: 6px 6px 0 0; background: rgba(255, 255, 255, 0.35); color: #fff; cursor: pointer; }
.tabs button:hover { background: rgba(255, 255, 255, 0.55); }
.tabs button[aria-selected="true"] { background: var(--board); color: var(--ink); }
.tabs button small { display: block; font-family: 'Sarabun', sans-serif; font-weight: 400; font-size: 12.5px; opacity: .85; }
.tool .spec { border-top-left-radius: 0; }
.tool[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .opt span { padding: 6px 12px; }
.also-print { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding: 18px 22px; background: var(--kraft-light); border-radius: 6px; }
.also-print p { margin: 0; }
.also-print strong { font-family: 'Chakra Petch', sans-serif; font-size: 18px; }
.also-print button { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; color: var(--kraft-deep); }
.legend .l-bleed { display: inline-block; width: 16px; height: 10px; background: var(--kraft-light); border: 1px solid #D9C3A5; vertical-align: middle; margin-right: 6px; }

/* Company hero */
.company-hero { background: repeating-linear-gradient(90deg, rgba(122, 86, 52, 0.10) 0 2px, transparent 2px 9px), var(--kraft); padding: 72px 0 0; }
.company-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.company-hero .copy { padding-bottom: 64px; }
.company-hero h1 { font-size: clamp(36px, 4.8vw, 62px); color: #fff; margin: 0 0 20px; text-shadow: 0 1px 0 rgba(122, 86, 52, 0.4); }
.company-hero .lead { color: #FFF7EC; font-size: 18.5px; margin: 0 0 28px; max-width: 30em; }
.company-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.company-hero .btn-ghost { background: rgba(255, 255, 255, 0.92); border-color: #fff; }
.company-hero .btn-ghost:hover { background: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 18px 32px; margin: 40px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.45); list-style: none; }
.hero-stats li { color: #FFF1DE; font-size: 14px; line-height: 1.4; }
.hero-stats strong { display: block; font-family: 'Chakra Petch', sans-serif; font-size: 26px; color: #fff; }
.collage { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 250px 190px; gap: 12px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px 6px 0 0; }
.collage img:first-child { grid-row: span 2; }
.collage img:nth-child(2) { border-radius: 6px; }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); }
.products article { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.products article:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.products svg { width: 100%; height: 110px; margin-bottom: 14px; }
.products h3 { font-size: 20px; margin: 0 0 6px; }
.products p { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.products .spec-line { display: flex; gap: 20px; font-size: 14px; color: var(--muted); margin-top: auto; padding-bottom: 12px; }
.products .spec-line strong { color: var(--ink); font-family: 'Chakra Petch', sans-serif; font-size: 18px; display: block; }
.products .links { display: flex; gap: 18px; }
.products .links a, .products .links button { font: inherit; font-weight: 600; font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.products .links button { color: var(--kraft-deep); }

/* Services */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.flow li { padding-right: 24px; position: relative; }
.flow li::before { counter-increment: s; content: counter(s); display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--kraft); color: #fff; font-family: 'Chakra Petch', sans-serif; font-weight: 700; margin-bottom: 16px; position: relative; z-index: 1; }
.flow li::after { content: ""; position: absolute; top: 21px; left: 42px; right: 0; border-top: 2px dashed var(--crease); }
.flow li:last-child::after { display: none; }
.flow h3 { font-size: 18px; margin: 0 0 6px; }
.flow p { margin: 0; font-size: 15px; color: var(--muted); }
.industries { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); align-items: center; }
.industries span:first-child { font-weight: 600; margin-right: 6px; }
.industries span + span { border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 14.5px; background: #fff; }
.band-sub { color: #FFF7EC; }
section.block { padding: 96px 0; }
.alt { background: #FAF7F3; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 { font-size: 34px; margin: 0 0 12px; }
.sec-head p { color: var(--muted); margin: 0; }

.catalog { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.catalog article { padding: 24px 24px 8px 0; }
.catalog article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.catalog svg { width: 100%; height: 120px; margin-bottom: 16px; }
.catalog h3 { font-size: 19px; margin: 0 0 6px; }
.catalog p { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.catalog button { font: inherit; font-weight: 600; font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

.factory { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin: 8px 0 0; }
.stats div { border-left: 3px solid var(--kraft); padding-left: 14px; }
.stats strong { display: block; font-family: 'Chakra Petch', sans-serif; font-size: 30px; line-height: 1.15; }
.stats span { font-size: 14.5px; color: var(--muted); }
.machines { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.machines th { text-align: left; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1.5px solid var(--ink); }
.machines td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.machines td:first-child { font-weight: 600; }
.certs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.certs span { border: 1.5px solid var(--ink); border-radius: 4px; padding: 6px 12px; font-weight: 600; font-size: 14.5px; }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cases figure { margin: 0; }
.cases img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 4px; }
.cases h3 { font-size: 19px; margin: 16px 0 6px; }
.cases p { margin: 0; font-size: 15px; color: var(--muted); }
.cases .result { margin-top: 10px; color: var(--ink); font-weight: 600; }

.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.kit ul { padding-left: 20px; color: var(--muted); }
.kit form { background: var(--board); border: 1.5px solid var(--ink); border-radius: 6px; padding: 28px; }
.kit .done { margin: 0; font-weight: 600; }
.kit .done span { display: block; font-weight: 400; color: var(--muted); margin-top: 6px; }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 42em; }

footer { background: var(--ink); color: #CFC7BF; font-size: 14.5px; padding: 56px 0 40px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer h3 { color: #fff; font-size: 16px; margin: 0 0 12px; }
footer p, footer ul { margin: 0; padding: 0; list-style: none; }
footer li { margin-bottom: 6px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }

@media (max-width: 1080px) {
    .tool { grid-template-columns: 1fr; }
    .hero-head { flex-direction: column; align-items: flex-start; }
    .company-hero .wrap { grid-template-columns: 1fr; }
    .products { grid-template-columns: 1fr 1fr; }
    .flow { grid-template-columns: 1fr 1fr; row-gap: 32px; }
    .flow li::after { display: none; }
    .catalog { grid-template-columns: 1fr 1fr; }
    .catalog article:nth-child(3) { padding-left: 0; border-left: 0; }
    .factory, .kit { grid-template-columns: 1fr; }
    .cases { grid-template-columns: 1fr 1fr; }
    footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .wrap { padding: 0 16px; }
    .nav { display: none; }
    .nav.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--board); padding: 16px; gap: 14px; border-bottom: 1px solid var(--line); }
    .menu-toggle { display: inline-block; }
    .head-actions { display: none; }
    .builder-band { padding: 36px 0 44px; }
    .company-hero { padding: 40px 0 48px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .collage { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 120px; }
    .spec, .drawing { padding: 18px 16px; }
    .tabs button { padding: 10px 14px; font-size: 15px; flex: 1; }
    .board-svg { min-height: 240px; }
    section.block { padding: 64px 0; }
    .sec-head h2 { font-size: 27px; }
    .catalog, .cases, .products, .flow { grid-template-columns: 1fr; }
    .catalog article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .machines th:nth-child(3), .machines td:nth-child(3) { display: none; }
    footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } #dieline path { transition: none; } }
