/* =====================================================
   WAS Company — Industrial Editorial Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,300&family=Barlow+Condensed:wght@600;700&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  /* Surface — Warm Concrete */
  --bg:           #EDEAE0;
  --bg-card:      #E5E1D6;
  --bg-subtle:    #DAD6CB;
  --bg-dark:      #1C1C1A;
  --bg-deeper:    #131311;

  /* Borders */
  --border:       #C2BDB0;
  --border-strong:#9A9389;
  --border-dark:  #2E2E2A;

  /* Text */
  --text:         #1C1C1A;
  --text-muted:   #6A6358;
  --text-faint:   #9A9389;
  --text-inverse: #EDEAE0;
  --text-muted-inverse: rgba(237, 234, 224, 0.58);

  /* Oxide Orange — primary accent */
  --accent:       #C4520A;
  --accent-dim:   rgba(196, 82, 10, 0.09);
  --accent-hover: #A04308;

  /* Coral Orange — secondary accent (translucent dark-surface buttons) */
  --accent-secondary:       #f75b2b;
  --accent-secondary-dim:   rgba(247, 91, 43, 0.16);
  --accent-secondary-hover: #D95026;

  /* Petroleum Blue — secondary */
  --petroleum:    #1C3A52;

  /* Structural White */
  --white:        #F5F2E8;

  /* Status (admin only) */
  --status-new:       #4a90d9;
  --status-contacted: #e6a817;
  --status-qualified: #5cb85c;
  --status-closed:    #888888;
}

/* ===== ADMIN DARK OVERRIDE ===== */
body.admin-body {
  --bg:           #0d0d0b;
  --bg-card:      #141412;
  --bg-subtle:    #1A1A18;
  --border:       #252522;
  --border-strong:#3A3A36;
  --text:         #E8E4D8;
  --text-muted:   rgba(232, 228, 216, 0.55);
  --text-faint:   rgba(232, 228, 216, 0.32);
  --text-inverse: #E8E4D8;
  --text-muted-inverse: rgba(232, 228, 216, 0.55);
  --accent:       #C4520A;
  --accent-dim:   rgba(196, 82, 10, 0.13);
  --accent-hover: #A04308;
  --accent-secondary:       #f75b2b;
  --accent-secondary-dim:   rgba(247, 91, 43, 0.16);
  --accent-secondary-hover: #D95026;
  --white:        #ffffff;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: opacity 0.18s ease;
}
body.content-loading { opacity: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
section { padding: 120px 0; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.eyebrow {
  font-family: 'Barlow', sans-serif;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  margin-bottom: 24px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.pull-quote {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  border-left: 3px solid var(--accent);
  padding-left: 28px;
  margin-bottom: 28px;
  color: var(--text);
}
p { color: var(--text-muted); line-height: 1.7; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease;
  padding: 0 32px;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(28, 28, 26, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-dark);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  color: var(--white);
}
.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
  /* Dark SVG → white for dark nav / hero overlay */
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  gap: 40px;
  padding: 0;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237, 234, 224, 0.55);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }

/* ── Dropdown (Productos submenu) ── */
.nav-has-dropdown {
  position: relative;
}
/* Invisible bridge — keeps hover/focus path to the panel (Safari-safe) */
.nav-has-dropdown::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 92vw);
  top: 100%;
  height: 14px;
}
.nav-has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 7px;
  opacity: 0.6;
  vertical-align: middle;
}
.nav-dropdown {
  display: block;
  position: absolute;
  top: calc(100% + 10px);
  left: -16px;
  min-width: 160px;
  background: rgba(28, 28, 26, 0.97);
  border: 1px solid var(--border-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px 0;
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
}
.nav-has-dropdown.is-open .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
/* No-JS fallback before nav.js runs */
html:not(.nav-enhanced) .nav-has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown li {
  list-style: none;
}
.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237, 234, 224, 0.55);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-dropdown a:hover,
.nav-dropdown a.active {
  color: var(--white);
  background: var(--accent-dim);
}

/* ── Mega menu (Productos — desktop only) ── */
.nav-mega {
  display: flex;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 600px;
  max-width: 92vw;
  background: rgba(28, 28, 26, 0.97);
  border: 1px solid var(--border-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
}
.nav-has-dropdown.is-open .nav-mega,
.nav-has-dropdown:focus-within .nav-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
html:not(.nav-enhanced) .nav-has-dropdown:hover .nav-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-mega-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--text-inverse);
  transition: background 0.2s;
}
.nav-mega-col + .nav-mega-col {
  border-left: 1px solid var(--border-dark);
}
.nav-mega-col:hover,
.nav-mega-col.is-active {
  background: var(--accent-dim);
}
.nav-mega-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-deeper);
  flex-shrink: 0;
}
.nav-mega-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-mega-col:hover .nav-mega-media img {
  transform: scale(1.03);
}
.nav-mega-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.nav-mega-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 12px;
}
.nav-mega-code {
  font-family: 'Barlow', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  white-space: nowrap;
}
.nav-mega-sep {
  display: inline-block;
  width: 1px;
  height: 9px;
  background: var(--border-dark);
  margin: 0 10px;
  flex-shrink: 0;
}
.nav-mega-cat {
  font-family: 'Barlow', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted-inverse);
  line-height: 1.3;
}
.nav-mega-logo {
  display: block;
  width: auto;
  height: 28px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.nav-mega-uses {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  flex: 1;
}
.nav-mega-uses li {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted-inverse);
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
}
.nav-mega-uses li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 1px;
  background: var(--accent);
}
.nav-mega-cta {
  margin-top: auto;
  align-self: flex-start;
}
.nav-mega-col:hover .nav-mega-cta,
.nav-mega-col.is-active .nav-mega-cta {
  opacity: 1;
}

/* ── Mobile overlay: Productos label + child links ── */
.nav-overlay-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 24px 0 8px;
  width: 100%;
  display: block;
  border-top: 1px solid var(--border-dark);
  margin-top: 4px;
}
.nav-overlay-child {
  font-size: clamp(2rem, 5.5vw, 3.8rem) !important;
  padding-left: 20px !important;
  color: rgba(237, 234, 224, 0.7) !important;
  border-top: none !important;
}
.nav-overlay-child.active,
.nav-overlay-child:hover {
  color: var(--white) !important;
}

