/* ==========================================================================
   OVERLAY — "Carta e Inchiostro" Design System · 2026
   Ethical nearshore Cloud & DevOps engineering. Tunisia → Europe.
   Editorial paper-and-ink aesthetic. Fraunces display / Inter body.
   ========================================================================== */

:root {
  /* Paper & ink — tuned to sit beside the antique map plates */
  --paper:        #F7F3EA;
  --paper-warm:   #F2ECDF;
  --paper-deep:   #EAE3D3;
  --ink:          #171310;
  --ink-soft:     #3D3830;
  --ink-panel:    #14100C;
  --ink-panel-2:  #1D1812;
  --muted:        #7C7466;
  --muted-2:      #A29A8A;
  --line:         #DCD4C2;
  --line-dark:    rgba(247, 243, 234, 0.14);

  /* The one accent */
  --orange:       #F36F21;
  --orange-light: #FF9A3C;
  --orange-deep:  #C9550F;
  --grad-orange:  linear-gradient(115deg, #F36F21, #FF9A3C);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --content:        min(1280px, 100% - clamp(2rem, 5vw, 4.5rem));
  --content-narrow: min(880px,  100% - clamp(2rem, 5vw, 4.5rem));
  --gutter: clamp(1.25rem, 2.5vw, 2.5rem);

  /* Motion */
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, .46, .45, .94);
  --t-reveal: 1.1s;

  /* Header */
  --header-h: 84px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 410;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* Lenis smooth-scroll base (no effect unless Lenis attaches its classes) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--orange); color: #fff; }

/* ------------------------------------------------------------- typography */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 460;
  font-variation-settings: "opsz" 90;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7.2vw, 6.6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.14; }
h4 { font-family: var(--font-body); font-weight: 620; font-size: 1.06rem; letter-spacing: -0.01em; }

.h-em {
  font-style: italic;
  font-weight: 420;
  color: var(--orange);
  letter-spacing: -0.01em;
}

p { max-width: 65ch; }
p + p { margin-top: 1em; }
strong { font-weight: 620; }

.lead {
  font-size: clamp(1.1rem, 1.55vw, 1.32rem);
  line-height: 1.58;
  font-weight: 420;
  color: var(--ink-soft);
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.71rem;
  font-weight: 640;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--orange);
}
.eyebrow--plain::before { display: none; }
.on-dark .eyebrow { color: var(--muted-2); }

