:root {
  color-scheme: light;
  --paper: #f5f4f0;
  --white: #fdfcf9;
  --ink: #181b18;
  --sub: #565d55;
  --rule: #d9d9cf;
  --orange: #ff6a3b;
  --orange-deep: #bd3614;
  --dark: #181b19;
  --shell: min(1280px, calc(100% - 104px));
  --font: 'Arial', 'Helvetica Neue', sans-serif;
  --mono: 'Consolas', 'SFMono-Regular', monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--font); }
img { display: block; max-width: 100%; }
input, select, textarea, button { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { font-size: clamp(3rem, 6.7vw, 7.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 4.2rem); }
h3 { font-size: 1.35rem; }
:focus-visible { outline: 3px solid #cc4925; outline-offset: 5px; }
.shell { width: var(--shell); max-width: 100%; margin-inline: auto; }
.copy { max-width: 66ch; white-space: pre-line; overflow-wrap: anywhere; color: var(--sub); margin-top: 18px; }
.muted { color: var(--sub); }
.eyebrow { display: inline-block; color: inherit; font: 700 .83rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { content: ''; display: inline-block; width: 11px; height: 3px; margin-right: 10px; vertical-align: .22em; background: var(--orange-deep); }
.skip { position: fixed; top: 10px; left: 12px; transform: translateY(-150%); z-index: 20; background: white; padding: 8px 14px; }
.skip:focus { transform: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: 1px solid transparent;
  border-radius: 8px; text-decoration: none; text-align: center; font-size: .94rem; font-weight: 700; line-height: 1.25;
  transition: background-color .19s ease, color .19s ease, border-color .19s ease, transform .19s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #343830; }
.btn-accent { background: var(--orange); color: #181b18; }
.btn-accent:hover { background: #ff8964; }
.btn-outline { color: var(--ink); border-color: #a6a89f; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { color: #f8f5ed; border-color: #747870; }
.btn-light:hover { border-color: #f8f5ed; background: #ffffff14; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--rule); }
.header-inner { display: grid; grid-template-columns: max-content 1fr max-content; gap: clamp(20px, 3vw, 58px); align-items: center; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); width: fit-content; }
.brand b { font-size: 1.5rem; font-weight: 900; letter-spacing: -.08em; line-height: 1; }
.brand-mark { display: inline-grid; grid-template-columns: repeat(3, 5px); align-items: end; gap: 3px; width: 25px; height: 23px; align-content: center; transform: skewX(-16deg); }
.brand-mark i { display: block; width: 5px; height: 13px; background: var(--orange-deep); border-radius: 1px; }
.brand-mark i:nth-child(2) { height: 19px; }
.brand-mark i:nth-child(3) { height: 16px; }
.logo { width: min(150px, 32vw); height: 38px; object-fit: contain; object-position: left center; }
#main-nav, .primary-nav, .secondary-nav { display: flex; align-items: center; }
#main-nav { justify-content: space-between; gap: 20px; min-width: 0; }
.primary-nav, .secondary-nav { gap: clamp(13px, 2.15vw, 36px); }
.secondary-nav { padding-left: 17px; border-left: 1px solid var(--rule); }
#main-nav a { text-decoration: none; font-size: .89rem; font-weight: 700; padding-block: 6px; white-space: nowrap; }
#main-nav a:hover, #main-nav a[aria-current] { color: var(--orange-deep); }
.header-cta { min-height: 42px; padding: 9px 18px; }
.menu-button { display: none; }

.hero { position: relative; overflow: hidden; background: #1a1d19; color: #f9f7ef; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 76% 42%, #37231b 0%, transparent 49%),
    linear-gradient(120deg, #161a17 0%, #1c201a 60%, #171914 100%);
}
.hero-shell { position: relative; }
.slides { position: relative; }
.slide { position: relative; min-height: clamp(430px, 37.5vw, 560px); display: flex; align-items: center; isolation: isolate; }
.hero-art { position: absolute; z-index: -2; inset: 2% -2% -1% 42%; display: grid; place-items: center; }
.hero-art::before {
  content: ''; position: absolute; inset: 5% 1% 6% 5%; opacity: .66; border: 1px solid #93826b29; border-radius: 3px;
  background: radial-gradient(circle, #ddcdaa3c 1px, transparent 1.25px) 0 0 / 24px 24px;
  mask-image: linear-gradient(to right, transparent, black 22%, black 95%);
}
.hero-art::after { content: ''; position: absolute; inset: 11% 4% 9% 13%; border: 1px solid #b6a28730; border-radius: 50%; z-index: -1; }
.filament { position: absolute; width: min(97%, 810px); height: auto; min-height: 0; object-fit: contain; filter: saturate(1.2) brightness(1.18); }
.hero-art.everyday .filament { filter: hue-rotate(15deg) saturate(.95) brightness(1.2); transform: rotate(15deg) scale(.95); }
.hero-art.engineering .filament { filter: hue-rotate(160deg) saturate(.7) brightness(1.27); transform: rotate(-12deg); }
.hero-art.composite .filament { filter: hue-rotate(80deg) saturate(.9) brightness(1.14); transform: rotate(28deg) scale(.95); }
.hero-art.specialty .filament { filter: hue-rotate(313deg) saturate(.7) brightness(1.18); transform: rotate(-24deg); }
.uploaded-hero { width: 96%; height: 92%; object-fit: contain; position: absolute; }
.hero-copy { position: relative; width: min(72%, 685px); padding: 42px 0; }
.hero-copy .eyebrow { color: #ffc09f; }
.hero-copy .eyebrow::before { background: var(--orange); }
.hero-copy h1, .hero-copy h2 { font-size: clamp(3.8rem, 7.55vw, 7.7rem); margin-top: 22px; white-space: pre-line; font-weight: 800; line-height: .93; letter-spacing: -.077em; }
.hero-copy .copy { color: #d9d9cc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-footer { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid #ffffff25; }
.hero-controls { display: flex; gap: clamp(15px, 2.2vw, 39px); align-self: stretch; }
.hero-controls button { position: relative; padding: 12px 0; border: 0; background: transparent; color: #c8cac0; font-size: .89rem; font-weight: 700; }
.hero-controls button::after { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: transparent; }
.hero-controls button:hover, .hero-controls button[aria-pressed="true"] { color: #fff; }
.hero-controls button[aria-pressed="true"]::after { background: var(--orange); }
.art-note { color: #b7b9ad; font: .78rem/1.3 var(--mono); text-align: right; }
.slide.is-current .hero-copy { animation: copy-in .45s ease both; }
.slide.is-current .hero-art { animation: art-in .55s ease both; }
@keyframes copy-in { from { opacity: 0; transform: translateY(17px); } to { opacity: 1; transform: translateY(0); } }
@keyframes art-in { from { opacity: 0; scale: .97; } to { opacity: 1; scale: 1; } }

.lines-block { padding-block: clamp(56px, 6.7vw, 108px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { margin-top: 9px; }
.line-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.line-card { display: block; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; text-decoration: none; background: var(--white); transition: box-shadow .2s, border-color .2s; }
.line-card:hover { border-color: #90978a; box-shadow: 0 8px 25px #25291b14; }
.line-visual { position: relative; height: clamp(122px, 15vw, 210px); display: grid; place-items: center; overflow: hidden; background: var(--tint); }
.line-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, #252b2730 1px, transparent 1.5px) 0 0 / 18px 18px; mask-image: linear-gradient(110deg, black, transparent 80%); }
.everyday { --tint: #ead7c9; --shape: #a94723; --deep: #713a24; }
.engineering { --tint: #d9e0e5; --shape: #465e6b; --deep: #34454e; }
.composite { --tint: #dce0cb; --shape: #5c6946; --deep: #353e28; }
.specialty { --tint: #e7dce6; --shape: #745c78; --deep: #563752; }
.line-image { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .28s; }
.line-shape { position: absolute; width: 62%; aspect-ratio: 1; display: grid; place-items: center; transform: rotate(-20deg) scale(.92); transition: transform .3s; }
.line-card:hover .line-shape { transform: rotate(-14deg) scale(1.01); }
.line-card:hover .line-image { transform: scale(1.04); }
.everyday .line-shape { border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 4px, var(--shape) 4.5px 6px); mask-image: radial-gradient(circle, transparent 0 25%, black 26%); }
.engineering .line-shape { width: 58%; aspect-ratio: 1.1; transform: rotate(-24deg) skew(17deg); border-radius: 10px; background: repeating-linear-gradient(0deg, var(--deep) 0 1px, transparent 2px 7px); border: 1px solid var(--shape); box-shadow: 12px 12px 0 -1px var(--tint), 12px 12px 0 var(--shape); }
.engineering:hover .line-shape { transform: rotate(-21deg) skew(17deg) scale(1.03); }
.composite .line-shape { width: 55%; aspect-ratio: 1.15; transform: rotate(-16deg); border-radius: 23%; background: repeating-linear-gradient(60deg, var(--shape) 0 1px, transparent 1.5px 7px), repeating-linear-gradient(-55deg, var(--deep) 0 1px, transparent 1.5px 8px); }
.specialty .line-shape { width: 49%; border-radius: 58% 42% 60% 40%; background: repeating-radial-gradient(ellipse at 58% 37%, transparent 0 4px, var(--shape) 4.5px 6px); transform: rotate(-34deg) skew(8deg); }
.line-info { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 15px clamp(11px, 1.6vw, 25px); }
.line-info h3 { font-size: clamp(1.18rem, 2vw, 1.75rem); }
.line-info p { margin-top: 6px; color: var(--sub); font-size: .87rem; line-height: 1.35; }
.corner { font-size: 1.15rem; border: 1px solid var(--rule); border-radius: 50%; flex: 0 0 30px; height: 30px; display: grid; place-items: center; line-height: 1; }
.factory-block { display: grid; grid-template-columns: 1.28fr 1fr; background: #e8e9e0; overflow: hidden; border-radius: 14px; min-height: 340px; }
.factory-frame, .product-image { display: grid; background: #e9e9e0; min-width: 0; }
.factory-frame > img, .product-image > img { width: 100%; height: 100%; object-fit: cover; }
.factory-copy { display: grid; align-content: center; justify-items: start; padding: clamp(28px, 5vw, 78px); }
.factory-copy .btn, .contact .btn { margin-top: 23px; }
.placeholder {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; min-height: 200px; padding: 18px;
  text-align: center; color: var(--sub); font: .84rem/1.45 var(--mono); background: radial-gradient(circle, #636c5829 1px, transparent 1.5px) 0 0 / 17px 17px, #e0e2d9;
}
.frame-icon { display: inline-block; width: 30px; height: 23px; border: 1px solid #7c8472; border-radius: 4px; position: relative; }
.frame-icon::before, .frame-icon::after { content: ''; position: absolute; }
.frame-icon::before { inset: 4px; background: #7c8472; clip-path: polygon(0 95%, 33% 35%, 53% 67%, 68% 48%, 100% 95%); }
.frame-icon::after { width: 4px; height: 4px; border-radius: 50%; background: #7c8472; top: 4px; right: 6px; }
.home-inquiry { display: flex; justify-content: space-between; align-items: center; gap: 28px; background: #ff6a3b; border-radius: 14px; margin-block: 45px 85px; padding: clamp(24px, 4vw, 55px); }
.home-inquiry h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.home-inquiry p { color: var(--ink); }
.home-inquiry .btn { flex-shrink: 0; }
.site-footer { border-top: 1px solid var(--rule); background: var(--white); }
.footer-inner { min-height: 122px; padding-block: 24px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 14px 28px; font-weight: 700; font-size: .9rem; }
.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { color: var(--orange-deep); }

.page-hero { border-bottom: 1px solid var(--rule); background: #ecebe5; }
.page-hero-inner { min-height: clamp(200px, 24vw, 354px); padding-block: 54px; display: flex; gap: 28px; justify-content: space-between; align-items: center; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 7rem); line-height: .98; letter-spacing: -.075em; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-photo { width: min(42%, 444px); max-height: 300px; object-fit: cover; border-radius: 16px; }
.results { padding-block: 35px 93px; min-height: 430px; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 25px; margin-bottom: 25px; }
.filter a { padding: 9px 15px; min-height: 42px; border: 1px solid var(--rule); border-radius: 7px; text-decoration: none; font-size: .94rem; font-weight: 700; }
.filter a:hover { border-color: var(--ink); }
.filter a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { border: 1px dashed #b5b9ad; border-radius: 13px; padding: clamp(20px, 4vw, 60px); display: grid; align-items: center; justify-items: center; gap: 16px; text-align: center; min-height: 230px; }
.empty h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.product-card { border: 1px solid var(--rule); border-radius: 13px; background: var(--white); overflow: hidden; }
.product-card:hover { border-color: #8d9485; }
.product-card a { display: block; text-decoration: none; }
.product-image { min-height: 200px; aspect-ratio: 1.4; overflow: hidden; }
.product-card img { transition: transform .25s; }
.product-card:hover img { transform: scale(1.04); }
.product-info { padding: 17px; }
.product-info h2 { margin-top: 14px; font-size: 1.75rem; }
.product-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.status { display: inline-block; border-radius: 5px; padding: 4px 8px; color: #365136; background: #e3eee0; font-size: .83rem; font-weight: 700; }
.status.order { color: #793515; background: #ffe5d5; }
.product-detail { padding-block: 26px 80px; }
.crumb { display: flex; flex-wrap: wrap; gap: 12px; color: var(--sub); font-size: .91rem; margin-bottom: 24px; }
.detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 5%; }
.detail-image { border-radius: 14px; }
.detail-copy h1 { margin-top: 13px; font-size: clamp(3rem, 5.6vw, 5.9rem); }
.detail-copy .btn { margin-top: 24px; }
.detail-lower { display: grid; grid-template-columns: 1.5fr 1fr; gap: 5%; margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--rule); }
.detail-lower h2, .doc-group h2, .about-block h2 { font-size: clamp(1.9rem, 3.4vw, 3.35rem); margin-bottom: 19px; }
.detail-lower .btn { margin: 0 10px 10px 0; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 11px; border-bottom: 1px solid var(--rule); text-align: left; overflow-wrap: anywhere; }
thead { background: #e9e9e2; }
tbody th { font-weight: 500; }
.doc-group + .doc-group { margin-top: 36px; }
.doc-group ul, .admin-list { list-style: none; padding: 0; margin: 0; }
.doc-group li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--rule); }
.doc-group li:last-child { border-bottom: 1px solid var(--rule); }
.doc-group li p { color: var(--sub); margin-top: 5px; font-size: .9rem; }
.doc-icon { display: inline-grid; place-items: center; color: #93371e; background: #f3e3da; width: 43px; height: 48px; border-radius: 6px; font: 700 .82rem var(--mono); }
.about-content { padding-block: 40px 85px; }
.about-block { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; padding-block: 32px; gap: 5%; border-bottom: 1px solid var(--rule); }
.about-block.quality > :first-child { order: 2; }
.about-block .placeholder, .about-photo, .inquiry-photo { border-radius: 12px; }
.about-block .placeholder { min-height: clamp(200px, 29vw, 380px); }
.about-photo { width: 100%; max-height: 440px; object-fit: cover; }
.about-block.contact { align-items: start; }
.inquiry-page { padding-block: clamp(40px, 6.6vw, 95px); display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: start; gap: 6%; }
.inquiry-intro { padding-block: 20px; }
.inquiry-intro h1 { font-size: clamp(3.1rem, 6.4vw, 7rem); line-height: .95; margin-top: 18px; letter-spacing: -.07em; }
.inquiry-photo { margin-top: 20px; max-height: 260px; }
.inquiry-form { padding: clamp(18px, 3.25vw, 48px); background: var(--white); border: 1px solid var(--rule); border-radius: 14px; }
.required-note { margin-bottom: 17px; font-size: .9rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; margin-bottom: 23px; }
.field { min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label, .admin-field span { display: block; font-size: .92rem; font-weight: 700; margin-bottom: 6px; }
.field label span { color: var(--orange-deep); }
.field input, .field textarea, .admin-field input, .admin-field textarea, .admin-field select {
  color: var(--ink); border: 1px solid #b7bbaf; border-radius: 7px; min-height: 45px; width: 100%; background: #fff;
  padding: 9px 12px; font-size: 1rem; line-height: 1.4;
}
.field textarea, .admin-field textarea { resize: vertical; }
.trap { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(100%); }
.form-result { padding-block: 30px; }
.form-result h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.form-result p { margin: 12px 0 24px; }
.alert, .notice { padding: 10px 13px; border-radius: 7px; margin-block: 0 18px; }
.alert { color: #8a2c17; background: #ffe7e0; }
.notice { color: #384536; background: #e7ede1; }
.not-found { padding-block: 74px; }
.not-found .btn { margin-top: 22px; }

.admin-shell { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.admin h1 { font-size: clamp(2rem, 5vw, 3.7rem); margin-bottom: 15px; }
.admin h2 { font-size: 2rem; margin-bottom: 12px; }
.admin p { margin-block: 12px; }
.admin-head { background: var(--ink); color: #fff; }
.admin-head .admin-shell { min-height: 66px; display: flex; align-items: center; gap: 18px; }
.admin-head a:first-child { margin-right: auto; font-weight: 700; text-decoration: none; }
.admin-head button { color: #fff; background: transparent; border: 1px solid #8e938b; border-radius: 6px; padding: 5px 10px; }
.admin-main { padding-block: 23px 65px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; border-bottom: 1px solid var(--rule); padding: 0 0 15px; margin-bottom: 25px; }
.admin-nav a { padding: 6px 9px; border-radius: 5px; }
.admin-nav [aria-current] { background: #e4e6dd; }
.admin-panel { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 15px 20px; margin-top: 13px; }
.admin-panel summary { cursor: pointer; font-size: 1.08rem; font-weight: 700; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 13px; }
.admin-form .btn { justify-self: start; grid-column: 1 / -1; }
.admin-form fieldset { min-width: 0; margin: 0; border: 1px solid var(--rule); border-radius: 5px; display: grid; gap: 10px; }
.admin-form > fieldset, .admin-form > p { grid-column: 1 / -1; }
.admin-form .check { align-self: end; display: flex; align-items: center; gap: 8px; min-height: 36px; }
.admin-field { min-width: 0; overflow-wrap: anywhere; }
.admin-field select { appearance: none; padding-right: 32px; background: linear-gradient(45deg, transparent 50%, #4e574b 50%) right 15px center / 6px 6px no-repeat, linear-gradient(135deg, #4e574b 50%, transparent 50%) right 9px center / 6px 6px no-repeat, white; }
.admin-thumbnail { max-width: 180px; max-height: 105px; object-fit: contain; margin-bottom: 8px; }
.admin-heading { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; align-items: start; }
.admin-list li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.admin-list li span { color: var(--sub); text-align: right; }
.admin-login { max-width: 490px; margin: 75px auto; width: calc(100% - 36px); padding: 28px; border: 1px solid var(--rule); border-radius: 13px; background: var(--white); }
.admin-login form { display: grid; justify-items: start; gap: 15px; margin-bottom: 19px; }
.admin-login label { width: 100%; }
.inquiry-record { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.inquiry-record dt { font-weight: 700; }
.inquiry-record dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pagination { display: flex; gap: 15px; margin-top: 15px; }

@media (max-width: 1050px) {
  :root { --shell: calc(100% - 64px); }
  .header-inner { gap: 19px; }
  .primary-nav, .secondary-nav { gap: 15px; }
  .secondary-nav { padding-left: 12px; }
  #main-nav { gap: 12px; }
  #main-nav a { font-size: .84rem; }
}
@media (max-width: 850px) {
  .header-inner { grid-template-columns: 1fr max-content max-content; min-height: 65px; gap: 12px; }
  .menu-button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--ink); min-height: 42px; padding: 6px 8px; font-size: .92rem; font-weight: 700; }
  .menu-icon { width: 15px; height: 10px; border-block: 1px solid currentColor; }
  #main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 13px 32px 18px; background: var(--white); border-bottom: 1px solid var(--rule); box-shadow: 0 9px 14px #191e1719; }
  #main-nav.open { display: grid; gap: 12px; }
  .primary-nav, .secondary-nav { display: flex; flex-wrap: wrap; gap: 9px 24px; }
  .secondary-nav { padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  #main-nav a { font-size: .95rem; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(3.5rem, 8.4vw, 5.7rem); }
  .line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .line-visual { height: clamp(129px, 22vw, 205px); }
}
@media (max-width: 580px) {
  :root { --shell: calc(100% - 34px); }
  .brand b { font-size: 1.34rem; }
  .brand-mark { scale: .87; margin-right: -4px; }
  .header-cta { min-height: 38px; padding-inline: 12px; }
  #main-nav { padding-inline: 17px; }
  .slides { min-height: 0; }
  .slide { min-height: 535px; padding-top: 270px; align-items: end; }
  .hero-art { inset: 0 -6px auto; height: 295px; }
  .hero-art::before { mask-image: none; inset: 6% 2% 3%; }
  .hero-art::after { inset: 12% 8% 7%; }
  .filament { width: min(94%, 415px); max-height: 306px; }
  .hero-copy { width: 100%; min-height: 262px; padding: 12px 0 25px; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(3rem, 12.5vw, 4.6rem); margin-top: 13px; }
  .hero-copy .copy { margin-top: 11px; }
  .hero-actions { gap: 7px; margin-top: 20px; }
  .hero-actions .btn { padding-inline: 11px; font-size: .88rem; min-height: 44px; }
  .hero-footer { min-height: 0; align-items: flex-start; flex-direction: column; gap: 0; padding-bottom: 10px; }
  .hero-controls { gap: 2px 8px; flex-wrap: wrap; }
  .hero-controls button { padding-block: 12px; font-size: .78rem; }
  .art-note { text-align: left; font-size: .76rem; }
  .lines-block { padding-block: 47px; }
  .section-head { align-items: start; flex-direction: column; gap: 13px; margin-bottom: 20px; }
  .section-head h2 { margin-top: 6px; }
  .line-grid { gap: 8px; }
  .line-info { align-items: start; min-height: 101px; }
  .line-info p { font-size: .8rem; }
  .corner { display: none; }
  .factory-block, .detail-grid, .detail-lower, .about-block, .inquiry-page { grid-template-columns: 1fr; gap: 20px; }
  .about-block.quality > :first-child { order: 0; }
  .factory-frame { min-height: 200px; }
  .factory-copy { padding: 10px 22px 27px; }
  .home-inquiry { align-items: flex-start; flex-direction: column; gap: 17px; margin-block: 28px 48px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner nav { gap: 9px 19px; }
  .page-hero-inner { min-height: 180px; flex-direction: column; align-items: flex-start; padding-block: 34px; }
  .page-photo { width: 100%; }
  .filter { padding-bottom: 17px; }
  .filter a { font-size: .87rem; padding-inline: 11px; }
  .results { padding-block: 20px 55px; }
  .product-grid { grid-template-columns: 1fr; }
  .detail-lower { margin-top: 29px; }
  .doc-group li { grid-template-columns: auto 1fr; }
  .doc-group li .btn { grid-column: 2; justify-self: start; }
  .inquiry-intro { padding: 0; }
  .field-grid { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-list li { flex-direction: column; gap: 3px; }
  .admin-list li span { text-align: left; }
  .inquiry-record { grid-template-columns: minmax(0, 1fr); }
  .inquiry-record dt { margin-top: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .btn:hover, .line-card:hover .line-image, .product-card:hover img { transform: none; }
}
