:root {
  --night: #0A101C;        /* the logo blue taken down to near-black */
  --night-2: #111A2B;
  --rule: rgba(255, 255, 255, .14);
  --text: #E9EDF3;
  --muted: #9CA8BA;
  --blue: #1F4391;
  --blue-lift: #7EA2F2;    /* logo blue lifted for legibility on dark */
  --paper: #EEF0F3;        /* cold, like bare sheet */
  --ink: #131A26;
  --ink-muted: #505A69;
  --paper-rule: #CDD2D9;
  --spark: #FFA81A;
  --r: 4px;
  --pad: clamp(20px, 5vw, 72px);
  --gap: clamp(88px, 12vw, 168px);
  --display: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--night); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, .statement, .reasons dt { text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.18; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4.1vw, 3.6rem); }
h2 { font-size: clamp(1.45rem, 2.9vw, 2.5rem); max-width: 22ch; }
h3 { font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
p { max-width: 60ch; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--muted); }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: var(--gap); }
.light { background: var(--paper); color: var(--ink); }
.light .lede { color: var(--ink-muted); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 15px 28px; border: 1px solid transparent; border-radius: var(--r); font: inherit; font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--spark); }
.btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-small { padding: 10px 18px; font-size: .95rem; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-small:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.solid { background: rgba(10, 16, 28, .92); backdrop-filter: blur(10px); border-bottom-color: var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand img { height: 50px; width: auto; }
nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .98rem; color: #fff; padding: 6px 0; background: linear-gradient(var(--spark), var(--spark)) left bottom / 0 1px no-repeat; transition: background-size .25s; }
nav a:not(.btn):hover { background-size: 100% 1px; }
.menu-btn { display: none; font: inherit; font-weight: 600; color: #fff; background: none; border: 1px solid rgba(255,255,255,.55); border-radius: var(--r); padding: 9px 16px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding-block: 0; display: flex; align-items: flex-end; overflow: hidden; background: var(--night) url(img/poster.webp) center / cover no-repeat; }
.hero-media { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,28,.62) 0%, rgba(10,16,28,.18) 30%, rgba(10,16,28,.42) 62%, rgba(10,16,28,.94) 100%); }
.hero-inner { position: relative; padding-top: 140px; padding-bottom: clamp(56px, 9vh, 112px); }
.hero h1 { color: #fff; text-wrap: nowrap; }
.hero .lede { margin-top: 26px; max-width: 44ch; color: #D5DBE4; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.video-toggle { position: absolute; right: var(--pad); bottom: clamp(24px, 4vh, 44px); font: inherit; font-size: .85rem; color: #D5DBE4; background: rgba(10,16,28,.5); border: 1px solid rgba(255,255,255,.3); border-radius: 100px; padding: 7px 14px; cursor: pointer; }
.video-toggle:hover { color: #fff; border-color: #fff; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.intro-photos { position: relative; padding: 0 16% 12% 0; }
.intro-photos img { width: 100%; object-fit: cover; border-radius: var(--r); }
.intro-photos .p1 { aspect-ratio: 4 / 5; object-position: 28% 50%; }
.intro-photos .p2 { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 10px solid var(--night); border-radius: calc(var(--r) + 10px); }
.intro-text h2 { margin-bottom: 28px; }
.intro-text .lede { color: var(--text); margin-bottom: 20px; }
.intro-text p:not(.lede) { color: var(--muted); }
.intro-text p + p { margin-top: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(56px, 8vw, 112px); }
.facts div { border-top: 1px solid var(--rule); padding-top: 20px; }
.facts dt { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.facts dd { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 500; color: #fff; line-height: 1.4; }

/* ---------- Services: expanding panels ---------- */
.services { padding-top: 0; }
.services h2 { margin-bottom: clamp(40px, 6vw, 72px); }
.panels { display: flex; gap: 10px; height: clamp(480px, 62vh, 640px); }
.panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--r); background: var(--night-2); transition: flex-grow .55s cubic-bezier(.3, .7, .2, 1); }
.panel.is-open { flex-grow: 4.2; }
.panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.6); transition: filter .55s; }
.panel.is-open > img { filter: saturate(1) brightness(.92); }
.panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,16,28,0) 30%, rgba(10,16,28,.92) 100%); }
.panel-tab { position: absolute; inset: 0; z-index: 2; width: 100%; background: none; border: 0; cursor: pointer; color: #fff; font: inherit; text-align: left; padding: 0; }
.panel-tab span { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; white-space: nowrap; font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; transition: opacity .25s; }
.panel.is-open .panel-tab { pointer-events: none; }
.panel.is-open .panel-tab span { opacity: 0; }
.panel-body { position: absolute; z-index: 3; left: 0; bottom: 0; width: min(560px, 100%); padding: clamp(22px, 3vw, 40px); opacity: 0; visibility: hidden; transition: opacity .3s; }
.panel.is-open .panel-body { opacity: 1; visibility: visible; transition: opacity .45s .25s; }
.panel-body h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.15rem, 1.7vw, 1.5rem); color: #fff; margin-bottom: 10px; }
.panel-body p { color: #D5DBE4; margin-bottom: 16px; }
.panel-body li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid rgba(255,255,255,.18); font-size: .96rem; color: #E9EDF3; }
.panel-body li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 10px; height: 1px; background: var(--spark); }

