@font-face {
  font-family: 'Sparated';
  src: url('fonts/sparated.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Portico';
  src: url('fonts/portico.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent-blue: #243A73;
  --navy: #081F5B;
  --paper-white: #F9F9F7;
  --obsidian: #1A1C1B;
  --graphite: #757681;
  --rule-line: rgba(117, 118, 129, 0.2);
  --hairline: 0.5px;
  --diagonal-grid: rgba(36, 58, 115, 0.05);
  --serif-font: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --sans-font: 'Inter', sans-serif;
  --mono-font: 'Space Mono', 'Courier New', Consolas, Monaco, monospace;
  /* Two-Red system — Oxblood for body/read, Signal for sub-12px micro-UI */
  --accent-red: #5D0E0E;          /* Oxblood — canonical, body role */
  --accent-red-signal: #AC0014;   /* Signal — sub-12px hairlines, dots, 1px rules only */
  /* Motion tokens — long-form trio (contemplative / reveal / atmospheric-long) */
  --motion-contemplative: 1200ms;
  --motion-reveal: 1500ms;
  --motion-atmospheric-long: 2000ms;
  --ease-expressive: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--paper-white);
  color: var(--obsidian);
  font-family: var(--sans-font);
  overflow-x: hidden;
  position: relative;
}

/* Diagonal Large Grid Background */
body::before {
  content: "";
  position: fixed;
  top: -100%;
  left: -100%;
  right: -100%;
  bottom: -100%;
  background-image:
    repeating-linear-gradient(45deg,
      transparent,
      transparent 200.5px,
      var(--diagonal-grid) 200px,
      var(--diagonal-grid) 201.5px),
    repeating-linear-gradient(-45deg,
      transparent,
      transparent 200.5px,
      var(--diagonal-grid) 200px,
      var(--diagonal-grid) 201.5px);
  z-index: -1;
  pointer-events: none;
}

/* Rule-Line Grid Overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--rule-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule-line) 1px, transparent 1px);
  background-size: 10vw 10vh;
  z-index: -1;
  opacity: 0.2;
  pointer-events: none;
}

.container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  min-height: 100vh;
  border-left: 1px solid var(--rule-line);
}

/* Modular Bento Blocks */
.module {
  border-right: var(--hairline) solid var(--rule-line);
  border-bottom: var(--hairline) solid var(--rule-line);
  border-radius: 0 !important;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.module:hover {
  background-color: rgba(36, 58, 115, 0.02);
}

/* ═════════════════════════════════════════
   HERO: DOMINANT HIERARCHY + UNFINISHED
   ═════════════════════════════════════════ */
h1,
h2,
h3,
h4 {
  font-family: var(--sans-font);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.hero-text-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 90%;
}

.hero-dominant {
  /* Cap the upper bound at 1440px-equivalent (~230px) so super-wide screens
     don't blow out hierarchy. Floor preserved by the 18vw / 20vw mobile rules
     below. */
  font-size: clamp(3rem, 16vw, 14.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin: 0;
}

/* "Unfinished" / In-Progress Outline Text */
.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-blue);
  transition: all var(--motion-contemplative) var(--ease-expressive);
}

.outline-text:hover {
  color: var(--accent-blue);
  -webkit-text-stroke: 0px;
}

.period {
  -webkit-text-stroke: 2px #081f5b;
}

.period:hover {
  color: #081f5b;
}

/* Isolated class for the word "PART" - outlined with slow fade transition */
.word-only-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--obsidian);
  transition: color 3.5s ease-in-out, -webkit-text-stroke 3.5s ease-in-out;
}

.word-only-outline.is-finished {
  color: var(--obsidian);
  -webkit-text-stroke: 1.5px var(--obsidian);
}

.hero-sub {
  font-size: 1.4rem;
  max-width: 600px;
  opacity: 0.7;
  margin-top: 1rem;
}

/* ═════════════════════════════════════════
   ITALIC-AS-COLOR — §04 Brand Guide
   Inline <em> emphasis renders as color, not slant.
   Navy on light surfaces, Red on dark surfaces.
   Genuine italic preserved on: .hero-sub (editorial aside),
   blockquote (quoted speech), .academic-serif narrative.
   ═════════════════════════════════════════ */
em {
  font-style: normal;
  color: var(--navy);
}

.testimonial-module em,
.testimonial-module em *,
.footer-cta em,
[data-surface="dark"] em {
  color: var(--accent-red);
}

