/* ESMA Holding landing. Plain CSS, dark theme only. */

:root {
  /* colour components: solid colours below and every see-through shade use them as rgb(var(--x-rgb) / alpha) */
  --bg-rgb: 3 8 20;              /* #030814 */
  --bg-2-rgb: 7 18 48;           /* #071230 */
  --surface-rgb: 14 32 78;
  --line-rgb: 120 160 255;
  --accent-rgb: 47 107 255;      /* #2f6bff */
  --accent-hover-rgb: 91 141 255; /* #5b8dff */
  --muted-rgb: 157 176 214;      /* #9db0d6 */
  --placeholder-rgb: 230 185 77; /* #e6b94d */

  --bg: rgb(var(--bg-rgb));
  --bg-2: rgb(var(--bg-2-rgb));
  --surface: rgb(var(--surface-rgb) / .55);
  --line: rgb(var(--line-rgb) / .18);
  --line-soft: rgb(var(--line-rgb) / .1);
  --accent: rgb(var(--accent-rgb));
  --accent-hover: rgb(var(--accent-hover-rgb));
  --accent-deep: #2d66f2;        /* primary button on hover: white text 4.89:1 (accent itself is 4.50:1) */
  --glow: rgb(var(--accent-rgb) / .45);
  --text: #f3f6ff;
  --text-soft: #dfe7ff;
  --muted: rgb(var(--muted-rgb));
  --placeholder: rgb(var(--placeholder-rgb));

  --header-h: 72px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --sec-pad: clamp(72px, 8.5vw, 120px);
  --tap: 44px;                   /* smallest touch target */
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* motion: all durations live here, so reduced motion can zero them in one place */
  --t-fast: .2s;
  --t-base: .25s;
  --t-med: .3s;
  --t-slow: .35s;
  --t-reveal: .4s;
  --t-zoom: .7s;

  /* mobile call bar: its height and the page's bottom padding come from the same numbers */
  --mbar-btn: 50px;
  --mbar-pad: 8px;
  --mbar-edge: 12px;
  --mbar-h: calc(var(--mbar-btn) + 2 * var(--mbar-pad) + 2px); /* buttons + padding + 1px border twice */

  --font: "Inter", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", Sylfaen, sans-serif;
  --font-ka: "Noto Sans Georgian", "Inter", system-ui, "Segoe UI", Sylfaen, sans-serif;
  --font-latin: "Inter", system-ui, "Segoe UI", sans-serif;

  color-scheme: dark;
}

