/* =========================================================================
   KHA MARINE — STYLES
   ------------------------------------------------------------------------
   Edit the variables in THEMES.CSS to recolor.
   This file holds: reset, tokens, typography, layout, components, sections.
   Order:
     1. Reset / base
     2. Design tokens (non-color — colors are in themes.css)
     3. Typography
     4. Layout primitives (.wrap, .grid, .stack, .row)
     5. Buttons / forms / cards
     6. Header / nav
     7. Footer
     8. Sections (hero, ribbon, split, cta, etc.)
     9. Page-specific blocks (models filter, timeline, etc.)
    10. Mobile nav drawer
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. RESET / BASE
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

/* Brand: subtle focus ring (no harsh rectangle around the logo) */
.brand:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--accent),
    0 0 0 4px var(--bg);
  border-radius: 6px;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  background: var(--accent);
  color: var(--accent-on);
  padding: 12px 18px;
  font-weight: 600;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

/* -------------------------------------------------------------------------
   2. DESIGN TOKENS (sizing / motion)
   ------------------------------------------------------------------------- */
:root {
  /* Fonts */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Fluid type scale (min, fluid, max) — balanced, never overscaled */
  --fs-xs: clamp(0.72rem, 0.69rem + 0.13vw, 0.8rem);
  --fs-sm: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --fs-base: clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --fs-md: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --fs-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-xl: clamp(1.65rem, 1.4rem + 1.1vw, 2.2rem);
  --fs-2xl: clamp(2rem, 1.6rem + 1.75vw, 3rem);
  --fs-3xl: clamp(2.4rem, 1.8rem + 2.5vw, 4rem);
  --fs-4xl: clamp(2.8rem, 1.95rem + 3.5vw, 5rem);

  /* Spacing scale — generous but not extravagant */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 18px;
  --sp-5: 28px;
  --sp-6: 40px;
  --sp-7: 60px;
  --sp-8: 88px;
  --sp-9: 120px;
  --sp-10: 160px;
  --sp-11: 200px;

  /* Radius / borders */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Layout */
  --max-w: 1360px;
  --gutter: clamp(20px, 3.5vw, 48px);
  --section-pad: clamp(72px, 9vw, 128px);
  --header-h: clamp(72px, 7vw, 96px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 600ms;

  /* Layered shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12), 0 28px 64px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 30;
  color: var(--text);
}

h1 {
  font-size: var(--fs-3xl);
  font-weight: 500;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--fs-xl);
  letter-spacing: -0.015em;
}

h4 {
  font-size: var(--fs-lg);
}

h5 {
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
  font-weight: 600;
}

p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  max-width: 64ch;
  line-height: 1.65;
}

strong {
  color: var(--text);
  font-weight: 700;
}

em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--sp-3);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

.lede {
  font-size: var(--fs-md);
  color: var(--text);
  max-width: 58ch;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* Editorial display headline with mixed weight/style */
.h-display {
  font-size: var(--fs-3xl);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.h-display em {
  font-style: italic;
  color: var(--text);
  font-weight: 400;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 100;
}

.h-hero {
  font-size: var(--fs-4xl);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

/* -------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   ------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  /* padding-inline: var(--gutter); */
}

/* Gutter is applied at the section level so .wrap stays a pure
   max-width container. Every section-level block adds the gutter
   itself to keep edge-to-content padding consistent.
   The ribbon is intentionally excluded — its scrolling track is full-width. */
.section,
.hero,
.page-header,
.site-footer {
  padding-inline: var(--gutter);
}

/* Ribbon label gets gutter on its own; track stays edge-to-edge */
.ribbon .ribbon-label {
  padding-inline: var(--gutter);
}

/* Header navbar: full screen width, brand pinned to far-left edge, actions
   pinned to far-right edge, links centered. Per request — no max-width
   constraint, no padding/margin on the wrap, edge-to-edge. A small inset
   keeps the brand and hamburger off the very pixel-edge on mobile. */
.site-header>.wrap.nav {
  max-width: none;
  padding-inline: clamp(20px, 2.5vw, 40px);
  margin-inline: 0;
  width: 100%;
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section-tight {
  padding-block: clamp(64px, 8vw, 120px);
}

.stack>*+* {
  margin-top: var(--stack-gap, var(--sp-5));
}

.stack-sm {
  --stack-gap: var(--sp-3);
}

.stack-md {
  --stack-gap: var(--sp-5);
}

.stack-lg {
  --stack-gap: var(--sp-7);
}

.grid {
  display: grid;
  gap: var(--gap, var(--sp-6));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-6), 7vw, var(--sp-8));
  align-items: center;
}

.split--feature {
  grid-template-columns: 1.05fr 0.95fr;
}

.row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.divider {
  height: 1px;
  background: var(--border);
  margin-block: var(--sp-7);
}

/* -------------------------------------------------------------------------
   5. BUTTONS / FORMS / CARDS / TAGS
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition:
    transform var(--dur-2) var(--ease),
    background-color var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--surface-elev);
  border-color: var(--accent);
  color: var(--accent);
}

.btn--whatsapp {
  background: #25d366;
  color: #052e16;
  border-color: #25d366;
}

.btn--whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
}

.btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-2) var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* Tag / chip */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
}

.tag--accent {
  color: var(--accent);
  border-color: var(--accent);
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-5) var(--sp-5);
  transition:
    transform var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    background-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.card .num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
  font-weight: 500;
  line-height: 1.15;
}

