/* Alveron Technologies — site styles
   Palette: eggplant (hero, header, closing band, footer), lavender details,
   electric violet accent (decorative and small details only, never buttons).
   Pages are mostly white. Type: Archivo (variable width). */

:root {
  --plum: #26162f;          /* eggplant: header, hero, closing band */
  --plum-deep: #1a0f20;     /* footer */
  --plum-2: #3a2546;        /* chips and raised surfaces on eggplant */
  --violet: #7a55f0;        /* accent: brand marker, rules, focus (decorative) */
  --violet-ink: #6a45e0;    /* accent for text on white (5.9:1) */
  --violet-soft: #ad94ff;   /* accent on eggplant (6.8:1) */
  --lavender: #c9b8ff;
  --lav-tint: #f3effa;      /* light lavender card */
  --lav-line: #e3dbf3;
  --soft: #f7f5fb;          /* alternate section background */
  --paper: #ffffff;
  --line: #e8e5ec;
  --line-dark: rgba(255, 255, 255, 0.12);
  --ink: #1d1324;           /* headings */
  --text: #2c2633;
  --muted: #5a5363;
  --on-dark: #dcd3ea;
  --on-dark-muted: #a99bb8;

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --x-wide: 120%;
  --wide: 114%;
  --semi: 106%;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space-section: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 8px;
  --radius-lg: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--violet-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--plum); text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--paper); color: var(--plum);
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-stretch: var(--semi);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5.8vw, 4.7rem); font-stretch: var(--x-wide); font-weight: 720; line-height: 1.0; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); font-stretch: var(--wide); font-weight: 680; letter-spacing: -0.018em; line-height: 1.06; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }
h1, h2, h3, .lead { text-wrap: balance; }

/* In-page links land below the sticky header */
[id] { scroll-margin-top: 96px; }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin: 0 0 1.1rem; font-size: 0.85rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet-ink);
}
.hero .eyebrow, .page-head .eyebrow, .cta .eyebrow { color: var(--violet-soft); }

/* Brand marker: a short slanted stroke, echoing the diagonal of the "A" in the Alveron logo */
.mark {
  display: inline-block;
  width: 0.22em; height: 0.9em;
  background: var(--violet);
  transform: skewX(-24deg);
  border-radius: 1px;
  flex: none;
}
.hero .mark, .page-head .mark, .cta .mark, .team-feature .mark, .site-footer .mark { background: var(--violet-soft); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 50px; padding: 0.8rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: 1rem; font-weight: 600; font-stretch: var(--semi); line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--plum); color: var(--paper); }
.btn-primary:hover { background: var(--plum-deep); color: var(--paper); box-shadow: 0 10px 24px rgba(38, 22, 47, 0.28); }
.btn-ghost { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn-ghost:hover { background: var(--plum); color: var(--paper); }
.btn-white { background: var(--paper); color: var(--plum); }
.btn-white:hover { background: var(--lav-tint); color: var(--plum); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.4); color: var(--paper); background: transparent; }
.btn-ghost-light:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.08); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; }

