/* ============================================================
   ATOMIC OIL (PTY) LTD — Brand Stylesheet
   Aesthetic: Refined editorial. Navy + serif headlines. White space.
   Reference: Company Profile 2026 brand document.
   ============================================================ */

:root {
  --navy: #1B3A5F;
  --navy-deep: #0F2645;
  --navy-ink: #142F50;
  --sky: #4A90C2;           /* secondary accent — the eyebrow/section blue */
  --sky-soft: #6FA8D0;
  --gradient-1: #29D6E6;    /* logo teal */
  --gradient-2: #3A5BD9;    /* logo blue */
  --gradient-3: #6B3CDB;    /* logo purple */

  --paper: #FFFFFF;
  --cream: #FAFBFC;
  --grey-50: #F4F6F9;
  --grey-100: #E8ECEF;
  --grey-200: #D5DCE2;
  --grey-300: #B3BEC8;
  --grey-500: #6B7888;
  --grey-700: #3D4A5C;
  --ink: #1F2937;

  --serif: 'Source Serif Pro', 'Lora', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --tracked: 0.18em;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--navy); color: white; }

/* Editorial small caps eyebrow */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--sky);
}
.eyebrow-num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
}

/* Headlines — serif, navy, generous letter-spacing tight */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); font-weight: 700; line-height: 1.15; letter-spacing: -0.005em; }

/* ============ NAV ============ */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
nav.site-nav.scrolled {
  border-bottom-color: var(--grey-100);
  padding-top: 14px; padding-bottom: 14px;
}
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-brand img { height: 56px; width: auto; transition: height 0.3s; }
nav.site-nav.scrolled .nav-brand img { height: 44px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--grey-700);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--sky);
}
.nav-cta {
  margin-left: 16px;
  background: var(--navy);
  color: white !important;
  padding: 12px 22px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--navy-deep) !important; }
.menu-toggle { display: none; background: none; border: none; color: var(--navy); cursor: pointer; padding: 8px; }
@media (max-width: 980px) {
  nav.site-nav { padding: 14px 24px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
               background: white; border-top: 1px solid var(--grey-100); padding: 16px; gap: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 14px 16px; }
  .nav-cta { margin: 8px 0 0 0 !important; text-align: center; }
  .menu-toggle { display: block; }
}

/* ============ CONTAINER ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 760px) { .container { padding: 0 24px; } }

/* ============ SECTIONS ============ */
section { padding: 120px 0; }
@media (max-width: 760px) { section { padding: 72px 0; } }

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px);
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 18px;
  margin-bottom: 28px;
  max-width: 880px;
}
.section-title .accent { color: var(--sky); font-style: italic; }
.section-intro {
  max-width: 680px;
  color: var(--grey-700);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 64px;
}

/* Editorial rule — thin navy line under H2s */
.rule {
  width: 56px; height: 2px; background: var(--sky);
  margin: 0 0 32px 0;
}
.section-divider {
  height: 1px; background: var(--grey-100);
  margin: 0 auto;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(27, 58, 95, 0.4); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--grey-200); }
