/* ============================================================
   1 Source Solutions — design tokens + system
   ============================================================ */
:root {
  /* brand */
  --ink:        #000000;
  --paper:      #ffffff;
  --lime:       rgb(186, 218, 85);   /* brand fill — bands, buttons, accents */
  --lime-strong:rgb(90, 120, 32);    /* darker lime — small text + focus, ~5:1 on white */

  /* surface ramp (each step visibly distinct) */
  --surface-1:  rgb(246, 247, 244);
  --surface-2:  rgb(233, 235, 230);
  --border:    rgb(214, 215, 211);

  /* text ramp */
  --text:       rgb(34, 34, 34);
  --text-2:     rgb(59, 58, 58);      /* brand body grey */
  --text-3:     rgb(122, 121, 117);  /* muted */

  /* tints (no raw colour literals in components) */
  --lime-soft:  rgba(186, 218, 85, .16);
  --lime-line:  rgba(186, 218, 85, .22);
  --lime-glow:  rgba(186, 218, 85, .18);
  --ink-70:     rgba(0, 0, 0, .70);
  --ink-faint:  rgba(0, 0, 0, .10);

  /* shadows */
  --shadow-soft: 0 12px 32px -16px rgba(0, 0, 0, .18);
  --shadow-lift: 0 24px 48px -22px rgba(0, 0, 0, .20);
  --shadow-press: 0 8px 20px -14px rgba(90, 120, 32, .55);

  /* type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  /* layout */
  --maxw: 1200px;
  --gutter: 24px;
  --ease-out: cubic-bezier(0.16, 0.84, 0.3, 1);
  --ease-tilt: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  color: var(--ink);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

address { font-style: normal; }

/* keep anchored sections clear of the sticky header */
:where(section, [id])[id] { scroll-margin-top: 96px; }

/* focus — never the browser default blue */
:focus-visible {
  outline: 3px solid var(--lime-strong);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 0; top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
  transform: translateY(-120%);
  transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: none; }

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

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: 96px 0; }

.section-head { max-width: 760px; margin-bottom: 56px; }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime-strong);
  margin: 0 0 14px;
}
.section-kicker::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--lime);
}

.section-title { font-size: clamp(30px, 4vw, 56px); }

.section-lede {
  margin-top: 14px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-2);
  max-width: 60ch;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .3s ease, color .3s ease,
              border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.btn-primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.btn-primary:hover {
  background: rgb(170, 202, 72);
  box-shadow: var(--shadow-press);
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-ghost:active { transform: scale(0.98); }

.header-cta {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
}

/* inline body links — never default blue */
.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: color .3s ease;
}
.link:hover { color: var(--lime-strong); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 80px;
  transition: height .3s var(--ease-out);
}
.site-header.is-condensed .header-inner { height: 64px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo {
  height: 52px;
  width: auto;
  transition: height .3s var(--ease-out);
}
.site-header.is-condensed .brand-logo { height: 42px; }

.site-nav { flex: 1; display: flex; justify-content: flex-end; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-weight: 500;
  font-size: 16px;
  color: var(--text-2);
  transition: color .3s ease;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  height: 2px; width: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-menu a:hover,
.nav-menu a:focus-visible { color: var(--ink); }
.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px; width: 22px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 80vh;
  padding: 128px 0 104px;
  background: var(--paper);
}
.page-hero { min-height: 56vh; padding: 104px 0 64px; }

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 72% 22%, var(--lime-glow), transparent 70%);
  animation: glowPulse 20s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-shape-a {
  width: 180px; height: 180px;
  right: 9%; top: 20%;
  background: var(--lime-soft);
  animation: floatA 6s ease-in-out infinite -2s;
}
.hero-shape-b {
  width: 260px; height: 260px;
  right: 20%; bottom: 6%;
  border: 2px solid var(--lime-line);
  animation: floatB 7.5s ease-in-out infinite -4s;
}
@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(14px, -22px); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-16px, 18px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--lime);
}
.hero-title {
  font-size: clamp(40px, 6vw, 88px);
  margin: 0 0 20px;
}
.hero-lede {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 52ch;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* hero load animation — above the fold, no IntersectionObserver */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero .hero-inner > * {
  opacity: 0;
  animation: heroRise 1s var(--ease-out) both;
}
.hero .hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero .hero-inner > *:nth-child(2) { animation-delay: .14s; }
.hero .hero-inner > *:nth-child(3) { animation-delay: .23s; }
.hero .hero-inner > *:nth-child(4) { animation-delay: .32s; }

/* ============================================================
   About — three values
   ============================================================ */
.about { background: var(--paper); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
  transition: box-shadow .3s ease, transform .3s var(--ease-out);
}
.value:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }

.value-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--lime-soft);
  color: var(--lime-strong);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.value-title {
  font-size: 28px;
  margin-bottom: 12px;
}
.value-copy {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}
.value-shout {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 18px;
  color: var(--lime-strong);
}

/* ============================================================
   Ripple band
   ============================================================ */
.ripple-band {
  position: relative;
  overflow: hidden;
  background: var(--lime);
  color: var(--ink);
  padding: 72px 0;
}
.ripple-inner { position: relative; z-index: 1; max-width: 920px; }
.ripple-eyebrow {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 10px;
}
.ripple-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1;
  color: var(--ink);
}
.ripple-deco {
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  width: 220px; height: 220px;
  color: var(--ink);
  opacity: .12;
  pointer-events: none;
}

/* ============================================================
   Transportation — product cards with 3D tilt
   ============================================================ */
.transportation { background: var(--surface-1); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  perspective: 900px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform .35s var(--ease-tilt), box-shadow .35s ease;
}
.card-inner {
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  transition: transform .35s var(--ease-tilt);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--lime-soft);
  color: var(--lime-strong);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: transform .35s var(--ease-tilt);
}
.card-title { font-size: clamp(20px, 2vw, 26px); margin-bottom: 8px; }
.card-desc { font-size: 16px; color: var(--text-2); }
.card-link {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: color .3s ease;
}
.card-link .card-arrow { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.card-link:hover { color: var(--lime-strong); }
.card-link:hover .card-arrow { transform: translateX(4px); }

/* 3D layer push on hover */
.card:hover .card-icon  { transform: translateZ(14px); }
.card:hover .card-title { transform: translateZ(26px); }
.card:hover .card-desc  { transform: translateZ(20px); }
.card:hover .card-link  { transform: translateZ(38px); }

/* ============================================================
   Specialty — calm cards
   ============================================================ */
.specialty { background: var(--paper); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.spec-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-1);
  text-align: center;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.spec-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.spec-card:hover { border-color: var(--lime-line); box-shadow: var(--shadow-soft); }
.spec-card:hover::before { transform: scaleX(1); }

.spec-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--lime-strong);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.spec-name { font-size: 22px; margin-bottom: 6px; }
.spec-tag { font-size: 13px; color: var(--text-3); letter-spacing: 0.04em; }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--surface-1); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-inquiries { margin-top: 18px; font-size: 18px; max-width: 48ch; }

.office { margin-top: 32px; }
.office-label {
  font-size: 18px;
  margin-bottom: 10px;
}
.office-addr { font-size: 16px; line-height: 1.6; color: var(--text-2); margin-bottom: 18px; }
.office-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 16px;
}
.office-row span {
  color: var(--text-3);
  min-width: 64px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-soft);
}
.form-submit { margin-top: 24px; width: 100%; max-width: 280px; }
.form-note { margin-top: 16px; font-size: 14px; color: var(--text-3); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { height: 44px; width: auto; }
.footer-tag {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 420px;
}
.footer-nav a {
  font-size: 15px;
  color: var(--text-2);
  transition: color .3s ease;
}
.footer-nav a:hover { color: var(--lime-strong); }
.footer-copy {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-3);
}

/* ============================================================
   Rignation EAG page extras
   ============================================================ */
.eag-body { padding-top: 0; }
.video-frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
}
.video-play {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--lime);
  border: 2px solid var(--lime);
  background: var(--ink-faint);
}
.video-play .icon { width: 34px; height: 34px; }
.video-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
}
.video-desc {
  margin: 28px 0 32px;
  max-width: 60ch;
  font-size: 18px;
  color: var(--text-2);
}
.eag-body .hero-actions { flex-wrap: wrap; }

/* ============================================================
   Reveal on scroll (fails open)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-nav { flex: 1; display: flex; justify-content: flex-end; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 8px var(--gutter) 16px;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    min-height: 48px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 17px;
  }
  .nav-menu a::after { display: none; }
  .nav-menu li:last-child a { border-bottom: 0; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding: 104px 0 72px; min-height: 72vh; }
  .hero-shape-a { width: 120px; height: 120px; right: 6%; top: 14%; }
  .hero-shape-b { width: 170px; height: 170px; right: 12%; bottom: 8%; }
  .ripple-band { padding: 56px 0; }
  .ripple-deco { width: 140px; height: 140px; right: -50px; opacity: .1; }
  .contact-form { padding: 24px; }
  .form-submit { width: 100%; max-width: none; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* ============================================================
   Reduced motion — everything instant & static
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero .hero-inner > * { opacity: 1 !important; }
}