/* ---------- Header (eggplant, site-wide) ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--plum);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(26, 15, 32, 0.16); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; }
.brand-logo { display: block; height: 28px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  position: relative;
  color: var(--on-dark); text-decoration: none; font-size: 1rem; font-weight: 500;
  padding-block: 0.4rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--violet-soft); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--paper); }
.nav .btn { min-height: 44px; padding: 0.6rem 1.15rem; }

.nav-toggle {
  display: none; align-items: center; min-height: 44px; padding: 0.5rem 1rem;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: transparent; color: var(--paper); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem; background: var(--plum); border-bottom: 1px solid var(--line-dark);
  }
  .nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line-dark); }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--violet-soft); }
  .nav .btn { margin-top: 1.25rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--space-section); }
.section-soft { background: var(--soft); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); max-width: 760px; }
.section-head p { color: var(--muted); font-size: 1.13rem; }

/* ---------- Home hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--plum); color: var(--on-dark);
  /* Fill the first screen exactly on a laptop: everything down to the role strip is visible without scrolling */
  min-height: calc(100vh - 77px);
  min-height: calc(100svh - 77px);
  display: flex; flex-direction: column;
  padding-top: clamp(2rem, 6vh, 5rem);
}
.hero-art {
  position: absolute; right: -6%; top: -10%; width: min(62vw, 820px); height: auto;
  pointer-events: none;
}
.hero-glow {
  position: absolute; right: 8%; top: 18%; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 85, 240, 0.22), rgba(122, 85, 240, 0) 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: end; align-content: center;
}
.hero h1 { color: var(--paper); max-width: 19ch; font-size: clamp(2.4rem, min(5.2vw, 8.6vh), 4.4rem); }
.hero .eyebrow { margin-bottom: clamp(0.75rem, 2vh, 1.1rem); }
.hero .lead { color: var(--on-dark); margin-top: clamp(0.9rem, 2.4vh, 1.5rem); font-size: clamp(1.05rem, min(1.5vw, 2.5vh), 1.25rem); }
.hero .btn-row { margin-top: clamp(1.25rem, 3.6vh, 2.25rem); }

/* Role marquee at the foot of the hero */
.marquee-row {
  position: relative; display: flex; align-items: center; margin-top: clamp(1.75rem, 5vh, 4rem);
  border-top: 1px solid var(--line-dark);
}
.marquee {
  position: relative; flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-list { display: flex; gap: 2.75rem; margin: 0; padding: clamp(0.9rem, 2.4vh, 1.4rem) 2.75rem clamp(0.9rem, 2.4vh, 1.4rem) 0; list-style: none; }
.marquee-toggle {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: 0 var(--gutter) 0 0.5rem;
  border: 1px solid var(--line-dark); border-radius: 50%; background: transparent; color: var(--on-dark); cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.marquee-toggle:hover { border-color: var(--violet-soft); color: var(--paper); }
.marquee-toggle span { display: block; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.marquee-toggle[aria-pressed="true"] span {
  width: 0; height: 0; margin-left: 3px; border-right: 0;
  border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.marquee.is-paused .marquee-track { animation-play-state: paused !important; }
.marquee-list li { display: inline-flex; align-items: center; gap: 0.6rem; color: #ece6f6; font-size: 1rem; font-weight: 500; white-space: nowrap; }

/* Time-zone card */
.tz-card {
  position: relative;
  padding: clamp(1.1rem, 2.6vh, 1.6rem) 1.5rem; border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tz-card h2 { font-size: 0.85rem; font-stretch: 100%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-soft); font-weight: 650; margin-bottom: 1rem; }
.tz-list { margin: 0; padding: 0; list-style: none; }
.tz-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: clamp(0.45rem, 1.2vh, 0.7rem) 0; border-top: 1px solid var(--line-dark); }
.tz-city { color: var(--on-dark); font-size: 0.95rem; white-space: nowrap; }
.tz-time { color: var(--paper); font-weight: 600; font-stretch: var(--wide); font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tz-home .tz-city { color: var(--paper); font-weight: 600; }
.tz-home .tz-time { font-size: 1.5rem; }
.tz-note { margin: 0.8rem 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--on-dark); }
.tz-note strong { color: var(--paper); font-weight: 600; }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .tz-city { white-space: normal; }
  .hero-art { width: 120vw; right: -40%; top: auto; bottom: -10%; opacity: 0.6; }
  .hero-glow { right: -30%; top: 40%; }
}

/* ---------- Teams grid (home) ---------- */

.teams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.team {
  display: flex; flex-direction: column;
  padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.team:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(38, 22, 47, 0.1); border-color: var(--lav-line); }
.team h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; margin-bottom: 0.5rem; }
.team p { margin: 0; font-size: 0.98rem; color: var(--muted); }
.team .team-roles { margin-top: auto; padding-top: 1rem; font-size: 0.86rem; color: var(--violet-ink); }
.team-feature {
  grid-column: span 2; grid-row: span 2; background: var(--plum); border-color: var(--plum); color: var(--on-dark);
  position: relative; overflow: hidden;
}
.team-feature::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 85, 240, 0.35), rgba(122, 85, 240, 0) 70%);
  transition: transform 0.6s var(--ease);
}
.team-feature:hover::after { transform: scale(1.2); }
.team-feature:hover { border-color: var(--plum); box-shadow: 0 22px 48px rgba(38, 22, 47, 0.3); }
.team-feature h3 { color: var(--paper); font-size: 1.55rem; font-stretch: var(--wide); }
.team-feature p { color: var(--on-dark); font-size: 1.02rem; max-width: 48ch; position: relative; z-index: 1; }
.team-feature .team-roles { color: var(--violet-soft); position: relative; z-index: 1; }
.team-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.team-chips li { padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--plum-2); color: #ece6f6; font-size: 0.9rem; border: 1px solid rgba(255, 255, 255, 0.08); }
@media (max-width: 1000px) { .teams { grid-template-columns: repeat(2, minmax(0, 1fr)); } .team-feature { grid-row: auto; } }
@media (max-width: 600px) { .teams { grid-template-columns: 1fr; } .team-feature { grid-column: auto; } }