/* Ghost button variant (dark backgrounds) */
.btn-ghost-dark {
  background: transparent;
  border: 1.5px solid rgba(237, 234, 224, 0.28);
  color: rgba(237, 234, 224, 0.75);
  padding: 15px 36px;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost-dark:hover {
  border-color: rgba(237, 234, 224, 0.65);
  color: var(--text-inverse);
  background: rgba(237, 234, 224, 0.06);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile overlay navigation */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 110;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 48px;
  gap: 0;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--text-inverse);
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  border-bottom: 1px solid var(--border-dark);
  width: 100%;
  padding: 16px 0;
}
.nav-overlay a:first-of-type { border-top: 1px solid var(--border-dark); }
.nav-overlay a:hover { color: var(--accent); }
.nav-overlay-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: rgba(237, 234, 224, 0.4);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-overlay-close:hover { color: var(--text-inverse); }

/* ===== BUTTONS ===== */
/*
 * Resting state is the primary design statement — solid oxide-orange fill at rest.
 * Hover activates/deepens the button; it does not reveal it.
 * Active state simulates physical depression via translateY + inset shadow.
 */
.btn {
  display: inline-block;
  background: var(--accent);
  border: 1.5px solid var(--accent);
  color: var(--white);
  padding: 15px 36px;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.18s ease,
    box-shadow 0.22s ease,
    transform 0.12s ease;
}
.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.22);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.32);
  transition-duration: 0.06s;
}
.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.btn-sm { padding: 10px 24px; font-size: 0.7rem; }

/* Dark-surface variant — full accent border + subtle tinted fill at rest.
   The button has material presence at rest; hover deepens into solid fill. */
.btn-on-dark {
  background: var(--accent-secondary-dim);
  border-color: var(--accent-secondary);
  color: var(--text-inverse);
}
.btn-on-dark:hover {
  background: var(--accent-secondary-hover);
  border-color: var(--accent-secondary-hover);
  color: var(--white);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.22);
}
.btn-on-dark:focus-visible {
  outline: 2px solid var(--text-inverse);
  outline-offset: 3px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-deeper);
  background-image: url('https://placehold.co/1400x900/131311/191917?text=+');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(28, 28, 26, 0.82) 0%, rgba(28, 28, 26, 0.58) 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.065;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 32px;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
}

/* Top descriptor bar */
.hero-descriptor-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 0 0;
}
.hero-index-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(237, 234, 224, 0.45);
}
.hero-sep {
  color: rgba(237, 234, 224, 0.2);
}
.hero-descriptor-text {
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237, 234, 224, 0.3);
}
.hero-descriptor-right {
  margin-left: auto;
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237, 234, 224, 0.28);
}

/* Main headline */
.hero-headline-area {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0 0;
}
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(4.5rem, 9vw, 11rem);
  font-weight: 700;
  max-width: 1000px;
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--text-inverse);
  text-transform: uppercase;
}

/* Architectural divider */
.hero-divider {
  width: 100%;
  height: 1px;
  background: rgba(237, 234, 224, 0.12);
  margin-top: 40px;
}

/* Bottom info grid */
.hero-bottom {
  display: grid;
  grid-template-columns: 160px 1fr 220px;
  gap: 40px;
  align-items: start;
  padding: 40px 0 60px;
}
.hero-location {
  padding-top: 4px;
}
.hero-location span {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 234, 224, 0.38);
  display: block;
  line-height: 1.8;
}
.hero-action {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-sub {
  font-size: 0.95rem;
  color: rgba(237, 234, 224, 0.62);
  max-width: 480px;
  line-height: 1.72;
}
.hero-counter { text-align: right; }
.counter-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.counter-label {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(237, 234, 224, 0.38);
  margin-top: 10px;
  line-height: 1.65;
}

/* ===== MARQUEE ===== */
.marquee-section {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  overflow: hidden;
}
.marquee-inner { padding: 18px 0; overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 16px;
}
.marquee-dot { color: var(--accent); margin: 0 10px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== CARDS ===== */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 0.3s ease;
}
.card:hover { border-color: var(--accent); }
.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-subtle);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 28px; }
.card-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; line-height: 1.35; }
.card p { font-size: 0.875rem; line-height: 1.7; }

/* ===== GRID LAYOUTS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* ===== PRESS CARDS ===== */
.press-card {
  background: var(--bg);
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: none;
}
.press-card-img {
  width: 100%;
  aspect-ratio: 16/7;
  background: var(--bg-subtle);
}
.press-card-body { padding: 28px 0 0; }
.press-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 0;
  border: none;
  border-radius: 0;
}
.press-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.press-card p { font-size: 0.875rem; margin-bottom: 20px; line-height: 1.65; }
.link-arrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: opacity 0.2s;
}
.link-arrow:hover { opacity: 0.65; }

/* ===== VIDEO PLACEHOLDER ===== */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.video-placeholder:hover { border-color: var(--accent); }

/* Darkening overlay on top of thumbnail */
.video-placeholder.has-thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(19, 19, 17, 0.48);
  transition: background 0.3s;
}
.video-placeholder.has-thumbnail:hover::before {
  background: rgba(19, 19, 17, 0.32);
}

.video-play-icon {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(237, 234, 224, 0.35);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(19, 19, 17, 0.28);
}
.video-placeholder:hover .video-play-icon {
  border-color: rgba(237, 234, 224, 0.85);
  background: rgba(19, 19, 17, 0.52);
  transform: scale(1.08);
}
.video-play-icon::after {
  content: '';
  border-left: 16px solid rgba(237, 234, 224, 0.9);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 5px;
}

/* Iframe playing state */
.video-placeholder.playing {
  cursor: default;
  display: block;
  padding: 0;
  background: #000;
  border-color: transparent;
}
.video-placeholder.playing::before { display: none; }
.video-placeholder.playing .video-play-icon { display: none; }
.video-placeholder.playing iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  display: block;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-deeper);
  background-image: url('https://placehold.co/1400x500/131311/191917?text=+');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 26, 0.87);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section .eyebrow { color: rgba(237, 234, 224, 0.38); }
.cta-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-inverse);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section > .container > p {
  max-width: 480px;
  margin: 0 auto 40px;
  color: var(--text-muted-inverse);
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border-dark);
  padding: 72px 0 40px;
  background: var(--bg-dark);
}
footer p { color: var(--text-muted-inverse); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 54px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted-inverse);
  max-width: 280px;
  line-height: 1.7;
}
.footer-links h4 {
  font-family: 'Barlow', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(237, 234, 224, 0.28);
  margin-bottom: 20px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted-inverse);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-inverse); }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(237, 234, 224, 0.28); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(237, 234, 224, 0.28);
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--text-inverse); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-error { display: none; color: #e05252; font-size: 0.8rem; margin-top: 6px; }
.form-error.show { display: block; }
.form-success { display: none; text-align: center; padding: 60px 24px; }
.form-success.show { display: block; }
.form-success h3 { font-size: 2.2rem; margin-bottom: 12px; }
.form-success p { font-size: 0.95rem; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-deeper);
  z-index: 0;
}
/* Same gradient scrim as `.hero-bg::after` / `.tph-bg::after` (About is the only `.page-hero` user). */
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(19, 19, 17, 0.97) 0%, rgba(19, 19, 17, 0.88) 52%, rgba(19, 19, 17, 0.52) 100%);
}
.page-hero-content { position: relative; z-index: 1; padding-top: 120px; }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 6.5vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  max-width: 860px;
  margin-bottom: 20px;
  color: var(--text-inverse);
}
.page-hero p { color: var(--text-muted-inverse); }
.page-hero .eyebrow { color: rgba(237, 234, 224, 0.38); }

