/* ============================================================================
   AcademiTime · public site
   Slate corporativo (#4e6570) sobre fondo claro
   ============================================================================ */

:root {
  /* ── Palette (mirror app theme) ─────────────────────────────────────── */
  --ink:         #4e6570;   /* --app-primary-color */
  --ink-2:       #3a4d57;   /* --app-primary-color-dark */
  --ink-light:   #6b8290;   /* --app-primary-color-light */
  --ink-soft:    rgba(26, 26, 26, 0.65);   /* --lumo-secondary-text-color */
  --ink-strong:  #1a1a1a;                  /* --lumo-header-text-color */

  --bone:        #F5F7FA;   /* --app-background-color */
  --bone-2:      #ECEFF4;
  --bone-3:      #DEE3EA;
  --paper:       #FFFFFF;   /* --app-surface-color */
  --line:        rgba(78, 101, 112, 0.12); /* slate-tinted border */
  --line-strong: rgba(78, 101, 112, 0.22);

  /* Accents (kept discreet, for spot use only) */
  --amber:       #E08B2A;
  --amber-soft:  #F2C277;
  --teal:        #1F6F6A;
  --ok:          #43A047;   /* --lumo-success-color */
  --warn:        #FF9800;
  --err:         #E53935;

  /* Slate-tinted shadows (matches --app-shadow-* in styles.css) */
  --shadow-subtle:   0 1px 3px rgba(78, 101, 112, 0.08), 0 1px 2px rgba(78, 101, 112, 0.06);
  --shadow-medium:   0 4px 12px rgba(78, 101, 112, 0.10), 0 2px 4px rgba(78, 101, 112, 0.06);
  --shadow-elevated: 0 8px 24px rgba(78, 101, 112, 0.12), 0 4px 8px rgba(78, 101, 112, 0.08);

  /* ── Type (system stack, like the app) ──────────────────────────────── */
  --sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
             Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif,
             "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --display: var(--sans);
  --mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* ── Spacing ────────────────────────────────────────────────────────── */
  --container: 1200px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);

  /* ── Radii (mirror --lumo-border-radius-*) ──────────────────────────── */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

/* ------------------------------- reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(26, 26, 26, 0.87);   /* --lumo-body-text-color */
  background: var(--bone);
  background-image:
    radial-gradient(900px 600px at 90% -10%, rgba(78, 101, 112, .08), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(78, 101, 112, .05), transparent 60%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* fine grain noise overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .4;
  mix-blend-mode: multiply;
  z-index: 1;
}
.nav, main, .footer { position: relative; z-index: 2; }

/* ------------------------------- type ------------------------------------ */
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin: 0;
  color: var(--ink-strong);
}
.display em {
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
  position: relative;
}
.display em::after {
  /* subtle amber underline brush */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.05em;
  height: 0.18em;
  background: var(--amber);
  opacity: .35;
  border-radius: 999px;
  z-index: -1;
}
.display--md { font-size: clamp(1.75rem, 3.6vw, 2.8rem); font-weight: 700; }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--ink);
  text-transform: none;
  margin: 0 0 1.2rem;
  font-weight: 500;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 1.4rem 0 0;
  font-weight: 400;
}

.section__intro {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
}

/* ------------------------------- nav ------------------------------------- */
.nav {
  display: flex; align-items: center;
  gap: 2rem;
  padding: 1.1rem var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}
.nav__brand em { font-style: normal; color: var(--ink); font-weight: 700; }
.nav__logo { width: 30px; height: 30px; color: var(--ink); }

.nav__links {
  display: flex; gap: 1.4rem;
  margin-left: auto;
  font-size: .92rem;
  color: var(--ink-soft);
}
.nav__links a { position: relative; padding: .25rem 0; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: .7rem; }
.lang-toggle {
  font-family: var(--mono);
  font-size: .78rem;
  padding: .42rem .7rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  color: var(--ink);
  transition: background .2s, border-color .2s;
}
.lang-toggle:hover { background: var(--paper); border-color: var(--ink); }

/* language visibility */
html[data-lang="es"] [data-lang-when="en"],
html[data-lang="en"] [data-lang-when="es"] { display: none; }

