/* acad-teams — dark technical-drawing theme. Mobile-first. No shadows, no radii.
 *
 * Contrast note: full-brightness white is reserved for text and primary CTAs.
 * Structural borders use --line / --hair, because 2px pure-white rules on black
 * glare badly and make body copy harder to read. */

:root {
  color-scheme: dark;

  --paper: #0a0a0a;      /* page */
  --panel: #121212;      /* raised surface: cards, form panel */
  --ink: #f4f4f4;        /* body text, primary CTA */
  --mute: #a8a8a8;       /* secondary text — 8.9:1 on --paper */
  --line: #3a3a3a;       /* structural borders */
  --hair: #242424;       /* subtle dividers */
  --grid: rgba(255, 255, 255, 0.032);
  --logo-filter: grayscale(1) brightness(2.2);   /* lift the mark to white */
  --client-filter: invert(1) grayscale(1) contrast(1.15);
  --plate-opacity: 0.085;
  --body: #dcdcdc;       /* body copy, a notch below --ink */
  --faint: #4a4a4a;      /* placeholder text */

  /* Not theme-dependent — every theme inherits these from :root. */
  --rule: 1px solid var(--line);
  --rule-hair: 1px solid var(--hair);
  --pad: 1.25rem;
  --max: 78rem;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Light theme. Same structure, inverted values — the switcher writes
   data-theme to <html> and the server renders it from a cookie, so there is no
   flash of the wrong theme on load. */
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f4f4f2;
  --panel: #ffffff;
  --ink: #0d0d0d;
  --mute: #4d4d4d;      /* keeps secondary text past 7:1 on --paper */
  --line: #c4c4c0;
  --hair: #e3e3df;
  --grid: rgba(0, 0, 0, 0.045);
  /* The Autodesk asset is a coloured "A" over a WHITE wordmark: on light it has
     to be inverted to bring that wordmark down to black, then darkened. */
  --logo-filter: grayscale(1) invert(1) brightness(0.55);
  /* Client logos are assumed dark artwork, so on light they need no invert. */
  --client-filter: grayscale(1) contrast(1.15);
  --plate-opacity: 0.10;
  --body: #262626;
  --faint: #a6a6a6;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
:target { scroll-margin-top: 4.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Blueprint grid over the whole page. Fixed, so it reads as paper the content
   sits on rather than something that scrolls with each section. */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
h1 { font-size: clamp(1.85rem, 7vw, 4rem); }
h2 { font-size: clamp(1.4rem, 5vw, 2.25rem); }
h3 { font-size: 1.05rem; letter-spacing: 0; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 2; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* --- animated drawing plates -------------------------------------------- */

.section, .hero { position: relative; overflow: hidden; }

.plate {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  color: var(--ink);
  opacity: var(--plate-opacity);
  animation: plate-float 26s ease-in-out infinite;
}
.plate svg { width: 100%; height: auto; display: block; }
.plate .icon, .plate path, .plate circle, .plate rect, .plate line, .plate polyline, .plate ellipse {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

.plate .hidden-edge { stroke-dasharray: 6 5; }
/* Dimension numerals. The stroke-only rule above covers shapes, not text, so
   text would otherwise pick up a default fill and ignore currentColor. */
.plate text {
  fill: currentColor; stroke: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}
.plate .centre { stroke-dasharray: 14 6 3 6; }

/* pathLength="1" on each drawable normalises the dash length, so one keyframe
   draws every shape at the same rate regardless of its real path length. */
.plate [pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: plate-draw 2.6s cubic-bezier(.5, 0, .2, 1) forwards;
}
.plate [pathLength]:nth-child(2n)  { animation-delay: 0.35s; }
.plate [pathLength]:nth-child(3n)  { animation-delay: 0.7s; }
.plate [pathLength]:nth-child(5n)  { animation-delay: 1.05s; }

.plate .fade { opacity: 0; animation: plate-fade 1.6s ease-out 1.2s forwards; }
.plate .prop { animation: plate-spin 2.2s linear infinite; transform-box: fill-box; transform-origin: 50% 50%; }
/* Turbine rotor. transform-box: view-box with an explicit origin pins rotation
   to the hub exactly, rather than trusting the blade group's bounding box. */
.plate .rotor {
  animation: plate-spin 9s linear infinite;
  transform-box: view-box;
  transform-origin: 150px 99px;
}

@keyframes plate-draw  { to { stroke-dashoffset: 0; } }
@keyframes plate-fade  { to { opacity: 1; } }
@keyframes plate-spin  { to { transform: rotate(360deg); } }
@keyframes plate-float { 50% { transform: translateY(-18px); } }

/* Placement. All are decorative and clipped by the section, so they can hang
   off the edges without creating horizontal scroll (body has overflow-x hidden). */
.plate--aircraft  { top: -4%;  right: -28%; width: 128%; }
.plate--perspective { top: 4%; right: -24%; width: 86%; }
.plate--plan      { bottom: -12%; left: -18%; width: 82%; }
.plate--drone     { top: 4%;   right: -16%; width: 70%; }
.plate--iso       { top: 1%; left: -20%; width: 78%; }
.plate--cross     { top: 8%;   left: -20%;  width: 72%; }
.plate--titleblock{ bottom: -14%; right: -20%; width: 80%; }
.plate--turbine   { bottom: -6%; right: -20%; width: 72%; }

@media (min-width: 48rem) {
  .plate--aircraft{ top: -14%; right: -6%;  width: 74%; }
  .plate--perspective { top: 6%; right: -6%; width: 44%; }
  .plate--plan    { bottom: -14%; left: -6%; width: 42%; }
  .plate--drone   { top: 6%;   right: -4%;  width: 34%; }
  .plate--iso     { top: 1%; left: -13%; width: 46%; }
  .plate--cross   { top: 10%;  left: -6%;   width: 34%; }
  .plate--titleblock { bottom: -12%; right: -5%; width: 36%; }
  .plate--turbine { bottom: -4%; right: -3%; width: 30%; }
}

/* --- section scaffolding ------------------------------------------------ */

.section { border-top: var(--rule); padding: 3rem 0; }
.section-head { margin-bottom: 2rem; }
.section-num {
  display: block;
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.25em;
  color: var(--mute);
  margin-bottom: 0.75rem;
}
.section-lead { max-width: 46rem; color: var(--mute); }

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  border: 1px solid var(--line);
  background: transparent; color: var(--ink);
  font: 700 0.875rem/1 var(--sans);
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover, .btn:focus-visible { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover, .btn--solid:focus-visible { background: transparent; color: var(--ink); }
.btn--block { width: 100%; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Outline trace — a short dash runs one lap around the button edge on hover.
   Adapted from https://codepen.io/vitor-siqueira/pen/xNBExN (100 days css,
   button 45): there the dash is sized to a fixed 180x60 button, here
   pathLength="100" normalises the perimeter so one rule covers every size.
   dasharray 25/75 = a quarter-perimeter dash; the offset travels a full 100
   units, so it laps once and lands back where it started. */
.btn, .header-phone, .messenger, .carousel-controls button { position: relative; }
.trace {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  fill: none; pointer-events: none;
  overflow: visible;
}
.trace rect {
  fill: none;
  stroke: currentColor;      /* stays visible when the button inverts */
  stroke-width: 2;
  stroke-dasharray: 25 75;
  stroke-dashoffset: 25;
  transition: stroke-dashoffset 0.9s ease-in-out;
}
.btn:hover .trace rect,
.btn:focus-visible .trace rect,
.header-phone:hover .trace rect,
.header-phone:focus-visible .trace rect,
.messenger:hover .trace rect,
.messenger:focus-visible .trace rect,
.carousel-controls button:hover .trace rect,
.carousel-controls button:focus-visible .trace rect { stroke-dashoffset: -75; }

/* --- header ------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--rule);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  min-height: 3.5rem;
}
.brand {
  display: flex; align-items: baseline; gap: 0.4rem;
  font: 700 1.1rem/1 var(--sans);
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}
.brand span { font: 400 0.625rem/1 var(--mono); letter-spacing: 0.18em; color: var(--mute); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-phone {
  display: none;   /* mobile: it lives at the foot of the pop-up menu instead */
  align-items: center; justify-content: center;
  min-height: 2.75rem;
  font: 700 0.875rem/1 var(--mono);
  text-decoration: none; white-space: nowrap;
  padding: 0 0.75rem; border: 1px solid var(--line);
  transition: background 0.25s ease, color 0.25s ease;
}
.header-phone:hover, .header-phone:focus-visible { background: var(--ink); color: var(--paper); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; flex: none;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.theme-toggle:hover { background: var(--ink); color: var(--paper); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }

.nav-toggle > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: 1px solid var(--line);
}
.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-toggle[open] > summary { background: var(--ink); color: var(--paper); }
.nav-toggle > summary svg { width: 1.25rem; height: 1.25rem; }
.nav-list {
  position: absolute; left: 0; right: 0;
  margin: 0; padding: 0.5rem var(--pad) 1rem;
  list-style: none; background: var(--paper);
  border-bottom: var(--rule);
}
.nav-list a {
  display: block; padding: 0.75rem 0;
  border-bottom: var(--rule-hair);
  font: 700 0.8rem/1 var(--sans); letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--mute);
}
.nav-list a:hover { color: var(--ink); }

/* Contacts pinned under the menu links, separated from the anchors above. */
.nav-contact:first-of-type { margin-top: 0.5rem; border-top: var(--rule); padding-top: 0.5rem; }
.nav-contact a {
  display: flex; align-items: center; gap: 0.6rem;
  min-height: 2.75rem;
  color: var(--ink); border-bottom: 0;
  font-family: var(--mono); letter-spacing: 0.06em; text-transform: none;
}
.nav-contact svg { width: 1.05rem; height: 1.05rem; flex: none; }

/* --- hero --------------------------------------------------------------- */

.hero { padding: 2.5rem 0 3rem; }
.hero-kicker {
  font: 400 0.75rem/1.4 var(--mono);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute);
  margin-bottom: 1rem;
}
.hero-lead { font-size: 1.125rem; max-width: 42rem; color: var(--body); }
.hero-lead strong { color: var(--ink); border-bottom: 1px solid var(--ink); }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.75rem 0; }

/* AutoCAD command line — the prompt any draughtsman recognises. */
.cmdline {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--line); background: var(--panel);
  padding: 0.7rem 0.9rem; margin: 0 0 1.75rem;
  font: 400 0.8125rem/1.4 var(--mono);
  color: var(--mute);
  overflow: hidden; white-space: nowrap;
}
.cmdline b { color: var(--ink); font-weight: 400; }
.cmdline-rotator {
  display: inline-grid;
  grid-template-areas: "cmd";
  min-width: 0;
}
.cmdline-rotator span {
  grid-area: cmd;
  opacity: 0;
  animation: cmd-cycle 18s linear infinite;
  overflow: hidden; text-overflow: ellipsis;
}
.cmdline-rotator span:nth-child(1) { animation-delay: 0s; }
.cmdline-rotator span:nth-child(2) { animation-delay: 3s; }
.cmdline-rotator span:nth-child(3) { animation-delay: 6s; }
.cmdline-rotator span:nth-child(4) { animation-delay: 9s; }
.cmdline-rotator span:nth-child(5) { animation-delay: 12s; }
.cmdline-rotator span:nth-child(6) { animation-delay: 15s; }
@keyframes cmd-cycle {
  0%      { opacity: 0; }
  1%, 15% { opacity: 1; }
  16.6%, 100% { opacity: 0; }
}
.caret { width: 0.5rem; height: 1rem; background: var(--ink); flex: none; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-proof { display: grid; gap: 0; border: 1px solid var(--line); background: var(--panel); }
.proof-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: var(--rule-hair);
  font-size: 0.9375rem; color: var(--mute);
}
.proof-item:last-child { border-bottom: 0; }
/* The mark is a coloured "A" over a white wordmark. Inverting would turn that
   wordmark black and lose it against the page, so lift the whole thing to white
   instead. object-fit keeps it centred inside its box. */