.card p {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-muted);
}

/* Card with image */
.card--media {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.card--media .media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card--media .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.card--media:hover .media img {
  transform: scale(1.05);
}

.card--media .body {
  padding: var(--sp-6) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.card--media .meta {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  font-weight: 600;
}

.card--media .meta span {
  white-space: nowrap;
}

.card--media .meta span strong {
  color: var(--text);
  margin-left: 6px;
  font-weight: 700;
}

/* Stat block */
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat .num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  color: var(--text);
}

.stat .label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: var(--fs-base);
  color: var(--text);
  transition:
    border-color var(--dur-2) var(--ease),
    background-color var(--dur-2) var(--ease);
  width: 100%;
  font-family: var(--font-body);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-elev);
}

.field textarea {
  resize: vertical;
  min-height: 160px;
}

.form-status {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid #25d366;
  color: #25d366;
}

.form-status.is-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.form-status.is-loading {
  background: var(--surface-elev);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   6. HEADER / NAV
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: var(--sp-2);
  background: var(--bg-translucent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    padding var(--dur-2) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

/* Three-column flex: brand left, links centred, actions right.
   Gaps are tight so all 8 nav items + actions fit on the same row. */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--header-h);
  flex-wrap: nowrap;
}

.nav .brand {
  margin-inline-end: auto;
  flex: 0 0 auto;
}

.nav-links {
  /* Pull links toward the centre but allow generous breathing on either side */
  margin-inline: auto;
  min-width: 0;
}

.nav .nav-actions {
  margin-inline-start: auto;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 1.25rem;
}

/* Hide background-image logo slot — KHA brand uses bespoke wordmark */
.brand .logo {
  display: none;
}

/* KHA Marine wordmark — bespoke lockup, fluid + theme aware */
.brand-text {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.42ch;
  padding-block: 2px;
  font-family: var(--font-display);
  line-height: 1;
  font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.55rem);
  letter-spacing: -0.015em;
  color: var(--text);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  transition:
    color var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
  white-space: nowrap;
}

/* "KHA" — bold, slightly tracked, theme-aware */
.brand-text .b1 {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variation-settings: "opsz" 96, "SOFT" 0;
  color: var(--text);
  position: relative;
}

/* Subtle accent dot between KHA and Marine — replaces gap with a refined seam */
.brand-text .b1::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-inline: 0.55ch 0.35ch;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  transform: translateY(-0.18em);
  box-shadow: 0 0 0 0 var(--accent);
  transition:
    transform var(--dur-2) var(--ease),
    box-shadow var(--dur-3) var(--ease);
}