/* ===== NUMBERED STEPS ===== */
.step-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.22;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

/* ===== TEAM CARDS ===== */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 32px;
  text-align: center;
  transition: border-color 0.3s;
}
.team-card:hover { border-color: var(--accent); }
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 0;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-card .team-title {
  font-size: 0.67rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.team-card p { font-size: 0.875rem; margin-top: 12px; }

/* ===== VALUES ===== */
.value-block { padding: 40px 0; border-bottom: 1px solid var(--border); }
.value-block:first-child { padding-top: 0; }
.value-block:last-child { border-bottom: none; }
.value-block h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.value-block p { max-width: 560px; }

/* ===== ADMIN — LOGIN ===== */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px;
  width: 100%;
  max-width: 420px;
}
.login-card h1 { font-size: 2.2rem; margin-bottom: 8px; }
.login-card > p { margin-bottom: 32px; font-size: 0.9rem; }
.login-error {
  background: rgba(224, 82, 82, 0.1);
  border: 1px solid rgba(224, 82, 82, 0.3);
  color: #e05252;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}
.login-error.show { display: block; }

/* ===== ADMIN — SHELL ===== */
.admin-topbar {
  height: 64px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-right: auto;
}
.admin-badge {
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 2px;
  padding: 4px 12px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.admin-edit-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.admin-edit-site:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.admin-signout {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}
.admin-signout:hover { border-color: var(--border-strong); color: var(--text); }
.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  background: var(--bg-card);
}
.admin-tab {
  padding: 16px 22px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}
.admin-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.admin-content { padding: 32px; max-width: 1200px; margin: 0 auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== ADMIN — STATS ===== */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
}
.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== ADMIN — ANALYTICS ===== */
.analytics-range-bar { margin-bottom: 24px; }
.analytics-block-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.analytics-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
}
.analytics-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.analytics-block-wide { grid-column: 1 / -1; }
.analytics-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.analytics-rank-row { margin-bottom: 12px; }
.analytics-rank-row:last-child { margin-bottom: 0; }
.analytics-rank-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.analytics-rank-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.analytics-rank-count {
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}
.analytics-rank-bar {
  height: 4px;
  background: var(--bg-subtle);
  border-radius: 2px;
  overflow: hidden;
}
.analytics-rank-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  min-width: 2px;
}
.analytics-daily-chart-wrap {
  margin-bottom: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
}
.analytics-daily-chart { min-height: 120px; }
.analytics-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  padding-top: 8px;
}
.analytics-bar-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.analytics-bar {
  width: 100%;
  max-width: 28px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  margin-top: auto;
}
.analytics-bar-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-top: 6px;
  transform: rotate(-35deg);
  white-space: nowrap;
}

/* ===== ADMIN — FILTER BAR ===== */
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 18px;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Barlow', sans-serif;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--accent); color: var(--text); background: var(--accent-dim); }
.search-input {
  margin-left: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: 'Barlow', sans-serif;
  outline: none;
  width: 220px;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }

