/* US PrimePort — dev build. Monochrome brand system per usprimeport-brand skill. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;700;800&family=Nunito+Sans:wght@400;500;600&display=swap');

:root {
  --black: #000000;
  --surface-dark: #011222;
  --white: #ffffff;
  --off-white: rgba(255,255,255,.88);
  --dim-white: rgba(255,255,255,.7);
  --tile-bg: #1c1c1c;
  --nav-h: 98px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 500;
  background: var(--surface-dark); color: var(--white);
  padding: 12px 20px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

/* Consistent visible focus indicator for all interactive elements (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--surface-dark);
  outline-offset: 2px;
}
.section-dark a:focus-visible, .section-dark button:focus-visible,
.hero a:focus-visible, .hero button:focus-visible,
.contact a:focus-visible, .contact button:focus-visible,
.stats a:focus-visible, .stats button:focus-visible {
  outline-color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

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

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

h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h2 { font-size: 38px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid #eee;
}
.nav .logo { display: flex; align-items: center; }
.nav .logo img { height: 78px; width: auto; display: block; }
.nav ul { list-style: none; display: flex; gap: 32px; }
.nav a { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; }
.nav > ul > li > a { padding: 10px 0; display: inline-block; }
.nav > ul > li:first-child > a { position: relative; transition: color .15s ease; }
.nav > ul > li:first-child > a::after {
  content: "\1F1FA\1F1F8";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}
.nav > ul > li:first-child > a:hover,
.nav > ul > li:first-child > a:focus-visible { color: transparent; }
.nav > ul > li:first-child > a:hover::after,
.nav > ul > li:first-child > a:focus-visible::after { opacity: 1; }
.nav .menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 26px; height: 24px; padding: 0; position: relative; flex-shrink: 0;
}
.nav .menu-toggle span {
  display: block; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--black); transition: transform .2s ease, opacity .2s ease;
}
.nav .menu-toggle span:nth-child(1) { top: 3px; }
.nav .menu-toggle span:nth-child(2) { top: 11px; }
.nav .menu-toggle span:nth-child(3) { top: 19px; }
.nav .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav .menu-toggle.open span:nth-child(2) { opacity: 0; }
.nav .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* NAV — Products dropdown */
.nav li.has-dropdown {
  position: relative;
  /* invisible bridge: extends the hoverable box down through the visual gap
     so the pointer never leaves .has-dropdown while moving toward the menu */
  padding-bottom: 18px;
  margin-bottom: -18px;
}
.nav li.has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.nav li.has-dropdown > a::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.nav ul.dropdown {
  list-style: none; display: none; flex-direction: column; gap: 0;
  position: absolute; top: 100%; left: 0; margin-top: 0;
  background: var(--white); border: 1px solid #eee; box-shadow: 0 12px 32px rgba(0,0,0,.08);
  min-width: 180px; padding: 8px 0; z-index: 60;
}
.nav li.has-dropdown:hover ul.dropdown,
.nav li.has-dropdown:focus-within ul.dropdown { display: flex; }
.nav ul.dropdown li { width: 100%; }
.nav ul.dropdown a { display: block; padding: 12px 20px; font-size: 12px; }
.nav ul.dropdown a:hover { background: #f7f7f7; }

/* HERO */
.hero {
  position: relative;
  min-height: 640px;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  color: var(--white);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(1,18,34,.70) 0%, rgba(1,18,34,.32) 55%, rgba(1,18,34,.04) 100%);
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-content { position: relative; z-index: 2; max-width: 620px; padding: 0 32px; }
.video-toggle {
  position: absolute; z-index: 3; right: 24px; bottom: 24px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: rgba(1,18,34,.55); border: 1px solid rgba(255,255,255,.5); border-radius: 50%;
  color: var(--white); cursor: pointer; padding: 0;
}
.video-toggle:hover { background: rgba(1,18,34,.8); }
.video-toggle:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); margin-bottom: 24px; }
.hero p { font-size: 17px; color: var(--off-white); max-width: 480px; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; background: var(--white); color: var(--black);
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px;
  padding: 16px 32px; border-radius: 0; border: none; cursor: pointer;
}
.btn-primary:hover { background: #eee; }

/* SECTIONS: black */
.section-dark { background: var(--surface-dark); color: var(--off-white); padding: 96px 0; }
.section-dark h2 { color: var(--white); }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim-white); margin-bottom: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split p { margin-top: 20px; font-size: 17px; color: var(--off-white); }
.split p.eyebrow { font-size: 12px; margin-top: 0; }
.split-media img { width: 100%; height: 420px; object-fit: cover; }
.split-media-480 img { height: 480px; }
.split-align-end { align-items: end; }
.split-media-natural img { height: auto; object-fit: contain; }

