/* ==========================================================================
   ADK Engineering — "Drawing Set", rev. 04
   The site is built as a drawing sheet, and the set is now bound: each page
   is one sheet rather than one long scroll. The two themes are two ways an
   engineer sees the same drawing — light is paper, dark is model space.

   Colour is information, never decoration. Disciplines keep their codes
   (M mechanical, P plumbing, E electrical) and sectors carry the ADK family
   colours, so the palette is wide without leaving the brand:
   dark blue #122F53, dark silver #212121, green/teal #1A8B8D.

   Everything a visitor can grab is on a spring driven in JS. The transitions
   that remain here are for things no gesture can interrupt: colour, opacity,
   hover.
   ========================================================================== */

/* ---------- tokens: light (default) ---------- */
:root {
  /* Ground and paper. Not neutral grey: the whole page sits on a faint
     teal-cast paper so the brand colour is present even where nothing is
     coloured in. */
  --film:     #F1F6F6;
  --panel:    #FFFFFF;
  --sunk:     #E1EBEA;
  --graphite: #212121;   /* brand: dark silver */
  --ink:      #122F53;   /* brand: dark blue  */
  --soft:     #45596E;
  --faint:    #5C7488;
  --line: rgba(18, 47, 83, .18);
  --hair: rgba(18, 47, 83, .10);

  /* Every accent above is tuned for fills, keys, rules and borders. Used as
     small text on paper, several of them sit under 4.5:1 — so each has an
     -ink twin, darkened only as far as it takes to clear AA. Colour meaning
     is unchanged; only the luminance moves. */
  --brand-ink:   #177A7C;
  --m-ink:       #177A7C;
  --p-ink:       #1E6FC4;
  --e-ink:       #A9550B;
  --amber-ink:   #A9550B;
  --agro-ink:    #1A7A46;
  --consult-ink: #1272AA;
  --steel-ink:   #4A6E8A;
  --redline-ink: #C0392B;

  /* Brand */
  --brand:    #1A8B8D;   /* brand: green/teal */
  --brand-in: #FFFFFF;   /* text on brand     */
  --navy:     #122F53;

  /* The rest of the ADK family, used to colour-code sectors and accents.
     They are the sister companies' identity colours, so the palette widens
     without leaving the group. */
  --agro:  #2FBF71;
  --consult: #1E9AE0;
  --amber: #C2610C;

  /* Disciplines. Still information, not decoration — but now drawn from the
     brand rather than from a generic CAD palette. */
  --m: #1A8B8D;   /* mechanical  — HVAC, ventilation */
  --p: #1E6FC4;   /* plumbing    — water, drainage   */
  --e: #C2610C;   /* electrical  — power, lighting   */
  --redline: #C0392B;

  --tint: 0;      /* photo desaturation switch */

  /* Materials. Structural chrome is the heavier of the two; the sheet that
     floats above the page is lighter, and never sits on top of another
     translucent surface. */
  --mat-chrome: rgba(241, 246, 246, .76);
  --mat-sheet:  rgba(255, 255, 255, .88);
  --mat-blur:   18px;
  --scrim:      rgba(18, 47, 83, .38);
  --edge-hi:    rgba(255, 255, 255, .65);

  --display: 'Archivo', 'Noto Sans Georgian', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: clamp(18px, 4.2vw, 56px);
  --sec: clamp(72px, 10vw, 136px);
  --maxw: 1360px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hdr: 64px;
}

/* ---------- tokens: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --film: #0A1B2E;  --panel: #102A45; --sunk: #06121F;
    --graphite: #C8D3DA; --ink: #EAF3F5; --soft: #9CB2C4; --faint: #7E93A6;
    --brand-ink: #2FC0C3; --m-ink: #2FC0C3; --p-ink: #62A8F5;
    --e-ink: #F2A03D; --amber-ink: #F2A03D; --agro-ink: #45D389;
    --consult-ink: #58B6F0; --steel-ink: #8FB3CE; --redline-ink: #FF7A66;
    --line: rgba(160, 195, 210, .22); --hair: rgba(160, 195, 210, .11);
    --brand: #2FC0C3; --brand-in: #05242B; --navy: #A9C6E8;
    --agro: #45D389; --consult: #58B6F0; --amber: #F2A03D;
    --m: #2FC0C3; --p: #62A8F5; --e: #F2A03D; --redline: #FF7A66;
    --tint: 1;
    --mat-chrome: rgba(10, 27, 46, .74);
    --mat-sheet:  rgba(16, 42, 69, .90);
    --scrim:      rgba(0, 0, 0, .56);
    --edge-hi:    rgba(255, 255, 255, .10);
  }
}
:root[data-theme="dark"] {
  --film: #0A1B2E;  --panel: #102A45; --sunk: #06121F;
  --graphite: #C8D3DA; --ink: #EAF3F5; --soft: #9CB2C4; --faint: #7E93A6;
  --brand-ink: #2FC0C3; --m-ink: #2FC0C3; --p-ink: #62A8F5;
  --e-ink: #F2A03D; --amber-ink: #F2A03D; --agro-ink: #45D389;
  --consult-ink: #58B6F0; --steel-ink: #8FB3CE; --redline-ink: #FF7A66;
  --line: rgba(160, 195, 210, .22); --hair: rgba(160, 195, 210, .11);
  --brand: #2FC0C3; --brand-in: #05242B; --navy: #A9C6E8;
  --agro: #45D389; --consult: #58B6F0; --amber: #F2A03D;
  --m: #2FC0C3; --p: #62A8F5; --e: #F2A03D; --redline: #FF7A66;
  --tint: 1;
  --mat-chrome: rgba(10, 27, 46, .74);
  --mat-sheet:  rgba(16, 42, 69, .90);
  --scrim:      rgba(0, 0, 0, .56);
  --edge-hi:    rgba(255, 255, 255, .10);
}
:root[data-theme="light"] {
  --film: #F1F6F6;  --panel: #FFFFFF; --sunk: #E1EBEA;
  --graphite: #212121; --ink: #122F53; --soft: #45596E; --faint: #5C7488;
  --brand-ink: #177A7C; --m-ink: #177A7C; --p-ink: #1E6FC4;
  --e-ink: #A9550B; --amber-ink: #A9550B; --agro-ink: #1A7A46;
  --consult-ink: #1272AA; --steel-ink: #4A6E8A; --redline-ink: #C0392B;
  --line: rgba(18, 47, 83, .18); --hair: rgba(18, 47, 83, .10);
  --brand: #1A8B8D; --brand-in: #FFFFFF; --navy: #122F53;
  --agro: #2FBF71; --consult: #1E9AE0; --amber: #C2610C;
  --m: #1A8B8D; --p: #1E6FC4; --e: #C2610C; --redline: #C0392B;
  --tint: 0;
  --mat-chrome: rgba(241, 246, 246, .76);
  --mat-sheet:  rgba(255, 255, 255, .88);
  --scrim:      rgba(18, 47, 83, .38);
  --edge-hi:    rgba(255, 255, 255, .65);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

/* The `hidden` attribute is a UA-stylesheet rule, so *any* author rule that
   sets `display` on the same element silently beats it. That is not a corner
   case here: the project cards are `display: flex`, so the register's filters
   set `hidden` on 39 of 47 cards and hid none of them — the count said 8 of
   47 while all 47 stayed on the page. Restate it as an author rule so the
   attribute means what it says wherever it is used. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--film);
  color: var(--soft);
  font-family: var(--display);
  /* Everything is sized in rem so the whole layout scales with the reader's
     own text-size setting instead of breaking around it. */
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.1; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, figcaption { margin: 0; }   /* UA default is margin: 1em 40px */
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--film); }
:focus-visible { outline: 2px solid var(--e); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  padding: 10px 18px; background: var(--ink); color: var(--film);
  font-family: var(--mono); font-size: .8rem; transition: top .2s;
}
.skip:focus { top: 12px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The logo sprite is <defs> only, so it paints nothing — but an <svg> with no
   intrinsic size still claims the SVG default 300x150 box, which was pushing
   the whole page down by a phantom band above the header. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Theme change is a large brightness shift across the whole viewport, so it
   is eased rather than cut. The class is only present for the half second
   around the switch, so it costs nothing on any other repaint. */
.is-theming body, .is-theming .sec, .is-theming .hdr, .is-theming .ent,
.is-theming .mnav__panel, .is-theming .about__stamp,
.is-theming .tree__top {
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}

/* --------------------------------------------------------------------------
   Type
   Tracking is a function of size, never one value for the whole face: large
   display text needs negative tracking or the letters drift apart as they
   grow, and small annotation needs positive tracking to stay legible. Each
   context below sets its own --track rather than inheriting a compromise.
   Leading moves the opposite way — tight on the big sizes, open on body copy.
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: var(--track, -.02em);
  line-height: 1.04;
  text-wrap: balance;
  font-optical-sizing: auto;
}
:lang(ka) .display { font-stretch: normal; letter-spacing: calc(var(--track, -.02em) * .2); line-height: 1.2; }

/* Mono is the drawing-annotation voice: codes, dimensions, labels. Small and
   uppercase, so it takes positive tracking. */
.mono, .tag, .stage__no, .ent__no, .proj__code, .fact dt, .f > span,
.form__note, .ftr__nav a, .hdr__nav a, .tool, .legend .cd {
  font-family: var(--mono);
  letter-spacing: .12em;
}
:lang(ka) .mono, :lang(ka) .tag, :lang(ka) .ent__no, :lang(ka) .fact dt,
:lang(ka) .f > span, :lang(ka) .hdr__nav a, :lang(ka) .tool {
  letter-spacing: .03em; text-transform: none;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* --------------------------------------------------------------------------
   Press feedback
   Applied on pointer-down, not on click: the instant a finger lands, the
   thing under it has to acknowledge. Waiting for the release reads as lag
   even when nothing is actually slow.
   -------------------------------------------------------------------------- */
.btn, .tool, .burger, .legend button, .socs a, .where, .fbtn, .mnav a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;   /* no 300ms wait for a double-tap that does not exist */
  /* The resting transition is the *release*: the control eases back over a
     longer, softer curve once the finger lifts. */
  transition: transform 260ms var(--ease), border-color .25s, color .25s, background .25s;
}
/* The press itself is deliberately much faster, and it must come after the
   rule above — both are single-class selectors, so source order is what
   decides which duration applies, and 260ms to go down is the exact lag that
   makes a control feel dead under the finger. */
.is-press { transform: scale(.972); transition: transform 90ms ease-out; }
.mnav a.is-press { transform: scale(.985); }

/* ==========================================================================
   Header — a floating material, not an opaque strip
   ========================================================================== */

.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 150;
  height: var(--hdr);
  display: flex;
  align-items: center;
  background: var(--mat-chrome);
  backdrop-filter: blur(var(--mat-blur)) saturate(170%);
  -webkit-backdrop-filter: blur(var(--mat-blur)) saturate(170%);
}

