/* ============================================================
   ATLASION — design tokens
   ============================================================ */
:root {
  --forest-deep: #0a2b20;
  --forest: #0f3d2e;
  --forest-soft: #16513d;
  --gold: #b8912f;
  --gold-light: #d9bd6f;
  --terracotta: #c1592b;
  --terracotta-light: #e08a5f;
  --sky: #3f6e8c;
  --paper: #faf9f5;
  --sand: #f1eee3;
  --ink: #1c1c1a;
  --ink-soft: #55554e;
  --line: #e2ded0;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 6px;
  --glow: rgba(184, 145, 47, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--forest-deep);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 0.9em;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--forest-deep);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent;
  border-color: rgba(250,249,245,0.4);
  color: var(--paper);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--line);
  color: var(--forest-deep);
}
.btn-outline-dark:hover { border-color: var(--forest); background: var(--sand); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header.is-solid {
  background: rgba(250,249,245,0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}
.site-header:not(.is-solid) {
  background: rgba(10,43,32,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.05em;
}
.site-header.is-solid .brand { color: var(--forest-deep); }
.brand .mark {
  height: 36px;
  width: auto;
  flex: none;
  object-fit: contain;
  display: block;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-brand-row .mark { height: 30px; width: auto; flex: none; object-fit: contain; display: block; }

/* ---------- Real photography frames ---------- */
.framed-photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(217,189,111,0.35);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.55);
}
.framed-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.framed-photo.tall { aspect-ratio: 5 / 6; }
.framed-photo.wide { aspect-ratio: 16 / 9; }

.cities-accordion {
  display: flex;
  gap: 8px;
  margin: 40px 0 0;
  height: 380px;
}
.acc-panel {
  position: relative;
  flex: 1;
  min-width: 60px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: flex 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
}
.acc-panel.is-expanded { flex: 6; }
.acc-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.acc-panel .acc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,43,32,0.85) 0%, rgba(10,43,32,0.05) 45%, rgba(10,43,32,0.35) 100%);
  transition: opacity 0.4s ease;
}
.acc-panel .acc-label {
  position: absolute;
  left: 18px;
  right: 14px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--paper);
}
.acc-panel .acc-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: writing-mode 0s, transform 0s;
}
.acc-panel.is-expanded .acc-name {
  writing-mode: horizontal-tb;
  transform: none;
}
.acc-panel .acc-tag {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  transition: opacity 0.3s ease 0.15s;
  white-space: nowrap;
}
.acc-panel.is-expanded .acc-tag { opacity: 1; }
.acc-panel .acc-desc {
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(250,249,245,0.9);
  max-width: 320px;
  white-space: normal;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.4s ease;
}
.acc-panel.is-expanded .acc-desc {
  max-height: 120px;
  opacity: 1;
  transition: opacity 0.4s ease 0.2s, max-height 0.5s ease 0.1s;
}
@media (max-width: 760px) {
  .acc-panel .acc-desc { max-width: none; }
}
@media (max-width: 760px) {
  .cities-accordion { flex-direction: column; height: auto; gap: 8px; }
  .acc-panel { height: 64px; min-width: 0; transition: flex 0.4s ease; }
  .acc-panel.is-expanded { flex: none; height: 220px; }
  .acc-panel .acc-name { writing-mode: horizontal-tb; transform: none; }
}

