/* ==========================================================================
   CANESPA ESD-Protection GmbH
   style.css

   Contents
   1.  Design tokens
   2.  Base
   3.  Layout helpers
   4.  Buttons and links
   5.  Header and navigation
   6.  Hero
   7.  About
   8.  Solutions
   9.  Why CANESPA
   10. Contact
   11. Footer
   12. Motion
   13. Responsive
   ========================================================================== */


/* 1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour: paper, ink, one green (ESD-mat green) in three shades, one mint for dark areas */
  --paper: #F2EFE7;
  --paper-deep: #E6E1D4;
  --surface: #FAF8F3;
  --ink: #1A1C19;
  --gray: #5F635C;
  --rule: rgba(26, 28, 25, 0.2);

  --green: #1F5C43;
  --green-strong: #174833;
  --green-deep: #143F2E;
  --mint: #9BD0B4;

  --on-dark: #F2EFE7;
  --on-dark-soft: #B9C7BE;
  --alert: #9C2F1F;

  /* Type */
  --font-ui: "Bricolage Grotesque", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Spacing */
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 1280px;
  --header-h: 84px;
  --header-h-compact: 64px;

  /* Shape and motion */
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}


/* 2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.menu-open body {
  overflow: hidden;
}

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

h1, h2, h3, h4, p, dl, dd, figure, address, blockquote {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2.25rem, 4.8vw, 4.25rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

::selection {
  background: var(--green);
  color: #fff;
}

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

[tabindex="-1"]:focus {
  outline: none;
}

.why :focus-visible,
.footer :focus-visible {
  outline-color: var(--mint);
}

/* Reading text uses the serif; everything else is interface type */
.prose {
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray);
}


/* 3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.about,
.services,
.why,
.contact {
  padding-block: var(--section-y);
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

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

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-m);
  align-items: end;
}

.section-head__title {
  grid-column: 1 / span 8;
  max-width: 17em;
}

.section-head__text {
  grid-column: 9 / -1;
}


/* 4. Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 0.975rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--green-strong);
  border-color: var(--green-strong);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--small {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color 0.2s var(--ease), text-decoration-thickness 0.2s var(--ease);
}

.text-link:hover {
  color: var(--green);
  text-decoration-thickness: 2px;
}


/* 5. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled,
.site-header.menu-is-open {
  background: rgba(242, 239, 231, 0.96);
  border-bottom-color: var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}

.site-header.is-scrolled .site-header__inner {
  height: var(--header-h-compact);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo__mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.logo__mark-fill {
  fill: var(--green);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.logo__sub {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--gray);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  position: relative;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

/* Mobile toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle__bar:nth-child(1) { top: 16px; }
.nav-toggle__bar:nth-child(2) { top: 24px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  top: 20px;
  transform: rotate(-45deg);
}


/* 6. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3.5rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow-x: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-m);
  align-items: center;
}

.hero__copy {
  grid-column: 1 / span 7;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero__label::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  background: var(--green);
}

.hero__title {
  font-size: clamp(2.9rem, 6.6vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.hero__lead {
  max-width: 34rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.hero__meta > div {
  padding-right: 2rem;
  margin-right: 2rem;
  border-right: 1px solid var(--rule);
}

.hero__meta > div:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero__meta dt {
  font-size: 0.8125rem;
  color: var(--gray);
}

.hero__meta dd {
  font-size: 0.975rem;
  font-weight: 500;
}

/* Layered image blocks */
.hero__visual {
  grid-column: 8 / -1;
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  aspect-ratio: 5 / 6;
}

.hero-visual__frame,
.hero-visual__stage {
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  height: 80%;
}

.hero-visual__frame {
  border: 1px solid var(--green);
  transform: translate(14px, -14px);
}

.hero-visual__stage {
  background: var(--ink);
  overflow: hidden;
}

.hero-visual__stage svg {
  width: 100%;
  height: 100%;
}

.hero-visual__gallery {
  position: absolute;
  left: 0;
  bottom: 6%;
  width: 62%;
  border: 6px solid var(--paper);
  background: var(--paper-deep);
}

.hero-visual__gallery svg {
  width: 100%;
  height: auto;
}

.hero-visual__note {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--green);
  color: var(--on-dark);
}

.hero-visual__title {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-visual__text {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
}


/* 7. About
   -------------------------------------------------------------------------- */
.about__title {
  max-width: 20ch;
}

.about__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-m);
  align-items: start;
  margin-top: clamp(3rem, 6vw, 5.5rem);
}

