/* Onzite AS · stilark
   Hvit palett med blekksvart tekst og logoens grønn som aksent. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --ink: #15171a;
  --ink-2: #454a52;
  --ink-3: #666b73;
  --line: #e4e5e2;
  --line-strong: #cacdc9;
  --green: #52ae48;        /* logoens grønn */
  --green-hover: #489d3f;
  --green-deep: #2f7a2a;   /* grønn tekst og fokus, AA-kontrast på hvitt */
  --on-green: #0e1a0d;     /* tekst på grønne flater */

  --font: "Albert Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 2px;
  --container: 1240px;
  --gutter: clamp(16px, 4.2vw, 56px);
  --header-h: 72px;
  --section: clamp(72px, 9vw, 136px);
}

@media (max-width: 1079px) {
  :root { --header-h: 64px; }
}

/* ---------- Grunnlag ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.375rem, 1.3rem + 4.4vw, 5.25rem);
  line-height: 1.03;
  letter-spacing: -0.036em;
}

h2 {
  font-size: clamp(1.75rem, 1.25rem + 2.3vw, 3.125rem);
  line-height: 1.08;
  letter-spacing: -0.026em;
}

p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

::selection { background: #dcefd8; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
}

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

/* ---------- Ikoner, knapper og lenker ---------- */

.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--arrow { transition: transform .25s ease; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 52px;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn--primary { background: var(--green); color: var(--on-green); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .2rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid var(--green);
}

@media (hover: hover) {
  .btn--primary:hover { background: var(--green-hover); }
  .btn--ghost:hover { border-color: var(--ink); }
  .btn:hover .icon--arrow,
  .text-link:hover .icon--arrow { transform: translateX(3px); }
  .text-link:hover { color: var(--green-deep); }
}

/* ---------- Topp ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.site-header.is-scrolled,
.site-header.is-open { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: var(--header-h);
}

.brand { display: inline-flex; flex: none; }
.brand img { width: auto; height: 28px; }

.main-nav { display: none; margin-left: auto; }

.main-nav ul {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: block;
  padding: .5rem 0;
  color: var(--ink-2);
  font-size: .9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .2rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (hover: hover) {
  .main-nav a:hover { color: var(--ink); }
  .main-nav a:hover::after { transform: scaleX(1); }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s ease;
}

.header-phone .icon { color: var(--green-deep); }

@media (hover: hover) {
  .header-phone:hover { border-color: var(--ink); }
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle__lines {
  position: relative;
  display: block;
  width: 18px;
  height: 8px;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s ease, top .25s ease;
}

.menu-toggle__lines::before { top: 0; }
.menu-toggle__lines::after { top: 6.5px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { top: 3.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after { top: 3.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid var(--line);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu__links {
  margin: 0;
  padding: .5rem 0 0;
  list-style: none;
}

.mobile-menu__links a {
  display: block;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.mobile-menu__links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.mobile-menu__contact {
  display: grid;
  gap: .5rem;
  padding: 2rem 0 2.5rem;
}

.mobile-menu__contact a {
  color: var(--ink-2);
  font-size: 1.0625rem;
  text-decoration: none;
}

@media (max-width: 479px) {
  .brand img { height: 24px; }
  .header-phone { width: 44px; padding: 0; justify-content: center; }
  .header-phone__number { display: none; }
}

@media (min-width: 1080px) {
  .main-nav { display: block; }
  .site-header__actions { margin-left: 0; }
  .menu-toggle,
  .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */

/* Bare tekst, sentrert, med god luft rundt */
.hero {
  padding: clamp(40px, 7vw, 120px) 0 clamp(72px, 9vw, 136px);
  text-align: center;
}

.hero h1 { max-width: 13ch; margin-inline: auto; }

.hero__lead {
  max-width: 46ch;
  margin: clamp(1.5rem, 2.5vw, 2rem) auto 0;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2.25rem;
}

@media (max-width: 479px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Grønn strek under «trygghet». Hvit kontur rundt bokstavene gir et lite brudd
   i streken der g-ene går gjennom, så de ikke krysser hverandre. */
.hl {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
  text-shadow:
    .045em 0 var(--bg), -.045em 0 var(--bg),
    0 .045em var(--bg), 0 -.045em var(--bg),
    .032em .032em var(--bg), -.032em .032em var(--bg),
    .032em -.032em var(--bg), -.032em -.032em var(--bg);
}

.hl::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: .02em;
  right: .02em;
  bottom: .06em;
  height: .07em;
  background: var(--green);
  transform-origin: left;
}

/* ---------- Om oss ---------- */

.about {
  padding: var(--section) 0;
  background: var(--bg-soft);
}

.about__grid {
  display: grid;
  gap: 2rem;
}

.about__year {
  display: grid;
  align-content: start;
  color: var(--ink);
  line-height: 1;
}

.about__year span {
  color: var(--ink-3);
  font-size: 1rem;
}

.about__year strong {
  margin-top: .35rem;
  font-size: clamp(4.5rem, 3rem + 7vw, 10rem);
  font-weight: 300;
  letter-spacing: -0.05em;
}

.about__text {
  display: grid;
  gap: 1.25rem;
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
}

.about__text h2 { margin-bottom: .25rem; }

.values {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 0;
  margin: .75rem 0 0;
  padding: 1.25rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
  color: var(--ink);
}

.values li:not(:last-child)::after {
  content: "·";
  margin: 0 .75em;
  color: var(--green);
  font-weight: 700;
}

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .about__year { grid-column: 1 / span 4; }
  .about__text { grid-column: 6 / span 7; }
}