/* ---------- Materials ---------- */
.materials { padding-bottom: var(--gap); }
.metals { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(40px, 6vw, 72px); }
.metals div { border-top: 1px solid var(--rule); padding-top: 22px; position: relative; }
.metals div::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 1px; }
.metals div:nth-child(1)::before { background: #6C7686; }
.metals div:nth-child(2)::before { background: #C9CED4; }
.metals div:nth-child(3)::before { background: #fff; }
.metals h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: #fff; margin-bottom: 10px; }
.metals p { color: var(--muted); }
.metals img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 24px; }
.band { margin-block: clamp(56px, 8vw, 104px); height: clamp(220px, 34vw, 460px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.sub { font-family: var(--display); font-weight: 400; font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: #fff; margin-bottom: 26px; }
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.sectors li { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 2.6vw, 36px) clamp(20px, 2.2vw, 32px); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-weight: 500; font-size: 1.05rem; transition: background-color .3s; }
.sectors li:hover { background: var(--night-2); }
.sectors svg { width: 48px; height: 48px; fill: none; stroke: var(--blue-lift); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.sectors li:hover svg { stroke: var(--spark); }

/* ---------- Projects (mock content) ---------- */
.projects { padding-top: 0; }
.projects-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.projects-head .lede { max-width: 40ch; }
.project-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: clamp(240px, 26vw, 340px); gap: 10px; }
.project { position: relative; overflow: hidden; border-radius: var(--r); background: var(--night-2); }
.project:first-child { grid-row: span 2; }
.project > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.project:hover > img { transform: scale(1.05); }
.project::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,16,28,.15) 15%, rgba(10,16,28,.8) 55%, rgba(10,16,28,.96) 100%); }
.project > img[src*="laser-2"] { object-position: 88% 50%; }
.project-info { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2.2vw, 30px); }
.project h3 { font-family: var(--display); font-weight: 400; font-size: clamp(.98rem, 1.3vw, 1.2rem); color: #fff; margin-bottom: 12px; }
.project:first-child h3 { font-size: clamp(1.15rem, 1.8vw, 1.6rem); }
.project dl { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.project dt { font-size: .78rem; color: var(--muted); }
.project dd { font-size: .92rem; font-weight: 500; color: #E9EDF3; }
.sample { position: absolute; z-index: 1; top: 14px; left: 14px; font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--spark); border-radius: 100px; padding: 3px 11px; }
.mock-note { margin-top: 18px; font-size: .88rem; color: var(--muted); max-width: none; }

/* ---------- Process: a track that fills as you scroll ---------- */
.process { background: var(--night-2); }
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.process-head { position: sticky; top: 130px; }
.process .lede { margin-top: 24px; }
.steps { position: relative; counter-reset: s; padding-left: clamp(28px, 4vw, 56px); --fill: 1; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; }
.steps::before { bottom: 0; background: var(--rule); }
.steps::after { height: calc(var(--fill) * 100%); background: var(--spark); box-shadow: 0 0 12px rgba(255,168,26,.6); }
.steps li { counter-increment: s; position: relative; display: grid; grid-template-columns: clamp(64px, 8vw, 110px) 1fr; gap: 16px; align-items: start; padding: clamp(26px, 3.4vw, 44px) 0; border-top: 1px solid var(--rule); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: "0" counter(s); font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1; color: #fff; transition: color .4s; }
.steps h3 { font-size: 1.3rem; color: #fff; margin-bottom: 8px; transition: color .4s; }
.steps p { color: var(--muted); transition: color .4s; }
.steps.track li:not(.reached)::before { color: #3A465A; }
.steps.track li:not(.reached) h3 { color: #6B778A; }
.steps.track li:not(.reached) p { color: #4E596B; }

/* ---------- Why: over a full-width photograph ---------- */
.why { position: relative; overflow: hidden; }
.why-bg { position: absolute; inset: 0; }
.why-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.why-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,16,28,.95) 0%, rgba(10,16,28,.86) 45%, rgba(10,16,28,.62) 100%), linear-gradient(180deg, var(--night) 0%, rgba(10,16,28,0) 22%, rgba(10,16,28,0) 78%, var(--night) 100%); }
.why .wrap { position: relative; }
.why h2 { max-width: 20ch; color: #fff; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px); margin-top: clamp(48px, 7vw, 96px); }
.reasons div { border-top: 1px solid rgba(255,255,255,.3); padding-top: 22px; }
.reasons dt { font-weight: 600; font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.reasons dd { color: #C9D0DA; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.contact h2 { margin-bottom: 22px; }
.reach { margin-top: 44px; }
.reach div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 17px 0; border-top: 1px solid var(--rule); }
.reach div:last-child { border-bottom: 1px solid var(--rule); }
.reach dt { font-size: .9rem; color: var(--muted); padding-top: 3px; }
.reach dd { font-weight: 500; font-size: 1.1rem; color: #fff; overflow-wrap: anywhere; }
.reach a { text-decoration: none; background: linear-gradient(var(--spark), var(--spark)) left bottom / 100% 1px no-repeat; padding-bottom: 2px; }
.reach a:hover { color: var(--spark); }
.map-link { display: inline-block; margin-top: 8px; font-size: .95rem; }

.quote { background: var(--night-2); border: 1px solid var(--rule); border-radius: calc(var(--r) * 2); padding: clamp(24px, 3.4vw, 44px); }
.quote h3 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: #fff; margin-bottom: 26px; }
.field { margin-bottom: 18px; min-width: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 500; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
label span { color: #74808F; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: #fff; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); border-radius: 0; padding: 9px 0; }
select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239CA8BA' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 2px center no-repeat; padding-right: 22px; }
select option { color: var(--ink); background: #fff; }
::placeholder { color: #74808F; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-bottom-color: var(--spark); box-shadow: 0 1px 0 var(--spark); }
.quote .btn { width: 100%; margin-top: 10px; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.form-error { font-size: .92rem; font-weight: 600; color: #FF9A8F; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 40px; border-top: 1px solid var(--rule); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot img { height: 56px; width: auto; }
.foot p { font-size: .92rem; color: var(--muted); text-align: right; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

/* Fade-ins (classes are added by script.js). An animation is used, not a transition,
   so each element keeps its own hover and layout transitions afterwards. */
.fade:not(.in) { opacity: 0; }
.fade.in { animation: fade-in 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) var(--fade-delay, 0ms) backwards; }
@keyframes fade-in { from { opacity: 0; transform: translateY(20px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel, .panel > img, .panel-body, .panel-tab span, .steps li::before, .steps h3, .steps p, .project > img { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero h1 { text-wrap: balance; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: rgba(10,16,28,.98); border-bottom: 1px solid var(--rule); padding: 8px var(--pad) 22px; }
  nav.open { display: flex; }
  nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--rule); background: none; }
  nav .btn { margin-top: 18px; text-align: center; }
  .site-header:has(nav.open) { background: rgba(10,16,28,.98); }
  .bar { min-height: 72px; }
  .brand img { height: 42px; }

  .intro-grid, .process-grid, .contact-grid { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .project-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
  .project:first-child { grid-column: span 2; grid-row: auto; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .intro-photos .p1 { aspect-ratio: 4 / 3; }
  .metals { grid-template-columns: 1fr; }
  .metals img { aspect-ratio: 16 / 9; }
  .sectors { grid-template-columns: 1fr 1fr; }

  /* Panels stack, all open */
  .panels { flex-direction: column; height: auto; gap: 14px; }
  .panel, .panel.is-open { flex: none; min-height: 420px; }
  .panel > img, .panel.is-open > img { filter: saturate(.9) brightness(.55); }
  .panel::after { background: linear-gradient(180deg, rgba(10,16,28,.25) 0%, rgba(10,16,28,.9) 100%); }
  .panel-tab { display: none; }
  .panel-body, .panel.is-open .panel-body { opacity: 1; visibility: visible; width: 100%; transition: none; }
}
@media (max-width: 560px) {
  .actions .btn { width: 100%; text-align: center; }
  .video-toggle { position: relative; right: auto; bottom: auto; margin: 0 var(--pad) 22px auto; align-self: flex-end; }
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero-inner { padding-bottom: 28px; }
  .sectors, .reasons, .project-grid { grid-template-columns: 1fr; }
  .project:first-child { grid-column: auto; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .reach div { grid-template-columns: 1fr; gap: 2px; }
  .foot p { text-align: left; }
}