/* ---------- language visibility (works without JS: Georgian by default) ---------- */
html:not([data-lang]) [lang="en"],
html[data-lang="ka"] [lang="en"],
html[data-lang="en"] [lang="ka"] { display: none !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 100% 38%, rgb(var(--accent-rgb) / .07), transparent 62%),
    radial-gradient(900px 600px at 0% 62%, rgb(var(--accent-rgb) / .05), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Georgian face for Georgian text; .latin marks Latin-only labels (brand, kickers, ©, KA/EN, phone, email) */
body [lang="ka"] { font-family: var(--font-ka); }
.latin, .latin [lang] { font-family: var(--font-latin); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button { font: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease);
}
.skip:focus, .skip:focus-visible { transform: none; }

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- reveal (only when JS adds .reveal; --i on the element delays it by i x 70ms) ---------- */
.reveal { opacity: 0; translate: 0 18px; }
.reveal.is-in {
  opacity: 1;
  translate: none;
  animation: reveal-in var(--t-reveal) var(--ease) calc(var(--i, 0) * 70ms) backwards;
}
@keyframes reveal-in {
  from { opacity: 0; translate: 0 18px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: 0 1.4em;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-base) ease, border-color var(--t-base) ease, box-shadow var(--t-base) ease, color var(--t-base) ease;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 32px -12px var(--glow), inset 0 1px 0 rgb(255 255 255 / .2);
}
/* hover never lightens the button (white text must keep 4.5:1): a touch deeper plus a glow ring */
.btn--primary:hover {
  background: var(--accent-deep);
  box-shadow: 0 16px 40px -10px var(--glow), 0 0 0 4px rgb(var(--accent-rgb) / .16), inset 0 1px 0 rgb(255 255 255 / .25);
}
.btn--ghost {
  color: var(--text);
  border-color: rgb(var(--muted-rgb) / .34);
  background: rgb(var(--bg-2-rgb) / .38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--accent-hover);
  background: rgb(var(--accent-rgb) / .12);
}
.btn--pill { border-radius: 999px; min-height: var(--tap); padding: 0 1.15em; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 0 1.7em; font-size: 1rem; }
.btn--xl { min-height: 60px; padding: 0 2em; font-size: 1.05rem; border-radius: 14px; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-med) ease, border-color var(--t-med) ease, box-shadow var(--t-med) ease;
}
.header.is-scrolled {
  background: rgb(var(--bg-rgb) / .74);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 12px 32px -24px rgb(0 0 0 / .9);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: var(--tap);
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.brand__mark {
  width: 26px;
  height: auto;
  filter: drop-shadow(0 0 10px rgb(var(--accent-rgb) / .55));
}
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-weight: 300;
  font-size: 1.32rem;
  letter-spacing: .32em;
  margin-right: -.32em;
}
.brand__sub {
  margin-top: 6px;
  font-weight: 300;
  font-size: .625rem;            /* 10px: smallest readable size */
  letter-spacing: .42em;         /* keeps the word as wide as it was at 8px */
  color: var(--muted);
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: clamp(4px, 1.6vw, 22px);
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 10px;
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
  transition: color var(--t-fast) ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 8px;
  height: 1px;
  background: var(--accent-hover);
  box-shadow: 0 0 8px var(--glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: none;
}

/* language switch */
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(var(--bg-2-rgb) / .42);
}
html:not(.js) .lang { display: none; }
.lang__btn {
  position: relative;
  min-width: var(--tap);
  height: var(--tap);
  padding: 0 4px 0 calc(4px + .16em);
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  cursor: pointer;
  transition: color var(--t-fast) ease;
}
.lang__btn + .lang__btn::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1px; height: 14px;
  background: var(--line);
  transform: translateY(-50%);
}
.lang__btn:hover { color: var(--text); }
.lang__btn[aria-pressed="true"] { color: var(--text); }
.lang__btn[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 8px;
  width: 12px; height: 2px;
  margin-left: -6px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--glow);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  min-height: min(92vh, 860px);
  min-height: min(92svh, 860px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 96px) 0 clamp(64px, 9vw, 128px);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg-2);
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 34%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(var(--bg-rgb) / .95) 0%, rgb(var(--bg-rgb) / .82) 30%, rgb(var(--bg-rgb) / .35) 56%, rgb(var(--bg-rgb) / 0) 78%),
    linear-gradient(180deg, rgb(var(--bg-rgb) / .5) 0%, rgb(var(--bg-rgb) / 0) 20%, rgb(var(--bg-rgb) / 0) 66%, var(--bg) 100%);
}
.hero__inner { position: relative; }
.hero__content { max-width: 760px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
}
.eyebrow [lang="en"] { text-transform: uppercase; letter-spacing: .24em; }
.eyebrow::before {
  content: "";
  flex: none;
  width: 36px; height: 1px;
  background: linear-gradient(90deg, var(--accent-hover), rgb(var(--accent-hover-rgb) / .2));
  box-shadow: 0 0 8px var(--glow);
}

.hero__title {
  font-size: clamp(2.3rem, 6.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.028em;
}
.hero__title [lang="ka"] { font-size: .86em; letter-spacing: -.01em; line-height: 1.18; }
.hero__a, .hero__b { display: block; }
.hero__b {
  color: var(--accent);
  text-shadow: 0 0 34px rgb(var(--accent-rgb) / .55), 0 0 2px rgb(var(--accent-rgb) / .4);
}

.hero__sub {
  margin-top: 26px;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-soft);
}
.hero__lead {
  margin-top: 14px;
  max-width: 38em;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.72;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}
.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: var(--tap);
  margin-left: 14px;
  color: var(--text);
  font-size: .98rem;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast) ease;
}
.hero__phone::before {
  content: "";
  width: 32px; height: 1px;
  background: linear-gradient(90deg, rgb(var(--accent-hover-rgb) / .2), var(--accent-hover));
}
.hero__phone:hover { color: var(--accent-hover); }

/* ---------- sections ---------- */
.section {
  position: relative;
  padding-block: var(--sec-pad);
  scroll-margin-top: max(0px, calc(var(--header-h) + 24px - var(--sec-pad)));
}
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: min(var(--wrap), 88%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.trade { padding-top: clamp(48px, 6vw, 88px); }
.trade::before { display: none; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--accent-hover);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .3em;
}
.kicker::after {
  content: "";
  width: 48px; height: 1px;
  background: linear-gradient(90deg, var(--accent-hover), transparent);
}

.sec-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.022em;
}
.sec-title [lang="ka"] { font-size: .92em; letter-spacing: -.005em; line-height: 1.25; }
.sec-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.72;
}

.sec-head {
  display: grid;
  gap: 18px 56px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; }
  .sec-lead--side {
    justify-self: end;
    max-width: 28em;
    padding-left: 22px;
    border-left: 1px solid var(--line);
  }
}