/* "Marine" — italic display, fluid optical sizing, gradient accent */
.brand-text .b2 {
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  background: linear-gradient(100deg,
      var(--accent) 0%,
      var(--accent) 38%,
      color-mix(in oklab, var(--accent) 60%, var(--text)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: filter var(--dur-2) var(--ease);
}

/* Hover: dot brightens, Marine gradient subtly lifts */
.brand:hover .brand-text .b1::after {
  transform: translateY(-0.18em) scale(1.25);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}

.brand:hover .brand-text .b2 {
  filter: brightness(1.1) saturate(1.08);
}

.brand:active .brand-text {
  transform: translateY(0.5px);
}

/* Fallback for browsers without background-clip text support */
@supports not (background-clip: text) {
  .brand-text .b2 {
    background: none;
    color: var(--accent);
    -webkit-text-fill-color: currentColor;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Tight, fluid gap — keeps 8 links + actions on one row down to ~1280px */
  gap: clamp(12px, 1.4vw, 26px);
  flex-wrap: nowrap;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: clamp(0.74rem, 0.7rem + 0.18vw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 8px 2px;
  white-space: nowrap;
  transition: color var(--dur-2) var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--dur-2) var(--ease);
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  flex: 0 0 auto;
}

/* Language switcher — small horizontal pill, works in both LTR and RTL */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-switch a {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  line-height: 1;
  transition:
    background-color var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease);
}

.lang-switch a[aria-current="true"] {
  background: var(--accent);
  color: var(--accent-on);
}

.lang-switch a:hover:not([aria-current="true"]) {
  color: var(--text);
}

.theme-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}

.theme-switch button {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color var(--dur-2) var(--ease);
  color: var(--text-muted);
}

.theme-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-on);
}

.theme-switch button:hover {
  color: var(--text);
}

.theme-switch button[aria-pressed="true"]:hover {
  color: var(--accent-on);
}