.pull-quote {
  text-align: center; font-style: italic; font-size: 20px; font-weight: 500;
  max-width: 720px; margin: 0 auto; color: var(--black); padding: 64px 32px;
  background: var(--white);
}

/* STATS */
.stats { background: var(--surface-dark); padding: 0 0 96px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { border-left: 1px solid #333; padding: 0 24px; }
.stat .num { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 48px; color: var(--white); }
.stat .num .num-prefix { display: inline-block; opacity: 0; transition: opacity .5s ease; }
.stat .num .num-prefix.is-visible { opacity: 1; }
.stat .label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim-white); margin-top: 8px; }

/* PRODUCTS */
.section-light { padding: 96px 0; background: var(--white); }
.section-light .eyebrow { color: #666; }
.section-light .split p, .section-light p { color: #333; }
.section-light h2, .section-light h3 { color: var(--black); }
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.product-card { position: relative; height: 480px; overflow: hidden; background: var(--tile-bg); color: var(--white); }
.product-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.product-card .placeholder-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #949494; text-transform: uppercase; letter-spacing: .05em; }
.product-card .card-body { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; }
.product-card h3 { font-size: 26px; color: var(--white); margin-bottom: 8px; }
.product-card p { font-size: 14px; color: var(--off-white); margin-bottom: 16px; }
.product-card .tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim-white); }
.product-card .btn-learnmore { display: inline-block; margin-top: 4px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px; color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.product-card .btn-learnmore:hover { opacity: .75; }

.cuts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.cuts-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.cuts-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.cut-tile { background: var(--tile-bg); aspect-ratio: 1; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; color: #949494; font-size: 12px; overflow: hidden; }
.cut-tile img { width: 100%; height: 100%; object-fit: cover; }
.cut-name { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px; }
.cut-desc { font-size: 17px; color: #555; margin-top: 4px; }

/* FAQ */
.faq-list { margin-top: 48px; max-width: 860px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.15); padding: 24px 0; }
.faq-item:first-child { border-top: 1px solid rgba(255,255,255,.15); }
.faq-item summary { cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 18px; color: var(--white); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--white); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 12px; font-size: 16px; color: var(--off-white); line-height: 1.6; }
.section-light .faq-item { border-color: rgba(0,0,0,.12); }
.section-light .faq-item summary, .section-light .faq-item summary::after { color: var(--black); }
.section-light .faq-item p { color: #333; }

/* PROCESS */
.process-list { margin-top: 48px; border-top: 1px solid #333; }
.process-item { display: grid; grid-template-columns: 60px 240px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid #333; align-items: start; }
.process-item .step-num { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 14px; color: #949494; }
.process-item h3 { font-size: 18px; color: var(--white); }
.process-item p { font-size: 16px; color: var(--off-white); }

/* CONTACT */
.contact {
  position: relative; padding: 96px 0; color: var(--white);
  background-size: cover; background-position: center;
}
.contact::before { content: ""; position: absolute; inset: 0; background: rgba(1,18,34,.74); }
.contact .wrap { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info p { font-size: 14px; margin-top: 8px; color: var(--off-white); }
.contact-info h3 { color: var(--white); margin-top: 24px; margin-bottom: 4px; font-size: 15px; }
.form-field { width: 100%; background: rgba(255,255,255,.95); border: none; border-radius: 0; padding: 14px 16px; font-size: 16px; margin-bottom: 14px; font-family: 'Nunito Sans'; }
textarea.form-field { min-height: 120px; resize: vertical; }
.btn-pill {
  background: transparent; color: var(--white); border: 1px solid var(--white);
  border-radius: 100px; padding: 14px 36px; font-family: 'Inter'; font-weight: 700; font-size: 14px; cursor: pointer;
}
.btn-pill:hover { background: rgba(255,255,255,.1); }

/* FOOTER */
footer { background: var(--white); border-top: 1px solid #eee; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-col h4 { font-family: 'Inter'; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; color: #595959; }
.footer-col a, .footer-col p { display: block; font-size: 14px; margin-bottom: 10px; color: #333; }
.footer-bottom { border-top: 1px solid #eee; padding-top: 24px; display: flex; justify-content: space-between; font-size: 12px; color: #595959; flex-wrap: wrap; gap: 12px; }
.footer-bottom .legal-links { display: flex; gap: 16px; }

/* BROCHURE DOWNLOAD MODAL */
.brochure-modal {
  display: none; position: fixed; inset: 0; z-index: 300;
  align-items: center; justify-content: center; padding: 24px;
}
.brochure-modal.open { display: flex; }
.brochure-modal-box {
  position: relative;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(1,18,34,.08);
  box-shadow: 0 0 0 9999px rgba(1,18,34,.35), 0 24px 64px rgba(1,18,34,.25);
  padding: 40px; max-width: 440px; width: 100%; text-align: left;
}
.brochure-modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 22px; line-height: 1; cursor: pointer; color: #333; padding: 4px;
}
.brochure-modal h3 { font-size: 22px; margin-bottom: 10px; }
.brochure-modal-box > p { font-size: 14px; color: #333; margin-bottom: 16px; }
.brochure-form .form-field { margin-bottom: 12px; }
.brochure-form .btn-pill { background: var(--surface-dark); color: var(--white); border-color: var(--surface-dark); width: 100%; }
.brochure-form .btn-pill:hover { opacity: .85; }
.brochure-form-followup { font-size: 12px; color: #595959; margin-top: 12px; line-height: 1.5; }
.brochure-form-note { font-size: 13px; color: #555; margin-top: 10px; }

/* COOKIE BANNER (kept from live site pattern) */
.cookie-banner {
  display: none;
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 200;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(1,18,34,.08);
  box-shadow: 0 0 0 9999px rgba(1,18,34,.16), 0 24px 64px rgba(1,18,34,.22);
  padding: 32px; max-width: 440px; width: calc(100% - 48px);
  flex-direction: column; gap: 20px;
  font-size: 13px; text-align: left;
}
.cookie-banner.open { display: flex; }
.cookie-banner p { margin: 0; line-height: 1.6; }
.cookie-banner .actions { display: flex; gap: 12px; }
.cookie-banner button { border: 1px solid var(--black); background: var(--white); padding: 10px 22px; font-size: 12px; cursor: pointer; flex: 1; }
.cookie-banner button.accept { background: var(--surface-dark); color: var(--white); border-color: var(--surface-dark); }

@media (max-width: 900px) {
  .nav > ul {
    display: none; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid #eee;
    padding: 8px 32px 16px; z-index: 150;
  }
  .nav > ul.open { display: flex; }
  .nav > ul > li { width: 100%; padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
  .nav > ul > li:last-child { border-bottom: none; }
  .nav > ul > li.has-dropdown { padding-bottom: 12px; margin-bottom: 0; }
  .nav .menu-toggle { display: block; }
  .nav ul.dropdown { position: static; display: block; margin-top: 8px; box-shadow: none; border: none; padding: 0 0 0 16px; }
  .nav li.has-dropdown:hover ul.dropdown { display: block; }
  .split, .products-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid, .cuts-grid, .cuts-grid-3, .cuts-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav > ul > li:first-child > a:hover,
  .nav > ul > li:first-child > a:focus-visible { color: inherit; }
  .nav > ul > li:first-child > a:hover::after,
  .nav > ul > li:first-child > a:focus-visible::after { opacity: 0; }
  .process-item { grid-template-columns: 1fr; gap: 8px; }
  .hero-video-about { object-position: 95% center; }
  .process-item div:nth-child(2) { grid-column: 1; }
}

/* Site-wide scroll reveal: section content fades in and slides up into view (class added via JS) */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1), transform .7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

/* Supply chain graphic: icon-by-icon reveal on scroll into view (circles + connectors as separate segments) */
.supply-chain-wrap { display: flex; width: 75%; margin: 32px auto 0; }
.chain-step {
  display: block; height: auto;
  opacity: 0; transform: translateY(18px);
  transition: opacity 2.7s cubic-bezier(0.16, 1, 0.3, 1), transform 2.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.supply-chain-wrap.is-visible .chain-step { opacity: 1; transform: translateY(0); }
.supply-chain-wrap.is-visible .chain-step:nth-child(1) { transition-delay: 0s; }
.supply-chain-wrap.is-visible .chain-step:nth-child(2) { transition-delay: .15s; }
.supply-chain-wrap.is-visible .chain-step:nth-child(3) { transition-delay: .3s; }
.supply-chain-wrap.is-visible .chain-step:nth-child(4) { transition-delay: .45s; }
.supply-chain-wrap.is-visible .chain-step:nth-child(5) { transition-delay: .6s; }
.supply-chain-wrap.is-visible .chain-step:nth-child(6) { transition-delay: .75s; }
.supply-chain-wrap.is-visible .chain-step:nth-child(7) { transition-delay: .9s; }
.supply-chain-wrap.is-visible .chain-step:nth-child(8) { transition-delay: 1.05s; }
.supply-chain-wrap.is-visible .chain-step:nth-child(9) { transition-delay: 1.2s; }

/* Circles: hover to scale up (connectors excluded) */
.chain-circle { position: relative; }
.chain-circle img {
  display: block; width: 100%; height: auto;
  transition: transform .3s ease;
  transform-origin: center;
}
.chain-circle:hover { z-index: 5; }
.chain-circle:hover img { transform: scale(1.22); }

/* Leftmost circle only: photo crossfade on hover */
.acacia-hover {
  position: absolute;
  left: 4.87%; top: 9.14%; width: 102%; height: 53%;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.acacia-hover--c4 { left: -6.0%; top: 9.36%; width: 112.2%; height: 53%; }
.acacia-hover--c2 { left: -6.0%; top: 9.36%; width: 112.2%; height: 53%; }
.acacia-hover--c3 { left: -5.85%; top: 9.29%; width: 112.5%; height: 53.14%; }
.acacia-hover--c5 { left: -6.58%; top: 9.28%; width: 101.96%; height: 52.98%; }
.chain-circle .acacia-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease-in-out;
}
.chain-circle .acacia-photo.is-active { opacity: 1; transition: opacity .7s ease-in-out; }

/* Mobile: keep the same 9 segments and the one-after-another fade-in, but bigger and without the hover-scale / photo-crossfade effects (no reliable hover on touch anyway) */
@media (max-width: 900px) {
  .supply-chain-wrap { width: 100%; }
  .chain-circle:hover img { transform: none; }
  .acacia-hover { display: none; }
}

/* Reflow at 320px CSS width (WCAG 1.4.10) — collapse remaining 2-col grids so nothing needs horizontal scrolling at 400% zoom */
@media (max-width: 480px) {
  .stats-grid, .cuts-grid, .cuts-grid-3, .cuts-grid-2, .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat { border-left: none; border-top: 1px solid #333; padding: 20px 0 0; }
  .stat:first-child { border-top: none; padding-top: 0; }
}
