/* ============================================================
   FIDERE MARINE SERVICES — DESIGN SYSTEM & MAIN STYLESHEET
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS VARIABLES & DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Color Palette */
  --bg-primary: #06101e;
  --bg-surface: #0a182b;
  --bg-card: #0f223a;
  --bg-card-hover: #152d4c;
  --bg-elevated: #183354;
  --bg-light: #f4f7fa;
  --bg-white: #ffffff;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.28);
  --border-light: #e1e7ee;

  --text-primary: #ffffff;
  --text-secondary: #b0c4de;
  --text-muted: #728ca8;
  --text-dark-primary: #0a182b;
  --text-dark-secondary: #4a5d73;
  --text-dark-muted: #8092a7;

  --accent-orange: #e06328;
  --accent-orange-hover: #f0743b;
  --accent-orange-subtle: rgba(224, 99, 40, 0.15);
  --accent-blue: #4e97c2;
  --accent-blue-hover: #67b0dc;
  --accent-blue-subtle: rgba(78, 151, 194, 0.15);
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --max-width: 1280px;
  --max-width-wide: 1440px;
  --max-width-narrow: 960px;
  --nav-height: 80px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow-orange: 0 0 30px rgba(224, 99, 40, 0.25);
  --shadow-glow-blue: 0 0 30px rgba(78, 151, 194, 0.2);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* ------------------------------------------------------------
   2. RESET & BASE STYLES
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

ul, ol {
  list-style: none;
}

/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 3.4vw + 0.9rem, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw + 0.5rem, 2.75rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.25rem, 1.8vw + 0.5rem, 1.75rem);
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

h5 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

em {
  font-style: normal;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), transparent);
  border-radius: 2px;
}

.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 2px;
  background-color: var(--accent-orange);
}

.eyebrow.on-light {
  color: var(--accent-blue);
}

.eyebrow.on-dark {
  color: var(--accent-blue);
}

.lead-text {
  font-size: clamp(1.125rem, 1.2vw + 0.5rem, 1.35rem);
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 400;
}

/* ------------------------------------------------------------
   4. LAYOUT & CONTAINERS
   ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}

.wrap-wide {
  width: 100%;
  max-width: var(--max-width-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}

.wrap-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}

.section {
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
  position: relative;
}

.section-tight {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head .section-title {
  margin-bottom: 1rem;
}

.section-head .section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   5. BUTTONS & INTERACTIVE ELEMENTS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.65rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn svg {
  transition: transform var(--transition-fast);
}

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

.btn-primary {
  background-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(224, 99, 40, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  box-shadow: 0 6px 20px rgba(224, 99, 40, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-outline-dark:hover {
  border-color: var(--accent-blue);
  background: rgba(78, 151, 194, 0.1);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-dark-primary);
  border: 1px solid var(--border-light);
}

.btn-outline-light:hover {
  background: var(--bg-light);
  border-color: var(--accent-blue);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--accent-blue);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  gap: 0.75rem;
}

.btn-ghost.orange {
  color: var(--accent-orange);
}

.btn-ghost.orange:hover {
  color: var(--accent-orange-hover);
  border-bottom-color: var(--accent-orange-hover);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.05rem 2.15rem;
  font-size: 1.05rem;
}

/* ------------------------------------------------------------
   6. NAVIGATION HEADER & MOBILE MENU
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background-color var(--transition-base), border-color var(--transition-base), backdrop-filter var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: rgba(6, 16, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
}

/* z-index is scoped to the header only, so the reused .nav-logo class
   in the footer can never stack above the fixed header/menu. */
.site-header .nav-logo {
  position: relative;
  z-index: 1010;
}

.brand-logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: none;
}

.footer-brand-wrap .brand-logo-img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 2rem);
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-orange);
  border-radius: 1px;
}

.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.nav-burger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-medium);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1005;
  padding: calc(var(--nav-height) + 1.5rem) 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-base);
  overflow-y: auto;
}

