/* ==========================================================================
   MAC ME NUTS — macmenuts.com
   Design system per Color BIBLE & Brand Universe:
   - 70/20/10: Naked Macadamia / Deep Charcoal / Impact accents
   - Hard-edged transitions only. No decorative gradients. No rounded corners.
   - Display: heavy wide grotesk. Data: mono. Patterns: topographic/blueprint.
   ========================================================================== */

:root {
  /* Foundation */
  --naked: #FDF5E6;
  --paper: #F5EFE0;
  /* Urgency */
  --orange: #FF5F00;
  --amber: #FFB000;
  /* Integration */
  --cobalt: #2E5BFF;
  --blueprint: #A9BCFF;
  /* Authority */
  --charcoal: #1A1A1A;
  --ink: #4D4D4D;
  /* Efficiency (data only) */
  --sage: #8A9A5B;
  --orchard: #C5D1A5;

  --font-display: "Archivo Black", "Archivo", "Hiragino Kaku Gothic ProN", "Yu Gothic", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Archivo", "Hiragino Kaku Gothic ProN", "Yu Gothic", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-hard: cubic-bezier(0.83, 0, 0.17, 1);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--naked);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
a { color: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

.mono { font-family: var(--font-mono); }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-xs { width: 14px; height: 14px; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400; /* Archivo Black is single-weight */
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.1; }

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--orange);
  margin-bottom: 14px;
}
.kicker::before { content: "// "; color: currentColor; }

.lead { font-size: 1.1rem; line-height: 1.65; color: rgba(26,26,26,0.72); }

.sec-head { margin-bottom: 56px; }
.sec-sub { font-size: 1.1rem; line-height: 1.6; max-width: 620px; margin-top: 18px; color: rgba(26,26,26,0.6); }
.sec-charcoal .sec-sub, .sec-cobalt .sec-sub { color: rgba(253,245,230,0.6); }

/* ==========================================================================
   SECTION SURFACES — 70/20/10
   ========================================================================== */
