/* FSTL — Global Freight Forwarding */

:root {
  /* brand navy and cyan from the logo; every neutral is tinted toward the navy hue */
  --paper: oklch(0.972 0.004 250);
  --surface: oklch(0.993 0.002 250);
  --tint: oklch(0.935 0.009 245);
  --line: oklch(0.86 0.012 250);
  --ink: oklch(0.255 0.05 258);
  --ink-2: oklch(0.46 0.03 255);
  --line-strong: oklch(0.64 0.025 252);
  --error: oklch(0.52 0.19 27);
  --navy: oklch(0.215 0.045 260);
  --navy-2: oklch(0.255 0.058 260);
  --navy-3: oklch(0.175 0.035 260);
  --on-dark: oklch(0.965 0.006 250);
  --on-dark-2: oklch(0.8 0.025 250);
  --line-dark: oklch(0.4 0.045 258);
  --cyan: oklch(0.7 0.14 235);
  --cyan-hover: oklch(0.78 0.12 232);
  --cyan-ink: oklch(0.52 0.115 238);

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body: "Public Sans", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;
  --display-stretch: 100%;
  --display-weight: 600;
  --display-track: -.02em;

  /* five steps */
  --fs-label: .8125rem;
  --fs-body: 1rem;
  --fs-lead: 1.25rem;
  --fs-lead-fluid: clamp(1.0625rem, .95rem + .45vw, var(--fs-lead));
  --fs-h2: clamp(1.75rem, 1.3rem + 1.5vw, 2.625rem);
  --fs-h1: clamp(2.25rem, 1.55rem + 2.6vw, 3.875rem);

  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --section: clamp(64px, 40px + 5vw, 112px);
  --block: clamp(40px, 24px + 3.5vw, 72px);
  --col-gap: clamp(40px, 6vw, 96px);
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  --slant: 18deg; /* the lean of the L in the logo */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
abbr[title] { text-decoration: none; cursor: help; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--cyan); color: var(--navy); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--f-display); font-stretch: var(--display-stretch); font-weight: var(--display-weight);
  letter-spacing: var(--display-track); text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.06; }
h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3 { font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -.01em; }
p { text-wrap: pretty; }
.line { display: block; }
.nw { white-space: nowrap; }

.container { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100; padding: 10px 16px;
  background: var(--cyan); color: var(--navy); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons: slanted like the logo ---------- */

.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border: 0; background: none;
  font-family: var(--f-display); font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid transparent;
  transform: skewX(calc(var(--slant) * -1)); transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.btn-accent { color: var(--navy); }
.btn-accent::before { background: var(--cyan); }
.btn-accent:hover::before { background: var(--cyan-hover); }
.btn-ghost { color: var(--on-dark); }
.btn-ghost::before { border-color: oklch(0.965 0.006 250 / .45); }
.btn-ghost:hover::before { border-color: var(--on-dark); background: oklch(0.965 0.006 250 / .08); }

/* ---------- Labels ---------- */

.label, .index, .tag, .stop-n, .map-link, .mails dt {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.label { display: flex; align-items: flex-start; gap: var(--space-sm); color: var(--cyan-ink); }
.label::before {
  content: ""; flex: none; width: 10px; height: 14px; margin-top: calc((1lh - 14px) / 2); background: var(--cyan);
  transform: skewX(calc(var(--slant) * -1));
}
.label.light { color: var(--on-dark); font-size: var(--fs-body); font-weight: 500; letter-spacing: 0; text-transform: none; }

.index { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-xl); color: var(--ink); }
.index span { color: var(--cyan-ink); }
.index::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dark .index { color: var(--on-dark); }
.dark .index span { color: var(--cyan); }
.dark .index::after { background: var(--line-dark); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-dark);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: var(--header-h); }

.logo { position: relative; z-index: 2; display: block; flex: none; }
.logo img { width: auto; height: 38px; transition: opacity .35s var(--ease); }
.logo .logo-dark { position: absolute; top: 0; left: 0; opacity: 0; }
.site-header.scrolled .logo-light { opacity: 0; }
.site-header.scrolled .logo-dark { opacity: 1; }

