/* ==========================================================================
   DB Innovation SRL — stylesheet
   Zero-build static site. Light theme per FABLE_DESIGN_BRIEF.md:
   warm off-white/beige surfaces, warm near-black text, and the Royalpie
   cyan/blue accent (#42DED1 / #0798FF) used as a *pop* accent, not a fill.

   AESTHETIC POINT OF VIEW (locked — do not re-litigate, see brief §2):
   "Refined editorial tech" — generous whitespace, confident large display
   type (Space Grotesk), warm paper-like surfaces with subtle grain,
   asymmetric section rhythm, restrained scroll motion. Explicitly NOT a
   generic centered-hero SaaS template, dark music-app UI, or corporate blue.

   Accent discipline: the raw brand cyan/blue fail WCAG contrast as text on
   light surfaces, so `--gradient-brand` / `--color-cyan` / `--color-blue`
   are reserved for FILLS (buttons, logo marks, icon tiles) with dark text
   on top, while `--color-cyan-ink` / `--color-blue-ink` /
   `--gradient-brand-ink` are darker same-hue variants used wherever the
   accent is TEXT (eyebrows, gradient headline spans, stats, links).

   FABLE HANDOFF: sections marked "FABLE:" are intentionally minimal and are
   good candidates for a cheap polish pass (micro-interactions, real
   imagery/illustration, refined easing) without touching structure.
   ========================================================================== */

:root {
  /* Brand palette — light theme */
  --color-bg: #faf7f1; /* warm off-white, not stark #fff */
  --color-bg-elevated: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #f3eee3; /* warm beige/sand */
  --color-beige: #f2ecdf; /* alternating section band */
  --color-border: rgba(30, 26, 19, 0.1);
  --color-border-strong: rgba(30, 26, 19, 0.18);

  --color-text: #1e1a13; /* warm off-black */
  --color-text-dim: #4d473d;
  --color-text-faint: #767061;

  /* Brand accent — shared with Royalpie, fills only (dark text on top) */
  --color-cyan: #42ded1;
  --color-blue: #0798ff;
  --gradient-brand: linear-gradient(120deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  --gradient-brand-soft: linear-gradient(120deg, rgba(66, 222, 209, 0.16) 0%, rgba(7, 152, 255, 0.14) 100%);

  /* Accent as text/ink — darker same-hue variants, AA on light surfaces */
  --color-cyan-ink: #0a7f72;
  --color-blue-ink: #0567b1;
  --gradient-brand-ink: linear-gradient(120deg, var(--color-cyan-ink) 0%, var(--color-blue-ink) 100%);

  --color-success: #1d8a4e;
  --color-warning: #a96a00;

  /* Soft warm shadows (replace dark-theme glows) */
  --shadow-card: 0 1px 2px rgba(30, 26, 19, 0.04), 0 8px 24px -12px rgba(30, 26, 19, 0.12);
  --shadow-card-hover: 0 2px 4px rgba(30, 26, 19, 0.05), 0 16px 36px -14px rgba(30, 26, 19, 0.18);

  /* Typography */
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.35s var(--ease-out);
}

/* --------------------------------------------------------------------- */
/* Reset                                                                  */
/* --------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Keep the footer at the viewport bottom on short pages (help/*) */
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

main {
  flex: 1 0 auto;
}

/* Subtle paper grain over every surface — editorial texture, not flat fill */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.035;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@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;
    scroll-behavior: auto !important;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

p {
  margin: 0 0 var(--space-2);
  color: var(--color-text-dim);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(66, 222, 209, 0.35);
  color: var(--color-text);
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cyan-ink);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.section {
  position: relative;
  padding: var(--space-6) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-4);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-alt {
  background: var(--color-beige);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------- */
/* Buttons                                                                */
/* --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #04120f;
  box-shadow: 0 8px 20px -8px rgba(7, 152, 255, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px -10px rgba(7, 152, 255, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-ghost:hover {
  background: var(--color-surface-2);
  border-color: var(--color-cyan-ink);
  transform: translateY(-2px);
}

.btn-icon {
  width: 1em;
  height: 1em;
  transition: transform var(--transition-base);
}

.btn:hover .btn-icon {
  transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------- */
/* Header / nav                                                          */
/* --------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-2) 0;
  transition: background var(--transition-base), border-color var(--transition-base), padding var(--transition-base), box-shadow var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 20px -12px rgba(30, 26, 19, 0.12);
  padding: 0.7rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  color: var(--color-text);
}

/* Typographic wordmark: heavy "db" + light "innovation". Below it, a thin
   track where a round status-style dot rides the page's scroll progress
   (driven by --scroll-progress, set on <html> by main.js). */
.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-text);
  white-space: nowrap;
}

