/* ==========================================================================
   Toni D'Antonio — portfolio stylesheet
   Sections: 1) Tokens & base  2) Header/nav  3) Layout & headings
             4) Buttons & badges  5) Hero  6) Audio intro  7) About
             8) Card grids  9) How I work  10) Timeline  11) Featured project
             12) Carousel  13) Projects  14) Extensions  15) Contact
             16) Footer  17) Reveal animations  18) Responsive
   Short rules use single-line format to keep the file compact.
   ========================================================================== */

/* 1) Tokens & base ------------------------------------------------------- */
:root {
  --bg: #07111f;
  --bg-card: rgba(17, 33, 57, 0.82);
  --text: #f5f8fc;
  --text-muted: #b7c6d9;
  --accent: #4dd4d0;
  --accent-strong: #8be8c9;
  --accent-soft: rgba(77, 212, 208, 0.14);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(139, 232, 201, 0.36);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.04));
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 16px 44px rgba(0, 0, 0, 0.22);
  --radius: 10px;
  --max-width: 1140px;
  --header-height: 74px;
  /* Centralized motion tokens */
  --motion-slow: 1000ms;
  --motion-medium: 700ms;
  --motion-reveal: 1300ms;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 8%, rgba(77, 212, 208, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(245, 200, 107, 0.12), transparent 26rem),
    linear-gradient(135deg, #07111f 0%, #0b1728 48%, #10223b 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  border-radius: var(--radius);
  background: var(--accent);
  color: #06101d;
  font-weight: 800;
  padding: 0.75rem 1rem;
}

.skip-link:focus { top: 1rem; }

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

/* 2) Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 31, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 2rem, var(--max-width));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 800; }

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #06101d;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(77, 212, 208, 0.2);
}

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

.nav-links a {
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.7rem 0.72rem;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible { background: var(--accent-soft); color: var(--text); outline: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

/* 3) Layout & headings --------------------------------------------------- */
.section {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 4.25rem 0;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* Full-width tinted band for alternating section separation */
.band {
  width: 100%;
  max-width: none;
  padding-right: max(1rem, calc((100% - var(--max-width)) / 2));
  padding-left: max(1rem, calc((100% - var(--max-width)) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.eyebrow,
.card-kicker {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading { max-width: 780px; margin-bottom: 2.25rem; }

.section-heading h2,
.featured-copy h2 { margin-top: 0.7rem; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }

.section-heading > p:not(.eyebrow),
.featured-copy > p { margin-top: 1rem; }

/* Shared glass-card surface */
.hero-card,
.content-panel,
.info-card,
.timeline-card,
.project-card,
.extension-card,
.contact-card,
.method-step,
.featured-grid,
.intro-panel,
.featured-extension {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass), var(--bg-card);
  box-shadow: var(--shadow-soft);
}

/* Muted body copy inside cards and panels */
.hero-card p:not(.card-kicker),
.section-heading p:not(.eyebrow),
.content-panel p,
.info-card p,
.timeline-card p,
.project-card p,
.extension-card p,
.method-step p,
.featured-copy > p,
.featured-extension p:not(.card-kicker),
.intro-panel p { color: var(--text-muted); }

/* 4) Buttons & badges ---------------------------------------------------- */
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  padding: 0.78rem 1.05rem;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease,
    transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); outline: none; }

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #06101d;
  box-shadow: 0 16px 36px rgba(77, 212, 208, 0.2);
}

.button.secondary { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.button.ghost { color: var(--text-muted); }

.proof-badges,
.label-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }

.proof-badges span,
.label-row span,
.status-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.85rem;
  font-weight: 750;
  padding: 0.45rem 0.75rem;
}

.label-row span {
  border-color: rgba(139, 232, 201, 0.22);
  background: rgba(77, 212, 208, 0.09);
  color: var(--accent-strong);
}

.status-badge {
  display: inline-flex;
  margin-bottom: 1rem;
  border-color: rgba(139, 232, 201, 0.3);
  background: rgba(77, 212, 208, 0.1);
  color: var(--accent-strong);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* 5) Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-top: 4.25rem; padding-bottom: 3rem; }

/* Staged entrance on page load: eyebrow → heading → subtitle → intro →
   badges → buttons → snapshot card → audio strip. CSS-only, no observer. */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes glowIn {
  from { opacity: 0; }
}

