/* ==========================================================================
   Archimedia — Technology Architects
   HTML5 rebuild stylesheet. Edit the tokens below to retheme the whole site.
   ========================================================================== */

:root {
  --bg:        #000000;
  --bg-alt:    #0b0b0b;
  --surface:   #121212;
  --line:      #262626;
  --text:      #f5f5f5;
  --muted:     #a3a3a3;
  --accent:    #d6d8db;   /* silver — matches the logo */
  --accent-2:  #ffffff;
  --radius:    4px;
  --maxw:      1200px;
  --gutter:    clamp(16px, 4vw, 40px);
  --head-h:    76px;
  --font-head: "Montserrat", -apple-system, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: .12em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; color: var(--muted); }
p.lead { font-size: 1.15rem; color: var(--text); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* Eyebrow label */
.eyebrow {
  display: inline-block; font: 600 .75rem/1 var(--font-head);
  letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.8em; border: 1px solid var(--accent); border-radius: var(--radius);
  font: 600 .8rem/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase;
  color: var(--text); background: transparent; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--accent); color: #000000; }
.btn--solid { background: var(--accent); color: #000000; }
.btn--solid:hover { background: var(--accent-2); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--head-h); z-index: 100;
  background: rgba(0, 0, 0, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(0, 0, 0, .94); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__name { font: 700 1.35rem/1 var(--font-head); letter-spacing: .28em; text-transform: uppercase; }
.brand__tag  { font: 500 .62rem/1 var(--font-head); letter-spacing: .42em; text-transform: uppercase; color: var(--accent); margin-top: 7px; }
.brand img { height: 46px; width: auto; }
@media (max-width: 420px) { .brand img { height: 38px; } }
.footer-logo { width: 150px; height: auto; margin: 0 auto 26px; opacity: .95; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2vw, 30px); }
.nav a {
  position: relative; color: var(--muted); padding: 6px 0;
  font: 500 .78rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--accent); transition: right .25s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--head-h) 0 0 0; background: var(--bg);
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; gap: 0; padding: 24px var(--gutter); }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 20px 0; font-size: .95rem; }
  .nav a::after { display: none; }
  body.nav-open { overflow: hidden; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--head-h) + 60px) 0 80px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 30% 20%, #262626 0%, var(--bg) 60%);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.7) 60%, var(--bg) 100%);
}
.hero__inner { max-width: 760px; }
.hero p.lead { max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 48px; background: linear-gradient(var(--accent), transparent); animation: cue 2s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Inner page banner */
.page-hero {
  padding: calc(var(--head-h) + 80px) 0 70px; position: relative; overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.07), transparent 60%), linear-gradient(180deg, transparent 40%, var(--bg-alt)); }
