/* All OverSeas LTD
   Black / white bands with faint chart survey marks, Segoe UI throughout,
   square-cornered everything, one accent (AOS blue). */


:root {
  --ink: #050607;
  --paper: #ffffff;
  --bar: #f2f2f2;
  --text: #0b0b0b;
  --text-soft: #3d3d3d;
  --text-faint: #7a7a7a;
  --on-ink: #ffffff;
  --on-ink-soft: rgba(255, 255, 255, 0.78);
  --accent: #3a78c2;
  --line: #dcdcdc;

  --display: "Segoe UI", "Segoe UI Variable Display", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Segoe UI", "Segoe UI Variable Text", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 96px);
  --header-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-raise: 1;
  --z-header: 20;
  --z-pop: 30;
  --z-menu: 40;
  --z-skip: 50;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }
.accent { color: var(--accent); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: var(--header-h); }

/* Chart survey marks: small "+" crosses on a 40px grid, faded out from one
   corner per section so each band gets its own quiet focal area. */
.dots-light,
.dots-dark {
  --fade-x: 100%;
  --fade-y: 0%;
  background-color: var(--bgc);
  background-image:
    radial-gradient(ellipse 75% 95% at var(--fade-x) var(--fade-y), transparent 0%, var(--bgc) 78%),
    var(--marks);
  background-size: auto, 40px 40px;
  background-position: 0 0, 20px 20px;
}
.dots-light {
  --bgc: var(--paper);
  --marks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20.5 16v9M16 20.5h9' stroke='%23000' stroke-opacity='.2'/%3E%3C/svg%3E");
}
.dots-dark {
  --bgc: var(--ink);
  --marks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20.5 16v9M16 20.5h9' stroke='%23fff' stroke-opacity='.22'/%3E%3C/svg%3E");
}
.hero { --fade-x: 100%; --fade-y: 0%; }
.about { --fade-x: 0%; --fade-y: 100%; }
.services { --fade-x: 100%; --fade-y: 100%; }
.offices { --fade-x: 0%; --fade-y: 0%; }
.site-footer { --fade-x: 100%; --fade-y: 100%; }
.statement {
  background-image:
    radial-gradient(ellipse 55% 70% at 50% 50%, var(--bgc) 35%, transparent 100%),
    var(--marks);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 10px 26px 10px 22px;
  border: 1px solid transparent;
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn .i { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-line { background: transparent; border-color: var(--accent); color: inherit; }
.btn-line:hover { background: var(--accent); color: #fff; }

.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent); }

.sq-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.sq-btn:hover { background: var(--accent); }
.sq-btn .i { width: 16px; height: 16px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--ink);
  color: var(--on-ink);
}
.header-row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand img { width: 88px; height: auto; filter: brightness(0) invert(1); }

.nav-list { display: flex; align-items: center; gap: 40px; }
.nav-link {
  font-family: var(--display);
  font-size: 1.0625rem;
  color: var(--on-ink);
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link[aria-current="true"] { color: var(--accent); }
.nav-contact .btn { min-height: 40px; padding: 8px 20px; font-size: 1.0625rem; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-ink);
  cursor: pointer;
  place-items: center;
}
.menu-btn .i { width: 26px; height: 26px; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 859px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: var(--z-menu);
    background: var(--ink);
    padding: 32px var(--gutter);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s ease, visibility 0s; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 22px; }
  .nav-link { font-size: 2rem; }
  .nav-contact { margin-top: 16px; }
}