.btn-outline:hover { border-color: var(--navy); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 180px 0 120px;
  background: var(--paper);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(74,144,194,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -300px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(58,91,217,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 760px) { .hero { padding: 130px 0 80px; } .hero-inner { padding: 0 24px; } }

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 32px;
}
.hero h1 .accent { color: var(--sky); font-style: italic; }
.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--grey-700);
  margin-bottom: 40px;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  color: white;
}
.hero-visual::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(41,214,230,0.25) 0%, rgba(107,60,219,0.15) 35%, transparent 70%);
  pointer-events: none;
}
.hero-visual-tag {
  position: relative; z-index: 1;
  font-size: 11px; letter-spacing: var(--tracked); text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.hero-visual-title {
  position: relative; z-index: 1;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero-visual-body {
  position: relative; z-index: 1;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.hero-visual-stats {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: auto;
}
.hero-visual-stat .num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-visual-stat .label {
  font-size: 11px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
@media (max-width: 980px) { .hero-visual { aspect-ratio: 16/9; padding: 32px; } }

/* ============ PAGE HEADER (non-home) ============ */
.page-header {
  padding: 160px 0 80px;
  position: relative;
  border-bottom: 1px solid var(--grey-100);
  background: var(--cream);
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74,144,194,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 1; }
.page-header h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 64px);
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 18px;
  margin-bottom: 28px;
  max-width: 880px;
}
.page-header h1 .accent { color: var(--sky); font-style: italic; }
.page-header .lede {
  font-size: 18px;
  line-height: 1.75;
  color: var(--grey-700);
  max-width: 720px;
}
.breadcrumbs {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 8px;
}
.breadcrumbs a { color: var(--grey-500); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--sky); }
.breadcrumbs .sep { margin: 0 10px; color: var(--grey-300); }
@media (max-width: 760px) {
  .page-header { padding: 120px 0 56px; }
  .page-header-inner { padding: 0 24px; }
}

/* ============ STATS BAR (matches profile P2 design) ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.stat {
  text-align: center;
  padding: 24px 16px;
  border-top: 3px solid var(--sky);
  background: var(--paper);
}
.stat:nth-child(3) { border-top-color: #E08A3B; } /* orange accent on middle, matching profile */
.stat .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px);
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.stat .label {
  font-size: 13px;
  color: var(--grey-500);
  letter-spacing: 0.02em;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ============ INDUSTRY GRID (matches profile P4 design) ============ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.industry-card {
  background: var(--grey-50);
  border-left: 3px solid var(--sky);
  padding: 28px 28px 28px 28px;
  transition: all 0.25s ease;
}
.industry-card:hover {
  background: white;
  border-left-color: var(--navy);
  box-shadow: 0 8px 20px -8px rgba(27, 58, 95, 0.15);
  transform: translateY(-2px);
}
.industry-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.industry-card p {
  color: var(--grey-700);
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 900px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .industry-grid { grid-template-columns: 1fr; } }

/* ============ CAPABILITY LIST (matches profile P5 design) ============ */
.capabilities {
  background: var(--cream);
  border-left: 3px solid var(--sky);
  padding: 8px 0;
}
.capability {
  padding: 28px 36px;
  border-bottom: 1px solid var(--grey-100);
}
.capability:last-child { border-bottom: none; }
.capability h4 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.capability p {
  color: var(--grey-700);
  font-size: 15px;
  line-height: 1.65;
}
@media (max-width: 600px) { .capability { padding: 24px 20px; } }

/* ============ PARTNER CARDS ============ */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.partner-card {
  background: white;
  border: 1px solid var(--grey-100);
  padding: 36px 32px;
  text-align: center;
  transition: all 0.25s ease;
  border-radius: 2px;
}
.partner-card:hover {
  border-color: var(--sky);
  box-shadow: 0 10px 30px -10px rgba(27,58,95,0.15);
  transform: translateY(-2px);
}
.partner-card .partner-logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.partner-card .partner-logo img { max-height: 64px; max-width: 220px; object-fit: contain; }
.partner-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 700;
}
.partner-card .partner-meta {
  font-size: 11px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 16px;
}
.partner-card p {
  color: var(--grey-700);
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}
@media (max-width: 760px) { .partner-grid { grid-template-columns: 1fr; } }

/* ============ TWO COLUMN ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.two-col p {
  color: var(--grey-700);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 22px;
}
.two-col p strong { color: var(--navy); font-weight: 600; }
.two-col p em { color: var(--navy); font-style: italic; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 48px; } }

/* ============ MILESTONES (timeline) ============ */
.milestones {
  border-left: 2px solid var(--sky);
  padding-left: 32px;
}
.milestone {
  padding: 20px 0;
  border-bottom: 1px solid var(--grey-100);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: baseline;
}
.milestone:last-child { border-bottom: none; }
.milestone .year {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  font-style: italic;
}
.milestone .text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--grey-700);
}
@media (max-width: 600px) {
  .milestone { grid-template-columns: 70px 1fr; gap: 20px; }
}