.proof-item svg { width: 2rem; height: 2rem; flex: none; }
.proof-item img {
  width: 3.25rem; height: 2.5rem; flex: none;
  object-fit: contain; object-position: center;
  align-self: center;
  filter: var(--logo-filter);
}
.proof-score { font: 700 1.25rem/1 var(--mono); color: var(--ink); }
.proof-item a { color: var(--ink); }

/* --- advantages --------------------------------------------------------- */

.grid-cards { display: grid; gap: 0; border-top: var(--rule-hair); }
.card { padding: 1.75rem 0; border-bottom: var(--rule-hair); text-align: center; }
.card svg { width: 2rem; height: 2rem; margin: 0 auto 0.875rem; color: var(--ink); }
.card h3 { margin-bottom: 0.35rem; }
.card p { margin: 0; color: var(--mute); font-size: 0.9375rem; }

.icon { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }

/* --- programs ----------------------------------------------------------- */

.programs { display: grid; gap: 1.5rem; }
.program { border: 1px solid var(--line); background: var(--panel); padding: 1.75rem; }
.program h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
.program-tag {
  display: inline-block; margin-bottom: 0.75rem;
  font: 400 0.6875rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute); border: 1px solid var(--line); padding: 0.35rem 0.6rem;
}
.program p { color: var(--mute); font-size: 0.9375rem; }
.program > p strong { color: var(--ink); }
.program ul { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.program li {
  padding: 0.55rem 0 0.55rem 1.5rem; border-bottom: var(--rule-hair);
  font-size: 0.9375rem; position: relative; color: var(--ink);
}
.program li::before { content: "—"; position: absolute; left: 0; top: 0.55rem; font-family: var(--mono); color: var(--mute); }

/* --- explanation pop-ups ------------------------------------------------ */

/* Native Popover API: the top layer, Esc and click-outside dismissal all come
   free, so this needs no JavaScript. Browsers without support simply never
   show the panel — the list still reads correctly without it. */
.popover {
  position: fixed; inset: 0; margin: auto;
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 1.75rem;
  border: 1px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
}
.popover h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.popover p { color: var(--body); margin-bottom: 1.25rem; }
.popover-tag {
  display: inline-block; margin-bottom: 0.75rem;
  font: 400 0.6875rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute); border: 1px solid var(--line); padding: 0.35rem 0.6rem;
}
.popover-close {
  min-height: 2.75rem; padding: 0 1.25rem;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 700 0.75rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.popover-close:hover { background: transparent; color: var(--ink); }
.popover::backdrop { background: rgba(0, 0, 0, 0.65); }
:root[data-theme="light"] .popover::backdrop { background: rgba(0, 0, 0, 0.35); }

/* Entry/exit transition. allow-discrete lets display and the top layer animate;
   @starting-style gives the opening frame. Unsupported browsers just snap. */
.popover {
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease,
              overlay 0.2s ease allow-discrete, display 0.2s ease allow-discrete;
}
.popover:popover-open { opacity: 1; transform: none; }
@starting-style { .popover:popover-open { opacity: 0; transform: translateY(0.5rem); } }

/* The "?" affordance and the controls that open a pop-up. */
.info-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.05rem; height: 1.05rem; margin-left: 0.45rem;
  border: 1px solid var(--line); color: var(--mute);
  font: 700 0.625rem/1 var(--sans); font-style: normal;
  vertical-align: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.info-trigger {
  display: block; width: 100%;
  padding: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.info-trigger:hover .info-mark,
.info-trigger:focus-visible .info-mark,
.proof-item--info:hover .info-mark { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.proof-item--info {
  border: 0; background: none; color: inherit; font: inherit;
  text-align: left; cursor: pointer; width: 100%;
}

/* --- clients ------------------------------------------------------------ */

/* 1px gap over a --line background paints the grid rules, so there are no
   last-child border resets to keep in sync with the responsive columns. */
.clients {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  margin: 0; padding: 0; list-style: none;
}
.clients li {
  display: flex; align-items: center; justify-content: center;
  min-height: 6.5rem; padding: 1.25rem;
  background: var(--panel);
}
/* Assumes dark artwork on transparency, as most supplied logos are. Drop the
   invert() for a logo that already ships light. */
.clients img {
  height: 2.75rem; width: auto;
  max-width: 100%; object-fit: contain;
  filter: var(--client-filter);
  opacity: 0.7;
  transition: opacity 0.14s linear;
}
.clients li:hover img { opacity: 1; }

.client--empty span {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 3.25rem;
  border: 1px dashed var(--line);
  font: 400 0.625rem/1 var(--mono);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
}

/* --- reviews carousel --------------------------------------------------- */

.carousel {
  --gap: 1rem;
  --cols: 1;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.carousel > * { scroll-snap-align: start; }
.review {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--panel); padding: 1.5rem;
}
.review-stars { font: 400 0.875rem/1 var(--mono); letter-spacing: 0.15em; margin-bottom: 0.75rem; color: var(--ink); }
.review h3 { font-size: 1rem; }
.review blockquote { margin: 0 0 1rem; font-size: 0.9375rem; color: var(--body); }
.review footer {
  margin-top: auto; padding-top: 0.875rem; border-top: var(--rule-hair);
  font: 400 0.75rem/1.5 var(--mono); color: var(--mute);
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between;
}
.review-origin { font-size: 0.6875rem; color: var(--mute); font-family: var(--mono); }
.carousel-controls { display: flex; gap: 0.5rem; margin-top: 1rem; }
.carousel-controls button {
  width: 3rem; height: 3rem; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background 0.14s linear, color 0.14s linear;
}
.carousel-controls button:hover { background: var(--ink); color: var(--paper); }
.carousel-controls svg { width: 1.25rem; height: 1.25rem; margin: 0 auto; }

/* --- FAQ ---------------------------------------------------------------- */

.faq { border-top: var(--rule-hair); }
.faq details { border-bottom: var(--rule-hair); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink); }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--mono); flex: none; color: var(--mute); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: 1.5rem; color: var(--mute); max-width: 52rem; }

