:root {
  --bg: #061017;
  --bg-soft: #101a1d;
  --surface: #ffffff;
  --surface-muted: #f4f6f2;
  --text: #102028;
  --text-muted: #587079;
  --text-inverse: #f7fbfb;
  --teal: #00a9a5;
  --teal-dark: #087c78;
  --green: #79c043;
  --amber: #ffb23f;
  --wood: #9a673d;
  --cream: #f7f3eb;
  --line: rgba(16, 32, 40, 0.12);
  --line-inverse: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 70px rgba(4, 20, 26, 0.18);
  --header-height: 76px;
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--surface);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
}

::selection {
  background: rgba(0, 169, 165, 0.24);
}

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

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 0 34px;
  color: var(--text-inverse);
  background: rgba(6, 16, 23, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand-logo {
  display: block;
  width: clamp(150px, 15vw, 206px);
  height: auto;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: var(--radius);
  color: rgba(247, 251, 251, 0.82);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: #ffffff;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.09);
}

.header-cta svg,
.button svg,
.nav-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-inverse);
  background: var(--bg);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/hero-tecraid-misto.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.01);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 16, 23, 0.96) 0%, rgba(6, 16, 23, 0.84) 36%, rgba(6, 16, 23, 0.18) 77%),
    linear-gradient(180deg, rgba(6, 16, 23, 0.48) 0%, rgba(72, 42, 23, 0.08) 44%, rgba(6, 16, 23, 0.78) 100%);
}

.hero-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 42px) 0 62px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title {
  max-width: 820px;
  margin: 0;
  font-size: 4.65rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 600px;
  margin: 28px 0 0;
  color: rgba(247, 251, 251, 0.84);
  font-size: 1.26rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin-top: 24px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: var(--radius);
  color: rgba(247, 251, 251, 0.88);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 0.92rem;
  font-weight: 780;
}

.hero-tags svg {
  width: 17px;
  height: 17px;
  color: #79e0d9;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: #031314;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 18px 36px rgba(0, 169, 165, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #22c4bf;
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
}

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

.section {
  padding: 96px 0;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.section-intro {
  padding: 58px 0 54px;
  background: var(--cream);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  color: var(--text);
  font-size: 2.42rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.intro-grid p:not(.section-kicker),
.section-heading p:not(.section-kicker),
.contact-copy p,
.impact-item p,
.solution-card p,
.method-list p {
  margin: 0;
  color: var(--text-muted);
}

.intro-grid > p {
  font-size: 1.08rem;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 34px;
}

.section-heading p:not(.section-kicker) {
  margin-top: 18px;
  font-size: 1.05rem;
}

.section-spaces {
  padding: 0 0 88px;
  background: var(--cream);
}

.spaces-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: stretch;
}

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

.space-item {
  padding: 24px;
  border: 1px solid rgba(154, 103, 61, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 42px rgba(61, 42, 28, 0.08);
}

.space-item svg {
  width: 26px;
  height: 26px;
  margin-bottom: 20px;
  color: var(--wood);
}

.space-item:nth-child(2) svg {
  color: var(--teal-dark);
}

.space-item p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.section-gallery {
  background: #ffffff;
}

.gallery-heading {
  max-width: 780px;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.gallery-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(16, 32, 40, 0.14);
  border-radius: var(--radius);
  color: #263940;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.gallery-tab svg {
  width: 18px;
  height: 18px;
  color: var(--teal-dark);
}

.gallery-tab:hover,
.gallery-tab:focus-visible,
.gallery-tab.is-active {
  color: #041419;
  border-color: rgba(0, 169, 165, 0.46);
  background: rgba(0, 169, 165, 0.12);
  outline: none;
}

.gallery-tab:hover,
.gallery-tab:focus-visible {
  transform: translateY(-1px);
}

.gallery-carousel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.gallery-viewport {
  position: relative;
  aspect-ratio: 16 / 8;
  min-height: 420px;
}

.gallery-media {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-media.is-active {
  display: block;
}

.gallery-video {
  background: #02090d;
  cursor: pointer;
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 70px 92px 32px 32px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 16, 23, 0.86) 72%);
  pointer-events: none;
}

.gallery-viewport.is-video .gallery-caption {
  inset: 0 0 auto;
  padding: 28px 92px 92px 32px;
  background: linear-gradient(180deg, rgba(6, 16, 23, 0.82) 0%, rgba(6, 16, 23, 0.34) 58%, transparent 100%);
}

.gallery-video-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: none;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 16, 23, 0.66);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.gallery-viewport.is-video .gallery-video-toggle {
  display: grid;
}

.gallery-video-toggle span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid currentColor;
}

.gallery-viewport.is-playing .gallery-video-toggle span {
  width: 18px;
  height: 22px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(currentColor 0 0) left center / 6px 100% no-repeat,
    linear-gradient(currentColor 0 0) right center / 6px 100% no-repeat;
}

.gallery-video-toggle:hover,
.gallery-video-toggle:focus-visible {
  background: rgba(0, 169, 165, 0.86);
  outline: none;
}

.gallery-caption p {
  margin: 0 0 8px;
  color: #79e0d9;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gallery-caption h3 {
  max-width: 680px;
  color: #ffffff;
  font-size: 1.42rem;
}