/* ============ INSTRUMENT LIST (Spectro & Grabner products) ============ */
.instrument-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.instrument {
  background: white;
  border: 1px solid var(--grey-100);
  padding: 32px;
  border-radius: 2px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.instrument:hover {
  border-color: var(--sky);
  box-shadow: 0 8px 24px -8px rgba(27,58,95,0.12);
  transform: translateY(-2px);
}
.instrument-tag {
  font-size: 11px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 14px;
}
.instrument h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.instrument-model {
  font-size: 12px;
  color: var(--grey-500);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.instrument p {
  color: var(--grey-700);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}
@media (max-width: 760px) { .instrument-list { grid-template-columns: 1fr; } }

/* ============ ULTRA-CLEAN PROTOCOL (Fluid Science) ============ */
.protocol-list {
  display: grid;
  gap: 24px;
}
.protocol {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--grey-100);
  align-items: start;
}
.protocol:last-child { border-bottom: none; }
.protocol-num {
  font-family: var(--serif);
  font-size: 48px;
  font-style: italic;
  color: var(--sky);
  line-height: 1;
  font-weight: 700;
}
.protocol-content h4 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.protocol-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey-700);
}
@media (max-width: 600px) {
  .protocol { grid-template-columns: 60px 1fr; gap: 20px; padding: 24px 0; }
  .protocol-num { font-size: 36px; }
}

/* ============ CONTACT BLOCK (matches P11 design) ============ */
.contact-block {
  background: var(--cream);
  border-top: 3px solid var(--sky);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  position: relative;
}
.contact-block::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 60px; height: 3px;
  background: #E08A3B;
}
.contact-block .col-tag {
  font-size: 11px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
}
.contact-block .col h4 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-block .field { margin-bottom: 16px; }
.contact-block .field:last-child { margin-bottom: 0; }
.contact-block .field-label {
  font-size: 13px;
  color: var(--sky);
  margin-bottom: 4px;
  font-weight: 500;
}
.contact-block .field-value, .contact-block .field-value a {
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
}
.contact-block .field-value a:hover { color: var(--sky); }
.contact-block .address { color: var(--grey-700); font-size: 15px; line-height: 1.8; }
@media (max-width: 760px) {
  .contact-block { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
}

/* ============ TAGLINE BAND ============ */
.tagline-band {
  text-align: center;
  padding: 64px 0;
  border-top: 1px solid var(--grey-100);
}
.tagline-band .tag-eyebrow {
  font-size: 12px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 12px;
}
.tagline-band .tag-main {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--navy);
  font-weight: 400;
}
.tagline-band .tag-main span { color: var(--sky); margin: 0 8px; }

/* ============ FORM ============ */
.form-grid { display: grid; gap: 20px; max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--grey-200);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--sky); }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-success {
  display: none;
  padding: 18px 20px;
  background: rgba(74,144,194,0.08);
  border-left: 3px solid var(--sky);
  color: var(--navy);
  font-size: 14px;
  border-radius: 2px;
}

/* ============ FOOTER ============ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 80px 48px 32px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(41,214,230,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.footer-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.75;
  max-width: 360px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  footer { padding: 56px 24px 24px; }
}
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.hero .eyebrow,
.hero h1,
.hero-sub,
.hero-actions,
.hero-visual { opacity: 0; animation: fadeUp 0.8s forwards; }
.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero-sub { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.45s; }
.hero-visual { animation-delay: 0.2s; }

/* ============ KEY CLIENTS PAGE ============ */
.clients-region {
  margin-bottom: 80px;
}
.clients-region:last-child { margin-bottom: 0; }
.clients-region-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--grey-100);
}
.clients-region-header h2 {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.clients-region-header .count {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--sky);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--grey-100);
  border: 1px solid var(--grey-100);
}
@media (max-width: 1100px) { .clients-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }

.client-tile {
  background: white;
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 130px;
  transition: all 0.25s ease;
  position: relative;
}
.client-tile:hover {
  background: var(--cream);
  z-index: 1;
}
.client-tile:hover .client-name {
  color: var(--sky);
}
.client-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.005em;
  transition: color 0.25s ease;
}
.client-name .sub {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  color: var(--grey-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ============ CLIENT MARQUEE (scrolling logo strips) ============ */
.client-marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
}
.client-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
}
.client-marquee.reverse .client-marquee-track {
  animation-direction: reverse;
}
.client-marquee:hover .client-marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.client-plate {
  flex: 0 0 auto;
  min-width: 220px;
  height: 96px;
  padding: 18px 28px;
  background: white;
  border: 1px solid var(--grey-100);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.client-plate:hover {
  border-color: var(--sky);
  box-shadow: 0 10px 24px -12px rgba(27,58,95,0.18);
  transform: translateY(-2px);
}
.client-plate .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.client-plate .sub {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--grey-500);
  white-space: nowrap;
}

/* Region header for marquee blocks */
.clients-region-header.is-marquee {
  margin-bottom: 24px;
}

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

/* ============ COMPACT CAPABILITIES (grid) ============ */
.capabilities-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--grey-100);
  border: 1px solid var(--grey-100);
}
.capabilities-compact .capability {
  background: white;
  padding: 28px 32px;
  border: none;
  border-top: 3px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
  display: flex;
  flex-direction: column;
}
.capabilities-compact .capability:hover {
  border-top-color: var(--sky);
  background: var(--cream);
}
.capabilities-compact .capability .cap-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 10px;
  font-weight: 600;
}
.capabilities-compact .capability h4 {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.capabilities-compact .capability p {
  color: var(--grey-700);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 760px) {
  .capabilities-compact { grid-template-columns: 1fr; }
  .capabilities-compact .capability { padding: 24px 22px; }
}

/* Sector strip above clients */
.sector-strip {
  background: var(--cream);
  border-left: 3px solid var(--sky);
  padding: 28px 36px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
}
.sector-strip .label {
  font-size: 11px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
}
.sector-strip .text {
  color: var(--grey-700);
  font-size: 15px;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .sector-strip { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
}

/* ============ INSTRUMENT GALLERY (partners page) ============ */
.instrument-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.instrument-card {
  background: white;
  border: 1px solid var(--grey-100);
  border-top: 3px solid var(--sky);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.instrument-card:hover {
  border-color: var(--sky);
  box-shadow: 0 18px 36px -20px rgba(27,58,95,0.22);
  transform: translateY(-3px);
}
.instrument-card-image {
  background: var(--cream);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.instrument-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.instrument-card-body {
  padding: 22px 24px 28px;
  border-top: 1px solid var(--grey-100);
}
.instrument-card-body .eyebrow {
  display: block;
  font-size: 10.5px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 8px;
}
.instrument-card-body h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 10px;
}
.instrument-card-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-700);
  margin: 0;
}
@media (max-width: 700px) {
  .instrument-gallery { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; }
}

/* ============ OPTIONAL LOGO INSIDE CLIENT PLATE ============ */
/* When a .client-plate contains <img class="logo">, the logo takes visual focus
   and the wordmark becomes a subtle caption beneath. If the image fails to load,
   the inline onerror="this.style.display='none'" hides it and the wordmark layout
   reverts cleanly. Drop logo files into img/clients/{slug}.png and add the
   <img class="logo" src="img/clients/{slug}.png" onerror="this.style.display='none'">
   line to the matching .client-plate. */
.client-plate:has(img.logo) {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 22px;
}
.client-plate img.logo {
  max-height: 44px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
  filter: grayscale(0.15);
  transition: filter 0.25s ease;
}
.client-plate:hover img.logo {
  filter: grayscale(0);
}
.client-plate:has(img.logo) .name {
  font-size: 12px;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--grey-700);
  letter-spacing: 0.02em;
}
.client-plate:has(img.logo) .sub {
  font-size: 9.5px;
}

