/* TRP Legal — editorial, cinematic */

@font-face {
  font-family: 'Benzin';
  src: url('fonts/benzin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0a08;
  --bg-soft: #141210;
  --ink: #f2ede2;
  --ink-dim: #a39c8c;
  --ink-faint: #5a544a;
  --accent: #c8a35b;
  --rule: #2a2621;

  --font-display: 'Benzin', sans-serif;
  --font-body: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --section-width: 1200px;
}

[data-palette="ivory"] {
  --bg: #f2ede2;
  --bg-soft: #e8e1d2;
  --ink: #141210;
  --ink-dim: #4a443a;
  --ink-faint: #9b9486;
  --accent: #7a3e2f;
  --rule: #cfc7b6;
}
[data-palette="navy"] {
  --bg: #0a1623;
  --bg-soft: #0f1d2e;
  --ink: #e8eef5;
  --ink-dim: #8a9bb0;
  --ink-faint: #4a5a70;
  --accent: #b89555;
  --rule: #1f2e42;
}
[data-palette="ink"] {
  --bg: #fafaf7;
  --bg-soft: #f0f0eb;
  --ink: #0a0a0a;
  --ink-dim: #4a4a4a;
  --ink-faint: #9a9a9a;
  --accent: #1a1a1a;
  --rule: #d8d6cf;
}


* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
}

#nav-root {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

#root {
  width: 100%;
  padding-top: var(--nav-h, 60px);
}

.scroll-root {
  width: 100%;
}

.hero-sticky::before {
  content: '';
  position: absolute;
  top: 20px; left: 20px; right: 20px; bottom: 20px;
  border: 2px solid #B69147;
  pointer-events: none;
  z-index: 10;
}
@media (max-width: 640px) {
  .hero-sticky::before { top: 12px; left: 12px; right: 12px; bottom: 12px; border-color: #B69147; }
}

.grain { display: none; }

/* ============ NAV ============ */
.nav {
  z-index: 50;
  padding: 12px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: color-mix(in srgb, #0C2744 calc(var(--nav-bg-p, 0) * 100%), #000912);
  color: #fff;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.nav-logo {
  position: absolute;
  left: 40px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-style: italic;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.2,.7,.2,1);
  text-transform: none;
}
.nav-logo.visible { opacity: 1; transform: translateY(0); }
.nav-logo img { height: 24px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 0.6; }

.nav-actions {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-contact-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  padding: 7px 10px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.nav-contact-btn:hover {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.18);
}

.nav-burger {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 0;
  z-index: 60;
  color: inherit;
  flex-shrink: 0;
  position: relative;
}
.nav-burger span {
  display: block;
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), top 0.3s cubic-bezier(.2,.7,.2,1);
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

/* ============ LANG SWITCH ============ */
.lang-switch {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  transition: opacity 0.2s;
}
.lang-switch:hover { opacity: 0.6; }
.lang-switch span { opacity: 0.45; transition: opacity 0.2s; }
.lang-switch span.active { opacity: 1; }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: calc(var(--content-vh, var(--app-vh, 100vh)) * 3);
}
.hero-sticky {
  position: sticky;
  top: var(--nav-h, 60px);
  height: var(--content-vh, var(--app-vh, 100vh));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000912;
}
.globe-canvas {
  filter: blur(var(--globe-blur, 6px));
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.globe-atm {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 50% 50%,
      transparent 0%,
      transparent 45%,
      rgba(80, 170, 255, 0.04) 47%,
      rgba(92, 190, 255, 0.10) 49%,
      rgba(120, 210, 255, 0.12) 50%,
      rgba(80, 170, 255, 0.04) 53%,
      transparent 58%
    ),
    radial-gradient(circle at 50% 50%, rgba(40, 110, 190, 0.10) 0%, transparent 60%);
}
.hero-glare {
  position: absolute;
  inset: -60px;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  filter: blur(28px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 12%, black 45%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 12%, black 45%);
  background: conic-gradient(
    from calc(var(--beam-angle, 218deg) - 28deg) at 72% 5%,
    transparent 0deg,
    rgba(255, 250, 220, 0.06) 12deg,
    rgba(255, 252, 230, 0.22) 28deg,
    rgba(255, 250, 220, 0.06) 44deg,
    transparent 56deg
  );
}
.hero-tagline {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Benzin', var(--font-mono);
  font-size: clamp(7px, 1.89vw, 17px);
  letter-spacing: clamp(0.05em, 0.12vw, 0.15em);
  text-transform: uppercase;
  color: #B69147;
  text-align: center;
  width: max-content;
  max-width: calc(100vw - 32px);
  white-space: normal;
  line-height: 1.4;
  z-index: 2;
}
.logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  will-change: transform, opacity;
  position: relative;
  z-index: 1;
}
.logo-mark {
  font-family: 'Benzin', var(--font-display);
  font-weight: 400;
  font-size: 42vw;
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  justify-content: center;
  position: relative;
}
.logo-mark img { width: 70vw; max-width: 1400px; height: auto; display: block; }
.logo-mark .letter {
  display: inline-block;
  will-change: transform, opacity;
  font-style: italic;
}
.logo-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.6s ease, transform 0.8s 0.6s ease;
}
.logo-lockup.loaded .logo-tagline { opacity: 1; transform: translateY(0); }
.hero-meta {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}
.hero-meta.tl { top: 120px; left: 40px; }
.hero-meta.tr { top: 120px; right: 40px; text-align: right; }
.hero-meta.bl { bottom: 40px; left: 40px; }
.hero-meta.br { bottom: 40px; right: 40px; text-align: right; }
.hero-meta .k { color: var(--ink-faint); display: block; margin-bottom: 4px; }
.hero-meta .v { color: var(--ink); }
@keyframes fadeIn { to { opacity: 1; } }
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  animation: fadeIn 1s 1.8s forwards, bob 2s 2s infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============ SECTIONS ============ */
.sections-bg {
  background: #FAF6EB;
  color: #0C2744;
}
.team-page-bg .presence-section,
.team-page-bg .team-page-section {
  min-height: var(--content-vh, var(--app-vh, 100vh));
  padding-top: 50px;
}
.section {
  padding: 160px 40px;
  position: relative;
  max-width: var(--section-width);
  margin-left: auto;
  margin-right: auto;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: 'Benzin', var(--font-display);
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 50px;
  max-width: 20ch;
  text-wrap: balance;
  padding: 0 20px;
}
.section-title em { font-style: italic; color: var(--accent); }

