/* ASTRIL — layout concept: one long left-aligned column on cool drafting paper.
   Navy ink for text and primary actions; copper only where something conducts:
   the hero traces, links, active states, the location marker. */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* colour */
  --bg: #f4f6f9;          /* page: cool drafting paper */
  --panel: #ffffff;       /* raised surfaces */
  --panel-2: #e9edf3;     /* recessed surfaces, image wells */
  --line: #d7dde7;        /* hairlines, borders */
  --line-strong: #b9c2d1;
  --text: #13203a;        /* navy ink */
  --muted: #566176;
  --copper: #b4612a;      /* graphics: traces, markers, rules */
  --copper-ink: #9a4f1c;  /* copper for text (AA on paper) */
  --copper-wash: #b4612a14;
  --blue: #2c5aa0;        /* blueprint blue: focus, secondary graphics */
  --ok: #1d7f53;
  --on-dark: #ffffff;
  --shadow: 0 1px 2px #13203a0d, 0 12px 32px -16px #13203a40;

  /* type */
  --display: "Unbounded", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.55rem, 1.3rem + 1.1vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.5rem + 3vw, 4.4rem);

  --radius: 14px;
  --radius-s: 8px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 500; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100; transform: translateY(-200%);
  background: var(--text); color: var(--on-dark); padding: 10px 16px; border-radius: var(--radius-s);
  text-decoration: none; font-weight: 600; transition: transform .2s;
}
.skip:focus { transform: none; }

/* ---------- buttons ---------- */
.btn {
  --mx: 50%; --my: 50%;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em; border-radius: 999px;
  background: var(--text); color: var(--on-dark); font-weight: 600; text-decoration: none; font-family: var(--body); font-size: inherit;
  border: 1px solid var(--text); cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, border-color .25s;
  overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(130px circle at var(--mx) var(--my), #b4612a8c, transparent 65%);
  opacity: 0; transition: opacity .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px #13203a80; }
.btn:hover::after { opacity: 1; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }
.btn--ghost::after { background: radial-gradient(120px circle at var(--mx) var(--my), var(--copper-wash), transparent 60%); }
.btn--small { min-height: 40px; padding: 0 1.1em; font-size: var(--step--1); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; color: var(--text); flex: none; }
.brand__word { font-family: var(--display); font-weight: 600; letter-spacing: .28em; font-size: 1rem; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 8px 11px; text-decoration: none; color: var(--muted); font-size: var(--step--1);
  border-radius: 999px; transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1.5px; background: var(--copper);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a.is-active::after, .nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__tools { display: flex; align-items: center; gap: 12px; }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--panel); }
.lang button {
  font: 600 .75rem/1 var(--body); letter-spacing: .06em; color: var(--muted);
  background: none; border: 0; padding: 7px 10px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--on-dark); }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; }