/* ------------------------------- buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.4rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  text-align: center;
  white-space: nowrap;
}
.btn--small { padding: .55rem 1rem; font-size: .9rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 20px -10px rgba(14,42,71,.55);
}
.btn--primary:hover {
  transform: translateY(-1px);
  background: var(--ink-2);
  box-shadow: 0 12px 24px -10px rgba(14,42,71,.6);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ------------------------------- hero ------------------------------------ */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 5rem) var(--pad-x) clamp(4rem, 8vw, 7rem);
  max-width: var(--container);
  margin: 0 auto;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 56rem; }

.hero__cta { display: flex; gap: .8rem; margin: 2.2rem 0 0; flex-wrap: wrap; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.6rem 2rem;
  margin: 3.2rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}
.hero__stats div { display: grid; gap: .25rem; }
.hero__stats dt {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--ink-soft);
  letter-spacing: .03em;
}
.hero__stats dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.hero__chip {
  position: absolute;
  top: 1rem;
  right: var(--pad-x);
  z-index: 3;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .42rem .9rem .42rem .55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--ink-soft);
}
.hero__chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(47,122,75,.18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(47,122,75,.18); }
  50%     { box-shadow: 0 0 0 7px rgba(47,122,75,.05); }
}

/* hero animated grid */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .55;
  mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 70%, transparent 100%);
}
.hero__cells {
  position: absolute;
  top: 6%; right: -4%;
  width: 62%; height: 84%;
  background-image:
    linear-gradient(to right, rgba(14,42,71,.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,42,71,.13) 1px, transparent 1px);
  background-size: calc(100% / 6) calc(100% / 9);
  border: 1px solid rgba(14,42,71,.18);
  border-radius: 10px;
}
.hero__cells::before,
.hero__cells::after {
  content: "";
  position: absolute;
  border-radius: 4px;
  background: var(--ink);
  opacity: 0;
  animation: fillCell .6s ease forwards;
}
.hero__cells::before {
  top: calc(100%/9 * 1); left: calc(100%/6 * 1);
  width: calc(100%/6); height: calc(100%/9 * 2);
  background: var(--amber);
  animation-delay: .9s;
}
.hero__cells::after {
  top: calc(100%/9 * 4); left: calc(100%/6 * 3);
  width: calc(100%/6 * 2); height: calc(100%/9);
  background: var(--teal);
  animation-delay: 1.4s;
}
@keyframes fillCell {
  from { opacity: 0; transform: translateY(6px) scale(.95); }
  to   { opacity: .9; transform: translateY(0) scale(1); }
}

/* ------------------------------- sections -------------------------------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) var(--pad-x);
  position: relative;
}
.section--alt {
  background:
    linear-gradient(180deg, transparent, rgba(14,42,71,.04) 6%, rgba(14,42,71,.04) 94%, transparent);
  max-width: 100%;
}
.section--alt > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

.section__head { max-width: 60rem; margin: 0 0 3rem; }
.section__head--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 4rem;
  align-items: end;
}
@media (min-width: 880px) {
  .section__head--split { grid-template-columns: 1.6fr 1fr; }
}

/* ------------------------------- profiles -------------------------------- */
.profiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 760px) { .profiles { grid-template-columns: repeat(3, 1fr); } }

.profile {
  position: relative;
  padding: 2rem 1.7rem 1.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.profile:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 24px 40px -28px rgba(14,42,71,.45);
}
.profile__num {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--amber);
  letter-spacing: .08em;
}
.profile h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  margin: .35rem 0 .8rem;
}
.profile p { margin: 0 0 1rem; color: var(--ink-2); }
.profile ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: .45rem;
  font-size: .94rem;
  color: var(--ink-soft);
}
.profile li::before {
  content: "—";
  display: inline-block;
  margin-right: .55rem;
  color: var(--amber);
}

