:root {
  --ink: #0E0C18;
  --paper: #F2EDE1;
  --text: #F4F1E8;
  --lime: #C8FF4D;
  --violet: #6B2BFF;
  --neutral: #8F8AA8;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--text);
  background: var(--ink);
}

@media (min-width: 900px) {
  body {
    font-size: 18px;
  }
}

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

a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  transition: outline-offset 120ms var(--ease-soft);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--lime);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 3px solid var(--ink);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 28px);
  }
}

/* Header */

.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--neutral);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
}

.brand-text strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-text span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-soft);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  margin-left: 8px;
  flex: 0 0 auto;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 3px solid var(--lime);
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease-soft), box-shadow 180ms var(--ease-soft),
    background-color 180ms var(--ease-soft), color 180ms var(--ease-soft);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--violet);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 var(--violet);
}

.btn-sm {
  min-height: 48px;
  padding: 10px 18px;
  font-size: 14px;
}

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

/* Hero */

.hero {
  background: var(--ink);
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 22px;
  color: var(--text);
  font-size: clamp(40px, 7.2vw, 84px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.hero h1 span {
  display: block;
}

.hero-lede {
  max-width: 36ch;
  margin: 0 0 30px;
  color: var(--text);
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--neutral);
  background: var(--neutral);
}

.facts li {
  min-width: 0;
  padding: 16px;
  background: var(--ink);
}

.facts li::before {
  content: "";
  display: block;
  width: 24px;
  height: 4px;
  margin-bottom: 10px;
  background: var(--lime);
}

.facts strong {
  display: block;
  color: var(--text);
  font-size: clamp(19px, 2.2vw, 27px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.facts span {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

.hero-art {
  position: relative;
  min-width: 0;
}

.hero-art picture {
  display: block;
}

.hero-art picture img {
  width: 100%;
  border: 3px solid var(--text);
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--violet);
}

.hero-tag {
  position: absolute;
  left: -6px;
  bottom: -16px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 12px);
  margin: 0;
  padding: 8px 14px;
  border: 3px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Sections */

.section {
  padding: clamp(56px, 8vw, 108px) 0;
}

.section-paper {
  background: var(--paper);
  color: var(--ink);
}

.section-ink {
  background: var(--ink);
  color: var(--text);
}

.section-head {
  max-width: 64ch;
  margin: 0 0 clamp(28px, 4vw, 48px);
}

.section-head h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-head-row > div {
  min-width: 0;
}

.section-note {
  max-width: 46ch;
  margin: 0;
  color: var(--neutral);
  font-size: 16px;
  line-height: 1.5;
}

.section-paper .section-note {
  color: var(--violet);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker-ink {
  color: var(--violet);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.35fr 0.85fr;
    gap: 48px;
  }
}

.about-text {
  min-width: 0;
}

.about-text p {
  max-width: 68ch;
  margin: 0 0 18px;
  font-size: clamp(16px, 1.45vw, 18px);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.buildings {
  align-self: start;
  min-width: 0;
  padding: 24px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--text);
  box-shadow: 8px 8px 0 var(--violet);
}

.buildings-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.buildings h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.building-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.building-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--neutral);
  font-weight: 700;
}

.building-list span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.muted {
  margin: 0;
  color: var(--neutral);
  font-size: 16px;
  line-height: 1.45;
}

.section-paper .muted {
  color: var(--violet);
}

.buildings .muted {
  color: var(--text);
}

/* Direction cards */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  transition: transform 180ms var(--ease-soft), box-shadow 180ms var(--ease-soft);
}

.card::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 24px;
  width: 56px;
  height: 8px;
  background: var(--lime);
}

.card:nth-child(even)::before {
  left: auto;
  right: 24px;
  background: var(--violet);
}

.card {
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--violet);
}

.card-num {
  margin-bottom: 16px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 800;
  line-height: 1.2;
}

.card p {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.card-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.card-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-soft);
}

.card-link:hover::after,
.card-link:focus-visible::after {
  transform: scaleX(1);
}

.card-link span {
  transition: transform 180ms var(--ease-soft);
}

.card-link:hover span {
  transform: translateX(4px);
}

/* School life */

.life-figure {
  margin: 0 0 clamp(28px, 4vw, 44px);
  border: 3px solid var(--ink);
  background: var(--ink);
  box-shadow: 8px 8px 0 var(--violet);
}

.life-figure img {
  width: 100%;
}

.life-figure figcaption {
  padding: 12px 16px;
  background: var(--ink);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.life-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .life-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.life-card {
  min-width: 0;
  padding: 20px;
  border: 3px solid var(--ink);
  border-top: 4px solid var(--violet);
  background: var(--paper);
  color: var(--ink);
  transition: transform 180ms var(--ease-soft), box-shadow 180ms var(--ease-soft);
}

.life-card:nth-child(even) {
  border-top-color: var(--lime);
}

.life-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--violet);
}