.gallery-count {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  min-width: 58px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(6, 16, 23, 0.62);
  backdrop-filter: blur(12px);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.gallery-dots {
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.gallery-dot.is-active,
.gallery-dot:hover,
.gallery-dot:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
  outline: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(6, 16, 23, 0.62);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: rgba(0, 169, 165, 0.86);
  outline: none;
}

.gallery-arrow svg {
  width: 22px;
  height: 22px;
}

.gallery-arrow-prev {
  left: 16px;
}

.gallery-arrow-next {
  right: 16px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.solution-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
  box-shadow: 0 14px 34px rgba(7, 33, 40, 0.06);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--green), var(--wood));
}

.solution-card svg,
.impact-item svg {
  width: 26px;
  height: 26px;
  margin-bottom: 22px;
  color: var(--teal-dark);
}

.solution-card:nth-child(2n) svg {
  color: var(--green);
}

.solution-card:nth-child(3n) svg {
  color: var(--amber);
}

.solution-card p {
  margin-top: 12px;
}

.section-method {
  color: var(--text-inverse);
  background:
    radial-gradient(circle at 84% 20%, rgba(121, 192, 67, 0.2), transparent 28rem),
    linear-gradient(135deg, #07131a 0%, #0b2228 64%, #10261f 100%);
}

.section-method h2,
.section-method h3 {
  color: #ffffff;
}

.section-method .section-kicker {
  color: #79e0d9;
}

.section-method .section-heading p:not(.section-kicker),
.method-list p {
  color: rgba(247, 251, 251, 0.72);
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 54px;
  align-items: start;
}

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

.method-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line-inverse);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.method-list span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  color: #041419;
  font-weight: 900;
  background: #79e0d9;
}

.method-list p {
  margin-top: 8px;
}

.impact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 48px;
  align-items: start;
}

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

.impact-item {
  padding: 22px;
  border-left: 3px solid var(--teal);
  background: var(--surface-muted);
}

.impact-item:nth-child(2) {
  border-color: var(--green);
}

.impact-item:nth-child(3) {
  border-color: var(--amber);
}

.impact-item p {
  margin-top: 10px;
}

.section-contact {
  background: #f7faf9;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: start;
}

.contact-copy p {
  margin-top: 20px;
  font-size: 1.06rem;
}

.contact-points {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-points span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #24353c;
  font-weight: 750;
}

.contact-points svg {
  width: 18px;
  height: 18px;
  color: var(--teal-dark);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #24353c;
  font-size: 0.92rem;
  font-weight: 780;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(16, 32, 40, 0.16);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--text);
  background: #fbfdfd;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal-dark);
  outline: 3px solid rgba(0, 169, 165, 0.15);
}

.contact-form .button {
  width: 100%;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 26px 0;
  color: rgba(247, 251, 251, 0.74);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-footer .brand-logo {
  width: 174px;
}

.site-footer p {
  margin: 0;
}

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

  .site-nav {
    position: absolute;
    top: calc(var(--header-height) + 10px);
    right: 20px;
    display: none;
    min-width: min(300px, calc(100vw - 40px));
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    background: rgba(6, 16, 23, 0.96);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  }

  .site-header[data-menu-open="true"] .site-nav {
    display: grid;
  }

  .site-nav a {
    width: 100%;
  }

  .header-cta {
    justify-self: end;
  }

  .nav-toggle {
    display: grid;
    grid-column: 3;
    justify-self: end;
  }

  .hero-title {
    font-size: 3.65rem;
  }

  .intro-grid,
  .spaces-layout,
  .method-layout,
  .impact-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .spaces-grid,
  .solution-grid,
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-viewport {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .hero-inner {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    gap: 12px;
    padding: 0 14px;
  }

  .brand-logo {
    width: 138px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 82svh;
    align-items: flex-end;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(6, 16, 23, 0.34) 0%, rgba(6, 16, 23, 0.76) 48%, rgba(6, 16, 23, 0.95) 100%),
      linear-gradient(90deg, rgba(6, 16, 23, 0.72) 0%, rgba(6, 16, 23, 0.28) 100%);
  }

  .hero-inner {
    padding: calc(var(--header-height) + 54px) 0 42px;
  }

  .hero-title {
    font-size: 2.72rem;
    line-height: 1.02;
  }

  .hero-copy {
    margin-top: 20px;
    font-size: 1.06rem;
  }

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

  .hero-tags {
    gap: 8px;
  }

  .hero-tags span {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .gallery-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-tab {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
  }

  .gallery-viewport {
    aspect-ratio: 4 / 5;
    min-height: 430px;
  }

  .gallery-caption {
    padding: 84px 18px 74px;
  }

  .gallery-viewport.is-video .gallery-caption {
    padding: 22px 18px 82px;
  }

  .gallery-video-toggle {
    width: 52px;
    height: 52px;
  }

  .gallery-caption h3 {
    font-size: 1.08rem;
  }

  .gallery-arrow {
    top: auto;
    bottom: 18px;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .gallery-arrow-prev {
    left: auto;
    right: 68px;
  }

  .gallery-arrow-next {
    right: 18px;
  }

  .gallery-count {
    top: 14px;
    right: 14px;
  }

  .gallery-dots {
    right: auto;
    bottom: 34px;
    left: 18px;
  }

  .section {
    padding: 70px 0;
  }

  .section-intro {
    padding: 42px 0 58px;
  }

  h2 {
    font-size: 2rem;
  }

  .spaces-grid,
  .solution-grid,
  .impact-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .solution-card {
    min-height: auto;
  }

  .method-list li {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    gap: 32px;
  }

  .contact-form {
    padding: 18px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