.about__figure {
  grid-column: 1 / span 5;
}

.about__figure svg {
  width: 100%;
  height: auto;
}

.about__figure figcaption {
  margin-top: 0.75rem;
  max-width: 28rem;
  font-size: 0.85rem;
  color: var(--gray);
}

.svg-text {
  font-family: var(--font-ui);
  font-size: 14px;
  fill: var(--ink);
}

.svg-text--soft {
  fill: var(--gray);
}

.svg-text--light {
  fill: var(--paper);
}

.about__content {
  grid-column: 7 / -1;
}

.about__columns {
  columns: 2 16rem;
  column-gap: 2.25rem;
}

.about__columns p + p {
  margin-top: 1rem;
}

.statement {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-left: 1.5rem;
  border-left: 3px solid var(--green);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--ink);
}

.facts li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.25rem 0 0;
}

.facts li + li {
  padding-left: 1.25rem;
  border-left: 1px solid var(--rule);
}

.fact__value {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fact__label {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--gray);
}


/* 8. Solutions
   -------------------------------------------------------------------------- */
.services {
  background: var(--surface);
  border-top: 1px solid var(--rule);
}

.catalogue {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}

.catalogue__item {
  grid-column: span 4;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.catalogue__item--lead { grid-column: span 7; }
.catalogue__item--side { grid-column: span 5; }
.catalogue__item--wide { grid-column: 1 / -1; }

.service {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.5rem, 2.6vw, 2.5rem);
  text-decoration: none;
  transition: background-color 0.3s var(--ease);
}

.service:hover {
  background: var(--paper);
}

.service:focus-visible {
  outline-offset: -4px;
}

.service__icon {
  width: 40px;
  height: 40px;
  margin-bottom: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--ink);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.service:hover .service__icon {
  color: var(--green);
  transform: translateY(-3px);
}

.service__text {
  max-width: 34rem;
  margin-top: 0.75rem;
  font-size: 1rem;
}

.service__tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--ink);
}

.service__tags li:not(:last-child)::after {
  content: ",";
  margin-right: 0.3em;
}

.service__cta {
  margin-top: auto;
  padding-top: 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.service--lead {
  min-height: 26rem;
}

.service--lead .service__title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
}

.service--lead .service__text {
  font-size: 1.0625rem;
}

/* Four-step process inside the lead block (a real sequence, so it is numbered) */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.process li {
  padding: 0.8rem 0.75rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}

.process span {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}

/* The wide block pairs text with an illustration */
.service--wide {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-m);
  align-items: center;
}

.service__content {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.service__figure {
  grid-column: 7 / -1;
}

.service__figure svg {
  width: 100%;
  height: auto;
}


/* 9. Why CANESPA
   -------------------------------------------------------------------------- */
.why {
  background: var(--green-deep);
  color: var(--on-dark);
}

.why__title {
  max-width: 17em;
}

.why .prose {
  color: var(--on-dark-soft);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-m);
  row-gap: clamp(3rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.benefit {
  grid-column: span 6;
  display: grid;
  grid-template-columns: clamp(4.5rem, 8vw, 7rem) minmax(0, 1fr);
  column-gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(242, 239, 231, 0.3);
  transition: border-color 0.3s var(--ease);
}

.benefit:nth-child(even) {
  margin-top: clamp(0rem, 6vw, 5rem);
}

.benefit:hover {
  border-top-color: var(--mint);
}

.benefit__num {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--mint);
}

.benefit__title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}


/* 10. Contact
   -------------------------------------------------------------------------- */
.contact {
  background: var(--paper-deep);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-m);
  align-items: start;
}

.contact__info {
  grid-column: 1 / span 5;
}

.contact__title {
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
}

.contact__intro {
  max-width: 28rem;
  margin-top: 1.5rem;
}

.contact-list {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--ink);
}

.contact-list > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact-list dt {
  font-size: 0.875rem;
  color: var(--gray);
}

.contact-list dd {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}

.contact__form-wrap {
  grid-column: 7 / -1;
}

.form {
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--ink);
}

.form__title {
  font-size: 1.6rem;
}

.form__hint {
  margin: 0.4rem 0 1.75rem;
  font-size: 0.875rem;
  color: var(--gray);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
}

.control {
  width: 100%;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease);
}

textarea.control {
  min-height: 7.5rem;
  resize: vertical;
}

.control:focus-visible {
  outline-offset: 2px;
}

.field.has-error .control {
  border-bottom-color: var(--alert);
}

