/*
Theme Name: Vela
Theme URI: https://example.com/vela
Author: Vela Studio
Author URI: https://example.com
Description: A fast, responsive, SEO-ready WordPress theme for an app production studio. Apple-inspired minimalism: monochrome palette, a single restrained accent, generous whitespace, and alternating light and dark sections. No external fonts, libraries, or trackers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vela
Tags: custom-logo, custom-menu, featured-images, blog, one-column, accessibility-ready, translation-ready
*/

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --soft: #f5f5f7;
  --soft-2: #ececef;
  --line: rgba(0, 0, 0, 0.10);
  --line-strong: rgba(0, 0, 0, 0.16);

  --dark: #000000;
  --dark-2: #0a0a0c;
  --dark-soft: #1d1d1f;
  --on-dark: #f5f5f7;
  --on-dark-muted: #a1a1a6;
  --line-dark: rgba(255, 255, 255, 0.14);

  --accent: #0071e3;
  --accent-hover: #0077ed;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --pill: 980px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.06);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.16);

  --wrap: min(1080px, calc(100% - 44px));
  --wrap-wide: min(1280px, calc(100% - 44px));
  --nav-h: 52px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================
   2. Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
strong, b { font-weight: 600; }
::selection { background: rgba(0, 113, 227, 0.18); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.07;
  color: var(--ink);
}
p { margin: 0; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 12px; left: 12px;
  width: auto; height: auto;
  clip: auto;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--pill);
  z-index: 1000;
}

/* ============================================================
   3. Layout helpers
   ============================================================ */
.wrap { width: var(--wrap); margin-inline: auto; }
.wrap-wide { width: var(--wrap-wide); margin-inline: auto; }

.section { padding-block: clamp(72px, 9vw, 132px); }
.section-sm { padding-block: clamp(48px, 6vw, 84px); }

.section--soft { background: var(--soft); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
}
.section--dark .eyebrow { color: #2997ff; }

.section-head { max-width: 720px; margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3.25rem); }
.section-head .lead { margin-top: 18px; }

.lead {
  font-size: clamp(1.06rem, 1.7vw, 1.32rem);
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: -0.014em;
}
.section--dark .lead { color: var(--on-dark-muted); }

