/* ==========================================================================
   TABA & Partners — Apple-grade premium aesthetic
   ========================================================================== */

:root {
  --bg:        #fbfbfd;
  --bg-alt:    #f5f5f7;
  --bg-card:   #ffffff;
  --line:      #d2d2d7;
  --line-soft: #e8e8ed;
  --ink:       #1d1d1f;
  --ink-soft:  #424245;
  --ink-mute:  #6e6e73;
  --ink-faint: #86868b;
  --accent:    #0b1c2c;
  --accent-2:  #1a3a5c;
  --link:      #06c;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;

  --container: 1280px;
  --gutter:   clamp(20px, 4vw, 48px);

  --ease:     cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
[id] { scroll-margin-top: 88px; }
@media (max-width: 540px) {
  html { scroll-padding-top: 72px; }
  [id] { scroll-margin-top: 72px; }
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.003em;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
::selection { background: var(--ink); color: var(--bg); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* --- nav ----------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(251, 251, 253, 0.88);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px max(var(--gutter), env(safe-area-inset-left)) 14px max(var(--gutter), env(safe-area-inset-right));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 64px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: opacity .2s var(--ease);
}
.nav__brand:hover { opacity: 0.78; }

/* --- wordmark logo (elite text-only, animated) --------------------------- */
.wordmark {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  font-family: "Inter Tight", "Inter", sans-serif;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  font-feature-settings: "cv11", "ss03", "tnum";
  font-variant-ligatures: none;
  isolation: isolate;
}
.wordmark__a,
.wordmark__b {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  /* trailing tracking compensation — keeps the optical gap around "&" balanced */
  padding-right: 0.2em;
  transition: letter-spacing .55s var(--ease-out);
}
.wordmark__amp {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  font-weight: 300;
  font-size: 1.04em;
  margin: 0 0.62em 0 0.48em;
  color: var(--ink-mute);
  transform: translateY(-0.025em);
  transition: color .35s var(--ease), transform .55s var(--ease-out);
}

/* per-character spans for letter-cascade reveal */
.wordmark__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: transform, opacity;
}
.wordmark.is-revealed .wordmark__char {
  opacity: 1;
  transform: translateY(0);
}

/* hairline underline: dormant in normal state, draws in on hover */
.wordmark::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.42em;
  height: 1px;
  background: var(--ink);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: opacity .35s var(--ease), transform .8s var(--ease-out);
}
.nav__brand:hover .wordmark::after,
.footer__brand:hover .wordmark::after {
  opacity: 0.65;
  transform: scaleX(1);
}
.nav__brand:hover .wordmark__a,
.nav__brand:hover .wordmark__b,
.footer__brand:hover .wordmark__a,
.footer__brand:hover .wordmark__b { letter-spacing: 0.22em; }
.nav__brand:hover .wordmark__amp,
.footer__brand:hover .wordmark__amp { color: var(--ink); }

/* sizes */
.wordmark--nav    { font-size: 22px; }
.wordmark--footer { font-size: 30px; }

@media (max-width: 1024px) { .wordmark--nav { font-size: 20px; } }
@media (max-width: 700px)  { .wordmark--nav { font-size: 17px; } }
@media (max-width: 420px)  { .wordmark--nav { font-size: 15px; } }
@media (max-width: 700px)  { .wordmark--footer { font-size: 24px; } }
@media (max-width: 480px)  { .wordmark--footer { font-size: 20px; } }
.nav__menu {
  display: flex;
  justify-content: center;
  gap: 36px;
}
.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.84;
  padding: 8px 4px;
  transition: opacity .2s;
}
.nav__link:hover { opacity: 1; }

.nav__cta {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 980px;
  background: var(--ink);
  color: var(--bg);
  transition: background .2s, transform .2s;
}
.nav__cta:hover { background: #000; transform: translateY(-1px); }

.nav__burger {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
}
.nav__burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); margin: 4px 0; transition: transform .3s, opacity .3s;
  border-radius: 1px;
}