.hero-copy > *,
.hero-card,
.intro-panel { animation: heroIn var(--motion-slow) var(--motion-ease) both; }

.hero-copy .eyebrow { animation-delay: 0ms; }
.hero-copy h1 { animation-delay: 140ms; }
.hero-copy h2 { animation-delay: 280ms; }
.hero-copy .hero-intro { animation-delay: 420ms; }
.hero-copy .proof-badges { animation-delay: 560ms; }
.hero-copy .hero-actions { animation-delay: 700ms; }
.hero-card { animation-delay: 840ms; }
.intro-panel { animation-delay: 980ms; }

.hero-shape { position: absolute; border-radius: 999px; filter: blur(6px); opacity: 0.32; pointer-events: none; }

.shape-one {
  top: 14%;
  right: 4%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(77, 212, 208, 0.42), transparent 68%);
  animation: glowIn 1600ms ease-out both, floatShape 12s ease-in-out infinite;
}

.shape-two {
  bottom: 6%;
  left: -4%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(245, 200, 107, 0.22), transparent 70%);
  animation: glowIn 1600ms ease-out both, floatShape 15s ease-in-out infinite reverse;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 2.25rem;
  align-items: center;
}

h1 { margin-top: 1rem; font-size: clamp(3rem, 7vw, 5.4rem); }

.hero h2 {
  max-width: 20ch;
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 700;
}

.hero-intro { max-width: 62ch; margin-top: 1.3rem; color: var(--text-muted); font-size: 1.06rem; }

.hero-actions,
.extension-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }

.hero-card {
  padding: 1.4rem;
  background:
    linear-gradient(140deg, rgba(77, 212, 208, 0.12), transparent 38%),
    var(--glass), var(--bg-card);
}

.hero-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.availability {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
}

.hero-card h3 { margin-top: 0.85rem; font-size: 1.4rem; }
.hero-card > p:not(.card-kicker) { margin-top: 0.85rem; font-size: 0.96rem; }

.proof-rows { display: grid; gap: 0.7rem; margin-top: 1.2rem; }

.proof-rows div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(6, 14, 26, 0.34);
  padding: 0.85rem 0.95rem;
}

.proof-rows strong { display: block; color: var(--accent-strong); font-size: 0.95rem; }
.proof-rows span { display: block; margin-top: 0.15rem; color: var(--text-muted); font-size: 0.88rem; }

/* 6) Audio intro (compact strip under the hero) --------------------------- */
.intro-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background:
    linear-gradient(135deg, rgba(77, 212, 208, 0.12), transparent 50%),
    var(--glass), var(--bg-card);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.intro-copy h2 { font-size: 1.1rem; }
.intro-copy p { margin-top: 0.3rem; font-size: 0.92rem; }
.audio-area audio { display: block; width: 100%; accent-color: var(--accent); }

.audio-placeholder {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px dashed rgba(139, 232, 201, 0.32);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
}

.audio-placeholder[hidden],
.audio-area audio[hidden] { display: none; }

.audio-dot {
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 0 5px rgba(139, 232, 201, 0.1);
}

/* 7) About ---------------------------------------------------------------- */
.about { padding-top: 3.5rem; }
.content-panel { padding: 1.6rem; }
.ai-panel p + p { margin-top: 0.8rem; }
.split-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.split-panel h3 { margin-bottom: 0.6rem; color: var(--accent-strong); font-size: 1.05rem; }

/* 8) Card grids (What I bring, projects, extensions, contact) ------------- */
.card-grid,
.project-grid,
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.extension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-card,
.project-card,
.extension-card,
.contact-card {
  min-width: 0;
  padding: 1.3rem;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.info-card:hover,
.project-card:hover,
.extension-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-number {
  display: inline-grid;
  min-width: 2rem;
  height: 2rem;
  place-items: center;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.info-card h3,
.project-card h3,
.extension-card h3 { margin-bottom: 0.6rem; font-size: 1.14rem; }

/* 9) How I work — horizontal process line --------------------------------- */
.method-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Connector line behind the step numbers */
.method-line::before {
  position: absolute;
  top: 2.35rem;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  content: "";
}

.method-step {
  position: relative;
  padding: 1.3rem;
  text-align: center;
  background: var(--glass), rgba(9, 20, 36, 0.9);
}

.method-step span {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  margin-bottom: 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.95);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 900;
}

.method-step h3 { font-size: 1.05rem; }
.method-step p { margin-top: 0.5rem; font-size: 0.9rem; }

/* 10) Timeline ------------------------------------------------------------ */
.timeline { position: relative; display: grid; gap: 1rem; }

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 13px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-soft), var(--line), var(--accent-soft));
  content: "";
}

