/* ═══════════════════════════════════════════════════════════
SANEFTEC — Shared Stylesheet
style.css · All pages

Colour system:
- Green  (#2A5446)  → Saneftec brand, homepage, puzzles
- Blue   (#1E7FD8)  → APECS only
- Amber  (#A8784A)  → Saneftec Puzzles accents
═══════════════════════════════════════════════════════════ */

/* ── RESET & BASE ───────────────────────────────────────── */

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

:root {
  /* Neutrals */
  --ink:        #0F0F0E;
  --ink2:       #1A1A18;
  --white:      #FDFCF9;
  --cream:      #F2EDE3;
  --parchment:  #EAE4D8;
  --muted:      #5A5650;
  --rule:       #D0CAC0;
  --rule-lt:    #E2DDD5;
  
  /* Saneftec green (brand / homepage / puzzles context) */
  --green:      #2A5446;
  --green-mid:  #3D7A67;
  --green-lt:   #E4EFEB;
  --green-glow: rgba(42,84,70,0.15);
  
  /* APECS blue */
  --blue:       #1E7FD8;
  --blue-dk:    #1566B5;
  --blue-lt:    #E8F1FB;
  --blue-glow:  rgba(30,127,216,0.15);
  --black-glow:  rgba(0, 0, 0, 0.15);
  
  
  /* Puzzles amber */
  --amber:      #A8784A;
  --amber-dk:   #7C5430;
  --amber-lt:   #F5EBD8;
  
  /* Red (ribbon) */
  --red:        #C04030;
  
  /* Typography */
  --f-serif:    "Cormorant Garamond", Georgia, serif;
  --f-sans:     "Jost", sans-serif;
  
  /* Motion */
  --ease:       cubic-bezier(0.22, 0.1, 0.36, 1);
  --ease-out:   cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* fonts */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-Italic-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('../fonts/Jost-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('../fonts/Jost-Italic-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-sans);
  font-weight: 300;
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain texture overlay — decorative, on all pages */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  aria-hidden: true;
}

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

/* ── ACCESSIBILITY ──────────────────────────────────────── */

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 10000;
  background: var(--green); color: #fff;
  font-family: var(--f-sans); font-size: 0.82rem; font-weight: 500;
  padding: 0.75rem 1.5rem; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 2px; }

/* Page-level focus ring — green by default, blue on APECS pages */
:focus-visible {
  outline: 2.5px solid var(--green);
  outline-offset: 3px;
}
.page-apecs :focus-visible { outline-color: var(--blue); }

/* Dark-surface focus override */
.on-dark :focus-visible,
.hero-dark :focus-visible,
footer :focus-visible { outline-color: rgba(255,255,255,0.8); }


/* ── LAYOUT UTILITIES ───────────────────────────────────── */

.wrap {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
}

.section { padding: clamp(5rem, 8vw, 10rem) 0; }
.section-sm { padding: clamp(3rem, 5vw, 6rem) 0; }

/* Section label — eyebrow text above headings */
.label {
  display: flex; align-items: center; gap: 0.85rem;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 2rem;
}
.label::before { content: ""; width: 28px; height: 2px; flex-shrink: 0; }

/* Green label (default / homepage / puzzles) */
.label,
.label-green { color: var(--green); }
.label::before,
.label-green::before { background: var(--green); }

/* Blue label (APECS pages) */
.label-blue { color: var(--blue); }
.label-blue::before { background: var(--blue); }

/* Amber label (Puzzles page) */
.label-amber { color: var(--amber); }
.label-amber::before { background: var(--amber); }

/* Divider rule */
.rule { width: 100%; height: 1px; background: var(--rule); }


/* ── TYPOGRAPHY ─────────────────────────────────────────── */

.serif { font-family: var(--f-serif); }

h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 300; line-height: 1.1; }

.display-xl {
  font-size: clamp(3.8rem, 6.5vw, 7.5rem);
  letter-spacing: -0.02em; line-height: 0.92;
}
.display-lg {
  font-size: clamp(3rem, 5vw, 6rem);
  letter-spacing: -0.015em; line-height: 0.95;
}
.display-md {
  font-size: clamp(2.4rem, 3.5vw, 4rem);
  line-height: 1.1;
}
.display-sm {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  line-height: 1.15;
}

.body-lg { font-size: 1.05rem; font-weight: 300; line-height: 1.9; color: var(--muted); }
.body-md { font-size: 1rem;    font-weight: 300; line-height: 1.85; color: var(--muted); }
.body-sm { font-size: 0.88rem; font-weight: 400; line-height: 1.7;  color: var(--muted); }