.brand-word strong {
  font-weight: 800;
}

.brand-track {
  position: relative;
  display: block;
  height: 9px;
}

/* Faint rail... */
.brand-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--color-border-strong);
}

/* ...filled with the brand gradient up to the current scroll position. */
.brand-track::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -1px;
  height: 2px;
  width: calc(var(--scroll-progress, 0) * 100%);
  background: var(--gradient-brand);
  border-radius: 2px;
}

/* Status-LED style dot — a round tech indicator riding the scroll track. */
.brand-dot {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: calc(var(--scroll-progress, 0) * (100% - 8px));
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 6px rgba(7, 152, 255, 0.45);
  transition: scale 0.3s var(--ease-out);
}

.brand:hover .brand-dot {
  scale: 1.35;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--color-text-dim);
  transition: color var(--transition-base);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition-base);
}

.nav-links a:not(.btn):hover {
  color: var(--color-text);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* EN/IT switch — deliberately low-key: small pill next to the nav */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.4em 0.75em;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-dim);
  transition: color var(--transition-base), border-color var(--transition-base);
}

.lang-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-cyan-ink);
}

.nav-toggle {
  display: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

/* --------------------------------------------------------------------- */
/* Hero                                                                   */
/* --------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: var(--space-6);
  overflow: hidden;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 60%;
  background: radial-gradient(60% 60% at 30% 20%, rgba(66, 222, 209, 0.14), transparent 70%),
    radial-gradient(50% 50% at 80% 10%, rgba(7, 152, 255, 0.1), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

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

.hero-kicker {
  margin-bottom: var(--space-3);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: var(--space-3);
}

.hero h1 .grad {
  background: var(--gradient-brand-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 56ch;
  color: var(--color-text-dim);
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.scroll-cue {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
}

.scroll-cue .line {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--color-cyan-ink), transparent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

/* Hero load-in: staggered rise, CSS-only. The global reduced-motion rule
   collapses these to instant, so no JS gate is needed. */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker,
.hero h1,
.hero-lede,
.hero-actions {
  animation: hero-rise 0.9s var(--ease-out) both;
}

.hero h1 { animation-delay: 0.08s; }
.hero-lede { animation-delay: 0.16s; }
.hero-actions { animation-delay: 0.24s; }

@keyframes scroll-cue {
  0% {
    transform: scaleY(0.2);
    transform-origin: top;
    opacity: 0.2;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  100% {
    transform: scaleY(0.2);
    transform-origin: bottom;
    opacity: 0.2;
  }
}

/* --------------------------------------------------------------------- */
/* About / stats                                                         */
/* --------------------------------------------------------------------- */

.about-copy {
  max-width: 720px;
}

.about-copy p {
  font-size: 1.05rem;
}

.pillar-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.pillar {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pillar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.pillar-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--gradient-brand-soft);
  color: var(--color-cyan-ink);
}

.pillar h4 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.pillar p {
  margin: 0;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------- */
/* Projects — banner-style venture cards                                 */
/* --------------------------------------------------------------------- */

.section-sub {
  max-width: 54ch;
}

.project-list {
  display: grid;
  gap: var(--space-3);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  border: 1px solid rgba(10, 127, 114, 0.35);
  background: rgba(66, 222, 209, 0.12);
  color: var(--color-cyan-ink);
}

.project-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(29, 138, 78, 0.18);
}

.project-status.is-upcoming {
  border-color: var(--color-border-strong);
  background: var(--color-bg);
  color: var(--color-text-faint);
}

.project-banner {
  position: relative;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: radial-gradient(120% 140% at 0% 0%, rgba(66, 222, 209, 0.08), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(7, 152, 255, 0.07), transparent 55%),
    var(--color-surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}

.project-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(10, 127, 114, 0.35), transparent 30%, transparent 70%, rgba(5, 103, 177, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.product-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.product-logo .mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  color: #04120f;
  font-size: 1.1rem;
}

.product-logo .logo-img {
  width: 42px;
  height: auto;
}

.product-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.project-info > p {
  font-size: 1rem;
  max-width: 52ch;
}

/* Reserved slot for the next venture — deliberately quiet */
.project-upcoming {
  display: block;
  border-style: dashed;
  border-color: var(--color-border-strong);
  background: transparent;
  box-shadow: none;
  text-align: center;
  padding: var(--space-4);
}

.project-upcoming::before {
  content: none;
}

.project-upcoming > div {
  max-width: 52ch;
  margin: 0 auto;
}

.project-upcoming .project-status {
  margin-bottom: var(--space-2);
}

.project-upcoming h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-bottom: var(--space-1);
}

.project-upcoming p {
  margin: 0;
  color: var(--color-text-faint);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-3) 0;
}

