/* =========================================================
   Nutri Focus Brasil — design system
   Fundo escuro premium, identidade em verde / teal / creme.
   Baseado no motor de interação do site da ThreeH Corp.
   ========================================================= */

/* ---------------------------------------------------------
   1. Reset
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
html { -webkit-text-size-adjust: 100%; }

/* ---------------------------------------------------------
   2. Tokens
   --------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* surfaces */
  --bg: #0a0d0a;
  --bg-soft: #0f1410;
  --surface: rgba(134, 185, 82, 0.045);
  --surface-hi: rgba(134, 185, 82, 0.08);

  /* lines */
  --line: rgba(235, 225, 213, 0.09);
  --line-hi: rgba(235, 225, 213, 0.2);

  /* type */
  --fg: #f4f2ec;
  --fg-2: #a7ac9d;
  --fg-3: #6c7166;

  /* brand */
  --accent: #86b952;
  --accent-hi: #9bcb69;
  --accent-2: #2c5064;
  --cream: #ebe1d5;

  /* fonts */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* layout */
  --wrap: 1160px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* spotlight position, updated per-card by JS */
  --mx: 50%;
  --my: 50%;
}

/* ---------------------------------------------------------
   3. Base
   --------------------------------------------------------- */
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
}

p { color: var(--fg-2); }

::selection { background: rgba(134, 185, 82, 0.32); color: #fff; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--line-hi);
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------
   4. Layout
   --------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { position: relative; padding-block: clamp(4.5rem, 10vw, 9rem); }

.section-head { max-width: 620px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* eyebrow: small caps label with a leading rule */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.section-head--center .eyebrow { justify-content: center; }

.h2 {
  font-size: clamp(1.95rem, 4.2vw, 3rem);
  margin-bottom: 1.1rem;
}

.lede { font-size: 1.05rem; color: var(--fg-2); }

/* ---------------------------------------------------------
   5. Background system
   Three stacked fixed layers behind the content: a drifting dot
   grid, a soft top glow, and a fine grain overlay.
   --------------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -20%, #131a12 0%, var(--bg) 60%);
}

.bg-grid {
  position: absolute;
  inset: -60px;
  background-image: radial-gradient(circle, rgba(235, 225, 213, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  /* fade the grid out towards the edges so it never reads as a texture swatch */
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 75%);
  animation: grid-drift 24s linear infinite;
}

@keyframes grid-drift {
  to { transform: translate3d(34px, 34px, 0); }
}

.bg-glow {
  position: absolute;
  top: -30vh;
  left: 50%;
  width: 90vw;
  max-width: 1100px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(134, 185, 82, 0.1) 0%, transparent 65%);
  animation: glow-breathe 14s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.08); }
}

/* grain: inline SVG turbulence, no network request */
.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ---------------------------------------------------------
   6. Scroll progress
   --------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(134, 185, 82, 0.4), var(--accent-hi));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------------------------------------------------------
   7. Navbar
   --------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(10, 13, 10, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav.is-stuck {
  background: rgba(10, 13, 10, 0.86);
  border-bottom-color: var(--line);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(10, 13, 10, 0.96); }
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* the mark: a small square holding the heart + pulse-line glyph */
.logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--line-hi);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface);
  transition: transform 0.5s var(--ease), border-color 0.35s var(--ease);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-heart { fill: var(--cream); }
.logo-pulse { stroke: var(--accent-2); }
.logo:hover .logo-mark { transform: rotate(8deg) scale(1.06); border-color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 2rem; }

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  color: var(--fg-2);
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { width: 100%; }

