/* ===== SourceCraft Edge — forest & lime, grotesque type ===== */
:root {
    /* Brand palette taken from the SourceCraft Edge logo */
    --bg: #f7f5f0;           /* warm white */
    --surface: #ffffff;
    --tint: #edf1f7;         /* pale navy tint */
    --ink: #0f2747;          /* logo navy (wordmark) */
    --ink-2: #2a3a52;
    --muted: #5b6678;
    --line: #dde2ea;
    --green: #13315c;        /* primary navy (variable name kept for compatibility) */
    --green-2: #0c2344;      /* deep navy */
    --blue: #1b5a9e;         /* logo ribbon blue */
    --lime: #d4a23c;         /* logo gold — signature accent */
    --lime-2: #b8862a;       /* darker gold */
    --gold-soft: #f2dc9c;    /* highlighter gold */
    --leaf: #2e8b2e;         /* logo leaf — used sparingly */
    --radius: 22px;
    --ease: cubic-bezier(.22, .8, .25, 1);
    --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { overflow-x: clip; margin: 0; font-family: var(--font-body); color: var(--ink-2); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--green); }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 56ch; }

/* Small pill label used above headings */
.tag { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); background: var(--surface); border: 1px solid var(--line); padding: .35rem .8rem .35rem .6rem; border-radius: 999px; margin: 0 0 1.2rem; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px rgba(46,139,46,.18); }
.tag b { color: var(--lime-2); font-weight: 800; }
.tag.light { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: var(--lime); }

/* ----- Buttons: pill, colour sweep + arrow slide on hover, press-down on click ----- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
       font: 700 .98rem var(--font-body); padding: .9rem 1.5rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
       transition: color .35s var(--ease), border-color .35s var(--ease), transform .15s ease, box-shadow .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateX(-101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: translateX(0); }
.btn:active { transform: scale(.96); }
.btn .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--lime); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(184,134,42,.7); }
.btn-primary::before { background: var(--green); }
.btn-primary:hover { color: var(--lime); box-shadow: 0 14px 30px -14px rgba(15,39,71,.8); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline::before { background: var(--ink); }
.btn-outline:hover { color: var(--lime); }

.btn-dark { background: var(--green); color: #fff; }
.btn-dark::before { background: var(--lime); }
.btn-dark:hover { color: var(--ink); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light::before { background: #fff; }
.btn-outline-light:hover { color: var(--ink); border-color: #fff; }

.btn-ghost { background: var(--tint); color: var(--ink); }
.btn-ghost::before { background: var(--line); }
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* Hero primary button: soft attention ring, twice, after load */
.hero .btn-primary { animation: ring 2.4s ease-out 1.2s 2; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(212,162,60,.9); } 70% { box-shadow: 0 0 0 16px rgba(212,162,60,0); } 100% { box-shadow: 0 0 0 0 rgba(212,162,60,0); } }

.link-btn { background: none; border: 0; padding: 0; color: var(--green); font: 700 .95rem var(--font-body); cursor: pointer; text-align: left; background-image: linear-gradient(var(--lime-2), var(--lime-2)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease); }
.link-btn:hover { background-size: 100% 2px; }
.btn:focus-visible, .link-btn:focus-visible, .tile-action:focus-visible, .switch-btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--lime-2); outline-offset: 3px; }