/* A scroll edge rather than a rule: the separation only appears where
   content actually passes under the chrome, and it is a short fade rather
   than a hard line drawn across the page at all times. */
.hdr::after {
  content: '';
  position: absolute; inset-inline: 0; top: 100%;
  height: 22px;
  background: linear-gradient(var(--mat-chrome), transparent);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.hdr.is-over::after { opacity: 1; }

.hdr__in {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gut);
  display: flex; align-items: center; gap: 16px;
}

/* Text over a translucent surface needs a little more weight and contrast
   than text over a solid one, or it dissolves into whatever scrolls beneath. */
.hdr__nav a, .tool { font-weight: 500; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand svg { width: 104px; height: auto; }

.hdr__nav { margin-inline-start: auto; display: none; }
@media (min-width: 1024px) { .hdr__nav { display: block; } }
.hdr__nav ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.hdr__nav a {
  position: relative;
  font-size: .7rem;
  text-transform: uppercase;
  color: var(--soft); white-space: nowrap;
  padding-block: 6px;
}
:lang(ka) .hdr__nav a { font-size: .82rem; }
.hdr__nav a:hover, .hdr__nav a[aria-current] { color: var(--ink); }
.hdr__nav a[aria-current]::before {
  content: ''; position: absolute; left: -11px; top: 50%; translate: 0 -50%;
  width: 4px; height: 4px; background: var(--e);
}

.tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 1024px) { .tools { margin-inline-start: 26px; } }

.tool {
  height: 32px; padding: 0 11px;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: transparent;
  font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--soft);
  cursor: pointer;
}
.tool:hover { border-color: var(--ink); color: var(--ink); }

/* Theme toggle — the icon and label show the mode you are currently in.
   Driven entirely by CSS across all three states (explicit light, explicit
   dark, and no choice yet = follow the OS), so the correct one is painted
   on the first frame and never flashes the wrong icon before JS runs. */
.tool__ico, .tool__lbl { display: none; }
.tool__sun, .tool__lbl--light { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tool__sun,
  :root:not([data-theme="light"]) .tool__lbl--light { display: none; }
  :root:not([data-theme="light"]) .tool__moon,
  :root:not([data-theme="light"]) .tool__lbl--dark { display: block; }
}
:root[data-theme="dark"] .tool__sun,
:root[data-theme="dark"] .tool__lbl--light { display: none; }
:root[data-theme="dark"] .tool__moon,
:root[data-theme="dark"] .tool__lbl--dark { display: block; }

:root[data-theme="light"] .tool__sun,
:root[data-theme="light"] .tool__lbl--light { display: block; }
:root[data-theme="light"] .tool__moon,
:root[data-theme="light"] .tool__lbl--dark { display: none; }

.tool--theme .tool__ico { transition: rotate .45s var(--ease); }
.tool--theme:hover .tool__sun { rotate: 35deg; }
.tool--theme:hover .tool__moon { rotate: -18deg; }

/* The language switch reads as one button, so all of it has to behave like
   one. The link used to be the bare text "EN" — a 14x17px target inside an
   84x32px control, so nine tenths of what looks pressable did nothing, and it
   sat well under the 24x24 minimum for a touch target. Both halves are now
   full-height segments that carry their own padding: the inactive language is
   a link across its whole half, the current one is inert and marked as such. */
.lang { padding: 0; gap: 0; }
.lang a,
.lang > span[aria-current] {
  display: inline-flex; align-items: center; align-self: stretch;
  padding-inline: 11px;
}
.lang a { color: var(--faint); transition: color .2s; }
.lang a:hover { color: var(--ink); }
.lang > span[aria-current] { color: var(--ink); cursor: default; }
.lang i { font-style: normal; opacity: .4; }

/* The control is a link plus a label, not a control in its own right, so the
   ring belongs on the half that actually takes focus. */
.lang:focus-within { border-color: var(--ink); }
.lang a:focus-visible { outline-offset: -2px; }