/* Scroll Indicator (Bottom Right) */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 1.2rem;
  /* Matches gap for symmetry */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  z-index: 10;

  /* Silk-smooth fade treatment — motion.contemplative + ease.expressive */
  opacity: 1;
  visibility: visible;
  transition: opacity var(--motion-contemplative) var(--ease-expressive), visibility var(--motion-contemplative) var(--ease-expressive);
}

.scroll-indicator.fade-hide {
  opacity: 0;
  visibility: hidden;
}

.scroll-text {
  font-family: var(--mono-font);
  font-size: 0.5rem;
  /* 25% reduction */
  font-weight: 400;
  letter-spacing: 0.35em;
  color: #243A73;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  animation: scroll-text-pulse-blue 2.5s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 70px;
  background: linear-gradient(to bottom, var(--accent-red-signal), transparent);
  animation: scroll-line-pulse-down 2.5s ease-in-out infinite;
}

/* ═════════════════════════════════════════
   ROOT-LEVEL "BACK TO TOP" (PURE BLENDING)
   ═════════════════════════════════════════ */

/* Class 1: The Text (Handles Inversion + Fade + Color Pulse) */
.back-text-root {
  position: fixed;
  bottom: 6rem;
  right: 2.4rem;
  font-family: var(--mono-font);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: #243A73;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 200;

  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-contemplative) var(--ease-expressive), visibility var(--motion-contemplative) var(--ease-expressive);
  pointer-events: none;
}

/* Class 2: The Line (Handles True Red + Fade + Color Pulse) */
.line-up-root {
  position: fixed;
  bottom: 6rem;
  right: 1.2rem;
  width: 1px;
  height: 70px;
  background: linear-gradient(to top, var(--accent-red-signal), transparent);
  z-index: 200;

  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-contemplative) var(--ease-expressive), visibility var(--motion-contemplative) var(--ease-expressive);
  pointer-events: none;
}

/* Class 3: The Functional Click-Target */
.back-to-top-trigger {
  position: fixed;
  bottom: 6rem;
  right: 1.2rem;
  width: 80px;
  height: 100px;
  z-index: 201;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--motion-contemplative) var(--ease-expressive), visibility var(--motion-contemplative) var(--ease-expressive);
}

/* Visibility Toggles synchronized via JS */
.back-text-root.visible,
.line-up-root.visible,
.back-to-top-trigger.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-text-root.visible {
  animation: indicator-text-pulse 2.5s ease-in-out infinite;
}

.line-up-root.visible {
  animation: indicator-line-pulse 2.5s ease-in-out infinite;
}

/* ═════════════════════════════════════════
   THE UNIFIED POLY-PULSE SYSTEM
   ═════════════════════════════════════════ */

@keyframes scroll-text-pulse-blue {

  0%,
  100% {
    color: #243A73;
    opacity: 1;
  }

  50% {
    color: #DDDDDD;
    opacity: 0.5;
  }

  /* Forced GPU redraw */
}

@keyframes scroll-line-pulse-down {

  0%,
  100% {
    background: linear-gradient(to bottom, var(--accent-red-signal), transparent);
    opacity: 1;
  }

  50% {
    background: linear-gradient(to bottom, #1A1C1B, transparent);
    opacity: 0.6;
  }
}

@keyframes indicator-text-pulse {

  0%,
  100% {
    color: #243A73;
    opacity: 1;
  }

  50% {
    color: #DDDDDD;
    opacity: 0.5;
  }
}

@keyframes indicator-line-pulse {

  0%,
  100% {
    background: linear-gradient(to top, var(--accent-red-signal), transparent);
    opacity: 1;
  }

  50% {
    background: linear-gradient(to top, #1A1C1B, transparent);
    opacity: 0.6;
  }
}





.massive-text {
  font-size: 15vw;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.massive-text.reveal {
  opacity: 1;
  transform: translateY(0);
}

.academic-serif {
  font-family: var(--serif-font);
  font-size: 1.5rem;
  line-height: 1.4;
  max-width: 600px;
}

.metadata {
  font-family: var(--mono-font);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
}

/* Section Watermark ID */
.section-id {
  font-family: var(--sans-font);
  font-weight: 900;
  font-size: 15vw;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule-line);
  position: absolute;
  top: -2vw;
  right: -2vw;
  z-index: -1;
  opacity: 0.3;
}

/* ═════════════════════════════════════════
   NAVIGATION
   ═════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(249, 249, 247, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: var(--hairline) solid var(--rule-line);
  z-index: 100;
}

.logo-container {
  height: 32px;
  display: flex;
  align-items: center;
}

.main-logo {
  height: 100%;
  width: auto;
  shape-rendering: geometricPrecision;
  image-rendering: -webkit-optimize-contrast;
}

/* Nav link: STANDARDS entry point */
.nav-links {
  display: flex;
  align-items: center;
}

.nav-link {
  font-family: var(--mono-font);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--obsidian);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-red-signal);
}

