/* ============== PORT & TERMINAL SERVICES SPAIN ============== */
:root {
  --navy-900: #0E2238;
  --navy-800: #14304D;
  --navy-700: #1B3A5C;
  --navy-600: #284E78;
  --navy-500: #4A6E92;
  --navy-300: #A9BCD0;
  --navy-100: #E4EAF2;

  --copper-700: #A85D33;
  --copper-600: #C7754A;
  --copper-500: #D88A62;
  --copper-200: #F1D5C2;

  --paper: #FAFAF7;
  --paper-2: #F2F0E9;
  --line: #E2DFD5;
  --ink: #1A1F26;
  --ink-2: #4A5160;
  --ink-3: #7A8090;

  --accent: var(--copper-600);

  --serif: "Fraunces", "Times New Roman", serif;
  --serif-alt: "Crimson Pro", "Georgia", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sans-alt: "Söhne", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: 32px;
  --section-y: 140px;
  --container: 1400px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-density="compact"] {
  --section-y: 96px;
  --gutter: 24px;
}

[data-theme="dark"] {
  --paper: #0B1622;
  --paper-2: #11202F;
  --line: #1F2D3F;
  --ink: #F0EFEA;
  --ink-2: #B7BDC8;
  --ink-3: #7A8090;
  --navy-100: #15283D;
}