/* ============ CLICKABLE CARD WRAPPER ============ */
/* Wrap a card in <a class="card-link" target="_blank" rel="noopener">
   to make the entire card a single click target without disrupting the
   visual styling. Adds a subtle hover treatment + an external-link cue. */
a.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
a.card-link:hover, a.card-link:focus { text-decoration: none; }
a.card-link::after {
  content: '↗';
  position: absolute;
  top: 12px; right: 14px;
  font-size: 14px;
  color: var(--sky);
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 2;
}
a.card-link:hover::after, a.card-link:focus::after {
  opacity: 0.85;
  transform: translate(0, 0);
}

/* ============ PARTNER ROW (Spectro / Grabner section header) ============
   Desktop: brand card on the left (280px), descriptive body text on the right.
   Mobile: stacks — centered brand card on top, text below. */
.partner-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.partner-row .partner-brand {
  padding: 48px 32px;
  text-align: center;
  border-top: 3px solid var(--sky);
  display: block;
}
.partner-row .partner-brand-logo {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.partner-row .partner-brand-logo img {
  max-height: 100px;
  max-width: 240px;
}
.partner-row .partner-brand h3 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 700;
}
.partner-row .partner-brand-meta {
  font-size: 11px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--sky);
}
.partner-row .partner-body p {
  color: var(--grey-700);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.partner-row .partner-body p:last-child { margin-bottom: 0; }
.partner-row .partner-body p strong { color: var(--navy); }

@media (max-width: 760px) {
  .partner-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .partner-row .partner-brand {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
  }
}

/* ============================================================
   MULTI-STEP ENQUIRY WIZARD (contact.html)
   Editorial brand: navy + sky · Source Serif Pro headings · Inter body
   ============================================================ */
.enquiry-form-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: white;
  border: 1px solid var(--grey-100);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 32px;
}
.enquiry-form-side {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 40px 32px;
}
.enquiry-form-side h4 {
  font-family: var(--serif);
  font-size: 22px;
  color: white;
  margin-bottom: 4px;
  font-weight: 700;
}
.enquiry-form-side .side-sub {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--sky-soft);
  margin-bottom: 28px;
}
.enquiry-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.enquiry-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  cursor: default;
  transition: color 0.25s ease;
}
.enquiry-steps li:last-child { border-bottom: none; }
.enquiry-steps li.active { color: white; }
.enquiry-steps li.done { color: rgba(255,255,255,0.9); cursor: pointer; }
.enquiry-steps li.done:hover { color: var(--sky-soft); }
.step-bullet {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.enquiry-steps li.active .step-bullet {
  background: var(--sky);
  border-color: var(--sky);
  color: white;
}
.enquiry-steps li.done .step-bullet {
  background: white;
  border-color: white;
  color: var(--navy);
}
.enquiry-steps li.done .step-bullet::before { content: '\2713'; font-size: 14px; }
.enquiry-steps li.done .step-bullet-num { display: none; }
.step-label {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.005em;
}
.side-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.side-footer .dot { color: var(--sky); }

.enquiry-form-body {
  padding: 48px 56px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  background: white;
}
.enquiry-step { display: none; flex: 1; flex-direction: column; }
.enquiry-step.active { display: flex; animation: enq-step-in 0.4s ease; }
@keyframes enq-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.enquiry-step-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 12px;
}
.enquiry-step-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 10px;
}
.enquiry-step-sub {
  color: var(--grey-700);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 28px;
}

/* Branch content blocks within a step */
.enquiry-branch { display: none; }
.enquiry-branch.active { display: block; }

/* Chip grid (multi-select) */
.enquiry-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.enquiry-chip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border: 1.5px solid var(--grey-200);
  border-radius: 3px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.enquiry-chip:hover { border-color: var(--sky); }