.chapter-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--orange);
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------- layout */
.wrap        { width: var(--content); margin-inline: auto; }
.wrap-narrow { width: var(--content-narrow); margin-inline: auto; }
.section  { padding: clamp(4.5rem, 10vw, 9rem) 0; position: relative; }
.section-tight { padding: clamp(3rem, 6.5vw, 5.5rem) 0; position: relative; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  margin-bottom: clamp(2.5rem, 5.5vw, 4.5rem);
}
.on-dark .section-head { border-top-color: var(--line-dark); }
.section-head .eyebrow { transform: translateY(-2px); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.hairline { border: 0; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.02rem 1.9rem;
  border-radius: 999px;
  font-weight: 560;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  transition: color .45s var(--ease-expo);
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-orange);
  transform: translateY(101%);
  transition: transform .55s var(--ease-expo);
  z-index: -1;
  border-radius: inherit;
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn:hover { color: #fff; }
.btn .arr { transition: transform .45s var(--ease-expo); }
.btn:hover .arr { transform: translateX(5px); }

.btn--orange { background: var(--orange); color: #fff; }
.btn--orange::after { background: var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 560;
  font-size: 0.98rem;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size .5s var(--ease-expo), color .3s;
}
.link-arrow:hover { color: var(--orange-deep); }
.link-arrow .arr { transition: transform .4s var(--ease-expo); }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .5s var(--ease-soft), box-shadow .5s var(--ease-soft), transform .5s var(--ease-expo);
}
.site-header.scrolled {
  background: rgba(247, 243, 234, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.hidden { transform: translateY(-100%); }

.nav {
  width: var(--content);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 130;
  position: relative;
}
.brand img { width: 34px; height: 34px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.2vw, 2.2rem);
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 490;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: 0 100%;
  transition: background-size .45s var(--ease-expo), color .3s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); background-size: 100% 1.5px; }

.nav-right { display: flex; align-items: center; gap: 1.4rem; z-index: 130; position: relative; }
.lang-switch {
  display: flex;
  gap: 0.15rem;
  font-size: 0.74rem;
  font-weight: 620;
  letter-spacing: 0.08em;
}
.lang-switch a {
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color .3s, background .3s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { color: var(--paper); background: var(--ink); }
.nav-cta { padding: 0.72rem 1.35rem; font-size: 0.88rem; }

/* burger */
.nav-toggle {
  display: none;
  z-index: 130;
  position: relative;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .45s var(--ease-expo), opacity .3s;
}
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after  { position: absolute; top: 8px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span::after  { transform: translateY(-8px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 120;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 1rem) 8vw 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease-soft);
}
.mobile-menu::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/maps/europe.webp") center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
body.nav-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a.mm-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8.5vw, 3.2rem);
  font-weight: 460;
  line-height: 1.22;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  transform: translateY(24px);
  opacity: 0;
  transition: transform .7s var(--ease-expo), opacity .5s;
}
.mobile-menu a.mm-link .mm-i {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 620;
  color: var(--orange);
  letter-spacing: 0.15em;
}
body.nav-open .mobile-menu a.mm-link { transform: translateY(0); opacity: 1; }
.mobile-menu .mm-foot { margin-top: 2.2rem; display: flex; gap: 1rem; align-items: center; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
  background: var(--paper-warm);
}
.map-stage {
  position: absolute;
  inset: 0;
  overflow: clip;
}
.map-stage .stage-inner {
  position: absolute;
  top: 50%; left: 50%;
  /* width + focal translate (--tx/--ty) set by JS; fallback framing below */
  width: 150vmax;
  aspect-ratio: 1402 / 1122;
  transform: translate(var(--tx, -50%), var(--ty, -58%)) scale(1.02);
  transform-origin: 40% 80%;             /* Italy + Tunisia */
  /* gentle zoom only — no vertical drift, so the frame stays on the Med */
  animation: kenburns 42s var(--ease-soft) infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  0%   { transform: translate(var(--tx, -50%), var(--ty, -58%)) scale(1.02); }
  100% { transform: translate(var(--tx, -50%), var(--ty, -58%)) scale(1.09); }
}
.map-stage img.map-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: fill;
  filter: saturate(1.04) contrast(1.03);
}
.map-stage svg.route {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
/* Focused readability wash: strong behind the text column (left / bottom),
   fully clear on the right so the antique map reads bold and "raw".
   A faint top band keeps the dark header legible over the map. */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(82deg, var(--paper) 0%, rgba(247,243,234,0.9) 22%, rgba(247,243,234,0.42) 44%, rgba(247,243,234,0) 64%),
    linear-gradient(to top, var(--paper) 0%, rgba(247,243,234,0.55) 20%, rgba(247,243,234,0) 46%),
    linear-gradient(to bottom, rgba(247,243,234,0.6) 0%, rgba(247,243,234,0) 13%),
    radial-gradient(120% 90% at 12% 88%, rgba(247,243,234,0.5), rgba(247,243,234,0) 55%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: var(--content);
  margin-inline: auto;
  padding: calc(var(--header-h) + 3rem) 0 clamp(4rem, 9vh, 7rem);
  max-width: none;
}
.hero-content .eyebrow { margin-bottom: 1.6rem; }
.hero-content h1 { max-width: 13ch; margin-bottom: 1.8rem; }
.hero-content .lead { margin-bottom: 2.6rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }

.hero-meta {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted);
}
.hero-meta strong { color: var(--ink); font-weight: 620; display: block; font-size: 0.95rem; }

.scroll-cue {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3.5rem);
  bottom: 2.2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 54px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: cue 2.4s var(--ease-soft) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* route overlay */
