/* ==========================================================================
   PANELESS GLASS SOLUTIONS
   Design System v1.0
   Plain CSS3. No frameworks. No build step.
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Color */
  --color-bg: #080808;
  --color-surface: #111111;
  --color-surface-raised: #161616;
  --color-gold: #c9a84c;
  --color-gold-hover: #e0b96a;
  --color-gold-dim: rgba(201, 168, 76, 0.15);
  --color-gold-glow: rgba(201, 168, 76, 0.3);
  --color-text: #f5f5f5;
  --color-text-muted: #999999;
  --color-state-private: #e05252;
  --color-state-clear: #57c98a;

  /* Type */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Scale */
  --text-h1: clamp(46px, 7vw, 84px);
  --text-h2: clamp(32px, 4.5vw, 50px);
  --text-h3: clamp(23px, 2.5vw, 29px);
  --text-lead: 18px;
  --text-body: 16px;
  --text-small: 14px;
  --text-label: 12px;

  /* Space */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-section: clamp(100px, 12vw, 180px);

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(20px, 5vw, 48px);
  --nav-height: 84px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 0.3s;
  --duration-base: 0.4s;

  /* Effects */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 40px rgba(201, 168, 76, 0.18);
  --radius: 4px;
}

/* --------------------------------------------------------------------------
   2. RESET AND GLOBALS
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Fine grain over the whole canvas so pure black sections read as material, not voids */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background-color: var(--color-gold);
  color: var(--color-bg);
}

/* Scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) var(--color-bg);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 5px;
  border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-hover);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--color-text);
}

h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
}

p {
  max-width: 62ch;
}

.lead {
  font-size: var(--text-lead);
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.75;
}

.text-muted {
  color: var(--color-text-muted);
}

.editorial {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-label);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.divider {
  width: 80px;
  height: 1px;
  background-color: var(--color-gold);
  border: none;
  margin: var(--space-md) auto;
}

.divider--left {
  margin-left: 0;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-section);
}

.section--surface {
  background-color: var(--color-surface);
  background-image: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(201, 168, 76, 0.04), transparent 65%);
}

.section-head {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-head p {
  margin-inline: auto;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */

.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  padding: 18px 34px;
  border-radius: var(--radius);
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-bg);
  border: 1px solid var(--color-gold);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--color-bg);
  background-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--color-gold-hover);
  outline-offset: 3px;
}

/* Light sweep across the button face on hover */
.btn-primary::before,
.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease-out);
  pointer-events: none;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  left: 130%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.btn-group--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   6. CARDS
   -------------------------------------------------------------------------- */

.card {
  background-color: var(--color-surface);
  border: 1px solid transparent;
  border-top: 2px solid var(--color-gold);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: var(--space-lg) var(--space-md);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    background-color var(--duration-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  background-color: var(--color-surface-raised);
  border-color: var(--color-gold-dim);
  border-top-color: var(--color-gold);
  box-shadow: var(--shadow-gold), var(--shadow-card);
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: 1.8;
}

.card .card-link {
  display: inline-block;
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-label);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  transition: color var(--duration-fast) var(--ease-out);
}

.card .card-link:hover {
  color: var(--color-gold-hover);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   7. NAVIGATION
   -------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    backdrop-filter var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.site-nav.is-scrolled,
.site-nav:has(.nav-links.is-open) {
  background-color: rgba(8, 8, 8, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--color-gold-dim);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Stacked brand logo on a black plate; screen blend melts the plate into the dark nav */
.nav-logo img {
  height: 54px;
  width: auto;
  mix-blend-mode: screen;
}

.pgs-eyebrow {
  max-width: 128px;
  border-left: 1px solid var(--color-gold-dim);
  padding-left: 14px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.3em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 30px);
}

.nav-links a {
  position: relative;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--color-text);
  padding: 6px 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--color-gold);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 12px 22px;
  font-size: 13px;
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
  transition:
    transform var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  /* Gradient stand-in, ready for a real photo swap:
     background-image: linear-gradient(...), url('../images/hero.jpg'); */
  background-image:
    radial-gradient(ellipse 80% 60% at 75% 20%, rgba(201, 168, 76, 0.07), transparent 60%),
    linear-gradient(160deg, #101010 0%, #080808 45%, #0c0b08 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: var(--space-xl);
  width: 100%;
}

.hero-content {
  text-align: left;
}

.hero-content h1 {
  margin-bottom: var(--space-md);
}

