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

:root {
  --dark:      #222222;
  --light:     #f6f4f0;
  --border:    rgba(34,34,34,0.13);
  --border-inv:rgba(246,244,240,0.14);
  --muted:     rgba(34,34,34,0.48);
  --muted-inv: rgba(246,244,240,0.52);
  --tag:       'Playfair Display', serif;
  --body:      'Barlow', sans-serif;
  --logo:      'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
  /* Fluid base size: scales all rem-based text with the viewport width.
     ~17px on phones up to ~22px on large laptop/desktop widths. The 17px floor
     matters: every font size in this file is in rem, so a lower floor shrank
     body copy to ~12px on a phone. */
  font-size: clamp(17px, 0.55vw + 11px, 22px);
}

body {
  font-family: var(--body);
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 5%;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.nav-logo img {
  height: 120px;
  display: block;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--dark); }

.nav-cta {
  background: var(--dark);
  color: var(--light) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.75 !important; }

/* ── MOBILE MENU BUTTON (hidden on desktop, shown under 900px) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--dark);
  transition: transform 0.25s, opacity 0.2s;
}

nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── LANGUAGE SWITCHER ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.lang-switch button {
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button.active {
  background: var(--dark);
  color: var(--light);
}

.lang-switch button:hover:not(.active) {
  color: var(--dark);
}

/* ── SHARED ── */
section { padding: 6rem 5%; }

.section-label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}

.section-label-inv { color: var(--muted-inv); }

h2 {
  font-family: var(--tag);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

p {
  font-size: 0.82rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 2px;
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
  cursor: pointer;
}

.btn-primary { background: var(--dark); color: var(--light); }
.btn-primary:hover { opacity: 0.72; }

.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
  margin-left: 0.75rem;
  transition: border-color 0.2s;
}

.btn-ghost:hover { border-color: var(--dark); opacity: 1; }

.btn-inv { background: var(--light); color: var(--dark); }
.btn-inv:hover { opacity: 0.8; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 5% 5rem;
  position: relative;
  overflow: hidden;
  background: var(--light);
}

.hero-eyebrow {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

h1 {
  font-family: var(--tag);
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-bottom: 1.75rem;
  font-weight: 700;
  color: var(--dark);
}

.hero-sub {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 68ch;
  margin-bottom: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.85;
  text-transform: uppercase;
}

.hero-badge {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  width: 196px;
  height: 196px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem;
}

.hero-badge .badge-number {
  font-family: var(--tag);
  font-size: 3.5rem;
  color: var(--dark);
  line-height: 1;
  font-weight: 700;
}

.hero-badge .badge-text {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.55;
}

/* ── HERO SHAPES (drifting Notion cards behind the headline) ── */
#hero > *:not(.hero-shapes) { position: relative; z-index: 1; }

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ps-card {
  position: absolute;
  width: 160px;
  background: rgba(34,34,34,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ps-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(34,34,34,0.12);
  margin-bottom: 0.15rem;
}

.ps-line { height: 7px; border-radius: 2px; background: rgba(34,34,34,0.1); }
.ps-line.short { width: 55%; }
.ps-line.med { width: 75%; }

.ps-row { display: flex; align-items: center; gap: 0.4rem; }
.ps-row .ps-line { flex: 1; }
.ps-check {
  width: 11px;
  height: 11px;
  border: 1.5px solid rgba(34,34,34,0.22);
  border-radius: 3px;
  flex-shrink: 0;
}
.ps-toggle { font-size: 0.55rem; color: rgba(34,34,34,0.35); width: 11px; flex-shrink: 0; }

.ps-1 { top: 11%;  right: 6%;  transform: rotate(6deg);  animation: drift1 15s ease-in-out infinite alternate; }
.ps-2 { top: 39%;  right: 15%; transform: rotate(-8deg); animation: drift2 18s ease-in-out infinite alternate; }
.ps-3 { bottom: 12%; right: 8%; transform: rotate(-4deg); animation: drift3 16s ease-in-out infinite alternate; }
.ps-4 { top: 20%;  right: 27%; transform: rotate(11deg); width: 130px; animation: drift4 13s ease-in-out infinite alternate; }

@keyframes drift1 {
  0%   { transform: translate(0, 0) rotate(6deg); }
  50%  { transform: translate(-70px, 55px) rotate(-4deg); }
  100% { transform: translate(45px, -50px) rotate(14deg); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) rotate(-8deg); }
  50%  { transform: translate(85px, -55px) rotate(4deg); }
  100% { transform: translate(-55px, 70px) rotate(-16deg); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) rotate(-4deg); }
  50%  { transform: translate(-75px, -65px) rotate(8deg); }
  100% { transform: translate(60px, 45px) rotate(-12deg); }
}
@keyframes drift4 {
  0%   { transform: translate(0, 0) rotate(11deg); }
  50%  { transform: translate(70px, 80px) rotate(0deg); }
  100% { transform: translate(-85px, -45px) rotate(20deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ps-card { animation: none !important; }
}

/* ── TEMPLATES ── */
#templates { background: var(--dark); color: var(--light); }
#templates h2 { color: var(--light); }
#templates .section-label { color: var(--muted-inv); }
#templates .btn-primary { background: var(--light); color: var(--dark); }

/* On its own page, the Templates section needs extra top space to clear the fixed nav */
.page-templates #templates { padding-top: 11rem; }

.templates-intro {
  max-width: 52ch;
  color: var(--muted-inv);
  font-size: 0.78rem;
  margin-bottom: 3rem;
  line-height: 1.85;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border-inv);
}

.template-card {
  padding: 1.75rem;
  border: 1px solid var(--border-inv);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: background 0.25s;
}

.template-card:hover { background: rgba(246,244,240,0.05); }

.template-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  aspect-ratio: 4 / 3;
}