.route path.route-line {
  fill: none;
  stroke: var(--orange-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  opacity: 0.95;
}
.route circle.wp {
  fill: var(--orange);
  stroke: rgba(247,243,234,0.9);
  stroke-width: 2;
}
.route circle.wp-pulse {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.6;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: pulse 3.2s var(--ease-soft) infinite;
}
@keyframes pulse {
  0%   { opacity: 0.9; transform: scale(0.4); }
  70%  { opacity: 0;   transform: scale(2.6); }
  100% { opacity: 0;   transform: scale(2.6); }
}
.route text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--ink);
  paint-order: stroke;
  stroke: rgba(247,243,234,0.85);
  stroke-width: 3px;
}

/* ---- mobile hero: readability over boldness ---- */
@media (max-width: 760px) {
  .hero-scrim {
    background: linear-gradient(to bottom, rgba(247,243,234,0.45) 0%, rgba(247,243,234,0.80) 30%, rgba(247,243,234,0.93) 100%);
  }
  .map-stage img.map-img { filter: saturate(0.82) brightness(1.12); }
  .route text { display: none; }               /* hide city labels: they overlapped the headline */
  .route path.route-line { opacity: 0.3; }
  .route circle.wp-pulse { display: none; }
  .hero-content .lead { color: var(--ink); }    /* stronger contrast on small screens */
  .hero-content .eyebrow { background: rgba(247,243,234,0.6); }
}

/* ------------------------------------------------------------ city ticker */
.ticker {
  overflow: clip;
  border-block: 1px solid var(--line);
  padding: 1.05rem 0;
  background: var(--paper);
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  white-space: nowrap;
}
.ticker span::after { content: "→"; font-style: normal; color: var(--orange); font-family: var(--font-body); font-size: 0.9rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- journey
   A pinned, full-bleed antique atlas. As you scroll it travels
   Tunisia -> Sicily -> Europe in the background (JS-driven), with chapter
   copy fading over it. The three map plates are shown RAW, not framed. */
.journey { position: relative; background: var(--ink-panel); color: var(--paper); }
.journey-track { height: 360svh; position: relative; }
.journey-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
}

