:root {
  color-scheme: light;
  --ink: #241d19;
  --muted: #66584f;
  --paper: #faf7f1;
  --surface: #fffdf8;
  --line: #ddd3c6;
  --clay: #943b26;
  --clay-deep: #752e1d;
  --dark: #231b17;
  --display: Georgia, "Times New Roman", serif;
  --text: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #bf5739; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(2.65rem, 5.8vw, 5.5rem); letter-spacing: -.03em; overflow-wrap: anywhere; }
h2 { font-size: clamp(2rem, 3.6vw, 3.6rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.3rem, 1.9vw, 1.75rem); letter-spacing: -.02em; }
.wrap, .header-inner { width: min(1328px, calc(100% - clamp(36px, 9vw, 148px))); margin-inline: auto; }

.skip { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 10px 18px; background: var(--paper); border: 1px solid var(--line); transform: translateY(-180%); }
.skip:focus { transform: none; }

/* Header & Navigation */
.site-header { position: relative; z-index: 10; background: var(--paper); border-bottom: 1px solid rgba(40, 32, 28, .08); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; font-family: var(--display); font-size: clamp(1.55rem, 2.05vw, 2rem); line-height: 1.05; letter-spacing: -.024em; }
.brand img { max-width: 190px; max-height: 44px; object-fit: contain; width: auto; }
.header-inner nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 26px); font-size: .88rem; font-weight: 600; }
.header-inner nav > a { text-decoration: none; white-space: nowrap; transition: color .18s; }
.header-inner nav > a:not(.button):hover,
.header-inner nav > a[aria-current] { color: var(--clay); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

.button { min-height: 48px; padding: 11px 20px; display: inline-flex; gap: 18px; align-items: center; justify-content: space-between; background: var(--clay); color: #fff; border: 1px solid var(--clay); text-decoration: none; font: 600 .88rem/1.35 var(--text); letter-spacing: .01em; transition: background-color .2s, border-color .2s, color .2s; }
.button:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: #fff; }
.button span { font-size: 1.05em; }
.button-light { color: var(--dark); border-color: #f6eee2; background: #f6eee2; }
.button-light:hover { border-color: #fff; color: #1d1613; background: #fff; }
.button-ghost { color: #fff6ee; border-color: rgba(255, 244, 232, .56); background: rgba(31, 18, 13, .36); backdrop-filter: blur(4px); }
.button-ghost:hover { border-color: #fff; background: rgba(255, 246, 238, .16); color: #fff; }
.header-inner .button { min-height: 42px; padding: 9px 15px; gap: 12px; }

.menu-toggle { display: none; align-items: center; gap: 8px; color: var(--ink); background: transparent; border: 1px solid var(--line); padding: 8px 13px; font-size: .88rem; font-weight: 600; }
.menu-toggle i { display: inline-block; width: 14px; height: 6px; border-block: 1.5px solid currentColor; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] { border-color: var(--clay); color: var(--clay); }
.menu-toggle[aria-expanded="true"] i { height: 0; border-bottom: 0; }

/* Hero */
.hero { display: flex; flex-direction: column; justify-content: flex-end; position: relative; isolation: isolate; overflow: hidden; min-height: clamp(540px, 78svh, 790px); background: #4a2b20; color: #fff; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 48%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(92deg, rgba(28, 14, 9, .82) 0%, rgba(28, 14, 9, .48) 52%, rgba(28, 14, 9, .12) 100%), linear-gradient(0deg, rgba(24, 13, 9, .62) 0%, transparent 46%); }
.hero-inner { padding-block: clamp(72px, 9vw, 120px) clamp(44px, 6vw, 72px); }
.hero h1 { max-width: 11ch; font-size: clamp(3.4rem, 7.6vw, 7.2rem); line-height: .96; letter-spacing: -.032em; }
.eyebrow { margin-bottom: 16px; color: var(--clay); font-size: .74rem; font-weight: 700; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: #f6d4bc; }
.hero-summary { max-width: 44ch; margin: 22px 0 30px; color: #fff4ea; font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }

.hero-systems { border-top: 1px solid rgba(255, 240, 224, .2); background: rgba(24, 14, 10, .48); backdrop-filter: blur(6px); }
.hero-systems-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 15px; }
.hero-systems-label { color: #e8c7b0; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.hero-systems-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .88rem; font-weight: 500; color: #fff5eb; }
.hero-systems-links a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; padding-block: 2px; border-bottom: 1px solid transparent; transition: border-color .18s, color .18s; }
.hero-systems-links a span { color: #e8b092; font-size: .92em; }
.hero-systems-links a:hover { border-color: #f3c6aa; color: #fff; }

/* Sections & Grids */
.section { padding-block: clamp(58px, 7.2vw, 104px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: clamp(28px, 3.8vw, 48px); }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-block: 5px; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; font-size: .9rem; font-weight: 600; transition: color .18s; }
.text-link:hover { color: var(--clay); }
.text-link-muted { color: var(--muted); border-color: var(--line); }
.text-link-muted:hover { color: var(--clay); border-color: var(--clay); }

.grid { display: grid; gap: clamp(20px, 2.5vw, 34px); }
.grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.entry { display: block; text-decoration: none; }
.media { overflow: hidden; background: #ede1d2; border: 1px solid rgba(40, 32, 28, .08); }
.media:empty { display: grid; place-items: center; padding: 24px; background: repeating-linear-gradient(90deg, rgba(148, 59, 38, .05) 0 12px, transparent 12px 24px), linear-gradient(135deg, #efe6da 0%, #e5d8c8 100%); }
.media:empty::after { content: "PANELTEK CERAMIC · PHOTO PENDING"; color: #7e6d61; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-align: center; }
.project-media:empty { background: repeating-linear-gradient(90deg, rgba(255, 240, 224, .05) 0 14px, transparent 14px 28px), linear-gradient(135deg, #3b2e27 0%, #2c211c 100%); }
.project-media:empty::after { color: #c7afa0; }
.detail-media:empty { display: none; }
.split.detail:has(.detail-media:empty) { grid-template-columns: minmax(0, 680px); }
.media img { height: 100%; object-fit: cover; transition: transform .4s ease; }
a.entry:hover .media img { transform: scale(1.035); }
.material-media { aspect-ratio: 4 / 3; }
.project-media { aspect-ratio: 4 / 3; background: #4a372c; border-color: rgba(255, 240, 224, .12); }
.project-media img { object-position: center 48%; }

.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 13px; color: var(--clay); font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; line-height: 1.4; }
.entry-meta:empty { display: none; }
.entry-meta span + span::before { content: "·"; margin-right: 10px; opacity: .55; }
.entry-title { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-top: 6px; }
.entry-title h2, .entry-title h3 { font-size: clamp(1.25rem, 1.8vw, 1.72rem); line-height: 1.16; }
.entry-title span, .story > span { color: var(--clay); flex-shrink: 0; margin-top: 2px; transition: transform .2s; }
a.entry:hover .entry-title span { transform: translate(2px, -2px); }
.entry-desc, .entry > p:not(.entry-meta) { margin-top: 7px; color: var(--muted); font-size: .92rem; line-height: 1.55; }

.project-band { color: #fbf3e8; background: #2c211c; }
.project-band .eyebrow, .project-band .entry-meta, .project-band .entry-title span { color: #eab093; }
.project-band .entry-desc, .project-band p:not(.eyebrow):not(.entry-meta), .project-band .text-link:hover { color: #dfcabd; }

.support { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: clamp(24px, 4vw, 56px); }
.support > div > p:not(.eyebrow) { color: var(--muted); max-width: 44ch; margin-bottom: 22px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }

.quote-band { color: #fff5ec; background: #8f3a27; }
.quote-band .eyebrow { color: #f6d0b8; margin-bottom: 10px; }
.quote-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(44px, 6vw, 82px); }
.quote-note { margin-top: 10px; max-width: 52ch; color: #f9dfd0; font-size: .98rem; line-height: 1.55; }
.quote-inner .button { flex-shrink: 0; }

/* Footer */
.site-footer { color: #f5e8da; background: var(--dark); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; padding-block: 52px; }
.footer-inner p { margin-top: 10px; color: #d4bbae; font-size: .86rem; }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; color: #f2dfd2; font-size: .86rem; }
.footer-contacts a { text-decoration: none; border-bottom: 1px solid rgba(242, 223, 210, .35); padding-bottom: 2px; }
.footer-contacts a:hover { border-color: #fff; color: #fff; text-decoration: none; }
.footer-contacts span { opacity: .45; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; align-content: start; font-size: .88rem; }
.site-footer nav a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; padding-block: 16px 24px; border-top: 1px solid #56433b; color: #dfc7b7; font-size: .76rem; }
.footer-base a { text-decoration: none; }

/* Interior Pages */
.page { min-height: 50vh; padding-block: clamp(28px, 4.2vw, 60px) clamp(58px, 7.5vw, 96px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(20px, 3.2vw, 40px); color: var(--muted); font-size: .83rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--clay); text-decoration: underline; }
.page-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); }
.page-head .eyebrow { margin-bottom: 0; }
.page-head p:not(.eyebrow), .lead { max-width: 58ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; }

/* Product Category Filter Tabs */
.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 34px; padding-block: 14px; border-block: 1px solid var(--line); }
.filters a { padding: 7px 14px; white-space: nowrap; text-decoration: none; font-size: .88rem; font-weight: 500; border: 1px solid transparent; transition: border-color .18s, background-color .18s, color .18s; }
.filters a:hover { color: var(--clay); border-color: var(--line); background: var(--surface); }
.filters a[aria-current] { color: #fff; background: var(--clay); border-color: var(--clay); font-weight: 600; }

.list-grid .entry ~ .empty { display: none; }
.empty { grid-column: 1 / -1; padding-block: 30px; color: var(--muted); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 42px; font-size: .9rem; }

/* News & Downloads */
.story, .file { display: grid; grid-template-columns: minmax(120px, 22%) 1fr auto; align-items: center; gap: clamp(14px, 3vw, 38px); padding: 22px 0; border-top: 1px solid var(--line); }
.story:last-of-type, .file:last-of-type { border-bottom: 1px solid var(--line); }
.story time, .page-head time { color: var(--clay); font-size: .82rem; font-weight: 600; }
.story h2 { margin-top: 6px; font-size: clamp(1.35rem, 2.2vw, 2rem); }
.story-media { aspect-ratio: 4 / 3; }
.file { grid-template-columns: 1fr auto; }

/* Detail Pages */
.split { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: start; gap: clamp(28px, 5.5vw, 84px); }
.detail h1, .contact-layout h1 { font-size: clamp(2.35rem, 4.4vw, 4.2rem); line-height: 1.06; }
.detail-info .eyebrow { margin-bottom: 10px; }
.detail .lead { margin-top: 14px; }
.detail-media { aspect-ratio: 3 / 2; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.detail-section { margin-top: clamp(36px, 5vw, 68px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.related-section, .product-projects, .spec-matrix { margin-top: clamp(44px, 6vw, 76px); padding-top: clamp(34px, 4.5vw, 56px); border-top: 1px solid var(--line); }
.related-section .section-head, .product-projects .section-head, .spec-matrix .section-head { margin-bottom: clamp(22px, 3vw, 34px); }

/* Spec Comparison Matrix */
.spec-matrix:not(:has(tbody tr)) { display: none; }
.matrix-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.matrix-table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
.matrix-table th { padding: 13px 16px; background: #f3ede3; color: var(--ink); font-weight: 600; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
.matrix-table td { padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.matrix-table tbody tr:hover { background: #fdfaf5; }
.matrix-name { color: var(--ink); font-weight: 600; text-decoration: none; }
.matrix-name:hover { color: var(--clay); text-decoration: underline; }
.matrix-cta { display: inline-flex; align-items: center; gap: 5px; color: var(--clay); font-weight: 600; text-decoration: none; white-space: nowrap; }
.matrix-cta:hover { text-decoration: underline; }

/* Colors, Surfaces & Fixing Technical Band */
.tech-band { margin-top: clamp(44px, 6vw, 76px); padding-top: clamp(34px, 4.5vw, 56px); border-top: 1px solid var(--line); }
.tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }
.tech-panel { padding: clamp(22px, 3vw, 34px); background: var(--surface); border: 1px solid var(--line); }
.tech-panel .eyebrow { margin-bottom: 10px; }
.tech-panel h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.15; }
.tech-lead { margin-top: 12px; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.swatch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 20px; }
.swatch-group { display: grid; gap: 6px; }
.swatch-title { font-size: .78rem; font-weight: 600; color: var(--ink); }
.swatch-bar { display: flex; gap: 4px; }
.swatch-bar i { display: block; flex: 1; height: 26px; border: 1px solid rgba(36, 29, 25, .14); }
.finish-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.finish-tags span { padding: 4px 10px; background: var(--paper); border: 1px solid var(--line); font-size: .78rem; font-weight: 500; color: var(--ink); }
.fixing-diagram { margin-top: 18px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.fixing-diagram svg { display: block; width: 100%; height: auto; }
.tech-points { margin: 16px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.tech-points strong { color: var(--ink); }

/* Project -> Product Systems Strip */
.project-systems { margin-top: clamp(36px, 5vw, 60px); padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.project-systems .eyebrow { margin-bottom: 0; }
.project-systems-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 600; font-size: .92rem; }
.project-systems-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.project-systems-links a:hover { color: var(--clay); border-color: var(--clay); }

.feature-photo { aspect-ratio: 16 / 10; margin-bottom: clamp(28px, 4.2vw, 52px); }
.feature-photo img { object-position: center 48%; }
.project-body { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: clamp(26px, 5vw, 72px); align-items: start; }
.project-aside { display: grid; gap: 20px; justify-items: start; }

.spec { margin-block: 22px 28px; border-bottom: 1px solid var(--line); }
.project-aside .spec { margin-block: 0; width: 100%; }
.spec > div { display: grid; grid-template-columns: minmax(100px, .9fr) 1.5fr; gap: 12px; padding-block: 11px; border-top: 1px solid var(--line); font-size: .92rem; }
.spec dt { color: var(--muted); font-weight: 500; }
.spec dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.spec:empty, .gallery:empty { display: none; }

.prose { max-width: 70ch; overflow-wrap: anywhere; font-size: 1.02rem; line-height: 1.72; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); margin-top: 1.5em; }
.prose img { max-width: 100%; border: 1px solid rgba(40, 32, 28, .08); }
.prose table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; }
.detail-copy { margin-block: 0; }
.gallery { margin-top: 34px; }
.gallery .media { aspect-ratio: 4 / 3; }
.gallery:not(:has(img)) { display: none; }

/* Contact & Inquiry Form */
.contact-intro .eyebrow { margin-bottom: 12px; }
.contact-layout .prose { margin-block: 16px 24px; color: var(--muted); }
.contact-links { display: grid; gap: 20px; justify-items: start; font-style: normal; margin-bottom: 28px; }
.contact-spec { width: 100%; margin-block: 0; }
.contact-links a { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--clay); border-color: var(--clay); }
.contact-qr { display: inline-grid; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); }
.contact-qr img { width: 152px; height: 152px; object-fit: contain; background: #fff; }
.contact-qr figcaption { font-size: .78rem; color: var(--muted); text-align: center; font-weight: 600; }
.contact-guide { padding-top: 22px; border-top: 1px solid var(--line); }
.contact-guide .eyebrow { margin-bottom: 10px; }
.contact-guide ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .92rem; display: grid; gap: 6px; }

.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); background: var(--surface); }
.form-head { display: grid; gap: 4px; }
.form h2 { font-size: clamp(1.75rem, 2.8vw, 2.4rem); }
.form-head p { color: var(--muted); font-size: .84rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.form label .req { color: var(--clay); }
.form input, .form textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #c3b5a6; border-radius: 0; color: var(--ink); background: #fff; font-size: .98rem; font-weight: 400; transition: border-color .18s; }
.form input::placeholder, .form textarea::placeholder { color: #9c8f85; }
.form input:focus, .form textarea:focus { border-color: var(--clay); outline: none; }
.form .field-prefilled input { border-left: 3px solid var(--clay); background: #fffaf5; font-weight: 500; }
.form .field-hint { font-size: .79rem; font-weight: 400; color: var(--clay); }
.form textarea { resize: vertical; }
.form .button { justify-self: start; }
.form .statement { color: var(--muted); font-size: .81rem; line-height: 1.5; }
.form .form-status { padding: 11px 14px; color: #8a2c1e; background: #fff0e4; border-left: 3px solid #8a2c1e; font-size: .9rem; }
.form .form-status.success { color: #2b4728; background: #e9f1e4; border-left-color: #2b4728; }
.form .trap { position: absolute; left: -10000px; }
.error-page { margin-top: 55px; justify-items: start; }

/* Responsive */
@media (max-width: 1020px) {
  .header-inner { min-height: 68px; }
  .header-inner nav { gap: 14px; }
  .header-inner nav .button { display: none; }
  .grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wrap, .header-inner { width: min(1328px, calc(100% - 36px)); }
  .js .menu-toggle { display: inline-flex; }
  .header-inner { min-height: 62px; flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .header-inner nav { width: 100%; flex-wrap: wrap; }
  .js .header-inner .menu-toggle + nav { display: none; }
  .js .header-inner .menu-toggle[aria-expanded="true"] + nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 14px; padding-block: 8px 14px; border-top: 1px solid var(--line); }
  .js .header-inner .menu-toggle[aria-expanded="true"] + nav > a:not(.button) { padding: 11px 0; font-size: .96rem; }
  .js .header-inner .menu-toggle[aria-expanded="true"] + nav .button { display: inline-flex; width: 100%; margin-top: 8px; padding: 12px 16px; grid-column: span 2; }

  .hero { min-height: clamp(500px, 76svh, 640px); }
  .hero-photo { object-position: 62% 45%; }
  .hero::after { background: linear-gradient(180deg, rgba(28, 14, 9, .24) 0%, rgba(28, 14, 9, .78) 65%, rgba(24, 13, 9, .86) 100%); }
  .hero-inner { padding-block: 56px 36px; }
  .hero-systems-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 12px; }
  .hero-systems-links { gap: 6px 18px; font-size: .84rem; }

  .section-head { align-items: flex-start; flex-direction: column; }
  .grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .support, .project-body, .tech-grid { grid-template-columns: 1fr; }
  .project-systems { padding: 20px; }
  .detail-media { aspect-ratio: 16 / 10; }
  .feature-photo { aspect-ratio: 4 / 3; }
  .contact-layout { gap: 32px; }
  .quote-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .site-footer nav { gap: 10px 18px; }
}

@media (max-width: 500px) {
  .header-inner .brand { font-size: clamp(1.38rem, 6.2vw, 1.62rem); }
  .menu-toggle { padding: 7px 11px; font-size: .84rem; }
  .hero h1 { font-size: clamp(2.6rem, 13.2vw, 3.6rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .grid-four { gap: 16px 14px; }
  .grid-four .entry-title h3 { font-size: 1.08rem; }
  .grid-four .entry-desc { display: none; }
  .page .grid-three, .grid-two { grid-template-columns: 1fr; }
  .filters { flex-wrap: wrap; overflow-x: visible; gap: 8px; padding-block: 12px; }
  .filters a { flex: 0 0 auto; border-color: var(--line); background: var(--surface); color: var(--ink); transition: none; }
  .filters a[aria-current] { color: #fff; background: var(--clay); border-color: var(--clay); }
  .detail-actions { flex-direction: column; align-items: stretch; }
  .detail-actions .button { width: 100%; }
  .detail-actions .text-link { align-self: flex-start; }
  .story, .file { grid-template-columns: 1fr; gap: 10px; }
  .story > span { display: none; }
  .file .text-link { justify-self: start; }
  .form-row, .swatch-grid { grid-template-columns: 1fr; }
  .form .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