.template-preview-image {
  padding: 0;
  gap: 0;
  overflow: hidden;
  background: var(--dark);
}

.template-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}

.tp-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--dark);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.tp-line {
  height: 8px;
  border-radius: 2px;
  background: rgba(34,34,34,0.1);
}

.tp-line.title { height: 12px; width: 55%; background: rgba(34,34,34,0.2); margin-bottom: 0.25rem; }
.tp-line.w80 { width: 80%; }
.tp-line.w70 { width: 70%; }
.tp-line.w60 { width: 60%; }
.tp-line.w50 { width: 50%; }

.tp-row { display: flex; align-items: center; gap: 0.5rem; }
.tp-row .tp-line { flex: 1; }

.tp-check {
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(34,34,34,0.28);
  border-radius: 3px;
  flex-shrink: 0;
}

.tp-toggle {
  font-size: 0.6rem;
  color: rgba(34,34,34,0.4);
  flex-shrink: 0;
  width: 12px;
}

.tp-cols { display: flex; gap: 0.4rem; }
.tp-col {
  flex: 1;
  height: 26px;
  border-radius: 3px;
  background: rgba(34,34,34,0.07);
  border: 1px solid var(--border);
}

.template-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.template-meta h3 { margin: 0; }

.template-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted-inv);
}

.template-tag {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-inv);
  border: 1px solid var(--border-inv);
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
  white-space: nowrap;
}

/* Longer launch-date tag needs to wrap instead of squeezing the title */
.template-tag-launch {
  white-space: normal;
  text-align: center;
  max-width: 7.5rem;
  line-height: 1.5;
  color: var(--light);
  border-color: rgba(246,244,240,0.45);
}

.templates-cta {
  margin: 3.5rem auto 0;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border-inv);
  max-width: 60ch;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.templates-cta-title {
  font-family: var(--tag);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--light);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.templates-cta p {
  color: var(--muted-inv);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  max-width: 50ch;
}

.templates-cta .btn { margin-top: 0.75rem; }

.templates-cta p.templates-cta-close {
  font-family: var(--tag);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--light);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 1.25rem;
}

.scroll-cue {
  display: block;
  width: 15px;
  height: 15px;
  margin-top: 2.5rem;
  border-right: 2px solid var(--muted-inv);
  border-bottom: 2px solid var(--muted-inv);
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
  transition: border-color 0.2s;
}