.cta-photo {
  position: relative;
  background-image: linear-gradient(rgba(10,43,32,0.86), rgba(10,43,32,0.93)), url("images/casablanca.jpeg");
  background-size: cover;
  background-position: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a.navlink {
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(250,249,245,0.85);
  position: relative;
  padding-bottom: 4px;
}
.site-header.is-solid .nav a.navlink { color: var(--ink); }
.nav a.navlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.nav a.navlink:hover::after,
.nav a.navlink.is-active::after { width: 100%; }
.nav a.navlink.is-active { color: var(--gold); }
.site-header.is-solid .nav a.navlink.is-active { color: var(--gold); }

.lang-switcher { position: relative; }
.lang-trigger {
  border: 1px solid rgba(250,249,245,0.4);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-header.is-solid .lang-trigger { border-color: var(--line); color: var(--forest-deep); }
.lang-trigger:hover { border-color: var(--gold); color: var(--gold); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(20, 30, 25, 0.14);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 40;
}
.lang-switcher.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu button {
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.86rem;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-menu button:hover { background: var(--sand); }
.lang-menu button.is-active { color: var(--gold); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--paper);
  transition: background 0.2s ease;
}
.site-header.is-solid .nav-toggle span { background: var(--forest-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--forest-deep) 0%, var(--forest) 100%);
  padding: 190px 0 0;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  animation: aurora-drift 22s ease-in-out infinite alternate;
}
.hero::before {
  width: 520px; height: 520px;
  top: -160px; right: -80px;
  background: radial-gradient(circle, rgba(217,189,111,0.5) 0%, rgba(217,189,111,0) 70%);
}
.hero::after {
  width: 460px; height: 460px;
  bottom: -220px; left: 8%;
  background: radial-gradient(circle, rgba(22,81,61,0.9) 0%, rgba(22,81,61,0) 70%);
  animation-delay: -9s;
  animation-direction: alternate-reverse;
}
@keyframes aurora-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.15); }
}
.hero .container::before {
  content: "";
  position: absolute;
  inset: -60px -32px auto -32px;
  height: 480px;
  background-image: radial-gradient(rgba(250,249,245,0.14) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-bottom: 90px;
}
.hero-copy, .hero-graphic { position: relative; z-index: 1; }
.hero-copy .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--paper); margin-bottom: 0.4em; }
.hero p.lead {
  color: rgba(250,249,245,0.8);
  font-size: 1.12rem;
  max-width: 46ch;
  margin-bottom: 2em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-graphic { position: relative; }
.hero-graphic svg { width: 100%; height: auto; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--forest);
  display: block;
  margin-bottom: 4px;
}
.stat .label { font-size: 0.92rem; color: var(--ink-soft); max-width: 30ch; }

/* journey strip: flowing connected path, no numbers, top-aligned so every card lines up */
.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  column-gap: 18px;
  padding-top: 30px;
}
.journey::before {
  content: "";
  position: absolute;
  top: 5px;
  left: calc(50% / 7);
  right: calc(50% / 7);
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--sky) 100%);
  opacity: 0.4;
}
.journey-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 4px 22px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease;
}
.journey-step .js-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
  margin-bottom: 20px;
  flex: none;
  transition: transform 0.25s ease, background 0.25s ease;
}
.journey-step:hover, .journey-step:focus-within { border-color: var(--gold); }
.journey-step:hover .js-dot, .journey-step:focus-within .js-dot {
  background: var(--gold);
  transform: scale(1.3);
}
.journey-step h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--forest-deep);
}
.journey-step p { font-size: 0.88rem; margin: 0; max-width: none; color: var(--ink-soft); }

/* unit cards (business units page) */
.units-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.unit-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  background: var(--forest-deep);
  box-shadow: 0 10px 30px -18px rgba(10,43,32,0.4);
}
.unit-card .u-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.unit-card:hover .u-photo, .unit-card:focus-within .u-photo { transform: scale(1.06); }
.unit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,43,32,0) 35%, rgba(10,43,32,0.82) 78%, rgba(10,43,32,0.94) 100%);
  transition: background 0.35s ease;
  z-index: 1;
}
.unit-card:hover::before, .unit-card:focus-within::before {
  background: linear-gradient(180deg, rgba(10,43,32,0.18) 0%, rgba(10,43,32,0.88) 42%, rgba(10,43,32,0.96) 100%);
}
.unit-card .u-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 26px 24px;
  z-index: 2;
  color: var(--paper);
}
.unit-card h3 {
  color: var(--paper);
  margin: 0 0 8px;
  font-size: 1.22rem;
}
.unit-card p {
  max-width: none;
  color: rgba(250,249,245,0.88);
  font-size: 0.94rem;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease;
}
.unit-card:hover p, .unit-card:focus-within p {
  max-height: 240px;
  opacity: 1;
  margin-top: 4px;
}
.unit-card .u-accent {
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  margin-bottom: 12px;
  transition: width 0.3s ease;
}
.unit-card:hover .u-accent, .unit-card:focus-within .u-accent { width: 52px; }
@media (max-width: 900px) {
  .units-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .units-grid { grid-template-columns: 1fr; }
  .unit-card { aspect-ratio: 4 / 3; }
  .unit-card p { max-height: 240px; opacity: 1; margin-top: 4px; }
}