/* ---------- Komplekse skader, bakenforliggende årsak, kvalitetsarbeid ---------- */

.cause {
  position: relative;
  overflow: hidden;
  padding: var(--section) 0;
  background: var(--ink);
  color: #c9ccd0;
}

.cause__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
}

.cause__item {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .28);
}

.cause__icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cause__item h2 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(1.5rem, 1rem + 1.2vw, 1.875rem);
}

.cause__item p { max-width: 40ch; font-size: 1.0625rem; }

@media (min-width: 960px) {
  .cause__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); }
}

/* ---------- Innbo, Eiendeler og Avbrudd ---------- */

.area { padding: var(--section) 0; }
.area--soft { background: var(--bg-soft); }
.area + .area:not(.area--soft) { border-top: 1px solid var(--line); }
.area--soft + .area { border-top: 0; }

.area__grid {
  display: grid;
  gap: 2.25rem;
}

.area__figure {
  overflow: hidden;
  background: #e9e9e6;
}

.area__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Illustrasjonen (regnskap og lupe) vises hel, uten flate bak */
.area__figure--illustration {
  justify-self: center;
  width: min(100%, 420px);
  background: none;
}

.area__figure--illustration img { aspect-ratio: 4 / 5; object-fit: contain; }

.area__text {
  display: grid;
  gap: 1.25rem;
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
}

.area__text h2 { margin-bottom: .25rem; }

.area__lead {
  color: var(--ink);
  font-size: clamp(1.1875rem, 1.05rem + .55vw, 1.5rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.area__note {
  margin-bottom: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.checklist {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.checklist li {
  position: relative;
  padding: .85rem 0 .85rem 1.5rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 6px;
  height: 6px;
  background: var(--green);
}

@media (min-width: 960px) {
  .area__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 2.5rem;
    align-items: start;
  }

  .area__figure { grid-column: 1 / span 6; grid-row: 1 / span 2; align-self: center; }
  .area__text,
  .area__aside { grid-column: 8 / span 5; }
  .area__figure img { aspect-ratio: 1 / 1; }

  .area--reverse .area__figure { grid-column: 7 / span 6; }
  .area--reverse .area__text,
  .area--reverse .area__aside { grid-column: 1 / span 5; }

  .area__figure--illustration { width: min(100%, 480px); }
  .area__figure--illustration img { aspect-ratio: 4 / 5; }

  /* Lang tekst: teksten alene i en bred spalte til venstre, og illustrasjonen med
     punktlisten under i spalten til høyre, så hele seksjonen får plass på én skjerm */
  .area--wide .area__text { grid-column: 1 / span 7; grid-row: 1 / span 2; max-width: 44rem; }
  .area--wide .area__figure { grid-column: 9 / span 4; grid-row: 1; align-self: start; width: 100%; }
  .area--wide .area__figure img { aspect-ratio: 5 / 4; object-fit: cover; }
  .area--wide .area__aside { grid-column: 9 / span 4; grid-row: 2; }
}

/* ---------- Andre tjenester ---------- */

.services {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
}

.services__head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.services__head p {
  max-width: 40ch;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
}

/* Register med tjenestenavn. På store skjermer vises detaljene i en flate til høyre,
   på små skjermer åpnes de under navnet. */
.svc-index { border-bottom: 1px solid var(--line-strong); }

.svc__title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  border-top: 1px solid var(--line-strong);
}

.svc__toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 0;
  background: none;
  border: 0;
  color: var(--ink-3);
  font: inherit;
  font-size: clamp(1.375rem, 1rem + 1.5vw, 2.375rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-align: left;
  cursor: pointer;
  transition: color .3s ease;
}

.svc__name {
  position: relative;
  flex: 1;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

/* Liten grønn ring foran aktiv tjeneste */
.svc__name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: .38em;
  height: .38em;
  border: .09em solid var(--green);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-.3em, -50%) scale(.4);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}

.svc.is-active .svc__toggle { color: var(--ink); }
.svc.is-active .svc__name { transform: translateX(.75em); }
.svc.is-active .svc__name::before { opacity: 1; transform: translate(-.75em, -50%) scale(1); }

@media (hover: hover) {
  .svc__toggle:hover { color: var(--ink); }
}

/* Pluss/minus på mobil, strek på store skjermer */
.svc__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.svc__icon::before,
.svc__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s ease;
}

