/* 한국기계: steel-grey sheet panels, signage navy and red from the gear logo.
   Layout: one long page of full-width bands; hero is the factory front with copy on the right. */
:root {
  --ink: #1C2027;
  --ink-soft: #4A515C;
  --steel: #2A2E35;
  --steel-deep: #1C2027;
  --ground: #EEF0F3;
  --surface: #FFFFFF;
  --rule: #D3D7DE;
  --rule-strong: #B4BAC3;
  --navy: #24399A;
  --navy-deep: #1A2C7E;
  --red: #D2232A;
  --plate: #DCE0E5;
  --font-display: 'Black Han Sans', 'IBM Plex Sans KR', 'Malgun Gothic', sans-serif;
  --font-body: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, video { max-width: 100%; height: auto; display: block; }
picture { display: block; }
[hidden] { display: none !important; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
[id] { scroll-margin-top: 84px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--surface); color: var(--ink); padding: 10px 14px; border: 2px solid var(--ink); }
.skip-link:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.icon { flex: none; }
.icon--accent { color: var(--navy); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-soft); margin: 0; }
.small { font-size: 15px; color: var(--ink-soft); margin: 0; }
.strong { font-weight: 600; }
.strong-link { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.plain-link { color: var(--ink); }

/* type */
.eyebrow { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--ink-soft); }
.eyebrow--dark { color: #B9BFC8; }
.stripe-mark { display: inline-flex; flex-direction: column; gap: 2px; width: 22px; flex: none; }
.stripe-mark span { height: 3px; background: var(--red); }
.stripe-mark span + span { background: var(--navy); }
.stripe-mark--light span + span { background: #FFFFFF; }
.eyebrow--dark .stripe-mark span + span { background: #FFFFFF; }
.h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.25; text-wrap: balance; }
.h2 .line { display: block; }
.h2--small { font-size: clamp(24px, 3vw, 32px); }
.h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; }
.lead { margin: 0; font-size: 17px; color: var(--ink-soft); max-width: 40em; }
.lead--small { font-size: 15.5px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 3px; border: 0; font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer; font-variant-numeric: tabular-nums; }
.btn--accent { background: var(--navy); color: #FFFFFF; }
.btn--accent:hover { background: var(--navy-deep); color: #FFFFFF; }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: #F3F5F8; color: var(--ink); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; font-weight: 700; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--rule); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--surface); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; gap: 4px; }
.brand-name { font-family: var(--font-display); font-size: 27px; letter-spacing: .06em; color: var(--navy); }
.brand-name--plate { color: var(--ink); font-size: 24px; }
.brand-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--ink-soft); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; padding-block: 10px; }
.site-nav a:hover { color: var(--navy); }

/* hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--steel-deep); color: #FFFFFF; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 30% 40%; animation: hero-settle 3.4s cubic-bezier(.2, .7, .2, 1) both; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to left, rgba(18, 21, 26, .86) 0%, rgba(18, 21, 26, .76) 38%, rgba(18, 21, 26, .45) 50%, rgba(18, 21, 26, 0) 64%),
  linear-gradient(to top, rgba(18, 21, 26, .5) 0%, rgba(18, 21, 26, 0) 35%); }
.hero-inner { min-height: clamp(600px, 55vw, 800px); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 5vw, 120px), env(safe-area-inset-right, 0px));
  padding-block: clamp(270px, 24vw, 320px) clamp(40px, 5vw, 64px); }
.hero-copy { width: 100%; max-width: min(620px, 48vw); display: flex; flex-direction: column; gap: 18px; }
.hero-line { display: block; overflow: hidden; margin: 0; }
.hero-line > .rise { display: block; transform: translateY(110%); animation: hero-rise 1.2s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-eyebrow > .rise { display: flex; align-items: center; gap: 12px; }
.d1 { animation-delay: .2s !important; }
.d2 { animation-delay: .6s !important; }
.d3 { animation-delay: 1.05s !important; }
.d4 { animation-delay: 1.6s !important; }
.d5 { animation-delay: 1.9s !important; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; color: #D5D9DF; }
.hero-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.8vw, 54px); line-height: 1.12; letter-spacing: .01em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-title .hero-line { padding-bottom: .05em; }
.hero-sub { margin: 0; max-width: 36em; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: #E4E7EB; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; opacity: 0; transform: translateY(14px); animation: hero-fade .9s cubic-bezier(.2, .7, .2, 1) 2.4s forwards; }
.btn--hero-solid { min-height: 54px; padding: 0 24px; font-size: 16px; font-weight: 700; background: #FFFFFF; color: var(--ink); }
.btn--hero-solid:hover { background: #E8EBEF; color: var(--ink); }
.btn--hero-line { min-height: 54px; padding: 0 24px; font-size: 16px; font-weight: 700; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, .75); }
.btn--hero-line:hover { background: rgba(255, 255, 255, .12); color: #FFFFFF; }
@keyframes hero-rise { to { transform: translateY(0); } }
@keyframes hero-fade { to { opacity: 1; transform: none; } }
@keyframes hero-settle { from { transform: scale(1.07); } to { transform: scale(1); } }

.infobar { background: var(--steel); color: #FFFFFF; }
.infobar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-block: 16px; font-size: 15px; font-variant-numeric: tabular-nums; }
.info-item { display: inline-flex; align-items: baseline; gap: 10px; }
.info-item b { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: #A3AAB4; }
.info-sep { width: 1px; height: 14px; background: #4A505A; }

/* sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--ground { background: var(--ground); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--steel); color: #FFFFFF; }
.section--dark .lead { color: #C9CED6; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--rule); display: flex; flex-direction: column; min-width: 0; }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card-body p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.card-label { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--navy); }

/* field photos + video */
.cases-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.case { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.case--wide { grid-column: span 8; }
.case--tall { grid-column: span 4; grid-row: span 2; }
.case:not(.case--wide):not(.case--tall) { grid-column: span 4; }
.case figcaption { font-size: 14px; color: #C9CED6; }
.case-frame { position: relative; overflow: hidden; background: #121519; }
.case-frame--16x9 { aspect-ratio: 16 / 9; }
.case-frame--4x3 { aspect-ratio: 4 / 3; }
.case-frame--tall { aspect-ratio: 9 / 16; max-height: 820px; }
.case-frame img, .case-frame video { width: 100%; height: 100%; object-fit: cover; }
.case-video { background: #121519; }

/* factory */
.split { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.split-text { flex: 1 1 360px; min-width: 0; }
.split-media { flex: 1.4 1 480px; min-width: 0; margin: 0; }
.split--quote .split-text { flex: 1 1 320px; }
.split--quote .split-media { flex: 1.5 1 520px; }
.split--contact .split-text, .split--contact .split-media { flex: 1 1 420px; }
.spec-table { margin: 0; border-top: 2px solid var(--ink); display: flex; flex-direction: column; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--rule); font-size: 16px; }
.spec-row dt { font-weight: 600; }
.spec-row dd { margin: 0; color: var(--ink-soft); text-align: right; }
.spec-row--head { padding-block: 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--ink-soft); }
.spec-row--head dt { font-weight: 600; }
.mono-accent { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--navy); }
.factory-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.factory-photos figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.factory-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.factory-photos figcaption, .contact-photo figcaption { font-size: 13.5px; color: var(--ink-soft); }

/* process */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 28px 20px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.steps strong { font-size: 18px; }
.steps li > span:last-child { font-size: 14.5px; color: var(--ink-soft); }
.step-no { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--navy); }

/* quote form */
.tipbox { background: var(--ground); border: 1px solid var(--rule); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.tipbox strong { font-size: 15.5px; }
.tipbox ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--ink-soft); }
.panel { background: var(--surface); border: 1px solid var(--rule); border-top: 6px solid var(--navy); padding: clamp(20px, 3.5vw, 36px); display: flex; flex-direction: column; gap: 24px; }
.qdone { gap: 16px; }
.qdone:focus { outline: none; }
.qdone-head { display: flex; align-items: center; gap: 12px; }
.f-set { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.f-label { font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 0; }
.f-set > .f-label { margin-bottom: 10px; }
.req { color: var(--red); margin-left: 3px; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 20px; }
.f-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f-input { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--rule-strong); border-radius: 3px; min-height: 46px; padding: 10px 12px; width: 100%; min-width: 0; }
textarea.f-input { min-height: 112px; resize: vertical; line-height: 1.6; }
.f-file { padding: 9px 10px; font-size: 14.5px; }
.f-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(36, 57, 154, .2); }
.f-input[aria-invalid="true"] { border-color: var(--red); }
.f-input::placeholder { color: #767D88; }
.f-suffix { display: flex; align-items: center; gap: 8px; }
.f-suffix span { white-space: nowrap; color: var(--ink-soft); font-size: 14.5px; }
.f-hint { font-size: 13px; color: var(--ink-soft); }
.f-divider { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--ink-soft); }
.f-divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--rule-strong); border-radius: 3px; background: var(--surface); font-size: 15px; font-weight: 500; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.agree { background: var(--ground); border: 1px solid var(--rule); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.agree label { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.agree input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 12px 14px; border: 1.5px solid var(--red); background: #FDF1F1; color: #8E1218; font-size: 15px; font-weight: 600; }
.submit-row { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.qsum { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; border-top: 2px solid var(--ink); padding-top: 14px; font-size: 15px; }
.qsum dt { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink-soft); padding-top: 2px; }
.qsum dd { margin: 0; white-space: pre-line; }
.memo-tag { align-self: flex-start; display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; background: var(--red); color: #FFFFFF; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; border-radius: 2px; }

/* contact nameplate */
.nameplate { position: relative; background: var(--plate); border: 1px solid #AEB5BF; box-shadow: inset 0 0 0 4px #E8EBEF, inset 0 0 0 5px #C3C9D1; padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; font-variant-numeric: tabular-nums; }
.rivet { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #A7AEB8; box-shadow: inset 0 1px 0 #EEF0F3; }
.rivet--tl { top: 12px; left: 12px; } .rivet--tr { top: 12px; right: 12px; }
.rivet--bl { bottom: 12px; left: 12px; } .rivet--br { bottom: 12px; right: 12px; }
.nameplate-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
.nameplate .brand-tag { color: #3D434C; }
.plate-list { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; font-size: 16px; align-items: baseline; }
.plate-list dt { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: #3D434C; }
.plate-list dd { margin: 0; }
.plate-list--plain { max-width: 480px; }
.contact-photo { display: flex; flex-direction: column; gap: 8px; }
.contact-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* footer */
.site-footer { background: var(--steel); color: #C4CAD2; }
.footer-inner { padding-block: 36px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.footer-name { font-family: var(--font-display); font-size: 20px; letter-spacing: .06em; color: #FFFFFF; }
.footer-links a { color: #E4E7EB; }
.footer-copy { color: #A3AAB4; }

/* meeting-only references */
.refs-section { background: var(--ground); border-top: 4px dashed var(--red); padding-block: 48px 72px; }
.refs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); background: var(--surface); }
.refs li { border-bottom: 1px solid var(--rule); }
.ref { display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.ref:hover { background: #F3F5F8; color: var(--ink); }
.ref-no { flex: none; width: 26px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--navy); }
.ref-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ref-body strong { font-size: 17px; }
.ref-url { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); overflow-wrap: anywhere; }
.ref-go { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }

/* about page */
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }
.page-head { background: var(--steel); color: #FFFFFF; padding-block: clamp(48px, 7vw, 80px); }
.page-head .lead { color: #C9CED6; }
.page-head-title { font-size: clamp(32px, 4.4vw, 52px); }
.tnum { font-variant-numeric: tabular-nums; }
.fill { background: #FFF2B8; color: #5E4A00; border: 1.5px dashed #B98E00; border-radius: 2px; padding: 0 6px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.fill-block { margin: 0; background: #FFF2B8; color: #5E4A00; border: 1.5px dashed #B98E00; border-radius: 2px; padding: 18px 20px; font-weight: 600; min-height: 132px; }
.fill-notice { background: #FFF8D6; border-bottom: 1px solid #E5CF73; }
.fill-notice-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-block: 14px; font-size: 15px; color: #4A3B00; }
.greeting p { margin: 0; font-size: 17px; line-height: 1.8; }
.signature { display: flex; align-items: baseline; gap: 10px; padding-top: 8px; color: var(--ink-soft); }
.signature strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: .08em; color: var(--ink); }
.about-photo { display: flex; flex-direction: column; gap: 8px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-photo figcaption { font-size: 13.5px; color: var(--ink-soft); }
.overview { margin: 0; background: var(--surface); border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; padding-inline: 24px; }
.ov-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding-block: 15px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ov-row dt { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--ink-soft); }
.ov-row dd { margin: 0; font-size: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ink); display: flex; flex-direction: column; }
.timeline li { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--navy); }
.tl-year { font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--navy); font-variant-numeric: tabular-nums; }
.tl-text { font-size: 16.5px; }
.record-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }
.record-panel { gap: 16px; }
.record-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.record-table th { text-align: left; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--ink-soft); padding: 0 8px 10px 0; border-bottom: 2px solid var(--ink); }
.record-table td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cert-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.cta-band { background: var(--navy); color: #FFFFFF; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 40px; }
.cta-text { margin: 0; font-size: clamp(18px, 2vw, 22px); font-weight: 600; }
.cta-band .btn--hero-line { border-color: rgba(255, 255, 255, .8); }

/* text pages */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose p { margin: 0; }
.prose .h3 { margin-top: 16px; font-size: 19px; }

/* tablet & phone */
@media (max-width: 960px) {
  .case--wide, .case--tall, .case:not(.case--wide):not(.case--tall) { grid-column: span 6; grid-row: auto; }
  .case--wide { grid-column: span 12; }
  .case-frame--tall { aspect-ratio: 3 / 4; }
}
@media (max-width: 760px) {
  .hero-media img { object-position: 17% 30%; }
  .hero-scrim { background: linear-gradient(to top, rgba(18, 21, 26, .92) 0%, rgba(18, 21, 26, .72) 34%, rgba(18, 21, 26, .22) 64%, rgba(18, 21, 26, .04) 88%); }
  .hero-inner { align-items: stretch; padding-top: 340px; padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hero-copy { max-width: none; }
  .hero-title { font-size: clamp(32px, 8.4vw, 48px); }
}
@media (max-width: 640px) {
  .site-nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 0 20px; scrollbar-width: none; }
  .site-nav a { white-space: nowrap; }
  .header-call { display: none; }
  .info-sep { display: none; }
  .infobar-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cases-grid { grid-template-columns: minmax(0, 1fr); }
  .case--wide, .case--tall, .case:not(.case--wide):not(.case--tall) { grid-column: auto; }
  .case-frame--tall { aspect-ratio: 9 / 14; }
  .qsum { grid-template-columns: 1fr; gap: 2px; }
  .qsum dd { margin-bottom: 8px; }
  .spec-row { font-size: 15px; }
  .overview { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; }
  .ov-row { grid-template-columns: 96px minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-left: 22px; }
  .cta-inner .btn-row, .cta-inner .btn { width: 100%; }
}
@media (max-width: 900px) {
  .overview { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img, .hero-line > .rise, .hero-actions { animation: none; transform: none; opacity: 1; }
}
@media print {
  .site-header, .hero-actions, #quote, .refs-section, video { display: none !important; }
}

/* industrial waste photo guide (quote section) */
.photo-guide { background: var(--ground); border: 1px solid var(--rule); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.photo-guide-head { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.guide-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.guide-item { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.guide-item picture { margin-bottom: 8px; }
.guide-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--rule); }
.guide-item strong { font-size: 16px; }
.guide-item > span:last-child { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.guide-no { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #FFFFFF; font-family: var(--font-mono); font-size: 14px; font-weight: 600; box-shadow: 0 0 0 2px #FFFFFF; }

/* facility gallery (about page) */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; }
.gallery-item { position: relative; min-width: 0; }
.gallery-item a { display: block; position: relative; overflow: hidden; background: var(--steel); }
.gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
/* tall photos fill two rows without stretching them: the rows take their height from the 3:2 photos */
.gallery-item--tall { grid-row: span 2; }
.gallery-item--tall a { position: absolute; inset: 0; }
.gallery-item--tall picture, .gallery-item--tall img { height: 100%; }
.gallery-item--tall img { aspect-ratio: auto; }
.gallery-item a:hover img { transform: scale(1.03); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(to top, rgba(18, 21, 26, .78), rgba(18, 21, 26, 0)); color: #FFFFFF; font-size: 14px; font-weight: 600; }

@media (max-width: 960px) {
  .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  /* an odd last photo takes the full row: photo left, text right */
  .guide-item:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; align-content: start; }
  .guide-item:last-child:nth-child(odd) picture { grid-row: 1 / span 3; margin-bottom: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery-cap { font-size: 13px; padding: 18px 8px 8px; }
}
@media (prefers-reduced-motion: reduce) { .gallery-item img { transition: none; } }

/* content-driven layout helpers */
.pre-line { white-space: pre-line; }
.table-scroll { overflow-x: auto; }
.hero-line > .e1 { animation-delay: .2s; }
.hero-line > .t1 { animation-delay: 0.6s; }
.hero-line > .t2 { animation-delay: 1.05s; }
.hero-line > .t3 { animation-delay: 1.5s; }
.hero-copy--t1 .hero-line > .s1 { animation-delay: 1.15s; }
.hero-copy--t1 .hero-line > .s2 { animation-delay: 1.45s; }
.hero-copy--t1 .hero-line > .s3 { animation-delay: 1.75s; }
.hero-copy--t1.hero-copy--s0 .hero-actions { animation-delay: 1.10s; }
.hero-copy--t1.hero-copy--s1 .hero-actions { animation-delay: 1.65s; }
.hero-copy--t1.hero-copy--s2 .hero-actions { animation-delay: 1.95s; }
.hero-copy--t1.hero-copy--s3 .hero-actions { animation-delay: 2.25s; }
.hero-copy--t2 .hero-line > .s1 { animation-delay: 1.60s; }
.hero-copy--t2 .hero-line > .s2 { animation-delay: 1.90s; }
.hero-copy--t2 .hero-line > .s3 { animation-delay: 2.20s; }
.hero-copy--t2.hero-copy--s0 .hero-actions { animation-delay: 1.55s; }
.hero-copy--t2.hero-copy--s1 .hero-actions { animation-delay: 2.10s; }
.hero-copy--t2.hero-copy--s2 .hero-actions { animation-delay: 2.40s; }
.hero-copy--t2.hero-copy--s3 .hero-actions { animation-delay: 2.70s; }
.hero-copy--t3 .hero-line > .s1 { animation-delay: 2.05s; }
.hero-copy--t3 .hero-line > .s2 { animation-delay: 2.35s; }
.hero-copy--t3 .hero-line > .s3 { animation-delay: 2.65s; }
.hero-copy--t3.hero-copy--s0 .hero-actions { animation-delay: 2.00s; }
.hero-copy--t3.hero-copy--s1 .hero-actions { animation-delay: 2.55s; }
.hero-copy--t3.hero-copy--s2 .hero-actions { animation-delay: 2.85s; }
.hero-copy--t3.hero-copy--s3 .hero-actions { animation-delay: 3.15s; }
.cases-grid { grid-auto-flow: dense; }
.factory-photos--1 { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.factory-photos--3 figure:last-child:nth-child(odd) { grid-column: 1 / -1; }
.factory-photos--3 figure:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
@media (min-width: 961px) {
  .guide-grid--1 { grid-template-columns: minmax(0, 260px); }
  .guide-grid--2 { grid-template-columns: repeat(2, minmax(0, 260px)); }
  .guide-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