.chip {
  font-size: 0.78rem;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg);
  color: var(--color-text-dim);
  transition: border-color var(--transition-base), color var(--transition-base);
}

.chip:hover {
  border-color: var(--color-cyan-ink);
  color: var(--color-text);
}

.product-visual {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: radial-gradient(90% 80% at 50% 100%, rgba(7, 152, 255, 0.1), transparent 70%),
    var(--color-surface-2);
  padding: var(--space-4) var(--space-4) 0;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

/* Real Royalpie app screenshot in a CSS device frame; the phone is taller
   than the card and gets cropped by the card's bottom edge. */
.product-phone {
  display: block;
  width: min(58%, 224px);
  height: auto;
  border: 9px solid #10141a;
  border-bottom: none;
  border-radius: 34px 34px 0 0;
  box-shadow: 0 32px 56px -28px rgba(30, 26, 19, 0.45);
}

/* --------------------------------------------------------------------- */
/* Vision / market context                                               */
/* --------------------------------------------------------------------- */

.vision-quote {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.vision-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}

.vision-quote blockquote .grad {
  background: var(--gradient-brand-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------- */
/* Team                                                                   */
/* --------------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.team-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  padding: var(--space-3);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-hover);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--gradient-brand-soft);
  border: 1px solid rgba(10, 127, 114, 0.3);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-cyan-ink);
  margin-bottom: var(--space-2);
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.team-card h4 {
  margin-bottom: 0.1rem;
  font-size: 1.05rem;
}

.team-role {
  display: block;
  font-size: 0.82rem;
  color: var(--color-cyan-ink);
  margin-bottom: 0.6rem;
}

.team-card p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------- */
/* Contact / CTA band                                                    */
/* --------------------------------------------------------------------- */

.cta-band {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(66, 222, 209, 0.1), rgba(7, 152, 255, 0.07)), var(--color-surface);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.cta-band h2 {
  margin-bottom: 0.4rem;
}

.cta-band p {
  margin: 0;
  max-width: 46ch;
}

.cta-band-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.contact-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.contact-item .eyebrow {
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--color-text);
  font-weight: 600;
  border-bottom: 1px dashed var(--color-border-strong);
  transition: color var(--transition-base), border-color var(--transition-base);
}

.contact-item a:hover {
  color: var(--color-blue-ink);
  border-color: var(--color-blue-ink);
}

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-beige);
  padding: var(--space-4) 0 var(--space-3);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}

.footer-brand p {
  max-width: 34ch;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  transition: color var(--transition-base);
}

.footer-col a:hover {
  color: var(--color-cyan-ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: 0.78rem;
  color: var(--color-text-faint);
}

/* --------------------------------------------------------------------- */
/* Scroll reveal utility (paired with main.js IntersectionObserver)      */
/* --------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-reveal-group].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.35s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.45s; }

/* --------------------------------------------------------------------- */
/* Responsive                                                             */
/* --------------------------------------------------------------------- */

@media (max-width: 960px) {
  .project-banner {
    grid-template-columns: 1fr;
  }

  .product-visual {
    order: -1;
  }

  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    height: calc(100svh - 64px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: var(--space-4) var(--space-3);
    background: rgba(250, 247, 241, 0.98);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--color-border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
    gap: var(--space-3);
  }

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

  .nav-links a:not(.btn) {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .project-banner {
    padding: var(--space-3);
  }

  .product-visual {
    padding: var(--space-3) var(--space-3) 0;
  }

  .product-phone {
    width: min(70%, 224px);
  }

  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: var(--space-5) 0;
  }
}
