/* =====================================================================
   MonnaiedorMedia — static site stylesheet
   Single file, no framework, no build step.
   ===================================================================== */

/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  /* Brand (sampled from the logo gradient) */
  --brand-1: #17c5b2;
  --brand-2: #4860c3;
  --brand-grad: linear-gradient(100deg, var(--brand-1), var(--brand-2));
  /* Deeper variant used behind white text so it clears WCAG AA (≥4.5:1) */
  --brand-grad-deep: linear-gradient(100deg, #0d8378, #3c4fae);

  /* Surfaces */
  --ink-900: #0a0e13;
  --ink-800: #101720;
  --ink-700: #18212d;
  --line-dark: #263140;

  --paper: #ffffff;
  --paper-2: #f5f7fa;
  --line: #e4e9f0;

  /* Text */
  --text: #101a24;
  --text-muted: #566275;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #a7b3c4;

  /* Type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --step--1: clamp(0.875rem, 0.84rem + 0.17vw, 0.95rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.05rem + 0.36vw, 1.3125rem);
  --step-2:  clamp(1.375rem, 1.24rem + 0.66vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.5vw, 2.6rem);
  --step-4:  clamp(2.25rem, 1.6rem + 3.2vw, 4rem);

  /* Space & shape */
  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 74px;

  --shadow-sm: 0 1px 2px rgb(16 26 36 / 6%), 0 4px 12px rgb(16 26 36 / 5%);
  --shadow-md: 0 2px 6px rgb(16 26 36 / 6%), 0 18px 40px -12px rgb(16 26 36 / 14%);
  --ease: cubic-bezier(0.22, 0.75, 0.28, 1);
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 800;
}

p { text-wrap: pretty; }

a { color: inherit; }

button { font: inherit; color: inherit; }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-1);
  outline-offset: 3px;
  border-radius: 6px;
}

:target { scroll-margin-block-start: calc(var(--header-h) + 12px); }

/* ── Layout helpers ────────────────────────────────────────────────── */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper-2); }

.section--ink {
  background: var(--ink-900);
  color: var(--text-on-dark);
}
.section--ink h2 { color: #fff; }

.section__head {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
  margin-block-end: clamp(2.5rem, 5vw, 4rem);
}
.section__head h2 { font-size: var(--step-3); margin-block-end: 1rem; }
.section__head p { color: var(--text-muted); font-size: var(--step-1); }
.section--ink .section__head p { color: var(--text-on-dark-muted); }

.prose { max-width: 68ch; margin-inline: auto; text-align: center; }
.prose h2 { font-size: var(--step-3); margin-block: 0.75rem 1.25rem; }
.prose p { color: var(--text-muted); font-size: var(--step-1); }

.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-1);
  margin-block-end: 0.9rem;
}
.eyebrow--dark { color: color-mix(in oklab, var(--brand-2) 88%, black); }
.eyebrow--pill {
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%);
  color: #7fe3d6;
  text-align: start;
}
.eyebrow .dot {
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--brand-grad);
  box-shadow: 0 0 0 4px rgb(23 197 178 / 18%);
}

.lede { font-size: var(--step-1); color: var(--text-on-dark-muted); }
.lede--dark { color: var(--text-muted); }

.skip-link {
  position: fixed;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  font-weight: 650;
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* Off-document SVG gradient definitions + sticky-header sentinel */
.svg-defs { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.scroll-sentinel { position: absolute; inset-block-start: 0; inline-size: 1px; block-size: 1px; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  --btn-py: 0.85rem;
  --btn-px: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--btn-py) var(--btn-px);
  border: 0;
  border-radius: 999px;
  font-size: var(--step-0);
  font-weight: 650;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), opacity 0.18s var(--ease);
}
.btn svg { inline-size: 1.15em; block-size: 1.15em; flex: none; }
.btn--sm { --btn-py: 0.5rem; --btn-px: 1.1rem; font-size: var(--step--1); }
.btn--lg { --btn-py: 1rem; --btn-px: 1.9rem; font-size: var(--step-1); }