.em-green { font-style: italic; color: var(--green); }
.em-blue  { font-style: italic; color: var(--blue); }
.em-amber { font-style: italic; color: var(--amber); }


/* ── BUTTONS ────────────────────────────────────────────── */

/* Base button reset */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--f-sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 0.92rem 2.2rem; min-height: 44px; border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.3s var(--ease); white-space: nowrap;
}

/* Filled green */
.btn-green {
  background: var(--green); color: #fff; border-color: var(--green);
}
.btn-green:hover { background: #1E3D33; border-color: #1E3D33; }

/* Outline green */
.btn-outline-green {
  background: transparent; color: var(--green); border-color: var(--green);
}
.btn-outline-green:hover { background: var(--green); color: #fff; }

/* Filled blue (APECS) */
.btn-blue {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.btn-blue:hover { background: var(--blue-dk); border-color: var(--blue-dk); }

/* Outline blue */
.btn-outline-blue {
  background: transparent; color: var(--blue); border-color: var(--blue);
}
.btn-outline-blue:hover { background: var(--blue); color: #fff; }

/* Ghost ink (light bg) */
.btn-ghost {
  background: transparent; color: var(--muted);
  border-color: var(--rule); padding-left: 0; padding-right: 0;
  border-top: none; border-left: none; border-right: none;
  border-bottom-width: 1px;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

/* Light (on dark backgrounds) */
.btn-light {
  background: transparent; color: var(--cream);
  border-color: rgba(242,237,227,0.35);
}
.btn-light:hover { border-color: var(--cream); background: rgba(242,237,227,0.07); }

/* White (on blue CTA bands) */
.btn-white {
  background: #fff; color: var(--blue); border-color: #fff;
}
.btn-white:hover { background: rgba(255,255,255,0.9); }


/* ── RIBBON ─────────────────────────────────────────────── */

.ribbon {
  position: relative;
  z-index: 301;
  background: var(--red); color: #fff;
  font-family: var(--f-sans); font-size: 0.6rem;
  font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.45rem 0; overflow: hidden; white-space: nowrap;
  display: block;
  cursor: pointer;
  text-decoration: none;
}
.ribbon-track {
  display: inline-flex;
  animation: ticker 30s linear infinite;
  pointer-events: none;
}
.ribbon-track span { padding: 0 2.5rem; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── NAVIGATION ─────────────────────────────────────────── */

nav.primary {
  position: sticky; top: 0; z-index: 300;
  background: rgba(253,252,249,0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: 1340px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  height: 62px; display: flex; align-items: center; justify-content: space-between;
}




/* Logo */
.logo {
  font-family: var(--f-serif); font-size: 1.5rem;
  font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
  
}
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; }

.logo .logo-accent { color: var(--green); }
/* On APECS pages, logo accent is blue */
.page-apecs .logo .logo-accent { color: var(--blue); }

/* Nav links */
.nav-links {
  display: flex; list-style: none; align-items: center;
}
.nav-links a {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 0.5rem 1.1rem;
  display: inline-flex; align-items: center; min-height: 44px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--green); }
.page-apecs .nav-links a[aria-current="page"] { color: var(--blue); }

/* Contact link — intentionally plain, no border or highlight */
.nav-links .nav-cta {
  color: var(--muted);
  border: none;
  background: none;
  margin-left: 0;
  padding: 0.5rem 1.1rem;
}
.nav-links .nav-cta:hover { color: var(--ink); background: none; }

/* Language switcher */
.lang-wrap {
  display: flex; align-items: center; gap: 0.2rem; margin-left: 1.5rem;
}
.lang-btn {
  font-family: var(--f-sans); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); background: none; border: none; cursor: pointer;
  padding: 0.3rem 0.45rem; min-height: 44px;
  display: flex; align-items: center; transition: color 0.2s;
}
.lang-btn[aria-current="true"] { color: var(--ink); border-bottom: 1.5px solid var(--ink); }
.lang-btn:hover { color: var(--ink); }
.lang-sep { color: var(--rule); font-size: 0.55rem; -webkit-user-select: none; user-select: none; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); transition: 0.3s;
}


/* ── MARQUEE BAR ────────────────────────────────────────── */

.marquee-bar {
  background: var(--ink); overflow: hidden; padding: 0.85rem 0;
}
.marquee-track {
  display: inline-flex; white-space: nowrap;
  animation: ticker 45s linear infinite;
}
.mitem {
  display: flex; align-items: center; gap: 2.5rem; padding: 0 2.5rem;
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(242,237,227,0.45);
}
.mdot {
  width: 3px; height: 3px; border-radius: 50%; flex-shrink: 0; opacity: 0.7;
}
.mdot-green { background: var(--green-mid); }
.mdot-blue  { background: var(--blue); }


/* ══════════════════════════════════════════════════════════
HOMEPAGE SPECIFIC
══════════════════════════════════════════════════════════ */

/* Hero — CSS gradient, no image */
.hero-home {
  min-height: 94vh;
  display: grid; grid-template-columns: 55% 45%;
  position: relative; overflow: hidden;
}

.hero-home-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(4rem,8vw,8rem) clamp(2rem,5vw,5rem) clamp(4rem,8vw,8rem) clamp(2rem,7vw,7rem);
  background: var(--white); position: relative; z-index: 2;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.15s forwards;
}
.hero-eyebrow::before {
  content: ""; width: 36px; height: 2px; background: var(--green); flex-shrink: 0;
}
.hero-eyebrow span {
  font-size: 0.63rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--green);
}

.hero-home h1 {
  font-family: var(--f-serif);
  font-size: clamp(3.8rem, 6.5vw, 7rem);
  font-weight: 300; line-height: 0.95; letter-spacing: -0.015em; color: var(--ink);
  margin-bottom: 2.75rem;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.3s forwards;
}
.hero-home h1 em { font-style: italic; font-weight: 300; color: var(--green); }

.hero-sub {
  font-size: 1rem; font-weight: 300; line-height: 1.9;
  color: var(--muted); max-width: 44ch; margin-bottom: 3.5rem;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.45s forwards;
}

.hero-actions {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.6s forwards;
}

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid var(--rule);
  opacity: 0; animation: fadeUp 1s var(--ease) 0.75s forwards;
}
.hstat-n {
  font-family: var(--f-serif); font-size: 2.2rem;
  font-weight: 300; line-height: 1; color: var(--ink);
}
.hstat-n em { font-style: normal; color: var(--green); }
.hstat-l {
  font-size: 0.63rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.3rem;
}




