/* Husfrema — site styles. Brand: green #04362B, sand #D0BCA0, Bellefair. */
:root {
  --green: #04362b;
  --green-2: #0a4536;
  --green-3: #175a47;
  --sand: #d0bca0;
  --sand-2: #e4d8c6;
  --sand-3: #f1ece3;
  --paper: #f7f5f0;
  --white: #fdfcf9;
  --ink: #0b1f19;
  --ink-2: #2c3c36;
  --muted: #65726c;
  --line: rgba(4, 54, 43, 0.13);
  --line-2: rgba(4, 54, 43, 0.22);
  --serif: "Bellefair", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-weight: 400; }
h2 { font-family: var(--serif); font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.005em; color: var(--green); }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-3); margin-bottom: 22px; }
section { padding: clamp(88px, 11vw, 160px) 0; }
.sec-head { margin-bottom: clamp(44px, 5vw, 72px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .3s, color .3s, border-color .3s; white-space: nowrap; }
.btn .arr { transition: transform .3s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-green { background: var(--green); color: var(--sand-3); }
.btn-green:hover { background: var(--green-3); }
.btn-line { border-color: var(--line-2); color: var(--green); background: rgba(253, 252, 249, .5); }
.btn-line:hover { border-color: var(--green); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 240, 0.88); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--green); fill: currentColor; }
.brand-mark { width: 50px; height: 28px; }
.brand-word { width: 128px; height: 17px; }
.nav { display: flex; gap: 36px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--green); transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }
.mobile-nav { display: none; }

/* Hero: full-width 3D construction */
.hero {
  position: relative; padding: 0; overflow: hidden;
  height: clamp(660px, calc(100svh - 76px), 1100px);
  background:
    radial-gradient(ellipse 70% 65% at 64% 52%, #fdfcf8 0%, rgba(253, 252, 248, 0) 70%),
    linear-gradient(180deg, #f4f2ec 0%, #e7e3d9 100%);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 1s; }
.hero.ready canvas { opacity: 1; }
.hero canvas:active { cursor: grabbing; }
.hero-fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.no-webgl .hero-fallback { display: block; }
.hero.no-webgl .hero-bar, .hero.no-webgl .hero-sys { display: none; }
.hero.no-webgl .hero-copy { color: #fff; }
.hero-copy { position: absolute; top: clamp(36px, 7vh, 96px); left: 0; right: 0; z-index: 2; pointer-events: none; }
.hero-copy > * { pointer-events: auto; max-width: 560px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-3); margin-bottom: 24px; }
.hero-copy > h1 { max-width: 680px; }
.hero h1 { font-family: var(--serif); font-size: clamp(56px, 6vw, 104px); line-height: 0.92; letter-spacing: -0.01em; color: var(--green); }
.hero .lead { margin-top: 26px; font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); max-width: 400px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-sys { position: absolute; top: 24px; right: max(var(--gutter), calc((100% - 1400px) / 2 + var(--gutter))); z-index: 3; }

.seg { display: inline-flex; padding: 4px; background: rgba(253, 252, 249, .88); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(8px); }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--muted); transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--sand-3); }

