:root {
  --ink: #0e1a2b;
  --ink-2: #16263d;
  --text: #2a3342;
  --muted: #5b6472;
  --line: #e4e0da;
  --bg: #ffffff;
  --surface: #f7f5f2;
  --copper: #b8642a;
  --copper-text: #a55520;
  --copper-soft: #f6e9de;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 8px 24px rgba(14, 26, 43, .06);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--surface); }
.section.dark { background: var(--ink); color: #c9d2df; }
.section.dark h2, .section.dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper-text); margin-bottom: 14px;
}
.dark .eyebrow, .hero .eyebrow { color: #e3a578; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.dark .lede { color: #aab6c6; }
.section-head { max-width: 720px; margin-bottom: 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: #9e551f; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
:focus-visible { outline: 3px solid #e3a578; outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { font-weight: 700; color: var(--ink); font-size: 1.1rem; letter-spacing: -.01em; }
.brand small { display: block; font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; padding: 8px 14px; border-radius: 8px; font-size: .95rem; font-weight: 500; color: var(--text); }
.nav-links a:hover { color: var(--copper-text); }
.nav-links a[aria-current="page"] { color: var(--copper-text); font-weight: 600; }
.nav-links .btn { padding: 10px 20px; margin-left: 8px; color: #fff; }
.nav-links .btn:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { background: var(--ink); color: #c9d2df; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(184,100,42,.28), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(184,100,42,.14), transparent 60%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: clamp(56px, 8vw, 104px) 0; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #e3a578; }
.hero p.lede { color: #b7c2d2; font-size: 1.2rem; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 20px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); pointer-events: none; }

/* Stats */
.stats { position: relative; border-top: 1px solid rgba(255,255,255,.1); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: 2rem; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: .88rem; color: #9fadc0; }

/* Layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d8d2c9; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--copper-soft); color: var(--copper-text);
  display: grid; place-items: center; margin-bottom: 20px;
}
.icon svg { width: 24px; height: 24px; }
.dark .card { background: var(--ink-2); border-color: rgba(255,255,255,.08); }
.dark .card p { color: #9fadc0; }
.dark .icon { background: rgba(227,165,120,.14); color: #e3a578; }

.num { font-size: .85rem; font-weight: 700; color: var(--copper-text); letter-spacing: .08em; margin-bottom: 12px; display: block; }

/* Experience rows */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 170px 1fr 1.6fr; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row .big { font-size: 2.2rem; font-weight: 700; color: var(--copper-text); letter-spacing: -.03em; line-height: 1; }
.row h3 { margin: 0; }
.row p { margin: 0; color: var(--muted); }

/* Product tiles */
.tile { display: flex; flex-direction: column; text-decoration: none; padding: 0; overflow: hidden; }
.tile .tile-body { padding: 26px 26px 28px; }
.tile .more { margin-top: 18px; font-weight: 600; color: var(--copper-text); font-size: .92rem; }

/* Accreditations */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.badge { text-align: left; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.badge b { display: block; font-size: 1.35rem; color: var(--ink); letter-spacing: -.01em; }
.badge span { font-size: .92rem; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--copper) 0%, #8c4413 100%); color: #fff; border-radius: 24px; padding: clamp(36px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0; color: #fbe9dc; max-width: 52ch; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--copper-soft); }

/* Page header (inner pages) */
.page-hero { background: var(--ink); color: #c9d2df; padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 90% 0%, rgba(184,100,42,.28), transparent 60%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 16px; }
.page-hero .eyebrow { color: #e3a578; }
.page-hero .lede { color: #b7c2d2; }

/* Products page */
.product-block { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.product-block:first-of-type { border-top: 0; }
.product-block .sticky { position: sticky; top: 100px; align-self: start; }
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.model { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.model h3 { margin-bottom: 14px; }
.model ul { margin: 0; padding: 0; list-style: none; }
.model li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid #efebe5; font-size: .95rem; color: var(--text); }
.model li:first-child { border-top: 0; }
.model li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 2px; background: var(--copper); }
.tag { display: inline-block; font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--copper-soft); color: var(--copper-text); margin-bottom: 12px; }
.moq { display: inline-block; font-size: .72rem; font-weight: 650; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-bottom: 12px; margin-left: 6px; }
.product-photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; background: var(--surface); }
.product-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Projects page */
.project { display: grid; grid-template-columns: 90px 1fr 340px; gap: 32px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.project:first-child { border-top: 0; }
.project .idx { font-size: 3rem; font-weight: 700; color: var(--copper-soft); letter-spacing: -.04em; line-height: 1; -webkit-text-stroke: 1.5px var(--copper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: .82rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 500; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; text-decoration: none; }
.contact-card h3 { margin: 0 0 4px; font-size: 1rem; }
.contact-card p { color: var(--ink); font-weight: 500; font-size: 1.05rem; word-break: break-word; }
form.enquiry { display: grid; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px var(--copper-soft); }
.form-note { font-size: .85rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #9fadc0; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand span { color: #fff; }
.site-footer .brand small { color: #9fadc0; }
.site-footer .brand img { background: #fff; border-radius: 10px; padding: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .split, .product-block { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { max-width: 420px; }
  .product-block .sticky { position: static; }
  .grid-3, .grid-4, .badges { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.08); }
  .stat:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; display: none; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav-links .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2, .badges, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; gap: 8px; }
  .models { grid-template-columns: 1fr; }
}

/* Photos */
.tile-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface); padding: 14px; border-bottom: 1px solid var(--line); }
.gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.gallery img, .model-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.model-img { margin-bottom: 18px; background: var(--surface); border: 0; }
.project-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: var(--radius); box-shadow: var(--shadow); }
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner { display: grid; place-items: center; height: 120px; padding: 14px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.partner img { max-width: 80%; max-height: 62px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 980px) {
  .project { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .project .idx { font-size: 2.4rem; }
  .project-img { order: 2; max-width: 520px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
}

[id] { scroll-margin-top: 96px; }

/* Spec sheet downloads */
.model { display: flex; flex-direction: column; }
.model ul { flex: 1; }
.spec-btn { margin-top: 22px; padding: 10px 18px; font-size: .88rem; align-self: flex-start; white-space: nowrap; flex-wrap: wrap; justify-content: center; row-gap: 0; column-gap: 8px; }
.spec-btn svg { flex: none; }
.spec-btn small { font-size: .76rem; font-weight: 500; opacity: .7; }

/* Contact form additions */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-hint { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.field-hint.ok { color: #2a7a4a; font-weight: 600; }
.field textarea.touched:invalid, .field input.touched:invalid, .field select.touched:invalid { border-color: #c0492f; }

.phishing-notice {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 20px;
  padding: 18px 20px; border: 1px solid #f0d9b5; background: #fdf6e9; border-radius: var(--radius);
  color: #6b4a15;
}
.phishing-notice svg { flex: none; margin-top: 2px; color: #b8862a; }
.phishing-notice h3 { color: #6b4a15; font-size: .95rem; margin-bottom: 4px; }
.phishing-notice p { margin: 0; font-size: .88rem; line-height: 1.55; }
.phishing-notice a { color: #6b4a15; text-decoration: underline; }

/* Nav dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.has-dropdown .chev { transition: transform .18s ease; flex: none; }
.has-dropdown:hover .chev, .has-dropdown:focus-within .chev { transform: rotate(180deg); }
.dropdown {
  /* top:100% with no gap keeps the hoverable area unbroken between the link and the menu */
  list-style: none; margin: 0; padding: 10px 8px 8px; position: absolute; top: 100%; left: 0;
  min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s; z-index: 60;
}
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--text); text-decoration: none; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--surface); color: var(--copper-text); }
@media (max-width: 760px) {
  .has-dropdown { position: static; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    background: transparent; padding: 2px 0 6px 16px; display: block;
  }
  .has-dropdown .chev { display: none; }
  .dropdown a { padding: 8px 8px; font-size: .9rem; color: var(--muted); }
}