.mobile-nav-panel.open {
  right: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1004;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

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

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav-link span:last-child {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-blue);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--text-primary);
  padding-left: 0.5rem;
}

.mobile-nav-foot {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-contact {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   7. HERO SECTIONS
   ------------------------------------------------------------ */
.hero-home {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 3.5rem);
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, rgba(78, 151, 194, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(224, 99, 40, 0.08) 0%, transparent 50%),
              var(--bg-primary);
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.22;
  mix-blend-mode: luminosity;
  overflow: hidden;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(6, 16, 30, 0.75) 0%, rgba(6, 16, 30, 0.95) 85%, var(--bg-primary) 100%),
              linear-gradient(90deg, rgba(6, 16, 30, 0.95) 0%, rgba(6, 16, 30, 0.5) 60%, transparent 100%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-content-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "intro  visual"
    "body   visual"
    "meta   meta";
  gap: clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.hero-intro {
  grid-area: intro;
  max-width: 680px;
}

.hero-body {
  grid-area: body;
  max-width: 680px;
}

.hero-visual-card {
  grid-area: visual;
  margin-top: 0.5rem;
}

.hero-copy {
  max-width: 680px;
}

.hero-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.9rem;
  background: rgba(15, 34, 58, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  box-shadow: 0 0 8px var(--accent-orange);
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-meta-bar {
  grid-area: meta;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-meta-item b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.hero-meta-item span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: block;
}

.hero-visual-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.hero-card-image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-card-overlay-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(6, 16, 30, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.hero-card-footer {
  padding: 1.25rem 0.5rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-card-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-blue);
}

/* Inner Page Hero Header */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 3.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.page-hero-copy {
  max-width: 720px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent-blue);
}

.breadcrumbs span {
  color: var(--accent-orange);
}

.page-hero-title {
  margin-bottom: 1rem;
}

.page-hero-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.page-hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------
   8. CARD COMPONENTS & GRIDS
   ------------------------------------------------------------ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

/* Service Card */
.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue));
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.service-card:hover .service-icon-box {
  color: var(--accent-orange);
  border-color: var(--accent-orange-subtle);
}

.service-num-badge {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.service-card-foot {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Feature/Why Card */
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  transition: all var(--transition-base);
}

.why-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.why-card-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
}

.why-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Project Card */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.project-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-media-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000000;
}

.project-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-badge-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(6, 16, 30, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-blue);
  backdrop-filter: blur(8px);
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-orange);
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-specs-list {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.project-spec-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* Director / Leader Card */
.director-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.director-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.director-role-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.director-name {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.director-qualification {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-blue);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.director-bio {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.director-highlights {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.director-highlights li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.director-highlights li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-size: 1.2rem;
  line-height: 1;
}

/* ------------------------------------------------------------
   9. GALLERY & FILTERABLE PORTFOLIO
   ------------------------------------------------------------ */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-blue);
}

.filter-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 2px 10px rgba(78, 151, 194, 0.35);
}

.vessel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(1.5rem, 2vw, 2rem);
}

.vessel-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.vessel-item:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.vessel-img-box {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #000;
}

.vessel-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.vessel-item:hover .vessel-img-box img {
  transform: scale(1.05);
}

.vessel-zoom-indicator {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(6, 16, 30, 0.8);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.85);
  transition: all var(--transition-fast);
}

.vessel-item:hover .vessel-zoom-indicator {
  opacity: 1;
  transform: scale(1);
}

.vessel-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vessel-type-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-orange);
  margin-bottom: 0.4rem;
}

.vessel-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.vessel-scope {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.vessel-specs-row {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   10. CALL TO ACTION & HIGHLIGHT BANNERS
   ------------------------------------------------------------ */
.cta-banner {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.25;
  mix-blend-mode: luminosity;
}

.cta-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(6, 16, 30, 0.92) 0%, rgba(10, 24, 43, 0.85) 100%);
}

.cta-banner-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.cta-direct-contacts {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cta-direct-contacts a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-medium);
}