/* ============ ABOUT ============ */
#about {
  background: none;
  color: #fff;
  position: relative;
  isolation: isolate;
  min-height: var(--content-vh, var(--app-vh, 100vh));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#about::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 6px;
  background: #B69147;
}
#about::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: #0C2744;
  z-index: -1;
}
.about-inner {
  position: relative;
  z-index: 1;
}

.about-map-wrap {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  pointer-events: none;
  z-index: 0;
}
.about-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.about-map-land {
  fill: none;
  stroke: #c8dff5;
  stroke-width: 0.55;
  opacity: 0.18;
}
.about-map-wave {
  fill: none;
  stroke: #c8a35b;
  stroke-width: 1.6;
  opacity: 0.55;
  stroke-linecap: round;
}

.about-body {
  font-size: 16px;
  line-height: 1.7;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}
.about-body p {
  background: rgba(12, 39, 68, 0.55);
  padding: 18px 22px;
}
.about-block {
  background: rgba(12, 39, 68, 0.55);
  padding: 20px 22px;
}
.about-block h3 {
  margin: 0 0 10px;
  font-family: 'Benzin', var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  color: #c8a35b;
}
.about-block p {
  background: none;
  padding: 0;
  margin: 0;
}
.about-block p + p {
  margin-top: 10px;
}

/* ============ PRACTICE ARCS ============ */
.practice-arcs-wrap {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  pointer-events: none;
  overflow: hidden;
}
.practice-arcs-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.practice-arc {
  fill: none;
  stroke: #c8a35b;
  stroke-width: 0.9;
  opacity: 0.13;
}

/* ============ PRACTICE ============ */
.practice-categories {
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.practice-category-title {
  font-family: 'Benzin', var(--font-display);
  font-size: 20px;
  color: #0C2744;
  margin-bottom: 28px;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.practice-category-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.7;
  margin-top: 2px;
}
@media (min-width: 641px) {
  .practice-category-icon { margin-top: 6px; }
}
.practice-row-outer {
  width: 100vw;
  position: relative;
  overflow: hidden;
  margin: 12px 0 12px calc(50% - 50vw);
}
.practice-track {
  display: flex;
  gap: 24px;
  will-change: transform;
}
.practice-slide {
  flex: 0 0 min(62vw, 820px);
  max-width: 820px;
  font-size: 14px;
  line-height: 1.7;
  color: #ccc;
  text-align: justify;
  background: none;
  user-select: text;
  transition: color 1s ease !important;
}
.practice-slide.active {
  color: #0C2744;
}
.practice-slide strong {
  font-weight: 600;
  font-style: normal;
}
.practice-slide em {
  font-style: italic;
  font-weight: 400;
}
.practice-slide:not(.active) {
  cursor: pointer;
}
/* ============ TEAM ============ */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.team-page-head {
  position: relative;
  width: 100vw;
  min-height: 450px;
  margin: 0 0 52px calc(50% - 50vw);
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    linear-gradient(rgba(12, 39, 68, 0.68), rgba(12, 39, 68, 0.68)),
    url('../team-hero.jpg') center / cover no-repeat;
  color: #FAF6EB;
}

.team-page-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #B69147;
}