.hero-bar { position: absolute; left: 0; right: 0; bottom: clamp(16px, 3vh, 32px); z-index: 3; }
.hero-bar-inner { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 28px; align-items: end; }
.hb-caption { display: flex; gap: 16px; align-items: flex-start; background: rgba(253, 252, 249, .86); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; backdrop-filter: blur(10px); min-height: 92px; }
.hb-num { font-family: var(--serif); font-size: 46px; line-height: .9; color: var(--green); font-variant-numeric: tabular-nums; }
.hb-caption b { display: block; font-size: 16px; font-weight: 600; color: var(--green); }
.hb-caption span:not(.hb-num) { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 2px; }
.hb-controls { display: flex; gap: 12px; align-items: center; background: rgba(253, 252, 249, .86); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 10px 16px; backdrop-filter: blur(10px); }
.hb-steps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; flex: 1; min-width: 0; }
.hb-step { position: relative; border: 0; background: none; cursor: pointer; text-align: left; padding: 12px 2px 4px; color: var(--muted); min-width: 0; }
.hb-step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.hb-step i { position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--green); }
.hb-step .n { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.hb-step .l { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-step.done { color: var(--ink-2); }
.hb-step.on { color: var(--green); }
.hb-step.on .l { font-weight: 600; }
.hb-step:hover { color: var(--green); }
.hb-play { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--green); color: var(--sand-3); display: grid; place-items: center; cursor: pointer; transition: background .25s; }
.hb-play:hover { background: var(--green-3); }
.hb-play svg { display: none; }
.hb-play[data-state="pause"] .i-pause, .hb-play[data-state="play"] .i-play, .hb-play[data-state="replay"] .i-replay { display: block; }

/* Approach */
.approach { background: var(--white); }
.statement { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 56px); line-height: 1.12; color: var(--green); max-width: 1120px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(56px, 7vw, 96px); }
.pillar { border-top: 1px solid var(--line-2); padding-top: 24px; }
.pillar-n { font-family: var(--serif); font-size: 22px; color: var(--sand); }
.pillar h3 { font-size: 20px; font-weight: 600; color: var(--green); margin: 10px 0 10px; letter-spacing: -0.01em; }
.pillar p { color: var(--ink-2); font-size: 16px; max-width: 380px; }

/* Systems */
.systems { background: var(--paper); }
.sys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 36px); }
.sys { background: var(--white); border-radius: var(--radius); overflow: hidden; }
.sys-media { aspect-ratio: 16 / 10; overflow: hidden; }
.sys-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.sys:hover .sys-media.in img { transform: scale(1.03); }
.sys-body { padding: clamp(24px, 3vw, 40px); }
.sys h3 { font-family: var(--serif); font-size: clamp(30px, 2.6vw, 40px); line-height: 1.05; color: var(--green); margin-bottom: 12px; }
.sys p { color: var(--ink-2); max-width: 520px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--sand-3); color: var(--green); }

/* Wall build-up */
.wall { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(64px, 8vw, 112px); align-items: center; }
.wall-stage {
  position: relative; border-radius: var(--radius); overflow: hidden; height: clamp(540px, 48vw, 720px);
  background:
    radial-gradient(ellipse at 50% 55%, rgba(253, 252, 249, .95), rgba(253, 252, 249, 0) 70%),
    linear-gradient(rgba(4, 54, 43, .045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(4, 54, 43, .045) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--sand-3);
}
.wall-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.wall-stage.no-webgl { display: none; }
.wall:has(.no-webgl) { grid-template-columns: 1fr; }
.stage-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.wall-pins { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.wall-pin { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -34px 0 0 -12px; border-radius: 50%; background: var(--green); color: var(--sand-3); font-size: 12px; font-weight: 600; display: grid; place-items: center; transition: background .2s, opacity .2s; }
.wall-pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 10px; background: inherit; }
.wall-pin.on { background: #b07a45; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: rgba(253, 252, 249, .92); font-size: 14px; font-weight: 500; color: var(--green); cursor: pointer; transition: background .2s, color .2s; }
.pill-btn:hover { background: var(--green); color: var(--sand-3); }
.wall-info h3 { font-family: var(--serif); font-size: clamp(36px, 3.2vw, 52px); line-height: 1; color: var(--green); }
.layers { list-style: none; margin-top: 26px; border-top: 1px solid var(--line); }
.layers button { width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 10px 8px 10px 0; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; transition: background .2s, padding .25s; }
.layers .n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--green); transition: background .2s, color .2s, border-color .2s; }
.layers .nm { font-size: 15.5px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.layers .nm small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.layers .mm { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.layers .mm:not(.nil)::after { content: " mm"; }
.layers button:hover, .layers button.on { background: rgba(4, 54, 43, .05); padding-left: 8px; }
.layers button.on .n { background: var(--green); border-color: var(--green); color: var(--sand-3); }
.layers button:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.wall-total { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.wall-total > span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.wall-total b { font-family: var(--serif); font-weight: 400; font-size: 36px; color: var(--green); }
.wall-total small { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.wall-total sub { font-size: .8em; }
.only-clt { display: none; }
.wall:has(.wall-stage[data-mode="clt"]) .only-clt { display: inline; }
.wall:has(.wall-stage[data-mode="clt"]) .only-frame { display: none; }

/* Experience band */
.experience { position: relative; overflow: hidden; color: var(--sand-3); background: var(--green); padding: clamp(110px, 14vw, 200px) 0; }
.exp-img { position: absolute; left: 0; right: 0; top: -12%; bottom: -12%; will-change: transform; }
.exp-img img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: grayscale(.35) contrast(1.05); }
.experience::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 54, 43, .92) 0%, rgba(4, 54, 43, .6) 60%, rgba(4, 54, 43, .35) 100%); }
.exp-inner { position: relative; z-index: 1; }
.experience .label { color: var(--sand); }
.experience h2 { color: var(--sand-3); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(48px, 6vw, 80px); max-width: 1100px; }
.stats > div { border-top: 1px solid rgba(208, 188, 160, .4); padding-top: 20px; }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 3.6vw, 56px); line-height: 1.05; color: var(--sand); }
.stats span { font-size: 15px; color: rgba(241, 236, 227, .82); }

