/* ==========================================================================
   PSC — Port Ship Cargo Solutions · prototype styles
   Colours: the 4 base colours live in js/settings.js (DEFAULTS.colors).
   JS derives the full token set below and writes it onto :root, so the
   values here are only the first-paint fallback.
   ========================================================================== */

:root {
  --bg: #071b2c;
  --bg-deep: #05121d;
  --bg-raise: #0a2a3b;
  --surface: #0e3a4a;
  --surface-hi: #2c5260;
  --surface-top: #3f626e;
  --surface-lo: #0b2b3b;
  --teal: #2cc5b6;
  --teal-soft: #1d8080;
  --teal-dim: #145962;
  --sky: #6cceda;
  --sky-soft: #4598a6;
  --sky-dim: #3a7483;
  --crane: #4b9aa6;
  --crane-lo: #3a7783;
  --yellow: #f2c14e;
  --yellow-soft: #a9904c;
  --text: #eaf3f6;
  --muted: #a6b8c2;
  --line: #1f3443;
  --line-strong: #364b58;
  --on-accent: #04101a;

  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-lg: 28px;
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 40px -22px rgba(0, 6, 12, 0.65);
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--on-accent);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--teal);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 28px -16px rgba(0, 0, 0, 0.7);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--sky); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--sky-dim); background: var(--bg-raise); }

/* ==========================================================================
   1. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: var(--bg);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(4px)) {
  .site-header.is-scrolled {
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter: blur(14px);
  }
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
  align-items: center;
}
.brand-short {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
}
.brand-full {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
}
.brand-logo { height: 32px; width: auto; }

.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav a:hover { color: var(--text); background: var(--bg-raise); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-icon { position: relative; width: 18px; height: 10px; }
.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child { top: 8px; }
.menu-open .menu-icon span:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .menu-icon span:last-child { top: 4px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .menu-open .site-nav { display: block; animation: drop 0.22s ease; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { width: 100%; min-height: 52px; font-size: 1.05rem; color: var(--text); }
}
@media (max-width: 420px) {
  .brand-full { font-size: 0.7rem; padding-left: 10px; }
  .brand { gap: 10px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   2. Hero
   ========================================================================== */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 88px));
  background:
    radial-gradient(ellipse 70% 55% at 72% 62%, var(--bg-raise), transparent 72%),
    var(--bg);
}
.hero-copy { position: relative; z-index: 1; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero-title .accent { color: var(--sky); font-weight: 500; }
.hero-line {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  letter-spacing: 0.04em;
  color: var(--teal);
}
.hero-sub {
  margin-top: 16px;
  max-width: 38rem;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--muted);
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stage {
  position: relative;
  z-index: 0;
  margin-top: clamp(24px, 4vw, 48px);
  user-select: none;
  -webkit-user-select: none;
}
.hero-scene {
  width: 100%;
  height: clamp(210px, 31vw, 430px);
}
@media (min-width: 1100px) {
  /* let the crane rise beside the copy on wide screens (illustration only) */
  .hero-stage:not(.is-photo) { margin-top: calc(-1 * clamp(40px, 6vw, 110px)); }
}

/* Photographic hero: the photograph is the scene, nothing is drawn over it. */
.hero-stage.is-photo { user-select: auto; -webkit-user-select: auto; }
.hero-photo {
  position: relative;
  height: clamp(280px, 44vw, 620px);
  overflow: hidden;
}
.hero-photo[hidden] { display: none; }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}
/* soft fade into the page background (top and foot) */
.hero-photo img {
  -webkit-mask-image: linear-gradient(transparent 0, #000 32%, #000 78%, transparent 100%);
  mask-image: linear-gradient(transparent 0, #000 32%, #000 78%, transparent 100%);
}
@media (max-width: 600px) {
  .hero-photo { height: clamp(260px, 78vw, 340px); }
  .hero-photo img { object-position: 46% 58%; }
}
.hero-water {
  width: 100%;
  height: clamp(110px, 13vw, 190px);
  background: linear-gradient(var(--bg-raise), var(--bg) 45%, var(--bg-deep));
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */
.section { padding-block: clamp(80px, 11vw, 150px); }
.section-head { max-width: 44rem; }
.section-head-row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: end;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-intro {
  margin-top: 20px;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 36rem;
}
.section-head-row .section-intro { margin-top: 0; }

/* ==========================================================================
   3. Expertise — PORT / SHIP / CARGO
   ========================================================================== */
.expertise { background: linear-gradient(var(--bg-deep), var(--bg) 60%); }

.domain-list {
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.domain {
  --accent: var(--teal);
  position: relative;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease;
}
.domain-ship { --accent: var(--sky); }
.domain-cargo { --accent: var(--yellow); }
.domain.is-open { background: linear-gradient(180deg, var(--bg-raise), transparent); }

.domain-head {
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.15fr) auto;
  align-items: center;
  gap: 28px;
  padding: 34px 12px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
}
.domain-head:hover .domain-word { color: var(--accent); }
.domain-head:focus-visible { outline-offset: -2px; border-radius: 12px; }

.domain-index {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.domain-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--accent);
  background: linear-gradient(160deg, var(--surface-hi), var(--surface) 55%, var(--surface-lo));
  box-shadow: var(--shadow-soft);
}
.domain-icon svg { width: 34px; height: 34px; }
.domain-name { display: flex; flex-direction: column; gap: 4px; }
.domain-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}
.domain-full { font-size: 0.9rem; color: var(--muted); }
.domain-desc { color: var(--muted); font-size: 1rem; max-width: 30rem; }
.domain-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.domain-plus {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.35s ease;
}
.domain-plus::before,
.domain-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.8px;
  margin: -0.9px 0 0 -7px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s ease;
}
.domain-plus::after { transform: rotate(90deg); }
.domain-head:hover .domain-plus { border-color: var(--accent); }
.is-open .domain-plus { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(180deg); }
.is-open .domain-plus::after { transform: rotate(0deg); }