/* ===== ADMIN — TABLE ===== */
.leads-table-wrap { overflow-x: auto; }
.leads-table { width: 100%; border-collapse: collapse; }
.leads-table th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.leads-table td { padding: 15px 16px; border-bottom: 1px solid var(--border); font-size: 0.875rem; vertical-align: middle; }
.leads-table tr:hover td { background: var(--bg-subtle); }
.leads-table .empty-row td { text-align: center; color: var(--text-muted); padding: 40px; font-size: 0.9rem; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 2px; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em; text-transform: capitalize; }
.status-new       { background: rgba(74,144,217,0.12);  color: #4a90d9; }
.status-contacted { background: rgba(230,168,23,0.12);  color: #e6a817; }
.status-qualified { background: rgba(92,184,92,0.12);   color: #5cb85c; }
.status-closed    { background: rgba(136,136,136,0.12); color: #888; }
.view-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.view-btn:hover { border-color: var(--accent); color: var(--text); }

/* ===== ADMIN — SIDE PANEL ===== */
.side-panel {
  position: fixed;
  top: 0; right: 0;
  width: 440px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.side-panel.open { transform: translateX(0); }
.side-panel-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 199; display: none; }
.side-panel-overlay.open { display: block; }
.side-panel-header { padding: 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.side-panel-header h3 { font-size: 1.15rem; }
.side-panel-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; transition: color 0.2s; line-height: 1; }
.side-panel-close:hover { color: var(--text); }
.side-panel-body { padding: 24px; overflow-y: auto; flex: 1; }
.sp-field { margin-bottom: 22px; }
.sp-field label { display: block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.sp-field p { font-size: 0.9rem; color: var(--text); line-height: 1.65; }
.sp-field .sp-message { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; background: var(--bg-subtle); border-radius: 2px; padding: 14px; border: 1px solid var(--border); }
.side-panel-actions { padding: 20px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; flex-shrink: 0; }
.btn-save {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 11px 24px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-save:hover { opacity: 0.85; }
.btn-save:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== ADMIN — CONTENT MANAGER ===== */
.content-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.content-keys-list { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.content-keys-title { padding: 14px 16px; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.content-key-item { padding: 13px 16px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background 0.15s; display: flex; flex-direction: column; gap: 2px; }
.content-key-item:last-child { border-bottom: none; }
.content-key-item:hover { background: var(--bg-subtle); }
.content-key-item.active { background: var(--accent-dim); border-left: 2px solid var(--accent); }
.key-name { font-size: 0.82rem; font-weight: 500; color: var(--text); }
.key-type { font-size: 0.68rem; color: var(--text-muted); }
.content-editor { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 28px; }
.content-editor-placeholder { padding: 60px 28px; text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; }
.content-editor-placeholder p { font-size: 0.9rem; color: var(--text-muted); }
.content-editor h3 { font-size: 1.15rem; margin-bottom: 4px; }
.content-editor .key-badge { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 20px; font-family: monospace; background: var(--bg-subtle); padding: 4px 8px; border-radius: 2px; display: inline-block; }
.new-key-form { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 4px; padding: 20px; margin-top: 24px; }
.new-key-form h4 { font-family: 'Barlow', sans-serif; font-size: 0.7rem; font-weight: 600; color: var(--text-muted); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.1em; }
.new-key-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }

/* ===== ADMIN — ASSETS ===== */
.upload-zone {
  border: 1px dashed var(--border-strong);
  border-radius: 4px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 24px;
  position: relative;
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-dim); }
.upload-zone.drag-over { border-color: var(--accent); background: var(--accent-dim); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone p { font-size: 0.9rem; color: var(--text-muted); margin-top: 12px; }
.upload-zone .upload-icon { font-size: 2rem; opacity: 0.4; }
.assets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.asset-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; transition: border-color 0.2s; }
.asset-card:hover { border-color: var(--accent); }
.asset-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-subtle); display: block; }
.asset-info { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.asset-name { font-size: 0.72rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.asset-copy { background: none; border: none; color: var(--accent); font-size: 0.72rem; cursor: pointer; white-space: nowrap; font-family: 'Barlow', sans-serif; }
.asset-copy:hover { text-decoration: underline; }
.assets-empty { text-align: center; padding: 40px; color: var(--text-muted); font-size: 0.9rem; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 14px 22px;
  font-size: 0.875rem;
  z-index: 9999;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(92,184,92,0.4); color: #5cb85c; }
.toast.error   { border-color: rgba(224,82,82,0.4); color: #e05252; }

/* ===== PUBLIC INLINE EDITOR ===== */
.designer-toolbar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 240;
  display: none;
  flex-wrap: wrap;
  max-width: calc(100vw - 24px);
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: rgba(19, 19, 17, 0.94);
  border: 1px solid var(--border-dark);
  padding: 10px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.designer-toolbar-bg-actions {
  display: none;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--border-dark);
}
body.edit-mode .designer-toolbar-bg-actions {
  display: inline-flex;
}
.designer-toolbar-bg-label {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237, 234, 224, 0.45);
  white-space: nowrap;
}
.designer-toolbar.show { display: inline-flex; }
.designer-toolbar-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237, 234, 224, 0.72);
  padding: 0 6px;
  white-space: nowrap;
}
.designer-toolbar-btn {
  border: 1px solid var(--border-dark);
  background: transparent;
  color: rgba(237, 234, 224, 0.72);
  padding: 8px 10px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}
.designer-toolbar-btn:hover {
  border-color: rgba(237, 234, 224, 0.38);
  color: rgba(237, 234, 224, 0.92);
}
.designer-toolbar-btn.primary {
  border-color: var(--accent);
  color: var(--accent);
}
.designer-toolbar-btn.primary:hover {
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent);
}
.designer-toolbar-btn.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.designer-toolbar-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.designer-toolbar-accent {
  display: none;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--border-dark);
}
body.edit-mode .designer-toolbar-accent {
  display: inline-flex;
}
.designer-accent-swatch {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(237, 234, 224, 0.35);
  background: var(--accent);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.designer-accent-swatch:hover {
  border-color: rgba(237, 234, 224, 0.65);
}
.designer-accent-swatch--secondary {
  background: var(--accent-secondary);
}
.designer-accent-swatch input[type="color"] {
  opacity: 0;
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
}

body.edit-mode [data-content-key]:not(img):not(.counter):not(.cms-bg-slot):not(.press-pdf-link) {
  outline: 1px dashed rgba(196, 82, 10, 0.55);
  outline-offset: 6px;
}
body.edit-mode [data-content-key][contenteditable="true"] {
  cursor: text;
}
body.edit-mode img[data-content-key] {
  cursor: pointer;
  outline: 1px dashed rgba(196, 82, 10, 0.55);
  outline-offset: 8px;
}
body.edit-mode .partner-entry-logo[data-content-key] {
  cursor: pointer;
  outline: 1px dashed rgba(196, 82, 10, 0.55);
  outline-offset: 6px;
}
body.edit-mode .press-pdf-link[data-content-key] {
  cursor: pointer;
  outline: 1px dashed rgba(196, 82, 10, 0.55);
  outline-offset: 6px;
}
body.edit-mode .prod-spec-card [data-content-key] {
  cursor: text;
  outline: 1px dashed rgba(196, 82, 10, 0.45);
  outline-offset: 3px;
}
body.edit-mode .press-pdf-link--empty[data-content-key] {
  opacity: 0.72;
}
body.edit-mode .counter[data-content-key] {
  cursor: text;
  outline: 1px dashed rgba(196, 82, 10, 0.55);
  outline-offset: 6px;
}
body.edit-mode [data-content-key]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
body.edit-mode [data-content-key][data-dirty="true"] {
  box-shadow: 0 0 0 2px rgba(196, 82, 10, 0.16);
}

/* ===== HERO — PERFORATED FORMWORK MOTIF ===== */
.hero-perf {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: radial-gradient(circle, rgba(237,234,224,1) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 60%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 60%);
}

/* ===== ANIMATED HORIZONTAL LINE ===== */
.hline {
  flex: 1;
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}
.hline.grown { transform: scaleX(1); }

/* ===== EYEBROW ROW (section headers with line) ===== */
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 48px;
}
.eyebrow-row .eyebrow { margin: 0; white-space: nowrap; }

/* ===== SPEC BAND (material metrics) ===== */
.spec-band {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.spec-item {
  padding: 52px 48px;
  border-right: 1px solid var(--border);
}
.spec-item:first-child { padding-left: 0; }
.spec-item:last-child { border-right: none; }
.spec-value {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 3.8vw, 4.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.spec-rule {
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 16px;
}
.spec-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
  position: relative;
  z-index: 2;
  overflow: visible;
  padding: 120px 0 0;
}

.pull-quote-xl {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 5.6rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text);
  max-width: 980px;
  margin-bottom: 0;
  border-left: none;
  padding-left: 0;
}
.problem-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  min-height: 620px;
  margin-top: 56px;
  border-top: 1px solid var(--border);
  overflow: visible;
}
.problem-split::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 60%;
  width: 1px;
  background: var(--border);
  opacity: 0.75;
  pointer-events: none;
}
.problem-split-img {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  width: clamp(780px, 96vw, 1120px);
  min-height: 620px;
  margin: 0 0 -185px -16%;
  overflow: visible;
  transform: translateY(8%);
}
.problem-split-img img {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  min-height: 0;
  filter: drop-shadow(0 34px 54px rgba(28, 28, 26, 0.18));
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.problem-split-img:hover img { transform: scale(1.03); }
.problem-split-text {
  position: relative;
  z-index: 3;
  max-width: 420px;
  margin-left: auto;
  padding: 88px 0 88px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
}

/* ===== SOLUTION SECTION ===== */
.solution-section {
  position: relative;
  z-index: 1;
  padding: 170px 0 120px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.solution-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 60px;
}
.solution-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

/* ===== PRODUCT EDITORIAL RAIL ===== */
/*
 * Modular alternating layout — each .prod-module is a self-contained product entry.
 * Add modules freely. Toggle .prod-module--reverse to maintain rhythmic alternation.
 * The system scales to 2, 3, 4+ products without layout changes.
 */
.products-section { padding-bottom: 0; }

.prod-rail {
  border-top: 1px solid var(--border);
}

/* ── Module: base layout — image left / content right ── */
.prod-module {
  display: grid;
  grid-template-columns: 55fr 45fr;
  border-bottom: 1px solid var(--border);
  min-height: 680px;
}

/* Author `display: grid` wins over the UA `[hidden]` rule — keep toggled-off modules out of layout. */
.prod-module[hidden] {
  display: none !important;
}

/* ── Module: alternating layout — image right / content left ── */
.prod-module--reverse {
  grid-template-columns: 45fr 55fr;
}
.prod-module--reverse .prod-module-media { order: 2; }
.prod-module--reverse .prod-module-content {
  order: 1;
  border-left: none;
  border-right: 1px solid var(--border);
}

/* ── Media block (structural image anchor) ── */
.prod-module-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-subtle);
}
.prod-module-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
body:not([data-was-motion]) .prod-module-media:hover img {
  transform: scale(1.022);
}