/* city list (markets page) */
.city-list { border-top: 1px solid var(--line); }
.city-row {
  display: grid;
  grid-template-columns: 110px 200px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.city-row .c-photo {
  width: 110px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.city-row h3 { margin: 0; color: var(--forest-deep); }
.city-row p { margin: 0; max-width: 58ch; }

.market-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
  margin-top: 10px;
}
.market-col {
  border-top: 2px solid var(--gold);
  padding-top: 16px;
  transition: transform 0.25s ease;
}
.market-col:hover, .market-col:focus-within { transform: translateY(-4px); }
.market-col .mc-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  margin-bottom: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.market-col:hover .mc-dot, .market-col:focus-within .mc-dot {
  transform: scale(1.6);
  box-shadow: 0 0 0 6px rgba(184,145,47,0.18);
}
.market-col h4 { margin: 0 0 8px; font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--forest-deep); }

/* offices grid (presence page) */
.region-block { margin-bottom: 42px; }
.region-block h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--gold);
  margin-bottom: 16px;
}
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.office-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
}
.office-card .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  margin-bottom: 14px;
}
.office-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--forest-deep);
  letter-spacing: normal;
  margin-bottom: 4px;
}
.office-card span.country { font-size: 0.88rem; color: var(--ink-soft); }

/* contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-deep);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-status { margin: 16px 0 0; font-size: 0.94rem; min-height: 1.4em; }
.form-status.is-success { color: var(--forest-soft); }
.form-status.is-error { color: var(--terracotta); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.contact-info dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-info dd {
  margin: 0 0 26px;
  font-size: 1.02rem;
  color: var(--forest-deep);
}

/* CTA band */
.cta-band {
  background: var(--forest-deep);
  padding: 90px 0;
  text-align: center;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(250,249,245,0.75); margin: 0 auto 2em; }
.cta-band .btn-row { display: flex; justify-content: center; gap: 16px; }

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: rgba(250,249,245,0.65);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(250,249,245,0.08);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,249,245,0.1);
  margin-bottom: 24px;
}
.footer-brand { color: var(--paper); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 10px; }
.footer-col h5 {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--gold-light);
  margin: 0 0 14px;
  font-weight: 700;
}
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; margin-bottom: 10px; color: rgba(250,249,245,0.65); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ---------- Reveal on scroll ---------- */
.reveal-init {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.reveal-init.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-init { opacity: 1; transform: none; transition: none; }
}

/* ---------- Interactive cards (tilt + glow) ---------- */
.journey-step, .unit-card, .office-card {
  will-change: transform;
  transform-style: preserve-3d;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.journey-step:hover, .unit-card:hover {
  box-shadow: inset 0 0 0 1px var(--gold);
}
.office-card {
  overflow: hidden;
}
.office-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.office-card:hover::before { opacity: 1; }
.office-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* Magnetic-feeling buttons */
.btn-gold {
  position: relative;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn-gold:hover {
  box-shadow: 0 6px 24px -4px var(--glow);
}

/* Animated underline reveal for section heads */
.section-head .eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- Page load + cross-page transitions ---------- */
body { animation: page-fade-in 0.5s ease both; }
@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}
::view-transition-old(root) { animation: 0.35s ease both vt-fade-out; }
::view-transition-new(root) { animation: 0.4s ease both vt-fade-in; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Photographic-style hero variants (illustrated, not stock) ---------- */
.hero-photo {
  padding: 190px 0 0;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 20% 0%, rgba(184,145,47,0.28), transparent 60%),
    radial-gradient(ellipse 70% 70% at 90% 100%, rgba(63,110,140,0.35), transparent 60%),
    linear-gradient(180deg, var(--forest-deep) 0%, var(--forest) 60%, var(--forest-soft) 100%);
  z-index: 0;
}
.hero-photo .texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}
.hero-photo .texture svg { width: 100%; height: 100%; }