/* ------------------------------- features -------------------------------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 760px) {
  .features {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(220px, auto);
  }
}
.feature {
  grid-column: span 6;
  padding: 1.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
@media (min-width: 760px) {
  .feature { grid-column: span 2; }
  .feature--lg { grid-column: span 6; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 24px 40px -28px rgba(14,42,71,.4);
}
.feature__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--bone-3);
  color: var(--ink);
  margin-bottom: 1rem;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 .55rem;
}
.feature p { margin: 0; color: var(--ink-2); font-size: .96rem; }

.feature__shot {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bone-2);
  aspect-ratio: 16/10;
}
.feature__shot img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------- AI -------------------------------------- */
.section--ai {
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(224,139,42,.14), transparent 60%),
    linear-gradient(180deg, #2c3b44 0%, #1f2b32 100%);
  color: var(--paper);
  max-width: 100%;
}
.section--ai > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.section--ai .eyebrow { color: var(--amber-soft); }
.section--ai .display { color: var(--paper); }
.section--ai .display em { color: var(--amber-soft); }
.section--ai .display em::after { background: var(--amber); opacity: .55; }

.ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 760px) { .ai-grid { grid-template-columns: repeat(3, 1fr); } }

.ai-card {
  padding: 2rem 1.7rem;
  border: 1px solid rgba(244,247,250,.18);
  border-radius: var(--r-lg);
  background: rgba(244,247,250,.04);
  backdrop-filter: blur(4px);
  transition: transform .25s, border-color .25s, background .25s;
}
.ai-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber-soft);
  background: rgba(244,247,250,.07);
}
.ai-card__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  padding: .3rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(244,247,250,.25);
  color: var(--amber-soft);
  margin-bottom: 1rem;
}
.ai-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 .7rem;
  color: var(--paper);
}
.ai-card p { margin: 0; color: rgba(244,247,250,.78); font-size: .96rem; }

/* ------------------------------- integrations --------------------------- */
.integrations {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
}
@media (min-width: 640px) { .integrations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .integrations { grid-template-columns: repeat(3, 1fr); } }

.integration {
  padding: 1.4rem 1.4rem 1.4rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-md);
}
.integration__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}
.integration h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 .35rem;
}
.integration p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* ------------------------------- shots ---------------------------------- */
.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .shots {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(180px, auto);
  }
  .shot                  { grid-column: span 3; }
  .shot--feature         { grid-column: span 6; }
  .shots .shot:nth-child(4) { grid-column: span 3; }
  .shots .shot:nth-child(5) { grid-column: span 3; }
}
.shot {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.shot:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(14,42,71,.5); }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.shot--feature img { aspect-ratio: 21/9; }
.shot figcaption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  padding: .4rem .75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--ink);
}

/* ------------------------------- tech ----------------------------------- */
.tech {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) { .tech { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tech { grid-template-columns: repeat(4, 1fr); } }
.tech__col h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}
.tech__chips {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: .45rem;
}
.tech__chips li {
  font-family: var(--mono);
  font-size: .8rem;
  padding: .35rem .7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
}

/* ------------------------------- UCA ------------------------------------ */
.section--case {
  background:
    linear-gradient(180deg, transparent, rgba(224,139,42,.07));
}
.case__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 920px) {
  .case__layout {
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas:
      "head quote"
      "metrics quote";
    gap: 3rem;
  }
  .case__layout > .section__head { grid-area: head; margin: 0; }
  .case__layout > .case__metrics { grid-area: metrics; }
  .case__layout > .quote         { grid-area: quote; }
}

