:root {

  /* =========================================================
     COLOR SYSTEM
  ========================================================= */

  --paper: #dde1de;
  --paper-soft: #ececea;
  --paper-cold: #d3d8d4;

  --surface: #cfd4d1;
  --surface-soft: #e6e8e4;
  --surface-cold: #bcc4bf;

  --graphite: #181b19;
  --graphite-soft: #242927;

  --ink: #151615;
  --ink-soft: #2c2f2d;

  --muted: #6d7470;
  --muted-soft: #8a908d;

  --line: rgba(21, 22, 21, 0.14);
  --line-strong: rgba(21, 22, 21, 0.28);

  --accent-green: #707d73;
  --accent-bluegray: #7c8b8c;
  --accent-rust: #8d6856;

  --zone-hero: #dde1de;
  --zone-transition: #d0d5d1;
  --zone-estimate: #e9e9e5;
  --zone-services: #d5dad6;
  --zone-recovery: #232826;
  --zone-commercial: #c8cfca;
  --zone-contact: #e5e6e2;

  --white: #f7f7f5;
  --black: #111211;

  /* =========================================================
     SHADOWS
  ========================================================= */

  --shadow-soft:
    0 12px 28px rgba(10, 12, 11, 0.05);

  --shadow-medium:
    0 24px 70px rgba(10, 12, 11, 0.12);

  --shadow-hard:
    0 38px 100px rgba(10, 12, 11, 0.2);

  /* =========================================================
     SPACING
  ========================================================= */

  --container:
    min(1320px, calc(100vw - 64px));

  --container-wide:
    min(1500px, calc(100vw - 48px));

  --header-height: 86px;

  --section-space:
    clamp(120px, 14vw, 220px);

  --section-space-small:
    clamp(70px, 8vw, 120px);

  /* =========================================================
     RADIUS
  ========================================================= */

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 34px;

  /* =========================================================
     TRANSITIONS
  ========================================================= */

  --transition-fast: 0.18s ease;
  --transition-medium: 0.34s ease;
  --transition-slow: 0.7s ease;

  /* =========================================================
     TYPOGRAPHY
  ========================================================= */

  --font-main:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  padding: 0;

  font-family: var(--font-main);
  color: var(--ink);

  background:
    radial-gradient(
      circle at 10% 8%,
      rgba(255,255,255,0.3),
      transparent 26%
    ),

    radial-gradient(
      circle at 90% 16%,
      rgba(118,130,126,0.14),
      transparent 32%
    ),

    linear-gradient(
      180deg,
      var(--paper-soft),
      var(--paper) 38%,
      var(--paper-cold)
    );

  overflow-x: hidden;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   FILM GRAIN
========================================================= */

body::before {
  content: "";

  position: fixed;
  inset: 0;

  z-index: 1;
  pointer-events: none;

  opacity: 0.05;

  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.08) 0px,
      rgba(0,0,0,0.08) 1px,
      transparent 1px,
      transparent 4px
    );
}

.site-noise {
  position: fixed;
  inset: 0;

  z-index: 2;
  pointer-events: none;

  opacity: 0.1;
  mix-blend-mode: multiply;

  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(0,0,0,0.08) 0 1px,
      transparent 1px
    ),

    radial-gradient(
      circle at 75% 70%,
      rgba(255,255,255,0.12) 0 1px,
      transparent 1px
    );

  background-size:
    8px 8px,
    14px 14px;
}

/* =========================================================
   GLOBAL ELEMENTS
========================================================= */

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

section,
header,
footer,
main {
  position: relative;
}

section {
  z-index: 5;
}

::selection {
  background: rgba(21, 22, 21, 0.16);
  color: var(--ink);
}

/* =========================================================
   FORM ELEMENTS
========================================================= */

input,
select,
textarea {
  width: 100%;

  border:
    1px solid var(--line);

  background:
    rgba(255,255,255,0.34);

  color: var(--ink);

  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);

  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--graphite);
  background: rgba(255,255,255,0.52);
}

textarea {
  resize: vertical;
}

/* =========================================================
   INTERACTION
========================================================= */

button,
a,
input,
select,
textarea {
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

a:hover,
button:hover {
  transform: translateY(-1px);
}

a:active,
button:active {
  transform: translateY(0);
}

/* =========================================================
   ZONES
========================================================= */

.zone-hero {
  background: var(--zone-hero);
}

.zone-transition {
  background: var(--zone-transition);
}

.zone-estimate {
  background: var(--zone-estimate);
}

.zone-services {
  background: var(--zone-services);
}

.zone-recovery {
  background: var(--zone-recovery);
  color: var(--white);
}

.zone-commercial {
  background: var(--zone-commercial);
}

.zone-contact {
  background: var(--zone-contact);
}

/* =========================================================
   UTILITY
========================================================= */

.hidden {
  display: none !important;
}

.no-scroll {
  overflow: hidden;
}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: var(--surface-soft);
}

::-webkit-scrollbar-thumb {
  background: rgba(21,22,21,0.24);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(21,22,21,0.36);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

  :root {

    --container:
      min(100vw - 28px);

    --container-wide:
      min(100vw - 20px);

    --header-height: 74px;

    --section-space:
      clamp(80px, 16vw, 120px);
  }
}

@media (max-width: 560px) {

  body {
    background:
      linear-gradient(
        180deg,
        var(--paper-soft),
        var(--paper)
      );
  }

  .site-noise {
    opacity: 0.08;
  }
}