.hero-photo.has-bg::before {
  background:
    linear-gradient(180deg, rgba(10,43,32,0.82) 0%, rgba(15,61,46,0.68) 45%, rgba(22,81,61,0.9) 100%),
    var(--hero-bg) center/cover no-repeat;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
}
.hero-photo.has-video::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,43,32,0.6) 0%, rgba(15,61,46,0.35) 45%, rgba(22,81,61,0.75) 100%);
}
.hero-photo.has-video { min-height: 620px; }
@media (max-width: 760px) {
  .hero-photo.has-video { min-height: 480px; }
}

/* Tag chips for city/market variety */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(193,89,43,0.1);
  color: var(--terracotta);
  margin-bottom: 10px;
}
.city-row .tag-chip { margin-bottom: 6px; }

/* ---------- About page ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--sky);
  box-shadow: 0 14px 34px -18px rgba(63,110,140,0.5);
}
.value-card .v-icon {
  width: 42px; height: 42px;
  margin-bottom: 16px;
}
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-split .about-art { position: relative; }
.about-split-single {
  grid-template-columns: 1fr;
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}

/* ---------- Globe / global presence ---------- */
.globe-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}
.globe-wrap {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 24px 60px -32px rgba(10,43,32,0.35);
}
.globe-wrap svg { width: 100%; height: auto; display: block; }
.map-land { fill: var(--forest-deep); stroke: var(--forest-deep); stroke-width: 0.6; }
.globe-pin { cursor: pointer; }
.globe-pin circle.pulse {
  transform-origin: center;
  animation: pin-pulse 2.6s ease-out infinite;
}
.globe-pin.pin-hq circle.pulse { animation-delay: 0s; }
.globe-pin .dot { transition: r 0.2s ease, filter 0.2s ease; transform-origin: center; }
.globe-pin.is-active .dot { r: 7; filter: drop-shadow(0 0 6px rgba(217,189,111,0.9)); }
.globe-pin.is-active circle.pulse { animation-duration: 1.1s; }
@keyframes pin-pulse {
  0% { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}
.globe-link {
  stroke-dasharray: 4 5;
  animation: dash-flow 6s linear infinite;
  opacity: 0.75;
  transition: opacity 0.2s ease, stroke-width 0.2s ease;
}
.globe-link.is-active {
  opacity: 1;
  stroke-width: 2.4;
  stroke: var(--terracotta);
}
@media (prefers-reduced-motion: reduce) {
  .globe-pin circle.pulse { animation: none; opacity: 0; }
  .globe-link { animation: none; }
}
@keyframes dash-flow { to { stroke-dashoffset: -100; } }

.globe-tooltip {
  position: absolute;
  transform: translate(-50%, -130%);
  background: var(--forest-deep);
  color: var(--paper);
  border: 1px solid rgba(217,189,111,0.5);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 5;
}
.globe-tooltip.is-visible { opacity: 1; visibility: visible; }

.office-list-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  margin: 0 -6px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.office-list-row:hover, .office-list-row.is-active, .office-list-row:focus-visible {
  background: rgba(217,189,111,0.12);
  outline: none;
}
.office-list-row .dot-mark {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  transition: transform 0.18s ease;
}
.office-list-row .dot-mark.hq { background: var(--terracotta); width: 10px; height: 10px; }
.office-list-row.is-active .dot-mark { transform: scale(1.4); }
.office-list-row .name { font-weight: 600; color: var(--forest-deep); }
.office-list-row .role { font-size: 0.85rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-graphic { max-width: 340px; }
  .stat-row { grid-template-columns: 1fr; gap: 20px; }
  .journey { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .journey::before { display: none; }
  .units-grid { grid-template-columns: 1fr; }
  .city-row { grid-template-columns: 90px 1fr; gap: 16px; }
  .city-row div:last-child { grid-column: 1 / -1; margin-top: 10px; }
  .market-cols { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--forest-deep);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a.navlink { color: var(--paper); font-size: 1.1rem; }
  .lang-trigger { border-color: rgba(250,249,245,0.4); color: var(--paper); }
  .nav-toggle { display: block; }
  .site-header.is-solid .nav-toggle span { background: var(--forest-deep); }
}

@media (max-width: 600px) {
  .office-grid { grid-template-columns: 1fr; }
}