@media (max-width: 880px) {
  .nav__menu {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(251,251,253,0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-110%);
    transition: transform .4s var(--ease);
    pointer-events: none;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav__menu.is-open { transform: translateY(0); pointer-events: auto; }
  .nav__menu .nav__link {
    padding: 16px max(var(--gutter), env(safe-area-inset-left));
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    min-height: 52px;
    display: flex; align-items: center;
  }
  .nav__menu .nav__link:last-child { border-bottom: 0; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(2.75px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { transform: translateY(-2.75px) rotate(-45deg); }
  .nav__inner { grid-template-columns: 1fr auto; }
}
@media (max-width: 540px) {
  .nav__menu { top: 56px; max-height: calc(100vh - 56px); }
}

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 980px;
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s, transform .25s, border-color .25s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: #000; transform: translateY(-1px); }

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

.btn--link {
  color: var(--link);
  background: none;
  padding: 14px 4px;
}
.btn--link:hover { text-decoration: underline; }
.btn--link span { transition: transform .25s; }
.btn--link:hover span { transform: translateX(4px); }

/* --- hero ----------------------------------------------------------------- */
.hero {
  padding: 140px 0 0;
  text-align: center;
  background: var(--bg);
  position: relative;
}
.hero__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-left)) 64px max(var(--gutter), env(safe-area-inset-right));
}
.hero__eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.hero__title {
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 28px;
}
.hero__lede {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 400;
}
.hero__actions {
  display: inline-flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center;
}

.hero__media {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero__media img {
  width: 100%;
  height: clamp(360px, 60vw, 680px);
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 80px -32px rgba(0,0,0,0.25);
}

@media (max-width: 1024px) {
  .hero { padding-top: 120px; }
  .hero__media img { height: clamp(320px, 56vw, 520px); border-radius: 22px; }
}
@media (max-width: 700px) {
  .hero { padding-top: 96px; }
  .hero__inner { padding-bottom: 48px; }
  .hero__media img { height: 280px; border-radius: 16px; }
  .hero__actions { flex-direction: column; gap: 12px; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
}

/* --- statement ------------------------------------------------------------ */
.statement {
  padding: 120px 0 80px;
  background: var(--bg);
}
@media (max-width: 700px) { .statement { padding: 72px 0; } }
.statement__eyebrow {
  font-size: 14px; font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0 0 24px;
}
.statement__title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  max-width: 1000px;
}

/* --- stats --------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 96px;
  border-top: 1px solid var(--line-soft);
}
.stat {
  padding: 40px 24px 12px 0;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; padding-right: 0; }
.stat__num {
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 2px;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.stat__unit { font-weight: 500; opacity: 0.65; font-size: 0.6em; }
.stat__label {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.45;
  max-width: 28ch;
}
@media (max-width: 1024px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line-soft); padding: 32px 20px 24px 0; }
  .stat:nth-child(2n) { border-right: 0; padding-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 540px) {
  .stats { grid-template-columns: 1fr; margin-top: 64px; }
  .stat, .stat:nth-child(2n) { border-right: 0; padding: 28px 0; }
  .stat:last-child { border-bottom: 0; }
  .stat:nth-last-child(2) { border-bottom: 1px solid var(--line-soft); }
}

/* --- section heads -------------------------------------------------------- */
.eyebrow {
  font-size: 13px; font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0 0 18px;
}
.section-head {
  padding-top: 0;
  margin-bottom: 56px;
  max-width: 880px;
}
.section-head--center { margin: 0 auto 56px; text-align: center; }
.section-title {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.section-lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 20px 0 0;
  max-width: 720px;
}
.section-head--center .section-lede { margin-left: auto; margin-right: auto; }

/* --- sectors grid (Apple-style hero cards) -------------------------------- */
.sectors {
  padding: 120px 0 80px;
  background: var(--bg);
}
.sectors__hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(280px, auto);
  gap: 16px;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  min-height: 420px;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -20px rgba(0,0,0,0.18); }
}
.card:active { transform: scale(0.99); }