.domain-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.is-open .domain-panel { grid-template-rows: 1fr; }
.domain-panel-inner { overflow: hidden; min-height: 0; }

.service-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px 32px;
  align-content: start;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.35s ease;
}
.domain-panel-body {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch; /* image panel follows the height of the service content */
  padding: 0 12px 40px calc(12px + 40px + 64px + 56px);
}
.domain-panel-body:has(.domain-media.is-missing),
.domain-panel-body:not(:has(.domain-media)) { grid-template-columns: minmax(0, 1fr); }
.domain-media {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.is-open .domain-media { opacity: 1; transition-delay: 0.08s; }
.is-open .service-columns { opacity: 1; transform: none; transition-delay: 0.08s; }

.service-group { min-width: 0; }
/* domains with several system blocks (SHIP): advisory on top, system cards below */
.service-columns.has-groups { grid-template-columns: minmax(0, 1fr); }
.has-groups .service-advisory .service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 28px; }
.has-groups .service-systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; grid-auto-flow: dense; }
.has-groups .service-systems .service-heading { grid-column: 1 / -1; }
.has-groups .system-card:nth-of-type(2) { grid-column: 1 / -1; }
.has-groups .system-card:nth-of-type(2) .service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 28px; }
@media (max-width: 960px) {
  .has-groups .service-systems { grid-template-columns: minmax(0, 1fr); }
}
.service-heading {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
}
.service-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.45;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.1em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.system-card { padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
.system-card:last-child { border-bottom: 0; }
.system-title { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; }
.system-text { margin-top: 6px; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.system-list-title { margin-top: 14px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.system-card .service-list li { padding-block: 8px; font-size: 0.9rem; }
.system-card .service-list li:last-child { border-bottom: 0; }
.system-note { margin: 8px 0 10px; font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* digital capability + clients */
.exp-extras {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}
.exp-block {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--surface), var(--bg-raise));
  box-shadow: var(--shadow-soft);
}
.exp-block-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.25; letter-spacing: -0.01em; }
.exp-block-text { margin-top: 10px; color: var(--muted); }
@media (max-width: 820px) { .exp-extras { grid-template-columns: minmax(0, 1fr); } }

/* shared photographic frames */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(transparent, rgba(3, 12, 20, 0.78));
}
.media.is-missing { display: none; }
/* desktop: the frame stretches to the row height set by the text; the image fills it
   without contributing to that height (absolute), so the content stays in charge */