/* Services */
.services { background: var(--white); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.svc-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); margin-bottom: 22px; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-n { font-family: var(--serif); font-size: 20px; color: var(--sand); }
.svc h3 { font-size: 21px; font-weight: 600; color: var(--green); margin: 6px 0 8px; letter-spacing: -0.01em; }
.svc p { color: var(--ink-2); font-size: 16px; max-width: 380px; }
.nl { margin-top: clamp(64px, 8vw, 104px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 26px 32px; border-radius: var(--radius); background: var(--sand-3); }
.nl > p { font-family: var(--serif); font-size: 26px; color: var(--green); }
.nl ul { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.nl li b { display: block; font-size: 15px; font-weight: 600; color: var(--green); }
.nl li span { font-size: 13px; color: var(--muted); }
.nl sub { font-size: .75em; }

/* Process (timeline graphic) */
.process { background: var(--paper); }
.proc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.proc-legend { list-style: none; display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.proc-legend li { display: flex; align-items: center; gap: 8px; }
.proc-legend i { width: 22px; height: 8px; border-radius: 4px; }
.t-office { background: var(--green); }
.t-factory { background: var(--sand); }
.t-site { background: var(--green-3); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.14) 0 6px, transparent 6px 12px); }
.gantt { position: relative; border-top: 1px solid var(--line-2); }
.gantt::before { content: ""; position: absolute; inset: 0 0 0 clamp(260px, 30%, 400px); pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 12)); opacity: .7; }
.g-phases, .g-row { display: grid; grid-template-columns: clamp(260px, 30%, 400px) repeat(12, 1fr); align-items: center; }
.g-phases { padding: 14px 0 10px; }
.g-phases span { grid-row: 1; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--green-3); border-left: 2px solid var(--sand); padding-left: 10px; }
.g-row { border-bottom: 1px solid var(--line); min-height: 76px; position: relative; }
.g-txt { display: flex; gap: 16px; align-items: flex-start; padding: 14px 24px 14px 0; grid-column: 1 / 2; }
.g-n { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--sand); min-width: 32px; font-variant-numeric: tabular-nums; }
.g-txt b { display: block; font-size: 16px; font-weight: 600; color: var(--green); }
.g-txt small { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.g-bar { grid-row: 1; height: 14px; border-radius: 7px; margin: 0 3px; transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); transition-delay: calc(var(--d) * 110ms + 200ms); }
.gantt.in .g-bar { transform: none; }
.g-row:hover { background: rgba(4, 54, 43, .025); }