.nav { display: flex; align-items: center; gap: var(--space-xl); }
.nav a:not(.btn) { position: relative; padding-block: var(--space-xs); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { height: 40px; padding: 0 20px; margin-left: var(--space-xs); }

.lang { display: flex; gap: var(--space-sm); }
.nav .lang a { font-size: var(--fs-label); font-weight: 600; letter-spacing: .04em; }

.menu-toggle {
  display: none; position: relative; z-index: 2; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }

/* ---------- Hero ---------- */

.hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(100svh, 980px); background: var(--navy); color: var(--on-dark); overflow: hidden;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 60% 45%; transform: scale(1.06); animation: settle 2.4s var(--ease) forwards; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, oklch(0.18 0.04 260 / .9) 0%, oklch(0.18 0.04 260 / .6) 45%, oklch(0.18 0.04 260 / .1) 100%),
    linear-gradient(0deg, oklch(0.18 0.04 260 / .7) 0%, oklch(0.18 0.04 260 / 0) 45%);
}
@keyframes settle { to { transform: none; } }

.hero-inner { position: relative; padding-top: calc(var(--header-h) + var(--space-3xl)); padding-bottom: clamp(48px, 6vw, 88px); }
.hero h1 { max-width: 13.5em; margin-top: var(--space-lg); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); margin-top: var(--space-2xl); padding-left: var(--space-xs); }

/* the route strip: the one place the monospace voice is kept */
.hero-strip { position: relative; background: oklch(0.17 0.035 260 / .82); animation: rise 1s .5s var(--ease) both; }
.strip {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); height: 56px;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.strip b { font-weight: 500; color: var(--cyan); }
.strip > span:last-child { margin-left: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(100%); } }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.tint { background: var(--tint); }
.dark { background: var(--navy); color: var(--on-dark); }
.contact { background: var(--navy-2); }

.copy { display: grid; gap: var(--space-md); align-content: start; }
.copy h2 { margin-bottom: var(--space-xs); }
.copy p { max-width: 60ch; font-size: var(--fs-lead-fluid); line-height: 1.55; }
.copy > .index { margin-bottom: var(--space-xs); }

.photo { position: relative; overflow: hidden; background: var(--line); }
.dark .photo { background: var(--line-dark); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
/* bottom-right corner cut at the logo's angle */
.cut { --cut: 56px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut) * .325) 100%, 0 100%); }

/* 01 Quem somos */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col-gap); align-items: start; }
.manifest { padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); counter-reset: sector; }
.manifest-title { margin-bottom: var(--space-md); }
.manifest li {
  counter-increment: sector; display: grid; grid-template-columns: 40px 1fr; align-items: baseline;
  padding-block: var(--space-sm); border-top: 1px solid var(--line);
}
.manifest li::before {
  content: counter(sector, decimal-leading-zero);
  font-family: var(--f-display); font-size: var(--fs-label); font-weight: 600; color: var(--cyan-ink); font-variant-numeric: tabular-nums;
}
.manifest-more { padding-top: var(--space-sm); border-top: 1px solid var(--line); font-family: var(--f-display); font-weight: 600; }

/* 02 Relação */
.relation-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--col-gap); align-items: center; }
.relation-head .photo { aspect-ratio: 16 / 10; }

.route {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px);
  margin-top: var(--block); padding-top: 40px;
}
.route::before, .route::after { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--line); }
.route::after { background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.route.drawn::after { transform: scaleX(1); }
.route li { position: relative; display: grid; gap: var(--space-xs); align-content: start; }
.route li::before {
  content: ""; position: absolute; top: -40px; left: 0; width: 14px; height: 12px; background: var(--cyan);
  transform: skewX(calc(var(--slant) * -1));
}
.stop-n { color: var(--cyan-ink); }

/* 03 Serviços */
.services-copy { max-width: 720px; }
.photo.wide { aspect-ratio: 21 / 9; margin-top: var(--block); }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: var(--block); }
.modes article { display: grid; gap: var(--space-sm); align-content: start; padding-top: var(--space-lg); border-top: 1px solid var(--line-dark); }
.tag { color: var(--cyan); }

/* 04 Complementares */
.extras-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; }
.extras-copy { position: sticky; top: calc(var(--header-h) + 40px); }
.extras-list { counter-reset: extra; border-bottom: 1px solid var(--line); }
.extras-list li {
  counter-increment: extra; display: grid; grid-template-columns: 48px 1fr; gap: 6px var(--space-md);
  padding-block: var(--space-lg); border-top: 1px solid var(--line);
}
.extras-list li::before {
  content: counter(extra, decimal-leading-zero); grid-row: span 2; padding-top: 4px;
  font-family: var(--f-display); font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; color: var(--cyan-ink);
}
.extras-list h3, .extras-list p { grid-column: 2; }
.extras-list p { max-width: 62ch; }