/* Contact sheet: every office's phone and e-mail, dropped from the header */
.pop-wrap { position: static; }
.sheet {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: var(--z-pop);
  background: var(--paper);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(5, 6, 7, 0.35);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.35s var(--ease);
}
.sheet.is-open { opacity: 1; transform: none; }
.sheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: 32px 40px;
  padding-block: 44px 48px;
}
.sheet-main { padding-right: 24px; border-right: 1px solid var(--line); }
.sheet-title {
  margin-bottom: 26px;
  font-family: var(--display);
  font-weight: 300;
  font-size: 2.25rem;
  line-height: 1.05;
}
.sheet-label, .sheet-lines dt { font-size: 0.8125rem; color: var(--text-faint); }
.sheet-main .cv { font-size: 1.125rem; }
.sheet-country { font-size: 0.8125rem; color: var(--accent); }
.sheet-city {
  margin-bottom: 18px;
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.15;
}
.sheet-lines > div + div { margin-top: 10px; }
.sheet-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.sheet-link:hover { color: var(--accent); }
.sheet-link .i { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.sheet-link:hover .i { transform: translateX(3px); }
@media (max-width: 1099px) {
  .sheet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet-main { grid-column: 1 / -1; padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 859px) {
  .sheet {
    position: static;
    background: none;
    color: var(--on-ink);
    border: 0;
    box-shadow: none;
    transform: none;
  }
  .sheet .wrap { padding-inline: 0; }
  .sheet-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 24px; padding-block: 28px 8px; }
  .sheet-main { border-color: rgba(255, 255, 255, 0.16); }
  .sheet-title { display: none; }
  .sheet-label, .sheet-lines dt { color: rgba(255, 255, 255, 0.55); }
  .sheet-city { font-size: 1.25rem; margin-bottom: 10px; }
}
@media (max-width: 479px) {
  .sheet-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Protected contact values ---------- */

.cv {
  display: inline-flex;
  align-items: center;
  padding: 2px 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.9375rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  box-shadow: inset 0 -1px 0 transparent;
  transition: box-shadow 0.2s ease;
}
.cv:hover { box-shadow: inset 0 -1px 0 var(--accent); }
.cv canvas {
  display: block;
  pointer-events: none;
  min-width: 8ch;
  min-height: 1.4em;
  -webkit-user-drag: none;
}

/* ---------- Hero ---------- */

.hero { position: relative; }
.hero-stage {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
}
.hero-images {
  position: relative;
  aspect-ratio: 1200 / 707;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.is-active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* the photographs sit on #f2f2f2; lift that to white and let the dot grid through */
  filter: brightness(1.054);
  mix-blend-mode: multiply;
}
/* Wider than 1440px the photo keeps its size and its two side edges show;
   a tiny eased fade (24px) softens just those edges. */
@media (min-width: 1441px) {
  .slide img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.3) 6px, rgba(0,0,0,0.7) 14px, #000 24px, #000 calc(100% - 24px), rgba(0,0,0,0.7) calc(100% - 14px), rgba(0,0,0,0.3) calc(100% - 6px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.3) 6px, rgba(0,0,0,0.7) 14px, #000 24px, #000 calc(100% - 24px), rgba(0,0,0,0.7) calc(100% - 14px), rgba(0,0,0,0.3) calc(100% - 6px), transparent 100%);
  }
}

.hero-copy {
  position: absolute;
  left: 52%;
  top: 4%;
  width: 44%;
}
.hero-titles { display: grid; align-items: start; transition: height 0.6s var(--ease); }
.hero-texts { display: grid; align-items: start; margin-top: 8px; }
.hero-text {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.hero-text.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease 0.2s, visibility 0s;
}
.hero-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.25rem, 4.1vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero-caption {
  max-width: 44ch;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.55;
  color: var(--text-soft);
}

.slider-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: clamp(12px, 1.2vw, 18px);
}
.slider-bars { display: flex; gap: 6px; }
.slider-bar {
  width: 48px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  align-items: center;
}
.slider-bar span { display: block; height: 2px; background: rgba(0, 0, 0, 0.18); position: relative; overflow: hidden; }
.slider-bar span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.slider-bar.is-active span::after { transform: scaleX(1); }
.is-playing .slider-bar.is-active span::after { animation: bar-fill var(--slide-ms, 7000ms) linear forwards; }
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 1099px) {
  .hero-stage { display: flex; flex-direction: column-reverse; }
  .hero-copy { position: static; width: auto; padding: 40px var(--gutter) 8px; }
  .hero-images { margin-top: -6%; }
}

/* ---------- Figures ---------- */
/* Compact strip, value over label (Centalion "Numbers" style); one size and
   weight for every value. */

