/* ============================================================
   TESETTUR VILLA — Design System
   Archetype: Warm Print (light) | Surface: Flat Hairline | Shape: Sharp
   Palette: Rose & Cream | Fonts: Newsreader + Manrope
   OVERRIDE: #FAF5F0 bg · #8B1A2E accent · #1C1208 text
   ============================================================ */

/* --- TOKENS ------------------------------------------------ */
:root {
  /* Base */
  --bg:       #FAF5F0;
  --bg-alt:   #F2EAE1;
  --bg-warm:  #E9D8CC;

  /* Text */
  --text:     #1C1208;
  --text-sec: #5C3D2C;
  --muted:    #9A7060;

  /* Lines */
  --line:     rgba(28, 18, 8, 0.10);
  --line-s:   rgba(28, 18, 8, 0.18);

  /* Accent — deep rose/burgundy */
  --accent:       #8B1A2E;
  --accent-h:     #6E1224;
  --accent-light: rgba(139, 26, 46, 0.08);
  --accent-ink:   #FAF5F0;

  /* Secondary rose */
  --rose:      #C47080;
  --rose-pale: #F5E0E4;

  /* Typography */
  --display: 'Newsreader', Georgia, serif;
  --body:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw:        1140px;
  --section-pad: clamp(64px, 8vw, 96px);
  --gap:         24px;
  --stagger:     48px;

  /* Shape */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 4px;

  /* Motion */
  --ease:     cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET ------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* --- BASE -------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Warm Print: NO glow, NO grain — depth from whitespace, hairline rules, type */

/* --- TYPOGRAPHY -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
}

h4 {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 600;
}

p { max-width: 68ch; text-wrap: pretty; }
p + p { margin-top: 1em; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--accent-h); }

em { font-style: italic; }

/* Italic accent in headings — Newsreader italic is beautiful */
.serif-em { font-style: italic; color: var(--accent); }

/* Drop-cap for editorial manifesto */
.drop-cap::first-letter {
  font-family: var(--display);
  font-size: 3.8em;
  float: left;
  line-height: 0.8;
  margin-right: 0.09em;
  margin-top: 0.05em;
  color: var(--accent);
  font-weight: 400;
}

/* Eyebrow label */
.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

/* --- INLINE SVG ICON GUARD (all inline positions) --------- */
li > svg, p > svg, a > svg, button > svg,
span > svg, td > svg, label > svg, h3 > svg, h4 > svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  vertical-align: -0.15em;
}

/* --- SCROLL PROGRESS BAR ---------------------------------- */
#scroll-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1000;
  transition: transform 0.1s linear;
}

/* --- LAYOUT UTILITIES ------------------------------------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

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

.section-header {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-header h2 { margin-bottom: 0.5rem; }

.section-sub {
  font-family: var(--display);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-sec);
  font-style: italic;
  max-width: 52ch;
}

/* --- NAV -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 245, 240, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(20px, 4vw, 56px);
  height: 68px;
  display: flex;
  align-items: center;
  gap: var(--gap);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.75; color: var(--text); }

.nav-logo-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.nav-logo-text {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

/* Nav links: the <nav> wrapper is the flex item, so it carries the auto margins
   (logo left, links centred in the free space, CTA at the far right edge) */
.nav-inner > nav {
  margin-inline: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  list-style: none;
}

.nav-links a {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-sec);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* Nav end: CTA + toggle */
.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta { display: inline-flex; padding: 0.7em 1.4em; }

/* Nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line-s);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s;
}

.nav-toggle:hover { border-color: var(--accent); }

.toggle-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .toggle-line:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .toggle-line:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* --- MOBILE NAV OVERLAY ----------------------------------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  background: var(--bg);
  z-index: 190;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 6vw, 64px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.nav-overlay.open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.nav-overlay-links li {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.nav-overlay-links a {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  padding: 0.6em 0;
  opacity: 0;
  transform: translateY(16px);
  transition: color 0.2s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.nav-overlay.open .nav-overlay-links li:nth-child(1) a { opacity: 1; transform: none; transition-delay: 60ms; }
.nav-overlay.open .nav-overlay-links li:nth-child(2) a { opacity: 1; transform: none; transition-delay: 100ms; }
.nav-overlay.open .nav-overlay-links li:nth-child(3) a { opacity: 1; transform: none; transition-delay: 140ms; }
.nav-overlay.open .nav-overlay-links li:nth-child(4) a { opacity: 1; transform: none; transition-delay: 180ms; }
.nav-overlay.open .nav-overlay-links li:nth-child(5) a { opacity: 1; transform: none; transition-delay: 220ms; }
.nav-overlay.open .nav-overlay-links li:nth-child(6) a { opacity: 1; transform: none; transition-delay: 260ms; }

.nav-overlay-links a:hover { color: var(--accent); }

.nav-overlay-cta {
  margin-top: clamp(24px, 4vw, 40px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease) 0.3s, transform 0.4s var(--ease) 0.3s;
}
.nav-overlay.open .nav-overlay-cta { opacity: 1; transform: none; }

/* --- BUTTONS ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 1.75em;
  border-radius: var(--r-sm);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition:
    background-color 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.15s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:active { transform: scale(0.98); }

/* Ripple (injected by app.js) */
.ripple {
  position: absolute;
  border-radius: 50%;
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.35);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-anim 0.5s var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: translate(-50%, -50%) scale(60); opacity: 0; }
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  color: var(--accent-ink);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-s);
}
.btn-outline:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* Secondary button over photography: solid bone fill, burgundy text, visible border */
.btn-ghost {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover {
  background: var(--bg-warm);
  border-color: var(--accent-h);
  color: var(--accent-h);
}

/* On accent bg: cream button */
.btn-ink {
  background: var(--accent-ink);
  color: var(--accent);
  border-color: var(--accent-ink);
}
.btn-ink:hover {
  background: var(--rose-pale);
  border-color: var(--rose-pale);
  color: var(--accent-h);
}

/* --- FORM CONTROLS (themed by element selector) ----------- */
input, textarea, select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  border: 1px solid var(--line-s);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.78em 1em;
  width: 100%;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

input:hover:not(:focus), textarea:hover:not(:focus), select:hover:not(:focus) {
  border-color: var(--rose);
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
  font-style: normal;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A7060' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
  cursor: pointer;
}

label {
  display: block;
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 0.4em;
  letter-spacing: 0.01em;
}

.field { margin-bottom: 1.25rem; }

.form-success { display: none; }
.form-success.show {
  display: block;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.form-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rose-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--accent);
}
.form-success-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.form-success-body { color: var(--text-sec); font-size: 0.95rem; }

/* --- HERO -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-img {
    animation: ken-burns 20s ease-in-out infinite alternate;
  }
}

@keyframes ken-burns {
  from { transform: scale(1.04) translate(-0.5%, 0); }
  to   { transform: scale(1.10) translate(0.5%, -0.5%); }
}

/* Gradient overlay: strong on left (text area), fades right */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(250, 245, 240, 0.92) 0%,
      rgba(250, 245, 240, 0.78) 40%,
      rgba(250, 245, 240, 0.45) 70%,
      rgba(250, 245, 240, 0.20) 100%
    );
}