.page-hero .container { position: relative; }
.page-hero p { max-width: 680px; color: var(--text); opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #1f1f1f, #0d0d0d); aspect-ratio: 16 / 10;
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.media:hover img { transform: scale(1.03); }
.media--contain { background: none; aspect-ratio: auto; }
.media--contain img { object-fit: contain; height: auto; }

/* Video trigger */
.video-trigger { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: none; color: inherit; text-align: left; }
.video-trigger .play {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%; border: 2px solid #fff;
  background: rgba(0,0,0,.45); display: grid; place-items: center; transition: background .2s, transform .2s;
}
.video-trigger .play::before { content: ""; border-left: 20px solid #fff; border-block: 12px solid transparent; margin-left: 5px; }
.video-trigger:hover .play, .video-trigger:focus-visible .play { background: var(--accent); transform: translate(-50%, -50%) scale(1.06); }

/* Video dialog */
.video-dialog { padding: 0; border: 0; background: transparent; width: min(1100px, 94vw); max-width: none; }
.video-dialog::backdrop { background: rgba(0,0,0,.88); }
.video-dialog__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-dialog iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-dialog__close { position: absolute; top: -46px; right: 0; background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }

/* ---------- Service catalogue (What we do) ---------- */
.subnav { position: sticky; top: var(--head-h); z-index: 50; background: rgba(11,11,11,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0 var(--gutter); max-width: var(--maxw); margin-inline: auto; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 0; white-space: nowrap; color: var(--muted); font: 500 .75rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--text); border-color: var(--accent); }

.group + .group { margin-top: clamp(72px, 9vw, 120px); }
.group__head { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 40px; }
.group__num { font: 300 2.6rem/1 var(--font-head); color: var(--accent); }
.group__head h2 { margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
@media (max-width: 400px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.card:hover { border-color: rgba(255,255,255,.35); transform: translateY(-3px); }
.card .media { border-radius: 0; aspect-ratio: 16 / 10; }
.card__body { padding: 24px 26px 28px; }
.card__body p:last-child { margin-bottom: 0; }
.card__meta { font: 500 .72rem/1.4 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }

/* ---------- Process (How we do it) ---------- */
.steps { counter-reset: step; display: grid; gap: clamp(56px, 7vw, 96px); }
.step { counter-increment: step; }
.step .step__num::before { content: counter(step, decimal-leading-zero); }
.step__num { display: block; font: 300 3.2rem/1 var(--font-head); color: var(--accent); margin-bottom: 14px; }
.callout { margin-top: 28px; padding: 26px 28px; border-left: 2px solid var(--accent); background: var(--surface); }
.callout h3 { color: var(--accent-2); }

/* ---------- About: badges / logos ---------- */
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; margin-top: 30px; }
.logo-row img { max-height: 90px; width: auto; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.fact { background: var(--bg); padding: 28px 24px; }
.fact strong { display: block; font: 600 2rem/1 var(--font-head); color: var(--text); margin-bottom: 8px; }
.fact span { color: var(--muted); font-size: .9rem; }
.partner { display: flex; gap: 28px; align-items: center; }
.partner img { width: 140px; flex: none; }
@media (max-width: 560px) { .partner { flex-direction: column; align-items: flex-start; } }

/* ---------- CTA row (shared) ---------- */
.cta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (max-width: 860px) { .cta-row { grid-template-columns: 1fr; } }
.cta { background: var(--bg-alt); padding: 48px 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta img { height: 64px; width: auto; opacity: .9; }
.cta h3 { font-size: 1rem; letter-spacing: .26em; text-transform: uppercase; margin: 6px 0 4px; }
.cta .btn { margin-top: 6px; }
.social { list-style: none; display: flex; gap: 12px; padding: 0; margin: 8px 0 0; }
.social a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: border-color .2s, background .2s, color .2s; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: #000000; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; text-align: center; }
.site-footer .tagline { font: 500 .78rem/1 var(--font-head); letter-spacing: .6em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; padding: 0; margin: 0 0 22px; }
.site-footer nav a { color: var(--muted); font-size: .85rem; }
.site-footer nav a:hover { color: var(--text); }
.site-footer small { color: #6e6e6e; font-size: .8rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font: 500 .72rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); font: inherit; transition: border-color .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field .error { display: none; color: #ff8a8a; font-size: .82rem; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff8a8a; }
.field.invalid .error { display: block; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; }
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; display: none; }
.alert.show { display: block; }
.alert--ok  { background: rgba(255,255,255,.06); border: 1px solid var(--accent); color: var(--text); }
.alert--err { background: rgba(255,138,138,.1); border: 1px solid #ff8a8a; color: var(--text); }
.privacy { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; }
.privacy p { font-size: .82rem; }

.showrooms { display: grid; gap: 28px; }
.showroom { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.showroom__body { padding: 24px 26px 28px; }
.showroom h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.showroom h3 small { font: 500 .7rem/1 var(--font-head); letter-spacing: .2em; color: var(--accent); text-transform: uppercase; }
.showroom dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .92rem; }
.showroom dt { color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding-top: 4px; }
.showroom dd { margin: 0; color: var(--text); }
.showroom .note { font-size: .85rem; color: var(--accent-2); margin: 0 0 14px; }

.gallery { position: relative; background: #111; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img { flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; scroll-snap-align: start; }
.gallery__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 1.2rem; cursor: pointer; }
.gallery__btn:hover { background: var(--accent); color: #000000; }
.gallery__btn--prev { left: 12px; } .gallery__btn--next { right: 12px; }
.gallery__count { position: absolute; right: 14px; bottom: 12px; background: rgba(0,0,0,.7); padding: 3px 10px; border-radius: 20px; font-size: .75rem; }
.map { width: 100%; aspect-ratio: 16 / 9; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__video { display: none; }
  .scroll-cue { animation: none; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