.theme-switch .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.theme-switch [data-theme-set="ocean"] .dot {
  background: linear-gradient(135deg, #050a14, #4a9eff);
}

.theme-switch [data-theme-set="steel"] .dot {
  background: linear-gradient(135deg, #f5f7fa, #1a4d7a);
  border: 1px solid var(--border);
}

.theme-switch [data-theme-set="gulf"] .dot {
  background: linear-gradient(135deg, #0a1a2e, #c9a14a);
}

/* Compact "Request Quote" button inside the navbar — full-size button is too
   bulky for an 8-link nav. Stays visually balanced with the lang/theme pills. */
.nav-actions>.btn {
  padding: 10px 16px;
  font-size: clamp(0.74rem, 0.7rem + 0.15vw, 0.82rem);
  letter-spacing: 0.04em;
  border-radius: 999px;
  gap: 6px;
}

.nav-actions>.btn .arrow {
  width: 14px;
  height: 14px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform var(--dur-2) var(--ease),
    top var(--dur-2) var(--ease);
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Spacer so main content clears the fixed header */
.page-offset {
  height: var(--header-h);
}

/* -------------------------------------------------------------------------
   7. FOOTER
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: var(--sp-9) var(--sp-5);
  margin-top: var(--sp-9);
}

.site-footer .brand .logo {
  width: clamp(170px, 18vw, 240px);
}

.site-footer .brand-text {
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-7);
}

.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-grid a {
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--dur-2) var(--ease);
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-tag {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--text-muted);
  max-width: 32ch;
  line-height: 1.5;
  margin-top: var(--sp-4);
  font-weight: 400;
}

.footer-bar {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   8. SECTIONS
   ------------------------------------------------------------------------- */

/* HERO ------------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: clamp(140px, 16vh, 200px);
  padding-bottom: clamp(80px, 10vh, 140px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 10%, var(--accent-glow) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%,
      var(--accent-2-glow) 0%,
      transparent 55%),
    var(--bg-deep);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}

[data-theme="steel"] .hero-canvas {
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-8);
  align-items: stretch;
}

.hero-headline {
  font-size: clamp(2.25rem, 1.5rem + 3.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 30;
  font-weight: 500;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 100;
}

.hero-sub {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.6;
  margin-top: var(--sp-6);
  font-weight: 400;
  letter-spacing: 0.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-translucent);
  backdrop-filter: blur(12px);
}

.hero-meta .meta-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.hero-meta .meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero-meta .label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-meta .value {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--text);
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
  font-weight: 600;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollLine 2.4s var(--ease) infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* PAGE HEADER (non-home) ------------------------------------------- */
.page-header {
  position: relative;
  padding-top: clamp(140px, 16vh, 200px);
  padding-bottom: clamp(64px, 8vh, 112px);
  overflow: hidden;
  isolation: isolate;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 70% 0%, var(--accent-glow) 0%, transparent 50%),
    var(--bg-deep);
}

.page-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: overlay;
}

.page-header h1 {
  font-size: var(--fs-2xl);
  max-width: 22ch;
  margin-top: var(--sp-3);
  line-height: 1.05;
}

.page-header .lede {
  margin-top: var(--sp-5);
}

/* SECTION HEADER ---------------------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-6);
  align-items: end;
  margin-bottom: var(--sp-6);
}

.section-head h2 {
  max-width: 16ch;
  line-height: 1.06;
}

.section-head p {
  max-width: 54ch;
}

.section-head .lede {
  font-size: var(--fs-base);
  color: var(--text);
}

/* CLIENT RIBBON ----------------------------------------------------- */
.ribbon {
  background: var(--surface);
  overflow: hidden;
  position: relative;
  /* Much more vertical presence — the ribbon should announce itself. */
  padding-block: clamp(96px, 12vw, 160px);
}

.ribbon-label {
  text-align: center;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-7);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.ribbon-track {
  display: flex;
  width: max-content;
  /* Wider gaps so each logo gets room to breathe */
  gap: clamp(72px, 8vw, 140px);
  align-items: center;
  animation: ribbonScroll 55s linear infinite;
  will-change: transform;
  padding-block: var(--sp-4);
}

.ribbon:hover .ribbon-track {
  animation-play-state: paused;
}

.ribbon-track>* {
  flex-shrink: 0;
}

.ribbon-logo {
  /* Dramatically larger logos for strong client presence */
  height: clamp(110px, 12vw, 180px);
  width: auto;
  max-width: 340px;
  object-fit: contain;
  opacity: 0.95;
  filter: var(--logo-filter);
  transition:
    opacity var(--dur-2) var(--ease),
    transform var(--dur-2) var(--ease);
}

.ribbon-logo:hover {
  opacity: 1;
  transform: scale(1.06);
}

@keyframes ribbonScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14%;
  z-index: 2;
  pointer-events: none;
}

.ribbon::before {
  left: 0;
  background: linear-gradient(to right, var(--surface), transparent);
}

.ribbon::after {
  right: 0;
  background: linear-gradient(to left, var(--surface), transparent);
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-track {
    animation: none;
  }
}

/* SPLIT IMAGE / COPY ----------------------------------------------- */
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  border-radius: var(--radius-lg);
  object-position: center;
  object-fit: cover;
}

/* About story split — generous but balanced */
.about-split {
  gap: clamp(var(--sp-6), 6vw, var(--sp-8));
}

.about-copy p {
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  max-width: 58ch;
}

.about-copy p+p {
  margin-top: var(--sp-3);
}

/* CTA BLOCK -------------------------------------------------------- */
.cta-block {
  position: relative;
  padding: clamp(56px, 7vw, 104px) clamp(32px, 5vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
}

.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 100%, var(--accent-glow) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 0%,
      var(--accent-2-glow) 0%,
      transparent 50%);
  z-index: -1;
}

.cta-block h2 {
  font-size: var(--fs-2xl);
  max-width: 18ch;
}

.cta-block .lede {
  margin-top: var(--sp-4);
}

.cta-block .row {
  margin-top: var(--sp-7);
}

/* TIMELINE (manufacturing / process) ------------------------------- */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
}

.timeline-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.timeline-step:last-child {
  border-bottom: 0;
}