.timeline-item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 1rem; }

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 6px solid var(--bg);
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-card { padding: 1.3rem; }

.systems-panel { margin-top: 1.5rem; }
.systems-panel h3 { margin-bottom: 0.5rem; color: var(--accent-strong); font-size: 1.05rem; }
.systems-panel .label-row { margin-top: 0.9rem; }

.timeline-card.is-primary {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(77, 212, 208, 0.14), transparent 45%),
    var(--glass), var(--bg-card);
}

.timeline-card h3 { margin: 0.4rem 0 0.6rem; font-size: 1.2rem; }
.timeline-card p + p { margin-top: 0.6rem; }
.timeline-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.timeline-card-head h3 { margin-bottom: 0; }

/* Small employer logo bubbles — visual context only, not a sponsor wall */
.company-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.company-logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  transition: transform 220ms ease;
}

/* Wide wordmark logos need more room inside the bubble to stay legible */
.company-logo img.logo-wide { width: 96%; height: 96%; }

.timeline-card:hover .company-logo {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 6px rgba(139, 232, 201, 0.12);
}

.timeline-card:hover .company-logo img { transform: scale(1.07); }

/* Entrance: fade up with a very subtle overshoot (reuses the reveal observer) */
.logo-pop {
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  transition:
    opacity var(--motion-medium) ease,
    transform var(--motion-medium) cubic-bezier(0.3, 1.35, 0.45, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.logo-pop.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* Role progression list inside the Catawiki card */
.role-list { margin: 0.7rem 0; padding-left: 1.15rem; }
.role-list li { color: var(--text-muted); padding: 0.12rem 0; }
.role-list li::marker { color: var(--accent-strong); }

/* 11) Featured project ----------------------------------------------------- */
.featured-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(77, 212, 208, 0.14), transparent 42%),
    var(--glass), var(--bg-card);
}

/* 12) Carousel -------------------------------------------------------------- */
.applyr-carousel {
  min-width: 0;
  border: 1px solid rgba(139, 232, 201, 0.24);
  border-radius: var(--radius);
  background: rgba(7, 17, 31, 0.52);
  padding: 0.75rem;
}

.carousel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carousel-topline strong {
  border: 1px solid rgba(139, 232, 201, 0.25);
  border-radius: 999px;
  color: var(--accent-strong);
  padding: 0.25rem 0.55rem;
}

.carousel-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #080d18;
  aspect-ratio: 16 / 9;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(2%);
  transition: opacity 520ms ease, transform 520ms ease;
}

.carousel-slide.is-active { opacity: 1; transform: translateX(0); z-index: 1; }

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-medium) var(--motion-ease);
}

/* Subtle zoom on hover/keyboard focus, with a "Click to expand" cue */
.carousel-frame:hover .carousel-slide.is-active img,
.carousel-frame:has(.carousel-zoom:focus-visible) .carousel-slide.is-active img { transform: scale(1.04); }

.carousel-zoom {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  padding: 0;
}

.carousel-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }

.zoom-cue {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.85);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  opacity: 0;
  transition: opacity var(--motion-medium) ease;
  pointer-events: none;
}

.carousel-frame:hover .zoom-cue,
.carousel-zoom:focus-visible .zoom-cue { opacity: 1; }

/* Touch devices have no hover: keep the cue visible */
@media (hover: none) {
  .zoom-cue { opacity: 1; }
}

.carousel-slide::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 18, 0.92));
  content: "";
}

.carousel-slide figcaption {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  left: 1rem;
  z-index: 2;
  display: grid;
  gap: 0.15rem;
}

.carousel-slide figcaption span {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.carousel-slide figcaption strong { font-size: 1.08rem; }
.carousel-slide figcaption small { max-width: 54ch; color: var(--text-muted); font-size: 0.85rem; }

.carousel-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

.carousel-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 0.75rem;
}

.carousel-button:hover,
.carousel-button:focus-visible { border-color: var(--line-strong); outline: none; }

.carousel-dots { display: flex; justify-content: center; gap: 0.45rem; }