/* ---------- Tools list (home, under the teams grid) ---------- */

.tools { margin-top: 2.25rem; }
.tools h3 { font-size: 0.95rem; font-stretch: 100%; color: var(--muted); font-weight: 600; margin-bottom: 0.8rem; }

/* ---------- Steps (a real sequence) ---------- */

.steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.75rem;
  margin: 0; padding: 0; list-style: none; counter-reset: step;
}
.steps > li { position: relative; padding-top: 1.4rem; counter-increment: step; border-top: 2px solid var(--line); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 0.7rem;
  color: var(--violet-ink); font-weight: 720; font-stretch: var(--x-wide); font-size: 2rem; line-height: 1;
}
.steps > li::after {
  content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%;
  background: var(--plum); transform-origin: left;
  transition: transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 200ms);
}
.js .steps > li:not(.is-in)::after { transform: scaleX(0); }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.steps p { font-size: 1rem; color: var(--muted); margin: 0; }

@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.75rem; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Reasons ---------- */

.reasons {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem; margin: 0; padding: 0; list-style: none;
}
.reasons li {
  padding: 1.75rem; border-radius: var(--radius-lg); background: var(--lav-tint); border: 1px solid var(--lav-line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.reasons li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(38, 22, 47, 0.08); }
.reasons h3 { display: flex; align-items: center; gap: 0.65rem; font-size: 1.15rem; margin-bottom: 0.5rem; }
.reasons p { margin: 0; font-size: 1rem; color: var(--muted); }
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- Comparison tables ---------- */

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-stretch: var(--semi); font-size: 1rem; color: var(--ink); background: var(--soft); }
.compare tbody th { width: 22%; font-weight: 600; color: var(--ink); }
.compare .us { background: var(--lav-tint); color: var(--ink); font-weight: 550; }
.compare thead .us { background: var(--plum); color: var(--paper); }

@media (max-width: 720px) {
  .compare-wrap { overflow: visible; border: 0; background: transparent; border-radius: 0; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { margin-bottom: 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
  .compare tbody th { width: 100%; padding: 0.9rem 1.1rem; background: var(--soft); border-bottom: 1px solid var(--line); }
  .compare td { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--line); }
  .compare td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: 0.9rem; }
  .compare tbody tr:last-child td { border-bottom: 1px solid var(--line); }
  .compare td:last-child, .compare tbody tr:last-child td:last-child { border-bottom: 0; }
  .compare td.us::before { color: var(--violet-ink); }
}