.timeline-step .num {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--accent);
  font-variation-settings: "opsz" 144;
  line-height: 1;
  font-weight: 500;
}

.timeline-step h3 {
  font-size: var(--fs-lg);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.timeline-step p {
  font-size: var(--fs-base);
  line-height: 1.7;
}

/* MODELS FILTER ---------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-7);
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}

.filter-bar button {
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition:
    background-color var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease);
  white-space: nowrap;
  font-weight: 600;
}

.filter-bar button:hover {
  color: var(--text);
}

.filter-bar button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-on);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--sp-6);
}

@media (min-width: 1100px) {
  .model-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* FAQ / ACCORDION (light) ----------------------------------------- */
details.acc {
  border-bottom: 1px solid var(--border);
  padding: var(--sp-5) 0;
}

details.acc summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: -0.015em;
  font-weight: 500;
}

details.acc summary::-webkit-details-marker {
  display: none;
}

details.acc summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  transition: transform var(--dur-2) var(--ease);
  font-size: 1.5rem;
  font-weight: 400;
}

details.acc[open] summary::after {
  content: "–";
}

details.acc p {
  padding-top: var(--sp-4);
  font-size: var(--fs-base);
}

/* PROJECTS GRID ---------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(5, 10, 20, 0.88) 0%,
      rgba(5, 10, 20, 0) 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-6);
}

.project-card .overlay-inner {
  color: #fff;
}

.project-card .overlay .tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.project-card h3 {
  color: #fff;
  margin-top: 14px;
  font-size: var(--fs-lg);
}

.project-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-sm);
  margin-top: 6px;
}

/* SEVEN SEAS PAGE -------------------------------------------------- */
.seven-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
  padding-block: var(--sp-7);
  border-bottom: 1px solid var(--border);
}

.seven-block:last-child {
  border-bottom: 0;
}

.seven-block h2 em {
  font-weight: 400;
}

.seven-block .num-mega {
  font-family: var(--font-display);
  font-size: clamp(9rem, 20vw, 26rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 100;
  font-style: italic;
  color: var(--accent);
  opacity: 0.95;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seven-block .num-mega img {
  width: 100%;
  max-width: 480px;
  height: auto;
  color: var(--accent);
}

/* CONTACT PAGE ----------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-8);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.contact-info .item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-2) var(--ease);
}

.contact-info .item:hover {
  border-color: var(--accent);
}

.contact-info .item .label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-info .item .value {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--text);
  font-weight: 500;
}

.contact-info .item a {
  color: var(--text);
}

.contact-info .item a:hover {
  color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-grid .full {
  grid-column: 1 / -1;
}

/* MAP placeholder -------------------------------------------------- */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-elev);
  position: relative;
  border: 1px solid var(--border);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ANIMATION HOOKS -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 800ms var(--ease),
    transform 800ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 100ms;
}

.reveal[data-delay="2"] {
  transition-delay: 200ms;
}

.reveal[data-delay="3"] {
  transition-delay: 300ms;
}

.reveal[data-delay="4"] {
  transition-delay: 400ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* UTILITIES -------------------------------------------------------- */
.muted {
  color: var(--text-muted);
}

.accent {
  color: var(--accent);
}

.center {
  text-align: center;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================================
   10. MOBILE NAV — UNIFIED DRAWER
   ========================================================================= */
body.nav-open {
  overflow: hidden;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-2) var(--ease),
    visibility var(--dur-2) var(--ease);
}

body.nav-open .mobile-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  width: min(90vw, 420px);
  height: 100dvh;
  padding: var(--sp-5);
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  transition: transform var(--dur-2) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  overflow-y: auto;
}

body.nav-open .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.mobile-drawer .brand .logo {
  width: 170px;
}

