/* Tayari Holding: "the hull"
   Palette taken from Moroccan fishing boats: white topsides, boat blue,
   and the deep Atlantic below. */

:root {
  --hull-white: #F6F8F7;
  --boat-blue: #1F4F96;
  --boat-blue-dark: #183F79;
  --atlantic: #0C2A3A;
  --atlantic-2: #123647;
  --silver: #A7B6C0;
  --ink: #15222D;
  --ink-soft: #44535F;
  --rule: #D6DEE2;

  --font: "Source Serif 4", Georgia, serif;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-ar: "Noto Kufi Arabic", Georgia, serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-pad: clamp(72px, 10vw, 128px);
}

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

/* Smooth scrolling for in-page links lives in main.js (CSS smooth scrolling breaks ScrollTrigger) */

body {
  margin: 0;
  background: var(--hull-white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--boat-blue);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 8px;
  top: -100px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  z-index: 10;
}
.skip-link:focus { top: 8px; }

/* Header: solid by default; with JS it floats over the hero until you scroll past it */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: var(--ink);
  background: rgba(246, 248, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.wordmark {
  flex: none;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}

.wordmark-latin {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.wordmark-arabic {
  font-family: var(--font-ar);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--boat-blue);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9375rem;
}

.site-nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink-soft);
}
.site-nav a:hover { color: var(--ink); }

.site-nav .nav-cta {
  color: #fff;
  background: var(--boat-blue);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--boat-blue-dark); color: #fff; }