.scroll-cue:hover { border-color: var(--light); }

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(4px, 4px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}

/* ── ABOUT ── */
#about { background: var(--dark); color: var(--light); }
#about h2 { color: var(--light); }
#about .section-label { color: var(--muted-inv); }
#about .btn-primary { background: var(--light); color: var(--dark); }

.about-grid {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3rem;
}

.about-text p { color: var(--muted-inv); margin-bottom: 1.25rem; letter-spacing: 0.02em; }
.about-text p strong { color: var(--light); }

.about-list {
  list-style: none;
  margin: -0.4rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.about-list li {
  color: var(--muted-inv);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding-left: 1.25rem;
  position: relative;
}

.about-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  font-size: 0.5rem;
  top: 0.35em;
  color: var(--light);
}

.about-text .about-signoff { margin-bottom: 0.15rem; }

.about-text .about-signature {
  font-family: var(--tag);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--light);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.about-photo {
  border: 1px solid var(--border-inv);
  overflow: hidden;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── REVIEWS ── */
#reviews { background: var(--light); }
#reviews h2 { color: var(--dark); }
#reviews .section-label { color: var(--muted); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--border);
}

.review-card {
  padding: 2rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-stars { font-size: 0.85rem; letter-spacing: 0.12em; color: var(--dark); }

.reviews-intro {
  max-width: 58ch;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.9;
}

.review-card-pending {
  border-style: dashed;
  background: rgba(34,34,34,0.015);
}

.review-quote-mark {
  font-family: var(--tag);
  font-size: 3.25rem;
  line-height: 0.6;
  height: 1.6rem;
  color: rgba(34,34,34,0.16);
}

.review-card-pending p {
  font-family: var(--tag);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(34,34,34,0.38);
}

.review-card-pending .review-author strong { color: var(--muted); }

.review-status { display: flex; align-items: center; gap: 0.45rem; }

.review-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dark);
  opacity: 0.55;
  animation: review-pulse 2.4s ease-in-out infinite;
}

@keyframes review-pulse {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.65; }
}

.reviews-note {
  margin-top: 2rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.reviews-note a {
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.25s;
}

.reviews-note a:hover { border-color: var(--dark); }

@media (prefers-reduced-motion: reduce) {
  .review-status::before { animation: none; opacity: 0.55; }
}

.review-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.8;
  flex: 1;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.review-author strong { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dark); }
.review-author span   { font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }

/* ── LAUNCH ── */
#launch {
  background: var(--light);
  padding: 4.5rem 5%;
  --conf-1: #f6f4f0;
  --conf-2: rgba(246,244,240,0.45);
  --conf-3: #d8c7a0;
  --conf-4: #c9a49c;
}

.launch-panel {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  border: 1px solid var(--border-inv);
  border-radius: 4px;
  padding: 4.5rem 3rem;
  text-align: center;
}

.launch-content { position: relative; z-index: 1; }

#launch h2 {
  color: var(--light);
  margin: 0 auto 1.5rem;
  max-width: 24ch;
}

.launch-lead {
  color: var(--muted-inv);
  font-size: 0.82rem;
  line-height: 1.9;
  max-width: 54ch;
  margin: 0 auto 3rem;
}

.launch-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--border-inv);
  border-bottom: 1px solid var(--border-inv);
}

.launch-fact { display: flex; flex-direction: column; gap: 0.5rem; }

.launch-fact strong {
  font-family: var(--tag);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--light);
}

.launch-fact span {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-inv);
}

.launch-review {
  color: var(--muted-inv);
  font-size: 0.8rem;
  line-height: 1.9;
  max-width: 52ch;
  margin: 2.5rem auto 2.25rem;
}

#launch .btn-primary { background: var(--light); color: var(--dark); }