.enquiry-chip.selected {
  border-color: var(--navy);
  background: var(--cream);
}
.enquiry-chip-check {
  width: 18px; height: 18px;
  border: 1.5px solid var(--grey-300);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.enquiry-chip.selected .enquiry-chip-check {
  background: var(--navy);
  border-color: var(--navy);
}
.enquiry-chip.selected .enquiry-chip-check::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.enquiry-chip-text { flex: 1; line-height: 1.3; }
.enquiry-chip-text strong {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 14.5px;
  margin-bottom: 2px;
}
.enquiry-chip-text span {
  display: block;
  font-size: 12px;
  color: var(--grey-500);
}
/* Single-select variant (used for enquiry type & general topic) */
.enquiry-chip-grid.single .enquiry-chip.selected { border-width: 2px; }

/* Radio pill row (timing, branding) */
.enquiry-radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.enquiry-radio-pill {
  padding: 10px 18px;
  background: white;
  border: 1.5px solid var(--grey-200);
  border-radius: 999px;
  font: inherit;
  color: var(--grey-700);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.enquiry-radio-pill:hover { border-color: var(--sky); }
.enquiry-radio-pill.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

/* Field grid */
.enquiry-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.enquiry-field { display: flex; flex-direction: column; gap: 6px; }
.enquiry-field.full { grid-column: 1 / -1; }
.enquiry-field label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--grey-500);
  font-weight: 600;
}
.enquiry-field input,
.enquiry-field select,
.enquiry-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: 3px;
  background: white;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  font-family: var(--sans);
  transition: border-color 0.2s ease;
}
.enquiry-field input:focus,
.enquiry-field select:focus,
.enquiry-field textarea:focus {
  outline: none;
  border-color: var(--sky);
}
.enquiry-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

/* Step actions footer */
.enquiry-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-100);
}
.enquiry-form-actions .left {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--grey-500);
}
.enquiry-form-actions .right { display: flex; gap: 12px; align-items: center; }
.btn-link {
  background: none;
  border: none;
  color: var(--grey-500);
  font: inherit;
  cursor: pointer;
  padding: 8px 4px;
  font-size: 14px;
  transition: color 0.2s ease;
}
.btn-link:hover { color: var(--navy); }

/* Validation error */
.enquiry-form-error {
  display: none;
  margin-top: 14px;
  padding: 10px 14px;
  background: #FFF4F0;
  color: #B23A1C;
  border-left: 3px solid #D24A2A;
  font-size: 13.5px;
  border-radius: 0 3px 3px 0;
}
.enquiry-form-error.show { display: block; }

/* Review grid */
.enquiry-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}
.enquiry-review-card {
  position: relative;
  background: var(--cream);
  border-left: 3px solid var(--sky);
  padding: 16px 56px 16px 18px;
}
.enquiry-review-label {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: var(--tracked);
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 6px;
  font-weight: 600;
}
.enquiry-review-value {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-word;
}
.enquiry-review-edit {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font: inherit;
  font-size: 12px;
  color: var(--sky);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.enquiry-review-edit:hover { background: rgba(74,144,194,0.12); }

/* Success state */
.enquiry-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.enquiry-success-mark {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--sky);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 24px;
}
.enquiry-success-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.enquiry-success-sub {
  color: var(--grey-700);
  font-size: 16px;
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 28px;
}
.enquiry-success-ref {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: var(--tracked);
  color: var(--grey-700);
  padding: 8px 16px;
  background: var(--cream);
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  margin-bottom: 32px;
}
.enquiry-success-ref strong { color: var(--navy); font-weight: 700; }

@media (max-width: 900px) {
  .enquiry-form-wrap { grid-template-columns: 1fr; }
  .enquiry-form-side { padding: 24px 28px; }
  .enquiry-steps { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .enquiry-steps li { padding: 8px 0; border-bottom: none; gap: 8px; font-size: 13px; }
  .enquiry-form-body { padding: 32px 26px; min-height: 0; }
  .enquiry-field-grid { grid-template-columns: 1fr; }
  .enquiry-review-grid { grid-template-columns: 1fr; }
  .enquiry-step-title { font-size: 22px; }
}