.btn--brand {
  background-image: var(--brand-grad-deep);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgb(35 120 191 / 55%);
}
.btn--brand:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgb(35 120 191 / 65%); }
.btn--brand:active { transform: translateY(0); }

.btn--ghost {
  background: rgb(255 255 255 / 6%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%);
}
.btn--ghost:hover { background: rgb(255 255 255 / 12%); transform: translateY(-2px); }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgb(10 14 19 / 72%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-block-end: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header[data-stuck] {
  background: rgb(10 14 19 / 92%);
  border-block-end-color: var(--line-dark);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  block-size: var(--header-h);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { inline-size: 176px; block-size: auto; }
.brand--lg img { inline-size: 210px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
  list-style: none;
  padding: 0;
}
.nav__list a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 550;
  padding-block: 0.4rem;
  position: relative;
  transition: color 0.18s var(--ease);
}
.nav__list a:not(.btn)::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 2px;
  border-radius: 2px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav__list a:hover { color: #fff; }
.nav__list a:not(.btn):hover::after,
.nav__list a:not(.btn)[aria-current="true"]::after { transform: scaleX(1); }
.nav__list a[aria-current="true"] { color: #fff; }
.nav__list .btn { color: #fff; }

.nav-toggle {
  display: none;
  padding: 0.55rem;
  background: rgb(255 255 255 / 8%);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 5px; inline-size: 22px; }
.nav-toggle__bars i {
  block-size: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink-900);
  color: var(--text-on-dark);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.3; }
.hero__glow--a {
  inline-size: 40vw; block-size: 40vw; min-inline-size: 320px; min-block-size: 320px;
  background: var(--brand-1);
  inset-block-start: -14%; inset-inline-start: -8%;
}
.hero__glow--b {
  inline-size: 46vw; block-size: 46vw; min-inline-size: 340px; min-block-size: 340px;
  background: var(--brand-2);
  inset-block-start: -6%; inset-inline-end: -12%;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero__title {
  font-size: clamp(2.2rem, 1.55rem + 2.35vw, 3.15rem);
  margin-block-end: 1.25rem;
  text-wrap: initial;
}
.hero__title .line { display: block; }
.hero__copy .lede { max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-block-start: 2rem; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  list-style: none;
  padding: 1.6rem 0 0;
  margin-block-start: 2.2rem;
  border-block-start: 1px solid var(--line-dark);
  color: var(--text-on-dark-muted);
  font-size: var(--step--1);
}
.hero__proof strong { color: #fff; font-size: var(--step-1); font-weight: 800; margin-inline-end: 0.3rem; }

.hero__art { position: relative; }
.art { inline-size: 100%; block-size: auto; overflow: visible; }
.art__panel  { animation: float 9s ease-in-out infinite; }
.art__card--bars { animation: float 11s ease-in-out -2s infinite; }
.art__card--ring { animation: float 10s ease-in-out -4s infinite; }
.art__spark { animation: twinkle 4.5s ease-in-out infinite; transform-origin: 508px 66px; }
.art__orb   { animation: float 7s ease-in-out -1s infinite; }
.art__halo  { animation: spin 60s linear infinite; transform-origin: 280px 200px; }
.art__pt    { animation: pulse 3s ease-in-out infinite; transform-origin: 450px 112px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.65; } }

/* ── Feature cards ─────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none;
  padding: 0;
}
.card {
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--brand-1) 45%, var(--line));
}
.card__icon {
  display: grid;
  place-items: center;
  inline-size: 64px;
  block-size: 64px;
  border-radius: 20px;
  background: linear-gradient(140deg,
              color-mix(in oklab, var(--brand-1) 16%, transparent),
              color-mix(in oklab, var(--brand-2) 16%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand-2) 14%, transparent);
  margin-block-end: 1.4rem;
}
.card__icon svg { inline-size: 34px; block-size: 34px; }
.card h3 { font-size: var(--step-2); margin-block-end: 0.6rem; }
.card p { color: var(--text-muted); font-size: var(--step--1); line-height: 1.7; }

/* ── Quotes ────────────────────────────────────────────────────────── */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  list-style: none;
  padding: 0;
}
.quote {
  position: relative;
  padding: clamp(1.75rem, 2.6vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.quote__mark {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
}
.quote__mark svg { inline-size: 22px; block-size: 22px; }
.quote blockquote p { color: var(--text-muted); font-size: var(--step-0); }
.quote__by {
  margin-block-start: auto;
  padding-block-start: 1.1rem;
  border-block-start: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  align-items: baseline;
  font-size: var(--step--1);
}
.quote__by strong { font-weight: 700; }
.quote__by span { color: var(--text-muted); }

/* ── Stats ─────────────────────────────────────────────────────────── */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}
.stat {
  text-align: center;
  padding: clamp(1.5rem, 2.5vw, 2rem) 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 2%));
  border: 1px solid var(--line-dark);
}
.stat dt { order: 2; color: var(--brand-1); font-size: var(--step--1); font-weight: 600; }
.stat dd {
  order: 1;
  margin: 0 0 0.35rem;
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat { display: flex; flex-direction: column; }

/* ── Contact ───────────────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}
.contact__cta,
.contact__card {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.contact__cta h3 { font-size: var(--step-2); margin-block-end: 0.7rem; }
.contact__cta > p { color: var(--text-muted); max-width: 46ch; }
.contact__cta .btn { margin-block-start: 1.6rem; word-break: break-word; }
.contact__note { margin-block-start: 1rem; font-size: var(--step--1); color: var(--text-muted); }

.contact__card {
  font-style: normal;
  background: linear-gradient(160deg,
              color-mix(in oklab, var(--brand-1) 8%, var(--paper)),
              color-mix(in oklab, var(--brand-2) 8%, var(--paper)));
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  color: var(--text-muted);
}
.contact__name { color: var(--text); font-weight: 700; font-size: var(--step-1); }
.contact__card a { color: color-mix(in oklab, var(--brand-2) 85%, black); text-underline-offset: 3px; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-900);
  color: var(--text-on-dark-muted);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-block-start: 1px solid var(--line-dark);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.75rem; }
.site-footer__nav a { text-decoration: none; font-size: var(--step--1); transition: color 0.18s var(--ease); }
.site-footer__nav a:hover { color: #fff; }
.site-footer__legal { font-size: var(--step--1); color: #808c9d; }

/* ── Reveal on scroll ──────────────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (width <= 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy .lede { margin-inline: auto; }
  .hero__actions, .hero__proof { justify-content: center; }
  .hero__art { order: -1; max-width: 520px; margin-inline: auto; }
  .contact { grid-template-columns: 1fr; }
}

@media (width <= 780px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: rgb(10 14 19 / 97%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-block-end: 1px solid var(--line-dark);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s var(--ease);
  }
  .nav[data-open] { grid-template-rows: 1fr; }
  .nav__list {
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: var(--gutter);
  }
  .nav[data-open] .nav__list { padding-block: 0.75rem 1.5rem; }
  .nav__list li + li { border-block-start: 1px solid rgb(255 255 255 / 7%); }
  .nav__list a:not(.btn) { display: block; padding-block: 0.95rem; font-size: var(--step-0); }
  .nav__list a:not(.btn)::after { display: none; }
  .nav__list .btn { margin-block-start: 1rem; }
  .nav__list li:last-child { border-block-start: 0; }
}

@media (width <= 480px) {
  .brand img { inline-size: 150px; }
  .brand--lg img { inline-size: 180px; }
  .btn { inline-size: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
}

/* ── Motion & print ────────────────────────────────────────────────── */
@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;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero__bg, .hero__art { display: none !important; }
  body { color: #000; background: #fff; }
  .section--ink, .hero, .site-footer { background: #fff !important; color: #000 !important; }
  a::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
