@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=Archivo+Black&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #1f1f1f;
  --ink-deep: #141414;
  --concrete: #8a8680;
  --concrete-light: #c8c4bc;
  --dust: #2a2a2a;
  --panel: #262626;
  --orange: #ff6a00;
  --orange-deep: #e05a00;
  --white: #f5f4f1;
  --line: rgba(245, 244, 241, 0.14);
  --font: 'Anuphan', sans-serif;
  --display: 'Space Grotesk', 'Anuphan', sans-serif;
  --impact: 'Archivo Black', 'Space Grotesk', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 1180px;
  --nav-h: 76px;
  --demo-h: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--white);
  background: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

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

.mono {
  font-family: var(--mono);
}

/* Demo bar */
.demo-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  background: #0e0e0e;
  color: var(--white);
  font-size: 0.82rem;
  border-bottom: 2px solid var(--orange);
}

.demo-bar strong {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--orange);
}

.demo-bar__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.demo-bar a {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(245, 244, 241, 0.28);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s;
}

.demo-bar a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.demo-bar a.is-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-deep);
}

.demo-bar a.is-primary:hover {
  background: #ff7d22;
  border-color: #ff7d22;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
}

.site-header.is-solid {
  position: fixed;
  top: var(--demo-h);
  background: rgba(31, 31, 31, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  animation: drop 0.35s var(--ease);
}

@keyframes drop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--impact);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand span {
  color: var(--orange);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(245, 244, 241, 0.45);
  color: var(--white);
  padding: 0.4rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(245, 244, 241, 0.86);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--orange);
}

/* Hero — industrial full-bleed */
.hero {
  position: relative;
  min-height: calc(100vh - var(--demo-h));
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) 0 4.75rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.9);
  animation: heroDrift 20s var(--ease) both;
}

@keyframes heroDrift {
  from {
    transform: scale(1.1) translateY(1.5%);
  }
  to {
    transform: scale(1) translateY(0);
  }
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.45) 0%, rgba(20, 20, 20, 0.25) 35%, rgba(20, 20, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(20, 20, 20, 0.55) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 42rem;
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-mark {
  font-family: var(--impact);
  font-size: clamp(5.5rem, 17vw, 12rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 0 0 2px transparent;
  margin-bottom: 1.1rem;
  animation: rise 1s var(--ease) 0.08s both;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 0.85rem;
}

.lead {
  color: rgba(245, 244, 241, 0.78);
  font-size: 1rem;
  max-width: 38ch;
  margin-bottom: 1.75rem;
}

.hero__stamp {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 3;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--orange);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border: 1px solid var(--orange);
  padding: 0.65rem 0.35rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--orange {
  background: var(--orange);
  color: var(--ink-deep);
  border-color: var(--orange);
}

.btn--orange:hover {
  background: #ff7d22;
  border-color: #ff7d22;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(245, 244, 241, 0.55);
}

.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Stats band */
.stats {
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats__band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  position: relative;
  padding: 2.25rem 1.25rem;
  border-right: 1px solid var(--line);
  text-align: left;
}

.stat:last-child {
  border-right: none;
}

.stat__num {
  font-family: var(--impact);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.02em;
}

.stat__suffix {
  font-family: var(--impact);
  font-size: 1.4rem;
  color: var(--orange);
  margin-left: 0.1rem;
}

.stat__label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--concrete-light);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section__head {
  margin-bottom: 2.75rem;
  max-width: 36rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.65rem;
}

.section__head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.section__head p:last-child {
  color: var(--concrete-light);
  font-size: 0.98rem;
}

/* Site gallery */
.sites {
  background: var(--ink);
}

.sites__gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.85rem;
}

.site {
  position: relative;
  overflow: hidden;
  min-height: 16rem;
  background: var(--dust);
}

.site--wide {
  grid-column: 1 / -1;
  min-height: 22rem;
}

.site img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: inherit;
  transition: transform 0.7s var(--ease), filter 0.4s;
  filter: grayscale(0.25) contrast(1.05);
}

.site:hover img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.08);
}

.site__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, transparent, rgba(14, 14, 14, 0.92));
}

.site__meta .mono {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  display: block;
  margin-bottom: 0.35rem;
}

.site__meta h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* Safety / capability list */
.safety {
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
}

.cap-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid var(--orange);
}

.cap-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.25s var(--ease);
}

.cap-list li:nth-child(2n) {
  padding-left: 1.25rem;
  border-right: none;
}

.cap-list li:hover {
  background: rgba(255, 106, 0, 0.06);
}

.cap-list__num {
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 600;
  padding-top: 0.2rem;
}

.cap-list h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.cap-list p {
  color: var(--concrete-light);
  font-size: 0.93rem;
  max-width: 36ch;
}

/* Quote */
.quote {
  padding: 5.5rem 0;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.08), transparent 40%),
    var(--ink);
  border-top: 1px solid var(--line);
}

.quote__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: start;
}

.quote__info h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  letter-spacing: -0.03em;
  margin: 0.55rem 0 0.85rem;
}

.quote__info > p {
  color: var(--concrete-light);
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.info-list li {
  display: grid;
  gap: 0.2rem;
}

.info-list span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--concrete);
}

.info-list strong {
  font-weight: 600;
  font-size: 0.98rem;
}

.quote__form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--concrete-light);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  background: var(--ink-deep);
  color: var(--white);
  border: 1px solid rgba(245, 244, 241, 0.18);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.quote__form .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  background: #0e0e0e;
  border-top: 2px solid var(--orange);
  padding: 3.5rem 0 1.75rem;
}

/* Voice slips — ticket / docket */
.voice-slips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.voice-slip {
  margin: 0;
  padding: 1.15rem 1.05rem 1rem;
  border: 1px dashed var(--line);
  background: var(--panel);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}
.voice-slip:nth-child(2n) { transform: rotate(0.45deg); }
.voice-slip:nth-child(2n+1) { transform: rotate(-0.4deg); }
.voice-slip__no {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--concrete-light);
}
.voice-slip p {
  font-family: var(--heading, var(--display, inherit));
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.voice-slip figcaption {
  font-size: 0.84rem;
  color: var(--concrete-light);
  margin: 0;
  margin-top: auto;
}
@media (max-width: 900px) {
  .voice-slips {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }
  .voice-slip {
    flex: 0 0 min(78vw, 16.5rem);
    scroll-snap-align: start;
    transform: none;
  }
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__grid p {
  margin-top: 0.85rem;
  color: var(--concrete);
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer__grid h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.footer__grid a {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
  color: rgba(245, 244, 241, 0.85);
  transition: color 0.2s;
}

.footer__grid a:hover {
  color: var(--orange);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--concrete);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 960px) {
  .stats__band {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .sites__gallery,
  .quote__grid,
  .footer__grid,
  .cap-list {
    grid-template-columns: 1fr;
  }

  .cap-list li,
  .cap-list li:nth-child(2n) {
    padding-left: 0;
    border-right: none;
  }

  .site--wide {
    min-height: 18rem;
  }
}

@media (max-width: 720px) {
    .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-deep);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-mark {
    font-size: clamp(4.4rem, 24vw, 7rem);
  }

  .hero {
    padding-bottom: 3.25rem;
  }

  .hero__stamp {
    display: none;
  }

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

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0;
  }

  .stat:last-child {
    border-bottom: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section,
  .quote {
    padding: 4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