.figures {
  --fade-x: 100%;
  --fade-y: 50%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.figures-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 0;
  padding-block: clamp(32px, 4vw, 52px);
}
.figure {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding-inline: clamp(20px, 3vw, 44px);
  border-left: 1px solid var(--line);
}
.figure:first-child { padding-left: 0; border-left: 0; }
.figure dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}
.figure dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-soft);
}
/* Centalion's small square marks, in the AOS accent */
.figure dt::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.figure dd .accent { color: var(--accent); }
@media (max-width: 699px) {
  .figures-row { grid-template-columns: minmax(0, 1fr); padding-block: 8px; }
  .figure { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .figure:first-child { border-top: 0; }
}

/* ---------- Bands ---------- */

.band { padding-block: clamp(64px, 7vw, 104px); }
.band-dark { color: var(--on-ink); }

.display-head,
.split-label {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.5rem, 4.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.body-text {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 48ch;
}
.band-dark .body-text { color: var(--on-ink-soft); }
.band-light .body-text { color: var(--text-soft); }

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
  align-items: center;
}
.split-label { grid-column: 2 / span 4; }
.services-head { align-items: end; }
.split-body { grid-column: 6 / span 6; }

.accent-head {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.3;
  color: var(--accent);
  max-width: 30ch;
}
.split-body .body-text { margin-top: 28px; }
.split-body .btn { margin-top: 44px; }

@media (max-width: 899px) {
  .split-label, .split-body { grid-column: 1 / -1; }
}

/* Services */
.services-top {
  /* same columns as the 01-03 rows below, so the intro lines up with their descriptions */
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.25fr);
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: 20px;
  align-items: start;
}
.services-title { grid-column: 1 / span 2; }
.services-intro { grid-column: 3; padding-top: 10px; } /* first line level with the heading's capitals */
.services-intro .body-text { max-width: 52ch; }
@media (max-width: 899px) {
  .services-title, .services-intro { grid-column: 1 / -1; }
  .services-intro { padding-top: 0; }
}

.svc-index { margin-top: clamp(44px, 4.5vw, 64px); }
.svc {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.25fr);
  column-gap: clamp(24px, 3vw, 48px);
  align-items: baseline;
  padding-block: 34px 36px;
  border-top: 1px solid var(--line);
}
.svc:first-child { border-top-color: var(--ink); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc-no {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.svc-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.75rem, 2.8vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.svc-text { max-width: 46ch; color: var(--text-soft); line-height: 1.6; }
@media (max-width: 899px) {
  .svc { grid-template-columns: 40px minmax(0, 1fr); row-gap: 12px; }
  .svc-text { grid-column: 2; }
}

.services-list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 48px;
  margin-top: clamp(56px, 6vw, 88px);
}
.list-lead {
  grid-column: 1 / span 4;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  line-height: 1.2;
}
.provide {
  grid-column: 6 / span 7;
  columns: 2;
  column-gap: 48px;
}
.provide li {
  position: relative;
  break-inside: avoid;
  padding: 0 0 22px 22px;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.3;
}
.provide li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--ink);
}
.provide .provide-key { color: var(--accent); }
.provide .provide-key::before { background: var(--accent); }

@media (max-width: 899px) {
  .list-lead, .provide { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .provide { columns: 1; }
}

/* Statement */
.statement-inner { text-align: center; }
.statement-big {
  max-width: 24ch;
  margin-inline: auto;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.125rem, 4.6vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.statement-rest {
  max-width: 64ch;
  margin: 32px auto 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--on-ink-soft);
}

/* Offices: all four offices visible at once, call / e-mail first */
.offices { padding-top: clamp(56px, 6vw, 88px); }
.offices-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.noscript { margin-bottom: 24px; color: var(--text-soft); }

/* country filter: "All" by default, so nothing is hidden until the visitor narrows it */
.office-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text-soft);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: var(--ink); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* one general contact above the directory */
.offices-general { display: grid; gap: 8px; justify-items: start; }
.general-label { font-size: 0.8125rem; color: var(--text-faint); }