.section { padding: 104px 0; position: relative; }
.sec-naked    { background: var(--naked); }
.sec-paper    { background: var(--paper); }
.sec-white    { background: #fff; }
.sec-charcoal { background: var(--charcoal); color: var(--naked); }
.sec-cobalt   { background: var(--cobalt); color: #fff; }

/* topographic patterns — blueprint contours, hard lines */
.topo-light, .topo-dark { isolation: isolate; }
.topo-light::before, .topo-dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%232E5BFF' stroke-width='1'%3E%3Cpath d='M60 210c0-72 54-118 126-118s144 38 144 110-62 124-134 124S60 282 60 210z'/%3E%3Cpath d='M96 210c0-52 40-86 94-86s106 28 106 80-46 92-100 92-100-34-100-86z'/%3E%3Cpath d='M132 210c0-33 26-55 60-55s68 18 68 51-30 59-64 59-64-22-64-55z'/%3E%3Cpath d='M168 210c0-15 12-25 27-25s31 8 31 23-14 27-29 27-29-10-29-25z'/%3E%3Cpath d='M-40 60c60-30 120 10 180-12s120-26 180 0 80 22 140 0' /%3E%3Cpath d='M-40 390c60-30 120 10 180-12s120-26 180 0 80 22 140 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 420px 420px;
  opacity: 0.07;
  pointer-events: none;
  z-index: -1;
}
.topo-dark::before { filter: invert(1) brightness(2); opacity: 0.08; }
.sec-cobalt.topo-dark::before { filter: brightness(0) invert(1); opacity: 0.1; }

/* ==========================================================================
   BUTTONS — hard-edged, industrial
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 20px 40px;
  font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  text-decoration: none;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  position: relative;
}
.btn .ic { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.btn:hover .ic { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--charcoal); }
.sec-charcoal .btn-orange:hover, .custom-banner .btn-orange:hover { background: #fff; color: var(--charcoal); }

.btn-ghost { border: 2px solid rgba(253,245,230,0.3); color: var(--naked); padding: 18px 38px; }
.btn-ghost:hover { border-color: var(--naked); }
.btn-ghost:hover .ic { transform: none; }

.btn-sm { padding: 14px 26px; font-size: 0.72rem; }
.btn-full { width: 100%; }

/* ==========================================================================
   LOADER
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
}
.loader-inner { text-align: center; position: relative; z-index: 2; }
.loader-word {
  display: flex; gap: 0.35em; justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 6rem);
  color: var(--naked);
  text-transform: uppercase;
  line-height: 1;
  overflow: hidden;
}
.loader-word span {
  display: inline-block;
  transform: translateY(110%);
  animation: loader-up 0.7s var(--ease-out) forwards;
}
.loader-word span:nth-child(2) { animation-delay: 0.1s; color: var(--orange); }
.loader-word span:nth-child(3) { animation-delay: 0.2s; }
@keyframes loader-up { to { transform: translateY(0); } }

.loader-tag {
  margin-top: 18px;
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(253,245,230,0.45);
  opacity: 0;
  animation: loader-fade 0.5s ease 0.5s forwards;
}
@keyframes loader-fade { to { opacity: 1; } }

.loader-bar {
  width: 220px; height: 2px; margin: 26px auto 0;
  background: rgba(253,245,230,0.15);
  position: relative; overflow: hidden;
}
.loader-bar i {
  position: absolute; inset: 0; transform-origin: left;
  background: var(--orange);
  transform: scaleX(0);
  animation: loader-bar 0.9s var(--ease-hard) 0.25s forwards;
}
@keyframes loader-bar { to { transform: scaleX(1); } }

.loader-panel { position: absolute; inset: 0; transform: scaleY(0); }
.loader-panel.p1 { background: var(--orange); z-index: 3; }
.loader-panel.p2 { background: var(--naked); z-index: 4; }

.loader.is-done .loader-inner { opacity: 0; transition: opacity 0.2s; }
.loader.is-done .loader-panel { transform-origin: bottom; }
.loader.is-done .p1 { animation: panel-wipe 0.55s var(--ease-hard) forwards; }
.loader.is-done .p2 { animation: panel-wipe 0.55s var(--ease-hard) 0.12s forwards; }
@keyframes panel-wipe {
  0% { transform: scaleY(0); transform-origin: bottom; }
  49.9% { transform: scaleY(1); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}
.loader.is-gone { display: none; }

/* ==========================================================================
   SCROLL PROGRESS + NAV
   ========================================================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 110;
  background: var(--orange);
  transform-origin: left;
  transform: scaleX(0);
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253,245,230,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26,26,26,0.12);
  transition: transform 0.35s var(--ease-out);
}
.nav.nav-hidden { transform: translateY(-100%); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-logo img { height: 30px; width: auto; }

.nav-links { display: none; align-items: center; gap: 30px; }
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-links > button {
  font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(26,26,26,0.62);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links > button::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.25s var(--ease-out);
}
.nav-links > button:hover { color: var(--charcoal); }
.nav-links > button:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-links > .nav-cta {
  background: var(--orange); color: #fff;
  padding: 12px 22px;
  transition: background 0.2s;
}
.nav-links > .nav-cta::after { display: none; }
.nav-links > .nav-cta:hover { background: var(--charcoal); color: #fff; }

/* language switcher */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.76rem; font-weight: 600;
  color: rgba(26,26,26,0.62);
  transition: color 0.2s;
}
.lang-btn:hover { color: var(--charcoal); }
.lang-btn .ic { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 12px);
  background: #fff;
  border: 1px solid rgba(26,26,26,0.12);
  box-shadow: 6px 6px 0 rgba(26,26,26,0.12);
  min-width: 124px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 60;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: block; width: 100%; text-align: left;
  padding: 10px 16px;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: rgba(26,26,26,0.62);
  transition: background 0.15s, color 0.15s;
}
.lang-menu button:hover { background: var(--naked); color: var(--charcoal); }
.lang-menu button.active { color: var(--charcoal); font-weight: 700; background: var(--paper); }