/* full-bleed background plates that cross-dissolve */
.journey-bg { position: absolute; inset: 0; z-index: 0; }
.jbg-layer {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.15s var(--ease-soft);
  will-change: opacity;
}
.jbg-layer.active { opacity: 1; }
.jbg-layer img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.03) brightness(0.92);
  transform: scale(1.04);
}
.jbg-layer.active img { animation: jkenburns 11s var(--ease-soft) forwards; }
@keyframes jkenburns {
  from { transform: scale(1.03) translateY(2.2%); }
  to   { transform: scale(1.13) translateY(-2.2%); }
}
/* readability veil: dark on the copy side, clear on the far side */
.journey-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(16,13,10,0.9) 0%, rgba(16,13,10,0.66) 38%, rgba(16,13,10,0.2) 70%, rgba(16,13,10,0) 100%),
    linear-gradient(to top, rgba(16,13,10,0.75) 0%, rgba(16,13,10,0) 42%);
  pointer-events: none;
}
.journey-grain {
  position: absolute; inset: 0;
  background: radial-gradient(140% 100% at 85% 15%, rgba(243,111,33,0.10), rgba(243,111,33,0) 46%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* overlaid chapter copy */
.journey-stage { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.journey-stage .wrap { position: relative; height: min(52svh, 460px); }
.jchapter {
  position: absolute;
  top: 50%; left: 0;
  max-width: 46ch;
  opacity: 0;
  transform: translateY(calc(-50% + 30px));
  transition: opacity .8s var(--ease-soft), transform 1s var(--ease-expo);
  pointer-events: none;
}
.jchapter.active { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.jchapter .chapter-num { display: block; margin-bottom: 0.9rem; color: var(--orange-light); }
.jchapter h3 {
  color: var(--paper);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  margin-bottom: 1.1rem;
}
.jchapter p { color: rgba(247,243,234,0.84); font-size: clamp(1.02rem, 1.4vw, 1.24rem); line-height: 1.6; }
.jcoord {
  display: inline-block;
  margin-top: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-top: 1px solid var(--line-dark);
  padding-top: 0.7rem;
}

/* progress rail */
.journey-rail {
  position: absolute;
  left: clamp(1.1rem, 3vw, 2.6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.journey-rail i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(247,243,234,0.24);
  transition: background .4s, transform .4s;
}
.journey-rail i.on { background: var(--orange); transform: scale(1.4); }

@media (max-width: 900px) {
  .journey-track { height: 320svh; }
  .journey-veil {
    background:
      linear-gradient(to top, rgba(16,13,10,0.94) 4%, rgba(16,13,10,0.5) 46%, rgba(16,13,10,0.15) 100%);
  }
  .journey-stage { align-items: flex-end; padding-bottom: 12svh; }
  .journey-stage .wrap { height: auto; }
  .jchapter { position: absolute; bottom: 0; top: auto; transform: translateY(30px); }
  .jchapter.active { transform: none; }
  .jchapter h3 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .journey-rail { left: auto; right: clamp(1rem, 4vw, 1.6rem); }
}

/* --------------------------------------------------------- services index */
.svc-index { border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1.25fr) minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: clamp(1.6rem, 3.4vw, 2.7rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left .55s var(--ease-expo);
}
.svc-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper-deep);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .55s var(--ease-expo);
  z-index: -1;
}
.svc-row:hover::before { transform: scaleY(1); }
.svc-row:hover { padding-left: 1.2rem; }
.svc-row .svc-n {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted-2);
  font-size: 1rem;
  transition: color .4s;
}
.svc-row:hover .svc-n { color: var(--orange); }
.svc-row .svc-t {
  font-family: var(--font-display);
  font-weight: 470;
  font-size: clamp(1.55rem, 3.3vw, 2.7rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.svc-row .svc-d { color: var(--muted); font-size: 0.95rem; max-width: 40ch; }
.svc-row .svc-a {
  justify-self: end;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  transition: background .45s var(--ease-expo), color .45s, border-color .45s, transform .55s var(--ease-expo);
}
.svc-row:hover .svc-a {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: rotate(-45deg);
}
.svc-row--minor .svc-t { font-size: clamp(1.15rem, 2vw, 1.6rem); color: var(--ink-soft); }
.svc-row--minor { padding-block: clamp(1.1rem, 2vw, 1.6rem); }
@media (max-width: 760px) {
  .svc-row { grid-template-columns: 2.4rem minmax(0,1fr) 2.6rem; }
  .svc-row .svc-d { display: none; }
  .svc-row .svc-a { width: 38px; height: 38px; }
}

/* ------------------------------------------------------------- dark band */
.band-dark {
  background: var(--ink-panel);
  color: var(--paper);
  position: relative;
  overflow: clip;
}
.band-dark::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/maps/tunisia.webp") right -8% center / 44% auto no-repeat;
  opacity: 0.2;
  filter: saturate(0.95);
  -webkit-mask-image: linear-gradient(260deg, #000 4%, transparent 52%);
  mask-image: linear-gradient(260deg, #000 4%, transparent 52%);
  pointer-events: none;
}
.band-dark > * { position: relative; }
.band-dark h2, .band-dark h3 { color: var(--paper); }
.band-dark p { color: rgba(247, 243, 234, 0.78); }
.band-dark .hairline { border-top-color: var(--line-dark); }

.pillar { padding-top: 1.4rem; border-top: 1px solid var(--line-dark); }
.pillar .p-n { font-family: var(--font-display); font-style: italic; color: var(--orange-light); margin-bottom: 0.9rem; display: block; }
.pillar h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.pillar p { font-size: 0.97rem; }

/* --------------------------------------------------------------- number stats */
.figure-row { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 5.5rem); }
.figure .fig-n {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 430;
  letter-spacing: -0.02em;
  line-height: 1;
}
.figure .fig-n sup { font-size: 45%; color: var(--orange); font-style: italic; }
.figure .fig-l { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); max-width: 22ch; }
.on-dark .figure .fig-l { color: var(--muted-2); }

/* ---------------------------------------------------------------- cards */
.card {
  background: #FCFAF4;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
  transition: transform .6s var(--ease-expo), box-shadow .6s var(--ease-expo);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -35px rgba(23, 19, 16, 0.35);
}
.card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.card p { font-size: 0.96rem; color: var(--ink-soft); }
.card .card-k {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--orange);
  display: block;
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
}

/* --------------------------------------------------------- service pages */
.page-hero {
  padding: calc(var(--header-h) + clamp(3.5rem, 9vh, 6.5rem)) 0 clamp(3rem, 7vh, 5rem);
  position: relative;
  overflow: clip;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -10% -22% -30% auto;
  width: 62%;
  background: url("../img/maps/europe.webp") center / cover no-repeat;
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(100deg, transparent 4%, #000 52%);
  mask-image: linear-gradient(100deg, transparent 4%, #000 52%);
  pointer-events: none;
}
.page-hero.ph-tunisia::before { background-image: url("../img/maps/tunisia.webp"); }
.page-hero.ph-sicily::before  { background-image: url("../img/maps/sicily.webp"); }
.page-hero > .wrap { position: relative; }
.page-hero .eyebrow { margin-bottom: 1.5rem; }
.page-hero h1 { font-size: clamp(2.6rem, 5.8vw, 5rem); max-width: 16ch; margin-bottom: 1.6rem; }
.page-hero .lead { margin-bottom: 0; }
.crumb {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.2rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.crumb a:hover { color: var(--orange-deep); }
.crumb i { font-style: normal; color: var(--orange); }

.prose h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin: 2.8rem 0 1.1rem; }
.prose h3 { margin: 2rem 0 0.8rem; }
.prose ul { margin: 1.1rem 0; display: grid; gap: 0.65rem; }
.prose ul li {
  padding-left: 1.6rem;
  position: relative;
  max-width: 62ch;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 1.5px;
  background: var(--orange);
}

.stack-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.4rem; }
.stack-chips span {
  font-size: 0.8rem;
  font-weight: 540;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FCFAF4;
  color: var(--ink-soft);
}

.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.svc-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }
.aside-box { border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; background: #FCFAF4; }
.aside-box h4 { margin-bottom: 0.8rem; }
.aside-box ul { display: grid; gap: 0.55rem; font-size: 0.9rem; color: var(--ink-soft); }
.aside-box ul li { display: flex; gap: 0.6rem; align-items: baseline; }
.aside-box ul li::before { content: "→"; color: var(--orange); font-size: 0.8rem; }
.aside-box .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
@media (max-width: 980px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
}

/* ------------------------------------------------------------- calculator */
.calc-shell { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4.5vw, 4rem); align-items: start; }
@media (max-width: 980px) { .calc-shell { grid-template-columns: 1fr; } }

.calc-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: #FCFAF4; margin-bottom: 2rem; }
.calc-tabs button {
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 560;
  color: var(--muted);
  transition: background .4s var(--ease-expo), color .3s;
}
.calc-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.calc-form { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.3rem; }
@media (max-width: 980px) { .calc-form { position: static; } }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
}
.field input, .field select {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FCFAF4;
  color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(243, 111, 33, 0.15);
}
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* results */
.calc-results { display: grid; gap: 1.4rem; }
.res-block {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: #FCFAF4;
}
.res-block > h3 { font-size: 1.25rem; margin-bottom: 1.2rem; display: flex; align-items: baseline; gap: 0.7rem; }
.res-block > h3 .rb-k { font-family: var(--font-display); font-style: italic; font-size: 0.95rem; color: var(--orange); font-weight: 400; }
.breakdown { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.breakdown td { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 560; color: var(--ink); }
.breakdown tr.total td { border-bottom: 0; padding-top: 0.9rem; font-weight: 640; color: var(--ink); font-size: 1rem; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .duo { grid-template-columns: 1fr; } }
.duo .stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  background: var(--paper);
}
.duo .stat .n { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 450; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.duo .stat .l { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
.duo .stat.stat-hi { background: var(--ink-panel); border-color: var(--ink-panel); color: var(--paper); }
.duo .stat.stat-hi .l { color: var(--muted-2); }

.savings {
  background: var(--grad-orange);
  color: #fff;
  border-radius: 16px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  position: relative;
  overflow: clip;
}
.savings::after {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/maps/europe.webp") center / cover;
  mix-blend-mode: soft-light;
  opacity: 0.35;
  pointer-events: none;
}
.savings > * { position: relative; }
.savings .n { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 470; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.savings .l { margin-top: 0.5rem; font-size: 0.95rem; opacity: 0.94; }
.savings .pct { position: absolute; top: 1.4rem; right: 1.6rem; font-weight: 640; font-size: 0.9rem; background: rgba(255,255,255,0.2); border-radius: 999px; padding: 0.35rem 0.9rem; }

/* connective bridge: money saved -> reinvested in the next generation */
.impact-bridge {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  margin: 0.2rem 0 -0.2rem;
  padding: 0 0.4rem;
}
.impact-bridge .ib-mark {
  width: 2px;
  align-self: stretch;
  min-height: 2.6rem;
  margin-left: 0.7rem;
  background: linear-gradient(to bottom, var(--orange), rgba(243,111,33,0));
  border-radius: 2px;
}
.impact-bridge p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: 1.42;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* impact panel — the second result */
.impact-panel {
  background: var(--ink-panel);
  color: var(--paper);
  border-radius: 16px;
  padding: clamp(1.9rem, 3.6vw, 2.7rem);
  position: relative;
  overflow: clip;
  box-shadow: 0 40px 80px -50px rgba(23,19,16,0.6);
}
.impact-panel::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-orange);
}
.impact-panel::before {
  content: "";
  position: absolute;
  inset: auto -12% -45% auto;
  width: 62%; aspect-ratio: 1023/1537;
  background: url("../img/maps/tunisia.webp") center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.impact-panel > * { position: relative; }
.impact-panel .ip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.impact-panel h3 { color: var(--paper); font-family: var(--font-display); font-weight: 460; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.impact-panel .ip-lede { color: rgba(247,243,234,0.78); font-size: 1rem; max-width: 52ch; margin-bottom: 1.6rem; }
.impact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
@media (max-width: 720px) { .impact-cards { grid-template-columns: 1fr; } }
.impact-card {
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  background: rgba(247,243,234,0.03);
  transition: border-color .5s, background .5s, transform .6s var(--ease-expo);
}
.impact-card.lit {
  border-color: rgba(255, 154, 60, 0.55);
  background: rgba(243, 111, 33, 0.09);
  transform: translateY(-3px);
}
.impact-card .ic-i { font-size: 1.15rem; margin-bottom: 0.6rem; display: block; color: var(--orange-light); }
.impact-card h4 { color: var(--paper); font-size: 0.95rem; margin-bottom: 0.35rem; }
.impact-card p { font-size: 0.82rem; color: rgba(247,243,234,0.65); line-height: 1.5; }
.ip-note {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: rgba(247,243,234,0.72);
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.ip-note::before { content: "◆"; color: var(--orange-light); font-size: 0.6rem; }

/* capture */
.capture { border: 1px dashed var(--line); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2rem); background: var(--paper-warm); }
.capture h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.capture p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.1rem; }
.capture form { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.capture input[type="email"] {
  flex: 1 1 220px;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FCFAF4;
}
.capture input[type="email"]:focus { outline: none; border-color: var(--orange); }

/* ------------------------------------------------------------------ news */
.news-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) 3rem;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background .4s;
}
.news-row:first-child { border-top: 1px solid var(--line); }
.news-row .nw-date {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.news-row .nw-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 640;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  border: 1px solid rgba(243, 111, 33, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-top: 0.6rem;
}
.news-row h3 { font-size: clamp(1.25rem, 2.4vw, 1.8rem); margin-bottom: 0.5rem; }
.news-row p { font-size: 0.95rem; color: var(--ink-soft); }
.news-row .nw-a { color: var(--orange); font-size: 1.2rem; justify-self: end; transform: translateX(-6px); opacity: 0; transition: all .45s var(--ease-expo); }
.news-row:hover .nw-a { transform: translateX(0); opacity: 1; }
@media (max-width: 720px) { .news-row { grid-template-columns: 1fr; gap: 0.5rem; } .news-row .nw-a { display: none; } }

article.news-item { padding: clamp(2rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line); }
article.news-item .nw-date { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
article.news-item h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0.7rem 0 1rem; }
article.news-item .prose-body p { color: var(--ink-soft); }

/* --------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 1.2rem; }
.contact-form textarea {
  width: 100%;
  font: inherit;
  min-height: 150px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FCFAF4;
  resize: vertical;
}
.contact-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243,111,33,0.15); }
.contact-meta { display: grid; gap: 1.8rem; }
.contact-meta .cm-item { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.contact-meta .cm-item h4 { margin-bottom: 0.4rem; }
.contact-meta .cm-item p, .contact-meta .cm-item a { color: var(--ink-soft); font-size: 0.96rem; }
.contact-meta .cm-item a:hover { color: var(--orange-deep); }
.form-status { font-size: 0.9rem; color: var(--orange-deep); min-height: 1.4em; }

/* contact GDPR consent */
.contact-form .consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.45; cursor: pointer; }
.contact-form .consent input { margin-top: 0.18rem; width: 16px; height: 16px; accent-color: var(--orange); flex: 0 0 auto; }
.contact-form .privacy-note { font-size: 0.76rem; color: var(--muted); margin-top: -0.4rem; }

/* -------------------------------------------------------------- CTA band */
.cta-band {
  background: var(--ink-panel);
  color: var(--paper);
  text-align: center;
  position: relative;
  overflow: clip;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/maps/europe.webp") center 30% / cover no-repeat;
  opacity: 0.22;
  -webkit-mask-image: radial-gradient(120% 130% at 50% 120%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 130% at 50% 120%, #000 30%, transparent 78%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; }
.cta-band h2 {
  color: var(--paper);
  font-size: clamp(2.3rem, 5.5vw, 4.6rem);
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: 1.4rem;
}
.cta-band p { color: rgba(247,243,234,0.75); max-width: 52ch; margin-inline: auto; margin-bottom: 2.4rem; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--ink-panel);
  color: var(--paper);
  padding: clamp(3.5rem, 7vw, 6rem) 0 2rem;
  position: relative;
  overflow: clip;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 {
  font-size: 0.72rem;
  font-weight: 640;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.1rem;
}
.site-footer ul { display: grid; gap: 0.55rem; }
.site-footer ul a { color: rgba(247,243,234,0.8); font-size: 0.93rem; transition: color .3s; }
.site-footer ul a:hover { color: var(--orange-light); }
.footer-brand p { color: rgba(247,243,234,0.65); font-size: 0.9rem; max-width: 34ch; margin-top: 1rem; }
.footer-brand .brand-word { color: var(--paper); font-size: 1.6rem; }
.footer-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4.5rem, 14vw, 13rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 243, 234, 0.22);
  user-select: none;
  text-align: center;
  margin: 1rem 0 2rem;
  transition: color 1.2s var(--ease-soft);
}
.footer-word:hover { color: rgba(243, 111, 33, 0.9); -webkit-text-stroke-color: transparent; }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--muted-2);
}

/* ---------------------------------------------------------------- reveal
   Animations only when JS is running (html.js): no-JS users see everything. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-soft), transform var(--t-reveal) var(--ease-expo);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
html.js [data-reveal].in { opacity: 1; transform: none; }

html.js [data-reveal="line"] { transform: none; opacity: 1; transition: none; }
[data-reveal="line"] .rl-mask { display: block; overflow: clip; padding-bottom: 0.22em; margin-bottom: -0.22em; }
html.js [data-reveal="line"] .rl-line {
  display: block;
  transform: translateY(130%);
  transition: transform 1.15s var(--ease-expo);
}
html.js [data-reveal="line"].in .rl-line { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal="line"] .rl-line { transform: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------- utilities */
.on-dark { color: var(--paper); }
.tar { text-align: right; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px; left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  transition: top .3s;
}
.skip-link:focus { top: 1rem; }