/* ---------- Split / lists / tags ---------- */

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.tag-group { display: flex; align-items: center; gap: 0.6rem; font-size: 1.08rem; margin: 2rem 0 0.8rem; }
.tag-group:first-of-type { margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 0.42rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 0.93rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.tags li:hover { border-color: var(--lavender); background: var(--lav-tint); }

.role-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.role-group { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.role-group .tag-group { margin-top: 0; }
.role-group-wide { grid-column: span 2; }
@media (max-width: 800px) { .role-groups { grid-template-columns: 1fr; } .role-group-wide { grid-column: auto; } }

.check-list { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 0.45rem 0 0.45rem 1.6rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.82rem; width: 0.2em; height: 0.85em;
  background: var(--violet); transform: skewX(-24deg); border-radius: 1px;
}

/* ---------- Audience strip ---------- */

.audiences { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.audiences li { padding: 1.4rem 1.3rem; border-top: 2px solid var(--plum); }
.audiences h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.audiences p { margin: 0; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 1000px) { .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .audiences { grid-template-columns: 1fr; } }

/* ---------- Office ---------- */

.office { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.office-card { padding: 2rem; background: var(--plum); color: var(--on-dark); border-radius: var(--radius-lg); }
.office-card address { font-style: normal; font-size: 1.15rem; line-height: 1.6; color: var(--paper); }
.office-card p { margin: 1rem 0 0; color: var(--on-dark); font-size: 1rem; }
.office-card a { color: var(--violet-soft); }
.office-card a:hover { color: var(--paper); }
@media (max-width: 860px) { .office { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { max-width: 880px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-stretch: var(--semi); font-size: 1.1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.8rem; height: 0.8rem;
  background:
    linear-gradient(var(--violet-ink), var(--violet-ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--violet-ink), var(--violet-ink)) center / 2px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--violet-ink); }
.faq details p { margin: 0 0 1.4rem; color: var(--muted); }
.faq details[open] p { animation: faq-in 0.35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

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

.cta { position: relative; overflow: hidden; background: var(--plum); color: var(--on-dark); padding-block: clamp(4rem, 8vw, 6.5rem); }
.cta::before {
  content: ""; position: absolute; left: -10%; top: -60%; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 85, 240, 0.25), rgba(122, 85, 240, 0) 65%);
  pointer-events: none;
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 2rem 4rem; align-items: end; }
.cta h2 { color: var(--paper); max-width: 18ch; margin-bottom: 0.6rem; }
.cta p { margin: 0; color: var(--on-dark); }
.cta .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* ---------- Inner page header ---------- */

.page-head { position: relative; overflow: hidden; background: var(--plum); color: var(--on-dark); padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }
.page-head::after {
  content: ""; position: absolute; right: -8%; top: -50%; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 85, 240, 0.22), rgba(122, 85, 240, 0) 65%);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: var(--paper); font-size: clamp(2.3rem, 5vw, 3.9rem); max-width: 17ch; }
.page-head .lead { color: var(--on-dark); margin-top: 1.25rem; }
.page-head .btn-row { margin-top: 2rem; }

/* ---------- Detail blocks ---------- */

.detail {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4.5rem);
  padding-block: clamp(2.75rem, 5vw, 4rem); border-top: 1px solid var(--line);
}
.detail:first-child { border-top: 0; padding-top: 0; }
.detail h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.detail h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.detail h3:first-child { margin-top: 0; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } }

/* Callout (lavender) */
.callout { padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: var(--radius-lg); background: var(--lav-tint); border: 1px solid var(--lav-line); }
.callout h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.callout p:last-child { margin-bottom: 0; }
.callout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin-top: 1.5rem; }
.callout-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.callout-grid h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 0.6rem; }
.callout-grid p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 900px) { .callout-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .callout-grid { grid-template-columns: 1fr; } }