.nav-mobile-controls { display: flex; align-items: center; gap: 18px; }
@media (min-width: 900px) { .nav-mobile-controls { display: none; } }

.nav-burger { width: 30px; height: 22px; position: relative; }
.nav-burger span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--charcoal);
  transition: transform 0.3s var(--ease-out), opacity 0.2s, top 0.3s var(--ease-out);
}
.nav-burger span:nth-child(1) { top: 0; }
.nav-burger span:nth-child(2) { top: 10px; }
.nav-burger span:nth-child(3) { top: 20px; }
.nav-burger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--charcoal);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 36px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.5s var(--ease-hard);
}
.mobile-menu.open { clip-path: inset(0 0 0 0); }
.mobile-menu-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-links button {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3.2rem);
  text-transform: uppercase;
  color: var(--naked);
  text-align: left;
  padding: 6px 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.2s;
}
.mobile-menu.open .mobile-menu-links button { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-menu-links button:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu.open .mobile-menu-links button:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.open .mobile-menu-links button:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.open .mobile-menu-links button:nth-child(4) { transition-delay: 0.28s; }
.mobile-menu.open .mobile-menu-links button:nth-child(5) { transition-delay: 0.34s; }
.mobile-menu-links button:hover, .mobile-menu-links button.accent { color: var(--orange); }
.mobile-menu-foot {
  position: absolute; bottom: 32px; left: 36px; right: 36px;
  font-size: 0.62rem; letter-spacing: 0.25em;
  color: rgba(253,245,230,0.35);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--charcoal);
  color: var(--naked);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 112%;
  object-fit: cover;
  opacity: 0.32;
  will-change: transform;
}
.hero-shade { position: absolute; inset: 0; background: rgba(26,26,26,0.25); }
.hero-topo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.topo-line {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: topo-draw 5s var(--ease-out) 1.1s forwards;
  opacity: 0.55;
}
.topo-line:nth-child(2) { animation-delay: 1.3s; }
.topo-line:nth-child(3) { animation-delay: 1.5s; }
.topo-line:nth-child(4) { animation-delay: 1.7s; }
.topo-line:nth-child(5) { animation-delay: 1.9s; }
@keyframes topo-draw { to { stroke-dashoffset: 0; } }

.hero-content { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 120px; }

.hero-badge {
  display: inline-block;
  background: var(--orange); color: #fff;
  padding: 10px 20px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  margin-bottom: 34px;
}

.hero-title {
  font-size: clamp(2.7rem, 8.2vw, 7rem);
  max-width: 17ch;
  margin-bottom: 34px;
  color: #fff;
}
.hero-title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero-title .w > i {
  display: inline-block; font-style: normal;
  transform: translateY(108%);
  transition: transform 0.8s var(--ease-out);
}
.hero-title.in .w > i { transform: translateY(0); }

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: rgba(253,245,230,0.62);
  max-width: 600px;
  margin-bottom: 44px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 60px; }

.hero-data {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(253,245,230,0.45);
  border-top: 1px solid rgba(253,245,230,0.14);
  padding-top: 22px;
  max-width: 760px;
}
.hero-data i { width: 5px; height: 5px; background: var(--orange); flex: none; }

.hero .reveal-block {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.hero.in .reveal-block { opacity: 1; transform: translateY(0); }
.hero.in .hero-badge { transition-delay: 0.05s; }
.hero.in .hero-sub { transition-delay: 0.35s; }
.hero.in .hero-ctas { transition-delay: 0.5s; }
.hero.in .hero-data { transition-delay: 0.65s; }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(253,245,230,0.4);
  animation: bounce 2s infinite;
  transition: color 0.2s;
}
.hero-scroll:hover { color: var(--orange); }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 9px); }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  background: var(--orange); color: var(--charcoal);
  overflow: hidden;
  padding: 16px 0;
  border-top: 3px solid var(--charcoal);
  border-bottom: 3px solid var(--charcoal);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SHARED — reveals, frames, stats
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.stagger .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger .reveal:nth-child(3) { transition-delay: 0.24s; }
.stagger .reveal:nth-child(4) { transition-delay: 0.36s; }