[data-typeface="serif-first"] {
  --display: var(--serif);
  --body: var(--sans);
}
[data-typeface="sans-first"] {
  --display: var(--sans);
  --body: var(--sans);
}
[data-typeface="editorial"] {
  --display: var(--serif-alt);
  --body: var(--serif-alt);
}
:root {
  --display: var(--serif);
  --body: var(--sans);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

/* === TYPE === */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.display {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--ink);
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
.display.italic { font-style: italic; }

h1.display { font-size: clamp(48px, 7vw, 112px); }
h2.display { font-size: clamp(36px, 4.5vw, 72px); }
h3.display { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; }

.lede {
  font-family: var(--display);
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 400;
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: all 0.3s var(--ease);
  background: transparent;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.site-header.transparent {
  color: white;
}
.site-header.transparent.scrolled {
  color: var(--ink);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 16px;
  line-height: 1.05;
}
.brand-mark {
  width: 38px; height: 38px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text .pt { font-weight: 600; letter-spacing: 0.02em; }
.brand-text .ss {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}

.nav { display: flex; gap: 32px; justify-content: center; }
.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav a:hover { opacity: 1; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  gap: 4px;
}
.lang-switch button {
  padding: 4px 6px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.lang-switch button.active { opacity: 1; }
.lang-switch .sep { opacity: 0.3; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: all 0.2s var(--ease);
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}
.btn.ghost:hover { background: currentColor; color: var(--paper); transform: translateY(-1px); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 80px;
  color: white;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,22,34,0.3) 0%, rgba(11,22,34,0.1) 30%, rgba(11,22,34,0.85) 100%),
    linear-gradient(90deg, rgba(11,22,34,0.6) 0%, rgba(11,22,34,0.1) 60%);
}
.hero-media video, .hero-media .hero-fallback {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-fallback {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(199,117,74,0.25) 0%, transparent 60%),
    linear-gradient(135deg, #0a1828 0%, #14304D 40%, #1B3A5C 70%, #0a1828 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.hero h1 {
  color: white;
}
.hero h1 .cu { display: block; color: var(--copper-500); font-style: italic; }
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-lede {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.hero .btn {
  background: white;
  color: var(--navy-900);
}
.hero .btn:hover { background: var(--accent); color: white; }
.hero .btn.ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero .btn.ghost:hover {
  background: white; color: var(--navy-900); border-color: white;
}

.hero-marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 0;
  background: rgba(11,22,34,0.5);
  backdrop-filter: blur(8px);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}
.marquee-track > span {
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-track .dot {
  color: var(--copper-500);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-stats {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero-stats .row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.hero-stats .row::before {
  content: "";
  width: 30px; height: 1px;
  background: rgba(255,255,255,0.4);
}
.hero-stats strong {
  color: white;
  font-weight: 500;
  font-family: var(--display);
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0;
}

/* === SECTIONS === */
section.s {
  padding: var(--section-y) 0;
  position: relative;
}
.s-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.s-head .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  display: block;
}
.s-head .lede { max-width: 56ch; }

/* === SERVICES === */
.svc-list {
  border-top: 1px solid var(--line);
}
.svc-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 80px;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
  position: relative;
}
.svc-row:hover { background: var(--paper-2); padding-left: 16px; padding-right: 16px; }
.svc-row .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.svc-row .name {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.svc-row .desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 60ch;
}
.svc-row .arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  justify-self: end;
  transition: all 0.3s var(--ease);
  color: var(--ink-2);
}
.svc-row:hover .arrow {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: rotate(-45deg);
}

/* === FIGURE / EDITORIAL === */
.figure {
  position: relative;
  background: var(--navy-100);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--navy-700);
}
.figure.tall { aspect-ratio: 3 / 4; }
.figure.wide { aspect-ratio: 16 / 9; }
.figure-placeholder {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.figure-stripe {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    color-mix(in oklab, var(--navy-700) 8%, transparent) 0,
    color-mix(in oklab, var(--navy-700) 8%, transparent) 1px,
    transparent 1px,
    transparent 12px
  );
  opacity: 0.6;
}
.figure-label {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: var(--paper);
  padding: 8px 14px;
  border: 1px solid currentColor;
  color: var(--navy-700);
}
.figure-caption {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(11,22,34,0.85);
  color: white;
  padding: 6px 10px;
}

/* === STATS === */
.stats {
  background: var(--navy-900);
  color: white;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100px 100%;
}
.stats-inner { position: relative; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat {
  padding: 40px 24px 0 0;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat:last-child { border-right: 0; }
.stat .v {
  font-family: var(--display);
  font-size: clamp(56px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-style: italic;
  font-weight: 300;
}
.stat .v .unit {
  font-style: normal;
  font-size: 0.4em;
  color: var(--copper-500);
  margin-left: 4px;
  vertical-align: super;
}
.stat .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
  max-width: 28ch;
}

/* === PORTS === */
.ports {
  background: var(--paper-2);
}
.ports-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
}
.map-wrap {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.map-wrap svg { width: 100%; height: 100%; }
.map-pin {
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.map-pin:hover { transform: scale(1.3); transform-origin: center; }
.map-pin circle.dot { fill: var(--accent); }
.map-pin circle.ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; transform-origin: center; animation: ping 2.4s ease-out infinite; }
.map-pin.major circle.ring { opacity: 1; }
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}
.map-pin text {
  font-family: var(--mono);
  font-size: 7px;
  fill: var(--ink-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.port-list {
  display: flex;
  flex-direction: column;
}
.port-list .port {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.port-list .port .code {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.port-list .port .name {
  font-family: var(--display);
  font-size: 18px;
}
.port-list .port .badges {
  display: flex; gap: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.port-list .port .badge {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.port-list .port .badge.live {
  color: var(--accent);
  border-color: var(--copper-200);
  background: color-mix(in oklab, var(--copper-200) 30%, transparent);
}

/* === QUICK REQUEST === */
.qr {
  background: var(--navy-900);
  color: white;
  position: relative;
  overflow: hidden;
}
.qr::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(199,117,74,0.15), transparent 60%);
}
.qr-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.qr-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 40px;
  backdrop-filter: blur(8px);
}
.qr-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.qr-form .row:last-of-type { border-bottom: 0; }
.qr-form .field {
  padding: 20px 4px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.qr-form .field:last-child { border-right: 0; padding-left: 20px; }
.qr-form .field:first-child { padding-right: 20px; }
.qr-form label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.qr-form input, .qr-form select, .qr-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  color: white;
  font: inherit;
  font-size: 16px;
  font-family: var(--display);
  outline: none;
}
.qr-form input::placeholder { color: rgba(255,255,255,0.3); }
.qr-form select option { background: var(--navy-900); }
.qr-form .submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  margin-top: 8px;
}
.qr-form .legal {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

/* === TESTIMONIAL / CLIENTS === */
.clients {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}
.client-name {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.client-name:hover { color: var(--ink); }

/* === CASES === */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.case {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case .figure { aspect-ratio: 4 / 5; }
.case .meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.case .meta .tag { color: var(--accent); }
.case h3 {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.case .desc { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* === NEWS === */
.news {
  background: var(--paper-2);
}
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.news-feature, .news-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.news-feature .figure { aspect-ratio: 16 / 11; }
.news-card .figure { aspect-ratio: 4 / 3; }
.news-feature h3 { font-size: 30px; }
.news-card h3 { font-size: 18px; }
.news .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: 16px;
}

/* === TEAM === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.member { display: flex; flex-direction: column; gap: 16px; }
.member .figure { aspect-ratio: 3 / 4; }
.member .name {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.member .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* === FOOTER === */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 90px 0 40px;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {
  font-family: var(--display);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: white;
  font-style: italic;
  font-weight: 300;
  max-width: 14ch;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.85); transition: color 0.2s; }
.footer-col a:hover { color: var(--copper-500); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a:hover { color: white; }

/* === REVEAL === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.in > * { animation: stagger-rise 0.9s var(--ease) backwards; }
.reveal.in > *:nth-child(1) { animation-delay: 0.05s; }
.reveal.in > *:nth-child(2) { animation-delay: 0.12s; }
.reveal.in > *:nth-child(3) { animation-delay: 0.19s; }
.reveal.in > *:nth-child(4) { animation-delay: 0.26s; }
.reveal.in > *:nth-child(5) { animation-delay: 0.33s; }
.reveal.in > *:nth-child(6) { animation-delay: 0.40s; }
.reveal.in > *:nth-child(7) { animation-delay: 0.47s; }
.reveal.in > *:nth-child(8) { animation-delay: 0.54s; }
.reveal.in > *:nth-child(9) { animation-delay: 0.61s; }
@keyframes stagger-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* === ELEGANT MICRO-ANIMATIONS === */

/* Hero text reveals — slow upward fade with serif "settle" */
.hero h1.display {
  animation: hero-rise 1.4s var(--ease) backwards;
  animation-delay: 0.25s;
}
.hero h1.display .cu {
  animation: hero-rise 1.4s var(--ease) backwards;
  animation-delay: 0.45s;
}
.hero-meta {
  animation: hero-rise 1.4s var(--ease) backwards;
  animation-delay: 0.65s;
}
.hero .eyebrow {
  animation: hero-rise 1.0s var(--ease) backwards;
  animation-delay: 0.1s;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* Hero image — gentle Ken Burns */
.hero-media img,
.hero-media video {
  animation: kenburns 18s var(--ease) forwards;
}
@keyframes kenburns {
  from { transform: scale(1.06); }
  to { transform: scale(1.0); }
}

/* Hero stats — fade up sequenced */
.hero-stats { animation: hero-rise 1.0s var(--ease) backwards; animation-delay: 0.85s; }

/* Hero marquee — slow fade in */
.hero-marquee { animation: fade-in 1.2s var(--ease) backwards; animation-delay: 1.0s; }
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Header nav — soft underline grow */
.nav a {
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}
.nav a:hover::after,
.nav a.active::after { width: 100%; }

/* Service rows — copper accent slide */
.svc-row { overflow: hidden; }
.svc-row::before {
  content: "";
  position: absolute;
  left: -2px; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.svc-row:hover::before { transform: scaleY(1); transform-origin: top; }
.svc-row .name { transition: transform 0.4s var(--ease), color 0.3s; }
.svc-row:hover .name { transform: translateX(8px); color: var(--accent); }
.svc-row .desc { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.svc-row:hover .desc { opacity: 1; transform: translateX(4px); }

/* Cards — image zoom + subtle lift */
.case .figure img,
.news-feature .figure img,
.news-card .figure img {
  transition: transform 1.4s var(--ease), filter 0.6s var(--ease);
}
.case:hover .figure img,
.news-feature:hover .figure img,
.news-card:hover .figure img {
  transform: scale(1.04);
  filter: saturate(1.05);
}
.case h3, .news-feature h3, .news-card h3 {
  transition: color 0.4s var(--ease);
}
.case:hover h3, .news-feature:hover h3, .news-card:hover h3 {
  color: var(--accent);
}

/* Stat numbers — count-up entrance */
.stats.in-view .stat .v {
  animation: stat-pop 1.2s var(--ease) backwards;
}
.stats.in-view .stat:nth-child(1) .v { animation-delay: 0.0s; }
.stats.in-view .stat:nth-child(2) .v { animation-delay: 0.12s; }
.stats.in-view .stat:nth-child(3) .v { animation-delay: 0.24s; }
.stats.in-view .stat:nth-child(4) .v { animation-delay: 0.36s; }
@keyframes stat-pop {
  from { opacity: 0; transform: translateY(14px); letter-spacing: 0.04em; }
  to { opacity: 1; transform: none; letter-spacing: -0.02em; }
}

/* Buttons — refined hover */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateX(0); }
.btn { background: var(--ink); transition: color 0.3s; z-index: 0; }
.btn:hover { transform: translateY(-1px); }

/* Port list rows — shimmer hover */
.port-list .port {
  transition: padding-left 0.4s var(--ease), background 0.4s var(--ease);
}
.port-list .port:hover {
  padding-left: 12px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 8%, transparent), transparent);
}

/* Map pins — sequential reveal */
.map-pin .dot {
  animation: pin-pop 0.6s var(--ease) backwards;
}
.map-pin:nth-child(1) .dot { animation-delay: 0.10s; }
.map-pin:nth-child(2) .dot { animation-delay: 0.18s; }
.map-pin:nth-child(3) .dot { animation-delay: 0.26s; }
.map-pin:nth-child(4) .dot { animation-delay: 0.34s; }
.map-pin:nth-child(5) .dot { animation-delay: 0.42s; }
.map-pin:nth-child(6) .dot { animation-delay: 0.50s; }
.map-pin:nth-child(7) .dot { animation-delay: 0.58s; }
.map-pin:nth-child(8) .dot { animation-delay: 0.66s; }
.map-pin:nth-child(n+9) .dot { animation-delay: 0.74s; }
@keyframes pin-pop {
  from { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.4); }
  to { transform: scale(1); opacity: 1; }
}

/* Form fields — focus glow */
.qr-form input,
.qr-form select,
.qr-form textarea {
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.qr-form .field {
  position: relative;
  transition: background 0.3s var(--ease);
}
.qr-form .field::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.qr-form .field:focus-within::after { transform: scaleX(1); }

/* Page-head h1 — letterspacing settle */
.page-head h1 {
  animation: page-h1 1.2s var(--ease) backwards;
}
@keyframes page-h1 {
  from { opacity: 0; transform: translateY(20px); letter-spacing: 0.02em; }
  to { opacity: 1; transform: none; letter-spacing: -0.02em; }
}
.page-head .lede { animation: hero-rise 1.0s var(--ease) backwards; animation-delay: 0.3s; }
.page-head .crumbs { animation: fade-in 0.8s var(--ease) backwards; animation-delay: 0.1s; }

/* Smooth scroll & reduced motion */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Logo subtle pulse on copper line */
.brand svg line:last-of-type {
  animation: copper-pulse 4s ease-in-out infinite;
}
@keyframes copper-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Header solid bg transition smoother */
.site-header.scrolled {
  animation: header-settle 0.4s var(--ease);
}
@keyframes header-settle {
  from { transform: translateY(-4px); }
  to { transform: none; }
}

/* Article body — paragraph fade-in on scroll */
article p, article h2, article ul {
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* Cursor follower not added — keep it minimal */


/* === PAGE HEADER (interior pages) === */
.page-head {
  padding: 200px 0 100px;
  border-bottom: 1px solid var(--line);
}
.page-head .crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
}
.page-head .crumbs .sep { color: var(--accent); }
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(56px, 8vw, 130px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  font-weight: 300;
}
.page-head h1 em { font-style: italic; color: var(--accent); }
.page-head .lede { max-width: 60ch; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .hero-grid, .qr-inner, .ports-layout, .news-grid { grid-template-columns: 1fr; gap: 48px; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .stat:nth-child(2) { border-right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { grid-template-columns: auto auto; }
  .nav { display: none; }
  .hero-stats { display: none; }
  .s-head { grid-template-columns: 1fr; gap: 24px; }
  .svc-row { grid-template-columns: 50px 1fr 60px; }
  .svc-row .desc { grid-column: 1 / -1; padding-left: 50px + 32px; }
}