.js .site-header:not(.is-solid) {
  color: #fff;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.js .site-header:not(.is-solid) .site-nav a { color: rgba(255, 255, 255, 0.86); }
.js .site-header:not(.is-solid) .site-nav a:hover { color: #fff; }
.js .site-header:not(.is-solid) .wordmark-arabic { color: rgba(255, 255, 255, 0.8); }
.js .site-header:not(.is-solid) .site-nav .nav-cta { background: var(--hull-white); color: var(--atlantic); }
.js .site-header:not(.is-solid) .site-nav .nav-cta:hover { background: #fff; color: var(--atlantic); }
.js .site-header:not(.is-solid) :focus-visible { outline-color: #fff; }

section[id] { scroll-margin-top: 76px; }

/* Buttons */

.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--boat-blue);
  color: #fff;
}
.btn-primary:hover { background: var(--boat-blue-dark); }

.btn-secondary {
  border-color: currentColor;
  color: var(--boat-blue);
}
.btn-secondary:hover { background: var(--boat-blue); border-color: var(--boat-blue); color: #fff; }

.btn-pill {
  border-radius: 999px;
  padding: 17px 32px;
  background: var(--hull-white);
  color: var(--atlantic);
}
.btn-pill:hover { background: #fff; }

.btn-link {
  padding: 17px 6px;
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}
.btn-link:hover { text-decoration-thickness: 2px; }

/* Key words: blue highlight with white text; with JS it sweeps in when scrolled to */

mark.key {
  color: #fff;
  background-color: var(--boat-blue);
  padding: 0.02em 0.18em 0.06em;
  margin: 0 -0.04em;
  border-radius: 0.28em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.js mark.key {
  color: inherit;
  background: linear-gradient(var(--boat-blue), var(--boat-blue)) no-repeat 0 0 / 0% 100%;
  transition: background-size 0.7s cubic-bezier(0.65, 0, 0.35, 1), color 0.3s ease 0.25s;
}

.js mark.key.is-on {
  color: #fff;
  background-size: 100% 100%;
}

/* Hero: the harbour, painted in dots and drifting, with the message on top */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: var(--atlantic);
}

.hero :focus-visible { outline-color: #fff; }

.hero-media {
  position: absolute;
  inset: -5% -3%;
  will-change: transform;
}

.hero-media-zoom,
.hero-media-pan {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background: url("assets/port-boats.jpg") 40% 55% / cover no-repeat;
  filter: saturate(1.35) contrast(1.05);
  transition: opacity 0.9s ease;
}

.hero-paint,
.hero-glints {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-paint { opacity: 0; transition: opacity 0.9s ease; }
.hero.is-painted .hero-paint { opacity: 1; }
.hero.is-painted .hero-photo { opacity: 0; }

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 46% at 50% 46%, rgba(12, 42, 58, 0.5), rgba(12, 42, 58, 0) 72%),
    linear-gradient(180deg, rgba(12, 42, 58, 0.78) 0%, rgba(12, 42, 58, 0.3) 30%, rgba(12, 42, 58, 0.22) 62%, rgba(12, 42, 58, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 48px;
  text-align: center;
}

.hero-arabic {
  font-family: var(--font-ar);
  font-weight: 500;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 8.6vw, 8rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 36px rgba(12, 42, 58, 0.45);
}

.hero-title .line,
.section-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-title .line-inner,
.section-title .line-inner { display: block; }

.section-title .line-inner { text-wrap: balance; }

.hero-lead {
  max-width: 50ch;
  margin: 26px auto 0;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 18px rgba(12, 42, 58, 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
  margin-top: 36px;
}

.hero-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  width: 100%;
  padding-bottom: 28px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.84);
}

.bar-place {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bar-pin {
  width: 13px;
  height: 16px;
  margin-top: 2px;
  flex: none;
}

.bar-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}

.bar-scroll svg { width: 12px; height: 8px; }

.bar-market {
  justify-self: end;
  text-align: end;
}

/* The waterline: where the hero's harbour meets the facts below */

.waterline {
  display: block;
  transform-origin: left center;
}

.waterline-boot {
  display: block;
  height: 8px;
  background: var(--boat-blue);
  border-bottom: 5px solid var(--hull-white);
}

.hero-hull {
  color: #fff;
  padding: clamp(40px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
}

.manifest {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}

.manifest-item {
  border-inline-start: 1px solid rgba(167, 182, 192, 0.35);
  padding-inline-start: 16px;
}

.manifest dt {
  font-size: 0.875rem;
  color: var(--silver);
}

.manifest dd {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  line-height: 1.25;
}

/* Sections */

.section {
  padding: var(--section-pad) 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.125rem, 4.2vw, 3.375rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 20ch;
  text-wrap: balance;
  color: var(--boat-blue);
}

.section-lead {
  margin-top: 20px;
  max-width: 56ch;
  font-size: 1.125rem;
  color: var(--ink);
}

.prose p {
  max-width: 62ch;
  color: var(--ink);
}
.prose p + p { margin-top: 1.1em; }

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

/* Sea hosts: sections with fish floating behind their content */

.fish-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sea-host {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.sea-host > :not(.sea) {
  position: relative;
  z-index: 1;
}

/* Underwater: below the waterline the facts and About sit in the sea, with fish */

.underwater {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--boat-blue);
}

.underwater > section {
  position: relative;
  z-index: 1;
}

.sea {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sea-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.sea-far { filter: blur(1.2px); }

.sea-rays { display: none; }

.sea-rays span {
  position: absolute;
  top: -10%;
  width: 18%;
  height: 85%;
  background: linear-gradient(180deg, rgba(200, 225, 255, 0.16), rgba(200, 225, 255, 0) 85%);
  transform: skewX(-18deg);
  transform-origin: top center;
  filter: blur(18px);
}
.sea-rays span:nth-child(1) { left: 8%; }
.sea-rays span:nth-child(2) { left: 30%; width: 10%; opacity: 0.7; }
.sea-rays span:nth-child(3) { left: 55%; width: 22%; }
.sea-rays span:nth-child(4) { left: 82%; width: 12%; opacity: 0.6; }

.school,
.fish,
.bubble {
  position: absolute;
  top: 0;
  left: 0;
}

.fish { display: block; overflow: visible; }

.bubble {
  border-radius: 50%;
  border: 1px solid rgba(31, 79, 150, 0.28);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), rgba(167, 196, 222, 0.12) 70%);
}

@media (max-width: 700px) {
  .sea-near { opacity: 0.6; }
  .sea-bubbles { opacity: 0.7; }
}

.underwater .hero-hull { color: var(--boat-blue); }
.underwater .manifest dt { color: rgba(31, 79, 150, 0.72); }
.underwater .manifest-item { border-inline-start-color: rgba(31, 79, 150, 0.22); }
.underwater .about .section-title { color: var(--boat-blue); }
.underwater .about .prose p { color: var(--boat-blue-dark); }
.underwater .about { padding-top: clamp(64px, 8vw, 104px); }

/* Who we are: the people who manage the business */

.team {
  border-top: 1px solid var(--rule);
}

.team-head {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.team-head .prose p { color: var(--boat-blue-dark); }

.team-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

/* Until real portraits arrive, each frame is painted in the site's dot style */
.person-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(220, 232, 246, 0.55) 1.4px, transparent 1.9px) 0 0 / 8px 8px,
    radial-gradient(ellipse 70% 55% at 50% 38%, #2C6497, rgba(44, 100, 151, 0) 70%),
    linear-gradient(180deg, #1F4F96 0%, #173A6B 100%);
}

.person-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12%;
  width: 64%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
  background: radial-gradient(circle, rgba(220, 232, 246, 0.35) 1.4px, transparent 1.9px) 0 0 / 8px 8px;
  box-shadow: 0 -96px 0 -24px rgba(220, 232, 246, 0.12);
}

.person-photo span {
  position: absolute;
  inset-inline-start: 14px;
  bottom: 12px;
  z-index: 1;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
}

.team-crew {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  line-height: 1.2;
  color: var(--boat-blue);
  text-wrap: balance;
}

.person-photo.has-photo {
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 0 6px 18px rgba(23, 58, 107, 0.08);
}
.person-photo.has-photo::after { display: none; }

.person-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.person-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--boat-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.person-link:hover { text-decoration-thickness: 2px; }
.person-link svg { width: 16px; height: 16px; }

.person-name {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  line-height: 1.1;
  color: var(--boat-blue);
}

.person-role {
  margin-top: 6px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--boat-blue-dark);
}

.person-note {
  margin-top: 8px;
  max-width: 34ch;
  color: var(--ink);
}

/* Our companies: boat blue with white text, the three companies side by side */

.companies {
  color: #fff;
  background:
    radial-gradient(circle, rgba(220, 232, 246, 0.14) 1.3px, transparent 1.8px) 0 0 / 9px 9px,
    linear-gradient(180deg, var(--boat-blue) 0%, #1A4583 100%);
}

.companies :focus-visible { outline-color: #fff; }

.companies .section-title { color: #fff; }
.companies .section-lead { color: rgba(255, 255, 255, 0.9); }
.companies mark.key { background-color: #fff; color: var(--boat-blue); }
.js .companies mark.key { background-image: linear-gradient(#fff, #fff); }
.js .companies mark.key.is-on { color: var(--boat-blue); }

.companies-head {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.company-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.company {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.company-form {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.company-name {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.08;
  color: #fff;
}

.company-specialty {
  margin-top: 12px;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.9);
}

/* In numbers: headline figures and two charts, drawn from figures.js */

.numbers {
  --chart-grid: #DCE3E7;
  --chart-empty: #E3E9ED;
  --ink-muted: #5F6E79;
  border-top: 1px solid var(--rule);
}

.numbers-head {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  margin: clamp(48px, 6vw, 72px) 0 0;
}

.stat {
  padding: 22px 0 26px;
  border-top: 1px solid var(--rule);
}

.stat dt {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.stat dd {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
}

.stat-value {
  font-weight: 600;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--boat-blue);
}

.stat-note {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.stat.is-empty .stat-value { color: var(--chart-empty); }

.chart-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(48px, 6vw, 80px);
}

.chart { margin: 0; min-width: 0; }

.chart-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--boat-blue);
}

.chart-sub {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.chart-plot {
  position: relative;
  margin-top: 20px;
}

.chart-plot svg { display: block; width: 100%; overflow: visible; }

.chart-plot text {
  font-family: var(--font);
  font-size: 13px;
  fill: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.chart-plot .bar { cursor: default; transition: opacity 0.15s ease; }
.chart-plot .bar:hover,
.chart-plot .bar:focus { opacity: 0.82; outline: none; }
.chart-plot .bar:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.chart-empty-label {
  position: absolute;
  inset: 0 0 28px;
  display: grid;
  place-items: center;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  pointer-events: none;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink);
}

.chart-legend li { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.chart-legend b { font-weight: 600; }

.chart-tip {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(12, 42, 58, 0.14);
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
  opacity: 0;
  transition: opacity 0.12s ease;
}

.chart-tip.is-on { opacity: 1; }
.chart-tip strong { display: block; font-size: 1.0625rem; color: var(--ink); }
.chart-tip span { font-size: 0.8125rem; color: var(--ink-muted); }

.chart-table { margin-top: 18px; font-size: 0.9375rem; }
.chart-table summary { cursor: pointer; color: var(--boat-blue); text-decoration: underline; text-underline-offset: 4px; }
.chart-table table { margin-top: 12px; border-collapse: collapse; min-width: 60%; }
.chart-table th,
.chart-table td { padding-block: 6px; padding-inline: 0 16px; text-align: start; border-bottom: 1px solid var(--rule); }
.chart-table td { font-variant-numeric: tabular-nums; }
.chart-table th { font-weight: 600; color: var(--ink-muted); }

/* Partnership options */

.partner {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.options {
  margin-top: 56px;
  border-top: 2px solid var(--ink);
}

.options-row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 2fr) minmax(0, 2fr) 8.5rem 8rem;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.options-header {
  padding: 14px 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.option-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--boat-blue);
}

.options-row p { color: var(--ink); line-height: 1.45; }

.size {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.size-min {
  flex-basis: 100%;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.size-bar {
  display: inline-flex;
  gap: 3px;
}

.size-bar i {
  display: block;
  width: 14px;
  height: 8px;
  background: var(--rule);
}
.size-bar i.on { background: var(--boat-blue); }

.scenarios {
  margin-top: 48px;
}

.scenarios-title {
  font-size: 1.375rem;
  color: var(--boat-blue);
}

.scenarios-lead {
  margin-top: 8px;
  max-width: 60ch;
  color: var(--ink);
}

.scenarios-scroll {
  margin-top: 20px;
  overflow-x: auto;
}

.scenarios-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
}

.scenarios-table th,
.scenarios-table td {
  padding: 16px;
  text-align: start;
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}

.scenarios-table thead th {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.scenarios-table tbody th,
.scenarios-table thead td { padding-inline-start: 0; }

.scenarios-table tbody th {
  font-weight: 400;
  color: var(--ink-soft);
  width: 30%;
}

.scenarios-table tbody tr:first-child td {
  font-size: 1.25rem;
  color: var(--boat-blue);
}

.scenarios-single {
  min-width: 0;
  max-width: 40rem;
}

.scenarios-single tbody th { width: 50%; }

.scenarios-note {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.options-note {
  margin-top: 28px;
  max-width: 60ch;
  color: var(--ink);
}

/* What your capital can earn: tabs, key figures, chart and tables */

.returns {
  --ink-muted: #5F6E79;
  border-top: 1px solid var(--rule);
}

.returns:not(.is-live) .ret-controls,
.returns:not(.is-live) .ret-stats,
.returns:not(.is-live) .ret-chart { display: none; }

.ret-explorer { margin-top: clamp(40px, 5vw, 56px); }

.ret-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.ret-tabs {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  max-width: 100%;
}

.ret-tab-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--boat-blue);
  box-shadow: 0 4px 14px rgba(31, 79, 150, 0.25);
}

.ret-tabs button {
  position: relative;
  z-index: 1;
  padding: 10px clamp(14px, 2vw, 22px);
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.ret-tabs button[aria-selected="true"] { color: #fff; }
.ret-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.ret-years { display: inline-flex; flex-wrap: wrap; gap: 4px 20px; }

.ret-years button {
  padding: 6px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ret-years button:hover { color: var(--ink); }
.ret-years button[aria-pressed="true"] { color: var(--boat-blue); border-bottom-color: var(--boat-blue); font-weight: 600; }
.ret-years button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ret-years[hidden] { display: none; }

.ret-typical {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--boat-blue);
}

.ret-stats {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin: clamp(32px, 4vw, 44px) 0 0;
}

.ret-stat {
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}

.ret-stat dt {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.ret-stat dd {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ret-stat-lead dd {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--boat-blue);
}

.ret-chart { margin: clamp(40px, 5vw, 56px) 0 0; }

.ret-chart figcaption { display: grid; gap: 4px; margin-bottom: 16px; }
.ret-chart-title { font-weight: 600; font-size: 1.125rem; color: var(--ink); }
.ret-chart-sub { font-size: 0.875rem; color: var(--ink-muted); }

.ret-legend i.sw-line { height: 3px; border-radius: 2px; background: #2A63B8; }
.ret-legend i.sw-range { background: rgba(42, 99, 184, 0.16); }
.ret-legend i.sw-cap { height: 0; border-radius: 0; border-top: 2px dashed var(--ink); }

.ret-plot .ret-band { fill: rgba(42, 99, 184, 0.12); }
.ret-plot .ret-line { fill: none; stroke: #2A63B8; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.ret-plot .ret-dot { fill: #fff; stroke: #2A63B8; stroke-width: 2.5; cursor: default; outline: none; transition: r 0.15s ease; }
.ret-plot .ret-dot.is-done { fill: #2A63B8; }
.ret-plot .ret-dot.is-hover,
.ret-plot .ret-dot:focus-visible { r: 7; }
.ret-plot .ret-dot:focus-visible { stroke: var(--ink); }
.ret-plot .ret-capital { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 5; pointer-events: none; }
.ret-plot .ret-capital-label { fill: var(--ink); font-weight: 600; }
.ret-plot .ret-back-line { stroke: var(--boat-blue); stroke-width: 1.5; pointer-events: none; }
.ret-plot .ret-back-dot { fill: #fff; stroke: var(--boat-blue); stroke-width: 3; pointer-events: none; }
.ret-plot .ret-back-label { fill: var(--boat-blue); font-weight: 600; font-size: 14px; }
.ret-plot .ret-back-label,
.ret-plot .ret-capital-label { paint-order: stroke; stroke: var(--hull-white); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }

.ret-panel { margin-top: clamp(40px, 5vw, 56px); }
.ret-panel[hidden] { display: none; }

.scenarios-table .is-sel { background: rgba(31, 79, 150, 0.06); transition: background 0.3s ease; }
.scenarios-table thead .is-sel { color: var(--boat-blue); font-weight: 600; }

@media (max-width: 900px) {
  .ret-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .ret-stats { grid-template-columns: 1fr; }
  .ret-tabs { display: flex; width: 100%; }
  .ret-tabs button { flex: 1; padding-inline: 8px; font-size: 0.875rem; }
}

/* Protection */

.protect-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.protect-list > div {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.protect-list > div:last-child { border-bottom: 1px solid var(--rule); }

.protect-list dt {
  font-family: var(--font-display);
  font-size: 1.4375rem;
  line-height: 1.2;
}

.protect-list dd {
  margin-top: 4px;
  color: var(--ink);
  max-width: 54ch;
}

/* Painted sections: the same dotted harbour as the hero, in a different crop */

.painted {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--atlantic);
}

.painted :focus-visible { outline-color: #fff; }

.painted-media {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  will-change: transform;
}

.painted-photo {
  position: absolute;
  inset: 0;
  background: url("assets/port-boats.jpg") var(--photo-pos, 50% 50%) / cover no-repeat;
  filter: saturate(1.35) contrast(1.05);
  transition: opacity 0.9s ease;
}

.painted-canvas,
.painted-glints {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.painted-canvas { opacity: 0; transition: opacity 0.9s ease; }
.painted.is-painted .painted-canvas { opacity: 1; }
.painted.is-painted .painted-photo { opacity: 0; }

.painted-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.painted .section-title { color: #fff; }
.painted .section-lead,
.painted .prose p { color: rgba(255, 255, 255, 0.9); }

/* El Ouatia */

.place .painted-shade {
  background:
    linear-gradient(90deg, rgba(12, 42, 58, 0.55) 0%, rgba(12, 42, 58, 0.62) 45%, rgba(12, 42, 58, 0.86) 100%),
    linear-gradient(180deg, rgba(12, 42, 58, 0.35) 0%, rgba(12, 42, 58, 0) 40%, rgba(12, 42, 58, 0.45) 100%);
}

.place {
  padding: clamp(96px, 13vw, 168px) 0;
}

.place-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.place-mark {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.4vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(12, 42, 58, 0.5);
  font-feature-settings: "tnum";
}

.place .section-title { margin-bottom: 24px; }
.place .prose p { text-shadow: 0 1px 16px rgba(12, 42, 58, 0.6); }

/* Contact: a closing scene that mirrors the hero */

.section-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  transform-origin: left center;
}

.section-stripe .waterline-boot { border-bottom-color: var(--hull-white); }

.contact .painted-shade {
  background:
    radial-gradient(ellipse 62% 55% at 50% 50%, rgba(12, 42, 58, 0.55), rgba(12, 42, 58, 0) 75%),
    linear-gradient(180deg, rgba(12, 42, 58, 0.7) 0%, rgba(12, 42, 58, 0.35) 45%, rgba(12, 42, 58, 0.8) 100%);
}

.contact-inner {
  padding: clamp(120px, 16vw, 200px) var(--gutter);
  text-align: center;
}

.contact .section-title {
  max-width: none;
  font-size: clamp(2.5rem, 6.4vw, 5.75rem);
  line-height: 0.98;
  text-shadow: 0 2px 36px rgba(12, 42, 58, 0.45);
}

.contact .section-lead {
  margin: 24px auto 0;
  max-width: 52ch;
  text-shadow: 0 1px 18px rgba(12, 42, 58, 0.6);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
  margin-top: 36px;
}

/* Footer */

.site-footer {
  background: var(--atlantic);
  padding: 44px 0 56px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 8px 32px;
}

.footer-inner > p:first-child { white-space: nowrap; }

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-inline-end: 10px;
}

.footer-arabic { font-family: var(--font-ar); color: rgba(255, 255, 255, 0.85); }

.footer-legal { font-size: 0.875rem; }
.footer-legal:last-child { grid-column: 1 / -1; }

/* Language switch in the header */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--rule);
}

.lang-switch button {
  min-width: 40px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: 600 0.8125rem/1 var(--font);
  cursor: pointer;
}

.lang-switch button[lang="ar"] { font-family: "Noto Naskh Arabic", serif; font-size: 0.9375rem; }
.lang-switch button[lang="zh"] { font-family: "Noto Serif SC", serif; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--boat-blue); color: #fff; }

.js .site-header:not(.is-solid) .lang-switch { border-color: rgba(255, 255, 255, 0.4); }
.js .site-header:not(.is-solid) .lang-switch button { color: rgba(255, 255, 255, 0.85); }
.js .site-header:not(.is-solid) .lang-switch button:hover { color: #fff; }
.js .site-header:not(.is-solid) .lang-switch button[aria-pressed="true"] { background: var(--hull-white); color: var(--atlantic); }

/* Arabic: right-to-left, with Arabic serif faces. Arabic letters join, so no
   letter-spacing anywhere; lines need more height for the script's tall forms. */

html[lang="ar"] {
  --font: "Noto Naskh Arabic", "Source Serif 4", serif;
  --font-display: "Amiri", "DM Serif Display", serif;
}

html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] .hero-title { line-height: 1.25; font-weight: 700; }
html[lang="ar"] .section-title,
html[lang="ar"] .contact .section-title { line-height: 1.4; font-weight: 700; }
html[lang="ar"] .person-name,
html[lang="ar"] .company-name,
html[lang="ar"] .option-name,
html[lang="ar"] .chart-title,
html[lang="ar"] .protect-list dt,
html[lang="ar"] .manifest dd,
html[lang="ar"] .team-crew { font-weight: 700; line-height: 1.45; }

/* Names, the wordmark, coordinates and numbers stay in their Latin forms */
html[lang="ar"] .wordmark-latin,
html[lang="ar"] .footer-name,
html[lang="ar"] .person-name { font-family: "DM Serif Display", serif; font-weight: 400; }
.place-mark,
.chart-plot svg { direction: ltr; }
html[lang="ar"] .place-mark { align-items: flex-end; }

/* Simplified Chinese: a matching serif, no letter-spacing, a little more line height */

html[lang="zh"] {
  --font: "Noto Serif SC", "Source Serif 4", serif;
  --font-display: "Noto Serif SC", "DM Serif Display", serif;
}

html[lang="zh"] body { line-height: 1.8; }
html[lang="zh"] * { letter-spacing: 0 !important; }
html[lang="zh"] .hero-title { line-height: 1.2; font-weight: 700; }
html[lang="zh"] .section-title,
html[lang="zh"] .contact .section-title { line-height: 1.3; font-weight: 700; }
html[lang="zh"] .company-name,
html[lang="zh"] .option-name,
html[lang="zh"] .chart-title,
html[lang="zh"] .protect-list dt,
html[lang="zh"] .manifest dd,
html[lang="zh"] .team-crew { font-weight: 600; }
html[lang="zh"] .wordmark-latin,
html[lang="zh"] .footer-name,
html[lang="zh"] .person-name { font-family: "DM Serif Display", serif; font-weight: 400; }

/* The highlight sweeps in from the reading side */
html.js[dir="rtl"] mark.key { background-position: 100% 0; }

/* Responsive */

@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .site-nav .nav-cta { display: none; }
}

@media (max-width: 1280px) {
  .wordmark-arabic { display: none; }
  .site-nav { gap: 20px; }
  .site-nav a[href="#el-ouatia"] { display: none; }
}

@media (max-width: 1120px) {
  .site-nav a[href="#about"] { display: none; }
}

@media (max-width: 980px) {
  .site-nav a[href="#companies"] { display: none; }
}

@media (max-width: 1000px) {
  .manifest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-nav a:not(.nav-cta) { display: none; }

  .about-grid,
  .team-head,
  .companies-head,
  .numbers-head,
  .chart-grid,
  .protect-grid,
  .place-grid { grid-template-columns: 1fr; }

  .contact-actions { flex-direction: column; gap: 4px; }

  .team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-list { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .options-header { display: none; }

  .options-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    padding: 28px 0;
  }

  .option-name { grid-column: 1 / -1; }

  .options-row p[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8125rem;
    color: var(--ink-soft);
    margin-bottom: 2px;
  }

  .size { flex-wrap: wrap; }
  .size::before { flex-basis: 100%; }

  .footer-inner { grid-template-columns: 1fr; }

  .hero-bar { grid-template-columns: 1fr auto; }
  .bar-market { display: none; }
}

@media (max-width: 560px) {
  .wordmark-arabic { display: none; }
  .wordmark-latin { font-size: 1.25rem; }
  .lang-switch button { min-width: 32px; padding: 6px 7px; }
  .manifest { grid-template-columns: 1fr 1fr; }
  .options-row { grid-template-columns: 1fr; }
  .team-list { grid-template-columns: 1fr; gap: 28px; }

  /* On phones each person is a row: a small upright photo beside the text,
     so the portrait keeps its face whole and is never blown up past its size */
  .person {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 18px;
    align-items: start;
  }
  .person-photo {
    grid-row: 1 / span 4;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
  }
  .person-photo span { display: none; }
  .person-name { margin-top: 2px; font-size: 1.5rem; }
  .person-role { font-size: 0.9375rem; }
  .person-note { font-size: 1rem; }
  .person-link { margin-top: 10px; }
  .hero-actions { flex-direction: column; gap: 4px; }
  .hero-actions .btn-pill { width: 100%; text-align: center; }
  .hero-content { padding-top: 104px; }
}