/* ── Content block ── */
.prod-module-content {
  padding: 72px 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}

/* Content with spec table: top-align so specs anchor to bottom naturally */
.prod-module-content--with-specs {
  justify-content: flex-start;
  padding-top: 68px;
  padding-bottom: 68px;
}

/* ── Product metadata row (code · category) ── */
.prod-module-meta {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
}
.prod-module-code {
  font-family: 'Barlow', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.prod-module-sep {
  display: inline-block;
  width: 1px;
  height: 10px;
  background: var(--border-strong);
  margin: 0 14px;
  flex-shrink: 0;
}
.prod-module-cat {
  font-family: 'Barlow', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Partner / brand mark above the product headline */
.prod-module-brand-logo {
  display: block;
  width: auto;
  height: clamp(2rem, 3.2vw, 2.65rem);
  max-width: min(240px, 85%);
  object-fit: contain;
  object-position: left center;
  margin-bottom: 22px;
}

/* ── Product title (integrated in content column — not floating over image) ── */
.prod-module-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.6rem, 4.2vw, 5.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.018em;
  line-height: 0.93;
  color: var(--text);
  margin-bottom: 28px;
}

/* ── Description ── */
.prod-module-desc {
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 44ch;
  margin-bottom: 36px;
}

/* ── CTA ── */
.prod-module-cta {
  display: inline-block;
  margin-bottom: 0;
}
/* When spec table follows the CTA, add spacing before the table */
.prod-module-content--with-specs .prod-module-cta {
  margin-bottom: 44px;
}

/* ── Spec table (reusable across the system) ── */
.prod-spec-table {
  border-top: 1px solid var(--border);
  padding-top: 0;
  display: flex;
  flex-direction: column;
}
.prod-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.prod-spec-row:last-child { border-bottom: none; }
.prod-spec-table dt {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.prod-spec-table dd {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: right;
  margin: 0;
}

/* ===== MATERIAL STATEMENT STRIP ===== */
.material-strip {
  position: relative;
  background: var(--bg-deeper);
  padding: 88px 0;
  overflow: hidden;
}
.material-strip-perf {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  opacity: 0.055;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(237,234,224,1) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}
.material-strip-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.2rem, 7vw, 8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--text-inverse);
  max-width: 900px;
}
.material-strip .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.material-strip .reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== PARTNERS SECTION ===== */
.partners-section {
  position: relative;
  overflow: hidden;
  padding: 132px 0 144px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(194, 189, 176, 0.28) 1px, transparent 1px) 0 0 / 18.75% 100%,
    linear-gradient(180deg, rgba(194, 189, 176, 0.22) 1px, transparent 1px) 0 0 / 100% 148px,
    linear-gradient(135deg, var(--bg) 0%, var(--bg-card) 100%);
}
.partners-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 28%),
    linear-gradient(90deg, transparent 0 64%, color-mix(in srgb, var(--accent) 3.5%, transparent) 64% 64.25%, transparent 64.25%);
}
.partners-section > .container {
  position: relative;
  z-index: 1;
}
.partners-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.68fr);
  gap: clamp(56px, 8vw, 112px);
  align-items: start;
}
.partners-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 10px;
}
.partners-kicker {
  width: fit-content;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.partners-left .section-heading {
  max-width: 340px;
  margin-bottom: 0;
  color: var(--text);
}
.partners-left p {
  max-width: 390px;
  margin-top: 8px;
}
.partners-ledger {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-ledger div {
  display: grid;
  grid-template-columns: minmax(84px, auto) 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
}
.partners-ledger div + div { border-top: 1px solid rgba(194, 189, 176, 0.72); }
.partners-ledger span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}
.partners-ledger small {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--text-faint);
}
.partners-system {
  position: relative;
  min-width: 0;
  border-top: 1px solid var(--border-strong);
}
.partners-system::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(54px, 8vw, 88px);
  width: 1px;
  background: rgba(194, 189, 176, 0.64);
  pointer-events: none;
}
.partners-system-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 22px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-faint);
}
.partners-system-top span:first-child { color: var(--text-muted); }
.partner-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border-top: 1px solid var(--border);
}
.partner-entry {
  position: relative;
  min-height: 184px;
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background 0.28s ease, color 0.28s ease, opacity 0.28s ease;
}
.partner-entry::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: rgba(194, 189, 176, 0.72);
}
.partner-entry::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 42px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.28s ease, width 0.28s ease;
}
.partner-entry:hover {
  background: rgba(245, 242, 232, 0.34);
}
.partner-entry:hover::after {
  width: 76px;
  opacity: 0.82;
}
.partner-entry--primary {
  grid-column: span 2;
  min-height: 252px;
  padding: 30px 34px 34px;
  background: linear-gradient(135deg, rgba(245, 242, 232, 0.24), rgba(218, 214, 203, 0.1));
}
.partner-entry--quiet { opacity: 0.78; }
.partner-entry-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-faint);
}
.partner-entry-meta span:first-child {
  color: var(--accent);
}
.partner-entry-logo {
  width: min(100%, 260px);
  min-height: 70px;
  margin: 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: rgba(28, 28, 26, 0.62);
  opacity: 0.82;
  transition: color 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}