/* ============================================================
   4. Buttons & links
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.button-secondary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--dark .button-secondary { color: var(--on-dark); border-color: var(--line-dark); }
.section--dark .button-secondary:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Apple-style text link with chevron */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 1.0625rem;
  font-weight: 400;
}
.text-link::after {
  content: "›";
  font-size: 1.25em;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.25s var(--ease);
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover::after { transform: translate(3px, -1px); }

/* ============================================================
   5. Header / navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}
.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--nav-h);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.site-brand img { max-height: 28px; width: auto; }
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--ink);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid #fff;
  border-right-color: transparent;
  transform: rotate(-30deg);
}

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0; padding: 0;
  list-style: none;
}
.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.96rem;
  color: var(--ink);
  border-radius: var(--pill);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.main-nav a:hover { color: #000; background: rgba(0, 0, 0, 0.05); }
.current-menu-item > a { font-weight: 600; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--pill);
  font-size: 0.96rem;
  transition: background-color 0.25s var(--ease);
}
.nav-cta:hover { background: var(--accent-hover); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.menu-toggle span:not(.screen-reader-text) {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { bottom: 16px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { bottom: 20px; transform: rotate(-45deg); }

/* ============================================================
   6. Hero
   ============================================================ */
.hero {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(40px, 6vw, 72px);
  text-align: center;
}
.hero-copy { max-width: 860px; margin-inline: auto; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.hero h1 .accent-text {
  background: linear-gradient(120deg, #0071e3, #42a5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  margin: 24px auto 0;
  max-width: 620px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--ink);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: center;
  align-items: center;
}
.hero-proof {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--muted);
}
.avatar-stack { display: inline-flex; }
.avatar-stack i {
  width: 30px; height: 30px;
  margin-left: -9px;
  border-radius: 50%;
  background: var(--soft-2);
  border: 2px solid var(--bg);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
}
.avatar-stack i:first-child { margin-left: 0; }

/* Hero device */
.hero-stage {
  margin: clamp(40px, 6vw, 80px) auto 0;
  display: flex;
  justify-content: center;
  perspective: 1600px;
}

/* ============================================================
   7. Phone mockup (pure CSS, monochrome)
   ============================================================ */
.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 280 / 580;
  background: linear-gradient(160deg, #2a2a2e, #050506);
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  background: linear-gradient(180deg, #ffffff, #f1f1f4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px 22px 22px;
  color: var(--ink);
}
.section--dark .phone-screen { color: var(--ink); }
.phone-notch {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 22px;
  background: #050506;
  border-radius: 0 0 14px 14px;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 26px;
}
.phone-app-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: linear-gradient(160deg, #2a2a2e, #050506);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.phone-screen h3 { font-size: 1.5rem; letter-spacing: -0.03em; }
.phone-screen .phone-sub { margin-top: 6px; font-size: 0.86rem; color: var(--muted); }
.phone-card {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  backdrop-filter: blur(6px);
}
.phone-card .phone-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}
.phone-card .phone-card-row + .phone-card-row { margin-top: 10px; }
.phone-card .bar {
  flex: 1;
  height: 6px;
  margin: 0 10px;
  border-radius: 3px;
  background: var(--soft-2);
  position: relative;
  overflow: hidden;
}
.phone-card .bar::after {
  content: "";
  position: absolute;
  inset: 0 35% 0 0;
  background: var(--ink);
  border-radius: 3px;
}
.phone-card .bar.b2::after { inset: 0 60% 0 0; }
.phone-card .bar.b3::after { inset: 0 18% 0 0; }
.phone-metric { font-weight: 600; color: var(--ink); }

/* ============================================================
   8. Marquee strip
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding-block: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
}
.marquee-track b { color: var(--line-strong); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   9. App family grid
   ============================================================ */
.apps-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 20px;
}
.app-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.app-icon {
  width: 60px; height: 60px;
  border-radius: 15px;
  background: linear-gradient(160deg, #3a3a3e, #050506);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}
.app-card h3 { font-size: 1.4rem; }
.app-card p { margin-top: 8px; color: var(--muted); font-size: 1rem; flex: 1; }
.app-card .text-link { margin-top: 20px; align-self: flex-start; }

/* ============================================================
   10. Feature spotlight (dark)
   ============================================================ */
.spotlight { text-align: center; }
.spotlight h2 { font-size: clamp(2.1rem, 5.2vw, 4rem); letter-spacing: -0.03em; }
.spotlight .lead { margin: 22px auto 0; max-width: 600px; }
.spotlight-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px 28px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.spotlight .text-link { color: #2997ff; }
.spotlight-stage { margin-top: clamp(44px, 6vw, 76px); display: flex; justify-content: center; }
.spotlight .phone { background: linear-gradient(160deg, #3a3a3e, #0c0c0e); }

/* ============================================================
   11. Approach / principles
   ============================================================ */
.principles {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.principle {
  background: var(--bg);
  padding: 34px 30px;
}
.principle-index {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.principle h3 { margin-top: 14px; font-size: 1.32rem; }
.principle p { margin-top: 10px; color: var(--muted); font-size: 1rem; }

/* ============================================================
   12. Stats (dark)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, #b9b9bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { display: block; margin-top: 12px; color: var(--on-dark-muted); font-size: 1rem; }

/* ============================================================
   13. Testimonials
   ============================================================ */
.testimonials-grid {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.quote-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.rating { display: flex; gap: 4px; margin-bottom: 16px; }
.rating i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-block;
}
.quote-card blockquote { margin: 0; font-size: 1.08rem; line-height: 1.5; letter-spacing: -0.01em; flex: 1; }
.quote-card cite { margin-top: 18px; font-style: normal; font-size: 0.9rem; color: var(--muted); }
.quote-card cite b { color: var(--ink); font-weight: 600; }

/* ============================================================
   14. Journal / blog cards
   ============================================================ */
.journal-grid, .post-list {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.post-list { margin-top: 0; }
.post-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card > a { display: block; height: 100%; }
.post-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, var(--soft), var(--soft-2));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb span {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: rgba(0, 0, 0, 0.14);
}
.post-body { padding: 24px 26px 28px; }
.post-body time { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); text-transform: uppercase; }
.post-body h3 { margin-top: 10px; font-size: 1.3rem; line-height: 1.2; }
.post-body p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }

/* ============================================================
   15. CTA (dark)
   ============================================================ */
.cta-section { text-align: center; }
.cta-section h2 { font-size: clamp(2.1rem, 5.2vw, 3.75rem); letter-spacing: -0.03em; }
.cta-section .lead { margin: 20px auto 0; max-width: 560px; }
.cta-section .button { margin-top: 32px; }

/* ============================================================
   16. Footer
   ============================================================ */
.site-footer {
  background: var(--soft);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 76px) 36px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { margin-top: 16px; max-width: 320px; color: var(--muted); }
.footer-heading {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a { color: var(--ink); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============================================================
   17. Content pages (single / page / archive)
   ============================================================ */
.content-page { padding-block: clamp(60px, 7vw, 100px); }
.content-narrow { width: min(720px, calc(100% - 44px)); margin-inline: auto; }
.page-title { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
.content-page .eyebrow { text-align: left; }
.content-page .section-head { text-align: center; margin-bottom: 48px; }

.entry-content { margin-top: 28px; font-size: 1.12rem; line-height: 1.7; color: #2c2c2e; }
.entry-content > * + * { margin-top: 1.3em; }
.entry-content h2 { margin-top: 1.8em; font-size: 1.7rem; }
.entry-content h3 { margin-top: 1.6em; font-size: 1.35rem; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--accent-hover); }
.entry-content img, .single .post-thumb { border-radius: var(--radius); margin-block: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.5em; }
.entry-content blockquote {
  margin: 1.6em 0;
  padding: 6px 0 6px 24px;
  border-left: 3px solid var(--ink);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.entry-content code {
  background: var(--soft);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.92em;
}
.entry-content pre {
  background: var(--dark);
  color: var(--on-dark);
  padding: 22px;
  border-radius: var(--radius);
  overflow-x: auto;
}
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }

/* WordPress alignment + media helpers */
.alignwide { width: min(1080px, calc(100% - 44px)); margin-inline: auto; max-width: none; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.wp-caption-text, .wp-element-caption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.sticky .post-body::before { content: "★ Featured"; display: inline-block; margin-bottom: 8px; font-size: 0.78rem; color: var(--accent); font-weight: 600; }

/* Pagination */
.pagination, .navigation.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px; height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================
   18. Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   19. Responsive
   ============================================================ */
@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--side, 22px) 18px; }
  .main-nav a { padding: 14px 6px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .main-nav a:hover { background: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --wrap: calc(100% - 36px); }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .footer-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-actions, .spotlight-actions { width: 100%; }
  .hero-actions .text-link, .spotlight-actions .text-link { justify-content: center; }
}

/* ============================================================
   20. Motion / print
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-stage, .marquee, .menu-toggle { display: none; }
  body { color: #000; background: #fff; }
}