/* Contact */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); }
.contact-copy > p:not(.label) { margin-top: 24px; color: var(--ink-2); max-width: 420px; }
.contact-list { margin-top: 40px; border-top: 1px solid var(--line); }
.contact-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: 15px; }
.contact-list dd { font-weight: 500; text-align: right; color: var(--green); }
.form { background: var(--white); padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius); display: grid; gap: 20px; border: 1px solid var(--line); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label > span, .form legend { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.form fieldset { border: 0; }
.form input:not([type="radio"]), .form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; border-radius: 0; transition: border-color .2s; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--green); }
.form textarea { resize: vertical; min-height: 96px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; margin: 0 !important; cursor: pointer; transition: all .2s; color: var(--ink) !important; font-weight: 400 !important; }
.chips input:checked + span { background: var(--green); color: var(--sand-3) !important; border-color: var(--green); }
.chips input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.form .btn { justify-self: start; margin-top: 4px; }
.form-note { font-size: 14px; color: var(--ink-2); }

/* Footer */
.footer { background: var(--green); color: var(--sand-3); padding: 72px 0 32px; }
.brand-light { color: var(--sand); }
.footer .brand-mark { width: 72px; height: 40px; }
.footer .brand-word { width: 170px; height: 22px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid rgba(208, 188, 160, .25); }
.footer-claim { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; text-align: right; color: var(--sand-3); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; color: rgba(241, 236, 227, .7); }
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--sand); }

/* Headline word rise */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .12em 0; margin: 0 -.06em -.12em 0; }
.w > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
@keyframes rise { to { transform: none; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.mreveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1); }
.mreveal img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
.mreveal.in { clip-path: inset(0 0 0 0); }
.mreveal.in img { transform: scale(1); }

/* Responsive */
@media (max-width: 1180px) {
  .hb-step .l { font-size: 11.5px; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .mobile-nav { display: grid; max-height: 0; overflow: hidden; transition: max-height .4s ease; padding: 0 var(--gutter); }
  .mobile-nav.open { max-height: 360px; border-top: 1px solid var(--line); }
  .mobile-nav a { padding: 14px 0; font-size: 22px; font-family: var(--serif); text-decoration: none; color: var(--green); border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { border-bottom: 0; margin-bottom: 8px; }
  .hero-bar-inner { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-bar-inner > * { min-width: 0; }
  .hb-caption { min-height: 0; }
}
@media (max-width: 900px) {
  .hero { height: auto; display: flex; flex-direction: column; padding-top: 36px; }
  .hero-copy { position: relative; top: 0; order: 1; }
  .hero-sys { position: relative; top: 0; right: auto; order: 2; align-self: flex-start; margin: 24px var(--gutter) 0; }
  .hero canvas { position: relative; order: 3; height: 64svh; min-height: 380px; }
  .hero-fallback { position: relative; order: 3; height: 56svh; }
  .hero-bar { position: relative; bottom: auto; order: 4; padding-bottom: 20px; }
  .hb-steps { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .hb-steps::-webkit-scrollbar { display: none; }
  .hb-step { flex: none; width: 34px; }
  .hb-step .l { display: none; }
  .hb-step.on { width: auto; padding-right: 10px; }
  .hb-step.on .l { display: block; }
  .pillars, .sys-grid, .contact-grid, .wall, .svc-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .wall-stage { height: auto; aspect-ratio: 4 / 3; }
  .svc-media { aspect-ratio: 4 / 3; }
  .gantt::before, .g-phases { display: none; }
  .g-row { grid-template-columns: repeat(12, 1fr); padding: 14px 0; row-gap: 10px; }
  .g-txt { grid-column: 1 / -1; padding: 0; }
  .g-bar { grid-row: 2; height: 8px; }
  .footer-claim { text-align: left; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-actions .btn { display: none; }
  .brand-word { width: 104px; height: 14px; }
  .brand-mark { width: 42px; height: 24px; }
  .wall-stage { aspect-ratio: 1 / 1; }
  .wall-stage .pill-btn span { display: none; }
  .f-row { grid-template-columns: 1fr; }
  .nl { padding: 22px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .mreveal, .mreveal img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .w > span { animation: none; transform: none; }
}