.domain-media { min-height: 320px; }
.domain-media img { position: absolute; inset: 0; object-fit: cover; object-position: center; }
.domain-ship .domain-media img { object-position: 60% center; }
.exp-note { margin-top: 28px; font-size: 0.9rem; color: var(--muted); }

@media (max-width: 960px) {
  .domain-head {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-areas: "icon name toggle" "desc desc desc";
    gap: 16px 18px;
    padding: 26px 4px;
  }
  .domain-index { display: none; }
  .domain-icon { grid-area: icon; width: 56px; height: 56px; border-radius: 16px; }
  .domain-name { grid-area: name; }
  .domain-toggle { grid-area: toggle; }
  .domain-desc { grid-area: desc; }
  .domain-toggle-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .domain-panel-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0 4px 32px; }
  .domain-media { min-height: 0; aspect-ratio: 4 / 3; width: 100%; max-width: 640px; }
  .domain-ship .domain-media { aspect-ratio: 4 / 5; }
  .domain-cargo .domain-media { aspect-ratio: 1 / 1; }
  .service-columns { grid-template-columns: minmax(0, 1fr); }
}
/* tablet: the side-by-side column gets too narrow for a tall panel, so stack image over text early */
@media (min-width: 961px) and (max-width: 1100px) {
  .domain-panel-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0 12px 32px calc(12px + 40px + 64px + 56px); }
  .domain-media { min-height: 0; aspect-ratio: 16 / 9; width: 100%; }
  .domain-ship .domain-media { aspect-ratio: 4 / 3; }
  .domain-cargo .domain-media { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   4. Approach
   ========================================================================== */
.approach-label {
  margin-top: clamp(56px, 7vw, 88px);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
}
.approach-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.approach-label:first-of-type { margin-top: clamp(40px, 5vw, 64px); }

.tag {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}
.card-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.card-text { margin-top: 12px; color: var(--muted); max-width: 32rem; }

.problems,
.options {
  margin-top: 28px;
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}
.problems { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; }
.options { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.problem,
.option {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface), var(--bg-raise));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.problem-copy,
.option-copy { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; flex: 1; }
.problem .media,
.option .media { border: 0; border-radius: 0; box-shadow: none; }
.problem-keys .media { aspect-ratio: 3 / 2; }
.problem-calls .media { aspect-ratio: 4 / 5; max-height: 380px; }
.problem-calls .media img { object-position: 50% 0; }
.option .media { aspect-ratio: 2 / 3; }
.option-upgrade .tag { color: var(--yellow); }
.option-reset .tag,
.option-consult .tag { color: var(--teal); }
.option-consult .text-link:hover { color: var(--sky); }
/* typographic frame (no photograph for this path), same 3:2 proportion */
.option .media.is-typographic {
  display: block;
  background:
    radial-gradient(ellipse 70% 80% at 30% 20%, var(--sky-dim), transparent 70%),
    linear-gradient(150deg, var(--surface-hi), var(--bg-raise));
}
.option .media.is-typographic::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: 0.18em;
  color: var(--text);
}

/* matching 3:2 frame if a key photograph is not available */
.option .media.is-missing {
  display: block;
  background: linear-gradient(150deg, var(--teal-dim), var(--bg-raise));
}
.option-upgrade .media.is-missing { background: linear-gradient(150deg, var(--yellow-soft), var(--bg-raise)); }
.option .media.is-missing::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.18em;
  color: var(--text);
}

.text-link {
  margin-top: auto;
  padding-top: 20px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid transparent;
}
.text-link::after { content: "\2192"; margin-left: 10px; transition: transform 0.25s ease; }
.option-reset .text-link:hover { color: var(--teal); }
.option-upgrade .text-link:hover { color: var(--yellow); }
.text-link:hover::after { transform: translateX(4px); }

.approach-note { margin-top: clamp(40px, 5vw, 64px); max-width: 44rem; color: var(--muted); font-size: 0.95rem; }

.steps {
  position: relative;
  margin-top: 36px;
  --step-gap: clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--step-gap);
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: calc((100% - 2 * var(--step-gap)) / 3 - 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--sky-dim) 55%, var(--line-strong));
}
.step { position: relative; }
.step-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--teal);
  background: linear-gradient(160deg, var(--surface-hi), var(--surface) 60%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft), 0 0 0 8px var(--bg);
}
.step-2 .step-node { color: var(--sky); }
.step-3 .step-node { color: var(--yellow); }
.step-title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.step-text { margin-top: 10px; color: var(--muted); max-width: 22rem; }