.cta-direct-contacts a:hover {
  color: var(--accent-orange);
  text-decoration-color: var(--accent-orange);
}

/* ------------------------------------------------------------
   11. CONTACT FORMS & OFFICE DETAILS
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(78, 151, 194, 0.2);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.office-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition-fast);
}

.office-card:hover {
  border-color: var(--border-medium);
}

.office-card-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.office-card-title svg {
  color: var(--accent-orange);
}

.office-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.office-info-list a {
  color: var(--text-primary);
}

.office-info-list a:hover {
  color: var(--accent-blue);
}

.emergency-response-box {
  background: linear-gradient(135deg, rgba(224, 99, 40, 0.15), rgba(15, 34, 58, 0.8));
  border: 1px solid rgba(224, 99, 40, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.emergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-orange);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------
   12. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background-color: #030810;
  border-top: 1px solid var(--border-subtle);
  padding-top: clamp(4rem, 6vw, 6rem);
  padding-bottom: 2.5rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 340px;
}

.footer-credentials {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col h5 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

.footer-office-block {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.footer-office-block b {
  display: block;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  font-size: 0.875rem;
}

.footer-office-block span {
  color: var(--text-muted);
}

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   13. LIGHTBOX
   ------------------------------------------------------------ */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 10, 20, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-medium);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: var(--accent-orange);
}

.lightbox-image-container {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--text-primary);
  text-align: center;
  max-width: 600px;
}

/* ------------------------------------------------------------
   14. ANIMATIONS & SCROLL REVEALS
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Pulse dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  :root {
    --nav-height: 70px;
  }

  .nav-links, .nav-cta-wrap {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .hero-content-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "visual"
      "body"
      "meta";
    gap: 2.25rem;
  }

  .hero-visual-card {
    max-width: 560px;
    width: 100%;
    margin-top: 0;
  }

  .hero-intro,
  .hero-body {
    max-width: 100%;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-meta-bar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Prevent grid items (and their nowrap buttons/mono text) from forcing
     the single mobile column wider than the viewport, which was pushing
     cards like the Corporate Profile "Identity & Governance" panel off-screen. */
  .grid-2 > *, .grid-3 > *, .grid-4 > * {
    min-width: 0;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .vessel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .vessel-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
}

/* ------------------------------------------------------------
   16. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-bg-media img {
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   17. V3 — SIGNATURE EDITORIAL & CINEMATIC LAYER
   Bearing-line wayfinding, instrument framing, chapter numerals,
   parallax depth and refined motion. Additive — extends, never
   overrides, the base design system above.
   ============================================================ */

:root {
  --font-serif: 'Fraunces', 'Georgia', serif;
}

/* -- Cinematic grain, adds subtle photographic depth site-wide -- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -- Page load veil: soft cinematic fade-in -- */
body {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
body.is-loaded {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  body { opacity: 1; transition: none; }
}

/* -- Bearing line: scroll progress styled as a plotted nav bearing -- */
.bearing-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 3000;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.bearing-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  box-shadow: 0 0 12px rgba(224, 99, 40, 0.5);
  transition: width 0.08s linear;
}
.bearing-heading {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  background: rgba(6, 16, 30, 0.72);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.bearing-heading.is-shown {
  opacity: 1;
  transform: translateY(0);
}
.bearing-heading svg {
  width: 14px;
  height: 14px;
  color: var(--accent-orange);
  transition: transform 0.08s linear;
}
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .bearing-heading { display: none; }
}

/* -- Chapter numerals: oversized serif watermark for numbered sections -- */
main { counter-reset: chapter; }
.section, .section-tight { counter-increment: chapter; }

.section-head-row, .section-head {
  position: relative;
}

.chapter-mark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-medium);
  position: absolute;
  top: -0.6em;
  left: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.chapter-mark::before {
  content: counter(chapter, decimal-leading-zero);
}
.section-head, .section-head-row > div:first-child {
  position: relative;
  z-index: 1;
}