.burger {
  width: 40px; height: 32px; padding: 0;
  border: 1px solid var(--line); background: transparent;
  position: relative; cursor: pointer; color: var(--ink);
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger i {
  position: absolute; left: 11px; width: 16px; height: 1.5px;
  background: currentColor; transition: transform .3s var(--ease), opacity .2s;
}
.burger i:nth-child(1) { top: 12px; }
.burger i:nth-child(2) { top: 18px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ==========================================================================
   Mobile navigation — a sheet from the bottom edge
   It is not anchored to the burger: a sheet that grows out of a 40px button
   in the top corner is a worse target and a worse dismiss gesture on a phone
   than one that meets the thumb. What it does keep is a symmetric path — it
   arrives from the bottom and it leaves the same way.
   The panel's position is written by JS every frame while it is being
   dragged, so nothing here may transition `transform`.
   ========================================================================== */

.mnav {
  position: fixed; inset: 0; z-index: 160;
  visibility: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.mnav.is-vis { visibility: visible; }
@media (min-width: 1024px) { .mnav { display: none; } }

/* Dimming the page behind a modal task is what tells the visitor the rest is
   paused. It is the scrim, not the blur, that does that work. */
.mnav__scrim {
  position: absolute; inset: 0;
  background: var(--scrim);
  opacity: 0;
}

.mnav__panel {
  position: relative;
  padding: 8px var(--gut) max(28px, env(safe-area-inset-bottom));
  background: var(--mat-sheet);
  backdrop-filter: blur(calc(var(--mat-blur) * 1.4)) saturate(160%);
  -webkit-backdrop-filter: blur(calc(var(--mat-blur) * 1.4)) saturate(160%);
  border-top: 1px solid var(--edge-hi);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, .28);
  will-change: transform;
  /* A big surface should read as a thick one, so the blur builds up as it
     arrives instead of the whole pane simply fading in. --mat is written by
     JS and runs 0 -> 1 across the open. */
  filter: blur(calc((1 - var(--mat, 1)) * 6px));
  touch-action: none;
}

/* The panel takes focus when it opens so a screen reader follows it there.
   It is a container, not a control, so it does not draw a ring for it. */
.mnav__panel:focus { outline: none; }

.mnav__grip { padding: 10px 0 6px; cursor: grab; }
.mnav__grip::before {
  content: ''; display: block; width: 42px; height: 4px; margin-inline: auto;
  border-radius: 2px; background: var(--line);
}
.mnav ol { counter-reset: mn; display: grid; gap: 2px; }
.mnav a {
  display: flex; align-items: baseline; gap: 16px;
  padding-block: 15px; border-bottom: 1px solid var(--hair);
  color: var(--ink); font-size: 1.45rem; font-weight: 600; font-stretch: 112%;
  letter-spacing: -.012em;
}
.mnav li:last-child a { border-bottom: 0; }
.mnav a::before {
  counter-increment: mn; content: counter(mn, decimal-leading-zero);
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  color: var(--faint); letter-spacing: .1em;
}
:lang(ka) .mnav a { font-stretch: normal; font-size: 1.25rem; letter-spacing: 0; }

/* ==========================================================================
   Section scaffolding — every section is a numbered sheet
   ========================================================================== */

.sec { padding-block: var(--sec); position: relative; }
.sec--panel { background: var(--panel); }

.sec__head { margin-bottom: clamp(38px, 5vw, 72px); }

.tag {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
:lang(ka) .tag { letter-spacing: .05em; }
.tag b { color: var(--ink); font-weight: 500; }
.tag::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.sec__title { --track: -.024em; font-size: clamp(1.85rem, 5.4vw, 3.6rem); max-width: 19ch; }
:lang(ka) .sec__title { font-size: clamp(1.5rem, 4vw, 2.6rem); max-width: 24ch; }

.sec__lede { margin-top: 20px; max-width: 56ch; font-size: clamp(1rem, 1.25vw, 1.1rem); }

@media (min-width: 900px) {
  .sec__head--split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; }
  .sec__head--split .sec__lede { margin-top: 0; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero { padding-top: calc(var(--hdr) + 22px); padding-bottom: var(--sec); position: relative; }

.hero__grid { display: grid; gap: 36px; }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; }
}

.hero h1 { --track: -.03em; font-size: clamp(2.1rem, 7.6vw, 3.4rem); max-width: 15ch; }
@media (min-width: 1000px) { .hero h1 { font-size: clamp(2.4rem, 3.5vw, 4rem); } }
:lang(ka) .hero h1 { font-size: clamp(1.6rem, 5vw, 2.9rem); max-width: 19ch; }

.hero__sub { margin-top: 22px; max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.14rem); }

.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Buttons drawn like drawing-sheet stamps: square, hairline, no radius */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--film);
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
}
:lang(ka) .btn { text-transform: none; letter-spacing: .03em; font-size: .84rem; }
.btn:hover { background: transparent; color: var(--ink); }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); background: var(--ink); color: var(--film); }

/* --------------------------------------------------------------------------
   The drawing
   -------------------------------------------------------------------------- */
.hero__draw { position: relative; }