.card--xl { grid-column: span 2; min-height: 520px; }
@media (max-width: 1024px) {
  .card { min-height: 360px; }
  .card--xl { min-height: 440px; }
}
@media (max-width: 700px) {
  .sectors__hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .card, .card--xl { grid-column: auto; min-height: 380px; }
}
@media (max-width: 480px) {
  .card, .card--xl { min-height: 340px; border-radius: 18px; }
}

.card__media {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--bg-alt);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.04); }

.card__body {
  padding: 24px 28px 28px;
  display: flex; flex-direction: column; gap: 8px;
}
@media (min-width: 1024px) {
  .card__body { padding: 28px 32px 32px; }
}
@media (max-width: 480px) {
  .card__body { padding: 22px 22px 24px; }
}
.card__tag {
  font-size: 12px; font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 4px;
}
.card__title {
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.card--xl .card__title { font-size: clamp(24px, 2.4vw, 36px); }
.card__sub {
  font-size: 15px; line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}
.card--ai .card__media {
  background: linear-gradient(135deg, #eef2f7 0%, #f5f5f7 60%, #ffffff 100%);
}

/* --- editorial deep-dive sections ----------------------------------------- */
.dive {
  position: relative;
  padding: 120px 0;
  background: var(--bg);
}
.dive--alt { background: var(--bg-alt); }
.dive__bg {
  position: relative;
  height: clamp(280px, 38vw, 520px);
  margin: 0 auto 56px;
  max-width: 1440px;
  padding: 0 var(--gutter);
}
.dive__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 22px;
}
@media (max-width: 1024px) { .dive { padding: 96px 0; } }
@media (max-width: 700px)  { .dive { padding: 80px 0; } .dive__bg img { border-radius: 16px; } .dive__bg { margin-bottom: 40px; } }

.dive__content { max-width: 880px; }
.dive__title {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 8px 0 24px;
}
.dive__lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 64ch;
}
.dive__list {
  display: grid; gap: 14px;
  margin-top: 24px;
}
.dive__list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.dive__list li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 14px; height: 1.5px;
  background: var(--ink);
  opacity: 0.65;
}

.dive__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.dive__split--reverse .dive__visual { grid-column: 1; grid-row: 1; }
.dive__split--reverse .dive__copy   { grid-column: 2; grid-row: 1; }
.dive__visual {
  position: relative;
  aspect-ratio: 5/6;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg-alt);
}
.dive__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (max-width: 1024px) {
  .dive__split, .dive__split--reverse { gap: 48px; }
}
@media (max-width: 880px) {
  .dive__split, .dive__split--reverse { grid-template-columns: 1fr; gap: 32px; }
  .dive__split--reverse .dive__visual,
  .dive__split--reverse .dive__copy { grid-column: 1; grid-row: auto; }
  .dive__visual { aspect-ratio: 4/3; }
}
@media (max-width: 480px) {
  .dive__visual { aspect-ratio: 5/4; border-radius: 18px; }
}

/* --- applied intelligence ------------------------------------------------- */
.ai {
  padding: 120px 0 100px;
  background: linear-gradient(180deg, var(--bg) 0%, #eef2f7 100%);
}
@media (max-width: 700px) { .ai { padding: 80px 0; } }
.ai__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.ai-card {
  padding: 36px 28px 32px;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.ai-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -16px rgba(0,0,0,0.12); }
.ai-card__num {
  font-size: 14px; font-weight: 500;
  color: var(--ink-mute);
  margin: 0 0 24px;
}
.ai-card h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.ai-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 1024px) { .ai__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ai__grid { grid-template-columns: 1fr; } }