.partner-entry--primary .partner-entry-logo {
  width: min(100%, 390px);
  min-height: 96px;
  color: rgba(28, 28, 26, 0.74);
  opacity: 0.9;
}
.partner-entry-logo.has-custom-logo {
  background-color: currentColor;
  -webkit-mask-image: var(--partner-logo-url);
  mask-image: var(--partner-logo-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.partner-entry-logo.has-custom-logo .partner-logo-symbol { opacity: 0; }
.partner-logo-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: currentColor;
  font-size: 2.45rem;
  line-height: 1;
}
.partner-entry--primary .partner-logo-symbol {
  width: 72px;
  height: 72px;
  font-size: 3.75rem;
}
.partner-entry:hover .partner-entry-logo {
  color: var(--text);
  opacity: 1;
  transform: translateY(-2px);
}

/* ===== STRATEGIC ALLIES (product pages) ===== */
.prod-allies-section {
  padding: 120px 0;
}
.prod-allies-section .section-heading {
  margin-top: 56px;
  margin-bottom: 52px;
  max-width: 720px;
}
.prod-allies-matrix {
  grid-template-columns: repeat(3, 1fr);
}
.prod-ally-entry {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
}
.prod-ally-entry .partner-entry-logo {
  min-height: 50px;
  width: min(50%, 130px);
  margin: 0;
  justify-content: center;
}
.prod-ally-entry .partner-entry-logo.has-custom-logo {
  -webkit-mask-position: center;
  mask-position: center;
}
.prod-ally-entry .partner-logo-symbol {
  font-size: 0.36rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--text-faint);
}

/* ===== PRESS SECTION ===== */
.press-section {
  padding: 120px 0 0;
  border-top: 1px solid var(--border);
}
.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}
.press-article {
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.press-article:last-child { border-right: none; }
.press-article-img {
  width: 100%;
  aspect-ratio: 16/7;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.press-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.press-article-body {
  padding: 36px 40px 52px;
}
.press-article-body .press-tag { margin-bottom: 16px; }
.press-article-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.press-article-body p { font-size: 0.875rem; margin-bottom: 24px; line-height: 1.7; }
.press-pdf-link--empty {
  pointer-events: auto;
}
body:not(.edit-mode) .press-pdf-link--empty {
  opacity: 0.45;
  cursor: default;
}

/* ===== CINEMATIC MOTION SYSTEM ===== */

/*
 * Line mask: overflow container for SplitType masked reveals.
 * Each SplitType .line lives inside one of these.
 * GSAP animates y: 108% → 0% on the .line; the mask clips below the boundary.
 */
.was-line-mask {
  display: block;
  overflow: hidden;
  line-height: inherit;
  /* Tiny buffer so tight line-heights don't clip ascenders on first frame */
  padding-top: 0.04em;
  margin-top: -0.04em;
}

/*
 * On motion-enabled pages (data-was-motion):
 * — Disable CSS transitions so GSAP fromTo() owns both start and end states.
 * — Reset transform so the base .reveal { transform: translateY(22px) } does
 *   not compete with GSAP. On motion pages, GSAP sets its own from-state.
 * — opacity: 0 is preserved so GSAP can animate from hidden → visible.
 */
body[data-was-motion] .reveal {
  transform: none;
  transition: none;
}

/*
 * Failure state: if motion.js fails to initialise (CDN blocked, JS error),
 * force every .reveal and .hline back to its visible state so the page
 * is never left broken. Same rule applied to was-motion-reduced (user
 * preference) — CSS handles static visibility; JS skips all animation.
 */
body[data-was-motion].was-motion-failed .reveal,
body[data-was-motion].was-motion-failed .reveal.visible,
body[data-was-motion].was-motion-reduced .reveal,
body[data-was-motion].was-motion-reduced .reveal.visible {
  opacity: 1 !important;
  transform: none !important;
}

/*
 * Disable the CSS-driven .hline grow animation on motion pages.
 * GSAP runs scaleX: 0 → 1 in sequence with the eyebrow label.
 */
body[data-was-motion] .hline,
body[data-was-motion] .hline.grown {
  transform: scaleX(0);
  transform-origin: left center;
  transition: none !important;
}
body[data-was-motion].was-motion-failed .hline,
body[data-was-motion].was-motion-failed .hline.grown,
body[data-was-motion].was-motion-reduced .hline,
body[data-was-motion].was-motion-reduced .hline.grown {
  transform: scaleX(1) !important;
}

/*
 * GPU promotion for clip-path containers.
 * Prevents paint flicker during clip-path animation.
 */
body[data-was-motion] .problem-split-img,
body[data-was-motion] .prod-module-media,
body[data-was-motion] .press-article-img,
body[data-was-motion] .video-placeholder {
  will-change: clip-path;
}

/*
 * GPU promotion for continuous parallax layers.
 * Promotes elements with ongoing scroll-scrubbed translateY to their own
 * compositor layer, preventing layout repaints during ambient drift.
 */
body[data-was-motion] #hero-bg,
body[data-was-motion] #cta-bg,
body[data-was-motion] .hero-perf,
body[data-was-motion] .material-strip-perf,
body[data-was-motion] .problem-split-img img,
body[data-was-motion] .prod-intro-image-wrap img,
body[data-was-motion] .prod-module-media img,
body[data-was-motion] .material-strip-text,
body[data-was-motion] .hero h1 {
  will-change: transform;
}

/*
 * Parallax edge compensation.
 *
 * Problem: parallax() shifts elements y: +travel/2 → -travel/2. Any element
 * that perfectly fills its container (inset:0 / height:100%) will expose
 * the container's background at the leading and trailing edges at max travel.
 *
 * Fix: extend every parallaxed fill element beyond its container bounds.
 * The parent's overflow:hidden clips the excess — it is never visible.
 *
 * Values = half-travel + 15px safety margin:
 *   hero-bg / cta-bg    travel 110px  → ±70px
 *   hero-perf / perf    travel 55px   → ±40px
 *   prod-module img     travel 50px   → 30px each side via height + margin-top
 */

/* Background fill divs — extend vertically beyond section bounds */
body[data-was-motion] #hero-bg {
  top:    -70px;
  bottom: -70px;
}

body[data-was-motion] #cta-bg {
  top:    -70px;
  bottom: -70px;
}

