:root {
  color-scheme: light;
  --ink: #31291e;
  --ink-2: #4a3b29;
  --paper: #fbf3df;
  --paper-2: #eef1df;
  --line: rgba(49, 41, 30, 0.18);
  --line-light: rgba(255, 255, 255, 0.16);
  --muted: #766f63;
  --yellow: #f6c84d;
  --oxide: #d36f4f;
  --green: #6f8b67;
  --deep: #657a5f;
  --deep-2: #73644b;
  --steel: #d8dbc9;
  --max: 1220px;
  --gutter: 36px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.48;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  transform: translateY(-140%);
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  border: 1px solid var(--line);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-meter {
  position: fixed;
  inset: 0 0 auto;
  z-index: 25;
  height: 3px;
}

.scroll-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--oxide));
}

.identity-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  color: rgba(49, 41, 30, 0.72);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.identity-rail strong {
  color: var(--oxide);
}

.section-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  display: flex;
  transform: translateX(-50%);
  border: 1px solid rgba(49, 41, 30, 0.18);
  background: rgba(251, 243, 223, 0.9);
  color: var(--ink);
  box-shadow: 0 20px 70px rgba(49, 41, 30, 0.18);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.section-dock::-webkit-scrollbar {
  display: none;
}

.section-dock a {
  min-height: 44px;
  padding: 14px 16px 12px;
  border-right: 1px solid rgba(49, 41, 30, 0.14);
  color: rgba(49, 41, 30, 0.72);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.section-dock a:hover,
.section-dock a.is-active {
  background: var(--yellow);
  color: var(--ink);
}

.hero-shell {
  position: relative;
  min-height: 760px;
  height: 90svh;
  max-height: 940px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--paper-2);
  color: var(--ink);
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 243, 223, 0.94), rgba(238, 241, 223, 0.72) 48%, rgba(251, 243, 223, 0.82)),
    linear-gradient(0deg, rgba(251, 243, 223, 0.96), rgba(251, 243, 223, 0.16) 52%);
}

.hero-image,
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image img {
  object-fit: cover;
  filter: saturate(0.96) contrast(1.04) brightness(1.08);
  transform: scale(calc(1 + var(--scene-shift, 0) * 0.025));
}

.flow-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  opacity: 0.28;
  pointer-events: none;
}

.flow-grid span {
  border-left: 1px solid rgba(49, 41, 30, 0.18);
  transform: translateY(-100%);
  animation: scanDrop 8s linear infinite;
}

.flow-grid span:nth-child(2) {
  animation-delay: 1.4s;
}

.flow-grid span:nth-child(3) {
  animation-delay: 2.8s;
}

.flow-grid span:nth-child(4) {
  animation-delay: 4.2s;
}

.hero-grid {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - var(--gutter) - var(--gutter)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.58fr);
  gap: 72px;
  align-items: end;
  padding: 120px 0 96px;
}

.hero-copy {
  min-width: 0;
}

.kicker {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

.hero-grid > *,
.wide-grid > *,
.products-head > *,
.unit-layout > *,
.unit-two-layout > *,
.clients-layout > *,
.contact-grid > * {
  min-width: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 22px;
  font-size: 5.7rem;
  line-height: 0.93;
  font-weight: 950;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 span {
  display: inline;
}

h2 {
  margin-bottom: 22px;
  font-size: 4rem;
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: 0;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.14;
}

.lead {
  max-width: 670px;
  color: rgba(49, 41, 30, 0.72);
  font-size: 1.14rem;
}

.spec-ledger {
  display: grid;
  border: 1px solid rgba(49, 41, 30, 0.2);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px);
}

.spec-ledger div {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-bottom: 1px solid rgba(49, 41, 30, 0.14);
}

.spec-ledger span {
  color: rgba(49, 41, 30, 0.52);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.material-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--yellow);
  color: var(--ink);
}

.material-strip span {
  padding: 18px 12px;
  border-right: 1px solid rgba(49, 41, 30, 0.2);
  text-align: center;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: 104px 0;
}

.section-index,
.wide-grid,
.application-grid,
.application-media,
.products-head,
.product-register,
.product-media-row,
.unit-layout,
.unit-two-layout,
.unit-address,
.process-gallery,
.clients-layout,
.contact-grid {
  width: min(var(--max), calc(100% - var(--gutter) - var(--gutter)));
  margin-left: auto;
  margin-right: auto;
}

.section-index {
  margin-bottom: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section-index span {
  color: var(--oxide);
}

.section-index.dark {
  color: rgba(255, 255, 255, 0.58);
}

.section-index.dark span {
  color: var(--yellow);
}

.wide-grid,
.products-head,
.unit-layout,
.unit-two-layout,
.clients-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 72px;
}

.content-stack,
.products-head > p {
  color: var(--muted);
  font-size: 1.04rem;
}

.process-gallery,
.application-media,
.product-media-row {
  display: grid;
  gap: 12px;
  margin-top: 58px;
}

.process-gallery {
  grid-template-columns: repeat(3, 1fr);
}

.application-media,
.product-media-row {
  grid-template-columns: repeat(3, 1fr);
}