.nav-end { display: flex; align-items: center; gap: 1.25rem; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.nav-toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.menu {
  position: fixed;
  top: 72px;
  left: 1rem;
  right: 1rem;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(15, 20, 16, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.menu.is-open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.menu a {
  padding: 0.7rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 1rem;
  transition: background 0.2s var(--ease);
}
.menu a:hover { background: var(--surface-hi); }

/* ---------------------------------------------------------
   8. Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease),
              border-color 0.28s var(--ease), color 0.28s var(--ease);
}

.btn-solid {
  background: var(--accent);
  color: #10240f;
}
.btn-solid:hover { background: var(--accent-hi); }

.btn-line {
  border: 1px solid var(--line-hi);
  color: var(--fg);
  background: var(--surface);
}
.btn-line:hover { border-color: var(--accent); background: var(--surface-hi); }

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------------------------------------------------------
   9. Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 72px;
}

.hero-inner { max-width: 900px; }

.hero-title {
  font-size: clamp(2.7rem, 9vw, 5.8rem);
  font-weight: 300;
  letter-spacing: 0;
  margin-bottom: 1.6rem;
  perspective: 900px;
}
.hero-title .char { display: inline-block; }
.hero-title .char--space { width: 0.24em; }
/* "Focus" reads as the brand's core word: set in the accent green */
.hero-title .char--accent { color: var(--accent); }

.hero-lede {
  max-width: 52ch;
  margin-bottom: 2.5rem;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--fg-2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.scroll-cue {
  position: absolute;
  left: 1.5rem;
  bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.scroll-cue .rail {
  position: relative;
  width: 34px;
  height: 1px;
  background: var(--line-hi);
  overflow: hidden;
}
.scroll-cue .rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------------------------------------------------------
   10. Card system
   Every card shares one surface. A cursor-tracked spotlight lights
   the interior, and a second masked layer lights only the border.
   --------------------------------------------------------- */
.card {
  position: relative;
  padding: 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(235, 225, 213, 0.05), rgba(235, 225, 213, 0.015));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

/* interior spotlight */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(134, 185, 82, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card:hover { transform: translateY(-4px); border-color: var(--line-hi); }

.card > * { position: relative; z-index: 1; }

/* border-only spotlight — needs mask compositing, so it is opt-in */
@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .card::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: radial-gradient(320px circle at var(--mx) var(--my), rgba(134, 185, 82, 0.6), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
  }
  .card:hover::after { opacity: 1; }
}

/* numbered pillar cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.pillar { min-height: 230px; display: flex; flex-direction: column; }

.pillar-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(134, 185, 82, 0.4);
  margin-bottom: auto;
  transition: -webkit-text-stroke-color 0.4s var(--ease), color 0.4s var(--ease);
}
.card:hover .pillar-num { -webkit-text-stroke-color: var(--accent); }

.pillar h3 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 1.5rem;
  margin-bottom: 0.45rem;
}
.pillar p { font-size: 0.93rem; margin: 0; }

/* ---------------------------------------------------------
   11. Sobre + pulse illustration
   --------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.about-copy p { font-size: 1.05rem; margin-bottom: 1.2rem; }
.about-copy p:last-child { margin-bottom: 0; }

.pulse-wrap { display: flex; justify-content: center; }
.pulse { width: 100%; max-width: 400px; height: auto; overflow: visible; }

/* Presentation attributes in the markup already set fill/stroke, so the
   graphic still reads correctly if this stylesheet ever fails to load. */
.pulse-ring { stroke: rgba(235, 225, 213, 0.14); }
.pulse-heart { fill: var(--cream); }

.pulse-core-g {
  transform-box: view-box;
  transform-origin: 50% 55%;
  animation: heartbeat 2.6s ease-in-out infinite;
}
/* a soft double-beat, closer to an actual pulse than a plain sine breathe */
@keyframes heartbeat {
  0%, 44%, 100% { transform: scale(1); }
  14%           { transform: scale(1.08); }
  28%           { transform: scale(0.99); }
  38%           { transform: scale(1.05); }
}

.pulse-line--live {
  stroke: var(--accent);
  stroke-dasharray: 46 900;
  animation: pulse-travel 3.6s linear infinite;
}
@keyframes pulse-travel {
  to { stroke-dashoffset: -946; }
}

/* rings draw themselves in on scroll reveal */
html.js .pulse-ring {
  stroke-dasharray: var(--c);
  stroke-dashoffset: var(--c);
  transition: stroke-dashoffset 1.9s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js .pulse-wrap.is-in .pulse-ring { stroke-dashoffset: 0; }

/* ---------------------------------------------------------
   12. Redes / links
   --------------------------------------------------------- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.link-card { display: flex; flex-direction: column; align-items: flex-start; }

.link-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-hi);
  border-radius: 12px;
  color: var(--accent);
  background: var(--surface);
}
.link-icon svg { width: 21px; height: 21px; }

.link-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.link-card p { font-size: 0.9rem; margin: 0; }

.link-card.is-soon { cursor: default; }
.link-card.is-soon:hover { transform: none; border-color: var(--line); }
.link-card.is-soon::before, .link-card.is-soon::after { display: none; }

.link-soon {
  margin-top: 1.1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  border: 1px dashed var(--line-hi);
}

.d4.is-in { transition-delay: 0.32s; }

/* ---------------------------------------------------------
   13. Newsletter
   --------------------------------------------------------- */
.newsletter-form {
  max-width: 560px;
  margin-inline: auto;
  padding: 2.25rem;
}

.newsletter-form .field { margin-bottom: 0; }
.newsletter-form label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg-2);
}

.newsletter-row { display: flex; gap: 0.75rem; }

.newsletter-row input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--fg);
  background: rgba(235, 225, 213, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.newsletter-row input::placeholder { color: var(--fg-3); }
.newsletter-row input:hover { border-color: var(--line-hi); }
.newsletter-row input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(235, 225, 213, 0.06);
}

.newsletter-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--fg-3);
}

/* honeypot: kept in the accessibility tree's blind spot for bots that
   fill every visible-looking field, but off-screen for real users */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: var(--fg-2);
}
.form-status--ok { color: var(--accent-hi); }
.form-status--error { color: #e9a3a3; }
.form-status a { color: inherit; border-bottom: 1px solid currentColor; }

/* ---------------------------------------------------------
   14. Contato simples
   --------------------------------------------------------- */
.contact-pill-wrap { display: flex; justify-content: center; }

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fg);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
}
.contact-pill:hover { border-color: var(--accent); background: var(--surface-hi); }
.contact-pill-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #10240f;
  flex-shrink: 0;
}
.contact-pill-icon svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------
   15. Footer
   --------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  margin-top: 2rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.75rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-links a { font-size: 0.88rem; color: var(--fg-2); transition: color 0.25s var(--ease); }