.mobile-close {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.mobile-nav-links a:hover,
.mobile-nav-links a[aria-current="page"] {
  color: var(--accent);
}

.mobile-nav-links a::after {
  content: "→";
  color: var(--accent);
  font-family: var(--font-mono);
}

.mobile-drawer__actions {
  display: grid;
  gap: var(--sp-3);
  margin-top: auto;
}

.mobile-drawer__actions .btn {
  justify-content: center;
  width: 100%;
}

/* Hide drawer entirely on desktop */
@media (min-width: 1280px) {

  .mobile-overlay,
  .mobile-drawer {
    display: none !important;
  }
}

/* Responsive nav breakpoint — collapse to hamburger when 8 links + actions
   no longer fit comfortably. lang-switch stays so users can still flip
   locale from the collapsed bar. */
@media (max-width: 1280px) {

  .nav-links,
  .nav-actions>.theme-switch,
  .nav-actions>.btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .brand .logo {
    width: clamp(140px, 22vw, 200px);
  }
}

@media (max-width: 600px) {

  /* On small phones, tighten the navbar inset and adjust the logo. */
  .site-header>.wrap.nav {
    padding-inline: 16px;
  }

  .brand .logo {
    width: clamp(120px, 38vw, 170px);
  }

  .lang-switch a {
    padding: 4px 8px;
    font-size: 0.62rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }
}

/* =========================================================================
   MODEL CARDS — Arabic name + meaning layout
   ------------------------------------------------------------------------
   The model card adds a head row with the model name on the left and the
   Arabic glyph on the right, a one-line meaning in italic, and a longer
   description. Mobile keeps the Arabic visible but shrinks it.
   ========================================================================= */
.model-card {
  position: relative;
}

.model-card .media {
  aspect-ratio: 16 / 11;
}

.tag--floating {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.7rem;
  padding: 7px 13px;
  letter-spacing: 0.18em;
}

.model-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
}

.model-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 6px;
}

.model-card__sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-top: 6px;
}



.model-card__meaning {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.model-card__desc {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-muted);
}

.model-card .meta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  gap: 10px;
}

.model-card .meta span {
  white-space: nowrap;
}

.model-card .meta span strong {
  margin-left: 4px;
  font-weight: 700;
}

.model-card__cta {
  margin-top: var(--sp-3);
  align-self: flex-start;
}

@media (max-width: 600px) {
  .model-card__head {
    align-items: center;
  }


}

/* =========================================================================
   HOMEPAGE GALLERY STRIP — fleet visual highlight
   ------------------------------------------------------------------------
   Compact image-card strip used on the homepage to show real fleet shots
   without breaking the editorial layout. Each tile carries a label.
   ========================================================================= */
.fleet-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--sp-4);
  height: min(640px, 60vw);
}

.fleet-gallery__tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.fleet-gallery__tile:first-child {
  grid-row: 1 / 3;
}

.fleet-gallery__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}

.fleet-gallery__tile:hover img {
  transform: scale(1.04);
}

.fleet-gallery__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0) 45%);
  z-index: 1;
  pointer-events: none;
}

.fleet-gallery__label {
  position: absolute;
  bottom: var(--sp-4);
  left: var(--sp-4);
  right: var(--sp-4);
  z-index: 2;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

.fleet-gallery__label strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.4vw, 1.55rem);
  letter-spacing: -0.015em;
  text-transform: none;
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.15;
}

@media (max-width: 900px) {
  .fleet-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
    height: auto;
  }

  .fleet-gallery__tile:first-child {
    grid-column: 1 / 3;
    grid-row: 1;
  }
}

@media (max-width: 600px) {
  .fleet-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 200px);
  }

  .fleet-gallery__tile:first-child {
    grid-column: 1;
    grid-row: 1;
  }
}

/* =========================================================================
   FORM STATUS — improved feedback states for the contact form
   ========================================================================= */
.form-status {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-radius: 12px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity var(--dur-2) var(--ease),
    max-height var(--dur-2) var(--ease);
}

.form-status.is-visible {
  opacity: 1;
  max-height: 200px;
}

.form-status.is-loading {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.form-status.is-success {
  background: rgba(46, 160, 95, 0.12);
  color: #2ea05f;
  border: 1px solid rgba(46, 160, 95, 0.4);
}

.form-status.is-error {
  background: rgba(220, 70, 70, 0.1);
  color: #d65656;
  border: 1px solid rgba(220, 70, 70, 0.35);
}

/* =========================================================================
   MOBILE NAV — open state body lock
   ========================================================================= */
body.nav-open {
  overflow: hidden;
}

/* =========================================================================
   HERO VISUAL — replaces the right-column dark void with a real image
   plus the meta panel stacked under it for a balanced composition.
   ========================================================================= */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-self: stretch;
}

