:root {
  --navy: #172557;
  --blue: #2c3c92;
  --blue-bright: #4263c5;
  --gold: #d6aa4b;
  --ink: #151923;
  --muted: #5c6370;
  --paper: #f4f5f7;
  --white: #fff;
  --max: 1180px;
  --shadow: 0 18px 50px rgba(8, 17, 45, .17);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Source Sans 3", Arial, sans-serif; font-size: 18px; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: Montserrat, Arial, sans-serif; line-height: 1.08; }
h2 { font-size: clamp(2.2rem, 5vw, 4.1rem); letter-spacing: -.045em; text-transform: uppercase; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 1.25rem; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { max-width: 900px; }
.section { padding: 108px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 999; padding: 10px 16px; color: white; background: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 100; min-height: 84px; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(23,37,87,.1); backdrop-filter: blur(12px); }
.header-inner { width: min(calc(100% - 40px), var(--max)); min-height: 84px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand img { width: min(340px, 43vw); height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.site-nav a { position: relative; font-family: Montserrat, sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span:not(.sr-only) { display: block; width: 28px; height: 2px; margin: 6px 0; background: var(--navy); }

.hero { position: relative; min-height: min(790px, calc(100vh - 84px)); display: grid; align-items: center; color: var(--white); background: url("assets/facility-hero.jpg") center/cover no-repeat; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,14,39,.9) 0%, rgba(23,37,87,.72) 48%, rgba(23,37,87,.15) 100%); }
.hero-content { position: relative; z-index: 1; padding-block: 90px; }
.eyebrow { margin-bottom: 15px; color: var(--gold); font-family: Montserrat, sans-serif; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.dark { color: var(--blue); }
.hero h1 { max-width: 850px; font-size: clamp(3rem, 7.2vw, 6.8rem); letter-spacing: -.06em; text-transform: uppercase; text-shadow: 0 4px 25px rgba(0,0,0,.25); }
.hero-copy { max-width: 660px; margin-top: 25px; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 13px 23px; border: 2px solid transparent; border-radius: 2px; font-family: Montserrat, sans-serif; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #10162c; background: var(--gold); }
.button-outline { color: white; border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.05); }
.button-video { color: white; border-color: white; background: white; color: var(--navy); }
.button-video span { margin-right: 9px; color: var(--blue); font-size: .72rem; }
.scroll-cue { position: absolute; right: 34px; bottom: 28px; z-index: 2; color: white; font-family: Montserrat, sans-serif; font-size: .7rem; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-cue span { margin-top: 10px; font-size: 1.2rem; }

.intro { background: var(--paper); }
.intro h2 { color: var(--navy); text-align: center; }
.intro .eyebrow { text-align: center; }
.accent-rule { width: 72px; height: 4px; margin: 26px auto 42px; background: var(--gold); }
.intro h3 { margin-bottom: 21px; color: var(--blue); text-align: center; }
.intro p { color: #3d4450; }

.split { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(45px, 7vw, 90px); align-items: center; }
.split-media { position: relative; }
.split-media::before { content: ""; position: absolute; top: -20px; left: -20px; z-index: 0; width: 68%; height: 60%; background: var(--gold); }
.split-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.image-mark { position: absolute; right: -18px; bottom: 25px; z-index: 2; padding: 18px 22px; color: white; background: var(--navy); font-family: Montserrat, sans-serif; font-size: .75rem; letter-spacing: .1em; line-height: 1.55; text-transform: uppercase; }
.split-copy h2 { color: var(--navy); }
.split-copy h3 { margin: 18px 0 26px; color: var(--blue); }
.split-copy p { color: var(--muted); }

.facility { color: white; background: var(--navy); }
.section-heading { max-width: 780px; margin: 0 auto 55px; text-align: center; }
.section-heading h2 { color: white; }
.section-heading > p:last-child { margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 1.15rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.13); }
.feature-card { min-height: 220px; padding: 32px; background: #1b2b63; }
.feature-card span { color: var(--gold); font-family: Montserrat, sans-serif; font-size: .75rem; font-weight: 800; letter-spacing: .14em; }
.feature-card h3 { margin: 18px 0 12px; }
.feature-card p { margin: 0; color: rgba(255,255,255,.68); font-size: 1rem; }
.gallery { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 12px; margin-top: 55px; }
.gallery img { width: 100%; height: 310px; object-fit: cover; }

.minerals { display: grid; grid-template-columns: 1.25fr .75fr; min-height: 580px; background: #111a3d; }
.minerals-image { background: linear-gradient(90deg, transparent 65%, #111a3d 100%), url("assets/minerals.jpg") center/cover no-repeat; }
.minerals-copy { align-self: center; padding: 70px clamp(35px, 6vw, 90px) 70px 30px; color: white; }
.minerals-copy h2 { color: white; }
.minerals-copy p:not(.eyebrow) { margin: 25px 0 32px; color: rgba(255,255,255,.75); }

.contact { background: white; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(45px, 8vw, 100px); }
.contact-copy h2 { color: var(--navy); }
.contact-copy > p:not(.eyebrow) { margin: 24px 0 35px; color: var(--muted); }
.contact-list { display: grid; gap: 18px; }
.contact-list a, .contact-list div { padding-bottom: 16px; border-bottom: 1px solid #d9dde5; color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-list span { display: block; color: var(--muted); font-family: Montserrat, sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.contact-form { padding: clamp(28px, 5vw, 52px); background: var(--paper); box-shadow: 0 15px 50px rgba(23,37,87,.09); }
.contact-form label { display: block; margin-bottom: 17px; color: var(--navy); font-family: Montserrat, sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 7px; border: 1px solid #c8cdd7; border-radius: 0; padding: 13px 14px; color: var(--ink); background: white; font: 1rem "Source Sans 3", sans-serif; text-transform: none; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(66,99,197,.2); border-color: var(--blue); }
.contact-form .button { border: 0; }
.form-note { margin: 15px 0 0; color: var(--muted); font-size: .85rem; }

.site-footer { color: white; background: #0b122c; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: center; padding-block: 46px; }
.footer-grid img { width: 310px; filter: brightness(0) invert(1); opacity: .88; }
.footer-grid strong, .footer-grid span { display: block; }
.footer-grid span { color: rgba(255,255,255,.64); font-size: .95rem; }
.footer-contact { display: grid; justify-items: end; }
.footer-contact a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-bottom { padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.45); font-size: .83rem; text-align: center; }

.video-modal[hidden] { display: none; }
.video-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.video-backdrop { position: absolute; inset: 0; background: rgba(4,8,22,.91); backdrop-filter: blur(8px); }
.video-dialog { position: relative; z-index: 1; width: min(1100px, 100%); color: white; background: #070c1f; box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.video-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; }
.video-heading h2 { font-size: clamp(1rem, 2vw, 1.35rem); letter-spacing: .02em; }
.video-close { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.video-dialog video { display: block; width: 100%; max-height: calc(100vh - 140px); background: black; }
body.video-open { overflow: hidden; }

@media (max-width: 880px) {
  .section { padding: 78px 0; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 84px; right: 0; left: 0; display: none; padding: 12px 20px 24px; background: white; box-shadow: 0 18px 25px rgba(10,19,52,.14); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 10px 0; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-media { max-width: 620px; }
  .split-media img { aspect-ratio: 5/4; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { grid-column: 1/-1; }
  .minerals { grid-template-columns: 1fr; }
  .minerals-image { min-height: 420px; background: linear-gradient(0deg, #111a3d 0%, transparent 45%), url("assets/minerals.jpg") center/cover no-repeat; }
  .minerals-copy { padding: 10px 30px 75px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid img { grid-column: 1/-1; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .container, .header-inner { width: min(calc(100% - 30px), var(--max)); }
  .header-inner, .site-header { min-height: 72px; }
  .brand img { width: 245px; max-width: calc(100vw - 85px); }
  .site-nav { top: 72px; }
  .hero { min-height: calc(100svh - 72px); }
  .hero-shade { background: rgba(7,14,39,.78); }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4.5rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .scroll-cue { display: none; }
  .feature-grid, .field-row, .gallery, .footer-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .gallery img, .gallery img:first-child { grid-column: auto; height: 240px; }
  .minerals-image { min-height: 300px; }
  .image-mark { right: -8px; }
  .footer-contact { justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