.hero-content .lead {
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  rotate: 45deg;
  opacity: 0.8;
  animation: chevron-drift 2.2s var(--ease-out) infinite;
}

@keyframes chevron-drift {
  0%, 100% {
    translate: 0 0;
    opacity: 0.8;
  }
  50% {
    translate: 0 8px;
    opacity: 0.35;
  }
}

/* --------------------------------------------------------------------------
   9. PDLC PANEL
   -------------------------------------------------------------------------- */

.pdlc-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.pdlc-panel {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-gold);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.3);
  overflow: hidden;
  /* Clear-state glass: subtle dark tone with a faint reflection sweep */
  background-image:
    linear-gradient(115deg, transparent 30%, rgba(245, 245, 245, 0.04) 42%, rgba(245, 245, 245, 0.07) 46%, transparent 55%),
    linear-gradient(180deg, rgba(20, 22, 26, 0.85), rgba(10, 11, 13, 0.92));
}

.pdlc-panel--small {
  width: min(320px, 100%);
}

/* Bus bars: the conductive strips along the top and bottom inner edges */
.pdlc-panel::before,
.pdlc-panel::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background-color: var(--color-gold);
  opacity: 0.85;
  z-index: 3;
}

.pdlc-panel::before {
  top: 8px;
}

.pdlc-panel::after {
  bottom: 8px;
}

/* Frosted layer. Toggled by JS with a hard binary snap: no transition, ever. */
.pdlc-frost {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: none;
  background-color: rgba(235, 235, 235, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 150px 150px;
}

.pdlc-panel.is-frosted .pdlc-frost {
  opacity: 1;
}

.pdlc-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* State readout: dot plus PRIVATE or CLEAR text, set by JS */
.pdlc-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.pdlc-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-state-clear);
  box-shadow: 0 0 8px currentColor;
}

.pdlc-panel.is-frosted ~ .pdlc-status .status-dot,
.pdlc-status.is-private .status-dot {
  background-color: var(--color-state-private);
}

/* --------------------------------------------------------------------------
   10. DIFFERENTIATOR BAR
   -------------------------------------------------------------------------- */

.stats-bar {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-gold-dim);
  border-bottom: 1px solid var(--color-gold-dim);
}

.stats-bar .stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: var(--space-xl);
}

.stat {
  text-align: center;
  padding-inline: var(--space-md);
  border-right: 1px solid var(--color-gold-dim);
}

.stat:last-child {
  border-right: none;
}

.stat h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.stat p {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   11. APPLICATIONS GRID
   -------------------------------------------------------------------------- */

.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.application-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(245, 245, 245, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-md);
  background-image:
    radial-gradient(ellipse 90% 70% at 80% 0%, rgba(201, 168, 76, 0.06), transparent 60%),
    linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 60%, #080808 100%);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.application-tile:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.application-tile h3 {
  position: relative;
  z-index: 1;
  font-size: 20px;
  letter-spacing: 0.06em;
}

/* Category line icon, echoed as a large ghost watermark behind the tile */
.application-tile .tile-icon {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  stroke: var(--color-gold);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0.85;
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.application-tile .tile-icon--ghost {
  position: absolute;
  z-index: 0;
  right: -28px;
  bottom: -28px;
  width: 150px;
  height: 150px;
  stroke-width: 0.5;
  opacity: 0.07;
}

.application-tile:hover .tile-icon {
  opacity: 1;
  transform: translateY(-3px);
}

.application-tile:hover .tile-icon--ghost {
  opacity: 0.12;
  transform: none;
}

.application-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, rgba(8, 8, 8, 0.85) 0%, transparent 55%);
}

/* --------------------------------------------------------------------------
   12. MEDIA PLACEHOLDERS
   -------------------------------------------------------------------------- */

/* Dark gradient stand-in boxes for photography, per brand rules */
.media-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(245, 245, 245, 0.08);
  border-radius: var(--radius);
  background-image:
    radial-gradient(ellipse 70% 60% at 30% 25%, rgba(201, 168, 76, 0.06), transparent 60%),
    linear-gradient(155deg, #1a1a1a 0%, #0e0e0e 55%, #090909 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-placeholder span {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   13. CALLOUT AND DISCLOSURE
   -------------------------------------------------------------------------- */

.callout {
  background-color: var(--color-surface);
}

.callout-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: var(--space-xl);
}

.callout-content h2 {
  margin-bottom: var(--space-md);
}

.callout-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* Honest-disclosure block used on the services page */
.disclosure {
  background-color: var(--color-surface);
  border-left: 3px solid var(--color-gold);
  padding: var(--space-md) var(--space-lg);
  margin-block: var(--space-md);
}