/* ---------- Principles & people ---------- */

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin: 0; padding: 0; list-style: none; }
.principles li { border-left: 2px solid var(--violet); padding-left: 1.4rem; }
.principles h3 { margin-bottom: 0.45rem; }
.principles p { margin: 0; color: var(--muted); font-size: 1.02rem; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.person { padding: 1.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.person:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(38, 22, 47, 0.08); }
.person-initials {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1.1rem; border-radius: 50%;
  background: var(--plum); color: var(--paper); font-weight: 700; font-stretch: var(--wide);
}
.person h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.person-role { margin: 0 0 0.75rem; color: var(--violet-ink); font-weight: 600; font-size: 0.98rem; }
.person p { font-size: 1rem; }

/* ---------- Notices ---------- */

.notice { padding: 1.4rem 1.6rem; border-left: 4px solid var(--violet); background: var(--lav-tint); border-radius: 0 var(--radius) var(--radius) 0; }
.notice h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.notice p { margin: 0; font-size: 1rem; }
.notice p + p { margin-top: 0.5rem; }

.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.job {
  display: flex; flex-direction: column; padding: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.job:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(38, 22, 47, 0.08); }
.job h3 { font-size: 1.5rem; font-stretch: var(--wide); margin-bottom: 0.4rem; }
.job > p { color: var(--muted); }
.job h4 { font-size: 0.95rem; margin: 1.1rem 0 0.3rem; color: var(--ink); }
.job .check-list { margin-bottom: 0.5rem; font-size: 0.98rem; }
.job .check-list li { padding-block: 0.3rem; }
.job .check-list li::before { top: 0.66rem; }
.job .btn { align-self: flex-start; margin-top: auto; }
.job .check-list:last-of-type { margin-bottom: 1.75rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.job-meta li { padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--lav-tint); color: var(--violet-ink); font-size: 0.85rem; font-weight: 600; }
@media (max-width: 860px) { .jobs { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.98rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.9rem;
  border: 1px solid #b4abbf; border-radius: var(--radius); background: var(--paper); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--plum); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(122, 85, 240, 0.2); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.93rem; color: var(--muted); margin: 0; }
.form-alert { padding: 1rem 1.25rem; border-radius: var(--radius); background: #fbeceb; border-left: 4px solid #a3261f; color: #5c1410; }
.form-alert[hidden] { display: none; }

.contact-aside { padding: 2rem; border-radius: var(--radius-lg); background: var(--lav-tint); border: 1px solid var(--lav-line); }
.contact-aside h2 { font-size: 1.3rem; font-stretch: var(--semi); }
.contact-aside dl { margin: 0 0 2rem; }
.contact-aside dt { font-weight: 600; margin-top: 1rem; font-size: 1rem; }
.contact-aside dd { margin: 0.15rem 0 0; }
.address-plain { font-style: normal; }

/* ---------- Prose ---------- */

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; font-stretch: var(--semi); margin-top: 2.25rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

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

.site-footer { background: var(--plum-deep); color: var(--on-dark-muted); padding-block: clamp(3.5rem, 6vw, 4.5rem) 2rem; font-size: 0.98rem; }
.site-footer a { color: #ece6f6; text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid h2 { font-size: 0.85rem; font-stretch: 100%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-soft); margin-bottom: 0.9rem; font-weight: 650; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid address { font-style: normal; margin-top: 0.75rem; }
.footer-logo { display: block; width: 220px; height: auto; }
.footer-brand p { margin-top: 1.25rem; max-width: 34ch; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: 0.9rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */

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

/* ---------- Motion ----------
   Hero entrance, scroll reveals (sections, staggered cards), step lines drawing in,
   hover lifts and a slow role marquee. All of it is off for prefers-reduced-motion. */

@media (prefers-reduced-motion: no-preference) {
  .hero-enter { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
  .hero-art path { stroke-dasharray: 1700; stroke-dashoffset: 1700; animation: draw 2.6s 0.3s ease forwards; }
  .hero-glow { animation: glow 9s ease-in-out infinite alternate; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.12); } }

  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .steps > li:not(.is-in)::after { transform: scaleX(1); }
  .marquee-track { width: auto; }
  .marquee-list { flex-wrap: wrap; gap: 0.75rem 2rem; padding-right: 0; }
  .marquee-list[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-toggle { display: none; }
}

.after-callout { margin: 1.75rem 0 0; }

/* Touch screens: keep hover lifts from sticking after a tap */
@media (hover: none) {
  .btn:hover, .team:hover, .reasons li:hover, .job:hover, .person:hover { transform: none; box-shadow: none; }
}

/* Founders callout with the years figure */
.founders { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.founders-figure { margin: 0; text-align: center; padding: 1.5rem 2rem; border-left: 1px solid var(--lav-line); }
.founders-figure strong { display: block; font-size: clamp(4rem, 9vw, 6.5rem); line-height: 1; font-weight: 760; font-stretch: var(--x-wide); color: var(--plum); letter-spacing: -0.03em; }
.founders-figure span { display: block; margin-top: 0.6rem; max-width: 14ch; color: var(--muted); font-size: 0.98rem; line-height: 1.4; }
@media (max-width: 760px) {
  .founders { grid-template-columns: 1fr; }
  .founders-figure { border-left: 0; border-top: 1px solid var(--lav-line); padding: 1.5rem 0 0; text-align: left; }
}

/* Contact: what happens next */
.next-steps { margin: 0 0 2rem; padding: 0; list-style: none; counter-reset: next; }
.next-steps li { position: relative; padding: 0 0 0.9rem 2.4rem; counter-increment: next; font-size: 0.98rem; }
.next-steps li::before {
  content: counter(next); position: absolute; left: 0; top: 0.05rem;
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--plum); color: var(--paper); font-size: 0.8rem; font-weight: 700;
}

/* ---------- Phones: tighter rhythm, bigger tap targets ----------
   Desktop is unchanged; this only trims spacing so long pages scroll less on small screens. */

@media (max-width: 600px) {
  :root { --space-section: 3.5rem; }
  .section-head { margin-bottom: 2rem; }
  .section-head p { font-size: 1.05rem; }
  .teams { gap: 0.75rem; }
  .team { padding: 1.25rem; }
  .team .team-roles { padding-top: 0.75rem; }
  .team-chips { margin-top: 1rem; }
  .tools { margin-top: 1.75rem; }
  .steps { gap: 1.5rem; }
  .steps > li { padding-top: 1rem; }
  .steps > li::before { font-size: 1.6rem; margin-bottom: 0.4rem; }
  .callout { padding: 1.5rem 1.25rem; }
  .callout-grid { gap: 1.25rem; }
  .reasons { gap: 0.75rem; }
  .reasons li { padding: 1.25rem; }
  .compare tbody th { padding: 0.75rem 1rem; }
  .compare td { padding: 0.55rem 1rem; }
  .audiences { gap: 0.25rem; }
  .audiences li { padding: 1rem 0.25rem; }
  .office-card { padding: 1.5rem; }
  .faq summary { padding: 1rem 0; font-size: 1.02rem; }
  .cta { padding-block: 3.5rem; }
  .role-group { padding: 1.25rem; }
  .job { padding: 1.4rem; }
  .page-head { padding-block: 2.75rem 2.5rem; }
}

/* Touch screens: every control at least 44px tall */
.brand { padding-block: 8px; }
.text-link { padding-block: 0.6rem; }
@media (pointer: coarse), (max-width: 600px) {
  .marquee-toggle { width: 44px; height: 44px; }
  .footer-grid li a { display: inline-block; padding-block: 0.35rem; }
  .site-footer address + p a, .contact-aside dd a, .office-card a { display: inline-block; padding-block: 0.3rem; }
}