.team-page-head-inner {
  width: min(var(--section-width), 100%);
  margin: 0 auto;
  padding: 0 40px;
}

.team-page-kicker {
  font-family: 'Benzin', var(--font-display);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B69147;
  margin-bottom: 18px;
}

.team-page-title {
  font-family: 'Benzin', var(--font-display);
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 50px;
  max-width: 20ch;
  text-wrap: balance;
  padding: 0 20px;
  color: inherit;
}

.team-page-lead {
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.75;
  color: inherit;
  margin: 0 20px;
  text-align: left;
}

.team-page-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 70px;
  background: rgba(12, 39, 68, 0.18);
}

.team-page-summary > div {
  background: #FAF6EB;
  padding: 24px 28px 28px;
}

.team-page-summary span {
  display: block;
  margin-bottom: 8px;
  font-family: 'Benzin', var(--font-display);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0;
  text-transform: none;
  color: #0C2744;
}

.team-page-summary p {
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.75;
  color: #0C2744;
}

.team-member-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  align-items: start;
  background: #FAF6EB;
}

.team-photo-wrap { position: relative; }

.team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  display: block;
}

.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 40px 36px;
}

.team-role {
  font-family: 'Benzin', var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #888;
}

.team-practice-name {
  font-family: 'Benzin', var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #b07a30;
  margin-top: 2px;
}

.team-name {
  font-family: 'Benzin', var(--font-display);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.06em;
  color: #0C2744;
  line-height: 1.15;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.team-degree {
  font-family: 'Benzin', var(--font-display);
  font-size: 0.5em;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #888;
  white-space: nowrap;
}

.team-bio {
  font-size: 15px;
  line-height: 1.8;
  color: #0C2744;
  text-align: justify;
}

.team-contacts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.team-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid #0C2744;
  font-family: 'Benzin', var(--font-display);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0C2744;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.team-contact-link:hover {
  background: #0C2744;
  color: #FAF6EB;
}

.presence-hero {
  position: relative;
  width: 100vw;
  min-height: 450px;
  margin: 0 0 44px calc(50% - 50vw);
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    linear-gradient(rgba(12, 39, 68, 0.68), rgba(12, 39, 68, 0.68));
  color: #FAF6EB;
}

.presence-hero.loaded {
  background-image:
    linear-gradient(rgba(12, 39, 68, 0.68), rgba(12, 39, 68, 0.68)),
    url('../geography-eiffel.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.presence-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #B69147;
}

.presence-hero-inner {
  width: min(var(--section-width), 100%);
  margin: 0 auto;
  padding: 0 40px;
}

.presence-hero .section-title {
  color: inherit;
}

.presence-lead {
  font-size: 15px;
  line-height: 1.75;
  color: #0C2744;
  max-width: 58ch;
  margin: -18px 20px 44px;
}

.presence-hero .presence-lead {
  max-width: 68ch;
  color: inherit;
  margin: 0 20px;
  text-align: left;
}

.presence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.team-page-presence {
  margin-bottom: 70px;
}

.presence-panel {
  padding: 18px 20px;
}

.presence-kicker {
  font-family: 'Benzin', var(--font-display);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0;
  text-transform: none;
  color: #0C2744;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.presence-kicker svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.presence-panel p {
  font-size: 15px;
  line-height: 1.75;
  color: #0C2744;
  margin-bottom: 18px;
}

.presence-city-map {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 250;
  margin: 8px 0 22px;
  overflow: hidden;
  background: transparent;
}

.presence-equal-earth-map {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  border: 1px solid #B69147;
}

.presence-country-border {
  fill: none;
  stroke: rgba(12, 39, 68, 0.28);
  stroke-width: 0.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.presence-crimea-line {
  fill: none;
  stroke: rgba(12, 39, 68, 0.28);
  stroke-width: 0.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.presence-map-city circle {
  fill: #B7342C;
}

.presence-map-city text {
  font-family: 'Benzin', var(--font-display);
  font-size: 6px;
  line-height: 1;
  letter-spacing: 0.04em;
  fill: #0C2744;
}

.presence-offices-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 28px auto 0;
  padding: 0 16px;
  list-style: none;
  max-width: 600px;
  box-sizing: border-box;
}

.presence-office-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #0C2744;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .presence-offices-list {
    gap: 8px 14px;
    padding: 0 12px;
  }
  .presence-office-item {
    font-size: 13px;
    gap: 6px;
  }
}

.presence-office-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #B7342C;
  flex-shrink: 0;
}