/* 05 Contactos */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; }
.mails { margin-top: var(--space-md); border-top: 1px solid var(--line-dark); }
.mails div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding-block: var(--space-md); border-bottom: 1px solid var(--line-dark); }
.mails dt { color: var(--cyan); }
.mails a { font-family: var(--f-display); font-size: var(--fs-lead); font-weight: 600; text-decoration: none; }
.mails a:hover { text-decoration: underline 2px var(--cyan); text-underline-offset: 6px; }

.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.office { display: grid; gap: var(--space-xs); align-content: start; }
.office .photo { --cut: 32px; aspect-ratio: 4 / 3; margin-bottom: var(--space-sm); }
.office .photo img { filter: saturate(.85) contrast(1.04); }
.map-link { display: inline-flex; align-items: center; gap: var(--space-xs); justify-self: start; margin-top: 4px; color: var(--cyan); text-decoration: none; }
.map-link::after { content: "→"; letter-spacing: 0; transition: transform .3s var(--ease); }
.map-link:hover::after { transform: translateX(4px); }

/* ---------- Footer ---------- */

.site-footer { padding-block: var(--space-2xl) var(--space-xl); background: var(--navy-3); color: var(--on-dark); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg) 40px;
  padding-bottom: var(--space-xl); border-bottom: 1px solid var(--line-dark);
}
.footer-logo { width: auto; height: 34px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) 28px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline 1px var(--cyan); text-underline-offset: 5px; }
.footer-legal { font-size: var(--fs-label); }
.credits { max-width: 120ch; padding-top: var(--space-lg); font-size: var(--fs-label); color: var(--on-dark-2); }
.credits a { text-underline-offset: 3px; }

/* ---------- Quote request panel ---------- */

.contact-cta { justify-self: start; margin: var(--space-xs) 0 0 var(--space-xs); }
html.modal-open { overflow: hidden; }

.quote {
  position: fixed; inset: 0 0 0 auto; width: min(560px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink);
  transform: translateX(100%); transition: transform .5s var(--ease);
}
.quote.is-open { transform: none; }
.quote::backdrop { background: oklch(0.175 0.035 260 / .6); opacity: 0; transition: opacity .4s var(--ease); }
.quote.is-open::backdrop { opacity: 1; }

.quote-panel { display: flex; flex-direction: column; height: 100%; }
.quote-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex: none;
  padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--line);
}
.quote-head h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.quote-close { position: relative; flex: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: var(--ink); cursor: pointer; }
.quote-close span { position: absolute; top: 21px; left: 12px; right: 12px; height: 2px; background: currentColor; transform: rotate(45deg); }
.quote-close span:last-child { transform: rotate(-45deg); }