/* --- approach ------------------------------------------------------------- */
.approach {
  padding: 120px 0;
  background: var(--bg);
}
@media (max-width: 700px) { .approach { padding: 80px 0; } }
.approach__steps {
  display: grid; gap: 0;
}
.approach__step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line-soft);
  align-items: start;
}
.approach__step:last-child { border-bottom: 1px solid var(--line-soft); }
.approach__step-num {
  font-size: 14px; font-weight: 500;
  color: var(--ink-mute);
  margin: 6px 0 0;
  letter-spacing: 0.04em;
}
.approach__step h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 12px;
}
.approach__step p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 64ch;
}
@media (max-width: 700px) {
  .approach__step { grid-template-columns: 1fr; gap: 8px; }
}

/* --- insights ------------------------------------------------------------- */
.insights {
  padding: 120px 0 100px;
  background: var(--bg-alt);
}
@media (max-width: 700px) { .insights { padding: 80px 0; } }
.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.insight {
  display: flex; flex-direction: column; gap: 14px;
  cursor: pointer;
}
.insight__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg-card);
}
.insight__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.insight:hover .insight__media img { transform: scale(1.04); }
.insight__meta {
  font-size: 13px; font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  margin: 6px 0 0;
}
.insight h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.insight p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 1024px) { .insights__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .insights__grid { grid-template-columns: 1fr; } }

/* --- presence ------------------------------------------------------------- */
.presence {
  padding: 120px 0;
  background: var(--bg);
}
.presence__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.city {
  padding: 36px 24px 36px 0;
  border-right: 1px solid var(--line-soft);
}
.city:last-child { border-right: 0; padding-right: 0; }
.city h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 10px;
}
.city p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.city__coord {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1180px) {
  .presence__grid { grid-template-columns: 1fr 1fr 1fr; }
  .city { border-bottom: 1px solid var(--line-soft); }
  .city:nth-child(3n) { border-right: 0; }
  .city:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 768px) {
  .presence { padding: 80px 0; }
  .presence__grid { grid-template-columns: 1fr 1fr; }
  .city { padding: 28px 20px 28px 0; border-right: 1px solid var(--line-soft); }
  .city:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .city:nth-child(2n) { border-right: 0; padding-right: 0; }
  .city:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .city:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .presence__grid { grid-template-columns: 1fr; }
  .city, .city:nth-child(2n), .city:nth-child(3n) { border-right: 0; padding: 24px 0; }
  .city:last-child { border-bottom: 0; }
}

/* --- contact -------------------------------------------------------------- */
.contact {
  padding: 120px 0 100px;
  background: var(--bg-alt);
}
@media (max-width: 700px) { .contact { padding: 80px 0; } }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 20px 0 36px;
  max-width: 50ch;
}
.contact__list {
  display: grid; gap: 18px;
  margin: 0;
}
.contact__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 480px) {
  .contact__row { grid-template-columns: 1fr; gap: 6px; }
}
.contact__row dt {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-mute);
}
.contact__row dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}
.contact__row a { color: var(--link); }
.contact__row a:hover { text-decoration: underline; }

.contact__form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 13px; font-weight: 500;
  color: var(--ink-mute);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
}
.field textarea { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(29, 29, 31, 0.08);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1L6 6L11 1' stroke='%231d1d1f' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.contact__submit { grid-column: 1 / -1; justify-self: start; }
.contact__note {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
}
@media (max-width: 1024px) {
  .contact__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .contact__form { grid-template-columns: 1fr; padding: 24px; }
  .contact__submit { width: 100%; justify-content: center; }
}

/* --- footer --------------------------------------------------------------- */
.footer {
  background: var(--bg);
  padding: 64px 0 max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 56px;
}
.wordmark--footer { margin-bottom: 22px; }
.footer__brand p {
  font-size: 14px;
  color: var(--ink-mute);
  max-width: 32ch;
  margin: 0;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer__col h4 {
  font-size: 13px; font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0 0 16px;
}
.footer__col a, .footer__col span {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 12px;
  padding: 2px 0;
  transition: color .2s;
}
.footer__col a:hover { color: var(--accent); }

.footer__strip {
  display: flex; justify-content: flex-start; gap: 24px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-mute);
}
.footer__strip a:hover { color: var(--ink); }

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* --- reveals -------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* --- accessibility -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