/* --- contact ------------------------------------------------------------ */

.contact { display: grid; gap: 1.5rem; }
.contact-panel { border: 1px solid var(--line); background: var(--panel); padding: 1.75rem; }
.contact-aside dl { margin: 0; }
.contact-aside dt {
  font: 400 0.6875rem/1 var(--mono); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 0.4rem;
}
.contact-aside dd {
  margin: 0 0 1.25rem; padding-bottom: 1.25rem; border-bottom: var(--rule-hair);
  font-size: 1.0625rem; font-weight: 700;
}
.contact-aside a { text-decoration: none; border-bottom: 1px solid var(--ink); }

.messengers { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.messenger {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2.75rem; padding: 0 0.85rem;
  border: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font: 700 0.75rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}
.messenger:hover, .messenger:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.messenger svg { width: 1.05rem; height: 1.05rem; flex: none; }

.field { margin-bottom: 1.125rem; }
.field label {
  display: block; margin-bottom: 0.4rem;
  font: 700 0.6875rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  -webkit-appearance: none; appearance: none; border-radius: 0;
  transition: border-color 0.14s linear;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.4rem, calc(100% - 0.75rem) 1.4rem;
  background-size: 0.4rem 0.4rem; background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field-row { display: grid; gap: 1rem; }
.field--trap { position: absolute; left: -9999px; }

.form-note { font-size: 0.8125rem; color: var(--mute); margin: 0.75rem 0 0; }
.form-status { margin-top: 1rem; padding: 0.875rem 1rem; border: 1px solid var(--line); font-size: 0.9375rem; }
.form-status[hidden] { display: none; }
.form-status--ok { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* --- cookie consent ----------------------------------------------------- */

.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
  max-width: 34rem;
  padding: 1.25rem;
  border: 1px solid var(--ink);
  background: var(--panel); color: var(--ink);
  font-size: 0.9375rem;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 1rem; color: var(--body); }
.consent-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.consent-actions .btn { flex: 1 1 8rem; }
.link-button {
  padding: 0; border: 0; background: none; color: inherit; font: inherit;
  text-decoration: underline; cursor: pointer;
}

/* --- footer ------------------------------------------------------------- */

.site-footer { border-top: var(--rule); padding: 2.5rem 0; font-size: 0.9375rem; position: relative; }
.footer-grid { display: grid; gap: 1.5rem; text-align: center; }
.footer-grid a { text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-meta { font-family: var(--mono); font-size: 0.75rem; color: var(--mute); line-height: 1.7; }

/* --- breakpoints -------------------------------------------------------- */

@media (min-width: 48rem) {
  :root { --pad: 2rem; }
  .section { padding: 4.5rem 0; }
  .hero { padding: 4.5rem 0 5rem; }
  .hero-actions { flex-direction: row; }
  .hero-proof { grid-template-columns: repeat(3, 1fr); }
  .proof-item { border-bottom: 0; border-right: var(--rule-hair); }
  .proof-item:last-child { border-right: 0; }
  .card { text-align: left; }
  .card svg { margin-left: 0; }
  .footer-grid { text-align: left; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
  .programs { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .carousel { --cols: 2; }
  .field-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr 1.6fr; align-items: start; }
}

@media (min-width: 72rem) {
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .clients { grid-template-columns: repeat(5, 1fr); }
  .carousel { --cols: 3; }
  .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; flex: none;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.theme-toggle:hover { background: var(--ink); color: var(--paper); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }

.nav-toggle > summary { display: none; }
  .nav-list {
    position: static; display: flex; gap: 1.75rem;
    padding: 0; border: 0; background: none;
  }
  .nav-list a { border: 0; padding: 0; font-size: 0.75rem; }
  /* Same rhythm either side of the last menu item. */
  .header-actions { gap: 1.75rem; }
  .nav-list a:hover { border-bottom: 1px solid var(--ink); }
  .nav-contact { display: none; }
  .header-phone { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* Without the draw animation the dash offset would leave plates invisible. */
  .plate [pathLength] { stroke-dashoffset: 0; }
  .plate .fade { opacity: 1; }
}

@media print {
  .site-header, .carousel-controls, .hero-actions, .plate, body::before { display: none; }
  body { background: #fff; color: #000; }
}