/* -- Editorial serif accents for large statements -- */
.editorial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hero-title em, .cta-banner h2 em, .page-hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* -- Instrument framing: corner brackets echoing a surveyor's viewfinder,
      applied uniformly across every key photographic frame on the site -- */
.hero-card-image-wrap,
.page-hero-media,
.project-media-wrap,
.vessel-img-box,
.director-card-media,
.about-media-frame {
  position: relative;
}
.hero-card-image-wrap::after,
.page-hero-media::after,
.project-media-wrap::after,
.vessel-img-box::after,
.director-card-media::after,
.about-media-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 4;
  pointer-events: none;
  background-image:
    linear-gradient(var(--accent-orange), var(--accent-orange)),
    linear-gradient(var(--accent-orange), var(--accent-orange)),
    linear-gradient(var(--accent-orange), var(--accent-orange)),
    linear-gradient(var(--accent-orange), var(--accent-orange));
  background-repeat: no-repeat;
  background-size: 18px 2px, 2px 18px, 18px 2px, 2px 18px;
  background-position: top left, top left, bottom right, bottom right;
  opacity: 0;
  transition: opacity var(--transition-base), inset var(--transition-base);
}
.hero-card-image-wrap:hover::after,
.page-hero-media:hover::after,
.project-card:hover .project-media-wrap::after,
.vessel-item:hover .vessel-img-box::after,
.director-card:hover .director-card-media::after,
.about-media-frame:hover::after {
  opacity: 0.9;
  inset: 14px;
}

/* -- Parallax depth for large photographic sections -- */
.hero-bg-media img,
.cta-banner-bg img {
  will-change: transform;
}

/* -- Magnetic primary buttons: cursor pull handled in JS via --mx/--my -- */
.btn-primary, .btn-outline-dark, .btn-secondary {
  transform: translate(var(--mx, 0), var(--my, 0));
}

/* -- Capability ticker / marquee: quiet horizontal motion, real content only -- */
.capability-ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 1.1rem 0;
}
.capability-ticker::before, .capability-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 8%;
  z-index: 2;
  pointer-events: none;
}
.capability-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-surface), transparent);
}
.capability-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-surface), transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 2.25rem;
  white-space: nowrap;
  border-right: 1px solid var(--border-subtle);
}
.ticker-track span b {
  color: var(--text-secondary);
  font-weight: 500;
}
.ticker-track span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-orange);
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
}

/* -- Asymmetric editorial media composition (used on About / Home) -- */
.editorial-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.editorial-split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.editorial-split.reverse .editorial-split-media { order: 2; }
.editorial-split-media {
  position: relative;
}
.editorial-split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.editorial-split-media .editorial-split-media-sub {
  position: absolute;
  width: 46%;
  bottom: -8%;
  right: -10%;
  border: 4px solid var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.editorial-split.reverse .editorial-split-media .editorial-split-media-sub {
  right: auto;
  left: -10%;
}
@media (max-width: 768px) {
  .editorial-split, .editorial-split.reverse {
    grid-template-columns: 1fr;
  }
  .editorial-split.reverse .editorial-split-media { order: 0; }
  .editorial-split-media { margin-bottom: 2.5rem; }
  .editorial-split-media .editorial-split-media-sub {
    width: 48%;
    bottom: -6%;
    right: -6%;
  }
  .editorial-split.reverse .editorial-split-media .editorial-split-media-sub {
    left: -6%;
  }
}

/* -- Keyboard accessibility: visible, on-brand focus ring -- */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.form-control:focus-visible, .filter-btn:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
  border-radius: 3px;
}

/* -- Reduced motion: neutralise all v3 motion additions -- */
@media (prefers-reduced-motion: reduce) {
  .bearing-progress-fill { transition: none; }
  .hero-bg-media img, .cta-banner-bg img { transform: none !important; }
  .btn-primary, .btn-outline-dark, .btn-secondary { transform: none !important; }
}