/* ---------- trade cards ---------- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform var(--t-slow) var(--ease), border-color var(--t-slow) ease, box-shadow var(--t-slow) ease;
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-zoom) var(--ease);
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0) 52%, rgb(var(--bg-2-rgb) / .72) 100%);
}
.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
}
.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.005em;
}
.card__text {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.62;
  margin-bottom: 12px;
}
.card__body::after {
  content: "";
  margin-top: auto;
  width: 28px; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
  transition: width var(--t-slow) var(--ease);
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: rgb(var(--accent-hover-rgb) / .5);
    box-shadow: 0 26px 60px -32px var(--glow), 0 0 0 1px rgb(var(--accent-hover-rgb) / .16), 0 0 46px -14px rgb(var(--accent-rgb) / .35);
  }
  .card:hover .card__media img { transform: scale(1.04); }
  .card:hover .card__body::after { width: 52px; }
}

.chip {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 14px;
  border: 1px solid rgb(var(--line-rgb) / .38);
  border-radius: 999px;
  background: rgb(var(--bg-rgb) / .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 24px -8px var(--glow);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
}
.chip__arrow { color: var(--accent-hover); margin: 0 .15em; }

/* ---------- design ---------- */
.design__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgb(var(--surface-rgb) / .62) 0%, rgb(var(--bg-2-rgb) / .45) 55%, rgb(var(--bg-rgb) / .7) 100%);
  box-shadow: 0 50px 90px -60px rgb(var(--accent-rgb) / .45);
}
.design__card::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--accent-hover-rgb) / .75), transparent);
}
.design__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 5vw, 64px);
}
.design__lead { margin-top: 16px; }
.design__media { position: relative; min-height: 240px; }
.design__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
@media (min-width: 900px) {
  .design__card { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .design__media {
    min-height: 460px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  }
}
@media (max-width: 899px) {
  .design__media {
    order: -1;
    aspect-ratio: 16 / 10;
    min-height: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .design__body { padding-top: 4px; }
}

/* ---------- placeholders (visible on purpose: data still missing) ---------- */
.ph {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px dashed var(--placeholder);
  border-radius: 12px;
  background: rgb(var(--placeholder-rgb) / .08);
  color: var(--placeholder);
  font-size: .92rem;
  line-height: 1.45;
}
.ph__ico { width: 22px; height: 22px; flex: none; }
.ph--works {
  align-self: stretch;
  min-height: 96px;
  margin-top: 34px;
}
.ph--legal {
  display: inline-flex;
  padding: 10px 14px;
  font-size: .84rem;
}
.ph--legal .ph__ico { width: 18px; height: 18px; }

/* ---------- contact ---------- */
.contact {
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding-bottom: calc(var(--sec-pad) + clamp(40px, 6vw, 80px));
}
.contact__glow {
  position: absolute;
  left: 50%; top: 46%;
  z-index: -2;
  width: min(900px, 160vw);
  height: auto;
  opacity: .14;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  -webkit-mask-image: radial-gradient(closest-side, #000 15%, transparent 85%);
  mask-image: radial-gradient(closest-side, #000 15%, transparent 85%);
  pointer-events: none;
}
.contact::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(100% - clamp(70px, 9vw, 130px));
  width: max(1700px, 190vw);
  height: 1000px;
  transform: translateX(-50%);
  border-radius: 50%;
  border-top: 1px solid rgb(var(--line-rgb) / .6);
  background: radial-gradient(ellipse 40% 30% at 50% 0%, rgb(var(--accent-rgb) / .26), rgb(var(--bg-rgb) / 0) 100%), var(--bg);
  box-shadow: 0 -24px 90px -30px rgb(var(--accent-rgb) / .55);
  pointer-events: none;
}
.contact__inner { max-width: 860px; }
.contact__title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.contact__title [lang="ka"] { font-size: .9em; letter-spacing: -.005em; line-height: 1.22; }
.contact__text {
  max-width: 40em;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.72;
}
.contact__reply {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: .94rem;
  color: var(--text-soft);
}
.dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-hover);
  box-shadow: 0 0 0 4px rgb(var(--accent-hover-rgb) / .16), 0 0 14px var(--accent);
}
.contact__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}
.contact__cta .btn { min-width: 220px; }

.contact__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 40px;
  max-width: 760px;
  margin: 48px auto 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}
.contact__item { display: flex; align-items: center; gap: 12px; }
.meta-label { color: var(--muted); font-size: .8rem; letter-spacing: .04em; }
.meta-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text);
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast) ease;
}
.meta-link:hover { color: var(--accent-hover); }