.frame { position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after {
  content: ""; position: absolute; inset: 0;
  border: 2px solid transparent;
  transform: translate(14px, 14px);
  pointer-events: none;
  transition: transform 0.35s var(--ease-out);
  z-index: -1;
}
.frame-cobalt::after { border-color: var(--cobalt); }
.frame-orange::after { border-color: var(--orange); }
.frame:hover::after { transform: translate(8px, 8px); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.stat { border-left: 4px solid; padding-left: 20px; }
.stat-orange { border-color: var(--orange); }
.stat-cobalt { border-color: var(--cobalt); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(26,26,26,0.5);
  margin-top: 8px;
}
.stat-title {
  font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.stat-desc { font-size: 0.9rem; color: rgba(26,26,26,0.6); margin-top: 6px; line-height: 1.5; }

/* ==========================================================================
   FARMS
   ========================================================================== */
.farms-grid {
  display: grid; gap: 48px;
  align-items: start;
}
@media (min-width: 900px) { .farms-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.farms-media .frame { height: 420px; }
@media (min-width: 900px) { .farms-media .frame { height: 520px; } }
.farms-coord {
  margin-top: 16px;
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.22em;
  color: rgba(26,26,26,0.42);
}
.farms-copy { display: flex; flex-direction: column; gap: 38px; }
.farms-copy .frame { height: 230px; }

/* ==========================================================================
   SUPPLY CHAIN
   ========================================================================== */
.chain-grid { display: grid; gap: 26px; counter-reset: chain; }
@media (min-width: 860px) { .chain-grid { grid-template-columns: repeat(3, 1fr); } }

.chain-card {
  background: rgba(253,245,230,0.04);
  border: 1px solid rgba(253,245,230,0.12);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.chain-card:hover { transform: translateY(-6px); background: rgba(253,245,230,0.07); }
.chain-card[data-accent="sage"]:hover   { border-color: var(--sage); }
.chain-card[data-accent="orange"]:hover { border-color: var(--orange); }
.chain-card[data-accent="cobalt"]:hover { border-color: var(--cobalt); }

.chain-media { position: relative; overflow: hidden; }
.chain-media img {
  width: 100%; height: 220px; object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.4s, transform 0.6s var(--ease-out);
}
.chain-card:hover .chain-media img { opacity: 1; transform: scale(1.05); }

.chain-icon {
  position: absolute; top: 16px; left: 16px;
  padding: 10px; color: #fff;
}
.bg-sage { background: var(--sage); }
.bg-orange { background: var(--orange); }
.bg-cobalt { background: var(--cobalt); }

.chain-num {
  position: absolute; right: 14px; bottom: 10px;
  font-size: 2.6rem; font-weight: 600;
  color: rgba(253,245,230,0.85);
  text-shadow: 0 2px 14px rgba(26,26,26,0.6);
  line-height: 1;
}

.chain-body { padding: 26px; }
.chain-body h3 { margin-bottom: 14px; letter-spacing: 0.05em; }
.chain-body p { font-size: 0.92rem; line-height: 1.65; color: rgba(253,245,230,0.6); }

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto { padding: 120px 0; }
.manifesto-lines { max-width: 1000px; }
.m-line {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.6vw, 3.6rem);
  text-transform: uppercase;
  line-height: 1.04;
  margin-top: 0.45em;
}
.m-line em { font-style: normal; }
.hl-orange { color: var(--orange); }
.hl-cobalt { color: var(--cobalt); }
.manifesto .reveal { transform: translateY(46px); }
.manifesto-lines .m-line:nth-child(2) { transition-delay: 0.08s; }
.manifesto-lines .m-line:nth-child(3) { transition-delay: 0.16s; }
.manifesto-lines .m-line:nth-child(4) { transition-delay: 0.24s; }
.manifesto-lines .m-line:nth-child(5) { transition-delay: 0.32s; }

/* ==========================================================================
   QUALITY
   ========================================================================== */
.quality-wrap { max-width: 780px; }
.quality-shield {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border: 2px solid rgba(255,255,255,0.35);
  margin-bottom: 30px;
}
.quality-shield .ic { width: 30px; height: 30px; }
.sec-cobalt h2 { color: #fff; margin-bottom: 8px; }

.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 14px 22px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  transition: background 0.2s, border-color 0.2s;
}
.badge:hover { background: rgba(255,255,255,0.18); border-color: #fff; }

/* ==========================================================================
   CATEGORIES
   ========================================================================== */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.cat-tab {
  padding: 14px 22px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  background: rgba(26,26,26,0.05);
  color: rgba(26,26,26,0.6);
  transition: background 0.2s, color 0.2s;
}
.cat-tab:hover { background: rgba(26,26,26,0.1); }
.cat-tab.active { background: var(--charcoal); color: #fff; }
.cat-tab-guide {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--orange); color: #fff;
  transition: background 0.2s;
}
.cat-tab-guide:hover { background: var(--charcoal); }

.cat-panel { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .cat-panel { grid-template-columns: 1.05fr 1fr; gap: 60px; } }

.cat-media { position: relative; overflow: hidden; }
.cat-media img {
  width: 100%; height: 340px; object-fit: cover;
}
@media (min-width: 880px) { .cat-media img { height: 460px; } }
.cat-media img.swap { animation: cat-swap 0.55s var(--ease-out); }
@keyframes cat-swap {
  0% { clip-path: inset(0 100% 0 0); transform: scale(1.06); }
  100% { clip-path: inset(0 0 0 0); transform: scale(1); }
}
.cat-copy.swap { animation: cat-copy 0.45s var(--ease-out); }
@keyframes cat-copy {
  0% { opacity: 0; transform: translateX(26px); }
  100% { opacity: 1; transform: translateX(0); }
}
.cat-copy h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.rule-orange { width: 64px; height: 4px; background: var(--orange); margin: 22px 0; }
.cat-copy p { font-size: 1.08rem; line-height: 1.7; color: rgba(26,26,26,0.7); }

/* ==========================================================================
   CUSTOM PRODUCTS
   ========================================================================== */
.custom-grid { display: grid; gap: 48px; align-items: start; margin-bottom: 64px; }
@media (min-width: 900px) { .custom-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.custom-copy { display: flex; flex-direction: column; gap: 26px; }
.custom-copy .stats { margin-top: 14px; }
.custom-grid .frame { min-height: 320px; }
.custom-grid .frame img { height: 100%; min-height: 320px; }

.custom-banner { position: relative; }
.custom-banner > img {
  width: 100%; height: 440px;
  object-fit: cover; object-position: top;
}
@media (min-width: 900px) { .custom-banner > img { height: 560px; } }
/* hard-edged panel — no gradients per Color BIBLE */
.custom-banner-panel {
  position: absolute; left: 0; bottom: 0;
  background: var(--charcoal); color: var(--naked);
  border-top: 4px solid var(--orange);
  padding: 34px 38px;
  max-width: 560px;
}
.bp-head { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; line-height: 1.15; margin-bottom: 12px; }
.bp-sub { font-size: 0.9rem; color: rgba(253,245,230,0.6); line-height: 1.55; margin-bottom: 22px; }

/* ==========================================================================
   RFQ / CONTACT
   ========================================================================== */
.rfq-grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .rfq-grid { grid-template-columns: 3fr 2fr; gap: 48px; } }

.rfq-form {
  background: #fff;
  border: 1px solid rgba(26,26,26,0.1);
  padding: 40px;
  display: flex; flex-direction: column; gap: 26px;
}
.form-row { display: grid; gap: 26px; }
@media (min-width: 680px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 9px;
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid rgba(26,26,26,0.15);
  background: var(--naked);
  padding: 14px 16px;
  font: inherit; font-size: 0.92rem;
  color: var(--charcoal);
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 4px 4px 0 rgba(255,95,0,0.25);
}

#rfqSubmit .ic-spin { display: none; animation: spin 0.9s linear infinite; }
#rfqSubmit.busy .ic-spin { display: block; }
#rfqSubmit.busy .ic-send { display: none; }
#rfqSubmit:disabled { opacity: 0.55; cursor: wait; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  background: rgba(138,154,91,0.12);
  border: 1px solid rgba(138,154,91,0.4);
  padding: 18px; text-align: center;
}
.fs-title { font-weight: 700; color: var(--sage); }
.fs-desc { font-size: 0.85rem; color: rgba(26,26,26,0.6); margin-top: 4px; }

.rfq-aside { display: flex; flex-direction: column; gap: 26px; }
.hq-card {
  background: #fff;
  border: 1px solid rgba(26,26,26,0.1);
  padding: 30px;
}
.hq-card h3 { margin-bottom: 20px; letter-spacing: 0.04em; }
.hq-rows { display: flex; flex-direction: column; gap: 14px; }
.hq-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.92rem; color: rgba(26,26,26,0.65);
}
.hq-row .ic { width: 17px; height: 17px; margin-top: 2px; color: var(--orange); }
.hq-row a { text-decoration: none; transition: color 0.2s; }
.hq-row a:hover { color: var(--orange); }

.direct-card { background: var(--charcoal); color: var(--naked); padding: 30px; }
.direct-card h3 { margin-bottom: 10px; letter-spacing: 0.04em; }
.direct-card p { font-size: 0.9rem; color: rgba(253,245,230,0.6); line-height: 1.6; margin-bottom: 22px; }
.direct-card .btn .ic { width: 15px; height: 15px; }
.direct-card .btn:hover .ic { transform: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--charcoal); color: rgba(253,245,230,0.4);
  padding: 52px 0;
  border-top: 1px solid rgba(253,245,230,0.06);
}
.footer-row {
  display: flex; flex-direction: column; gap: 26px;
  align-items: center; text-align: center;
}
@media (min-width: 768px) {
  .footer-row { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}
.footer-logo { height: 24px; filter: invert(1) brightness(2); }
.footer-tagline { font-size: 0.86rem; margin-top: 12px; }
.footer-meta { display: flex; flex-direction: column; gap: 6px; align-items: center; }
@media (min-width: 768px) { .footer-meta { align-items: flex-end; } }
.footer-url { font-size: 0.62rem; letter-spacing: 0.3em; color: var(--orange); }
.footer-copy { font-size: 0.82rem; }

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column;
  background: rgba(26,26,26,0.92);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 18px;
  flex: none;
}
.modal-head-charcoal { background: var(--charcoal); border-bottom: 1px solid rgba(253,245,230,0.12); }
.modal-head-orange { background: var(--orange); }
.modal-title {
  color: #fff; font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.modal-actions { display: flex; align-items: center; gap: 16px; }
.modal-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.7);
  font-size: 0.66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.modal-link:hover { color: #fff; }
.modal-link span { display: none; }
@media (min-width: 640px) { .modal-link span { display: inline; } }
.modal-close { color: rgba(255,255,255,0.7); transition: color 0.2s; display: flex; }
.modal-close:hover { color: #fff; }
.modal iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* ==========================================================================
   TOASTS
   ========================================================================== */
.toasts {
  position: fixed; bottom: 24px; right: 24px; z-index: 180;
  display: flex; flex-direction: column; gap: 12px;
}
.toast {
  background: var(--charcoal); color: var(--naked);
  border-left: 4px solid var(--sage);
  padding: 16px 22px;
  min-width: 270px; max-width: 360px;
  box-shadow: 8px 8px 0 rgba(26,26,26,0.18);
  animation: toast-in 0.4s var(--ease-out);
}
.toast.error { border-left-color: var(--orange); }
.toast.hide { animation: toast-out 0.3s var(--ease-out) forwards; }
.toast-title { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.toast-desc { font-size: 0.8rem; color: rgba(253,245,230,0.6); margin-top: 4px; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .hero .reveal-block, .hero-title .w > i { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .topo-line { stroke-dashoffset: 0; }
}

/* ==========================================================================
   TRACEABILITY
   ========================================================================== */
.trc-section {
  background: #FAF1E0;
  color: #1A1A1A;
  padding: 96px 0 104px;
  -webkit-font-smoothing: antialiased;
}
.trc-header { max-width: 760px; }
.trc-header .kicker { margin-bottom: 26px; }
.trc-h2 {
  font-family: 'Archivo Expanded', var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.trc-accent { color: var(--orange); font-style: normal; }
.trc-intro { font-size: 17px; line-height: 1.6; color: #3a352e; max-width: 600px; margin: 0; }

/* Panel */
.trc-panel {
  position: relative;
  overflow: hidden;
  background: #17140F;
  color: #FAF1E0;
  border-radius: 6px;
  margin-top: 48px;
  padding: 40px 40px 44px;
}
.trc-panel-rings { position: absolute; right: -70px; top: -70px; pointer-events: none; opacity: 0.07; }
.trc-panel-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 680px) {
  .trc-panel { padding: 28px 24px 32px; }
  .trc-panel-grid { grid-template-columns: 1fr; }
  .trc-passport { border-left: none !important; padding-left: 0 !important; border-top: 1px solid #2a2620; padding-top: 32px !important; margin-top: 32px; }
}

/* Input side */
.trc-input-label {
  font-family: 'Space Mono', var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.trc-input-label::before { content: "// "; }
.trc-input-row { display: flex; gap: 10px; align-items: stretch; }
.trc-input {
  flex: 1;
  min-width: 0;
  background: #0f0d0a;
  border: 1.5px solid #3a352e;
  color: #FAF1E0;
  font-family: 'Space Mono', var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 0 16px;
  height: 52px;
  border-radius: 3px;
  transition: border-color 0.2s;
}
.trc-input::placeholder { color: #6b6256; opacity: 1; }
.trc-input:focus { outline: none; border-color: var(--orange); }
.trc-btn {
  flex: none;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 26px;
  height: 52px;
  border-radius: 3px;
  transition: background 0.2s;
  white-space: nowrap;
}
.trc-btn:hover { background: #e05500; }
.trc-samples-label {
  font-family: 'Space Mono', var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c8378;
  margin: 22px 0 12px;
}
.trc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.trc-chip {
  cursor: pointer;
  border: 1px solid #3a352e;
  background: transparent;
  color: #c9c1b5;
  font-family: 'Space Mono', var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 3px;
  transition: all 0.2s;
}
.trc-chip.active, .trc-chip:hover { border-color: var(--orange); background: var(--orange); color: #fff; }
.trc-status {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  min-height: 28px;
}
.trc-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.trc-status.verified { color: #9fd9a0; }
.trc-status.verified .trc-status-dot { background: #9fd9a0; }
.trc-status.not-found { color: #ff7a52; }
.trc-status.not-found .trc-status-dot { background: #ff7a52; }

/* Passport */
.trc-passport { border-left: 1px solid #2a2620; padding-left: 44px; }
.trc-passport-label {
  font-family: 'Space Mono', var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8c8378;
  margin-bottom: 14px;
}
.trc-tree-num { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.trc-tree-no { font-family: 'Space Mono', var(--font-mono); font-size: 18px; color: var(--orange); }
.trc-tree-val {
  font-family: 'Archivo Expanded', var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
@media (max-width: 860px) { .trc-tree-val { font-size: 48px; } }
.trc-tree-loc { font-size: 16px; color: #FAF1E0; margin-bottom: 24px; }
.trc-passport-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.trc-field-label {
  font-family: 'Space Mono', var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8c8378;
  margin-bottom: 4px;
}
.trc-field-val { font-size: 14px; }
.trc-field-val.mono { font-family: 'Space Mono', var(--font-mono); letter-spacing: 0.02em; }

/* Teaser CTA */
.trc-teaser-cta { margin-top: 32px; display: flex; justify-content: flex-end; }
.trc-link {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--orange);
  transition: color 0.2s;
}
.trc-link:hover { color: var(--orange); }

/* Journey (full traceability page) */
.trc-journey { margin-top: 64px; }
.trc-journey-kicker {
  font-family: 'Space Mono', var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.trc-journey-kicker::before { content: "// "; }
.trc-journey-h3 {
  font-family: 'Archivo Expanded', var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
}
.trc-steps { position: relative; }
.trc-connector {
  position: absolute;
  left: 27px; top: 24px; bottom: 54px;
  width: 2px;
  background: rgba(26,26,26,0.14);
  border-radius: 2px;
}
.trc-beam {
  position: absolute;
  left: 0; top: 0; width: 100%;
  border-radius: 2px;
  background: var(--orange);
  height: 0;
  transition: height 0.8s cubic-bezier(.4,0,.2,1);
}
.trc-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
  position: relative;
}
.trc-step:last-child { margin-bottom: 0; }
.trc-step-node-wrap { display: flex; justify-content: center; }
.trc-step-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-family: 'Space Mono', var(--font-mono);
  font-size: 13px; font-weight: 700;
  border: 2px solid rgba(26,26,26,0.18);
  position: relative; z-index: 2;
  background: #FAF1E0; color: #1A1A1A;
  box-shadow: 0 0 0 0 rgba(255,95,0,0);
  transition: background 0.45s ease, color 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}
.trc-step-node.lit {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 5px rgba(255,95,0,0.18);
}
.trc-step-card {
  background: #fff;
  border: 1px solid rgba(26,26,26,0.10);
  border-radius: 5px;
  padding: 22px 26px;
}
.trc-step-card.inverted {
  background: #17140F;
  color: #FAF1E0;
  border-color: #17140F;
  padding: 24px 28px;
}
.trc-card-head { display: flex; align-items: center; gap: 14px; }
.trc-card-icon {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 4px;
  background: #FAF1E0;
}
.trc-step-card.inverted .trc-card-icon { background: #26221b; }
.trc-card-kicker {
  font-family: 'Space Mono', var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--orange);
}
.trc-card-title {
  font-weight: 700; font-size: 20px;
  text-transform: uppercase; letter-spacing: 0.01em;
  margin: 3px 0 0; line-height: 1.2;
}
.trc-card-body {
  font-size: 14.5px; line-height: 1.55;
  color: #5a544b; margin: 14px 0 16px;
}
.trc-step-card.inverted .trc-card-body { color: #b4aca0; }
.trc-card-fields {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  border-top: 1px solid rgba(26,26,26,0.08); padding-top: 14px;
}
.trc-step-card.inverted .trc-card-fields { border-top-color: #2a2620; }
.trc-card-field-label {
  font-family: 'Space Mono', var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #8c8378; margin-right: 8px;
}
.trc-card-field-val { font-size: 14px; font-weight: 600; }

/* Closing */
.trc-closing {
  margin-top: 56px;
  border-top: 2px solid #1A1A1A; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: baseline; justify-content: space-between;
}
.trc-closing-statement {
  font-family: 'Archivo Expanded', var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 26px);
  text-transform: uppercase; letter-spacing: -0.01em;
  max-width: 640px;
}
.trc-closing-caption {
  font-family: 'Space Mono', var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #6b6256;
}

/* Page header bar (traceability.html) */
.trc-page-bar {
  background: var(--charcoal);
  color: var(--naked);
  padding: 18px 0;
  font-family: 'Space Mono', var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.trc-page-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.trc-back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: #8c8378; text-decoration: none;
  transition: color 0.2s;
}
.trc-back-link:hover { color: var(--naked); }
.trc-page-title { color: var(--orange); }