.hero-body {
  position: relative;
  z-index: 2;
  padding-block: clamp(100px, 12vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-content { max-width: 640px; }

.hero-heading {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero-heading em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-family: var(--body);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Floating badge chip */
.hero-badge {
  position: absolute;
  bottom: clamp(28px, 4vw, 48px);
  right: clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(250, 245, 240, 0.88);
  border: 1px solid var(--line-s);
  border-radius: var(--r-sm);
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-badge {
    animation: float-chip 3.5s ease-in-out infinite;
  }
}

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* --- MANIFESTO -------------------------------------------- */
.manifesto {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manifesto-rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.manifesto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.manifesto-heading {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  color: var(--text);
}

.manifesto-heading em {
  font-style: italic;
  color: var(--accent);
}

.manifesto-right {
  padding-top: 0.25em;
}

.manifesto-body {
  font-family: var(--body);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--text-sec);
  line-height: 1.75;
  max-width: 56ch;
}

/* Drop-cap on first paragraph */
.manifesto-body.drop-cap::first-letter {
  font-family: var(--display);
  font-size: 3.6em;
  float: left;
  line-height: 0.8;
  margin-right: 0.09em;
  margin-top: 0.06em;
  color: var(--accent);
  font-weight: 400;
}

/* --- FEATURES (staggered card grid) ----------------------- */
.features { background: var(--bg); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(16px, 2.5vw, 32px);
  row-gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

/* Stagger: 2nd card in each row drops down, 3rd goes half */
.feature-card:nth-child(3n+2) { margin-top: var(--stagger); }
.feature-card:nth-child(3n+3) { margin-top: calc(var(--stagger) * 0.5); }

.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.5vw, 28px);
  transition:
    border-color 0.22s var(--ease),
    background 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.feature-card:hover {
  border-color: var(--rose);
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-pale);
  border-radius: var(--r-sm);
  margin-bottom: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}

.feature-card:hover .feature-card-icon {
  background: var(--accent);
  color: var(--accent-ink);
}

.feature-card-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  font-family: var(--body);
  font-size: 0.925rem;
  color: var(--text-sec);
  line-height: 1.65;
  max-width: 100%;
}

/* Reveal stagger delays for feature cards */
@media (prefers-reduced-motion: no-preference) {
  .feature-grid .feature-card[data-reveal]:nth-child(1) { transition-delay: 0ms; }
  .feature-grid .feature-card[data-reveal]:nth-child(2) { transition-delay: 70ms; }
  .feature-grid .feature-card[data-reveal]:nth-child(3) { transition-delay: 140ms; }
  .feature-grid .feature-card[data-reveal]:nth-child(4) { transition-delay: 210ms; }
  .feature-grid .feature-card[data-reveal]:nth-child(5) { transition-delay: 280ms; }
  .feature-grid .feature-card[data-reveal]:nth-child(6) { transition-delay: 350ms; }
}

/* --- HOW IT WORKS ----------------------------------------- */
.how-it-works { background: var(--bg-alt); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  align-items: start;
}

.step {
  position: relative;
  padding-top: 0.5rem;
}

/* Connector line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(1.6rem + 0.5rem);
  right: calc(-50% + 12px);
  width: calc(100% - 24px);
  height: 1px;
  background: var(--line-s);
}

.step-num {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--rose-pale);
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
  /* Accent stroke effect */
  -webkit-text-stroke: 1px var(--rose);
  color: transparent;
}

.step h3 {
  font-family: var(--display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step p {
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.6;
  max-width: 100%;
}

/* --- CTA BAND --------------------------------------------- */
.cta-band {
  background: var(--accent);
  padding-block: var(--section-pad);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.cta-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-ink);
  line-height: 1.2;
  max-width: 22ch;
}

/* --- FOOTER ----------------------------------------------- */
.footer {
  background: var(--text);
  color: var(--accent-ink);
  padding-block: clamp(48px, 6vw, 72px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid rgba(250, 245, 240, 0.12);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}

.footer-logo:hover { opacity: 0.8; color: var(--accent-ink); }

/* Override the inline-icon guard for logo marks */
.footer-logo svg { width: 28px; height: 28px; flex: none; vertical-align: middle; }

.footer-logo-text {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-ink);
}

.footer-tagline {
  font-family: var(--display);
  font-size: 0.875rem;
  color: rgba(250, 245, 240, 0.6);
  font-style: italic;
  max-width: 28ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 40px);
}