/* Hero right — atmospheric CSS gradient, no photo */
.hero-home-right {
  position: relative; overflow: hidden; background: var(--ink2);
}
.hero-gradient-bg {
  position: absolute; inset: 0;
  background:
  radial-gradient(ellipse 80% 60% at 60% 30%, rgba(42,84,70,0.5) 0%, transparent 55%),
  radial-gradient(ellipse 60% 80% at 20% 80%, rgba(124,91,53,0.3) 0%, transparent 50%),
  radial-gradient(ellipse 50% 50% at 85% 70%, rgba(42,84,70,0.15) 0%, transparent 40%);
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
  linear-gradient(rgba(244,240,232,0.04) 1px, transparent 1px),
  linear-gradient(90deg, rgba(244,240,232,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
}
.hero-visual-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 3.5rem;
  opacity: 0; animation: fadeIn 1.5s var(--ease) 0.8s forwards;
}
.hero-label-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  border-top: 1px solid rgba(244,240,232,0.12); padding-top: 1.5rem;
}
.hlb-num {
  font-family: var(--f-serif); font-size: 2rem;
  font-weight: 300; color: var(--cream); line-height: 1;
}
.hlb-label {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(244,240,232,0.5); margin-top: 0.25rem;
}
.hero-year-badge {
  position: absolute; top: 2.5rem; right: 2.5rem;
  font-family: var(--f-serif); font-size: 0.75rem;
  color: rgba(244,240,232,0.3); writing-mode: vertical-rl;
}
.scroll-cue {
  position: absolute; bottom: -12rem; right: 5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(244,240,232,0.3);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(244,240,232,0.3), transparent);
  animation: scrollpulse 2s ease infinite;
}

/* Intro section */
.intro-section { background: var(--parchment); }
.intro-grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: clamp(4rem, 7vw, 8rem); align-items: start;
}
.intro-aside-stat { margin-bottom: 2.5rem; }
.big-num {
  font-family: var(--f-serif); font-size: 3.5rem;
  font-weight: 300; line-height: 1; color: var(--ink);
}
.big-num em { font-style: normal; color: var(--green); }
.small-label {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.35rem;
}
.intro-pillars {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem;
}
.pillar-line {
  width: 24px; height: 2px; background: var(--green); margin-bottom: 1rem;
}
.pillar-title {
  font-family: var(--f-serif); font-size: 1.15rem;
  font-weight: 400; color: var(--ink); margin-bottom: 0.5rem;
}
.pillar-text {
  font-size: 0.875rem; font-weight: 400; line-height: 1.7; color: var(--muted);
}

/* Products diptych */
.products-hdr {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: end; margin-bottom: 3.5rem;
}