.disclosure p {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: var(--text-small);
  color: var(--color-text);
  line-height: 1.8;
}

.disclosure strong {
  color: var(--color-gold);
  font-style: normal;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   14. ALTERNATING SERVICE SECTIONS
   -------------------------------------------------------------------------- */

.service-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--space-xl);
  padding-block: var(--space-2xl);
  border-bottom: 1px solid rgba(245, 245, 245, 0.06);
}

.service-row:last-child {
  border-bottom: none;
}

.service-row--flipped .service-media {
  order: 2;
}

.service-row h2 {
  margin-bottom: var(--space-md);
}

.service-row p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.service-row ul {
  margin-block: var(--space-sm) var(--space-md);
}

.service-row ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.service-row ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background-color: var(--color-gold);
}

/* Tier heading above the signature service rows */
.tier-head {
  padding-top: var(--space-2xl);
  margin-bottom: 0;
}

/* Hero note under the page-hero lead */
.page-hero .hero-note {
  margin-top: var(--space-sm);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   14a. CONDENSED SOLUTIONS GRID (services page, additional tier)
   -------------------------------------------------------------------------- */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.solution-card {
  background-color: var(--color-surface);
  border-top: 2px solid var(--color-gold);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: var(--space-md);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    background-color var(--duration-base) var(--ease-out);
}

.solution-card:hover {
  transform: translateY(-6px);
  background-color: var(--color-surface-raised);
  box-shadow: var(--shadow-gold), var(--shadow-card);
}

.solution-card .media-placeholder {
  aspect-ratio: 16 / 10;
  margin-bottom: var(--space-md);
}

.solution-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-sm);
}

.solution-card p {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.solution-card ul {
  margin-block: var(--space-sm) var(--space-md);
}

.solution-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.solution-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background-color: var(--color-gold);
}

.solution-card .card-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-label);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  transition: color var(--duration-fast) var(--ease-out);
}

.solution-card .card-link:hover {
  color: var(--color-gold-hover);
}

/* --------------------------------------------------------------------------
   14b. STORY BODY
   -------------------------------------------------------------------------- */

.story-body {
  max-width: 62ch;
  margin-inline: auto;
  text-align: left;
}

.story-body p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.story-body p:first-child {
  font-size: var(--text-lead);
  color: var(--color-text);
}

.story-body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   15. PROOF POINTS
   -------------------------------------------------------------------------- */

.proof-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.proof-point {
  position: relative;
  padding-top: var(--space-md);
}

.proof-point::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-gold);
}

.proof-point h3 {
  font-size: 20px;
  margin-bottom: var(--space-xs);
}

.proof-point p {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

/* --------------------------------------------------------------------------
   16. PAGE HERO (interior pages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-xl);
  background-image:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(201, 168, 76, 0.06), transparent 65%),
    linear-gradient(180deg, #0d0d0d 0%, #080808 100%);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
}

.page-hero .lead {
  color: var(--color-text-muted);
  margin-inline: auto;
  max-width: 56ch;
}

/* --------------------------------------------------------------------------
   17. CONTACT
   -------------------------------------------------------------------------- */

.contact-block {
  text-align: center;
}

.contact-block .section-label {
  display: block;
}

.contact-phone {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-block: var(--space-sm) var(--space-xs);
  transition: color var(--duration-fast) var(--ease-out);
}

.contact-phone:hover {
  color: var(--color-gold);
}

.contact-detail {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-small);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
  transition: color var(--duration-fast) var(--ease-out);
}

a.contact-detail:hover {
  color: var(--color-gold);
}

.contact-block .btn-group {
  justify-content: center;
  margin-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   17b. PROJECT BUILDER
   -------------------------------------------------------------------------- */

.project-builder {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: var(--space-lg);
}

.builder-step h3 {
  font-size: 18px;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.builder-step h3 .step-number {
  color: var(--color-gold);
  margin-right: 10px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background-color: transparent;
  border: 1px solid rgba(245, 245, 245, 0.15);
  border-radius: var(--radius);
  padding: 12px 20px;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--color-gold);
  color: var(--color-text);
}

.chip:focus-visible {
  outline: 2px solid var(--color-gold-hover);
  outline-offset: 2px;
}

.chip.is-selected {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: rgba(201, 168, 76, 0.08);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.15);
}

.builder-result {
  text-align: center;
  margin-top: var(--space-xl);
}

.builder-summary {
  font-size: clamp(20px, 2.5vw, 26px);
  max-width: 28em;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
}