.life-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.life-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.life-card p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

/* Lead form */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

@media (min-width: 900px) {
  .form-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
  }
}

.form-copy {
  min-width: 0;
}

.form-copy h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.form-copy .section-note {
  color: var(--neutral);
  max-width: 40ch;
}

.form-points {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.form-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.form-points img {
  flex: 0 0 auto;
}

.form-alt {
  margin: 0;
  color: var(--neutral);
  font-size: 16px;
}

.form-alt a {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.form-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 3px solid var(--text);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--violet);
}

.lead-form {
  display: grid;
  gap: 18px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label,
.label-row label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.req {
  color: var(--violet);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  transition: box-shadow 120ms var(--ease-soft);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--violet);
  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--violet);
  box-shadow: inset 0 -4px 0 var(--violet);
}

.counter {
  color: var(--violet);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.field-error {
  margin: 0;
  color: var(--violet);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.field-error:empty {
  display: none;
}

.consent-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: start;
}

.consent-field input {
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 2px 0 0;
  padding: 0;
  border: 3px solid var(--ink);
  accent-color: var(--violet);
}

.consent-field label {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.consent-field a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--violet);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.consent-field .field-error {
  grid-column: 2;
}

.btn-submit {
  width: 100%;
  margin-top: 6px;
  border-color: var(--ink);
}

.btn-submit:hover {
  box-shadow: 8px 8px 0 var(--violet);
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid var(--ink);
  border-right-color: var(--paper);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.is-sending .spinner {
  display: inline-block;
}

.form-note {
  margin: 0;
  color: var(--violet);
  font-size: 13px;
  line-height: 1.4;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border: 3px solid var(--violet);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.form-status:empty {
  display: none;
}

.form-success {
  padding: 8px 0;
  text-align: center;
}

.form-success img {
  margin: 0 auto 8px;
}

.form-success h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.form-success p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.45;
}

.form-success .btn {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--ink);
}

/* Contacts */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 24px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--text);
  text-decoration: none;
  box-shadow: 8px 8px 0 var(--violet);
  transition: transform 180ms var(--ease-soft), box-shadow 180ms var(--ease-soft);
}

.contact-card img {
  width: 48px;
  height: 48px;
}

.contact-card h3 {
  margin: 0;
  color: var(--paper);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.contact-card p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 var(--violet);
}

.contact-action {
  margin-top: auto;
  padding-top: 10px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 28px;
  border-top: 3px solid var(--ink);
}

@media (min-width: 700px) {
  .contact-extra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-extra h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.corps-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.corps-list li {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--neutral);
  font-weight: 700;
}

.contact-extra p {
  margin: 0 0 8px;
}

/* Footer */

.site-footer {
  padding: 40px 0;
  border-top: 3px solid var(--neutral);
  background: var(--ink);
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand p {
  max-width: 34ch;
  margin: 14px 0 0;
  color: var(--neutral);
  font-size: 16px;
  line-height: 1.45;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.footer-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.footer-meta p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.45;
}

.footer-meta .muted {
  color: var(--neutral);
  font-size: 16px;
}

/* Legal and 404 pages */

.legal {
  max-width: 820px;
}

.legal h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.legal h2 {
  margin: 34px 0 10px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.15;
}

.legal p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.55;
}

.legal a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--violet);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-back {
  margin-top: 36px;
}

.not-found {
  min-height: 58vh;
  display: flex;
  align-items: center;
}

.not-found-inner {
  max-width: 620px;
}

.not-found-inner img {
  margin: 0 0 20px;
}

.not-found h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.not-found p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

/* Motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-copy > * {
  animation: rise 480ms var(--ease) both;
}

.hero-copy > :nth-child(1) {
  animation-delay: 0ms;
}

.hero-copy > :nth-child(2) {
  animation-delay: 70ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 140ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 210ms;
}

.hero-copy > :nth-child(5) {
  animation-delay: 280ms;
}

.hero-art {
  animation: rise 480ms var(--ease) 210ms both;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 420ms var(--ease) var(--d, 0ms),
    transform 420ms var(--ease) var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Mobile header */

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0 0;
  }

  .brand {
    order: 1;
  }

  .header-cta {
    order: 2;
    margin-left: auto;
  }

  .nav {
    order: 3;
    flex: 1 0 100%;
    gap: 18px;
    margin-left: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--neutral);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    font-size: 13px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 420px) {
  .brand-text strong {
    font-size: 15px;
  }

  .header-cta {
    padding: 10px 14px;
    font-size: 13px;
  }

  .hero-tag {
    left: 0;
  }
}

@media (max-width: 760px) {
  .section-head-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Reduced motion and no-JS safety */

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

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

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-copy > *,
  .hero-art {
    opacity: 1 !important;
    transform: none !important;
  }

  .spinner {
    animation: none !important;
  }

  .btn:hover,
  .card:hover,
  .life-card:hover,
  .contact-link:hover {
    transform: none !important;
  }
}