.footer-links a:hover { color: var(--accent-hi); }

.footer-base {
  margin-top: 2.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--fg-3);
}

/* ---------------------------------------------------------
   16. Legal pages (reserved for termos/privacidade when added)
   --------------------------------------------------------- */
.legal { padding-top: 72px; }

.legal-head { padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.legal-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.6rem; }
.legal-head .stamp { font-size: 0.88rem; color: var(--fg-3); }

.legal-body {
  padding: clamp(1.75rem, 5vw, 3.5rem);
  margin-bottom: 4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.legal-body section + section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.legal-body h2 { font-size: 1.25rem; margin-bottom: 0.85rem; }
.legal-body p, .legal-body li { font-size: 0.97rem; margin-bottom: 0.95rem; color: var(--fg-2); }
.legal-body ul { padding-left: 1.2rem; }
.legal-body li { list-style: disc; margin-bottom: 0.45rem; }
.legal-body strong { color: var(--fg); font-weight: 600; }
.legal-body a { color: var(--fg); border-bottom: 1px solid var(--line-hi); }
.legal-body a:hover { border-color: var(--accent); }

/* ---------------------------------------------------------
   17. Motion
   Progressive enhancement: content is visible by default and only
   hides once JS confirms it can animate it back in.
   --------------------------------------------------------- */
.reveal { transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }

html.js .reveal:not(.reveal-mask):not(.reveal-split) {
  opacity: 0;
  transform: translateY(24px);
}
html.js .reveal:not(.reveal-mask):not(.reveal-split).is-in {
  opacity: 1;
  transform: none;
}

.d1.is-in { transition-delay: 0.08s; }
.d2.is-in { transition-delay: 0.16s; }
.d3.is-in { transition-delay: 0.24s; }

/* masked heading: inner span rises from behind its own box */
.reveal-mask { overflow: hidden; padding-bottom: 0.12em; }
.reveal-mask > span { display: block; transition: transform 0.95s var(--ease); }
html.js .reveal-mask > span { transform: translateY(115%); }
html.js .reveal-mask.is-in > span { transform: translateY(0); }

/* split title: per-character rise */
html.js .reveal-split .char {
  opacity: 0;
  transform: translateY(0.65em) rotateX(-50deg);
  transition: opacity 0.6s var(--ease), transform 0.85s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}
html.js .reveal-split.is-in .char {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* ---------------------------------------------------------
   18. Responsive
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .pulse-wrap { order: -1; }
  .pulse { max-width: 300px; }
  .nav-links { display: none; }
  .nav-end .btn { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .scroll-cue { display: none; }
  .pulse { max-width: 240px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .newsletter-row { flex-direction: column; }
  .newsletter-row .btn { justify-content: center; }
  .newsletter-form { padding: 1.75rem; }
  .contact-pill { font-size: 0.92rem; padding: 0.9rem 1.3rem; }
}

/* ---------------------------------------------------------
   19. Reduced motion
   --------------------------------------------------------- */
html { scroll-behavior: smooth; }

@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;
  }

  .particles, .progress, .bg-grain { display: none; }
}