/* ----- Header ----- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 10px 0; transition: padding .3s var(--ease); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 10px 0 16px; background: rgba(255,255,255,.75); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; transition: box-shadow .3s; }
.site-header.scrolled .nav { box-shadow: 0 12px 30px -18px rgba(15,39,71,.35); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { height: 42px; width: auto; display: block; }
.brand-word { display: grid; line-height: 1; margin: 0; font-family: var(--font-head); }
.brand-word span { font-weight: 800; font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.brand-word em { font-style: normal; font-weight: 700; font-size: .72rem; letter-spacing: .55em; text-transform: uppercase; color: var(--lime-2); margin-top: .28rem; }
.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 600; padding: .45rem .85rem; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--tint); }
.nav-links a.active { background: var(--ink); color: var(--lime); }
.nav-links .btn { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ----- Hero: visual left, copy right ----- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy h1 .hl { background: linear-gradient(transparent 60%, var(--gold-soft) 60%); padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.6rem; }
.assurances { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.assurances li { font-size: .85rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: .3rem .75rem; border-radius: 999px; }
.assurances li::before { content: "✓ "; color: var(--green); }

.tail-visual { margin: 0; background: var(--green); border-radius: 28px; padding: 1.6rem 1.6rem 1.2rem; color: #d6dfec; position: relative; overflow: hidden; }
.tail-visual::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(212,162,60,.18), transparent 70%); }
.tail-visual svg { width: 100%; height: auto; overflow: visible; }
.axis { stroke: rgba(255,255,255,.25); stroke-width: 1; }
.bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.tail-visual.in .bar { animation: grow .7s var(--ease) forwards; animation-delay: var(--d); }
@keyframes grow { to { transform: scaleY(1); } }
.bar-head { fill: #e8eef7; }
.bar-tail { fill: var(--lime); }
.tail-bracket { fill: none; stroke: var(--lime); stroke-width: 1.5; stroke-dasharray: 340; stroke-dashoffset: 340; }
.tail-visual.in .tail-bracket { animation: draw 1.2s var(--ease) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tail-visual figcaption { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .82rem; margin-top: .6rem; }
.cap i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .45rem; vertical-align: -1px; }
.cap-head i { background: #e8eef7; }
.cap-tail i { background: var(--lime); }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 1.3rem 0 0; background: rgba(255,255,255,.12); border-radius: 16px; overflow: hidden; }
.hero-stats div { background: var(--green-2); padding: .9rem 1rem; display: flex; flex-direction: column-reverse; }
.hero-stats dd { margin: 0; font: 800 1.7rem/1.1 var(--font-head); color: #fff; letter-spacing: -.02em; }
.hero-stats dt { font-size: .8rem; color: #a9b8cf; }

/* ----- Ticker ----- */
.ticker { background: var(--ink); color: var(--lime); overflow: hidden; white-space: nowrap; padding: .95rem 0; font: 700 1.05rem var(--font-head); letter-spacing: -.01em; }
.ticker-track { display: inline-flex; gap: 1.6rem; animation: marquee 38s linear infinite; padding-left: 1.6rem; }
.ticker-track .dot { color: #5c78a3; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----- Sections ----- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-green { background: var(--green); color: #d6dfec; }
.section-green h2, .section-green h3 { color: #fff; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 3rem; }

/* ----- Approach: sticky head + switch ----- */
.approach-grid { display: grid; grid-template-columns: .9fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.approach-head { position: sticky; top: 110px; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-top: 1rem; }
.switch-btn { position: relative; z-index: 1; border: 0; background: none; font: 700 .95rem var(--font-body); padding: .65rem 1.6rem; border-radius: 999px; cursor: pointer; color: var(--muted); transition: color .3s; }
.switch-btn[aria-selected=true] { color: var(--lime); }
.switch-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ink); transition: transform .4s var(--ease); }
.switch[data-active=deliver] .switch-pill { transform: translateX(100%); }
.track { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.6rem, 3.5vw, 2.6rem); animation: panel .45s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(12px); } }
.track-sub { font: 700 1.5rem/1.2 var(--font-head); color: var(--ink); letter-spacing: -.02em; }
.track-list { list-style: none; padding: 0; margin: 1.2rem 0 2rem; counter-reset: t; }
.track-list li { counter-increment: t; display: grid; grid-template-columns: 52px 1fr; padding: 1.2rem 0; border-top: 1px dashed var(--line); }
.track-list li::before { content: "0" counter(t); font: 800 1.4rem var(--font-head); color: var(--lime-2); grid-row: span 2; }
.track-list h3 { margin: 0 0 .25rem; }
.track-list p { margin: 0; color: var(--muted); font-size: .95rem; grid-column: 2; }

