:root {
  --ox: #6d0808;
  --ink: #2d0000;
  --sage: #757d6f;
  --ecru: #eeead7;
  --paper: #f3f2ec;
  --olive: #857731;
  --line: #c4c2ba;
  --hd: "Syne", sans-serif;
  --bd: "Instrument Sans", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  font-family: var(--bd);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom text selection colours */
::selection {
  background-color: var(--ox);
  color: var(--paper);
}

::-moz-selection {
  background-color: var(--ox);
  color: var(--paper);
}

body.menu-open {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}
.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}
.narrow {
  max-width: 990px;
}

.btn-primary,
.btn-secondary {
  --cut: 14px;
  --border: 3px;

  display: inline-block;
  box-sizing: border-box;

  padding: 14px 30px;

  font: 500 16px/1.2 var(--bd);
  white-space: nowrap;
  text-decoration: none;
}

/* PRIMARY */

.btn-primary {
  background: var(--ox);
  color: #fff;

  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    0 100%
  );

  transition: background-color 0.2s ease;
}

/* SECONDARY */

.btn-secondary {
  position: relative;
  isolation: isolate;

  background: var(--ox);
  color: var(--ox);

  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    0 100%
  );

  transition: color 0.2s ease;
}

/*
   The inner polygon is inset by 3px.

   Because the diagonal is at 45°,
   its parallel offset is:

   14px - 3px × (sqrt(2) - 1)
   = 12.757px

   The pseudo-element itself is already
   inset by 3px, so its local cut is
   12.243px.
*/

.btn-secondary::before {
  content: "";
  position: absolute;

  inset: var(--border);

  z-index: -1;

  background: white;

  clip-path: polygon(
    0 0,
    calc(100% - 12.243px) 0,
    100% 12.243px,
    100% 100%,
    0 100%
  );

  transition: background-color 0.2s ease;
}

/* HOVER */

.btn-secondary:hover {
  color: #fff;
}

.btn-secondary:hover::before {
  background: var(--ox);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.25s;
  background: rgba(0, 0, 0, 0.92);
}
.site-header.scrolled,
body.menu-open .site-header {
  background: rgba(0, 0, 0, 0.92);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand img {
  height: 35px;
  width: auto;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 44px;
  color: #fff;
  font-size: 15px;
}
.primary-nav a:not(.btn):hover {
  opacity: 0.7;
}
.primary-nav .btn {
  padding: 14px 26px;
  margin-left: 8px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  position: relative;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: #fff;
  transition: 0.25s;
}
.menu-toggle span:first-child {
  top: 16px;
}
.menu-toggle span:last-child {
  top: 25px;
}
.menu-toggle.open span:first-child {
  top: 20px;
  transform: rotate(45deg);
}
.menu-toggle.open span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

.hero {
  min-height: min(830px, 100svh);
  display: flex;
  align-items: center;
  background: #000 center/cover;
  color: #fff;
  position: relative;
}
.hero {
  background-image: url(assets/hero.webp);
}
.hero-copy {
  padding: 130px 0 90px;
}
.hero h1 {
  font: 700 clamp(36px, 5vw, 64px)/1.15 var(--hd);
  max-width: 9.5em;
  margin-bottom: 28px;
}
.hero p {
  max-width: 27em;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.35;
  opacity: 0.92;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero-tags {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}

.hero-tags {
  font-weight: 800;
}

.hero-tags li::before {
  content: "•";
  margin-right: 6px;
}

.sec {
  padding: 84px 0;
}
.paper {
  background: var(--paper);
}
.white {
  background: #fff;
}
.black {
  background: #000;
  color: #fff;
}
.head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 52px;
}
.head.mt {
  margin-top: 84px;
}
.eyebrow {
  font: 800 16px var(--hd);
  letter-spacing: 0.05em;
  color: var(--olive);
  margin-bottom: 16px;
}
.paper .eyebrow:first-child,
.head .eyebrow {
  text-transform: none;
}
.head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 14px;
}
.head p:not(.eyebrow) {
  font-size: 15.5px;
  line-height: 1.45;
}
.black .head p:not(.eyebrow) {
  color: #c9c9c9;
}
.head .strong {
  font-weight: 500;
  color: var(--ink);
}
.built {
  margin-top: 22px;
  font-size: 15px;
}
.built b {
  color: var(--olive);
}

.why,
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.why article {
  padding: 20px 28px 0;
  border: 1px solid var(--line);
  margin: -0.5px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}
