:root {
  --bg: #17302c;
  --surface: #1e3a35;
  --surface-2: #23433d;
  --text: #efc6c3;
  --muted: #d7b1ad;
  --line: rgba(239, 198, 195, .18);
  --accent: #efc6c3;
  --accent-hover: #f5d6d2;
  --nav-h: 88px;
  --page-x: clamp(22px, 4.8vw, 64px);
  --radius: 18px;
  --shadow: 0 20px 80px rgba(0,0,0,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--page-x);
  background: linear-gradient(to bottom, rgba(4,6,6,.36), rgba(4,6,6,0));
}
.brand img { width: clamp(104px, 11vw, 156px); height: auto; }
.nav-wrap { display: flex; align-items: center; gap: 18px; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); }
.nav-link {
  position: relative;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .28);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.menu-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.menu-button span,
.menu-button span::before,
.menu-button span::after {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform .24s ease, opacity .24s ease;
}
.menu-button span { position: relative; }
.menu-button span::before { position: absolute; top: -7px; }
.menu-button span::after { position: absolute; top: 7px; }
body.menu-open .menu-button span { background: transparent; }
body.menu-open .menu-button span::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-button span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: max(100px, 14vh) var(--page-x) 40px;
  background: rgba(13, 23, 22, .96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu nav { display: grid; gap: 12px; }
.mobile-menu a {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -.02em;
}
.menu-small {
  margin-top: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(239,198,195,.74);
}

/* Burger menu links match the stronger homepage navigation treatment. */
.mobile-menu nav a {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .28);
}

/* Keep the separator crisp white while the tagline remains pink. */
.tag-slash {
  color: #ffffff;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 36px) var(--page-x) clamp(58px, 10vh, 98px);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url('assets/hero-machine.png') right center / cover no-repeat;
  filter: brightness(1.12) contrast(1.14) saturate(1.08);
  transform: scale(1.03);
  animation: heroFloat 20s ease-in-out infinite alternate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.52) 28%, rgba(0,0,0,.16) 54%, rgba(0,0,0,.06) 78%, rgba(0,0,0,.14) 100%),
    linear-gradient(0deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 46%),
    linear-gradient(0deg, rgba(27,58,52,.10) 0%, rgba(27,58,52,.10) 100%);
}
.hero-copy {
  max-width: min(520px, 82vw);
  animation: riseIn .65s ease both;
}
.hero h1,
.page-title {
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.28);
  font-size: clamp(36px, 4vw, 46px);
  line-height: .95;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.hero-tagline {
  margin: 18px 0 0;
  max-width: 420px;
  font-size: clamp(11px, .95vw, 13px);
  line-height: 1.6;
  color: rgba(239,198,195,.84);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-actions { margin-top: 28px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 184px;
  min-height: 54px;
  padding: 0 38px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: transparent;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease;
  cursor: pointer;
}
.button:hover {
  transform: translateY(-2px);
  background: rgba(239,198,195,.08);
  border-color: var(--accent-hover);
}
.button-arrow { color: #fff; font-size: 15px; line-height: 1; }

.internal-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 96px) var(--page-x) 96px;
}
.internal-main::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: min(52vh, 460px);
  z-index: -3;
  background: url('assets/hero-machine.png') right center / cover no-repeat;
  filter: saturate(.94);
}
.internal-main::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,7,7,.84) 0%, rgba(8,10,10,.66) 40%, rgba(10,12,12,.44) 66%, rgba(10,12,12,.60) 100%),
    linear-gradient(180deg, rgba(27,58,52,.08) 0%, rgba(18,24,23,.40) 28%, rgba(23,48,44,.90) 54%, rgba(23,48,44,1) 72%);
}
.internal-hero { max-width: 1160px; padding-top: clamp(48px, 7vw, 112px); }
.kicker {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .24);
}
.lead {
  max-width: 760px;
  margin: 26px 0 0;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.5;
  color: #e4c2be;
}

.service-grid,
.work-placeholder,
.quote-layout {
  width: min(1160px, 100%);
  margin-top: 54px;
}
.service-grid { display: grid; gap: 24px; }
.service-row {
  display: grid;
  grid-template-columns: 56px minmax(220px, 320px) 1fr;
  gap: 18px 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-num {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  padding-top: 6px;
}
.service-row h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}
.service-row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(239,198,195,.82);
}

.work-placeholder {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(239,198,195,.04), rgba(239,198,195,.10));
  box-shadow: var(--shadow);
}
.work-placeholder div {
  display: grid;
  gap: 10px;
  text-align: center;
  padding: 26px;
}
.work-placeholder strong { color: #fff; font-size: 24px; }
.work-placeholder span { color: rgba(239,198,195,.82); }

.quote-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 32px;
}
.quote-aside p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(239,198,195,.82);
}
.quote-meta {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: #e4c2be;
  font-size: 15px;
  line-height: 1.7;
}
.quote-meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 23, 22, .26);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 10px; }
.field.full { grid-column: 1 / -1; }
label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #fff;
}
input, select, textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(239,198,195,.28);
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
  color: var(--text);
  outline: none;
}
select { background-color: var(--surface); padding: 14px 12px; border: 1px solid rgba(239,198,195,.22); border-radius: 12px; }
textarea { min-height: 140px; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(239,198,195,.5); }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}
input[type='file'] { border: 1px dashed rgba(239,198,195,.28); padding: 18px; border-radius: 14px; }
.form-status {
  grid-column: 1 / -1;
  display: none;
  padding: 16px 18px;
  border: 1px solid rgba(239,198,195,.55);
  border-radius: 14px;
  color: #f0d4d0;
}
.form-status.is-visible { display: block; }

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
.file-note {
  display: block;
  margin-top: 4px;
  color: rgba(239,198,195,.62);
  font-size: 12px;
  line-height: 1.5;
}
.form-status.is-success { border-color: rgba(239,198,195,.55); }
.form-status.is-error { border-color: rgba(255,255,255,.68); color: #fff; }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
}
.form-note { font-size: 14px; color: rgba(239,198,195,.72); }

.site-footer {
  width: min(1160px, calc(100% - (var(--page-x) * 2)));
  margin: 0 auto;
  padding: 12px 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(239,198,195,.68);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer img { width: 86px; }

@keyframes heroFloat {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(0, -6px, 0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .quote-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-media { background-position: 61% center; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.50) 58%, rgba(0,0,0,.14) 100%),
      linear-gradient(0deg, rgba(0,0,0,.48), rgba(0,0,0,.04) 58%),
      linear-gradient(0deg, rgba(27,58,52,.10), rgba(27,58,52,.10));
  }
  .internal-main::before { height: 44vh; background-position: 68% center; }
  .internal-main::after {
    background:
      linear-gradient(90deg, rgba(5,7,7,.88) 0%, rgba(8,10,10,.68) 60%, rgba(10,12,12,.50) 100%),
      linear-gradient(180deg, rgba(27,58,52,.10) 0%, rgba(18,24,23,.54) 34%, rgba(23,48,44,.96) 58%, rgba(23,48,44,1) 74%);
  }
  .hero h1 { line-height: .9; }
  .hero-tagline { max-width: 330px; line-height: 1.6; }
  .button { width: 100%; min-width: 0; }
  .service-row { grid-template-columns: 42px 1fr; }
  .service-row p { grid-column: 2; }
  .quote-form { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-actions { grid-column: auto; flex-direction: column; align-items: stretch; }
  .form-status { grid-column: auto; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