/* Confetti: keeps falling continuously, started by the scroll-reveal observer */
.confetti {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: -6%;
  left: var(--x);
  width: var(--w);
  height: var(--h);
  background: var(--c);
  border-radius: 1px;
  opacity: 0;
  animation: confetti-fall var(--t) linear var(--d) infinite both;
  animation-play-state: paused;
}

.launch-panel.is-visible .confetti span { animation-play-state: running; }

@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { transform: translateY(52vh) rotate(var(--r)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
}

/* ── QUOTE ── */
#quote {
  background: var(--light);
  text-align: center;
  padding: 8rem 5%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#quote blockquote {
  font-family: var(--tag);
  font-size: clamp(2.25rem, 5vw, 4rem);
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 20ch;
  margin: 0 auto 2rem;
  font-weight: 700;
  font-style: italic;
}

#quote cite {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* ── CTA ── */
#cta {
  background: var(--dark);
  text-align: center;
  padding: 7rem 5%;
}

#cta h2 { color: var(--light); margin-bottom: 1rem; }
#cta .section-label { color: var(--muted-inv); }
#cta .btn-primary { background: var(--light); color: var(--dark); }

#cta > p {
  color: var(--muted-inv);
  margin-bottom: 2.5rem;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-details {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-inv);
}

.contact-item { display: flex; flex-direction: column; gap: 0.3rem; }

.contact-item span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-inv);
}

.contact-item a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light);
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-item a:hover { opacity: 0.6; }

/* ── CTA GRID ── */
#cta h2 { margin-bottom: 1rem; }
#cta > p { margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--light);
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--dark); }

/* ── ANIMATIONS ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.40s; }
[data-reveal][data-delay="6"] { transition-delay: 0.48s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-animate {
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── RESPONSIVE ── */

/* Anchor links have to clear the fixed nav bar */
section { scroll-margin-top: 150px; }

@media (max-width: 900px) {
  .hero-badge { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .templates-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .contact-details { flex-direction: column; gap: 1.5rem; align-items: center; }
  .launch-panel { padding: 3rem 1.5rem; }
  .launch-facts { gap: 2rem 2.5rem; }

  section { padding: 4.5rem 6%; scroll-margin-top: 84px; }

  /* NAV: logo scaled down, links collapse into a drop-down panel */
  .nav-logo img { height: 58px; }
  .nav-right { gap: 0.75rem; }
  .nav-toggle { display: flex; }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 6% 1.25rem;
    background: var(--light);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  nav.nav-open ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  nav ul li { border-top: 1px solid var(--border); }
  nav ul li:first-child { border-top: none; }

  nav ul a {
    display: block;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: var(--dark);
  }

  nav ul .nav-cta {
    text-align: center;
    margin-top: 1rem;
    padding: 0.95rem 1.5rem;
  }

  /* HERO: keep the floating cards, just fewer and smaller so they frame
     the headline instead of colliding with it */
  #hero { padding: 7.5rem 6% 4.5rem; }
  .ps-card { width: 118px; padding: 0.7rem; gap: 0.4rem; }
  .ps-2, .ps-4 { display: none; }
  .ps-1 { top: 13%; right: 3%; }
  .ps-3 { bottom: 9%; right: auto; left: 3%; }

  h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); max-width: 20ch; }
  .hero-sub {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    line-height: 1.7;
    margin-bottom: 2rem;
  }

  h2 { font-size: clamp(1.8rem, 7.5vw, 2.6rem); }
  p, .about-list li { font-size: 0.92rem; }
  .section-label { font-size: 0.68rem; }
  .btn { font-size: 0.72rem; padding: 0.9rem 1.6rem; }

  .templates-intro, #cta > p { letter-spacing: 0.02em; }
  .launch-fact strong { font-size: 1.35rem; }
  .about-text .about-signature { font-size: 1.4rem; }

  footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 1.5rem 6%;
  }
}

@media (max-width: 560px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .launch-facts { flex-direction: column; gap: 1.75rem; }
  .template-meta { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .template-tag-launch { max-width: none; text-align: left; }
  .btn { display: block; text-align: center; }
  .btn-ghost { margin-left: 0; margin-top: 0.75rem; }
}