.progress span { display: block; height: 100%; width: 100%; background: var(--copper); transform-origin: left; transform: scaleX(0); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--nav-h) + 24px + env(safe-area-inset-top, 0px)) var(--gutter) 24px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  animation: fade .35s var(--ease); overflow-y: auto;
}
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu a {
  font-family: var(--display); font-size: var(--step-2); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line);
  animation: rise .5s var(--ease) both;
}
.mobile-menu a:nth-child(2) { animation-delay: .04s } .mobile-menu a:nth-child(3) { animation-delay: .08s }
.mobile-menu a:nth-child(4) { animation-delay: .12s } .mobile-menu a:nth-child(5) { animation-delay: .16s }
.mobile-menu a:nth-child(6) { animation-delay: .2s } .mobile-menu a:nth-child(7) { animation-delay: .24s }
.mobile-menu a:nth-child(8) { animation-delay: .28s }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: calc(var(--nav-h) + clamp(56px, 12vh, 140px)) clamp(40px, 7vh, 80px); overflow: hidden; }
.hero--page { padding-block: calc(var(--nav-h) + clamp(48px, 9vh, 110px)) clamp(32px, 5vh, 56px); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { /* fade traces into the page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 35%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero__inner { position: relative; z-index: 1; }
.status {
  display: inline-flex; align-items: center; gap: 10px; font-size: var(--step--1); color: var(--muted);
  padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 80%, transparent);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 #1d7f5366; animation: ping 2.4s infinite; }
.status.is-busy .status__dot { background: var(--copper); box-shadow: none; animation: none; }
.hero__title {
  font-size: var(--step-3); font-weight: 500; max-width: 14ch; margin-top: 28px; letter-spacing: -0.025em;
}
.hero--page .hero__title { margin-top: 0; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; }
.js .hero__title .w > span { animation: word 1s var(--ease) both; }
.hero__lead { max-width: 56ch; color: var(--muted); font-size: var(--step-1); line-height: 1.5; margin-top: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.js .hero__lead, .js .hero__actions, .js .status, .js .disciplines { animation: rise 1s var(--ease) both; }
.js .status { animation-delay: .05s } .js .hero__lead { animation-delay: .45s }
.js .hero__actions { animation-delay: .6s } .js .disciplines { animation-delay: .75s }

.disciplines { list-style: none; padding: 0; margin: clamp(48px, 8vh, 80px) 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.disciplines a {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-size: var(--step--1); color: var(--text);
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  transition: border-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.disciplines a:hover { border-color: var(--copper); transform: translateY(-2px); box-shadow: var(--shadow); }
.disciplines svg { width: 18px; height: 18px; color: var(--copper); }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head p { color: var(--muted); max-width: 52ch; }
.section__head:has(> :only-child) { grid-template-columns: 1fr; }

/* reveal: content is visible at rest; JS adds .pre only to things still below the fold */
.reveal.pre { opacity: 0; transform: translateY(24px); }
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service {
  --mx: -300px; --my: -300px;
  position: relative; background: var(--panel); padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--copper-wash), transparent 55%);
}
.service.is-flash { animation: flash 1.4s var(--ease); }
.service__icon { width: 44px; height: 44px; color: var(--copper); }
.service p { color: var(--muted); max-width: 52ch; }
.service ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service li { font-size: var(--step--1); padding: 4px 10px; border-radius: 999px; background: var(--panel-2); color: var(--text); }
.service__more {
  position: relative; margin-top: auto; padding-top: 10px; align-self: flex-start; font-size: var(--step--1); color: var(--copper-ink);
  background: none; border: 0; padding-inline: 0; cursor: pointer; font-family: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #9a4f1c55;
}
.service__more:hover { text-decoration-color: var(--copper-ink); }

/* ---------- work + products (cards) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: 500 var(--step--1)/1 var(--body); color: var(--muted); background: var(--panel); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; transition: all .25s var(--ease);
}
.filters button:hover { color: var(--text); border-color: var(--line-strong); }
.filters button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--on-dark); }

.work { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.card {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  color: inherit; font: inherit; cursor: pointer;
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease), opacity .4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card.is-out { opacity: 0; transform: scale(.97); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--panel-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__count {
  position: absolute; right: 12px; bottom: 12px; font-size: .75rem; padding: 4px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 85%, transparent); backdrop-filter: blur(6px); color: var(--text);
}
.card__sample {
  position: absolute; left: 12px; top: 12px; font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: var(--text); color: var(--on-dark);
}
.card__body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; flex: 1; }
.card__body h3 { font-size: 1.1rem; }
.card__body p { color: var(--muted); font-size: var(--step--1); }
.card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.price { font-family: var(--display); font-size: 1.05rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--body); font-size: .75rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--copper-ink); }
.empty { color: var(--muted); padding: 40px 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--available { color: var(--ok); }
.pill--preorder { color: var(--blue); }
.pill--coming_soon { color: var(--muted); }
.pill--sold_out { color: var(--copper-ink); }
.card .pill { position: absolute; left: 12px; bottom: 12px; background: var(--panel); }

/* ---------- process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.process::before { /* the trace connecting the steps */
  content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: var(--line);
}
.process::after {
  content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1.5px; background: var(--copper);
  transform-origin: left; transform: scaleX(var(--p, 1)); transition: transform 1.6s var(--ease);
}
.process li { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; }
.process__n {
  position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--copper); color: var(--copper-ink); font-family: var(--display); font-size: .9rem;
  margin-bottom: 10px;
}
.process p { color: var(--muted); font-size: var(--step--1); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.quote { margin: 0; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 18px; align-content: space-between; }
.quote blockquote { margin: 0; font-size: var(--step-1); line-height: 1.45; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--display); color: var(--copper); font-size: 2.4rem; line-height: .8; }
.quote figcaption { color: var(--muted); font-size: var(--step--1); }
.quote figcaption strong { color: var(--text); display: block; font-weight: 600; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about__photo {
  margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--panel), var(--panel-2)); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__monogram { font-family: var(--display); font-size: clamp(4rem, 12vw, 9rem); color: var(--line-strong); font-weight: 600; }