.svc__icon::after { transform: rotate(90deg); }
.svc.is-active .svc__icon::after { transform: rotate(0deg); }

.svc__panel {
  position: relative;
  padding: .25rem 0 1.75rem;
}

.svc__panel-title { display: none; }

.svc__items {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.svc__items li {
  position: relative;
  padding: .55rem 0 .55rem 1.5rem;
  color: var(--ink-2);
}

.svc__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 6px;
  height: 6px;
  background: var(--green);
}

.js .svc:not(.is-active) .svc__panel { display: none; }

@media (min-width: 960px) {
  .svc-index {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: repeat(4, auto) 1fr;
    column-gap: clamp(2rem, 5vw, 5rem);
    border-bottom: 0;
  }

  .svc { display: contents; }
  .svc__title { grid-column: 1; }
  .svc-index > .svc:last-child .svc__title { border-bottom: 1px solid var(--line-strong); }

  .svc__icon {
    width: 32px;
    color: var(--green);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity .3s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
  }

  .svc__icon::before { width: 32px; height: 2px; }
  .svc__icon::after { display: none; }
  .svc.is-active .svc__icon { opacity: 1; transform: none; }

  /* Alle detaljflatene ligger i samme rute; bare den aktive vises */
  .svc__panel {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: stretch;
    padding: clamp(2rem, 3.5vw, 3.25rem);
    background: var(--bg-soft);
  }

  .svc__panel-title {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--ink);
    font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
    letter-spacing: -0.02em;
  }

  .svc__items { max-width: 30rem; }
  .svc__items li { border-top: 1px solid var(--line-strong); }

  .js .svc__panel {
    transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s linear;
  }

  .js .svc:not(.is-active) .svc__panel {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
}

/* ---------- Kontakt og bunn ---------- */

.site-footer {
  padding: var(--section) 0 2rem;
  background: var(--bg-soft);
}

.site-footer__title {
  max-width: 16ch;
  font-size: clamp(2rem, 1.3rem + 3vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
}

.site-footer__contact {
  display: grid;
  gap: 0;
  margin: clamp(40px, 5vw, 64px) 0 0;
  border-top: 1px solid var(--ink);
}

.site-footer__contact div {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-strong);
}

.site-footer__contact dt {
  margin-bottom: .35rem;
  color: var(--ink-3);
  font-size: .9375rem;
}

.site-footer__contact dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.site-footer__contact a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color .25s ease;
}

@media (hover: hover) {
  .site-footer__contact a:hover { text-decoration-color: var(--green); }
}

@media (min-width: 860px) {
  .site-footer__contact { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; }
  .site-footer__contact div { border-bottom: 0; }
}

/* Bunnlinje: juridisk info til venstre, logo i midten, utvikler til høyre */
.site-footer__bottom {
  display: grid;
  justify-items: center;
  gap: .9rem;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-3);
  font-size: .875rem;
  text-align: center;
}

.site-footer__bottom img { order: -1; width: auto; height: 22px; }

.site-footer__bottom a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s ease;
}

@media (hover: hover) {
  .site-footer__bottom a:hover { color: var(--ink); }
}

@media (min-width: 760px) {
  .site-footer__bottom {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 2rem;
  }

  .site-footer__bottom img { order: 0; }
  .site-footer__legal { justify-self: start; text-align: left; }
  .site-footer__credit { justify-self: end; text-align: right; }
}

/* ---------- 404 ---------- */

.not-found { padding: clamp(64px, 12vw, 160px) 0; }

.not-found p {
  max-width: 44ch;
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

/* ---------- Bevegelse ----------
   Rolige inntoninger: innhold glir 18 px opp og tones inn når det kommer i syne,
   og streken under «trygghet» tegnes fra venstre.
   Gjelder bare med JavaScript og når brukeren ikke har bedt om redusert bevegelse. */

@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__text > :nth-child(2) { animation-delay: .12s; }
  .hero__text > :nth-child(3) { animation-delay: .24s; }

  .hl::after { animation: underline 1.1s cubic-bezier(.65, 0, .35, 1) .9s both; }

  .js :is(.about__year, .about__text > *, .cause__item, .area__figure, .area__text > *, .area__aside,
          .services__head > *, .svc__title, .site-footer__title, .site-footer__contact > div) {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
  }

  .js .is-visible:is(.about__year, .about__text > *, .cause__item, .area__figure, .area__text > *, .area__aside,
          .services__head > *, .svc__title, .site-footer__title, .site-footer__contact > div) {
    opacity: 1;
    transform: none;
  }

}

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

@keyframes underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