/* ----- Process: staircase ----- */
.stairs { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.stairs li { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 1.5rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 1.4rem 1.8rem; max-width: 760px; transition: background .3s, transform .3s var(--ease); }
.stairs li:nth-child(2) { margin-left: 8%; }
.stairs li:nth-child(3) { margin-left: 16%; }
.stairs li:nth-child(4) { margin-left: 24%; }
.stairs li:hover { background: rgba(212,162,60,.08); transform: translateX(6px); }
.num { font: 800 5rem/1 var(--font-head); color: transparent; -webkit-text-stroke: 2px var(--lime); }
.when { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--lime); margin-bottom: .3rem; }
.stairs h3 { font-size: 1.35rem; margin: 0 0 .3rem; }
.stairs p { margin: 0; color: #a9b8cf; }

/* ----- Supplier network ----- */
.network-grid { display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.big-number { font: 800 clamp(4.5rem, 10vw, 7.5rem)/.9 var(--font-head); color: var(--green); letter-spacing: -.05em; margin: 0 0 .3rem; }
.big-number + h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.proof { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .55rem; }
.proof li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink); }
.proof li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2747' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; flex-shrink: 0; }
.search { display: flex; align-items: center; gap: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 1.2rem; margin-bottom: 1.2rem; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(212,162,60,.45); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search input { flex: 1; border: 0; background: none; padding: .95rem 0; font: 1rem var(--font-body); color: var(--ink); }
.search input:focus-visible { outline: none; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.tile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.tile::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: var(--lime-2); transition: width 1s var(--ease); }
.network-board.in .tile::after { width: var(--fill); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(15,39,71,.45); border-color: transparent; }
.tile-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.tile h3 { margin: 0; font-size: 1.05rem; }
.tile-top strong { font: 800 1.4rem var(--font-head); color: var(--green); letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--muted); font-size: .88rem; flex: 1; }
.tile-action { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; padding: 0; font: 700 .88rem var(--font-body); color: var(--green); cursor: pointer; }
.tile-action .arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.tile:hover .tile-action .arrow { transform: translateX(5px); }
.empty-state { padding: 1.2rem 0; color: var(--muted); margin: 0; }