/* ============ FOOTER ============ */
.footer {
  padding: 40px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  background: #0C2744;
  color: rgba(255,255,255,0.4);
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.presence-section {
  padding-top: 0;
}

/* ============ TABLET (≤768px) ============ */
@media (max-width: 768px) {
  .nav { padding: 14px 20px; justify-content: center; }
  .nav-logo {
    position: static;
    left: auto;
    transform: translateY(24px);
    display: flex;
    align-items: center;
  }
  .nav-logo.visible { transform: translateY(0); }
  .nav-logo img { height: 28px; }
  .nav-actions { right: 20px; gap: 8px; }
  .nav-contact-btn { right: auto; left: 6px; }
  .nav-burger { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    width: 100%;
    background: color-mix(in srgb, #0C2744 calc(var(--nav-bg-p, 0) * 100%), #000912);
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.55s cubic-bezier(.7,0,.15,1), padding 0.55s cubic-bezier(.7,0,.15,1);
    z-index: 50;
    pointer-events: none;
  }
  .nav-links.open {
    max-height: 600px;
    padding: 20px;
    pointer-events: auto;
  }
  .nav-links a {
    position: relative;
    color: var(--ink);
    font-family: 'Inter Tight', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.2,1), color 0.2s ease;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease, left 0.3s ease;
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-links a:hover::after { width: 100%; left: 0; }
  .nav-links.open a { opacity: 1; transform: translateY(0); }
  .nav-links.open a:nth-child(1) { transition-delay: 0.10s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.16s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.22s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.28s; }
  .nav-links .lang-switch {
    padding: 8px 0;
    color: var(--accent);
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.2,1), color 0.2s ease;
  }
  .nav-links.open .lang-switch { opacity: 1; transform: translateY(0); transition-delay: 0.34s; }
  .section { padding: 90px 24px; }
  .section-title { margin-bottom: 56px; }
  .hero-meta.tl, .hero-meta.tr, .hero-meta.bl, .hero-meta.br { display: none; }
  .logo-mark img { width: 80vw; max-width: 80vw; }
  .about-map-wrap { left: 0; transform: none; width: 100%; }
  .practice-arcs-wrap { left: 0; transform: none; width: 100%; }
}

/* ============ PHONE (≤640px) ============ */
@media (max-width: 640px) {
  .nav { padding: 12px 16px; }
  .nav-logo img { height: 24px; }
  .nav-actions { right: 16px; }
  .section { padding: 64px 18px; }
  .section-label { margin-bottom: 28px; font-size: 10px; }
  .section-title { margin-bottom: 36px; }
  .practice-category-title { font-size: 16px; }
  .presence-hero { min-height: 420px; margin-bottom: 30px; padding: 38px 0; }
  .presence-hero-inner { padding: 0 18px; }
  .presence-lead { margin: -8px 0 30px; font-size: 15px; }
  .presence-hero .presence-lead { margin: 0 20px; }
  .presence-kicker { font-size: 15px; }
  .presence-grid { grid-template-columns: 1fr; gap: 28px; }
  .presence-panel { padding: 16px 0 0; }
  .team-page-presence { margin-bottom: 42px; }
  .presence-city-map { aspect-ratio: 600 / 250; margin-bottom: 18px; }
  .presence-map-pin text { font-size: 14px; }
  .team-page-head { min-height: 420px; padding: 38px 0; margin-bottom: 34px; }
  .team-page-head-inner { padding: 0 18px; }
  .team-page-lead { font-size: 15px; }
  .team-page-summary { grid-template-columns: 1fr; margin-bottom: 42px; }
  .team-page-summary > div { padding: 20px; }
  .logo-mark img { width: 86vw; max-width: 86vw; }
  .hero-tagline { bottom: 24px; }
  .footer { padding: 24px 16px; flex-direction: column; gap: 8px; text-align: center; }
  .footer-right { flex-direction: column; gap: 8px; }
  .team-member-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .team-info { padding: 16px 12px 20px; gap: 8px; }
  .team-name { font-size: clamp(18px, 2vw, 24px); letter-spacing: 0.03em; }
  .team-role { font-size: 12px; }
  .team-degree { font-size: 0.45em; }
  .team-contacts { gap: 4px; margin-top: 10px; }
  .team-contact-link { font-size: 10px; padding: 7px 12px; min-height: 32px; letter-spacing: 0.05em; }
  .team-photo,
  .team-photo-placeholder {
    aspect-ratio: 3 / 4;
    width: 50%;
    object-fit: cover;
  }
  .team-bio { max-width: 100%; font-size: 14px; line-height: 1.6; }
  .team-photo-wrap { padding: 0 20px; }
  .section-title { padding: 0 20px; }
}

/* ============ NARROW (≤380px) ============ */
@media (max-width: 380px) {
  .nav-logo img { height: 22px; }
}