.quote-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.quote-body { display: grid; gap: 20px; align-content: start; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-lg) var(--space-xl) var(--space-xl); }
.quote-intro { max-width: 46ch; }
.quote-foot { display: flex; justify-content: flex-end; flex: none; padding: var(--space-md) var(--space-xl) calc(var(--space-md) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.quote-foot .btn { margin-right: var(--space-xs); }
.btn.is-loading { cursor: progress; }
.btn:disabled { pointer-events: none; }

.field { display: grid; gap: 6px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { padding: 0; font-size: .9375rem; font-weight: 600; }
fieldset.field { display: block; }
fieldset.field legend { margin-bottom: var(--space-xs); }
.opt { font-weight: 400; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px var(--space-md); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 0;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .2s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--cyan); outline-offset: -1px; border-color: var(--cyan-ink); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: var(--fs-label); font-weight: 500; color: var(--error); }
fieldset.field .field-error { margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 var(--space-md);
  border: 1px solid var(--line-strong); background: var(--surface); font-weight: 500;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
fieldset[aria-invalid="true"] .chip span { border-color: var(--error); }

.quote-done { display: grid; gap: var(--space-md); align-content: start; justify-items: start; padding: var(--space-2xl) var(--space-xl); outline: 0; }
.quote-done h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.quote-done p { max-width: 46ch; }
.quote-done .btn { margin: var(--space-md) 0 0 var(--space-xs); }
.done-mark { width: 22px; height: 30px; margin-bottom: var(--space-xs); background: var(--cyan); transform: skewX(calc(var(--slant) * -1)); }

@media (max-width: 640px) {
  .quote { width: 100%; height: 100dvh; max-height: 100dvh; transform: translateY(100%); }
  .quote-head { padding: var(--space-md) var(--gutter); }
  .quote-body { padding: var(--space-lg) var(--gutter); }
  .quote-foot { padding-inline: var(--gutter); }
  .quote-foot .btn { flex: 1; margin-inline: var(--space-xs); }
  .quote-done { padding: var(--space-xl) var(--gutter); }
}
@media (max-width: 480px) {
  .field-row:not(.keep) { grid-template-columns: minmax(0, 1fr); }
  .field-row.keep { gap: 20px var(--space-sm); }
  .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip span { width: 100%; justify-content: center; }
}

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.photo img { transition: transform 1.4s var(--ease); }
.js .photo.reveal img { transform: scale(1.06); }
.js .photo.reveal.in img { transform: none; }
/* the hero waits for its fonts (see main.js), then enters once */
.js.hero-in .hero .reveal { opacity: 1; transform: none; }

/* phones and tablets: no scroll reveals, content is simply there; only the hero fades in, briefly */
@media (max-width: 960px) {
  .js .reveal, .js .photo.reveal img { opacity: 1; transform: none; transition: none; }
  .js .hero .reveal { opacity: 0; transition: opacity .6s var(--ease); }
  .js .hero .reveal.d1 { transition-delay: .08s; }
  .js .hero .reveal.d2 { transition-delay: .16s; }
  .js.hero-in .hero .reveal { opacity: 1; }
  .hero-media img, .hero-strip { animation: none; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  /* hero sized by its content, with a band of photo above, instead of a full screen */
  .hero { min-height: 0; }
  .hero-inner { padding-top: calc(var(--header-h) + clamp(112px, 30vw, 240px)); }

  .about-grid, .relation-head, .extras-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .extras-copy { position: static; }
  .modes { grid-template-columns: minmax(0, 1fr); }

  /* the route turns vertical */
  .route { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding: 0 0 0 36px; }
  .route::before, .route::after { top: 0; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; }
  .route::after { transform: scaleY(0); transform-origin: top; }
  .route.drawn::after { transform: scaleY(1); }
  .route li::before { top: 5px; left: -36px; }
  .route p { max-width: 62ch; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--space-xs);
    padding: var(--header-h) var(--gutter) var(--space-2xl); background: var(--navy); color: var(--on-dark);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav a:not(.btn) { font-family: var(--f-display); font-size: 1.75rem; font-weight: 600; letter-spacing: -.01em; }
  .nav-cta { height: 48px; margin: var(--space-lg) 0 0 var(--space-xs); }
  .nav .lang { order: 1; gap: var(--space-lg); margin-top: var(--space-xl); }
  .nav .lang a { font-family: var(--f-body); font-size: var(--fs-body); }
  .site-header.nav-open { color: var(--on-dark); }
  .site-header.nav-open .nav { opacity: 1; visibility: visible; }
  .site-header.nav-open .logo-light { opacity: 1; }
  .site-header.nav-open .logo-dark { opacity: 0; }
  .site-header.nav-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
  .site-header.nav-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .logo img { height: 32px; }
  .index { margin-bottom: var(--space-lg); }

  .hero-inner { padding-bottom: var(--space-2xl); }
  .hero h1 { margin-top: var(--space-md); }
  .hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); margin-top: var(--space-xl); padding-inline: var(--space-xs); }
  .hero-ctas .btn { padding-inline: var(--space-sm); font-size: .875rem; }

  /* strip keeps the two offices */
  .strip { justify-content: space-between; gap: var(--space-sm); letter-spacing: .04em; }
  .strip > span:first-child, .strip > span:last-child { display: none; }

  .manifest { padding: 0; background: none; border: 0; }

  .photo.wide { aspect-ratio: 4 / 3; }

  .extras-list li { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-md) var(--space-lg); }
  .extras-list li::before { grid-row: auto; padding-top: 0; }
  .extras-list h3, .extras-list p { grid-column: auto; }

  .mails div { flex-direction: column; gap: 2px; }
  .offices { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .office .photo { --cut: 28px; aspect-ratio: 2 / 1; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
  .hero-ctas { grid-template-columns: max-content; }
  .strip .co { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { transform: none; }
}