.application-media {
  grid-template-columns: 1.25fr 0.75fr;
}

.process-gallery figure,
.application-media figure,
.product-media-row figure {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.application-media figure {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.06);
}

.process-gallery img,
.process-gallery video,
.application-media img,
.product-media-row img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.06);
  transition: transform 700ms ease, filter 700ms ease;
}

.process-gallery figure:hover img,
.process-gallery figure:hover video,
.application-media figure:hover img,
.product-media-row figure:hover img {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.08);
}

.process-gallery figcaption,
.application-media figcaption,
.product-media-row figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  background: linear-gradient(0deg, rgba(49, 41, 30, 0.88), rgba(49, 41, 30, 0));
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 850;
}

.video-card {
  min-height: 360px;
}

.video-card video {
  min-height: 360px;
}

.origin-section,
.products-section,
.clients-section {
  background: var(--paper);
}

.application-section,
.unit-one-section,
.contact-section {
  background: var(--deep);
  color: #fff;
}

.unit-one-section {
  background: var(--deep-2);
}

.contact-section {
  background: #667961;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.application-grid article {
  min-height: 310px;
  padding: 24px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.application-grid span {
  display: block;
  margin-bottom: 46px;
  color: var(--yellow);
  font-weight: 950;
}

.application-grid p,
.unit-layout p,
.contact-grid address span {
  color: rgba(255, 255, 255, 0.68);
}

.product-register {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 58px;
}

.product-register article {
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.product-register span {
  display: block;
  margin-bottom: 42px;
  color: var(--oxide);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.product-register p {
  color: var(--muted);
  font-size: 0.94rem;
}

.unit-layout {
  align-items: center;
}

.unit-image {
  min-height: 540px;
  overflow: hidden;
}

.unit-image img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06);
}

.fact-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
}

.fact-list div {
  padding: 18px;
  border-left: 5px solid var(--yellow);
  background: rgba(255, 255, 255, 0.06);
}

.fact-list dt {
  margin-bottom: 6px;
  font-weight: 950;
}

.fact-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.unit-two-section {
  background: var(--paper-2);
}

.workflow-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.workflow-board div {
  min-height: 210px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-board span {
  display: block;
  margin-bottom: 36px;
  color: var(--green);
  font-weight: 950;
}

.workflow-board p,
.unit-two-layout p,
.name-wall span,
.contact-grid address span {
  color: var(--muted);
}

.unit-address {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.unit-address strong,
.unit-address span {
  display: block;
}

.unit-address strong {
  margin-bottom: 8px;
}

.clients-layout {
  align-items: start;
}

.name-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.name-wall span {
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-grid address {
  display: grid;
  gap: 12px;
  font-style: normal;
}

.contact-grid address a,
.contact-grid address span {
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 12px;
}

.contact-grid address a {
  color: var(--yellow);
  font-size: 1.24rem;
  font-weight: 950;
}

[data-animate] {
  opacity: 1;
  transform: none;
}

.motion-ready [data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.motion-ready [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scanDrop {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@media (max-width: 1120px) {
  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 3.2rem;
  }

  .hero-grid,
  .wide-grid,
  .products-head,
  .unit-layout,
  .unit-two-layout,
  .clients-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .application-grid,
  .product-register,
  .process-gallery,
  .product-media-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .application-media {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 22px;
    --mobile-content: min(calc(100vw - var(--gutter) - var(--gutter)), 332px);
  }

  .identity-rail {
    display: none;
  }

  .section-dock {
    position: sticky;
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    transform: none;
    width: 100%;
    border-right: 0;
    border-left: 0;
    overflow-x: auto;
    box-shadow: none;
  }

  .section-dock a {
    flex: 0 0 auto;
  }

  .hero-shell {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    width: var(--mobile-content);
    margin-left: var(--gutter);
    margin-right: auto;
    padding: 94px 0 92px;
  }

  .section-index,
  .wide-grid,
  .application-grid,
  .application-media,
  .products-head,
  .product-register,
  .product-media-row,
  .unit-layout,
  .unit-two-layout,
  .unit-address,
  .process-gallery,
  .clients-layout,
  .contact-grid {
    width: var(--mobile-content);
    max-width: var(--mobile-content);
    margin-left: var(--gutter);
    margin-right: auto;
  }

  .hero-copy,
  .spec-ledger {
    width: 100%;
    max-width: var(--mobile-content);
  }

  h1 {
    max-width: 100%;
    font-size: 2.04rem;
    line-height: 0.98;
  }

  h1 span {
    display: block;
  }

  h2 {
    font-size: 2.08rem;
    line-height: 1.03;
  }

  .lead {
    max-width: 330px;
    font-size: 1rem;
    overflow-wrap: break-word;
  }

  .spec-ledger,
  .material-strip,
  .application-grid,
  .product-register,
  .workflow-board,
  .process-gallery,
  .application-media,
  .product-media-row {
    grid-template-columns: 1fr;
  }

  .material-strip {
    position: static;
  }

  .material-strip span {
    text-align: left;
  }

  .section {
    padding: 72px 0;
  }

  .unit-image,
  .unit-image img {
    min-height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