.carousel-dots button {
  width: 2rem;
  height: 0.35rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.is-active { background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }

/* 13) Projects & tools ------------------------------------------------------ */
.outcome {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--accent-strong);
  font-size: 0.9rem;
  padding-top: 0.8rem;
}

/* 14) Extensions ------------------------------------------------------------ */
.featured-extension {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(77, 212, 208, 0.15), transparent 48%),
    var(--glass), var(--bg-card);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.featured-extension h3 { margin-top: 0.7rem; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.featured-extension .status-badge { margin: 0.9rem 0 0; }
.featured-extension-copy > p:not(.card-kicker) { margin-top: 0.9rem; }

/* Compact store buttons inside the small extension cards */
.extension-card .extension-actions { margin-top: 1.1rem; }
.extension-card .button { min-height: 40px; font-size: 0.86rem; padding: 0.6rem 0.8rem; }

.embedded-video { display: grid; gap: 0.6rem; min-width: 0; }

.embedded-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(139, 232, 201, 0.3);
  border-radius: var(--radius);
  background: #050a12;
}

/* 15) Contact --------------------------------------------------------------- */
.contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-card { display: grid; gap: 0.3rem; }

.contact-card span {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card strong { overflow-wrap: anywhere; }

a.contact-card:hover,
a.contact-card:focus-visible { border-color: var(--line-strong); transform: translateY(-2px); outline: none; }

/* 15b) Lightbox ---------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(4, 10, 18, 0.88);
  backdrop-filter: blur(8px);
  padding: 2rem;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 84vh;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(77, 212, 208, 0.16), var(--shadow);
  animation: lightboxIn var(--motion-medium) var(--motion-ease) both;
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: border-color 180ms ease, background 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible { border-color: var(--line-strong); background: rgba(77, 212, 208, 0.15); outline: none; }

body.lightbox-open { overflow: hidden; }

/* 16) Footer ------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1.5rem 1rem;
  text-align: center;
}

/* 17) Reveal animations -------------------------------------------------------- */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-fade {
  opacity: 0;
  transition:
    opacity var(--motion-reveal) var(--motion-ease),
    transform var(--motion-reveal) var(--motion-ease),
    filter var(--motion-reveal) var(--motion-ease);
}

.reveal-up { transform: translateY(22px); }
.reveal-left { transform: translateX(-22px); }
.reveal-right { transform: translateX(22px); }
.reveal-fade { transform: scale(0.99); filter: blur(5px); }
.is-visible { opacity: 1; transform: none; filter: none; }

/* Gentle stagger inside grids */
.card-grid > :nth-child(3n + 2),
.project-grid > :nth-child(3n + 2),
.method-line > :nth-child(even),
.contact-grid > :nth-child(4n + 2) { transition-delay: 130ms; }

.card-grid > :nth-child(3n),
.project-grid > :nth-child(3n),
.contact-grid > :nth-child(4n + 3) { transition-delay: 260ms; }

.contact-grid > :nth-child(4n) { transition-delay: 390ms; }

@keyframes floatShape {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -16px, 0) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-fade,
  .logo-pop { opacity: 1; transform: none; filter: none; }
}

/* 18) Responsive ----------------------------------------------------------------- */
@media (max-width: 980px) {
  .nav-links a { font-size: 0.84rem; padding-right: 0.55rem; padding-left: 0.55rem; }

  .hero-grid,
  .featured-grid,
  .featured-extension,
  .intro-panel,
  .split-panel { grid-template-columns: 1fr; }

  .card-grid,
  .project-grid,
  .contact-grid,
  .method-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .method-line::before { display: none; }
  .carousel-frame { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: var(--header-height) 1rem auto 1rem;
    display: grid;
    gap: 0.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 17, 31, 0.98);
    padding: 0.6rem;
    box-shadow: var(--shadow);
    transform: translateY(-1rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .section { padding: 3.75rem 0; }
  .hero { padding-top: 3.5rem; }
  h1 { font-size: 3rem; }
  .hero h2 { font-size: 1.4rem; }

  .card-grid,
  .project-grid,
  .extension-grid,
  .contact-grid,
  .method-line,
  .proof-rows { grid-template-columns: 1fr; }

  .button,
  .hero-actions,
  .extension-actions { width: 100%; }

  .carousel-controls { grid-template-columns: 1fr 1fr; }
  .carousel-dots { grid-column: 1 / -1; order: 3; }
  .method-step { text-align: left; }
  .company-logo { width: 44px; height: 44px; }
}
