:root {
  --paper: #f5f6f2;
  --paper-2: #e7e9e2;
  --stone: #c4c8bd;
  --ink: #1f2420;
  --muted: #656a62;
  --line: rgba(31, 36, 32, 0.16);
  --deep: #102b2a;
  --deep-2: #183f3d;
  --steel: #5a6665;
  --white: #fffefa;
  --focus: #9b7e48;
  --max: 1160px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 42px);
  color: var(--white);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 286px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("assets/anagrama-escaire.svg") center / contain no-repeat;
  mask: url("assets/anagrama-escaire.svg") center / contain no-repeat;
  opacity: 0.95;
}
.brand strong {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  font-size: 0.85rem;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover {
  opacity: 1;
}

.language-switch {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  color: currentColor;
  min-height: 34px;
}

.language-switch.is-hidden {
  display: none;
}

.language-switch span,
.language-switch button {
  min-width: 40px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 0.76rem;
  line-height: 1;
  text-align: center;
}

.language-switch .is-active {
  background: var(--white);
  color: var(--deep);
}

.language-switch button {
  cursor: not-allowed;
  opacity: 0.52;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  margin: 6px 0;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--deep);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 22, 21, 0.82) 0%, rgba(11, 22, 21, 0.58) 42%, rgba(11, 22, 21, 0.24) 76%),
    linear-gradient(0deg, rgba(11, 22, 21, 0.62), rgba(11, 22, 21, 0.08) 46%);
}

.hero-content {
  position: relative;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 168px 0 82px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--focus);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 8vw, 7.2rem);
  font-weight: 500;
  line-height: 0.94;
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
}

.button-primary {
  background: var(--deep-2);
  border-color: var(--deep-2);
  color: var(--white);
}

.button-primary:hover {
  background: #0d2423;
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.58);
  background: rgba(255, 253, 248, 0.08);
}

.button-secondary:hover {
  background: rgba(255, 253, 248, 0.16);
}

.intro-band {
  padding: 58px 0;
  background: var(--deep);
  color: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.lead {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.5;
}

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

.benefit-list li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 253, 248, 0.86);
}

.benefit-list li::before {
  content: "";
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 12px;
  height: 1px;
  background: var(--focus);
}

.section {
  padding: clamp(72px, 9vw, 124px) 0;
}

.muted {
  background: var(--paper-2);
}

.dark {
  background: var(--deep);
  color: var(--white);
}

.two-column,
.safety-layout,
.contact-grid,
.applications-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.section-heading h2,
.applications-grid h2,
.safety-layout h2,
.contact-grid h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
}

.section-heading.compact {
  max-width: 780px;
}

.section-heading.compact p:not(.section-kicker) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-body p,
.applications-grid p,
.safety-layout p,
.contact-grid p {
  margin: 0 0 18px;
  color: var(--muted);
}

.dark p {
  color: rgba(255, 253, 248, 0.76);
}

blockquote {
  margin: 28px 0 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--focus);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  line-height: 1.35;
}

.dark blockquote {
  color: var(--white);
}

.system-showcase {
  display: grid;
  gap: 22px;
  margin-top: 72px;
}

.system-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.system-photo {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--white);
}

.system-photo img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: 50% 34%;
}

.system-photo:nth-child(2) img {
  object-position: 50% 24%;
}

.system-photo figcaption,
.application-photos figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.system-photo figcaption {
  display: grid;
  gap: 4px;
}

.system-photo figcaption strong {
  color: var(--ink);
  font-size: 1rem;
}

.system-photo figcaption span {
  display: block;
}

.system-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.system-points article {
  min-height: 205px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.system-points span {
  display: block;
  margin: 0 0 20px;
  color: var(--focus);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-points h3,
.safety-list h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.system-points p,
.safety-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.application-stack {
  display: grid;
  gap: 20px;
}

.application-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.application-photos figure {
  margin: 0;
  border: 1px solid rgba(31, 36, 32, 0.14);
  background: rgba(255, 253, 248, 0.58);
  overflow: hidden;
}

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

.application-photos figure:first-child img {
  object-position: 50% 32%;
}

.tag-grid span {
  display: block;
  padding: 16px 18px;
  border: 1px solid rgba(31, 36, 32, 0.14);
  background: rgba(255, 253, 248, 0.46);
  font-weight: 650;
}

.quote-line {
  margin-top: 30px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.28;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-list li {
  counter-increment: process;
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list li::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  margin-bottom: 34px;
  color: var(--focus);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.process-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.process-list span {
  display: block;
  color: var(--muted);
  font-size: 0.96rem;
}

.safety-layout {
  align-items: start;
}

.safety-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 253, 248, 0.14);
  border: 1px solid rgba(255, 253, 248, 0.14);
}

.safety-list article {
  min-height: 190px;
  padding: 26px;
  background: var(--deep);
}

.safety-list h3 {
  color: var(--white);
}

.safety-list p {
  color: rgba(255, 253, 248, 0.7);
}

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

.contact-links {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.contact-links a {
  color: var(--deep-2);
  font-size: 1.3rem;
  font-weight: 750;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  background: var(--white);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(31, 36, 32, 0.22);
  border-radius: 0;
  background: #fbfaf5;
  color: var(--ink);
  padding: 12px 12px;
}

.contact-form textarea {
  resize: vertical;
}

.span-2 {
  grid-column: span 2;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-form .button {
  cursor: pointer;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 253, 248, 0.68);
}

.site-footer a {
  color: var(--white);
  font-weight: 700;
}

.cookie-banner {
  position: fixed;
  z-index: 40;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  max-width: 920px;
  margin-inline: auto;
  padding: 18px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  background: rgba(16, 43, 42, 0.96);
  color: var(--white);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-reject {
  border-color: rgba(255, 253, 248, 0.42);
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.legal-page {
  background: var(--paper);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}

.legal-brand {
  color: var(--ink);
}

.legal-back {
  color: var(--deep-2);
  font-weight: 750;
}

.legal-main {
  padding: clamp(54px, 8vw, 96px) 0;
}

.legal-content {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
}

.legal-content h1 {
  margin: 0 0 38px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 1.18rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content a {
  color: var(--deep-2);
  font-weight: 700;
}

.legal-content code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .language-switch {
    justify-self: end;
  }

  .intro-grid,
  .two-column,
  .safety-layout,
  .contact-grid,
  .applications-grid,
  .system-showcase {
    grid-template-columns: 1fr;
  }

  .system-photo-grid,
  .system-points,
  .process-list,
  .safety-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    min-height: 68px;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.86rem;
  }

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

  .language-switch span,
  .language-switch button {
    min-width: 34px;
    padding-inline: 8px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    width: min(calc(100% - 28px), var(--max));
    padding-bottom: 46px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.2rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .intro-band {
    padding: 42px 0;
  }

  .section {
    padding: 64px 0;
  }

  .system-photo img {
    height: 320px;
  }

  .system-photo-grid,
  .system-points,
  .tag-grid,
  .application-photos,
  .process-list,
  .safety-list,
  .contact-form,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .cookie-actions {
    flex-direction: column;
  }
}