.why b {
  font-size: 24px;
  color: var(--ox);
  margin-bottom: 14px;
}
.why h3,
.cust h3 {
  font-size: 19px;
  margin-bottom: 4px;
}
.why p,
.cust p {
  font-size: 15px;
  max-width: 19em;
  line-height: 1.35;
  opacity: 0.88;
}
.why img {
  width: 60%;
  margin-left: auto;
  margin-right: 0;
  margin-bottom: 1rem;
}
.cust > div {
  padding: 24px 28px 30px;
  border: 1px solid var(--line);
  margin: -0.5px;
  min-height: 155px;
}

.prod {
  position: relative;
  display: block;
  aspect-ratio: 1/1.12;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: -0.5px;
}
.prod img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.prod:hover img {
  transform: scale(1.04);
}
.prod span {
  position: absolute;
  left: 26px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prod.r span {
  left: auto;
  right: 26px;
  align-items: flex-start;
}
.prod b {
  font-size: 19px;
  font-weight: 600;
}
.prod u {
  font-weight: 600;
  font-size: 16px;
  text-underline-offset: 4px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 36px;
  max-width: 1120px;
  margin: auto;
}
.steps > div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.steps small {
  font-size: 12.5px;
  font-weight: 700;
}
.steps h3 {
  font-size: 19px;
  margin: 10px 0 6px;
}
.steps p {
  font-size: 15px;
  line-height: 1.35;
  opacity: 0.88;
}

.build {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #000;
  color: #fff;
  overflow: hidden;
}
.build-img {
  background: #0b0b0b;
  display: grid;
  place-items: center;
  padding: 80px 40px;
}
.build-img img {
  width: min(380px, 100%);
  aspect-ratio: 4/5;
  object-fit: cover;
  transform: rotate(-8deg);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.build-copy {
  padding: 90px clamp(28px, 9vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}
.build-copy h2 {
  font-size: clamp(24px, 2.5vw, 30px);
  max-width: 9em;
}
.build-copy p {
  max-width: 21em;
  font-size: 16px;
  line-height: 1.35;
  color: #d6d6d6;
}
.build-copy .btn {
  margin-top: 8px;
}

.sample {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}
.sample-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 15.5px;
  line-height: 1.35;
  max-width: 30em;
}
.sample > img {
  aspect-ratio: 7/10;
  max-height: 520px;
  width: 100%;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--ink);
}

.tech {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 56px;
  max-width: 1200px;
  margin: auto;
}
.tech article {
  border: 1px solid var(--line);
  padding: 12px 12px 16px;
}
.tech img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 22px;
}
.tech b {
  display: block;
  color: var(--ox);
  font-size: 15px;
  margin: 0 4px 8px;
}
.tech h3 {
  font-size: 19px;
  margin: 0 4px 6px;
}
.tech p {
  font-size: 14.5px;
  line-height: 1.35;
  margin: 0 4px;
}

.band {
  background: #210000;
  color: #fff;
  padding: 26px 0;
}
.band-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.band h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 6px;
}
.band p {
  font-size: 13px;
}
.band2 {
  background: #110101;
  padding: 40px 0;
}
.band2 h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  max-width: 13em;
  font-weight: 700;
  color: #f4f4f4;
}
.band2 .eyebrow {
  font-size: 16px;
  margin-bottom: 8px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 14px;
  max-width: 1100px;
  margin: auto;
}
.gallery img {
  width: 100%;
  height: clamp(180px, 22vw, 290px);
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #333;
}