.diptych {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule); overflow: hidden; min-height: 620px;
}

/* APECS panel (dark / blue) */
.panel-apecs {
  background: var(--ink2); position: relative; overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.panel-apecs-bg {
  position: absolute; inset: 0;
  background:
  radial-gradient(ellipse 80% 60% at 30% 80%, rgba(30,127,216,0.35) 0%, transparent 55%),
  radial-gradient(ellipse 50% 50% at 80% 20%, rgba(30,127,216,0.15) 0%, transparent 50%);
}
.panel-apecs-grid {
  position: absolute; inset: 0;
  background-image:
  linear-gradient(rgba(30,127,216,0.06) 1px, transparent 1px),
  linear-gradient(90deg, rgba(30,127,216,0.06) 1px, transparent 1px);
  background-size: 38px 38px;
}
.panel-apecs-img {
  position: absolute; bottom: 0; right: -4%;
  width: 70%; max-width: 340px; opacity: 0.9;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.6));
  transition: transform 0.8s var(--ease);
}
.panel-apecs:hover .panel-apecs-img { transform: translateY(-6px); }

/* Puzzle panel (warm / dark) */
.panel-puzzles {
  background: #100E0B; position: relative; overflow: hidden;
}
.panel-puzzles-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.9s var(--ease); opacity: 0.55;
}
.panel-puzzles:hover .panel-puzzles-photo { transform: scale(1.04); }
.panel-puzzles-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,8,5,0.97) 0%, rgba(10,8,5,0.7) 40%, rgba(10,8,5,0.2) 100%);
}

.panel-puzzles {
  background: 
  radial-gradient(ellipse at 30% 60%, rgba(124, 91, 53, 0.55) 0%, transparent 65%),
  radial-gradient(ellipse at 80% 20%, rgba(160, 110, 55, 0.3) 0%, transparent 55%),
  radial-gradient(ellipse at 60% 90%, rgba(80, 50, 20, 0.4) 0%, transparent 50%),
  linear-gradient(160deg, #1a1208 0%, #0f0b06 50%, #1c1306 100%);
  position: relative; 
  overflow: hidden;
}

.panel-puzzles-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.3;
  mix-blend-mode: luminosity;
  z-index: 0;
}


/* Panel shared content */
.panel-content {
  position: absolute; inset: 0; padding: 2.75rem;
  display: flex; flex-direction: column; justify-content: space-between; z-index: 2;
}
.ptag {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; display: inline-block; padding: 0.3rem 0.7rem;
}
.ptag-blue  { color: var(--blue);  border: 1px solid rgba(30,127,216,0.5); }
.ptag-amber { color: #D4915A;      border: 1px solid rgba(212,145,90,0.4); }
.panel-h3 {
  font-family: var(--f-serif);
  font-size: clamp(2.8rem, 3.5vw, 4.2rem);
  font-weight: 300; line-height: 0.95; margin: 1.5rem 0 1rem;
}
.panel-h3-light { color: var(--cream); }
.panel-h3-amber { color: #EDE0CC; }
.panel-h3 em    { font-style: italic; color: var(--blue); opacity: 0.9; }
.panel-sub {
  font-size: 0.9rem; font-weight: 300; line-height: 1.8; max-width: 34ch;
}
.panel-sub-light { color: rgba(242,237,227,0.62); }
.panel-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.09);
}
.panel-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none;
  min-height: 44px; transition: 0.2s;
}
.panel-cta-blue  { color: var(--blue);  border-bottom: 1px solid rgba(30,127,216,0.4); padding-bottom: 2px; }
.panel-cta-blue:hover  { border-color: var(--blue); }
.panel-cta-amber { color: #D4915A;      border-bottom: 1px solid rgba(212,145,90,0.4); padding-bottom: 2px; }
.panel-cta-amber:hover { border-color: #D4915A; }
.panel-stat { text-align: right; }
.panel-stat-n {
  font-family: var(--f-serif); font-size: 1.6rem;
  font-weight: 300; color: rgba(242,237,227,0.45); line-height: 1;
}
.panel-stat-l {
  font-size: 0.58rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(242,237,227,0.3);
}

/* Kickstarter badge */
.kick-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #E86B59; border: 1px solid rgba(232,107,89,0.45); padding: 0.3rem 0.75rem;
}
.kick-dot {
  width: 5px; height: 5px; border-radius: 50%; background: #E86B59;
  animation: blink 1.6s ease infinite;
}

/* Research band */
.research-band { background: var(--parchment); border-top: 1px solid var(--rule); }
.research-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(4rem, 6vw, 7rem); align-items: start;
}

