/* =========================================================
   Hardware Components — creative, energetic single page
   ========================================================= */

:root {
  --ink: #14161c;
  --ink-2: #454b58;
  --paper: #f8f5ef;
  --paper-2: #efe9dd;
  --brand: #ff4a1c;
  --brand-ink: #c1310a;
  --navy: #141b34;
  --lime: #c9f24d;
  --line: rgba(20, 22, 28, 0.14);
  --max: 1160px;
  --radius: 20px;
  --shadow: 0 22px 48px -30px rgba(20, 22, 28, 0.75);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.028em;
}

h1 {
  font-size: clamp(2.3rem, 6.4vw, 4.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.9vw, 2.75rem);
  max-width: 26ch;
}

h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 12px 0;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* ------------------------- Header ------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(248, 245, 239, 0.92);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand__logo {
  height: 40px;
  width: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.brand__text {
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav__list a:hover {
  color: var(--brand-ink);
}

.nav__list .nav__cta {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.nav__list .nav__cta:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* -------------------------- Hero -------------------------- */

.hero {
  position: relative;
  padding-block: clamp(2.4rem, 6vw, 4.6rem) clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: clamp(180px, 26vw, 340px);
  height: clamp(180px, 26vw, 340px);
  right: -80px;
  top: -90px;
  background: var(--lime);
  opacity: 0.55;
  border-radius: 44% 56% 62% 38% / 52% 40% 60% 48%;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3.4rem);
  grid-template-columns: 1fr;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero__lede {
  margin-top: 1.2rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__tags li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero__media {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 16px -14px -16px 14px;
  background: var(--brand);
  border-radius: 30px;
  transform: rotate(2.5deg);
  z-index: 0;
}

.hero__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero__badge {
  position: absolute;
  z-index: 2;
  left: -6px;
  bottom: 20px;
  margin: 0;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.85);
}

/* ------------------------ Buttons ------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--solid {
  background: var(--brand);
  color: #fff;
}

.btn--solid:hover {
  background: var(--brand-ink);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

/* ------------------------ Sections ------------------------ */

.section {
  padding-block: clamp(2.6rem, 6vw, 5rem);
}

.section--tint {
  background: var(--paper-2);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.kicker span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.section__head {
  max-width: 60ch;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

.section__intro {
  margin-top: 1.1rem;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.3vw, 1.06rem);
}

/* -------------------------- About ------------------------- */

.about__grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}

.about__body .lead {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  font-weight: 700;
  line-height: 1.45;
  max-width: 40ch;
}

.about__body p {
  color: var(--ink-2);
}

.about__body .lead {
  color: var(--ink);
}

.industries {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.industry {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.industry span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--brand-ink);
}

/* ------------------------ Gallery ------------------------- */

.gallery {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

.ph {
  margin: 0;
  position: relative;
}

.ph img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.ph--2::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: var(--lime);
  z-index: -1;
}

.range-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  padding: clamp(1.2rem, 3vw, 1.9rem);
  background: var(--ink);
  color: #f4f2ee;
  border-radius: 24px;
}

.range-bar__title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.range-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.range-list li {
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

/* -------------------------- Dark -------------------------- */

.section--dark {
  background: var(--navy);
  color: #f6f5f2;
}

.section--dark .kicker {
  color: rgba(246, 245, 242, 0.72);
}

.section--dark .kicker span {
  background: var(--lime);
  color: var(--navy);
}

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

.card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.35rem;
}

.card__num {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--lime);
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p:not(.card__num) {
  color: rgba(246, 245, 242, 0.78);
  font-size: 0.96rem;
}

/* ------------------------- Inquiry ------------------------ */

.inquiry {
  background: linear-gradient(180deg, var(--paper) 0%, #fdfbf7 100%);
}

.inquiry__grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}

.inquiry__copy h2 {
  max-width: 18ch;
}

.inquiry__copy p {
  color: var(--ink-2);
  max-width: 46ch;
}

.inquiry__note {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.req {
  color: var(--brand-ink);
  font-weight: 900;
}

.inq-form {
  display: grid;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

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

.field label {
  font-size: 0.9rem;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: #fdfcfa;
  border: 1.5px solid rgba(20, 22, 28, 0.2);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

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

.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(255, 74, 28, 0.3);
  outline-offset: 1px;
}

.inq-form .btn {
  justify-self: start;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
}

.form-status[data-state="success"] {
  color: #0f7a3d;
}

.form-status[data-state="error"] {
  color: #b3261e;
}

.form-status[data-state="pending"] {
  color: var(--ink-2);
}

/* -------------------------- Footer ------------------------ */

.site-footer {
  background: var(--ink);
  color: #e8e6e1;
  padding-block: clamp(2rem, 4vw, 2.8rem);
}

.footer__inner {
  display: grid;
  gap: 1.6rem;
}

.footer__logo {
  height: 42px;
  width: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}

.footer__brand p {
  margin-top: 0.9rem;
  max-width: 46ch;
  font-size: 0.95rem;
  color: rgba(232, 230, 225, 0.76);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  align-content: start;
}

.footer__nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8e6e1;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.footer__nav a:hover {
  border-bottom-color: var(--lime);
  color: #fff;
}

.footer__legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  color: rgba(232, 230, 225, 0.6);
}

/* --------------------- Scroll reveal ---------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------- Breakpoints ----------------------- */

@media (min-width: 620px) {
  .industries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .about__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .inquiry__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .footer__inner {
    grid-template-columns: 1.5fr 0.9fr;
    align-items: start;
  }
}

@media (min-width: 820px) {
  .gallery {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
  }

  .ph--1 {
    grid-column: 1 / span 7;
  }

  .ph--2 {
    grid-column: 8 / span 5;
    margin-top: 3.4rem;
  }
}

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

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -28px rgba(20, 22, 28, 0.9);
    padding: 0.8rem clamp(1rem, 4vw, 2rem) 1.3rem;
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav__list .nav__cta {
    margin-top: 1rem;
    border-bottom: 0;
    text-align: center;
  }

  .nav__list li:last-child {
    border-bottom: 0;
  }
}

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

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

  .btn,
  .nav__list a,
  .footer__nav a {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