.field__error {
  min-height: 1.3rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--alert);
}

.field--check {
  margin-top: 0.4rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--green);
}

.form .btn {
  margin-top: 0.75rem;
}

.form__status {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form__status.is-success {
  display: block;
  background: var(--green-deep);
  border-color: var(--mint);
  color: var(--on-dark);
}

.form__status.is-error {
  display: block;
  border-color: var(--alert);
  color: var(--alert);
}


/* 11. Footer
   -------------------------------------------------------------------------- */
.footer {
  padding-top: clamp(4rem, 8vw, 6rem);
  background: var(--ink);
  color: var(--on-dark);
}

.footer .logo__sub {
  color: #A6AAA2;
}

.footer .logo__mark-fill {
  fill: var(--mint);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 3rem 2rem;
}

.footer__text {
  max-width: 26rem;
  margin-top: 1.5rem;
  font-size: 0.975rem;
  color: #A6AAA2;
}

.footer__heading {
  margin-bottom: 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #A6AAA2;
}

.footer__col li + li {
  margin-top: 0.55rem;
}

.footer__col address {
  line-height: 1.6;
}

.footer__mail {
  margin-top: 0.75rem;
}

.footer__col a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--mint);
  text-decoration-color: currentColor;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(242, 239, 231, 0.18);
  font-size: 0.85rem;
  color: #A6AAA2;
}

/* Toast (used for legal-page placeholders) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 80;
  max-width: calc(100% - 2.5rem);
  padding: 0.9rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* 12. Motion
   -------------------------------------------------------------------------- */

/* Scroll reveal: short and quiet; only active when JavaScript is available */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* The one deliberate moment: the stage light comes on once at page load */
.js .stage-light {
  opacity: 0;
  animation: fade-in 1.4s 0.4s ease forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }

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

  .js .stage-light {
    opacity: 1;
  }
}


/* 13. Responsive
   -------------------------------------------------------------------------- */

/* Tablet and below */
@media (max-width: 960px) {

  /* Navigation becomes a full-width panel */
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 100%);
    height: calc(100dvh - 100%);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    padding: 1.25rem var(--gutter) 2.5rem;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.03em;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link.is-active {
    color: var(--green);
  }

  .nav__cta {
    align-self: flex-start;
    padding: 0.95rem 1.6rem;
    font-size: 0.975rem;
  }

  /* Hero */
  .hero__copy,
  .hero__visual {
    grid-column: 1 / -1;
  }

  .hero__visual {
    margin: 3.5rem auto 0 0;
    max-width: 460px;
  }

  /* About */
  .about__figure,
  .about__content {
    grid-column: 1 / -1;
  }

  .about__figure {
    max-width: 440px;
  }

  .about__content {
    margin-top: 3rem;
  }

  /* Solutions */
  .section-head__title,
  .section-head__text {
    grid-column: 1 / -1;
  }

  .section-head__text {
    max-width: 34rem;
    margin-top: 1.5rem;
  }

  .catalogue__item,
  .catalogue__item--side {
    grid-column: span 6;
  }

  .catalogue__item--lead,
  .catalogue__item--wide {
    grid-column: 1 / -1;
  }

  .service--lead {
    min-height: 0;
  }

  .service--wide {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }

  .service__content,
  .service__figure {
    grid-column: auto;
  }

  /* Why */
  .benefit {
    grid-column: 1 / -1;
  }

  .benefit:nth-child(even) {
    margin-top: 0;
  }

  /* Contact */
  .contact__info,
  .contact__form-wrap {
    grid-column: 1 / -1;
  }

  .contact__form-wrap {
    margin-top: 3.5rem;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* Phones */
@media (max-width: 640px) {

  .logo__sub {
    font-size: 0.6875rem;
  }

  .hero__meta {
    flex-direction: column;
    gap: 0.9rem;
  }

  .hero__meta > div {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }

  .hero__actions {
    gap: 1.25rem 1.5rem;
  }

  .hero__visual {
    margin-top: 3rem;
  }

  .hero-visual__gallery {
    width: 66%;
  }

  .hero-visual__note {
    width: 46%;
    padding: 0.85rem 0.9rem 0.95rem;
  }

  .hero-visual__text {
    display: none;
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0.25rem;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts li,
  .facts li + li {
    padding: 1.1rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }

  .catalogue__item,
  .catalogue__item--side {
    grid-column: 1 / -1;
  }

  .benefit {
    grid-template-columns: 4rem minmax(0, 1fr);
    column-gap: 1rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .contact-list > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
  }
}