.socials { display: flex; gap: 10px; }
.social {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(var(--bg-2-rgb) / .45);
  color: var(--text);
  transition: border-color var(--t-base) ease, box-shadow var(--t-base) ease, color var(--t-base) ease;
}
.social svg { width: 20px; height: 20px; }
.social:hover {
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .12), 0 0 24px -4px var(--glow);
}
.social--sm { width: var(--tap); height: var(--tap); }
.social--sm svg { width: 18px; height: 18px; }

/* ---------- footer ---------- */
.footer {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  padding-block: 44px 40px;
  color: var(--muted);
  font-size: .9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
@media (min-width: 960px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) auto auto; gap: 40px; }
}
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__mark { width: 30px; height: auto; opacity: .9; }
.footer__rights {
  margin-bottom: 4px;
  color: var(--text);
  font-size: .78rem;
  letter-spacing: .16em;
}
.footer__mid { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.footer__mail {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}
.footer__mail:hover { color: var(--accent-hover); }
.footer__end { display: flex; align-items: center; gap: 14px; }

/* ---------- mobile call bar (JS only, phones only) ---------- */
.mbar { display: none; }

@media (max-width: 720px) {
  /* room for the bar: its edge gap + its height + 8px air + the iPhone home-indicator area */
  html.js body { padding-bottom: calc(var(--mbar-edge) + var(--mbar-h) + 8px + env(safe-area-inset-bottom, 0px)); }
  html.js .mbar {
    position: fixed;
    left: var(--mbar-edge); right: var(--mbar-edge);
    bottom: calc(var(--mbar-edge) + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: flex;
    gap: 10px;
    padding: var(--mbar-pad);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgb(var(--bg-rgb) / .8);
    -webkit-backdrop-filter: saturate(140%) blur(16px);
    backdrop-filter: saturate(140%) blur(16px);
    box-shadow: 0 18px 40px -12px rgb(0 0 0 / .8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 24px));
    transition: transform var(--t-slow) var(--ease), opacity var(--t-med) ease, visibility 0s linear var(--t-slow);
  }
  html.js .mbar.is-on {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: transform var(--t-slow) var(--ease), opacity var(--t-med) ease, visibility 0s;
  }
  .mbar .btn { flex: 1 1 0; min-height: var(--mbar-btn); padding: 0 .8em; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { gap: 0; }
  .nav__link { padding: 0 8px; font-size: .86rem; }
}

@media (max-width: 720px) {
  .nav { display: none; }

  .brand__mark { width: 24px; }
  .brand__name { font-size: 1.16rem; }

  .hero {
    align-items: flex-end;
    min-height: 0;
    padding-top: calc(var(--header-h) + clamp(190px, 36svh, 290px));
    padding-bottom: 56px;
  }
  .hero__media { bottom: auto; height: clamp(360px, 60svh, 500px); }
  .hero__img { object-position: 64% 30%; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgb(var(--bg-rgb) / .6) 0%, rgb(var(--bg-rgb) / 0) 22%, rgb(var(--bg-rgb) / .25) 52%, var(--bg) 100%);
  }
  .eyebrow { margin-bottom: 18px; font-size: .74rem; }
  .eyebrow::before { width: 24px; }
  .hero__sub { margin-top: 18px; }
  .hero__cta { margin-top: 30px; gap: 10px; }
  .hero__cta .btn { flex: 1 1 0; padding: 0 1em; }
  .hero__phone { flex-basis: 100%; margin-left: 0; }

  .card__body { padding: 20px 20px 22px; }

  .contact__cta .btn { flex: 1 1 0; min-width: 0; padding: 0 1em; }
  .contact__meta { flex-direction: column; gap: 6px; padding-top: 22px; }

  .footer__end { flex-wrap: wrap; }
}

/* header call button: text shown from 401px; below that only the icon, the text stays for screen readers (.sr-only) */
@media (min-width: 401px) {
  .header__call-text {
    position: static;
    width: auto; height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: inherit;
  }
}
@media (max-width: 400px) {
  .header__actions { gap: 8px; }
  .header__call { width: var(--tap); padding: 0; }
}

@media (max-width: 360px) {
  .hero__cta .btn { flex-basis: 100%; }
  .contact__cta .btn { flex-basis: 100%; }
}

/* ---------- reduced motion: no movement, no fades (reveal is not started by JS either) ---------- */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0s;
    --t-base: 0s;
    --t-med: 0s;
    --t-slow: 0s;
    --t-reveal: 0s;
    --t-zoom: 0s;
  }
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
  .card:hover .card__media img { transform: none; }
}
