/* Art direction: Copper pipe-thread folio — oxidized copper, iron soot, warm boiler light */

:root {
  --iron: #12100e;
  --soot: #1a1612;
  --bay: #241e18;
  --copper: #c17a3a;
  --copper-deep: #8f5528;
  --copper-soft: #d4a06a;
  --cream: #efe4d2;
  --paper: #e7dccb;
  --muted: #9e9080;
  --line: rgba(193, 122, 58, 0.35);
  --line-soft: rgba(239, 228, 210, 0.12);
  --font-display: "Zilla Slab", "Palatino Linotype", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(193, 122, 58, 0.12), transparent 55%),
    linear-gradient(180deg, #16120f 0%, var(--iron) 40%, #0f0d0b 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--copper-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cream);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--copper);
  color: var(--iron);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.wrap-narrow {
  width: min(100% - 2.5rem, 720px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 16, 14, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  width: min(100% - 1.5rem, var(--wrap));
  margin-inline: auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 2.35rem;
  width: auto;
}

.nav-desktop-wrap {
  justify-self: center;
}

.nav-desktop {
  display: flex;
  gap: 1.35rem;
  align-items: center;
}

.nav-desktop a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.86;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--copper-soft);
  opacity: 1;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.header-phone:hover {
  color: var(--copper-soft);
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: var(--soot);
  padding: 0.5rem 1.25rem 1.25rem;
}

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

.nav-mobile a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 500;
}

.nav-mobile .btn {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-copper {
  background: var(--copper);
  color: var(--iron);
}

.btn-copper:hover {
  background: var(--copper-soft);
  color: var(--iron);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(239, 228, 210, 0.35);
}

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

.btn-solid {
  background: var(--cream);
  color: var(--iron);
}

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

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.88) 0%, rgba(12, 10, 8, 0.62) 42%, rgba(12, 10, 8, 0.35) 100%),
    linear-gradient(180deg, rgba(12, 10, 8, 0.25) 0%, rgba(12, 10, 8, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--wrap));
  margin: 0 auto;
  padding: 5.5rem 0 4rem;
  max-width: 34rem;
  justify-self: start;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  color: var(--copper-soft);
  margin-bottom: 0.85rem;
}

.hero-lede {
  color: rgba(239, 228, 210, 0.88);
  font-size: 1.05rem;
  max-width: 32ch;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.page-hero .hero-content {
  padding: 5rem 0 2.75rem;
  max-width: 38rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  color: var(--cream);
}

.page-hero .hero-lede {
  margin-bottom: 0;
}

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

.section-tight {
  padding: 2.75rem 0;
}

.section-bay {
  background: linear-gradient(180deg, rgba(36, 30, 24, 0.9), rgba(20, 17, 14, 0.95));
  border-block: 1px solid var(--line-soft);
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: var(--cream);
}

.section-lede {
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.colophon {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.colophon strong {
  color: var(--copper-soft);
  font-weight: 600;
}

.colophon span {
  color: var(--muted);
}

/* Service index — pipe-thread ledger, not cards */
.thread-index {
  display: grid;
  gap: 0;
}

.thread-row {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr auto;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s var(--ease);
}

.thread-row:first-child {
  border-top: 1px solid var(--line-soft);
}

.thread-row:hover {
  background: rgba(193, 122, 58, 0.06);
}

.thread-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.thread-copy h3 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
  color: var(--cream);
}

.thread-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

.thread-arrow {
  color: var(--copper-soft);
  font-size: 1.25rem;
  align-self: center;
}

/* Split material */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media {
  overflow: hidden;
  min-height: 320px;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

.split-copy .section-title {
  margin-bottom: 0.85rem;
}

.work-list {
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: 0.55rem;
}

.work-list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.65rem;
  color: var(--paper);
}

.work-list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--copper);
}

/* Spec band */
.spec-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.spec-band > div {
  padding: 1.35rem 1.25rem;
  border-right: 1px solid var(--line);
}

.spec-band > div:last-child {
  border-right: 0;
}

.spec-band dt {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.4rem;
}

.spec-band dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream);
}

/* CTA strip */
.cta-strip {
  padding: 3.5rem 0;
  background:
    linear-gradient(135deg, rgba(193, 122, 58, 0.18), transparent 50%),
    var(--bay);
  border-block: 1px solid var(--line);
}

.cta-strip .section-title {
  margin-bottom: 0.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 1.1rem;
}

.contact-block h2 {
  font-size: 1.1rem;
  color: var(--copper-soft);
  margin-bottom: 0.35rem;
}

.contact-block p,
.contact-block a {
  color: var(--paper);
  text-decoration: none;
}

.contact-block a:hover {
  color: var(--copper-soft);
}

.hours-note {
  color: var(--muted);
  font-size: 0.95rem;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(239, 228, 210, 0.2);
  background: rgba(0, 0, 0, 0.28);
  color: var(--cream);
  font: inherit;
  padding: 0.8rem 0.9rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-status {
  color: var(--copper-soft);
  font-weight: 500;
}

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

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line-soft);
  background: #0c0b09;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 2.1rem;
  width: auto;
  margin-bottom: 0.85rem;
}

.footer-brand p,
.footer-col p,
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--copper-soft);
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

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

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

.reveal-delay {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.22s;
}

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

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

@media (max-width: 960px) {
  .nav-desktop-wrap {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-actions .header-phone,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .split,
  .contact-grid,
  .footer-grid,
  .spec-band {
    grid-template-columns: 1fr;
  }

  .spec-band > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .spec-band > div:last-child {
    border-bottom: 0;
  }

  .thread-row {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }

  .thread-label {
    grid-column: 1 / -1;
    margin-bottom: -0.35rem;
  }

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

  .hero-content {
    max-width: none;
    padding: 4.5rem 0 3rem;
  }
}

@media (max-width: 640px) {
  .brand img {
    height: 2rem;
  }

  .hero {
    min-height: 85vh;
  }

  .section {
    padding: 3.25rem 0;
  }
}