/* Citation cards */
.cite-list { list-style: none; }
.cite-card {
  background: var(--white); border: 1px solid var(--rule);
  padding: 1.3rem 1.5rem; margin-bottom: -1px;
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem;
  transition: background 0.2s;
}
.cite-card:hover { background: var(--green-lt); z-index: 1; position: relative; }
.page-apecs .cite-card:hover { background: var(--blue-lt); }
.cite-n {
  font-family: var(--f-serif); font-size: 0.9rem; color: var(--rule); padding-top: 2px;
}
.cite-body { font-size: 0.82rem; font-weight: 300; line-height: 1.65; color: var(--muted); }
.cite-body strong { font-weight: 500; color: var(--ink); }
.cite-tags { display: flex; gap: 0.35rem; margin-top: 0.5rem; flex-wrap: wrap; }
.ctag {
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border: 1px solid var(--rule); color: var(--muted);
}
.ctag-green { border-color: rgba(42,84,70,0.4);   color: var(--green); }
.ctag-blue  { border-color: rgba(30,127,216,0.4);  color: var(--blue); }
.ctag-amber { border-color: rgba(168,120,74,0.4);  color: var(--amber); }

.cite-footer {
  background: var(--ink);
  display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem;
}
.cite-footer span {
  font-size: 0.67rem; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(242,237,227,0.5);
}
.cite-footer a {
  font-size: 0.67rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1px; min-height: 44px; display: inline-flex; align-items: center;
  transition: color 0.2s;
}
.cite-footer a:hover { opacity: 0.8; }
.cite-footer-green a { color: var(--green-mid); border-bottom-color: rgba(61,122,103,0.4); }
.cite-footer-blue  a { color: var(--blue);      border-bottom-color: rgba(30,127,216,0.4); }

/* About band */
.about-band {
  background: var(--ink); color: var(--cream);
  position: relative; overflow: hidden;
}
.about-bg-grad {
  position: absolute; inset: 0;
  background:
  radial-gradient(ellipse 60% 80% at 10% 50%, rgba(42,84,70,0.2) 0%, transparent 55%),
  radial-gradient(ellipse 40% 60% at 90% 30%, rgba(124,91,53,0.1) 0%, transparent 50%);
}