.iso {
  width: 100%; height: auto; overflow: visible;
  cursor: grab;
  /* The horizontal axis belongs to the drawing; the vertical axis stays with
     the page, so a scroll that begins on the drawing still scrolls. */
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.iso.is-held { cursor: grabbing; }
.iso:focus-visible { outline: 2px solid var(--e); outline-offset: 6px; }
/* Cap by height so a tall drawing cannot stretch the hero past one screen.
   The viewbox is fixed and taller than it is wide, so on a phone the width
   alone would make it about half the viewport high. */
.iso { max-height: 46vh; }
@media (min-width: 1000px) {
  .iso { max-height: min(52vh, 470px); width: auto; margin-inline: auto; }
}

.iso__slab, .iso__edge { fill: none; stroke: var(--graphite); stroke-width: 1; opacity: .3; }
.iso__run  { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.iso__part { stroke-width: 1.4; fill: currentColor; fill-opacity: .13; }
.iso__part--side { fill-opacity: .07; }

/* Terminals were filled with the page ground, which made them opaque — the one
   thing in the drawing that was. An isometric has no depth, so an opaque shape
   punches a hole in whatever it happens to cross: the two lower systems'
   terminals were cutting white diamonds out of mechanical's rooftop plant unit.
   Everything in this drawing is now open or tinted, which is what lets it stay
   correct at any rotation without a painter's algorithm. */
.iso__term { stroke-width: 1.3; fill: currentColor; fill-opacity: .12; }

.iso [data-sys] .iso__run,
.iso [data-sys] .iso__part,
.iso [data-sys] .iso__term { stroke: currentColor; }
/* Plant units are written after every run so they are never drawn through.
   They carry their system's colour the same way the system groups do. */
.iso__plant { color: inherit; }
.iso [data-sys="m"] { color: var(--m); }
.iso [data-sys="p"] { color: var(--p); }
.iso [data-sys="e"] { color: var(--e); }
.iso [data-sys="p"] .iso__run { stroke-width: 2.3; }

/* Terminals are noise on a small screen — keep the mains only */
@media (max-width: 640px) { .iso__term { display: none; } }

/* systems dim until their legend row is active */
.iso [data-sys] { transition: opacity .45s var(--ease); }
.hero__draw.is-focused .iso [data-sys] { opacity: .14; }
.hero__draw.is-focused .iso [data-sys].is-lit { opacity: 1; }

/* draw-on. Every stroke carries pathLength="1", so one dash covers the whole
   run whatever its real length — no measuring, and still correct if the
   geometry is re-projected while the reveal is running. */
.iso__run, .iso__edge { stroke-dasharray: 1; stroke-dashoffset: 1; }
.iso.is-drawn .iso__edge { animation: draw 1.1s var(--ease) forwards; }
.iso.is-drawn .iso__run  { animation: draw .9s var(--ease) forwards; animation-delay: var(--d, .45s); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.iso__term, .iso__part { opacity: 0; }
.iso.is-drawn .iso__term, .iso.is-drawn .iso__part {
  animation: pop .5s var(--ease) forwards; animation-delay: var(--d, 1.5s);
}
@keyframes pop { to { opacity: 1; } }

/* Staggered by nth-child rather than by a per-element inline delay written
   from JS: the drawing must reveal itself identically whether or not the
   script ever runs. */
.iso__sys:nth-of-type(2) .iso__run { --d: .62s; }
.iso__sys:nth-of-type(3) .iso__run { --d: .8s; }
.iso__sys:nth-of-type(2) .iso__term, .iso__sys:nth-of-type(2) .iso__part { --d: 1.66s; }
.iso__sys:nth-of-type(3) .iso__term, .iso__sys:nth-of-type(3) .iso__part { --d: 1.82s; }
/* The plant units are their own groups now, so they land together, last. */
.iso__plant .iso__part { --d: 1.9s; }

/* Live: the reveal is over and the geometry is under the visitor's control.
   The dash pattern goes back to real units so the electrical run can be
   dashed the way a drawing would dash it. */
.iso.is-live .iso__run, .iso.is-live .iso__edge {
  animation: none; stroke-dasharray: none; stroke-dashoffset: 0;
}
.iso.is-live [data-sys="e"] .iso__run { stroke-dasharray: 7 4.5; }
.iso.is-live .iso__term, .iso.is-live .iso__part { animation: none; opacity: 1; }

/* --- controls for the drawing ---------------------------------------- */
.iso__bar {
  margin-top: 6px; min-height: 30px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.iso__hint {
  margin: 0 auto 0 0;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
:lang(ka) .iso__hint { text-transform: none; letter-spacing: .02em; font-size: .68rem; }


/* --- legend: the key to the drawing, and the filter for it --- */
.legend { margin-top: 10px; border-top: 1px solid var(--line); }
.legend li { border-bottom: 1px solid var(--hair); }
.legend button {
  width: 100%; padding: 13px 0; border: 0; background: none; cursor: pointer;
  display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; align-items: center;
  text-align: start;
}
.legend .key { width: 26px; height: 0; border-top-width: 3px; border-top-style: solid; }
.legend li[data-sys="m"] .key { border-color: var(--m); }
.legend li[data-sys="p"] .key { border-color: var(--p); border-top-width: 2px; }
.legend li[data-sys="e"] .key { border-color: var(--e); border-top-style: dashed; }
.legend .nm { color: var(--ink); font-size: .95rem; font-weight: 500; letter-spacing: -.004em; }
.legend .cd { font-size: .66rem; letter-spacing: .12em; color: var(--faint); }
:lang(ka) .legend .cd { letter-spacing: .02em; font-size: .74rem; }
.legend button:hover .nm { color: var(--e); }
.legend li.is-active .nm { color: var(--e); }
.legend li.is-active { border-bottom-color: var(--e); }

/* ==========================================================================
   NOTES (about)
   ========================================================================== */

.notes { display: grid; gap: 30px; }
@media (min-width: 860px) { .notes { grid-template-columns: repeat(2, 1fr); gap: 46px; } }

.note { padding-top: 20px; border-top: 1px solid var(--line); }
.note h3 {
  margin-bottom: 12px; font-size: 1.12rem; font-weight: 600; letter-spacing: -.006em;
  display: flex; align-items: baseline; gap: 12px;
}
.note h3 span { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; color: var(--faint); font-weight: 500; }

.about__media { margin-top: clamp(40px, 6vw, 70px); position: relative; }
/* The source is 16:9. On a phone, show it at its own ratio so nothing is
   cropped or scaled up; take the wider cinematic crop only where there is
   enough width for it to read. */
.about__media img {
  /* height:auto is required — the width/height attributes make both dimensions
     definite, and aspect-ratio is ignored unless one of them is auto. */
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  filter: grayscale(calc(1 - var(--tint) * .15)) contrast(1.04) brightness(calc(1 - var(--tint) * .18));
}
@media (min-width: 860px) { .about__media img { aspect-ratio: 21 / 9; } }
/* On a phone the stamp would sit across people's faces, so it drops below
   the image and only becomes an overlay once there is room beside them. */
.about__stamp {
  margin-top: -1px;
  padding: 10px 13px; background: var(--film); border: 1px solid var(--line);
  font-family: var(--mono); font-size: .58rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--soft);
}
@media (min-width: 700px) {
  .about__stamp {
    position: absolute; inset-inline-end: 14px; bottom: 14px; margin-top: 0;
    padding: 9px 13px; font-size: .62rem; letter-spacing: .1em;
  }
}
:lang(ka) .about__stamp { text-transform: none; letter-spacing: .03em; }

/* ==========================================================================
   FLOW — the four stages drawn as the sequence they actually are

   Wide screens only. Stacked into a single column it stops being a diagram:
   four labels above four identical labels, saying nothing the list below does
   not already say and costing a screen of scrolling to do it. It is marked
   aria-hidden precisely because it is a second view of that list, so dropping
   it takes nothing with it.
   ========================================================================== */

.flow { display: none; }

@media (min-width: 760px) {
  .flow {
    display: grid; gap: 0;
    grid-auto-flow: column; grid-auto-columns: 1fr;
    margin-bottom: clamp(30px, 4vw, 52px);
  }

  .flow li { position: relative; padding: 26px 18px 0 0; }

  /* the node */
  .flow li::before {
    content: '';
    position: absolute; left: 0; top: 0;
    width: 11px; height: 11px;
    border: 1.5px solid var(--line); background: var(--film);
    rotate: 45deg;
    transition: border-color .3s var(--ease), background .3s var(--ease), scale .3s var(--ease);
  }

  /* the run between nodes */
  .flow li::after {
    content: '';
    position: absolute; left: 16px; right: 0; top: 5px; height: 1.5px;
    background: var(--line);
    transform: scaleX(0); transform-origin: left;
    transition: transform .55s var(--ease) var(--d, 0s);
  }
  .flow li:last-child::after { display: none; }
  .flow.is-drawn li::after { transform: none; }
  .flow li:nth-child(2) { --d: .12s; }
  .flow li:nth-child(3) { --d: .24s; }
  .flow li:nth-child(4) { --d: .36s; }
}

.flow__no { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; color: var(--faint); }
.flow__nm { display: block; margin-top: 3px; color: var(--ink); font-size: .88rem; font-weight: 600; letter-spacing: -.004em; }
:lang(ka) .flow__nm { font-size: .92rem; letter-spacing: 0; }

/* Hovering either the stage row or its node lights both, so the mapping
   between the diagram and the list is never in doubt. */
.flow li.is-lit::before { border-color: var(--e); background: var(--e); scale: 1.25; }
.flow li.is-lit .flow__nm { color: var(--e); }

/* ==========================================================================
   STAGES (services) — a real sequence, so it is numbered
   ========================================================================== */

.stages { border-top: 1px solid var(--line); }

.stage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  padding-block: 26px;
  border-bottom: 1px solid var(--hair);
  position: relative;
}
@media (min-width: 900px) {
  .stage { grid-template-columns: 90px minmax(0, 1.05fr) minmax(0, 1.4fr); gap: 30px; align-items: start; padding-block: 32px; }
}

.stage__no { font-size: .68rem; font-weight: 500; letter-spacing: .12em; color: var(--faint); padding-top: 6px; }
.stage h3 { --track: -.012em; font-size: clamp(1.25rem, 2.4vw, 1.85rem); font-weight: 600; font-stretch: 108%; letter-spacing: var(--track); }
:lang(ka) .stage h3 { font-stretch: normal; font-size: clamp(1.1rem, 2vw, 1.45rem); letter-spacing: 0; }
.stage p { grid-column: 1 / -1; max-width: 62ch; }
@media (min-width: 900px) { .stage p { grid-column: 3; margin: 0; padding-top: 4px; } }

.stage::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
  background: var(--ink); transition: width .5s var(--ease);
}
.stage:hover::after, .stage.is-lit::after { width: 100%; }

/* ==========================================================================
   TREE — the group drawn as the structure it is

   Only where the two entity cards sit side by side. Once they stack there is
   no branch to draw: the bar and the legs have nothing to point at, and what
   is left is a box on a stick above a card that already says ADK Engineering.
   Same reasoning as the flow above — it is aria-hidden, so nothing is lost.
   ========================================================================== */

.tree { display: none; }

@media (min-width: 860px) {
  .tree { display: block; margin-bottom: 0; text-align: center; }

  .tree__top {
    display: inline-grid; gap: 3px; justify-items: center;
    padding: 14px 26px;
    border: 1px solid var(--ink); background: var(--film);
  }
  .tree__k { font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
  :lang(ka) .tree__k { text-transform: none; letter-spacing: .03em; font-size: .68rem; }
  .tree__top b { color: var(--ink); font-size: 1.05rem; font-weight: 600; letter-spacing: -.008em; }

  .tree__link { position: relative; height: 46px; }
  .tree__link i { position: absolute; background: var(--line); display: block; }
  .tree__stem { left: 50%; top: 0; width: 1px; height: 22px; transform: scaleY(0); transform-origin: top; }
  .tree__bar  { left: 25%; right: 25%; top: 22px; height: 1px; transform: scaleX(0); }
  .tree__leg  { top: 22px; width: 1px; height: 24px; transform: scaleY(0); transform-origin: top; }
  .tree__leg--l { left: 25%; }
  .tree__leg--r { right: 25%; }

  /* draws itself in the order it would be drawn by hand: down, across, down */
  .tree__link i { transition: transform .5s var(--ease); }
  .tree.is-drawn .tree__stem { transform: none; }
  .tree.is-drawn .tree__bar  { transform: none; transition-delay: .3s; }
  .tree.is-drawn .tree__leg  { transform: none; transition-delay: .5s; }
}

/* ==========================================================================
   ENTITIES (companies)
   ========================================================================== */

.ents { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .ents { grid-template-columns: repeat(2, 1fr); } }

.ent {
  background: var(--film);
  padding: clamp(26px, 3.4vw, 42px);
  display: flex; flex-direction: column;
  transition: background .3s var(--ease);
}
.ent:hover { background: var(--panel); }
.ent__no { font-size: .64rem; letter-spacing: .12em; color: var(--faint); }
.ent h3 { --track: -.018em; margin: 22px 0 14px; font-size: clamp(1.5rem, 3vw, 2.1rem); font-stretch: 112%; }
:lang(ka) .ent h3 { font-stretch: normal; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.ent__tags { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 6px; }
.ent__tags span {
  padding: 5px 10px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .07em; color: var(--soft);
}

/* ==========================================================================
   PROJECTS — photos printed in their discipline's ink, over its schematic
   ========================================================================== */

.projs { display: grid; gap: 22px; }
@media (min-width: 720px) { .projs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .projs { grid-template-columns: repeat(3, 1fr); } }

.proj { position: relative; }
.proj__fig { position: relative; overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--sunk); }
.proj__fig img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(calc(1 - var(--tint) * .25));
  transition: transform 1s var(--ease), filter .5s var(--ease);
}
.proj:hover .proj__fig img { transform: scale(1.045); }

/* discipline ink wash */
.proj__fig::after {
  content: ''; position: absolute; inset: 0;
  background: currentColor; mix-blend-mode: multiply; opacity: .58;
  transition: opacity .5s var(--ease);
}
.proj:hover .proj__fig::after { opacity: .34; }

.proj[data-sys="m"] { color: var(--m); }
.proj[data-sys="p"] { color: var(--p); }
.proj[data-sys="e"] { color: var(--e); }

.proj__bar {
  margin-top: 12px; padding-top: 11px;
  border-top: 2px solid currentColor;
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
}
.proj__bar h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.006em; }
.proj__code { font-size: .64rem; letter-spacing: .12em; color: currentColor; }

/* A one-line schematic of what the photograph is actually of: source, run,
   terminal. Same three symbols in all three cards, so the difference between
   the disciplines is the thing you read. */
.schem { margin-top: 10px; width: 100%; height: auto; color: currentColor; opacity: .8; }
.schem [stroke] { stroke: currentColor; }
.schem [fill]:not([fill="none"]) { fill: currentColor; }
.schem .schem__run { stroke-width: 1.6; fill: none; }
.proj[data-sys="e"] .schem__run { stroke-dasharray: 5 3.5; }
.proj[data-sys="p"] .schem__run { stroke-width: 1.2; }

/* ==========================================================================
   CONTACT — laid out as the title block of a drawing
   ========================================================================== */

.contact { display: grid; gap: 46px; }
@media (min-width: 980px) { .contact { grid-template-columns: .88fr 1.12fr; gap: 70px; align-items: start; } }

.facts {
  display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (min-width: 460px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { background: var(--film); padding: 14px 16px; display: grid; gap: 5px; }
/* The address is the widest cell, so it takes the full row rather than
   forcing the other three to line-break around it. */
.fact--wide { grid-column: 1 / -1; }
.fact dt { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.fact dd { margin: 0; color: var(--ink); font-size: .98rem; line-height: 1.45; }
.fact dd a { border-bottom: 1px solid var(--hair); transition: border-color .25s, color .25s; }
.fact dd a:hover { color: var(--e); border-bottom-color: var(--e); }

.socs { margin-top: 26px; display: flex; gap: 8px; }
.socs a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--soft);
}
.socs a:hover { border-color: var(--ink); background: var(--ink); color: var(--film); }

/* Form — fields as drawing schedule rows */
.form { border-top: 1px solid var(--ink); }
.f { display: grid; border-bottom: 1px solid var(--hair); }
@media (min-width: 620px) { .f { grid-template-columns: 130px 1fr; align-items: baseline; } }
.f > span {
  padding: 15px 0 4px;
  font-size: .63rem;
  text-transform: uppercase; color: var(--faint);
}
.f > span i { color: var(--redline); font-style: normal; }
.f input, .f textarea {
  width: 100%; padding: 8px 0 15px;
  border: 0; background: transparent; color: var(--ink);
  font-size: 1rem; font-family: var(--display);
}
@media (min-width: 620px) { .f input, .f textarea { padding-top: 15px; } }
.f textarea { min-height: 96px; resize: vertical; }
.f input::placeholder, .f textarea::placeholder { color: var(--faint); opacity: .75; }
.f input:focus, .f textarea:focus { outline: none; }
.f:focus-within { border-bottom-color: var(--e); }
.f:focus-within > span { color: var(--e); }

/* Inline validation. The message belongs to the field it is about and only
   appears once that field has been left, so a form in progress is never
   marked wrong for being incomplete. */
.f__err {
  grid-column: 1 / -1;
  margin: 0 0 10px; padding: 0;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .04em; color: var(--redline);
  min-height: 0;
}
.f__err:empty { display: none; }
.f.is-bad { border-bottom-color: var(--redline); }
.f.is-bad > span { color: var(--redline); }

.form__foot { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form__note { font-size: .64rem; letter-spacing: .06em; color: var(--faint); }
.form__msg { margin-top: 16px; padding: 13px 16px; border: 1px solid var(--line); font-size: .92rem; display: none; }
.form__msg.on { display: block; }
.form__msg[data-t="ok"] { border-color: var(--m); color: var(--m); }
.form__msg[data-t="err"] { border-color: var(--redline); color: var(--redline); }

.where {
  margin-top: 22px; padding: 17px 20px;
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
}
.where:hover { border-color: var(--ink); background: var(--panel); }
.where > span { flex: 1; }
.where b { display: block; color: var(--ink); font-weight: 600; font-size: .98rem; letter-spacing: -.004em; }
/* inner span only — the wrapper must keep the display face */
.where span span { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; color: var(--faint); }
.where svg:last-child { margin-inline-start: auto; color: var(--faint); transition: transform .3s var(--ease); }
.where:hover svg:last-child { transform: translate(3px, -3px); color: var(--ink); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.ftr { padding-block: 40px 30px; border-top: 1px solid var(--line); }
.ftr__law {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hair);
  display: grid; gap: 8px;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; color: var(--faint); line-height: 1.75;
}
@media (min-width: 800px) {
  .ftr__law { grid-template-columns: 1fr auto; gap: 8px 30px; }
  .ftr__credit { grid-column: 1 / -1; }
}

.ftr__law a { text-decoration: underline; text-underline-offset: 2px; }
.ftr__law a:hover { color: var(--ink); }
/* Designed by Dags Web — styled as part of the footer, not a badge. */
.ftr__credit { margin: 0; }
.ftr__credit a {
  display: inline-flex; align-items: center; gap: .45em;
  text-decoration: none; color: inherit;
  transition: color .25s var(--ease);
}
.ftr__credit a:hover { color: #2FC0C3; }
.dags-mark { height: 13px; width: auto; flex: none; }
.ftr__credit a { text-decoration: none; }
.ftr__credit a:hover { color: #2FC0C3; }
.ftr__credit a:hover .dags-mark { color: #2FC0C3; }

/* The contact form's honeypot. Off-screen rather than display:none —
   some bots skip fields that are not rendered at all. */
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

/* ==========================================================================
   Reveal
   ========================================================================== */

/* The fade starts at .01, not 0. An element at opacity 0 is not a
   largest-contentful-paint candidate, so the hero headline only became one
   once its transition had finished — LCP was measured at ~1.7s on the home
   page when first paint was ~0.2s. At .01 it is a candidate immediately and
   still invisible to the eye. */
[data-rv] { opacity: .01; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
[data-rv].in { opacity: 1; transform: none; }

/* ==========================================================================
   Accessibility preferences
   Three independent signals, handled independently: less motion, less
   translucency, more contrast. Reduced motion is not "no feedback" — the
   opacity cross-fades stay, only the travel and the springs go.
   ========================================================================== */

/* ==========================================================================
   Rev. 04 — the bound set
   Everything below is new for ADK Engineering: the page masthead each sheet
   opens with, the register of projects, and the colour that carries meaning
   across both. Colour rule for this file: a hue is only ever applied to
   something that has a category. Nothing is coloured to be pretty.
   ========================================================================== */

/* One extra neutral the brand does not define, needed so the six project
   streams stay distinguishable at a glance. It is the brand navy pulled
   toward grey rather than a new hue. */
:root { --steel: #4A6E8A; --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='1.5 48 43 47'%3E%3Cpath transform='matrix%281,0,0,-1,4.9917986,57.2778%29' d='M0 0 24.438-14.36 .022-28.736C-2.207-30.044-2.936-32.896-1.629-35.126-.322-37.34 2.53-38.084 4.745-36.776L35.998-18.36C37.424-17.528 38.301-15.998 38.302-14.35 38.302-12.685 37.426-11.169 36-10.322L4.712 8.037C3.97 8.469 3.167 8.677 2.365 8.677 .76 8.677-.785 7.86-1.662 6.375-2.971 4.161-2.229 1.293 0 0'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --steel: #8FB3CE; } }
:root[data-theme="dark"] { --steel: #8FB3CE; }
:root[data-theme="light"] { --steel: #4A6E8A; }

/* --------------------------------------------------------------------------
   The logo
   Two tone, as the brand book specifies: the mark and "ADK" in dark blue,
   "ENGINEERING" and the accent stroke in green. On the dark theme the dark
   blue half reverses to the page's own light ink, which is the reverse
   treatment the brand book shows — never a colour logo on a colour ground.
   -------------------------------------------------------------------------- */
.lg-a { fill: var(--lg-a, var(--ink)); }
.lg-b { fill: var(--lg-b, var(--brand)); }

.brand svg { width: 132px; }
@media (min-width: 700px) { .brand svg { width: 150px; } }

/* The header marker was the electrical amber, which meant nothing here.
   The current page is marked in the brand colour instead. */
.hdr__nav a[aria-current]::before { background: var(--brand); }

/* --------------------------------------------------------------------------
   Mobile sheet — now an index of sheets, so each row carries its code
   -------------------------------------------------------------------------- */
.mnav__code {
  display: inline-block; min-width: 3.4em;
  font-family: var(--mono); font-size: .62em; letter-spacing: .1em;
  color: var(--brand-ink);
}
.mnav__foot {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: .78rem; color: var(--soft);
}
.mnav__foot a:hover { color: var(--brand-ink); }

/* --------------------------------------------------------------------------
   Page masthead — every inner sheet opens the same way
   -------------------------------------------------------------------------- */
.phead {
  position: relative;
  padding-block: calc(var(--hdr) + clamp(44px, 7vw, 96px)) clamp(38px, 5vw, 70px);
  background: var(--panel);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
}
/* The brand pattern, drawn from the logo's own strokes. It sits behind the
   masthead only — one appearance per sheet, at the top, the way a title
   block watermark behaves. */
.phead::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%231A8B8D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 12l8 6-8 6'/%3E%3Cpath d='M40 8v10h-10'/%3E%3Cpath d='M88 36l-8 6 8 6'/%3E%3Cpath d='M56 40l6 6-6 6-6-6z'/%3E%3Cpath d='M24 56v10h10'/%3E%3Cpath d='M64 76l8 6-8 6'/%3E%3C/svg%3E");
  opacity: .1;
  -webkit-mask-image: linear-gradient(105deg, transparent 38%, #000 100%);
  mask-image: linear-gradient(105deg, transparent 38%, #000 100%);
  pointer-events: none;
}
.phead .wrap { position: relative; }
.phead__ttl { --track: -.026em; font-size: clamp(2.1rem, 6vw, 4.2rem); max-width: 17ch; }
:lang(ka) .phead__ttl { font-size: clamp(1.6rem, 4.3vw, 2.9rem); max-width: 22ch; }
.phead__lede {
  margin-top: 22px; max-width: 62ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--soft);
}

/* --------------------------------------------------------------------------
   Statistics band — a solid brand block, the one place colour is the ground
   -------------------------------------------------------------------------- */
.stats { --block: #17807F; background: var(--block); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stats { --block: #14666A; } }
:root[data-theme="dark"] .stats { --block: #14666A; }
:root[data-theme="light"] .stats { --block: #17807F; }

.stats__in { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(16px, 3vw, 40px); }
@media (min-width: 760px) { .stats__in { grid-template-columns: repeat(4, 1fr); } }
.stat { padding-block: clamp(22px, 3.4vw, 40px); }
.stat__n {
  display: block; color: #fff; --track: -.03em;
  font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1;
}
.stat__l {
  display: block; margin-top: 10px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: #fff;
}
:lang(ka) .stat__l { text-transform: none; letter-spacing: .02em; font-size: .74rem; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.svcs { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 620px) { .svcs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svcs { grid-template-columns: repeat(3, 1fr); } }

.svc {
  position: relative; padding: clamp(22px, 2.6vw, 34px);
  background: var(--film);
}
.sec--panel .svc { background: var(--panel); }
.svc::before {
  content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 0;
  background: var(--brand); transition: height .35s var(--ease);
}
.svc:hover::before { height: 100%; }
.svc__n {
  display: block; margin-bottom: 14px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; color: var(--brand-ink);
}
.svc__t { font-size: 1.16rem; margin-bottom: 10px; }
.svc p { color: var(--soft); font-size: .95rem; }
.svcs--lg .svc { padding: clamp(26px, 3.2vw, 44px); }

/* Each discipline signs itself in its own colour, so the six tiles are not
   six identical grey boxes. */
.svc[data-svc="mep"]::before   { background: var(--m); }
.svc[data-svc="util"]::before  { background: var(--p); }
.svc[data-svc="earth"]::before { background: var(--amber); }
.svc[data-svc="rc"]::before    { background: var(--steel); }
.svc[data-svc="fit"]::before   { background: var(--agro); }
.svc[data-svc="land"]::before  { background: var(--brand); }
.svc[data-svc="mep"] .svc__n   { color: var(--m-ink); }
.svc[data-svc="util"] .svc__n  { color: var(--p-ink); }
.svc[data-svc="earth"] .svc__n { color: var(--amber-ink); }
.svc[data-svc="rc"] .svc__n    { color: var(--steel-ink); }
.svc[data-svc="fit"] .svc__n   { color: var(--agro-ink); }
.svc[data-svc="land"] .svc__n  { color: var(--brand-ink); }

/* --------------------------------------------------------------------------
   Streams — six colour groups over twelve sectors. Twelve colours would be
   confetti; six groups that mean something is information.
   -------------------------------------------------------------------------- */
[data-stream="infra"]      { --acc: var(--brand);   --acc-ink: var(--brand-ink); }
[data-stream="living"]     { --acc: var(--consult); --acc-ink: var(--consult-ink); }
[data-stream="hosp"]       { --acc: var(--agro);    --acc-ink: var(--agro-ink); }
[data-stream="industry"]   { --acc: var(--amber);   --acc-ink: var(--amber-ink); }
[data-stream="commercial"] { --acc: var(--steel);   --acc-ink: var(--steel-ink); }
[data-stream="public"]     { --acc: var(--redline); --acc-ink: var(--redline-ink); }

/* --------------------------------------------------------------------------
   Sector chips
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line); background: var(--film);
  font-size: .84rem; color: var(--soft);
}
.sec--panel .chip { background: var(--panel); }
.chip__k { width: 8px; height: 8px; background: var(--acc, var(--brand)); flex: none; }
.chip b { font-family: var(--mono); font-size: .72rem; color: var(--faint); font-weight: 500; }
a.chip:hover { border-color: var(--acc, var(--brand)); color: var(--ink); }
a.chip:hover b { color: var(--acc-ink, var(--brand-ink)); }

/* --------------------------------------------------------------------------
   Project cards
   -------------------------------------------------------------------------- */
/* Each card is as tall as its own works list. Stretching them to a common row
   height leaves a card with one line of works mostly empty below the photo,
   and the ragged bottom edge reads as a register rather than a brochure. */
.pjs { display: grid; gap: clamp(16px, 2vw, 22px); align-items: start; }
@media (min-width: 660px) { .pjs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pjs { grid-template-columns: repeat(3, 1fr); } }

.pj {
  display: flex; flex-direction: column;
  background: var(--film);
  border: 1px solid var(--line);
  border-top: 3px solid var(--acc, var(--brand));
}
.sec--panel .pj { background: var(--panel); }
.pj:hover { border-color: var(--acc, var(--brand)); }
.pj__b { padding: clamp(20px, 2.4vw, 28px); }

/* --------------------------------------------------------------------------
   Project photography
   ADK's own images of their own sites, so they are shown as photographs and
   not put through the duotone the MEP reference pictures get — that wash
   exists to mark those three as illustrative, which these are not.
   -------------------------------------------------------------------------- */
.pj__fig {
  position: relative; margin: 0;
  aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--sunk);
}
.pj__fig img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(calc(1 - var(--tint) * .1));
  transition: transform .9s var(--ease);
}
.pj:hover .pj__fig > img { transform: scale(1.035); }

/* Two projects in the register have no photograph the company can stand
   behind — the deck illustrates them with a logo. A drawn placeholder that
   says which sheet it is beats borrowing a picture of something else. */
.pj__fig--none { display: grid; place-items: center; }
.pj__fig--none::before {
  content: ''; position: absolute; inset: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 96 96' fill='none' stroke='%231A8B8D' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 12l8 6-8 6'/%3E%3Cpath d='M40 8v10h-10'/%3E%3Cpath d='M56 40l6 6-6 6-6-6z'/%3E%3Cpath d='M24 56v10h10'/%3E%3C/svg%3E");
}
.pj__fig--none span {
  position: relative;
  font-family: var(--mono); font-size: 1.1rem; letter-spacing: .18em;
  color: var(--faint);
}

/* Extra views. Without scripting these are simply more pictures, which is a
   correct and useful state; main.js upgrades them into buttons that swap the
   picture above. */
.pj__views { display: flex; gap: 2px; }
.pj__views li { flex: 1 1 0; min-width: 0; }
.pj__views img, .pj__views button {
  display: block; width: 100%; aspect-ratio: 16 / 10;
  object-fit: cover; border: 0; padding: 0; background: var(--sunk);
}
.pj__views button { cursor: pointer; position: relative; }
.pj__views button img { aspect-ratio: 16 / 10; }
.pj__views button::after {
  content: ''; position: absolute; inset: 0;
  background: var(--film); opacity: .42;
  transition: opacity .25s var(--ease);
}
.pj__views button:hover::after, .pj__views button[aria-pressed="true"]::after { opacity: 0; }
.pj__views button[aria-pressed="true"] { outline: 2px solid var(--acc, var(--brand)); outline-offset: -2px; }

.pj__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pj__code {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  color: var(--acc-ink, var(--brand-ink));
}

.pj__ttl { font-size: 1.06rem; line-height: 1.25; }
.pj__sect {
  margin: 8px 0 0;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint);
}
:lang(ka) .pj__sect { text-transform: none; letter-spacing: .02em; font-size: .76rem; }
.pj__note {
  margin: 14px 0 0; padding-left: 12px;
  border-left: 2px solid var(--hair);
  font-size: .85rem; color: var(--faint);
}
.pj__works {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair);
  display: grid; gap: 5px;
  font-size: .88rem; color: var(--soft);
}
.pj__works li { display: flex; gap: 10px; }
.pj__works li::before {
  content: ''; flex: none; width: 7px; height: 8px; margin-top: .42em;
  background: var(--acc, var(--brand));
  -webkit-mask: var(--chev) center / contain no-repeat;
  mask: var(--chev) center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Register filters
   -------------------------------------------------------------------------- */
.sec--reg { padding-block: clamp(44px, 6vw, 84px) var(--sec); }
.filters { margin-bottom: clamp(28px, 4vw, 48px); }
.filters__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 18px; }
.filters__lbl {
  margin: 0; min-width: 9em;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
}
:lang(ka) .filters__lbl { text-transform: none; letter-spacing: .02em; font-size: .76rem; }
.filters__set { display: flex; flex-wrap: wrap; gap: 8px; }

.fbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line); background: transparent;
  font-size: .82rem; color: var(--soft); cursor: pointer;
}
.fbtn__k { width: 8px; height: 8px; flex: none; background: var(--acc, var(--brand)); }
.fbtn b { font-family: var(--mono); font-size: .68rem; font-weight: 500; color: var(--faint); }
.fbtn:hover { border-color: var(--acc, var(--ink)); color: var(--ink); }
.fbtn.is-on {
  border-color: var(--acc, var(--ink)); color: var(--ink);
  background: color-mix(in srgb, var(--acc, var(--brand)) 12%, transparent);
}
.fbtn.is-on b { color: var(--acc-ink, var(--brand-ink)); }

/* On a phone thirteen sector buttons stack into nine rows and push the
   register itself off the screen. One row that scrolls sideways keeps the
   whole filter within a thumb's reach and the projects in view. */
@media (max-width: 699px) {
  .filters__row { display: block; }
  .filters__lbl { margin-bottom: 10px; }
  .filters__set {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .filters__set::-webkit-scrollbar { display: none; }
  .fbtn { flex: none; scroll-snap-align: start; }
}

.filters__count {
  margin: 16px 0 0;
  font-family: var(--mono); font-size: .7rem; color: var(--faint);
}
.pjs__empty { margin-top: 24px; color: var(--faint); }
.reg__note {
  margin-top: clamp(28px, 4vw, 46px); padding-top: 18px;
  border-top: 1px solid var(--hair);
  max-width: 70ch; font-size: .84rem; color: var(--faint);
}

/* --------------------------------------------------------------------------
   Partners, group members
   -------------------------------------------------------------------------- */
.parts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .parts { grid-template-columns: repeat(3, 1fr); } }
.parts li {
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(22px, 2.8vw, 34px); background: var(--film);
}
.sec--panel .parts li { background: var(--panel); }
.parts b { font-size: 1.1rem; color: var(--ink); font-weight: 600; }
.parts span { font-size: .92rem; color: var(--soft); }

/* --------------------------------------------------------------------------
   "More" link, the way a sheet points at the next sheet
   -------------------------------------------------------------------------- */
.more { margin-top: clamp(26px, 3vw, 40px); }
.more a {
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--brand);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink);
}
:lang(ka) .more a { text-transform: none; letter-spacing: .02em; font-size: .88rem; }
.more a svg { transition: transform .3s var(--ease); }
.more a:hover { color: var(--brand-ink); }
.more a:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Closing block — a solid brand colour block in both themes
   -------------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  padding-block: clamp(54px, 7vw, 100px);
  background: #122F53; color: #fff;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 12l8 6-8 6'/%3E%3Cpath d='M40 8v10h-10'/%3E%3Cpath d='M88 36l-8 6 8 6'/%3E%3Cpath d='M56 40l6 6-6 6-6-6z'/%3E%3Cpath d='M24 56v10h10'/%3E%3Cpath d='M64 76l8 6-8 6'/%3E%3C/svg%3E");
  opacity: .09; pointer-events: none;
}
.cta .wrap { position: relative; }
.cta__in { display: grid; gap: clamp(28px, 4vw, 52px); }
@media (min-width: 940px) { .cta__in { grid-template-columns: 1.5fr 1fr; align-items: end; } }
.cta__ttl { color: #fff; --track: -.024em; font-size: clamp(1.7rem, 4vw, 2.9rem); max-width: 20ch; }
:lang(ka) .cta__ttl { font-size: clamp(1.4rem, 3.2vw, 2.2rem); max-width: 24ch; }
.cta__sub { margin-top: 18px; max-width: 52ch; color: rgba(255, 255, 255, .78); }
.cta .tag--on { color: rgba(255, 255, 255, .7); }
.cta .tag--on::after { background: rgba(255, 255, 255, .25); }
.cta__acts { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--on { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--on:hover { background: #fff; border-color: #fff; color: #122F53; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: #122F53; }

/* --------------------------------------------------------------------------
   Brand accents (client feedback, 2026-09): more of the logo's teal-green.
   Navy stays the lead colour. Teal marks what you can act on and where each
   section starts; it never becomes a large ground outside the stats band.
   -------------------------------------------------------------------------- */
::selection { background: var(--brand); color: var(--brand-in); }
:focus-visible, .iso:focus-visible { outline-color: var(--brand); }

.tag b { color: var(--brand-ink); }

/* Primary buttons are still navy at rest and turn teal under the pointer. */
.btn:not(.btn--on):not(.btn--ghost):not(.btn--line):hover {
  background: var(--brand); border-color: var(--brand); color: var(--brand-in);
}
.btn--line:hover { background: transparent; border-color: var(--brand); color: var(--brand-ink); }

/* Links and controls. */
.hdr__nav a:hover { color: var(--brand-ink); }
.tool:hover, .lang:focus-within { border-color: var(--brand); color: var(--brand-ink); }
.fact dd a:hover, .ftr__law a:hover, .lang a:hover { color: var(--brand-ink); border-bottom-color: var(--brand); }
.socs a:hover, .where:hover { border-color: var(--brand); }
.socs a:hover { background: var(--brand); color: var(--brand-in); }
.where:hover svg:last-child { color: var(--brand-ink); }

/* Rules that grow on hover or mark a start. */
.stage::after { background: var(--brand); }
.note { position: relative; }
.note::before { content: ''; position: absolute; left: 0; top: -1px; width: 34px; height: 2px; background: var(--brand); }
.form { border-top-color: var(--brand); }
.parts li { position: relative; }
.parts li::before {
  content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: var(--brand); transition: width .4s var(--ease);
}
.parts li:hover::before { width: 100%; }
.fact dt::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--brand); vertical-align: 1px; }

/* --------------------------------------------------------------------------
   About sheet
   -------------------------------------------------------------------------- */
.sec__inner--split { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1000px) { .sec__inner--split { grid-template-columns: 1fr 1fr; align-items: start; } }
.facts--wide { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .facts--wide { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   Footer — three columns rather than a single row of anchors
   -------------------------------------------------------------------------- */
.ftr__in { display: grid; gap: clamp(26px, 3vw, 44px); }
@media (min-width: 860px) { .ftr__in { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }
.brand--ftr svg { width: 168px; }
.ftr__parent {
  margin: 14px 0 0;
  font-family: var(--mono); font-size: .7rem; color: var(--faint);
}
.ftr__nav { display: flex; flex-direction: column; gap: 9px; }
.ftr__nav a {
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--soft); transition: color .2s;
}
:lang(ka) .ftr__nav a { font-size: .82rem; text-transform: none; letter-spacing: .02em; }
.ftr__nav a:hover, .ftr__nav a[aria-current] { color: var(--brand-ink); }
.ftr__reach { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ftr__reach a { font-family: var(--mono); font-size: .82rem; color: var(--soft); }
.ftr__reach a:hover { color: var(--brand-ink); }
.ftr__reach .socs { margin-top: 8px; }

/* --------------------------------------------------------------------------
   The logo, scattered (client feedback, 2026-09)
   A: large faint marks cropped by a section corner, as on the business card.
   D: one big mark in the closing band, and a navy footer.
   E: the mark and its chevron at small sizes: tags, bullets, a divider,
      the back-to-top button and the form's sending state.
   -------------------------------------------------------------------------- */
.wm { position: absolute; z-index: 0; pointer-events: none; aspect-ratio: 146 / 143; }
.wm svg { display: block; width: 100%; height: 100%; }
.wm { --lg-a: currentColor; --lg-b: currentColor; }
.sec--wm { overflow: clip; }
.sec--wm > .wrap, .stats > .wrap { position: relative; z-index: 1; }

/* Offsets are translations of the mark's own size, not percentages of the
   section: a tall section on a phone would push a percentage offset almost
   entirely out of view and leave only stubs showing. */
.wm--tr { width: clamp(240px, 38vw, 540px); right: 0; top: 0; translate: 22% -18%; color: var(--ink); opacity: .05; }
.wm--bl { width: clamp(260px, 44vw, 620px); left: 0; bottom: 0; translate: -26% 42%; color: var(--brand); opacity: .08; }
/* The last section usually ends in a card grid with solid cards, which would
   hide most of the mark, so this one is laid over the content rather than
   under it. At this opacity it tints the cards and stays out of the way. */
.sec--wm > .wm--bl { z-index: 2; }
.stats { position: relative; overflow: clip; }
.wm--band { width: clamp(220px, 30vw, 420px); right: -4%; top: 50%; translate: 0 -50%; color: #fff; opacity: .12; }
@media (max-width: 759px) {
  .wm--band { width: 200px; right: 0; top: auto; bottom: 0; translate: 30% 30%; opacity: .07; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wm--tr { opacity: .07; } }
:root[data-theme="dark"] .wm--tr { opacity: .07; }

/* D1 — the closing band trades its scattered pattern for one mark */
.cta::before { display: none; }
.wm--cta {
  width: clamp(320px, 42vw, 580px); right: -6%; top: 50%; translate: 0 -50%;
  --lg-a: rgba(255, 255, 255, .09); --lg-b: #2FC0C3; opacity: .85;
}
.cta > .wrap { z-index: 1; }
@media (max-width: 939px) { .wm--cta { opacity: .45; right: -30%; } }

/* D3 — navy footer, a softer navy than the closing band above it. */
.ftr--navy {
  --ftr-ink: #fff; --ftr-soft: rgba(255, 255, 255, .72); --ftr-faint: rgba(255, 255, 255, .5);
  --ftr-bg: #1B3A5E;
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: var(--ftr-bg); color: var(--ftr-soft);
}
:root[data-theme="dark"] .ftr--navy { --ftr-bg: #0F2743; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ftr--navy { --ftr-bg: #0F2743; } }
.ftr--navy .brand--ftr { --lg-a: #fff; --lg-b: #2FC0C3; }
.ftr--navy .ftr__parent, .ftr--navy .ftr__law { color: var(--ftr-faint); }
.ftr--navy .ftr__law { border-top-color: rgba(255, 255, 255, .14); }
.ftr--navy .ftr__nav a, .ftr--navy .ftr__reach a { color: var(--ftr-soft); }
.ftr--navy .ftr__nav a:hover, .ftr--navy .ftr__nav a[aria-current],
.ftr--navy .ftr__reach a:hover, .ftr--navy .ftr__law a:hover { color: #2FC0C3; }
.ftr--navy .socs a { border-color: rgba(255, 255, 255, .25); color: #fff; }
.ftr--navy .socs a:hover { background: #2FC0C3; border-color: #2FC0C3; color: #05242B; }
.ftr--navy :focus-visible { outline-color: #2FC0C3; }

/* E2 — the mark opens every section tag */
.tag__mk { width: 17px; height: 17px; flex: none; }
:lang(ka) .tag__mk { width: 18px; height: 18px; }

/* E3 — a chevron pair closes the last content section */
.divider {
  display: flex; align-items: center; gap: 14px;
  margin-top: clamp(48px, 6vw, 84px); margin-bottom: calc(var(--sec) * -.35); color: var(--brand);
  --lg-a: currentColor; --lg-b: currentColor;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.divider svg { width: 12px; height: 13px; flex: none; }
.divider__flip { rotate: 180deg; }

/* E4 — back to top */
.totop {
  position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); z-index: 90;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--mat-sheet); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; translate: 0 12px; pointer-events: none;
  transition: opacity .3s var(--ease), translate .3s var(--ease), border-color .25s;
}
.totop.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.totop:hover { border-color: var(--brand); }
.totop svg { width: 24px; height: 24px; transition: rotate .6s var(--ease); }
.totop:hover svg { rotate: 90deg; }

/* E4 — the form's sending state turns the mark */
.btn__spin { width: 15px; height: 15px; --lg-a: currentColor; --lg-b: #2FC0C3; animation: adk-turn 1.6s var(--ease) infinite; }
@keyframes adk-turn { to { rotate: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Keep colour and opacity changes: they are what tells you a control
     responded. Drop everything that moves through space. */
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-property: opacity, color, background-color, border-color, fill, stroke !important;
    transition-duration: .2s !important;
  }
  [data-rv] { opacity: 1; transform: none; }
  .is-press { transform: none; }
  .iso__run, .iso__edge { stroke-dasharray: none; stroke-dashoffset: 0; }
  .iso.is-live [data-sys="e"] .iso__run { stroke-dasharray: 7 4.5; }
  .iso__term, .iso__part { opacity: 1; }
  .flow li::after, .tree__link i { transform: none !important; }

  /* The sheet cross-fades in place instead of travelling up the screen —
     the same information, without the vestibular cost. */
  .mnav__panel {
    filter: none; transform: none !important;
    opacity: 0; transition: opacity .2s ease !important;
  }
  .mnav.is-open .mnav__panel { opacity: 1; }
}

@media (prefers-reduced-transparency: reduce) {
  :root {
    --mat-chrome: var(--film);
    --mat-sheet: var(--film);
    --mat-blur: 0px;
  }
  .hdr, .mnav__panel {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--line);
  }
  .mnav__panel { filter: none; }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(18, 47, 83, .55);
    --hair: rgba(18, 47, 83, .38);
    --soft: #22354A;
    --faint: #3B4E63;
    --mat-chrome: var(--film);
    --mat-sheet: var(--film);
  }
  :root[data-theme="dark"] {
    --line: rgba(170, 200, 214, .58);
    --hair: rgba(170, 200, 214, .4);
    --soft: #D3E0E7;
    --faint: #B0C2CE;
  }
  .hdr, .mnav__panel { backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); }
  .tool, .ent__tags span, .socs a, .where { border-color: var(--ink); }
}

@media print {
  .hdr, .mnav, .tools, .form, .where, .iso__bar, .totop, .wm { display: none !important; }
  body { background: #fff; color: #000; }
}
