:root {
  color-scheme: light;
  --graphite: #222621;
  --warm-white: #faf8f2;
  --limestone: #efede5;
  --ink-muted: #5c5b53;
  --line: #8d877b;
  --amber: #e5a84d;
  --amber-hover: #efb75f;
  --focus-color: #86521b;
  --edge: clamp(20px, 5.3vw, 76px);
  --max-width: 1440px;
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  background: var(--warm-white);
  color: var(--graphite);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-weight: 450;
  line-height: 1.6;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

.wrap {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--edge);
}

.skip-link {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  transform: translateY(calc(-100% - 24px));
  padding: 12px 16px;
  background: var(--warm-white);
  color: var(--graphite);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  --focus-color: var(--amber);
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  color: var(--warm-white);
}

.header-layout {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #faf8f240;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  width: fit-content;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  display: block;
  flex: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(16px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a,
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-list a:hover,
.text-link:hover,
.text-link span {
  color: var(--amber);
}

.hero {
  --focus-color: var(--amber);
  display: flex;
  min-height: clamp(680px, 100svh, 900px);
  background:
    linear-gradient(180deg, #171b18b8, transparent 26%),
    linear-gradient(90deg, #171b18fa 0%, #171b18cc 34%, #171b1830 75%, #171b1814 100%),
    var(--graphite) url("./assets/hero.jpg") 56% center / cover no-repeat;
  color: var(--warm-white);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 132px 56px;
}

.hero h1 {
  max-width: 11.4em;
  font-size: clamp(54px, 6.6vw, 94px);
  font-weight: 450;
  line-height: 1.02;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  max-width: 38ch;
  margin-top: 20px;
  color: #f0ece3;
  font-size: clamp(15px, 1.3vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid transparent;
  background: var(--amber);
  color: var(--graphite);
  font-size: 14px;
  font-weight: 600;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.button:hover {
  background: var(--amber-hover);
}

.button:active {
  background: #d79b42;
}

.button[disabled],
fieldset:disabled .button {
  background: var(--limestone);
  color: var(--ink-muted);
  cursor: default;
}

.text-link {
  gap: 8px;
}

.button [aria-hidden],
.text-link [aria-hidden] {
  font-size: 17px;
  line-height: 1;
}

.section {
  padding-block: clamp(64px, 8vw, 112px);
}

.section h2 {
  max-width: 18ch;
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.section-intro,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 7vw, 112px);
}

.section-intro p,
.contact-copy p {
  max-width: 46ch;
  color: var(--ink-muted);
}

.section-intro p {
  align-self: end;
  font-size: clamp(16px, 1.5vw, 19px);
}

.about-carousel,
.application-figure {
  margin-top: clamp(28px, 4vw, 56px);
}

.application-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: #d6cec0;
}

.catalog-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.65fr);
  align-items: center;
  gap: clamp(24px, 7vw, 96px);
  padding: clamp(24px, 6vw, 76px);
  background: var(--limestone);
}

.catalog-copy p {
  max-width: 44ch;
  margin-top: 16px;
  color: var(--ink-muted);
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 24px;
}

.catalog-download {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.catalog-download:hover {
  color: var(--focus-color);
}

.catalog-copy .catalog-file-info {
  margin-top: 8px;
  font-size: 13px;
}

.catalog-cover {
  display: block;
  width: min(100%, 224px);
  height: auto;
  justify-self: center;
  box-shadow: 0 8px 24px #1b251d30;
}

figcaption {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 13px;
}

.company-stats {
  padding-block-start: 0;
}

.company-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  margin: clamp(24px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.company-stats-grid li {
  padding-top: 14px;
  border-top: 2px solid var(--amber);
  color: var(--ink-muted);
  font-size: clamp(14px, 1.25vw, 16px);
}

.company-stats-grid .company-stat-value {
  margin-bottom: 8px;
  color: var(--graphite);
  font-size: clamp(25px, 4vw, 52px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.company-stat-unit {
  font-size: 0.58em;
  letter-spacing: normal;
}

.applications {
  background: var(--limestone);
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.application-card img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--limestone);
}

.application-card h3 {
  margin-top: 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.application-card p {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 15px;
}

.application-figure figcaption {
  margin-top: 24px;
}

.works {
  padding-bottom: 0;
}

.works h2 {
  margin-bottom: clamp(24px, 4vw, 48px);
}

.works-carousel {
  --work-gap: clamp(8px, 1.4vw, 20px);
  --work-peek: clamp(22px, 10vw, 148px);
  position: relative;
}

.works-rail {
  display: flex;
  gap: var(--work-gap);
  overflow-x: auto;
  padding-inline: var(--work-peek);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.work-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: center;
  background: var(--graphite);
  color: var(--warm-white);
}

.work-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.work-slide img[src$="/magnum-khan-shatyr.jpg"] {
  object-position: center 38%;
}

.work-caption {
  position: absolute;
  inset: auto auto 0 0;
  max-width: calc(100% - 24px);
  isolation: isolate;
  margin: 0;
  padding: clamp(32px, 6vw, 80px) clamp(36px, 6vw, 80px) clamp(12px, 2vw, 28px) clamp(16px, 3vw, 40px);
  color: var(--warm-white);
}

.work-caption::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #181b17f5, #181b17c9 54%, transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - clamp(16px, 4vw, 56px)), transparent);
  content: "";
}

.work-caption h3 {
  font-size: clamp(19px, 3vw, 40px);
  font-weight: 550;
  line-height: 1.14;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.work-caption a {
  text-decoration: none;
  text-underline-offset: 0.16em;
}

.work-caption a:hover {
  text-decoration: underline;
}

.work-caption a:focus-visible {
  outline-color: var(--amber);
}

.work-caption p {
  margin-top: 4px;
  color: #f2ede1;
  font-size: clamp(12px, 1.25vw, 15px);
  line-height: 1.45;
}

.work-credit {
  display: block;
  margin-top: 2px;
  color: #f2ede1;
  font-size: 11px;
}

.works-carousel.is-enhanced .work-slide:not(.is-current) img {
  opacity: 0.48;
}

.works-carousel.is-enhanced .work-slide:not(.is-current) .work-caption {
  opacity: 0;
  pointer-events: none;
}

.works-controls {
  position: absolute;
  z-index: 1;
  inset: 0 clamp(4px, 3.8vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.works-controls[hidden] {
  display: none;
}

.work-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #d8d2c6;
  background: var(--warm-white);
  color: var(--graphite);
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 160ms ease;
}

.work-arrow:hover,
.work-arrow:active {
  background: var(--amber);
}

.work-arrow:focus-visible {
  outline-offset: 2px;
  outline-color: var(--graphite);
  box-shadow: 0 0 0 4px var(--warm-white);
}

.works-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.works-carousel.about-carousel {
  --work-gap: 0px;
  --work-peek: 0px;
  margin-inline: calc(12px - var(--edge));
}

.about-carousel .work-slide img {
  height: clamp(320px, 38vw, 560px);
}

.about-carousel .work-slide::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #171b18db, #171b1840);
  pointer-events: none;
  content: "";
}

.about-carousel .work-caption {
  inset: 0;
  display: flex;
  max-width: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: 24px clamp(68px, 9vw, 144px);
  pointer-events: none;
}

.about-carousel .work-caption::before {
  content: none;
}

.about-carousel .work-caption h3 {
  font-size: clamp(22px, 4vw, 52px);
  text-transform: uppercase;
}

.about-carousel .work-caption h3 span {
  display: block;
  color: var(--amber);
}

.about-carousel .work-caption p {
  max-width: 38ch;
  margin: 0;
  font-size: clamp(15px, 1.25vw, 18px);
}

.about-carousel .works-controls {
  inset-inline: 0;
}

.about-carousel .works-controls::before {
  position: absolute;
  z-index: -1;
  inset: 50% 0 auto;
  height: 72px;
  transform: translateY(-50%);
  background: linear-gradient(transparent, #0000002b, transparent);
  content: "";
}

.about-carousel .work-arrow {
  width: clamp(44px, 5vw, 64px);
  height: 56px;
  border: 0;
  background: transparent;
  color: var(--warm-white);
}

.about-carousel .work-arrow svg {
  filter: drop-shadow(0 1px 2px #000b);
}

.about-carousel .work-arrow:is(:hover, :active) {
  background: #00000012;
}

.about-carousel .work-arrow:focus-visible {
  outline: 2px solid var(--warm-white);
  outline-offset: -3px;
  box-shadow: none;
}

.brands {
  padding-block: clamp(32px, 4.2vw, 60px);
  border-bottom: 1px solid #ddd8cd;
}

.brands-strip {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

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

.brands-strip.is-dragging {
  cursor: grabbing;
}

.brands-strip li {
  display: grid;
  flex: 0 0 max(114px, calc((100% - 80px) / 4));
  min-height: 72px;
  place-items: center;
  padding-inline: 12px;
}

.brands-strip img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 60px;
  filter: grayscale(1);
  opacity: 0.5;
  transition: filter 300ms ease, opacity 300ms ease;
}

.brands-strip li:hover img {
  filter: grayscale(0);
  opacity: 1;
}

@media (min-width: 1280px) {
  .brands-strip li {
    flex-basis: calc(100% / 9);
  }
}

.contact-copy p {
  margin-top: 16px;
}

.request-form fieldset {
  display: grid;
  min-inline-size: 0;
  gap: 20px;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-field {
  display: grid;
  gap: 4px;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--graphite);
  font-size: 16px;
}

.form-field textarea {
  min-height: 88px;
  resize: vertical;
}

.request-form .button {
  justify-self: start;
}

.form-note,
.form-status {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 14px;
}

.form-status:empty {
  margin-top: 0;
}

#whatsapp-fallback[hidden] {
  display: none;
}

.site-footer {
  --focus-color: var(--amber);
  background: var(--graphite);
  color: var(--warm-white);
  font-size: 14px;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(32px, 5vw, 64px);
}

.footer-layout h2 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.footer-company p,
.footer-contact p,
.footer-bottom p {
  max-width: 34ch;
  color: #d4d0c5;
}

.footer-company p {
  margin-top: 8px;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-top-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.footer-links a:hover,
.footer-top-link:hover {
  color: var(--amber);
  text-decoration: underline;
}

.footer-contact .button {
  margin-top: 16px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 12px;
  border-top: 1px solid #faf8f240;
}

@media (max-width: 700px) {
  .hero-copy,
  .section-intro p,
  .about-carousel .work-caption p,
  .application-card p,
  .catalog-copy p,
  .contact-copy p {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .company-stats-grid li,
  .form-note,
  .form-status,
  .footer-layout p,
  .footer-bottom p {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .application-figure figcaption,
  .catalog-copy .catalog-file-info,
  .works .work-caption p {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .company-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-layout {
    display: grid;
    min-height: auto;
    gap: 0;
    padding-block: 8px;
  }

  .nav-list {
    gap: 0 clamp(12px, 5vw, 32px);
  }

  .hero {
    min-height: clamp(540px, 100svh, 680px);
    background:
      linear-gradient(180deg, #171b18e8 0%, #171b1880 100%),
      linear-gradient(90deg, #171b18db, #171b1820),
      var(--graphite) url("./assets/hero.jpg") 63% center / cover no-repeat;
  }

  .hero-content {
    padding-block: 148px 44px;
  }

  .hero h1 {
    font-size: clamp(36px, 11.5vw, 62px);
  }

  .section-intro,
  .contact-layout,
  .catalog-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-intro {
    gap: 12px;
  }

  .works-carousel.about-carousel {
    margin-inline: calc(var(--edge) * -1);
  }

  .about-carousel .work-slide img {
    height: clamp(280px, 82vw, 320px);
  }

  .about-carousel .work-slide::before {
    background: linear-gradient(0deg, #171b18f0, #171b18b8 48%, #171b1833);
  }

  .about-carousel .work-caption {
    justify-content: flex-end;
    gap: 10px;
    padding: 16px;
  }

  .about-carousel .works-controls {
    inset-block-end: 38%;
  }

  .about-carousel .work-arrow {
    height: 48px;
  }

  .brands-strip li {
    flex-basis: calc(100% / 6);
    min-height: 56px;
    padding-inline: 8px;
  }

  .brands-strip img {
    max-height: 40px;
  }

  .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-company {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .nav-list {
    column-gap: 12px;
  }

  .nav-list a {
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .works-carousel {
    --work-peek: 22px;
    margin-inline: calc(var(--edge) * -1);
  }

  .works-controls {
    inset-block-end: 30%;
    inset-inline: 6px;
  }

  .work-slide img {
    aspect-ratio: 3 / 2;
  }

  .brands-strip li {
    flex-basis: 20%;
  }
}

@media (max-width: 399px) {
  .brands-strip li {
    flex-basis: 25%;
  }
}

@media (max-width: 380px) {
  .works-controls {
    inset-block-end: 52%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .brands-strip img,
  .work-arrow,
  .nav-list a,
  .text-link {
    transition: none;
  }

  .brands-strip .brand-repeat {
    display: none;
  }
}