.hero-visual__media {
  position: relative;
  flex: 1;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.hero-visual__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
      rgba(0, 0, 0, 0) 50%,
      rgba(5, 10, 20, 0.4) 100%);
  pointer-events: none;
}

.hero-visual .hero-meta {
  margin-top: 0;
}

@media (max-width: 900px) {
  .hero-visual {
    order: -1;
  }

  .hero-visual__media {
    min-height: 240px;
    aspect-ratio: 16 / 10;
    flex: none;
  }
}

/* =========================================================================
   GALLERY PAGE — masonry layout + filter bar
   ========================================================================= */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}

.gallery-filter button {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-2) var(--ease);
}

.gallery-filter button:hover {
  color: var(--text);
  border-color: var(--accent);
}

.gallery-filter button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}

.masonry {
  column-count: 3;
  column-gap: var(--sp-5);
}

.masonry__item {
  break-inside: avoid;
  margin: 0 0 var(--sp-5);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.masonry__item[hidden] {
  display: none;
}

.masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 700ms var(--ease);
}

.masonry__item:hover img {
  transform: scale(1.04);
}

.masonry__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0) 100%);
  color: #fff;
  pointer-events: none;
}

.masonry__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.masonry__item figcaption strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: block;
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry {
    column-count: 1;
  }
}

/* =========================================================================
   GROUP OF COMPANIES — logo strip (unused; group page removed)
   ------------------------------------------------------------------------
   Grayscale resting state, color on hover. Theme-aware via CSS variables.
   ========================================================================= */
.group-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  margin-top: var(--sp-6);
}

.group-strip__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-2) var(--ease);
}

.group-strip__item img {
  height: clamp(36px, 5vw, 56px);
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: var(--logo-filter);
  opacity: 0.85;
  transition:
    filter var(--dur-2) var(--ease),
    opacity var(--dur-2) var(--ease);
}

.group-strip__item:hover {
  transform: translateY(-2px);
}

.group-strip__item:hover img {
  filter: none;
  opacity: 1;
}

.group-strip__text {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--text);
  letter-spacing: -0.01em;
  font-weight: 500;
  white-space: nowrap;
}

/* Group page — company cards */
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--sp-5);
}

.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition:
    transform var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
  height: 100%;
}

.group-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.group-card__logo {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: var(--sp-3);
}

.group-card__logo img {
  max-height: 64px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: var(--logo-filter);
  opacity: 0.85;
  transition:
    filter var(--dur-2) var(--ease),
    opacity var(--dur-2) var(--ease);
}

.group-card:hover .group-card__logo img {
  filter: none;
  opacity: 1;
}

/* Per-company logo sizing overrides */
#mana-advisory .group-card__logo img {
  max-height: 96px;
  max-width: 260px;
}

#kha-marine .group-card__logo img {
  max-height: 110px;
  max-width: 260px;
}

#suofeiya .group-card__logo img {
  max-height: 96px;
  max-width: 240px;
}

#serva .group-card__logo img {
  max-height: 84px;
  max-width: 220px;
}

#dnake .group-card__logo img {
  max-height: 52px;
  max-width: 170px;
}

.group-card__logo-text {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--text);
  letter-spacing: -0.01em;
  font-weight: 500;
  line-height: 1;
}

.group-card__discipline {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.group-card h3 {
  font-size: var(--fs-lg);
  letter-spacing: -0.015em;
  font-weight: 500;
}

.group-card__descriptor {
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.55;
  font-weight: 500;
}

.group-card__bio {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

.group-card__link {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  padding-top: var(--sp-3);
}

.group-card__link:hover {
  color: var(--accent-hi);
}

/* Capability page — division spec strip */
.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.spec-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spec-strip span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}