body[data-was-motion] .hero-perf {
  top:    -40px;
  bottom: -40px;
}

body[data-was-motion] .material-strip-perf {
  top:    -40px;
  bottom: -40px;
}

/*
 * Product module images — taller than their overflow:hidden container.
 * Extra height is clipped; parallax translateY operates within the headroom.
 * height: calc(100% + 60px) provides 30px of coverage on each side.
 */
body[data-was-motion] .prod-module-media img {
  height:     calc(100% + 60px);
  margin-top: -30px;
}

/*
 * Disable the image hover scale on motion pages —
 * GSAP parallax and clip-path run on these; CSS hover scale conflicts.
 */
body[data-was-motion] .problem-split-img:hover img,
body[data-was-motion] .prod-module-media:hover img {
  transform: none;
}

/*
 * Pull quote blur transition — allow filter animation on this element.
 * Only needed on motion pages; reduced-motion path skips blur entirely.
 */
body[data-was-motion] .pull-quote-xl {
  will-change: opacity, filter;
}

/* ===== PREFERS REDUCED MOTION ===== */

/*
 * Hard system-level override.
 * When the user has requested reduced motion at the OS level:
 * — All CSS transitions and animations are disabled.
 * — All .reveal elements are forced visible.
 * — All hlines are forced to their grown state.
 * — SplitType is disabled in JS (no line splitting occurs).
 * — All parallax, blur transitions, and scrub motion are skipped in JS.
 * Layout integrity is fully preserved. Only minimal opacity transitions remain.
 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }

  .hline,
  .hline.grown {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  .was-line-mask {
    overflow: visible;
  }

  .was-line-mask .line {
    transform: none !important;
  }

  body[data-was-motion] #hero-bg,
  body[data-was-motion] #cta-bg,
  body[data-was-motion] .hero-perf,
  body[data-was-motion] .material-strip-perf,
  body[data-was-motion] .problem-split-img img,
  body[data-was-motion] .prod-module-media img,
  body[data-was-motion] .material-strip-text,
  body[data-was-motion] .hero h1 {
    will-change: auto;
  }

  /* Reset parallax edge extensions — not needed without motion */
  body[data-was-motion] #hero-bg,
  body[data-was-motion] #cta-bg {
    top:    0;
    bottom: 0;
  }

  body[data-was-motion] .hero-perf,
  body[data-was-motion] .material-strip-perf {
    top:    0;
    bottom: 0;
  }

  body[data-was-motion] .prod-module-media img {
    height:     100%;
    margin-top: 0;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Grid — stacked, remove grout-line effect */
  .grid-3 { grid-template-columns: 1fr; background: transparent; gap: 1px; }
  .grid-2 { grid-template-columns: 1fr; background: transparent; gap: 24px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Hero mobile */
  .hero-inner { padding-left: 20px; padding-right: 20px; }
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 52px;
  }
  .hero-counter { text-align: left; }
  .hero-descriptor-right { display: none; }

  /* Admin */
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .analytics-grid-2 { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .new-key-row { grid-template-columns: 1fr; }

  /* Side panel → bottom sheet */
  .side-panel {
    width: 100%; height: 85vh;
    top: auto; bottom: 0; right: 0; left: 0;
    border-left: none; border-top: 1px solid var(--border);
    transform: translateY(100%);
    border-radius: 0;
  }
  .side-panel.open { transform: translateY(0); }

  /* Table → cards */
  .leads-table-wrap { overflow-x: unset; }
  .leads-table thead { display: none; }
  .leads-table tr { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; margin-bottom: 12px; padding: 16px; }
  .leads-table tr:hover td { background: none; }
  .leads-table td { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: none; font-size: 0.85rem; }
  .leads-table td::before { content: attr(data-label); font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); flex-shrink: 0; margin-right: 12px; }
  .leads-table td:last-child { padding-top: 12px; border-top: 1px solid var(--border); margin-top: 4px; }
  .leads-table .empty-row { display: table-row; }
  .leads-table .empty-row td { display: table-cell; }
  .leads-table .empty-row td::before { display: none; }

  .admin-tabs { padding: 0 16px; overflow-x: auto; }
  .admin-content { padding: 20px 16px; }
  .admin-topbar { padding: 0 16px; }
  .filter-bar { gap: 8px; }
  .search-input { width: 100%; margin-left: 0; }

  .designer-toolbar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
    width: auto;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .designer-toolbar-label {
    width: 100%;
    padding: 0;
  }

  /* Spec band */
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .spec-item { padding: 36px 20px; }
  .spec-item:first-child { padding-left: 20px; }
  .spec-item:nth-child(2) { border-right: none; }
  .spec-item:nth-child(3) { border-top: 1px solid var(--border); }

  /* Eyebrow row — hide growing line on mobile */
  .eyebrow-row { gap: 16px; }
  .eyebrow-row .hline { display: none; }

  /* Pull quote */
  .pull-quote-xl { font-size: clamp(1.9rem, 7vw, 3rem); }

  /* Problem split */
  .problem-section { overflow: hidden; }
  .problem-split {
    grid-template-columns: 1fr;
    min-height: unset;
    margin-top: 40px;
    border-bottom: 1px solid var(--border);
  }
  .problem-split::after { display: none; }
  .problem-split-img {
    width: 136%;
    min-height: 0;
    margin: 0 0 -52px -18%;
    transform: none;
  }
  .problem-split-img img {
    width: 100%;
    min-height: 0;
  }
  .problem-split-text {
    max-width: none;
    margin-left: 0;
    padding: 40px 0 56px;
    gap: 18px;
  }

  /* Solution */
  .solution-section { padding-top: 104px; }
  .solution-intro-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }

  /* Products editorial rail — stacked on mobile */
  .prod-module,
  .prod-module--reverse {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  /* Image always appears first on mobile regardless of layout variant */
  .prod-module-media,
  .prod-module--reverse .prod-module-media {
    order: 1;
    aspect-ratio: 4 / 3;
  }
  .prod-module-content,
  .prod-module--reverse .prod-module-content {
    order: 2;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 40px 20px 52px;
    justify-content: flex-start;
  }
  .prod-module-content--with-specs {
    padding-top: 40px;
    padding-bottom: 52px;
  }
  .prod-module-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }
  .prod-module-desc { max-width: none; }

  /* Material strip */
  .material-strip { padding: 60px 0; }
  .material-strip-text { font-size: clamp(2.6rem, 10vw, 4rem); }

  /* Partners */
  .partners-layout { grid-template-columns: 1fr; gap: 40px; }
  .partners-left p { max-width: none; }
  .partners-section { padding: 84px 0 96px; background-size: 50% 100%, 100% 118px, auto; }
  .partners-left .section-heading { max-width: none; }
  .partners-ledger { margin-top: 16px; }
  .partners-system::before { left: 42px; }
  .partners-system-top {
    flex-direction: column;
    gap: 6px;
    padding-bottom: 18px;
  }
  .partner-entry,
  .partner-entry--primary {
    grid-column: span 1;
    min-height: 172px;
    padding: 22px 0 24px 58px;
  }
  .partner-entry-meta {
    padding-right: 4px;
  }
  .partner-entry-logo,
  .partner-entry--primary .partner-entry-logo {
    width: min(100%, 280px);
    gap: 18px;
    margin: 26px 0 30px;
  }
  .partner-logo-symbol,
  .partner-entry--primary .partner-logo-symbol {
    width: 52px;
    height: 52px;
    font-size: 2.6rem;
  }
  .prod-allies-matrix { grid-template-columns: repeat(2, 1fr); }

  /* Press */
  .press-grid { grid-template-columns: 1fr; }
  .press-article { border-right: none; }
  .press-article-body { padding: 28px 20px 44px; }
}