.footer-nav-title {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 245, 240, 0.45);
  margin-bottom: 1rem;
}

.footer-nav-col ul { list-style: none; }
.footer-nav-col li + li { margin-top: 0.6rem; }

.footer-nav-col a {
  font-family: var(--body);
  font-size: 0.9rem;
  color: rgba(250, 245, 240, 0.75);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-nav-col a:hover { color: var(--accent-ink); }

.footer-contact-title {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 245, 240, 0.45);
  margin-bottom: 1rem;
}

.footer-email {
  font-family: var(--body);
  font-size: 0.9rem;
  color: rgba(250, 245, 240, 0.75);
  text-decoration: none;
  transition: color 0.2s var(--ease);
  overflow-wrap: break-word;
}
.footer-email:hover { color: var(--accent-ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(20px, 2.5vw, 28px);
}

.footer-copy {
  font-family: var(--body);
  font-size: 0.8rem;
  color: rgba(250, 245, 240, 0.4);
  max-width: 100%;
}

/* --- CAROUSEL [data-slider] ------------------------------- */
[data-slider] { overflow: hidden; }

[data-slider-track] {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: stretch;
}
[data-slider-track]::-webkit-scrollbar { display: none; }

[data-slider-track] > * {
  scroll-snap-align: start;
  flex: 0 0 calc(33.333% - var(--gap) * 2 / 3);
  min-width: 260px;
  grid-column: auto !important;
  height: 100%;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.25rem;
}

[data-slider-prev],
[data-slider-next] {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-s);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sec);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

[data-slider-prev]:hover:not(:disabled),
[data-slider-next]:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

[data-slider-prev]:disabled,
[data-slider-next]:disabled { opacity: 0.35; cursor: default; }

[data-slider-prev] svg,
[data-slider-next] svg { width: 16px; height: 16px; flex: none; }

/* --- SCROLL REVEAL ---------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- INNER PAGE HERO -------------------------------------- */
.hero-inner {
  background: var(--bg-alt);
  padding-block: clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

.hero-inner h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  margin-bottom: 0.75rem;
}

.hero-inner .sub {
  font-family: var(--display);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-sec);
  font-style: italic;
  max-width: 56ch;
}

/* --- UTILITY CLASSES -------------------------------------- */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.italic      { font-style: italic; }
.sr-only     {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- RESPONSIVE: 1000px ----------------------------------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-end { margin-left: auto; }
  .nav-inner > nav { display: none; }

  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
  }

  .manifesto-heading {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:nth-child(3n+2),
  .feature-card:nth-child(3n+3) {
    margin-top: 0;
  }

  .feature-card:nth-child(2n+2) {
    margin-top: calc(var(--stagger) * 0.75);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(24px, 4vw, 40px);
  }

  .step:not(:last-child)::after { display: none; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* --- RESPONSIVE: 480px (header row must fit logo + CTA + toggle) --- */
@media (max-width: 480px) {
  .nav-inner { gap: 10px; }
  .nav-cta { padding: 0.55em 0.9em; font-size: 0.85rem; }
  .nav-toggle { flex-shrink: 0; }
}

/* --- RESPONSIVE: 720px ------------------------------------ */
@media (max-width: 720px) {
  .hero-heading {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(250, 245, 240, 0.88) 0%,
      rgba(250, 245, 240, 0.82) 100%
    );
  }

  .hero-badge {
    display: none;
  }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .manifesto-inner {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(2n+2),
  .feature-card:nth-child(3n+2),
  .feature-card:nth-child(3n+3) {
    margin-top: 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .step:not(:last-child)::after { display: none; }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }

  .cta-heading {
    font-size: clamp(1.7rem, 5.5vw, 2.5rem);
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-img { animation: none; }
  .hero-badge { animation: none; }
  .ripple { display: none; }
}