.builder-summary.is-complete {
  color: var(--color-text);
}

.builder-email.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Intro reassurance line under the builder heading */
.builder-reassure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-md);
}

.builder-reassure span {
  font-size: var(--text-small);
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.builder-reassure span::before {
  content: '\2713';
  color: var(--color-gold);
  margin-right: 8px;
}

/* Progress meter that fills as picks are made */
.builder-progress {
  max-width: 820px;
  margin: 0 auto var(--space-xl);
}

.builder-progress-track {
  height: 3px;
  background-color: rgba(245, 245, 245, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.builder-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background-color: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold-glow);
  transition: width var(--duration-base) var(--ease-out);
}

.builder-progress-text {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: var(--text-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* "Choose any that apply" hint next to a multi-select step */
.builder-step .step-hint {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-left: 10px;
  vertical-align: middle;
}

/* Optional contact block — light-touch, still no pressure */
.builder-details {
  max-width: 820px;
  margin: var(--space-2xl) auto 0;
}

.builder-details-head {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.builder-details-head .section-label {
  display: block;
}

.builder-details-head p {
  margin-inline: auto;
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.field label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.field label .field-optional {
  color: var(--color-gold);
  letter-spacing: 0.12em;
  margin-left: 6px;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--color-text);
  background-color: var(--color-surface-raised);
  border: 1px solid rgba(245, 245, 245, 0.12);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a84c' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px var(--color-gold-dim);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(245, 245, 245, 0.28);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}

.field-help {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Netlify honeypot — kept in the DOM for spam filtering, never shown */
.builder-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.builder-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Confirmation shown after a successful submit */
.builder-thanks {
  max-width: 640px;
  margin: var(--space-xl) auto 0;
  text-align: center;
}

.builder-thanks .section-label {
  display: block;
}

.builder-thanks-text {
  margin-inline: auto;
  color: var(--color-text-muted);
}

.builder-thanks-text a {
  color: var(--color-gold);
  transition: color var(--duration-fast) var(--ease-out);
}

.builder-thanks-text a:hover {
  color: var(--color-gold-hover);
}

/* --------------------------------------------------------------------------
   17c. FAQ ACCORDION
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--color-gold-dim);
}

.faq-item {
  border-bottom: 1px solid var(--color-gold-dim);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  text-align: left;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 22px 4px;
  transition: color var(--duration-fast) var(--ease-out);
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--color-gold);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-gold-hover);
  outline-offset: 2px;
}

.faq-marker {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.faq-marker::before,
.faq-marker::after {
  content: '';
  position: absolute;
  background-color: var(--color-gold);
  transition: transform var(--duration-base) var(--ease-out);
}

.faq-marker::before {
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
}

.faq-marker::after {
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
}

.faq-item.is-open .faq-marker::after {
  transform: scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) var(--ease-out);
}

.faq-answer p {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: 1.8;
  padding: 0 4px 22px;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   17d. RELATED SERVICE LINKS
   -------------------------------------------------------------------------- */

.related-link {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.related-link a {
  color: var(--color-gold);
  border-bottom: 1px solid var(--color-gold-dim);
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.related-link a:hover {
  color: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
}

/* --------------------------------------------------------------------------
   17e. TESTIMONIAL PLACEHOLDERS
   -------------------------------------------------------------------------- */

.testimonial-card {
  background-color: var(--color-bg);
}

.testimonial-quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.testimonial-source {
  display: block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   18. EDITORIAL BAND (service area, quotes)
   -------------------------------------------------------------------------- */

.editorial-band {
  text-align: center;
  padding-block: var(--space-2xl);
}

.editorial-band .editorial {
  max-width: 22em;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-gold-dim);
  padding-block: var(--space-xl) var(--space-lg);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: var(--space-xl);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-logo img {
  height: 56px;
  width: auto;
  mix-blend-mode: screen;
}

.footer-logo .pgs-eyebrow {
  border-left: none;
  padding-left: 0;
  max-width: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.footer-nav a,
.footer-contact a,
.footer-contact span {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--color-gold);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: right;
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(245, 245, 245, 0.06);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   20. UTILITIES
   -------------------------------------------------------------------------- */

.text-center {
  text-align: center;
}

.gold {
  color: var(--color-gold);
}

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

/* --------------------------------------------------------------------------
   20a. FEATURE PHOTO FRAME (real installation photography)
   -------------------------------------------------------------------------- */

.pgs-feature {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--color-gold);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--color-gold-glow), var(--shadow-card);
  overflow: hidden;
}

/* Landscape variant, for photos where the width carries the story */
.pgs-feature--wide {
  width: min(560px, 100%);
  aspect-ratio: 970 / 816;
}

.pgs-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgs-feature .pgs-feature-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 8px 14px;
  border-radius: 2px;
  background-color: rgba(8, 8, 8, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--color-text);
}

.pgs-feature-caption {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  bottom: 0;
  padding: 40px 16px 14px;
  background-image: linear-gradient(to top, rgba(8, 8, 8, 0.82), transparent);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* Slow drift on the photo itself; the frame stays put */
@media (prefers-reduced-motion: no-preference) {
  .pgs-feature--drift img {
    animation: pgs-drift 26s var(--ease-out) infinite alternate;
  }

  @keyframes pgs-drift {
    from {
      transform: scale(1.02);
    }
    to {
      transform: scale(1.1);
    }
  }
}

/* --------------------------------------------------------------------------
   20b. TWO STATES COMPARISON (clear vs frosted, same installation)
   -------------------------------------------------------------------------- */

.pgs-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  max-width: 880px;
  margin-inline: auto;
}

.pgs-compare-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(245, 245, 245, 0.1);
  border-radius: var(--radius);
}

.pgs-compare-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.pgs-compare-item:hover img {
  transform: scale(1.04);
}

.pgs-state-tag {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 2px;
  background-color: rgba(8, 8, 8, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text);
}

.pgs-state-tag .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-state-clear);
  box-shadow: 0 0 8px currentColor;
}

.pgs-state-tag--private .status-dot {
  background-color: var(--color-state-private);
}

.pgs-compare-caption {
  margin-top: var(--space-md);
  margin-inline: auto;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   20c. SCROLL REVEALS
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.8s var(--ease-out),
      transform 0.8s var(--ease-out);
  }

  html.js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   21. RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .card-grid,
  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
  }

  .hero-inner,
  .callout-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block: calc(var(--nav-height) + var(--space-lg)) var(--space-2xl);
  }

  .callout-inner .pdlc-demo {
    order: 2;
    align-items: flex-start;
  }
}

/* The seven-item nav needs real width, so it folds into the hamburger
   earlier than the rest of the mobile layout. */
@media (max-width: 1080px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: #080808;
    border-bottom: 1px solid var(--color-gold-dim);
    padding: var(--space-sm) var(--container-pad) var(--space-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform var(--duration-base) var(--ease-out),
      opacity var(--duration-base) var(--ease-out),
      visibility 0s linear var(--duration-base);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      transform var(--duration-base) var(--ease-out),
      opacity var(--duration-base) var(--ease-out),
      visibility 0s;
  }

  .nav-links a {
    width: 100%;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(245, 245, 245, 0.06);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .nav-cta {
    margin-top: var(--space-md);
    width: 100%;
    border-bottom: 1px solid var(--color-gold);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
  }

  .nav-logo img {
    height: 46px;
  }

  .callout-inner .pgs-feature {
    margin-inline: auto;
  }

  .stats-bar .stats-inner {
    grid-template-columns: 1fr;
    row-gap: var(--space-lg);
    padding-block: var(--space-lg);
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--color-gold-dim);
    padding-bottom: var(--space-lg);
  }

  .stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .service-row,
  .proof-points {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .service-row--flipped .service-media {
    order: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--space-lg);
  }

  .footer-contact {
    text-align: center;
    align-items: center;
  }

  .footer-logo {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .card-grid,
  .applications-grid {
    grid-template-columns: 1fr;
  }

  .nav-logo .pgs-eyebrow {
    display: none;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   22. EDUCATION / LEARNING CENTRE
   -------------------------------------------------------------------------- */

/* Guide tab bar under the page hero, shared by every education page */
.edu-subnav {
  border-top: 1px solid var(--color-gold-dim);
  border-bottom: 1px solid var(--color-gold-dim);
  background-color: var(--color-surface);
}

.edu-subnav-inner {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.edu-subnav-inner::-webkit-scrollbar {
  display: none;
}

.edu-subnav a {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 18px 2px 16px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition:
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.edu-subnav a:hover,
.edu-subnav a:focus-visible {
  color: var(--color-text);
}

.edu-subnav a.is-active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

@media (min-width: 1024px) {
  .edu-subnav-inner {
    justify-content: center;
  }
}

/* Framed reference chart, same gold frame language as the feature photos */
.edu-chart {
  max-width: 880px;
  margin-inline: auto;
}

.edu-chart-frame {
  border: 1px solid var(--color-gold);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--color-gold-glow), var(--shadow-card);
  overflow: hidden;
}

.edu-chart-frame img {
  width: 100%;
}

.edu-chart-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.edu-chart-caption a {
  color: var(--color-gold);
  transition: color var(--duration-fast) var(--ease-out);
}

.edu-chart-caption a:hover {
  color: var(--color-gold-hover);
}

/* VLT reference scale: swatch, percentage, name, where it belongs */
.vlt-scale {
  max-width: 880px;
  margin-inline: auto;
  border-top: 1px solid var(--color-gold-dim);
}

.vlt-scale-row {
  display: grid;
  grid-template-columns: 44px 96px minmax(150px, 0.8fr) 1.6fr;
  align-items: center;
  gap: var(--space-md);
  padding-block: 18px;
  border-bottom: 1px solid var(--color-gold-dim);
}

.vlt-swatch {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 245, 245, 0.15);
  border-radius: 2px;
  background-color: rgb(125, 175, 205);
}

.vlt-scale-pct {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--color-gold);
}

.vlt-scale-name {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
}

.vlt-scale-use {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .vlt-scale-row {
    grid-template-columns: 44px 80px 1fr;
  }

  .vlt-scale-use {
    grid-column: 2 / -1;
  }
}

/* Previous / next guide pager at the foot of each guide */
.edu-pager {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: 880px;
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-gold-dim);
}

.edu-pager a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  transition: color var(--duration-fast) var(--ease-out);
}

.edu-pager a:hover {
  color: var(--color-gold-hover);
}

.edu-pager .pager-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.edu-pager .pager-next {
  text-align: right;
  margin-left: auto;
}

/* Centered copy inside the education call-to-action band */
.edu-cta p {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   23. REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-indicator {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   24. PHOTOGRAPHY IN PLACEHOLDER BOXES
   Minimal rules so real images drop into the same boxes the
   media placeholders held, without touching surrounding layout.
   -------------------------------------------------------------------------- */

.media-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(245, 245, 245, 0.08);
  border-radius: var(--radius);
}

.solution-card .media-photo {
  aspect-ratio: 16 / 10;
  margin-bottom: var(--space-md);
}

.card .media-photo {
  aspect-ratio: 16 / 10;
  margin-bottom: var(--space-md);
}

/* Application tiles: photo sits behind the existing icon, title and
   bottom gradient. isolation keeps the negative z-index inside the tile. */
.application-tile {
  isolation: isolate;
}

.application-tile .tile-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Standalone framed photo on the about and contact pages */
.pgs-feature--inset {
  margin-inline: auto;
  margin-top: var(--space-xl);
}

/* --------------------------------------------------------------------------
   SWITCHABLE HERO (clear lake view <-> private, hard snap like real glass)
   -------------------------------------------------------------------------- */

.hero-switch {
  position: relative;
  width: min(560px, 100%);
}

.hero-switch-stage {
  position: relative;
  aspect-ratio: 970 / 816;
  border: 1px solid var(--color-gold);
  border-radius: 2px;
  box-shadow: 0 0 22px rgba(201, 168, 76, 0.28), var(--shadow-card);
  overflow: hidden;
}

.hero-switch-img {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-switch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Frosted layer on top. No transition: the state change is instant. */
.hero-switch-frost {
  opacity: 0;
  transition: none;
}

.hero-switch.is-private .hero-switch-frost {
  opacity: 1;
}

.hero-switch-status {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 3px;
  background-color: rgba(8, 8, 8, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text);
}

.hero-switch-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-state-clear);
  box-shadow: 0 0 8px currentColor;
}

.hero-switch.is-private .hero-switch-status .status-dot {
  background-color: var(--color-state-private);
}

.hero-switch-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-md);
}

.hero-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--color-gold);
  background-color: rgba(201, 168, 76, 0.12);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.hero-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-gold);
  transition: transform var(--duration-fast) var(--ease-out);
}

.hero-switch.is-private .hero-switch-track {
  background-color: rgba(201, 168, 76, 0.32);
}

.hero-switch.is-private .hero-switch-thumb {
  transform: translateX(24px);
}

.hero-switch-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.hero-switch-toggle:hover .hero-switch-label,
.hero-switch-toggle:focus-visible .hero-switch-label {
  color: var(--color-gold);
}

.hero-switch-toggle:focus-visible {
  outline: 2px solid var(--color-gold-hover);
  outline-offset: 3px;
}