/* ===== INDEX PAGE — body copy +20% (headings, eyebrows, titles unchanged) ===== */
.page-index .hero-sub {
  font-size: calc(0.95rem * 1.2);
}
.page-index .spec-label {
  font-size: calc(0.75rem * 1.2);
}
.page-index .spec-label sub {
  font-size: 0.75em;
  vertical-align: sub;
}
.page-index .problem-split-text p,
.page-index .solution-side p,
.page-index .partners-left p,
.page-index .cta-section > .container > p {
  font-size: 1.2rem;
}
.page-index .prod-module-desc {
  font-size: calc(0.925rem * 1.2);
}
.page-index .prod-spec-table dd {
  font-size: calc(0.78rem * 1.2);
}
.page-index .press-article-body p {
  font-size: calc(0.875rem * 1.2);
}
.page-index .footer-tagline {
  font-size: calc(0.875rem * 1.2);
}
.page-index .footer-bottom p {
  font-size: calc(0.78rem * 1.2);
}

/* ===== ABOUT PAGE — HERO EXTENSION ===== */
.page-about .page-hero {
  min-height: 72vh;
  align-items: flex-end;
}
.page-about .page-hero-bg {
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-about .page-hero h1 {
  max-width: 800px;
  margin-bottom: 28px;
}
.page-about .page-hero-divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 24px 0;
}
.page-about .page-hero p {
  max-width: 500px;
  font-size: 1.05rem;
}

/* ===== ABOUT — PURPOSE ===== */
.about-purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 56px;
}
.about-purpose-lead {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.about-purpose-logo {
  display: block;
  width: auto;
  height: clamp(2.4rem, 4vw, 3.25rem);
  max-width: min(320px, 100%);
  object-fit: contain;
  object-position: left center;
  filter: brightness(0);
  opacity: 0.88;
}
.about-purpose-grid .pull-quote-xl {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 1.1;
  border-left: 3px solid var(--accent);
  padding-left: 28px;
  color: var(--text);
}
.about-purpose-grid .about-purpose-body p + p { margin-top: 20px; }

@media (max-width: 768px) {
  .about-purpose-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== ABOUT — HISTORY TIMELINE ===== */
.about-history { padding-bottom: 0; }
.timeline-list {
  list-style: none;
  margin-top: 64px;
  border-top: 1px solid var(--border);
}
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.timeline-item--highlight .timeline-content {
  position: relative;
}
.timeline-item--highlight .timeline-content::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 16px;
}
.timeline-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-faint);
  line-height: 1;
  padding-top: 4px;
}
.timeline-item--highlight .timeline-year { color: var(--accent); }
.timeline-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}
.timeline-content p { font-size: 0.95rem; max-width: 540px; }

@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }
  .timeline-year { font-size: 1.6rem; }
}

/* ===== ABOUT — LEADERSHIP ===== */
.leadership-section { padding-bottom: 0; }
.leadership-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.leadership-intro .section-heading { margin-bottom: 0; }
.leadership-intro p { font-size: 1rem; }
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.leadership-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background 0.25s;
}
.leadership-card:hover { background: var(--bg-card); }
.leadership-photo-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-subtle);
  position: relative;
}
.leadership-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
  cursor: pointer;
}
.leadership-card:hover .leadership-photo { transform: scale(1.03); }
.leadership-info {
  padding: 24px 28px 32px;
  flex: 1;
  border-top: 1px solid var(--border);
}
.leadership-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--text);
}
.leadership-role {
  display: block;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.leadership-bio {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
  .leadership-intro { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .leadership-grid { grid-template-columns: 1fr; }
  .leadership-info { padding: 20px 20px 28px; }
}

/* ===== ABOUT — RECOGNITION ===== */
.recognition-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-bottom: 120px;
}
.recognition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.recognition-item {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s;
}
.recognition-item:hover { background: var(--bg-card); }
.recognition-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.recognition-name {
  font-family: 'Barlow', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.recognition-detail {
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .recognition-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .recognition-grid { grid-template-columns: 1fr; }
  .recognition-item { padding: 28px 20px; }
}

/* ===== ABOUT PAGE — body copy homologated +20% scale ===== */
.page-about .about-purpose-grid .about-purpose-body p {
  font-size: calc(0.95rem * 1.15);
}
.page-about .timeline-content p {
  font-size: calc(0.95rem * 1.1);
}
.page-about .leadership-bio {
  font-size: calc(0.875rem * 1.1);
}
.page-about .footer-tagline {
  font-size: calc(0.875rem * 1.2);
}

/* ===== TECHNOLOGY PAGE — body copy homologated with index +20% scale ===== */
.page-tech .tph-sub {
  font-size: calc(0.95rem * 1.2);
}
.page-tech .tech-flow-desc {
  font-size: calc(0.875rem * 1.2);
}
.page-tech .tech-flow-fact dd {
  font-size: calc(0.78rem * 1.2);
}
.page-tech .tech-dark-section p {
  font-size: 1.2rem;
}
.page-tech .spec-ledger-cell p {
  font-size: calc(0.875rem * 1.2);
}
.page-tech .tech-app-desc {
  font-size: calc(0.875rem * 1.2);
}
.page-tech .cta-section > .container > p {
  font-size: 1.2rem;
}
.page-tech .footer-tagline {
  font-size: calc(0.875rem * 1.2);
}
.page-tech .footer-bottom p {
  font-size: calc(0.78rem * 1.2);
}