.export {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.export p {
  font-size: 15.5px;
  line-height: 1.4;
  max-width: 25em;
  margin-bottom: 24px;
}
.export h3 {
  font: 800 clamp(30px, 4vw, 44px)/1.15 var(--bd);
  margin-bottom: 28px;
  max-width: 6em;
}
.export em {
  font-style: normal;
  color: var(--ox);
}
.export ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  max-width: 420px;
  font-size: 13px;
  font-weight: 600;
}
.export li {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.export li::before {
  content: "· ";
}
.export > img {
  aspect-ratio: 3/2;
  width: 100%;
  object-fit: cover;
  border-radius: 28px;
  background: #1c1c1c;
}

.faq {
  background: #fff;
  color: #000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  padding: 44px 52px;
  min-height: 290px;
  align-items: start;
}
.faq details {
  border-bottom: 1.5px solid var(--line);
  padding: 16px 0;
  margin-bottom: 14px;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq i {
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  flex: none;
}
.faq i::before {
  content: "+";
}
.faq details[open] i::before {
  content: "X";
  font-size: 15px;
}
.faq details p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.35;
  max-width: 24em;
}
.black .head a {
  color: #c9c9c9;
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0a0500 url(assets/footer-bg.webp) center bottom/100% auto
    no-repeat;
}
.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 70px 0 clamp(150px, 22vw, 330px);
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.fcol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fcol h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.fcol p {
  line-height: 1.4;
}
.fcol a:hover {
  text-decoration: underline;
}
.soc {
  display: flex;
  gap: 8px;
}
.soc a {
  border: 1px solid #fff;
  padding: 3px 7px;
  font-size: 13px;
}
.copy {
  align-self: end;
  justify-self: end;
  color: #aaa;
  grid-column: 4;
}

@media (max-width: 1000px) {
  .menu-toggle {
    display: block;
  }
  .primary-nav {
    position: fixed;
    inset: 76px 0 0;
    background: #000;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    font-size: 20px;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.3s,
      visibility 0.3s;
  }
  .primary-nav.open {
    transform: none;
    visibility: visible;
  }
  .build,
  .sample,
  .export {
    grid-template-columns: 1fr;
  }
  .build-img {
    padding: 70px 40px;
  }
  .build-copy {
    padding: 56px 28px 64px;
  }
  .sample {
    gap: 40px;
  }
  .sample > img {
    aspect-ratio: 4/3;
    max-height: none;
  }
  .export {
    gap: 40px;
  }
  .tech {
    gap: 40px;
    max-width: 100%;
  }
  .faq {
    padding: 32px 28px;
  }
  .foot {
    grid-template-columns: 1fr 1fr;
  }
  .copy {
    grid-column: 1/-1;
    justify-self: start;
  }
}
@media (max-width: 760px) {
  .why,
  .grid3 {
    grid-template-columns: 1fr 1fr;
  }
  .why article:last-child {
    grid-column: 1/-1;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .gallery img:first-child {
    grid-column: 1/-1;
  }
  .tech {
    grid-template-columns: 1fr;
  }
  .faq {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .sec {
    padding: 60px 0;
  }
  .head {
    margin-bottom: 36px;
  }
  .head.mt {
    margin-top: 60px;
  }
  .why,
  .grid3,
  .steps,
  .gallery {
    grid-template-columns: 1fr;
  }
  .grid3.prods {
    grid-template-columns: 1fr 1fr;
  }
  .prod {
    aspect-ratio: 1/1.2;
  }
  .prod span {
    left: 14px;
    bottom: 14px;
  }
  .prod.r span {
    right: 14px;
  }
  .prod b {
    font-size: 16px;
  }
  .prod u {
    font-size: 14px;
  }
  .why article {
    min-height: 0;
    padding-bottom: 20px;
  }
  .band-in .btn {
    width: 100%;
    text-align: center;
  }
  .hero-copy {
    padding: 110px 0 70px;
  }
  .foot {
    grid-template-columns: 1fr;
    padding: 50px 0 130px;
  }
  .faq {
    padding: 20px 18px;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
  }
  .hero-copy {
    position: relative;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Products slider ---------- */
.slider {
  --pv: 3;
}
.slider-ctrl {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 22px;
}
.s-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 4px;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.s-btn:not(:disabled):hover {
  background: var(--ox);
}
.s-btn:disabled {
  background: #c4c4c4;
  cursor: default;
}
.s-prev svg {
  transform: scaleX(-1);
}
.slider-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.slider-viewport::-webkit-scrollbar {
  display: none;
}
.slider-viewport:focus-visible {
  outline: 2px solid var(--ox);
  outline-offset: 4px;
}
.slider-track {
  display: flex;
}

/* card: label bottom-left, image bottom-right at 90% of the card height */
.slider .prod.slide {
  flex: 0 0 calc(100% / var(--pv));
  position: relative;
  display: block;
  margin: 0;
  border-left: 0;
  overflow: hidden;
  scroll-snap-align: start;
  aspect-ratio: 1/1.3;
}
.slider .prod.slide:first-child {
  border-left: 1px solid var(--line);
}
.slider .prod.slide img {
  position: absolute;
  inset: auto -9% 0 auto;
  width: auto;
  height: 90%;
  max-width: none;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.slider .prod.slide span {
  position: absolute;
  left: 20px;
  bottom: 24px;
  z-index: 2;
}
.slider .prod b {
  font-size: 17px;
}
.slider .prod u {
  font-size: 14px;
}

.slider-dots {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}
.slider-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #000;
  cursor: pointer;
  transition: width 0.25s;
}
.slider-dots button.active {
  width: 44px;
}

@media (max-width: 1000px) {
  .slider {
    --pv: 2;
  }
}
@media (max-width: 760px) {
  .slider {
    --pv: 1.3;
  }
  .slider .prod.slide span {
    left: 16px;
    bottom: 18px;
  }
}
@media (max-width: 520px) {
  .slider {
    --pv: 1.1;
  }
}

/* Products dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Dropdown arrow */
.dropdown-arrow {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(225deg);
  margin-top: 4px;
}

/* Submenu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.nav-dropdown.is-open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 11px 18px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

/* Keyboard focus */
.dropdown-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