/* ----- Estimator ----- */
.estimate-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; background: var(--surface); border-radius: 32px; padding: clamp(1.8rem, 4vw, 3.2rem); box-shadow: 0 30px 60px -40px rgba(15,39,71,.5); }
.estimator { display: grid; gap: 1.4rem; background: var(--bg); border-radius: 22px; padding: 1.6rem; }
.estimator label { display: grid; grid-template-columns: 1fr auto; gap: .6rem; font-weight: 600; color: var(--ink); }
.estimator output { font: 800 1.1rem var(--font-head); color: var(--green); }
.estimator input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--green); }
.estimate-result { background: var(--green); color: #d6dfec; border-radius: 16px; padding: 1.1rem 1.2rem; display: grid; gap: .15rem; }
.estimate-result strong { font: 800 2.3rem var(--font-head); color: var(--lime); letter-spacing: -.03em; }
.estimate-result small { color: #9fb0c9; }

/* ----- About: copy left, offset photo right ----- */
.about-grid { display: grid; grid-template-columns: 1.2fr minmax(260px, 420px); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-intro { font: 600 1.35rem/1.4 var(--font-head); color: var(--ink); letter-spacing: -.01em; }
.about-copy > p { max-width: 60ch; }
.credentials { list-style: none; padding: 0; margin: 1.6rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.credentials li { background: var(--tint); padding: .4rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.portrait { margin: 0; }
.portrait-frame { position: relative; }
.portrait-frame::before { content: ""; position: absolute; inset: 0; transform: translate(18px, 18px); background: var(--lime); border-radius: 28px; z-index: -1; transition: transform .5s var(--ease); }
.portrait:hover .portrait-frame::before { transform: translate(10px, 10px); }
.portrait-frame { isolation: isolate; }
.portrait img, .portrait-placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.portrait-placeholder { display: grid; place-items: center; align-content: center; gap: .8rem; background: var(--green); }
.initials { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); font: 800 2.5rem var(--font-head); color: var(--ink); }
.ph-note { font-size: .78rem; color: #d6dfec; border: 1px dashed rgba(255,255,255,.35); padding: .25rem .6rem; border-radius: 999px; }
.portrait figcaption { display: grid; margin-top: 2rem; }
.portrait figcaption strong { font: 700 1.25rem var(--font-head); color: var(--ink); }
.portrait figcaption span { color: var(--muted); font-size: .92rem; }

/* ----- Closing panel ----- */
.closing { display: grid; grid-template-columns: 1.4fr auto; gap: 2rem 3rem; align-items: end; background: var(--ink); border-radius: 36px; padding: clamp(2rem, 5vw, 3.6rem); position: relative; overflow: hidden; }
.closing::after { content: ""; position: absolute; width: 320px; height: 320px; right: -100px; bottom: -140px; border-radius: 50%; background: var(--lime); opacity: .12; }
.closing h2 { color: #fff; }
.closing .lead { color: #a9b8cf; }
.closing-ctas { display: grid; gap: .7rem; position: relative; z-index: 1; }
.contact-line { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 1.4rem 0 0; color: #a9b8cf; }
.contact-line a { color: var(--lime); text-decoration: none; font-weight: 600; }

/* ----- Footer ----- */
.site-footer { background: var(--bg); color: var(--muted); padding: 3rem 0 1.5rem; border-top: 1px solid var(--line); }
.footer-logo { width: 190px; height: auto; margin-bottom: .8rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-size: 1rem; }
.site-footer a, .site-footer .link-btn { display: block; color: var(--muted); text-decoration: none; margin: .35rem 0; font-weight: 500; background: none; }
.site-footer a:hover, .site-footer .link-btn:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; }

/* ----- Modal ----- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,39,71,.55); backdrop-filter: blur(4px); animation: fade .2s; }
.modal-card { position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 28px; padding: 2rem; box-shadow: 0 40px 80px -24px rgba(0,0,0,.45); animation: pop .35s var(--ease); }
.modal-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); border: 0; font-size: 1.4rem; line-height: 1; color: var(--ink); cursor: pointer; transition: transform .3s var(--ease); }
.modal-close:hover { transform: rotate(90deg); }
.modal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg); padding: 4px; border-radius: 999px; margin: 0 3rem 1.4rem 0; }
.modal-tabs button { border: 0; background: none; padding: .6rem .5rem; font: 700 .86rem var(--font-body); color: var(--muted); cursor: pointer; border-radius: 999px; transition: background .25s, color .25s; }
.modal-tabs button[aria-selected=true] { background: var(--ink); color: var(--lime); }
#enquiry-form { display: grid; gap: 1rem; }
#enquiry-form h3 { margin-bottom: 0; font-size: 1.6rem; }
#enquiry-form p { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
#enquiry-form label { display: grid; gap: .35rem; font-size: .86rem; font-weight: 700; color: var(--ink); }
#enquiry-form input, #enquiry-form select, #enquiry-form textarea { font: 1rem var(--font-body); padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); width: 100%; transition: border-color .2s, background .2s; }
#enquiry-form input:focus, #enquiry-form select:focus, #enquiry-form textarea:focus { background: #fff; border-color: var(--green); }
#enquiry-form .invalid { border-color: #c0392b; background: #fdf2f0; }
#enquiry-form button[type=submit] { width: 100%; }
.form-error { color: #b03024; font-size: .9rem; }
.form-success { text-align: center; padding: 1rem 0; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; animation: pop .45s var(--ease); }
button[disabled] { opacity: .6; cursor: wait; }

/* ----- Reveal on scroll ----- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .bar { transform: none; }
    .tail-bracket { stroke-dashoffset: 0; }
    .ticker-track { animation: none; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ----- Responsive ----- */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { order: -1; }            /* on small screens the copy comes first */
    .approach-grid, .network-grid, .estimate-card, .about-grid, .closing { grid-template-columns: 1fr; }
    .approach-head { position: static; }
    .stairs li:nth-child(n) { margin-left: 0; }
    .about-grid .portrait { max-width: 380px; }
}
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav { border-radius: 22px; }
    .nav-links { position: absolute; top: 76px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: .2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: .8rem; display: none; box-shadow: 0 20px 40px -24px rgba(15,39,71,.4); }
    .nav-links.open { display: flex; }
    .nav-links .btn { margin: .5rem 0 0; }
}
@media (max-width: 560px) {
    .tiles, .grid-2 { grid-template-columns: 1fr; }
    .stairs li { grid-template-columns: 1fr; gap: .2rem; padding: 1.2rem 1.3rem; }
    .num { font-size: 3rem; }
    .cta-row .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .modal-card { padding: 1.4rem; }
    .modal-tabs { margin-right: 2.6rem; }
    .hero-stats dd { font-size: 1.35rem; }
}