/* Blog section — 3-column aligned grid
Uses border-collapse technique: outer border on wrapper,
right border on each card except last. No background trick
so hover states work cleanly. */
.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  list-style: none;
  border: 1px solid var(--rule);
  /* Stretch all cells to equal height automatically */
  align-items: stretch;
}
.blog-card {
  background: var(--white);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: background 0.2s;
  /* Right-side divider between columns */
  border-right: 1px solid var(--rule);
}
.blog-card:last-child { border-right: none; }
.blog-card:hover { background: var(--green-lt); }
.page-apecs .blog-card:hover { background: var(--blue-lt); }
.bc-meta {
  display: flex; align-items: center; justify-content: space-between;
}
.bc-tag {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.bc-tag-green  { color: var(--green); }
.bc-tag-blue   { color: var(--blue); }
.bc-tag-amber  { color: var(--amber); }
.bc-tag-muted  { color: var(--muted); }
.bc-date {
  font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.bc-title {
  font-family: var(--f-serif); font-weight: 400;
  line-height: 1.2; color: var(--ink);
}
.blog-card.featured .bc-title { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.blog-card:not(.featured) .bc-title { font-size: 1.05rem; }
.bc-excerpt {
  font-size: 0.9rem; font-weight: 300; line-height: 1.75; color: var(--muted);
}
.blog-card:not(.featured) .bc-excerpt { display: none; }
.bc-read {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: auto; min-height: 44px; transition: opacity 0.2s;
}
.page-apecs .bc-read { color: var(--blue); }
.bc-read:hover { opacity: 0.75; }


/* ══════════════════════════════════════════════════════════
APECS PAGE SPECIFIC
══════════════════════════════════════════════════════════ */

/* Hero — full dark blue */
.hero-apecs {
  background: var(--ink2); min-height: 96vh;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}

.hero-apecs .scroll-cue {
  bottom: 20rem;
  color: rgba(184, 182, 178, 0.4);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1s forwards;
}



.hero-apecs-bg {
  position: absolute; inset: 0;
  background:
  radial-gradient(ellipse 100% 80% at 20% 50%, rgba(30,127,216,0.28) 0%, transparent 55%),
  radial-gradient(ellipse 60% 60% at 85% 20%, rgba(30,127,216,0.14) 0%, transparent 50%),
  radial-gradient(ellipse 50% 70% at 60% 90%, rgba(30,127,216,0.08) 0%, transparent 50%);
}
.hero-apecs-grid {
  position: absolute; inset: 0;
  background-image:
  linear-gradient(rgba(30,127,216,0.07) 1px, transparent 1px),
  linear-gradient(90deg, rgba(30,127,216,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-apecs-left {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(4rem,7vw,8rem) clamp(2rem,5vw,5rem) clamp(4rem,7vw,8rem) clamp(2rem,7vw,7rem);
}
.hero-apecs-right {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
  padding: 4rem 6rem 4rem 0;
  margin-top: -6rem;
}
.hero-apecs-phone {
  position: relative; width: 90%; max-width: 280px;
  opacity: 0; animation: floatUp 1.2s var(--ease) 0.8s forwards;
}
.hero-apecs-phone img {
  width: 100%; filter: drop-shadow(0 40px 80px rgba(0,0,0,0.6));
}

/* Pill tag in hero */
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.1s forwards;
}
.hero-pill-tag {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue); border: 1px solid rgba(30,127,216,0.6); padding: 0.3rem 0.85rem;
}
.hero-pill-divider { width: 1px; height: 14px; background: rgba(242,237,227,0.15); }
.hero-pill-sub {
  font-size: 0.6rem; font-weight: 400; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(242,237,227,0.4);
}

/* APECS credibility bar */
.cred-bar {
  background: var(--blue); padding: 0;
  display: grid; grid-template-columns: repeat(4,1fr);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cred-item {
  padding: 1.75rem 2rem; border-right: 1px solid rgba(255,255,255,0.12); text-align: center;
}
.cred-item:last-child { border-right: none; }
.cred-n {
  font-family: var(--f-serif); font-size: 2.4rem;
  font-weight: 300; color: #fff; line-height: 1;
}
.cred-l {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 0.35rem;
}

/* Store buttons */
.store-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.store-btns a { display: inline-block; line-height: 0; }
.store-btns img { height: 44px; width: auto; transition: opacity 0.2s ease; }
.store-btns a:hover img { opacity: 0.8; }

.store-btns-lg { display: flex; justify-content: center; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.store-btns-lg a { display: inline-block; line-height: 0; }
.store-btns-lg img { height: 54px; width: auto; transition: opacity 0.2s ease; }
.store-btns-lg a:hover img { opacity: 0.8; }


/*Billing toggle */
#billing-toggle.on { background: var(--blue) !important; }
#billing-toggle.on .toggle-thumb { transform: translateX(22px); }


/* Feature rows (alternating) */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem,5vw,6rem); align-items: center;
  margin-bottom: clamp(5rem,8vw,9rem);
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-num {
  font-family: var(--f-serif); font-size: 5rem; font-weight: 300; line-height: 1;
  color: rgba(30,127,216,0.12); margin-bottom: 0.5rem; display: block;
}
.feature-detail-list { list-style: none; margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.7rem; }
.feature-detail-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.88rem; font-weight: 400; color: var(--muted); line-height: 1.6;
}
.feature-detail-list li::before {
  content: ""; width: 16px; height: 1.5px; background: var(--blue);
  flex-shrink: 0; margin-top: 0.6rem;
}

.phone-mockup-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
  padding: 0;
  background: none;
}
.phone-mockup-wrap img {
  max-height: 420px;
  width: 100%;
  object-fit: cover;
  filter: drop-shadow(0 20px 50px rgba(87, 58, 0, 0.25));
}

/* Proof chips */
.proof-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-width: 1px; border-style: solid;
}
.chip::before { content: "✓"; font-size: 0.7rem; }
.chip-blue  { color: var(--blue);  background: var(--blue-lt);  border-color: rgba(30,127,216,0.2); }
.chip-green { color: var(--green); background: var(--green-lt); border-color: rgba(42,84,70,0.2); }

/* Platform list */
.platform-list { list-style: none; }
.platform-item {
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.88rem; font-weight: 300; color: rgba(242,237,227,0.65);
}
.platform-item:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.platform-icon { font-size: 1rem; width: 1.5rem; text-align: center; flex-shrink: 0; margin-top: 0.1rem; }
.platform-item strong { font-weight: 500; color: var(--cream); }

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); margin-top: 2.5rem;
}
.plan-card {
  background: var(--white); padding: 2.75rem;
  display: flex; flex-direction: column; transition: background 0.2s;
}
.plan-card.featured { background: var(--ink2); }
.plan-badge {
  display: inline-block; font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--blue); padding: 0.2rem 0.5rem; margin-bottom: 1rem;
}
.plan-name {
  font-family: var(--f-serif); font-size: 1.5rem; font-weight: 400;
  color: var(--ink); margin-bottom: 0.35rem;
}
.plan-card.featured .plan-name { color: var(--cream); }
.plan-tagline { font-size: 0.72rem; font-weight: 400; color: var(--muted); margin-bottom: 2rem; }
.plan-card.featured .plan-tagline { color: rgba(242,237,227,0.55); }
.plan-price { display: flex; align-items: baseline; gap: 0.35rem; margin-bottom: 0.5rem; }
.price-amount {
  font-family: var(--f-serif); font-size: 3rem; font-weight: 300; line-height: 1; color: var(--ink);
}
.plan-card.featured .price-amount { color: #fff; }
.price-free { font-family: var(--f-serif); font-size: 2.2rem; font-weight: 300; color: var(--muted); }
.price-currency { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan-card.featured .price-currency { color: rgba(242,237,227,0.6); }
.price-period { font-size: 0.72rem; font-weight: 400; color: var(--muted); }
.plan-card.featured .price-period { color: rgba(242,237,227,0.5); }
.plan-annual-note { font-size: 0.68rem; color: var(--muted); margin-bottom: 2rem; }
.plan-card.featured .plan-annual-note { color: rgba(242,237,227,0.45); }
.plan-annual-note strong { color: var(--blue); }
.plan-rule { width: 100%; height: 1px; background: var(--rule); margin-bottom: 2rem; }
.plan-card.featured .plan-rule { background: rgba(255,255,255,0.1); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; margin-bottom: 2.5rem; }
.plan-feat {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.875rem; font-weight: 300; color: var(--muted); line-height: 1.5;
}
.plan-card.featured .plan-feat { color: rgba(242,237,227,0.7); }
.feat-check { color: var(--blue); font-weight: 600; flex-shrink: 0; font-size: 0.85rem; margin-top: 0.05rem; }
.feat-x { color: var(--rule); flex-shrink: 0; font-size: 0.85rem; margin-top: 0.05rem; }
.plan-card.featured .feat-x { color: rgba(255,255,255,0.2); }
.plan-trial { font-size: 0.68rem; font-weight: 400; color: rgba(242,237,227,0.45); text-align: center; margin-top: 0.75rem; }
.scholarship-note {
  text-align: center; margin-top: 2.5rem; padding: 1.5rem 2rem;
  border: 1px solid var(--blue-lt); background: var(--blue-lt);
  font-size: 0.88rem; font-weight: 300; color: var(--muted); line-height: 1.75;
}
.scholarship-note a { color: var(--blue); text-decoration: none; font-weight: 500; }
.scholarship-note a:hover { text-decoration: underline; }

/* Research CTA (blue band) */
.research-cta-band {
  background: var(--blue); padding: clamp(4rem,6vw,7rem) 0;
}
.research-cta-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center;
}

/* Who-uses tags */
.who-uses { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.who-tag {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--rule); padding: 0.4rem 0.85rem;
}


/* ══════════════════════════════════════════════════════════
PUZZLES PAGE SPECIFIC
══════════════════════════════════════════════════════════ */

.hero-puzzles {
  background: #0E0B08; min-height: 92vh;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.hero-puzzles-bg {
  position: absolute; inset: 0;
  background:
  radial-gradient(ellipse 80% 60% at 70% 30%, rgba(168,120,74,0.35) 0%, transparent 55%),
  radial-gradient(ellipse 60% 70% at 20% 80%, rgba(124,91,53,0.25) 0%, transparent 50%);
}

/* Design cards */
.design-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.design-card {
  background: var(--white); display: flex; flex-direction: column;
  overflow: hidden; transition: background 0.2s;
}
.design-card:hover { background: var(--amber-lt); }
.design-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.design-card-body { padding: 2.25rem; flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.design-num {
  font-family: var(--f-serif); font-size: 0.85rem; color: var(--rule);
}
.design-name {
  font-family: var(--f-serif); font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 300; line-height: 1.15; color: var(--ink);
}
.design-detail {
  font-size: 0.85rem; font-weight: 300; line-height: 1.75; color: var(--muted);
}
.design-specs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.spec-tag {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(168,120,74,0.35); padding: 0.25rem 0.6rem;
}


/* ══════════════════════════════════════════════════════════
SHARED DARK SECTION (About band, Download CTA, etc.)
══════════════════════════════════════════════════════════ */

.dark-section { background: var(--ink2); color: var(--cream); }
.dark-section p { color: rgba(242,237,227,0.65); }
.dark-section .label-green { color: rgba(61,122,103,0.8); }

.value-list { list-style: none; }
.value-item {
  padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.25rem;
}
.value-item:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.v-num {
  font-family: var(--f-serif); font-size: 0.95rem;
  color: rgba(242,237,227,0.22); padding-top: 3px;
}
.v-title { font-family: var(--f-serif); font-size: 1.1rem; font-weight: 400; color: var(--cream); margin-bottom: 0.35rem; }
.v-text  { font-size: 0.875rem; font-weight: 400; line-height: 1.7; color: rgba(242,237,227,0.55); }


/* ══════════════════════════════════════════════════════════
FOOTER
══════════════════════════════════════════════════════════ */

footer {
  background: var(--ink); padding: clamp(4rem,7vw,7rem) 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { font-family: var(--f-serif); font-size: 1.5rem; font-weight: 400; color: var(--cream); margin-bottom: 1rem; }
.footer-logo .logo-accent { color: var(--green-mid); }
.page-apecs .footer-logo .logo-accent { color: var(--blue); }
.footer-tagline { font-size: 0.85rem; font-weight: 300; line-height: 1.75; color: rgba(242,237,227,0.55); max-width: 30ch; margin-bottom: 1.5rem; }
.footer-loc { display: flex; align-items: center; gap: 0.5rem; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242,237,227,0.4); }
.footer-loc::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green-mid); opacity: 0.7; }
.page-apecs .footer-loc::before { background: var(--blue); }
.footer-col-head { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242,237,227,0.4); margin-bottom: 1.5rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-links a { font-size: 0.83rem; font-weight: 300; color: rgba(242,237,227,0.65); text-decoration: none; transition: color 0.2s; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; color: rgba(242,237,227,0.35); flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: rgba(242,237,227,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--cream); }