.quote {
  margin: 0;
  padding: 2.5rem 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.quote::before {
  content: "“";
  position: absolute;
  top: -0.4rem; left: 1.2rem;
  font-family: var(--display);
  font-size: 6rem;
  color: var(--amber);
  line-height: 1;
}
.quote__text {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.4;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.quote__author { display: grid; gap: .15rem; font-size: .92rem; }
.quote__author strong { font-weight: 600; }
.quote__author span { color: var(--ink-soft); }

.case__metrics {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.case__metrics li {
  padding: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid; gap: .35rem;
}
.case__metrics strong {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--amber);
  text-transform: uppercase;
}
.case__metrics span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ------------------------------- CTA ------------------------------------ */
.cta {
  max-width: 100%;
  padding: clamp(4rem, 8vw, 7rem) var(--pad-x);
  background:
    radial-gradient(600px 400px at 50% 0%, rgba(224,139,42,.18), transparent 60%),
    linear-gradient(180deg, #2c3b44 0%, #1f2b32 100%);
  color: var(--paper);
  text-align: center;
}
.cta__inner {
  max-width: 44rem; margin: 0 auto;
}
.cta .display { color: var(--paper); }
.cta .display em { color: var(--amber-soft); }
.cta .display em::after { background: var(--amber); opacity: .55; }
.cta p {
  margin: 1rem auto 2rem;
  color: rgba(244, 247, 250, .8);
  font-size: 1.05rem;
}
.cta .btn--primary {
  background: var(--paper);
  color: var(--ink-strong);
}
.cta .btn--primary:hover { background: var(--amber); color: var(--ink-strong); }

/* ------------------------------- footer --------------------------------- */
.footer {
  padding: 2.5rem var(--pad-x);
  background: #1f2b32;
  color: rgba(244, 247, 250, .65);
  font-size: .88rem;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 1rem;
}
.footer a { color: var(--amber-soft); }
.footer a:hover { text-decoration: underline; }
.footer__meta { margin: 0; }

/* ------------------------------- modal ---------------------------------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid; place-items: center;
  padding: 1rem;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(14, 42, 71, .55);
  backdrop-filter: blur(6px);
  animation: fade .25s ease;
}
.modal__panel {
  position: relative;
  width: min(520px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 1.8rem;
  animation: slideUp .35s cubic-bezier(.2,.7,.2,1);
}
.modal__close {
  position: absolute; top: .7rem; right: 1rem;
  background: transparent; border: 0;
  font-size: 1.8rem; line-height: 1;
  color: var(--ink-soft);
}
.modal__panel h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.55rem;
  margin: 0 0 .5rem;
}
.modal__panel > p { margin: 0 0 1.2rem; color: var(--ink-soft); }
.modal form { display: grid; gap: .85rem; }
.modal label { display: grid; gap: .35rem; font-size: .88rem; color: var(--ink-2); }
.modal input, .modal textarea {
  font: inherit;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.modal input:focus, .modal textarea:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14,42,71,.12);
}
.modal textarea { resize: vertical; min-height: 90px; }

@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) }
  to   { opacity: 1; transform: translateY(0) }
}

/* ------------------------------- reveal -------------------------------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.section .profile,
.section .feature,
.section .ai-card,
.section .integration,
.section .shot,
.section .quote,
.section .case__metrics li,
.section .tech__col {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.section.is-in .profile,
.section.is-in .feature,
.section.is-in .ai-card,
.section.is-in .integration,
.section.is-in .shot,
.section.is-in .quote,
.section.is-in .case__metrics li,
.section.is-in .tech__col {
  opacity: 1;
  transform: translateY(0);
}
.section.is-in .profile:nth-child(2),
.section.is-in .feature:nth-child(2),
.section.is-in .ai-card:nth-child(2),
.section.is-in .integration:nth-child(2),
.section.is-in .shot:nth-child(2),
.section.is-in .tech__col:nth-child(2) { transition-delay: .08s; }
.section.is-in .profile:nth-child(3),
.section.is-in .feature:nth-child(3),
.section.is-in .ai-card:nth-child(3),
.section.is-in .integration:nth-child(3),
.section.is-in .shot:nth-child(3),
.section.is-in .tech__col:nth-child(3) { transition-delay: .16s; }
.section.is-in .feature:nth-child(4),
.section.is-in .integration:nth-child(4),
.section.is-in .shot:nth-child(4),
.section.is-in .tech__col:nth-child(4) { transition-delay: .24s; }
.section.is-in .feature:nth-child(5),
.section.is-in .integration:nth-child(5),
.section.is-in .shot:nth-child(5) { transition-delay: .32s; }
.section.is-in .feature:nth-child(6),
.section.is-in .integration:nth-child(6) { transition-delay: .4s; }

/* ------------------------------- responsive nav ------------------------- */
@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* ------------------------------- a11y ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

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