@media (max-width: 1000px) {
  .options { grid-template-columns: minmax(0, 1fr); }
  .option { flex-direction: row; }
  .option .media { flex: 0 0 38%; aspect-ratio: auto; min-height: 360px; }
  .option .media img { height: 100%; }
}
@media (max-width: 600px) {
  .option { flex-direction: column; }
  .option .media { flex: none; aspect-ratio: 2 / 3; min-height: 0; }
}
@media (max-width: 820px) {
  .problems { grid-template-columns: minmax(0, 1fr); }
  .problem-calls .media { max-height: 340px; }
  .section-head-row { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: -40px;
    width: 1px;
    background: linear-gradient(180deg, var(--teal-dim), var(--line-strong));
  }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 22px; }
  .step-node { grid-row: span 2; }
  .step-title { margin-top: 10px; font-size: 1.4rem; }
  .step-text { margin-top: 4px; }
}

/* ==========================================================================
   5. Team
   ========================================================================== */
.team { background: linear-gradient(var(--bg), var(--bg-deep)); }
.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.competences { margin-top: 44px; border-top: 1px solid var(--line); }
.competence {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.competence-dot {
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px var(--bg-raise);
}
.competence-2 .competence-dot { background: var(--sky); }
.competence-3 .competence-dot { background: var(--yellow); }
.competence h3 { font-size: 1.12rem; font-weight: 600; }
.competence p { margin-top: 4px; color: var(--muted); }

.team-figure { width: 100%; }
.team-photos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  align-items: start;
}
.team-shot-maritime,
.team-shot-software { aspect-ratio: 4 / 5; }
.team-shot-maritime img { object-position: 72% 50%; }
.team-shot-software { margin-top: clamp(28px, 6vw, 64px); } /* staggered pair */
.team-shot-software img { object-position: 50% 30%; }
/* if either photograph is unavailable the other leads */
.team-photos:has(.is-missing) { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
.team-photos:has(.is-missing) .team-shot-software { margin-top: 0; }

/* e-mail address under the photographs */
.team-mail {
  margin-top: clamp(20px, 3vw, 28px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, var(--surface), var(--bg-raise));
  text-decoration: none;
  transition: border-color 0.25s ease;
}
.team-mail:hover { border-color: var(--teal); }
.team-mail-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.team-mail-address { font-family: var(--font-display); font-weight: 500; color: var(--text); overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .team-grid { grid-template-columns: 1fr; }
  /* text first, photographs after it */
  .team-figure { max-width: 600px; }
}
@media (max-width: 480px) {
  .team-photos { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .team-shot-maritime { aspect-ratio: 16 / 10; }
  .team-shot-software { aspect-ratio: 4 / 3; margin-top: 0; }
}

/* ==========================================================================
   6. Contact
   ========================================================================== */
.contact { background: var(--bg-deep); }
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 96px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, var(--teal-dim), transparent 70%),
    linear-gradient(160deg, var(--surface) 0%, var(--bg-raise) 70%);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 16ch;
  text-wrap: balance;
}
.contact-text { margin-top: 22px; max-width: 36rem; font-size: 1.08rem; color: var(--muted); }
.contact-action { margin-top: 36px; }
.mail-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.mail-address {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-deep);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  cursor: copy;
  user-select: all;
  -webkit-user-select: all;
}
.contact-action { position: relative; }
@media (max-width: 480px) {
  .mail-address { padding: 10px 14px; font-size: clamp(0.9rem, 4.1vw, 1.05rem); letter-spacing: 0; }
}
.mail-copy { gap: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.98rem; }
.mail-copy-icon svg { width: 18px; height: 18px; }
.mail-copy.is-copied { background: var(--yellow); color: var(--on-accent); }
.mail-status { min-height: 1.4em; margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.mail-status:not(.is-error) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.mail-status.is-error { color: var(--yellow); }
.pending {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: var(--bg-deep);
  font-size: 0.95rem;
}
.pending-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex: none; }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 36px 96px;
}
.footer-areas { display: flex; gap: 10px; font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--muted); }
.footer-areas li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }

/* ==========================================================================
   Customize preview panel (owner tool)
   ========================================================================== */
.cz-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7);
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.cz-toggle:hover { opacity: 1; transform: translateY(-1px); }
.cz-toggle svg { width: 20px; height: 20px; }
.cz-toggle-hidden .cz-toggle { display: none; }

.cz-panel {
  position: fixed;
  right: 16px;
  bottom: 72px;
  z-index: 70;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  border-radius: 18px;
  background: var(--bg-raise);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.75);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.cz-panel.is-open { opacity: 1; transform: none; }
.cz-panel[hidden] { display: none; }
.cz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cz-head h2 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.cz-sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.cz-close {
  flex: none;
  width: 44px;
  height: 44px;
  margin: -8px -8px 0 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.cz-close:hover { background: var(--surface); }
.cz-close svg { width: 20px; height: 20px; }

.cz-form fieldset { border: 0; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); min-width: 0; }
.cz-form legend {
  float: left;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cz-color {
  clear: both;
  display: grid;
  grid-template-columns: 1fr auto 48px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.cz-color code { font-size: 0.78rem; color: var(--muted); }
.cz-color input[type="color"] {
  width: 48px;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg);
  cursor: pointer;
}
.cz-check {
  clear: both;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.cz-check input { width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.cz-range { clear: both; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; margin-top: 4px; }
.cz-range input { grid-column: 1 / -1; width: 100%; accent-color: var(--teal); min-height: 32px; }
.cz-range output { font-variant-numeric: tabular-nums; color: var(--muted); }
.cz-field { clear: both; display: block; margin: 6px 0 6px; }
.cz-form textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}
.cz-buttons { clear: both; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.cz-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.cz-btn:hover { border-color: var(--teal); }
.cz-btn-quiet { background: transparent; }
.cz-hint { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.cz-hint kbd, .cz-hint code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.74rem;
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
}
.cz-status { min-height: 1.2em; margin-top: 12px; font-size: 0.82rem; color: var(--muted); }
.cz-status.is-ok { color: var(--teal); }
.cz-status.is-error { color: var(--yellow); }

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* concept illustrations (SVG) in the approach cards: same 3:2 frame as the photographs */
.option .media.is-illustration {
  background:
    radial-gradient(ellipse 65% 75% at 78% 50%, var(--surface), transparent 78%),
    linear-gradient(160deg, var(--bg-raise), var(--bg-deep, var(--bg)));
}
.option .media.is-illustration svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.option .media.is-illustration figcaption {
  left: auto;
  right: 12px;
  bottom: 8px;
  padding: 0;
  background: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}


/* maritime experience strip (About) */
.exp { margin: clamp(20px, 3vw, 28px) 0 clamp(8px, 2vw, 16px); padding: clamp(18px, 2.6vw, 26px); border: 1px solid var(--line-strong); border-left: 3px solid var(--yellow); border-radius: var(--radius); background: linear-gradient(170deg, var(--surface), var(--bg-raise)); }
.exp-label { margin: 0 0 14px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
.exp-stats { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.exp-stats li { display: flex; flex-direction: column; gap: 4px; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.exp-stats li:first-child { padding-left: 0; border-left: 0; }
.exp-value { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1; color: var(--text); }
.exp-text { font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.exp-story { margin: 0; color: var(--text); line-height: 1.6; }
@media (max-width: 560px) {
  .exp-stats { grid-template-columns: 1fr; }
  .exp-stats li, .exp-stats li:first-child { padding-left: 0; border-left: 0; }
}

/* approach photographs: tall frame, picture melts into the card so the text reads as part of it */
.option .media img {
  object-position: 50% 40%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}
.option .media { background: var(--bg-deep, var(--bg)); }
.option .media figcaption { display: none; }
@media (max-width: 1000px) and (min-width: 601px) {
  .option .media img {
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 70%, transparent 100%);
            mask-image: linear-gradient(to right, #000 0%, #000 70%, transparent 100%);
  }
}

/* footer: one thin line */
.site-footer .footer-inner { justify-content: center; padding-block: 28px 88px; }
.footer-line { margin: 0; font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.16em; color: var(--muted); text-align: center; }