.about__text { display: grid; gap: 22px; min-width: 0; }
.about__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.about__name strong { font-family: var(--display); font-weight: 500; font-size: var(--step-1); }
.about__name span { color: var(--copper-ink); font-size: var(--step--1); }
.about__bio { display: grid; gap: 1em; color: var(--muted); max-width: 62ch; }
.skills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { font-size: var(--step--1); border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px; }
.about__links { display: flex; flex-wrap: wrap; gap: 18px; }
.about__links a, .link { color: var(--copper-ink); text-underline-offset: 4px; text-decoration-color: #9a4f1c55; }
.about__links a:hover, .link:hover { text-decoration-color: var(--copper-ink); }

/* ---------- location ---------- */
.location { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.location__text { display: grid; gap: 22px; min-width: 0; }
.location__city { font-family: var(--display); font-size: var(--step-3); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.location__region { color: var(--copper-ink); font-size: var(--step--1); }
.location__body { color: var(--muted); max-width: 52ch; display: grid; gap: 1em; }
.location__facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.location__facts div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.location__facts dt { color: var(--muted); } .location__facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.map { position: relative; margin: 0; justify-self: center; width: min(100%, 380px); }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map .land { fill: var(--panel-2); stroke: none; }
.map .fi { fill: var(--panel); stroke: var(--text); stroke-width: 1.4; stroke-linejoin: round; }
.map .fi-draw { fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linejoin: round; }
.map .grat { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; fill: none; }
.map .dot { fill: var(--muted); }
.map .pin { fill: var(--copper); }
.map .ring { fill: none; stroke: var(--copper); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 2.8s var(--ease) infinite; }
.map .lbl { font: 600 13px var(--body); fill: var(--text); }
.map .lbl--small { font-weight: 400; font-size: 11px; fill: var(--muted); }
.map .route { fill: none; stroke: var(--copper); stroke-width: 1.5; stroke-dasharray: 4 5; }
.map figcaption { margin-top: 10px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.js .map.pre .fi-draw { stroke-dashoffset: var(--len); }
.map .fi-draw { stroke-dasharray: var(--len); stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease); }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.mails { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.mail { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.mail__label { grid-column: 1; font-size: var(--step--1); color: var(--muted); }
.mail__addr {
  grid-column: 1; font-family: var(--display); font-size: clamp(1.05rem, .9rem + 1.2vw, 1.8rem); font-weight: 400;
  text-decoration: none; overflow-wrap: anywhere; transition: color .25s;
}
.mail__addr:hover { color: var(--copper-ink); }
.mail__copy {
  grid-column: 2; grid-row: 1 / span 2; font: 500 var(--step--1)/1 var(--body); color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; cursor: pointer; transition: border-color .25s, color .25s;
  min-width: 88px;
}
.mail__copy:hover { border-color: var(--text); }
.mail__copy.is-done { color: var(--ok); border-color: var(--ok); }
.tips { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; }
.tips h3 { font-size: 1.05rem; }
.tips p { color: var(--muted); font-size: var(--step--1); }
.tips ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: var(--step--1); }
.tips li::marker { color: var(--copper); }
.tips__phone { border-top: 1px solid var(--line); padding-top: 14px; color: var(--text) !important; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: var(--step--1); color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); letter-spacing: .28em; font-size: .9rem; }
.footer__brand .brand__mark { width: 24px; height: 24px; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.legal div { display: flex; gap: 8px; }
.legal dt { color: var(--muted); } .legal dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.noscript { padding: 20px var(--gutter); }

/* ---------- overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); }
.overlay__backdrop { position: absolute; inset: 0; background: #13203a73; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: fade .4s var(--ease); }
.overlay__panel {
  position: relative; width: min(1180px, 100%); max-height: 100%; overflow: auto; overscroll-behavior: contain;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 40px 80px -30px #13203a80;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  animation: pop .55s var(--ease);
}
.overlay.is-closing .overlay__panel { animation: pop-out .3s var(--ease) forwards; }
.overlay.is-closing .overlay__backdrop { animation: fade-out .3s var(--ease) forwards; }
.overlay__close {
  position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top, 0px)); z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--line); color: var(--text); cursor: pointer;
  display: grid; place-items: center; transition: transform .35s var(--ease), border-color .25s;
}
.overlay__close:hover { transform: rotate(90deg); border-color: var(--text); }
.overlay__close svg { width: 20px; height: 20px; }
.gallery { background: var(--panel-2); display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; }
.gallery__stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; touch-action: pan-y; }
.gallery__stage img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.gallery__stage img.is-swapping { opacity: 0; transform: scale(.985); }
.gallery__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--line); color: var(--text);
  display: grid; place-items: center; transition: border-color .25s, opacity .25s;
}
.gallery__nav:hover { border-color: var(--text); }
.gallery__nav svg { width: 20px; height: 20px; }
.gallery__nav--prev { left: 12px; } .gallery__nav--next { right: 12px; }
.gallery__count { position: absolute; left: 14px; bottom: 12px; font-size: .78rem; color: var(--text); font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--panel) 85%, transparent); padding: 4px 9px; border-radius: 999px; }
.gallery__count:empty { display: none; }
.gallery__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.gallery__thumbs button {
  flex: none; width: 72px; height: 54px; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--panel); opacity: .6; transition: opacity .25s, border-color .25s;
}
.gallery__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--copper); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.overlay__body { padding: clamp(24px, 3vw, 40px); padding-top: clamp(64px, 6vw, 72px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.overlay__body h2 { font-size: var(--step-2); }
.overlay__text { color: var(--muted); display: grid; gap: .9em; }
.overlay__price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.overlay__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.specs { margin: 8px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.specs dt { color: var(--muted); } .specs dd { margin: 0; }

/* ---------- keyframes ---------- */
@keyframes word { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } } @keyframes fade-out { to { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.97); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 #1d7f5366; } 70% { box-shadow: 0 0 0 9px #1d7f5300; } 100% { box-shadow: 0 0 0 0 #1d7f5300; } }
@keyframes ring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes flash { 0% { background: var(--panel-2); } 100% { background: var(--panel); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .menu-btn { display: block; }
  .nav__tools { margin-left: auto; }
}
@media (max-width: 1020px) {
  .overlay__panel { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .process::before, .process::after { display: none; }
}
@media (max-width: 760px) {
  .section__head, .about, .contact__grid, .location { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .about__photo { max-width: 360px; }
  .map { width: min(100%, 300px); justify-self: start; }
  .nav__cta { display: none; }
  .overlay { padding: 0; }
  .overlay__panel { border-radius: 0; height: 100%; border: 0; }
}
@media (max-width: 480px) {
  .process { grid-template-columns: 1fr; }
  .mail { grid-template-columns: 1fr; }
  .mail__copy { grid-column: 1; grid-row: auto; justify-self: start; }
  .location__facts div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal.pre { opacity: 1; transform: none; }
  .map .ring { display: none; }
}

/* location heading + products page */
.location__h { font-size: var(--step-1); color: var(--muted); font-weight: 400; }
.products-note { margin-top: clamp(32px, 4vw, 48px); color: var(--muted); font-size: var(--step--1); max-width: 62ch; }
.muted { color: var(--muted); font-family: var(--body); font-size: var(--step--1); font-weight: 400; }

#products { padding-top: clamp(16px, 3vw, 40px); }

/* ======================================================
   Service colours: each discipline has its own colour,
   used wherever that service appears. Copper stays the brand colour.
   ====================================================== */
:root {
  --c-software: #2c5aa0;    /* blueprint blue */
  --c-mechanical: #1f7a80;  /* steel teal */
  --c-pcb: #23744a;         /* circuit-board green */
  --c-additive: #c2410c;    /* hot-nozzle red-orange */
}
[style*="--svc"] { --svc-wash: color-mix(in srgb, var(--svc) 10%, var(--panel)); }

/* service cards */
.service { border-top: 3px solid var(--svc, var(--copper)); }
.service::before { background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--svc, var(--copper)) 9%, transparent), transparent 55%); }
.service__icon { color: var(--svc, var(--copper)); }
.service li { background: var(--svc-wash, var(--panel-2)); }
.service__more { color: var(--svc, var(--copper-ink)); text-decoration-color: color-mix(in srgb, var(--svc, var(--copper-ink)) 40%, transparent); }
.service__more:hover { text-decoration-color: var(--svc, var(--copper-ink)); }
.services { border-top: 0; }

/* hero chips */
.disciplines svg { color: var(--svc, var(--copper)); }
.disciplines a:hover { border-color: var(--svc, var(--copper)); }

/* filters */
.filters button[style*="--svc"]::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--svc); margin-right: 8px; vertical-align: 1px;
}
.filters button[style*="--svc"][aria-pressed="true"] { background: var(--svc); border-color: var(--svc); color: var(--on-dark); }
.filters button[style*="--svc"][aria-pressed="true"]::before { background: var(--on-dark); }

/* tags on cards and in the project overlay */
.tags span[style*="--svc"] { color: var(--svc); display: inline-flex; align-items: center; gap: 6px; }
.tags span[style*="--svc"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--svc); }
.tags span:not([style]) { color: var(--muted); }

/* ---------- colour sweep: one pass of light across the hero on load ---------- */
.hero__sweep, .hero__tint { position: absolute; pointer-events: none; }
.hero__sweep {
  inset: -30% -40%;
  background: linear-gradient(105deg,
    transparent 34%,
    color-mix(in srgb, var(--c-software) 30%, transparent) 42%,
    color-mix(in srgb, var(--c-mechanical) 26%, transparent) 47%,
    color-mix(in srgb, var(--c-pcb) 26%, transparent) 52%,
    color-mix(in srgb, var(--c-additive) 30%, transparent) 57%,
    transparent 65%);
  filter: blur(40px);
  transform: translateX(-75%);
  opacity: 0;
}
.js .hero__sweep { animation: sweep 2.6s cubic-bezier(.45, .05, .25, 1) .35s forwards; }
.hero__tint { /* the colour the sweep leaves behind */
  inset: 0;
  background:
    radial-gradient(38% 50% at 96% 8%, color-mix(in srgb, var(--c-software) 13%, transparent), transparent 70%),
    radial-gradient(30% 42% at 74% 30%, color-mix(in srgb, var(--c-mechanical) 9%, transparent), transparent 70%),
    radial-gradient(34% 46% at 92% 70%, color-mix(in srgb, var(--c-pcb) 10%, transparent), transparent 70%),
    radial-gradient(30% 40% at 62% 92%, color-mix(in srgb, var(--c-additive) 9%, transparent), transparent 70%);
}
.js .hero__tint { opacity: 0; animation: fade-in 1.6s var(--ease) 1.6s forwards; }
.hero--page .hero__tint { opacity: .8; }
@keyframes sweep {
  0% { transform: translateX(-75%); opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(75%); opacity: 0; }
}
@keyframes fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero__sweep { display: none; }
  .js .hero__tint { opacity: 1; animation: none; }
}

/* letter-only wordmark */
.brand__word { font-size: 1.05rem; font-weight: 600; letter-spacing: .32em; margin-right: -.32em; }
.footer__brand { letter-spacing: .32em; font-weight: 600; }

/* ---------- hero B-roll video ---------- */
/* The clip sits in the right half of the hero; its left edge fades into the page. */
.hero__video {
  position: absolute; top: calc(var(--nav-h) + 10px); bottom: 0; right: 0; width: min(54%, 900px); height: auto;
  object-fit: contain; object-position: 100% 45%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(0deg, transparent 0%, #000 18%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 28%); mask-composite: intersect;
  opacity: .6; transition: opacity 1.2s var(--ease);
}
.js .hero__video:not(.is-playing) { opacity: .5; }
.hero__veil { /* extra protection for the end of the long headline lines */
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 96%, transparent) 36%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, transparent 72%);
}
.has-hero-video .hero__tint { display: none; }
@media (max-width: 760px) {
  .hero__video, .hero__veil { display: none; }
  .has-hero-video .hero__tint { display: block; }
}