/* ══════════════════════════════════════════════════════════
ANIMATIONS
══════════════════════════════════════════════════════════ */

@keyframes fadeUp   { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:none; } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes floatUp  { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:none; } }
@keyframes scrollpulse { 0%,100% { opacity:0.3; } 50% { opacity:0.8; } }
@keyframes blink    { 0%,100% { opacity:1; } 50% { opacity:0.2; } }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }


/* ══════════════════════════════════════════════════════════
RESPONSIVE
══════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .hero-home        { grid-template-columns: 1fr; min-height: auto; }
  .hero-home-right  { height: 55vw; min-height: 280px; }
  .hero-puzzles     { grid-template-columns: 1fr; }
  .intro-grid       { grid-template-columns: 1fr; }
  .research-inner   { grid-template-columns: 1fr; }
  .cred-bar         { grid-template-columns: repeat(2,1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .research-cta-inner { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
}

@media (max-width: 1100px) {
  .hero-apecs {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 4rem;
  }
  .hero-apecs-right {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: auto;
    padding: 2rem;
    margin-top: 0;
  }
  .hero-apecs-phone {
    max-width: 180px;
  }
  .hero-apecs .scroll-cue {
    display: none;
  }
  .store-btns {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .products-hdr     { grid-template-columns: 1fr; }
  .products-hdr p   { text-align: left; }
  .diptych          { grid-template-columns: 1fr; min-height: auto; }
  .panel-apecs, .panel-puzzles { min-height: 520px; border-right: none; }
  .panel-apecs      { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .design-cards     { grid-template-columns: 1fr; }
  .intro-pillars    { grid-template-columns: 1fr 1fr; }
  .pricing-grid     { grid-template-columns: 1fr; }
  .blog-grid        { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    background: var(--white); flex-direction: column;
    border-bottom: 1px solid var(--rule);
    padding: 1.5rem clamp(1.5rem,4vw,3.5rem);
    z-index: 299; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open   { display: flex; }
  .hamburger        { display: flex; }
  .intro-pillars    { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; }
  .hero-stats       { gap: 1.5rem; flex-wrap: wrap; }
  .cred-bar         { grid-template-columns: 1fr 1fr; }
}

/* ribbon clickability */
a.ribbon-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
a.ribbon-link:hover .ribbon-track {
  animation-play-state: paused;
}

/* footer logo */
.footer-logo { display: flex; align-items: center; gap: 0.5rem; }


/* hero main page */

.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
  mix-blend-mode: luminosity;
  z-index: 0;
}

.hero-visual-content {
  position: relative;
  z-index: 2;
}

.hero-year-badge {
  position: relative;
  z-index: 2;
}

.scroll-cue {
  z-index: 2;
}


.hero-apecs .scroll-cue {
  color: rgba(242,237,227,0.4);
  z-index: 2;
}
.hero-apecs .scroll-line {
  background: linear-gradient(to bottom, rgba(242,237,227,0.3), transparent);
}
