/* Amalthea Group — site styles */
:root {
  --navy: #0B1F38;
  --navy-deep: #071527;
  --silver: #A3ADB8;
  --slate: #5E6B7A;
  --ink-soft: #3A4A5E;
  --mist: #D9DEE4;
  --mist-2: #C3CAD3;
  --line: #DDE1E6;
  --card-line: #C9CFD6;
  --bg: #F7F8FA;
  --bg-alt: #EEF0F3;
  --white: #FFFFFF;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: #4A5A6E; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white); padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; color: var(--white); }

.container { max-width: var(--max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section-pad { padding-top: 104px; padding-bottom: 104px; }

/* ---------- Type ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; color: var(--slate); margin-bottom: 16px; }
.eyebrow-light { color: var(--silver); }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 4.5vw, 52px); line-height: 1.08; }
.lead { margin-top: 28px; font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 560px; }
.body-lg { font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.mb-lg { margin-bottom: 56px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 500; font-size: 14px; border-radius: 2px; padding: 12px 22px; transition: background .2s, color .2s, border-color .2s; }
.btn-lg { font-size: 15px; padding: 16px 28px; }
.btn-solid { background: var(--navy); color: var(--white); border: 1px solid var(--navy); }
.btn-solid:hover { background: #1A3458; color: var(--white); }
.btn-outline { border: 1px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); font-weight: 600; font-size: 15px; padding: 15px 26px; }
.btn-white:hover { background: var(--mist); color: var(--navy); }
.btn-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Header / Nav ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 40px; height: 43px; object-fit: contain; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: 0.14em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a:not(.btn) { text-decoration: none; }
.nav-links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 32px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links .btn { margin-top: 16px; text-align: center; padding: 14px 22px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--white); }
.hero-inner { padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-art { flex: 1 1 360px; display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 440px; height: auto; }

.silver-rule { height: 6px; background: linear-gradient(90deg, var(--navy) 0 50%, var(--silver) 50% 100%); }

/* ---------- Dark sections ---------- */
.dark { background: var(--navy); color: var(--white); }
.dark a { color: var(--white); }

/* Story */
.story-top { padding-top: 104px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 64px; }
.story-head { flex: 1 1 320px; }
.story-body { flex: 2 1 520px; font-size: 18px; line-height: 1.75; color: var(--mist); }
.story-body p + p { margin-top: 24px; }
.symbols { padding-bottom: 104px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.symbol { border-top: 2px solid var(--silver); padding-top: 24px; }
.symbol h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.symbol p { font-size: 15px; line-height: 1.65; color: var(--mist-2); }

/* Ag */
.ag { background: var(--bg-alt); }
.ag-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.element-tile {
  flex: 0 0 auto; width: 200px; height: 220px; background: var(--white); border: 2px solid var(--silver);
  display: flex; flex-direction: column; justify-content: space-between; padding: 20px 24px;
}
.element-top { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; color: var(--slate); }
.element-symbol { font-family: var(--serif); font-size: 96px; font-weight: 700; line-height: 1; text-align: center; }
.element-name { font-size: 13px; font-weight: 600; letter-spacing: 0.24em; color: var(--slate); text-align: center; }
.ag-copy { flex: 1 1 460px; min-width: 0; }
.ag-copy h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.1; margin-bottom: 20px; }
.ag-copy .body-lg { max-width: 620px; }

/* ---------- Companies ---------- */
.white { background: var(--white); }
#companies h2 { margin-bottom: 16px; }
.intro { margin-bottom: 56px; max-width: 720px; }
.feature-card {
  background: var(--navy); color: var(--white); padding: 48px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.feature-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.feature-copy .eyebrow { margin: 0; }
.feature-copy h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4vw, 42px); line-height: 1.1; }
.feature-copy p:last-child { font-size: 17px; line-height: 1.7; color: var(--mist); max-width: 680px; }

.sub-eyebrow { margin: 72px 0 24px; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.company {
  border: 1px solid var(--card-line); border-top: 3px solid var(--navy); padding: 32px;
  display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, transform .2s;
}
.company:hover { box-shadow: 0 10px 30px rgba(11, 31, 56, .08); transform: translateY(-2px); }
.company .tag { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: var(--slate); }
.company h3 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; }
.company p:not(.tag) { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.company-link { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; }

/* ---------- Approach ---------- */
.light { background: var(--bg); border-top: 1px solid var(--line); }
.approach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.numeral { font-family: var(--serif); font-size: 40px; font-weight: 700; color: #8A96A3; margin-bottom: 12px; }
.approach-grid h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.approach-grid p:not(.numeral) { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.contact-copy { flex: 1 1 480px; min-width: 0; }
.contact-copy h2 { margin-bottom: 20px; }
.contact-copy p:last-child { font-size: 18px; line-height: 1.7; color: var(--mist); max-width: 560px; }
.contact-details { flex: 0 1 380px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.6; }
.contact-details a { color: var(--mist); text-decoration: none; }
.contact-details a:hover { color: var(--white); text-decoration: underline; }
.contact-details .contact-email { color: var(--white); font-size: 20px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #A9B3BF; }
.site-footer .container { padding-top: 56px; padding-bottom: 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid #22344C; }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: 0.14em; color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.footer-links a { color: var(--mist); text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.disclosure { margin: 28px 0 12px; font-size: 13px; line-height: 1.7; max-width: 960px; }
.copyright { font-size: 13px; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .section-pad, .story-top { padding-top: 72px; padding-bottom: 72px; }
  .symbols { padding-bottom: 72px; }
  .hero-inner { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .ag-inner, .contact-inner { padding-top: 72px; padding-bottom: 72px; }
  .feature-card { padding: 32px 24px; }
  .company { padding: 28px 24px; }
  .lead { font-size: 17px; }
  .hero-art img { max-width: 300px; }
  .btn-row .btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; background: var(--white); }
.notfound .container { padding-top: 96px; padding-bottom: 96px; }
.notfound .lead { margin-bottom: 0; }