.offices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 5vw, 80px);
}
.office {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
  background: var(--paper);
  padding-bottom: 40px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
/* Every card has the same text density (2-line ports, 3-line address), so
   the bodies come out the same height; the street map fills the body behind
   the text and fades out towards it. It stops above the P.I.C. list. */
.office-body {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  row-gap: 22px;
  padding-block: 32px 64px;
  pointer-events: none;
}
.office-body > :not(.office-map) {
  position: relative;
  z-index: 1;
  max-width: 58%;
}
/* text and buttons stay clickable/selectable; empty space falls through to the map */
.office-body > .office-top, .office-body > .office-address { max-width: 100%; }
.office-top > *, .office-actions, .office-address { pointer-events: auto; width: fit-content; max-width: 100%; }
.office-actions { display: grid; gap: 10px; width: 100%; max-width: 300px; }
.office-actions .cv-btn { width: 100%; }
.office-address { font-size: 0.9375rem; line-height: 1.6; color: var(--text-soft); }

.office-country { font-size: 0.8125rem; color: var(--accent); }
.office-city {
  margin-top: 2px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.875rem, 2.8vw, 2.5rem);
  line-height: 1.1;
}
.office-ports {
  margin-top: 8px;
  min-height: 3em; /* always two lines */
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.office-map {
  position: absolute;
  inset: 0; /* every empty spot of the card body opens the map */
  z-index: 0;
  display: block;
  pointer-events: auto;
  cursor: pointer;
}
.office-map img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 30%;
  width: 70%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 30%, #000 70%), linear-gradient(to bottom, transparent 0%, #000 38%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 30%, #000 70%), linear-gradient(to bottom, transparent 0%, #000 38%, #000 72%, transparent 100%);
  mask-composite: intersect;
  transition: opacity 0.3s ease;
}
.map-cta {
  position: absolute;
  right: 0;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.map-cta .i { width: 13px; height: 13px; color: var(--accent); transition: color 0.2s ease; }
.office-map:hover img { opacity: 1; }
.office-map:hover .map-cta { background: var(--accent); border-color: var(--accent); color: #fff; }
.office-map:hover .map-cta .i { color: #fff; }
.office-map:focus-visible { outline-offset: -2px; }

/* call / e-mail buttons */
.cv-btn {
  gap: 12px;
  min-height: 48px;
  padding: 10px 18px 10px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  font-size: 1.0625rem;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.cv-btn .i { width: 18px; height: 18px; color: var(--accent); transition: color 0.2s ease; }
.cv-btn:hover { box-shadow: none; border-color: var(--accent); background: var(--accent); color: #fff; }
.cv-btn:hover .i { color: #fff; }
.cv-btn:active { transform: translateY(1px); }

.office.is-hidden { display: none; }
.office-pic { border-top: 1px solid var(--line); }
.office-pic summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.office-pic summary::-webkit-details-marker { display: none; }
.office-pic summary span { color: var(--text-faint); }
.office-pic summary .i { width: 14px; height: 14px; margin-left: auto; transition: transform 0.25s var(--ease); }
.office-pic[open] summary .i { transform: rotate(180deg); }
.office-pic summary:hover { color: var(--accent); }
.pic-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 16px;
  padding: 6px 0;
  border-top: 1px solid #ededed;
  font-size: 0.9375rem;
}
.pic-list .cv { color: var(--text-soft); font-size: 0.9375rem; }

@media (max-width: 1023px) {
  .offices-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 559px) {
  .office-body > :not(.office-map) { max-width: 100%; }
  .office-actions { max-width: none; }
  .office-map img { left: 40%; width: 60%; }
  .office-ports { min-height: 4.5em; } /* three lines on narrow phones */
}

/* ---------- Footer ---------- */

.site-footer { color: var(--on-ink); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 48px 40px;
  padding-block: clamp(48px, 5vw, 72px) clamp(48px, 5vw, 64px);
}
.footer-logo { width: 120px; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 28px; max-width: 34ch; font-size: 0.9375rem; color: var(--on-ink-soft); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 0.9375rem; }
.footer-col > a:hover { color: var(--accent); }
.footer-col .cv { font-weight: 400; }
.footer-head {
  margin-bottom: 8px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.footer-bar {
  background: var(--bar);
  color: var(--text);
  font-size: 0.875rem;
}
.footer-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 12px;
}
.footer-top { display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s ease; }
.footer-top:hover { color: var(--accent); }
.footer-top .i { width: 14px; height: 14px; }
@media (max-width: 1099px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-header);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s, background-color 0.2s ease;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0s, background-color 0.2s ease; }
.to-top:hover { background: var(--ink); }
.to-top .i { width: 18px; height: 18px; }

/* ---------- Reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 1.1s var(--ease);
    transition-delay: var(--delay, 0ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-text, .slide { transition: none; }
  .panel.is-entering { animation: none; }
}