/* ═════════════════════════════════════════
   BRAND STANDARDS MOCKUP: CLICKABLE GATEWAY
   ═════════════════════════════════════════ */

/* The mockup is an anchor styled as a .module. Neutralize default anchor
   color so inherited text (overlay label) stays controlled by its own rule. */
.module--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.brand-standards-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Embedded mini guide preview — iframe fills the link area as a decorative
   preview. pointer-events: none means clicks always pass through to the
   parent <a class="brand-standards-link"> so navigation to
   public-brand-standards.html fires reliably on every device, including
   touch where hover is unavailable. */
.brand-standards-link iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--obsidian);
  pointer-events: none;
}

/* Overlay label: permanently visible at low opacity across all devices.
   Acts as the unified "READ THE STANDARDS" CTA over the decorative iframe
   preview. The overlay captures pointer events so the parent <a> always
   resolves the click — eliminating iframe scroll-within-viewport quirks.
   Hover/focus deepens the background as affordance feedback. */
.brand-standards-overlay-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 28, 27, 0.55); /* var(--obsidian) at 55% */
  color: var(--paper-white);
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 300ms ease;
  pointer-events: auto;
  text-align: center;
  padding: 2rem;
}

.brand-standards-link:hover .brand-standards-overlay-label,
.brand-standards-link:focus-visible .brand-standards-overlay-label {
  background: rgba(26, 28, 27, 0.78); /* var(--obsidian) at 78% */
}

/* ═════════════════════════════════════════
   SERVICE CARDS
   ═════════════════════════════════════════ */
.service-card .header-sans {
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 1rem;
  min-height: 8.5rem;
  /* Reserves space for up to 3 lines across all cards */
  display: flex;
  align-items: flex-start;
}

.service-card {
  justify-content: flex-start !important;
}

.service-card .academic-serif {
  margin-top: 0;
}

.sketch-line {
  height: 1px;
  background-color: var(--accent-blue);
  width: 60px;
  margin-bottom: 2rem;
}

/* Process List */
.process-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.process-list li {
  padding: 1.5rem 0;
  border-bottom: var(--hairline) solid var(--rule-line);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.process-list li span {
  font-family: var(--mono-font);
  color: var(--accent-blue);
  font-size: 0.8rem;
  width: 30px;
}

/* Testimonials */
blockquote {
  border-left: none !important;
  font-family: var(--serif-font);
  font-style: italic;
  font-size: 2rem;
  line-height: 1.3;
  margin: 0;
  color: var(--paper-white);
}

/* Portfolio Overlay Label */
.metadata-overlay {
  background: var(--paper-white);
  padding: 0.5rem 1rem;
  font-family: var(--mono-font);
  font-size: 0.6rem;
  align-self: flex-start;
  border: var(--hairline) solid var(--rule-line);
  letter-spacing: 1px;
}

/* ═════════════════════════════════════════
   SITE FOOTER BAR
   ═════════════════════════════════════════ */
.site-footer {
  width: 100%;
  padding: 1.5rem 3rem;
  border-top: var(--hairline) solid var(--rule-line);
}

/* Desktop: single row — copyright left, TERMS/POLICY right */
.footer-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Desktop: copyright is inline — separators visible */
.footer-copy {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
}

/* ═════════════════════════════════════════
   TESTIMONIALS: REFINED HUD + ATTRIBUTION
   ═════════════════════════════════════════ */

.testimonial-module {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  background: #0D0D0D;
  color: #F9F9F9;
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.testimonial-module:hover {
  background: #0D0D0D !important;
}

.testimonial-module .metadata {
  position: absolute;
  top: 4rem;
  left: 4rem;
  z-index: 10;
  color: #666;
}

.testimonial-carousel {
  width: 100%;
  max-width: 800px;
  min-height: 400px;
  /* Stable height to prevent content jump */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  opacity: 0;
  visibility: hidden;
  /* motion.reveal — content swap, user must register the change */
  transition: opacity var(--motion-reveal) var(--ease-expressive), visibility var(--motion-reveal) var(--ease-expressive);
  text-align: center;
}

.testimonial-slide.active-slide {
  opacity: 1;
  visibility: visible;
}

.testimonial-content {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-quote {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0;
  color: #F9F9F9;
}

.testimonial-attribution {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 3rem;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.attribution-text {
  font-family: var(--mono-font);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
  color: #F9F9F9;
}

.attribution-text .name {
  font-weight: 700;
  margin-bottom: 2px;
}

.attribution-text .org {
  color: #666;
}

.attribution-avatar {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 1.5px solid #F9F9F9 !important;
  flex-shrink: 0;
}

.attribution-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ═════════════════════════════════════════
   DRAFTING TABLE: GRAPH PAPER GRID
   ═════════════════════════════════════════ */
.graph-paper {
  background-color: var(--paper-white);
  background-image:
    linear-gradient(rgba(36, 58, 115, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 58, 115, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  /* Real-life ~5mm drafting scale */
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem !important;
}

.metadata-hud {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
  background: white;
  padding: 0.6rem 1.2rem;
  font-size: 0.6rem;
  border: 1px solid var(--rule-line);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}


@media (max-width: 1024px) {
  .massive-text {
    font-size: 18vw;
  }

  .hero-dominant {
    font-size: 20vw;
  }

  /* Tablet: dial down module padding from 4rem (64px) to 2.5rem (40px) so
     content doesn't get squeezed at 768-1024 viewports. */
  .module {
    padding: 2.5rem;
  }

  /* Footer CTA: 15rem top/bottom padding inline becomes excessive at tablet.
     Cut to a still-generous 8rem. Targeting via attribute selector beats
     the inline style rule. */
  section.footer-cta[style] {
    padding: 8rem 3rem !important;
  }

  /* Brand showcase: at tablet the modules still sit side-by-side via 6-col
     spans but the brand-type-display nowrap can crowd. Allow wrapping. */
  .brand-type-display {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
  }

  /* Service card heading min-height too tall when cards narrow. */
  .service-card .header-sans {
    min-height: 6rem;
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  .module {
    grid-column: span 12 !important;
    padding: 2rem;
  }

  .container {
    border-left: none;
  }

  .hero-dominant {
    font-size: 18vw;
  }

  /* P1: Hide nav metadata on mobile. Logo + STANDARDS link only. */
  nav .metadata {
    display: none;
  }

  /* Mobile: shrink overlay label to fit tight viewport */
  .brand-standards-overlay-label {
    font-size: 1.5rem;
  }

  /* P1: Testimonial attribution overflow — cap width and allow stacking */
  .testimonial-attribution {
    max-width: calc(100% - 2rem);
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Footer CTA: aggressively cut inline 15rem padding to fit mobile.
     Override the inline style via attribute selector. */
  section.footer-cta[style] {
    padding: 5rem 1.5rem !important;
  }
  /* Inline 11vw becomes 41px at 375px — readable but tight. Keep but cap
     so super-narrow doesn't shrink heading further. */
  section.footer-cta .massive-text {
    font-size: clamp(2.5rem, 11vw, 6rem) !important;
  }

  /* Section 02 "Veteran-Owned Excellence" — inline 3vw becomes ~11px at
     375px which is illegible as a heading. Override via specificity. */
  .module h2.massive-text[style*="3vw"] {
    font-size: clamp(1.5rem, 6vw, 2.4rem) !important;
  }

  /* Process & testimonial section heading also uses inline vw — cap. */
  .module h2.massive-text[style*="4vw"] {
    font-size: clamp(1.6rem, 7vw, 2.6rem) !important;
  }
  .module h2.massive-text[style*="10vw"] {
    font-size: clamp(2.5rem, 12vw, 5rem) !important;
  }

  /* Testimonial quote: smaller at narrow viewports */
  .testimonial-quote {
    font-size: 1.4rem;
  }

  /* Brand showcase quadrant gets constrained — typography rows can crowd */
  .brand-q-type {
    padding: 1.5rem 1rem 2rem;
    gap: 1.25rem;
  }
  .brand-type-row {
    gap: 0.5rem;
  }
  .brand-scale-label {
    width: 3.5rem;
  }
  .brand-type-display {
    font-size: clamp(1rem, 4.5vw, 1.5rem);
  }
  .brand-type-body,
  .brand-type-meta {
    font-size: 0.85rem;
  }

  /* Color bars: shorter and tighter on mobile */
  .brand-color-bar {
    height: 30px;
    font-size: 0.55rem;
    padding-right: 0.6rem;
  }

  /* Mockup module monitor frame: reduce min-height so 500px doesn't dwarf */
  .mockup-module {
    min-height: 320px !important;
  }
  .module.mockup-module[style*="min-height"] {
    min-height: 320px !important;
  }
  .module.brand-showcase[style*="min-height"] {
    min-height: 460px !important;
  }

  /* Section watermark large IDs — keep but cap so they don't break layout */
  .section-id {
    font-size: 22vw;
  }

  /* Service card heading: smaller still on mobile. */
  .service-card .header-sans {
    min-height: 0;
    font-size: 1.6rem;
    margin-top: 1rem;
  }

  /* Process list spacing */
  .process-list li {
    gap: 1rem;
    padding: 1rem 0;
    font-size: 0.95rem;
  }

  /* Testimonial module padding shrink */
  .testimonial-module {
    padding: 2.5rem 1.5rem;
    min-height: 380px;
  }
  .testimonial-module .metadata {
    top: 1.5rem;
    left: 1.5rem;
  }
  .testimonial-carousel {
    min-height: 280px;
  }

  /* Site footer: stack rows on narrow */
  .site-footer {
    padding: 1.25rem 1.25rem;
  }
  .footer-main-row {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }

  /* Nav: shrink horizontal padding */
  nav {
    padding: 1rem 1.25rem;
  }

  /* Showcase nav HUD: keep visible but compact */
  .showcase-nav-hud {
    font-size: 0.55rem;
    padding: 0.5rem 0.9rem;
    gap: 0.45rem;
  }
}

/* ═════════════════════════════════════════
   480PX BREAKPOINT — PHONE RANGE
   Addresses the gap between 768px and no coverage.
   P1: module padding, P2: brand quadrant grid collapse
   ═════════════════════════════════════════ */
@media (max-width: 480px) {
  .module {
    padding: 1.5rem;
  }

  /* P2: Brand quadrant grid → single column at phone width */
  .brand-quadrant-grid {
    grid-template-columns: 1fr;
  }

  .brand-q-type {
    grid-column: 1;
  }

  /* Adjust testimonial attribution to match new padding */
  .testimonial-attribution {
    max-width: calc(100% - 1.5rem);
  }

  /* Footer CTA: smallest viewports get further reduction */
  section.footer-cta[style] {
    padding: 4rem 1.25rem !important;
  }
  /* Sketch line under footer CTA inline width: 200px — keep, it's centered */

  /* Brand q-logo constrained — keep specimen scaled down */
  .brand-logo-specimen {
    max-height: 100px;
  }
  .dp-logo-specimen {
    max-height: 90px;
  }
  .vs-logo-specimen {
    max-height: 50px;
  }
  .ss-logo-specimen,
  .m4s-logo-specimen {
    max-height: 80px;
    max-width: 180px;
  }

  /* Mark cards smaller min-height on phone */
  .mark-card {
    min-height: 180px;
    padding: 1.5rem !important;
    margin-bottom: 2rem;
  }
  .mark-logo {
    max-height: 100px;
  }

  /* Cookie banner already handled at 768; tighten further */
  .cookie-banner {
    padding: 1.25rem;
  }

  /* Contact drawer at very small */
  .contact-drawer {
    padding: 2rem 1.5rem;
    height: 90vh;
  }
  .contact-title {
    font-size: 1.8rem;
  }
}

/* ═════════════════════════════════════════
   HOVER — TOUCH DEVICE OVERRIDE (P3)
   Prevents sticky-hover states on iOS/Android.
   Reverts hover effects for devices with no pointer.
   ═════════════════════════════════════════ */
@media (hover: none) {
  .module:hover {
    background-color: transparent;
  }

  .cta-contact:hover {
    color: #081f5b;
  }

  .cta-contact:hover::after {
    clip-path: inset(0 100% 0 0);
  }
}

/* ═════════════════════════════════════════
   PREFERS-REDUCED-MOTION (P3)
   Disables all animations for users who opt out
   of motion at the OS level (accessibility).
   ═════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* ═════════════════════════════════════════
   MOCKUP MODULE: SCREEN PARALLAX
   ═════════════════════════════════════════ */

.mockup-module {
  background: #0d0d0d;
}

.monitor-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  pointer-events: none;
}

.screen-overlay {
  position: absolute;
  overflow: hidden;
  z-index: 2;
  /* Position set dynamically by JS */
}

.site-screenshot {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
  transform: translateY(0);
}

.screen-link {
  display: block;
  width: 100%;
  line-height: 0;
}

/* No hover treatment on the mockup module or screen link */
.mockup-module:hover {
  background-color: #0d0d0d !important;
}

.screen-link:hover,
.screen-link:focus,
.screen-link:active {
  transform: none !important;
  box-shadow: none !important;
  outline: none;
}

.screen-link img {
  transition: none !important;
  transform: translateY(0) !important;
}

/* ═════════════════════════════════════════
   BRAND SHOWCASE: FOUR-QUADRANT LAYOUT
   ═════════════════════════════════════════ */

/* Override graph-paper's centered flex for this module */
.brand-showcase {
  padding: 0 !important;
  display: block !important;
  align-items: unset !important;
  justify-content: unset !important;
}

/* Keep HUD positioned correctly inside the overridden module */
.brand-showcase .metadata-hud {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
}

/* 2-column, 2-row inner grid — no visible dividers */
.brand-quadrant-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  align-content: space-evenly;
  box-sizing: border-box;
  padding-top: 2.5rem;
}

/* Shared quadrant base — padding only, no borders or backgrounds */
.brand-quadrant {
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Q1: Logo — centered */
.brand-q-logo {
  align-items: center;
  justify-content: center;
}

.brand-logo-specimen {
  max-height: 140px;
  width: auto;
}

.dp-logo-specimen {
  max-height: 120px;
  width: auto;
}

.vs-logo-specimen {
  max-height: 60px;
  width: auto;
}

/* Q2: Color palette — gradient bars */
.brand-q-palette {
  align-items: stretch;
  justify-content: center;
  padding: 0 !important;
}

.brand-color-bars {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
}

.brand-color-bar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  font-family: var(--mono-font);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 0;
}

.brand-bar-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.brand-bar-hex {
  opacity: 0.75;
}

/* Per-color gradient backgrounds */
.brand-bar--ft-orange {
  background: linear-gradient(to left, #F5A623 0%, #F5A623 30%, transparent 100%);
  color: #131313;
}

.brand-bar--ft-black {
  background: linear-gradient(to left, #131313 0%, #131313 30%, transparent 100%);
  color: #E5E2E1;
}

.brand-bar--ft-olive {
  background: linear-gradient(to left, #4B5320 0%, #4B5320 30%, transparent 100%);
  color: #E5E2E1;
}

.brand-bar--ft-red {
  background: linear-gradient(to left, #CC2200 0%, #CC2200 30%, transparent 100%);
  color: #ffffff;
}

.brand-bar--ft-offwhite {
  background: linear-gradient(to left, #E5E2E1 0%, #E5E2E1 30%, transparent 100%);
  color: #131313;
  border-right: 1px solid rgba(117, 118, 129, 0.3);
}

/* Donato Poveda color bars */
.brand-bar--dp-black {
  background: linear-gradient(to left, #080808 0%, #080808 30%, transparent 100%);
  color: #F2EDE8;
}

.brand-bar--dp-red {
  background: linear-gradient(to left, #D92B2B 0%, #D92B2B 30%, transparent 100%);
  color: #ffffff;
}

.brand-bar--dp-cream {
  background: linear-gradient(to left, #F2EDE8 0%, #F2EDE8 30%, transparent 100%);
  color: #080808;
  border-right: 1px solid rgba(117, 118, 129, 0.3);
}

.brand-bar--dp-crimson {
  background: linear-gradient(to left, #8C1515 0%, #8C1515 30%, transparent 100%);
  color: #F2EDE8;
}

/* Versitālis color bars */
.brand-bar--vs-red {
  background: linear-gradient(to left, #AC0014 0%, #AC0014 30%, transparent 100%);
  color: #ffffff;
}

.brand-bar--vs-primary {
  background: linear-gradient(to left, #272727 0%, #272727 30%, transparent 100%);
  color: #ffffff;
}

.brand-bar--vs-gray {
  background: linear-gradient(to left, #606060 0%, #606060 30%, transparent 100%);
  color: #ffffff;
}

.brand-bar--vs-light {
  background: linear-gradient(to left, #F5F5F5 0%, #F5F5F5 30%, transparent 100%);
  color: #272727;
  border-right: 1px solid rgba(117, 118, 129, 0.3);
}

.brand-bar--vs-footer {
  background: linear-gradient(to left, #181818 0%, #181818 30%, transparent 100%);
  color: #ffffff;
}

/* Q3+Q4: Typography specimen — spans full width, vertically centered */
.brand-q-type {
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 2rem 2.5rem;
}

.brand-type-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
}

.brand-scale-label {
  flex-shrink: 0;
  width: 4.5rem;
  color: var(--graphite) !important;
  font-size: 0.65rem !important;
}

/* Display scale: Sparated, uppercase, tight tracking */
.brand-type-display {
  font-family: 'Sparated', system-ui, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Body scale: Montserrat */
.brand-type-body {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  font-style: normal;
}

/* Meta scale: Portico HUD labels */
.brand-type-meta {
  font-family: 'Portico', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Client overrides — must come after base brand-type rules */
.dp-type-display {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.dp-type-body {
  font-family: 'Lora', Georgia, serif;
  font-style: normal;
}

.dp-type-meta {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-style: normal;
}

/* Versitālis — single-font system, Montserrat at weight contrast */
.vs-type-display {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
}

.vs-type-body {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 300;
  font-style: normal;
}

.vs-type-meta {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Scopos Strategies color bars */
.brand-bar--ss-black {
  background: linear-gradient(to left, #0D0D0D 0%, #0D0D0D 30%, transparent 100%);
}
.brand-bar--ss-crimson {
  background: linear-gradient(to left, #9B1C1C 0%, #9B1C1C 30%, transparent 100%);
}
.brand-bar--ss-white {
  background: linear-gradient(to left, #FFFFFF 0%, #FFFFFF 30%, transparent 100%);
  border-right: 1px solid rgba(117, 118, 129, 0.3);
}
.brand-bar--ss-steel {
  background: linear-gradient(to left, #2A2A2A 0%, #2A2A2A 30%, transparent 100%);
}
.brand-bar--ss-black .brand-bar-label,
.brand-bar--ss-crimson .brand-bar-label,
.brand-bar--ss-steel .brand-bar-label {
  color: #FFFFFF;
}
.brand-bar--ss-white .brand-bar-label {
  color: #0D0D0D;
}

/* Scopos Strategies logo sizing */
.ss-logo-specimen {
  max-height: 100px;
  max-width: 220px;
}

/* Scopos Strategies type overrides — must come after base brand-type rules */
.ss-type-display {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.ss-type-body {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-style: normal;
}
.ss-type-meta {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-style: normal;
}

/* ─── SHOWCASE NAVIGATION HUD ─── */
.showcase-nav-row {
  height: 0;
  align-self: start;
  position: relative;
  overflow: visible;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
}

.showcase-nav-hud {
  pointer-events: auto;
  position: absolute;
  bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.6rem 1.2rem;
  font-size: 0.6rem;
  border: 1px solid var(--rule-line);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  letter-spacing: 1px;
}

.showcase-prev,
.showcase-next {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--obsidian);
  padding: 0;
  line-height: 1;
  opacity: 0.45;
  transition: opacity 0.15s;
}

.showcase-prev:hover,
.showcase-next:hover {
  opacity: 1;
}

.showcase-dot {
  width: 4px;
  height: 4px;
  background: rgba(26, 28, 27, 0.2);
  display: inline-block;
  transition: background 0.2s;
}

.showcase-dot.active {
  background: var(--obsidian);
}

/* ─── MARK FOR SHERIFF (M4S) ─── */

/* Color bars */
.brand-bar--m4s-navy {
  background: linear-gradient(to left, #0B132B 0%, #0B132B 30%, transparent 100%);
}
.brand-bar--m4s-gold {
  background: linear-gradient(to left, #FFD700 0%, #FFD700 30%, transparent 100%);
}
.brand-bar--m4s-olive {
  background: linear-gradient(to left, #4B5320 0%, #4B5320 30%, transparent 100%);
}
.brand-bar--m4s-offwhite {
  background: linear-gradient(to left, #F4F4F4 0%, #F4F4F4 30%, transparent 100%);
  border-right: 1px solid rgba(117, 118, 129, 0.3);
}

/* Bar label colors */
.brand-bar--m4s-navy .brand-bar-label,
.brand-bar--m4s-olive .brand-bar-label {
  color: #FFFFFF;
}
.brand-bar--m4s-gold .brand-bar-label {
  color: #0B132B;
}
.brand-bar--m4s-offwhite .brand-bar-label {
  color: #0B132B;
}

/* Logo sizing */
.m4s-logo-specimen {
  max-height: 100px;
  max-width: 220px;
}

/* Type overrides — must come after base brand-type rules */
.m4s-type-display {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.m4s-type-body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-style: normal;
}
.m4s-type-meta {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* ─── IDENTITY MARKS SECTION ─── */
.mark-card {
  min-height: 240px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem !important;
  margin-bottom: 4rem;
  border-bottom: none !important;
  overflow: hidden;
  cursor: default;
}

.mark-card-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.mark-logo {
  max-width: 75%;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.mark-card-label {
  font-family: var(--mono-font);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  text-align: center;
  margin-top: 1rem;
  white-space: nowrap;
}

/* ─── FOOTER CTA: GET IN TOUCH HOVER ─── */
.cta-contact {
  color: #081f5b;
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: color 0.2s ease;
}

.cta-contact::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 2px #081f5b;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  /* motion.atmospheric-long — ambient reveal, one per page */
  transition: clip-path var(--motion-atmospheric-long) var(--ease-expressive);
  pointer-events: none;
}

.cta-contact:hover {
  color: transparent;
}

.cta-contact:hover::after {
  clip-path: inset(0 0% 0 0);
}

/* ─── FOOTER LEGAL LINKS ─── */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-legal-link {
  font-family: var(--mono-font);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--graphite);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--obsidian);
}

.footer-legal-sep {
  font-family: var(--mono-font);
  font-size: 0.6rem;
  color: var(--graphite);
  opacity: 0.5;
}

/* ═════════════════════════════════════════
   CONTACT FORM DRAWER
   ═════════════════════════════════════════ */

.contact-scrim {
  position: fixed;
  inset: 0;
  background: rgba(26, 28, 27, 0.45);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.contact-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-drawer {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 480px;
  height: 845px;
  background: var(--obsidian);
  z-index: 200;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.contact-drawer.is-open {
  transform: translateX(0);
}

.contact-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--graphite);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.contact-close:hover {
  color: var(--paper-white);
}

.contact-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-eyebrow {
  color: rgba(117, 118, 129, 0.6);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-title {
  font-family: var(--serif-font);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: normal;
  color: var(--paper-white);
  line-height: 1.1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-label {
  font-family: var(--mono-font);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(249, 249, 247, 0.45);
}

.contact-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid rgba(249, 249, 247, 0.2);
  color: var(--paper-white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.75rem 0;
  outline: none;
  transition: border-bottom-color 0.2s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.contact-input::placeholder {
  color: rgba(249, 249, 247, 0.2);
}

.contact-input:focus {
  border-bottom-color: rgba(249, 249, 247, 0.7);
}

.contact-textarea {
  resize: none;
  min-height: 120px;
}

.contact-submit {
  margin-top: auto;
  width: 100%;
  padding: 1.25rem 0;
  background: var(--accent-blue);
  border: none;
  color: var(--paper-white);
  font-family: var(--mono-font);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 0;
}

.contact-submit:hover {
  background: var(--paper-white);
  color: var(--accent-blue);
}

@media (max-width: 768px) {
  .contact-drawer {
    width: 100vw;
    height: 85vh;
    top: auto;
    bottom: 0;
    right: 0;
    transform: translateY(100%);
  }
  .contact-drawer.is-open {
    transform: translateY(0);
  }
}


/* ═════════════════════════════════════════
   COOKIE CONSENT BANNER
   ═════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 2.5rem;
  left: 2.5rem;
  width: 360px;
  padding: 2rem;
  background: var(--obsidian);
  border-left: 2px solid var(--accent-blue);
  border-top: 0.5px solid rgba(249, 249, 247, 0.08);
  border-right: 0.5px solid rgba(249, 249, 247, 0.08);
  border-bottom: 0.5px solid rgba(249, 249, 247, 0.08);
  z-index: 300;
  transform: translateX(calc(-100% - 2.5rem));
  opacity: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.cookie-banner.is-visible {
  transform: translateX(0);
}

.cookie-banner.is-dismissed {
  transform: translateX(calc(-100% - 2.5rem));
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 1, 1), opacity 0.25s ease;
  pointer-events: none;
}

.cookie-eyebrow {
  display: block;
  font-family: var(--mono-font);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.cookie-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(249, 249, 247, 0.65);
  margin-bottom: 1.5rem;
}

.cookie-body .cookie-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 0.5px;
}

.cookie-body .cookie-link:hover {
  color: var(--accent-red-signal);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-btn {
  flex: 1;
  padding: 0.75rem 0;
  font-family: var(--mono-font);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-btn--accept {
  background: var(--accent-blue);
  border: none;
  color: var(--paper-white);
}

.cookie-btn--accept:hover {
  background: #1a2c5a;
}

.cookie-btn--decline {
  background: transparent;
  border: 0.5px solid rgba(249, 249, 247, 0.25);
  color: rgba(249, 249, 247, 0.5);
}

.cookie-btn--decline:hover {
  border-color: rgba(249, 249, 247, 0.6);
  color: rgba(249, 249, 247, 0.85);
}

@media (max-width: 768px) {
  .cookie-banner {
    width: calc(100vw - 3rem);
    left: 1.5rem;
    bottom: 1.5rem;
  }
}
