@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --accent: #c1592e;
  --background: #0b0c0c;
  --surface: #111213;
  --surface-2: #17191a;
  --text: #f5f4f0;
  --muted: rgba(245, 244, 240, 0.74);
  --faint: rgba(245, 244, 240, 0.46);
  --line: rgba(245, 244, 240, 0.12);
  --content: 1100px;
  color-scheme: dark;
}

html[data-theme="brass"] { --accent: #8a6d3b; }
html[data-theme="slate"] { --accent: #3c5a6e; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--text); }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: var(--background); }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  position: relative;
  z-index: 10;
  background: var(--background);
  border-bottom: 1px solid rgba(245, 244, 240, 0.04);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.header-logo {
  width: auto;
  height: 34px;
  flex: 0 0 auto;
}

html[data-logo-style="outlined"] .header-logo {
  filter:
    drop-shadow(1.2px 0 0 var(--accent))
    drop-shadow(-1.2px 0 0 var(--accent))
    drop-shadow(0 1.2px 0 var(--accent))
    drop-shadow(0 -1.2px 0 var(--accent));
}

.header-divider {
  width: 1px;
  height: 28px;
  background: rgba(245, 244, 240, 0.25);
}

.header-wordmark,
.header-phone,
.brand-line,
.eyebrow,
.status-badge,
.service-name,
.footer-heading,
.footer-tagline,
.count-value {
  font-family: "Oswald", Impact, sans-serif;
}

.header-wordmark {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1.2;
  white-space: nowrap;
}

.and-badge {
  display: inline-block;
  margin: 0 4px;
  padding: 1px 6px;
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 1px var(--text);
  color: var(--accent);
  font-size: 0.75em;
  letter-spacing: 1px;
}

.header-phone {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 600px;
  height: min(92vh, 880px);
  overflow: hidden;
  isolation: isolate;
}

.hero-photo,
.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(11, 12, 12, 0.56) 0%, rgba(11, 12, 12, 0.35) 34%, rgba(11, 12, 12, 0.88) 100%),
    linear-gradient(90deg, rgba(11, 12, 12, 0.2), transparent 30%, transparent 70%, rgba(11, 12, 12, 0.2));
}

.hero-content {
  height: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-logo {
  width: clamp(220px, 34vw, 420px);
  height: auto;
  margin-bottom: -14px;
  filter:
    drop-shadow(1.5px 0 0 var(--accent))
    drop-shadow(-1.5px 0 0 var(--accent))
    drop-shadow(0 1.5px 0 var(--accent))
    drop-shadow(0 -1.5px 0 var(--accent))
    drop-shadow(0 6px 30px rgba(0, 0, 0, 0.5));
}

.brand-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 22px);
  margin-top: 8px;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 600;
}

.brand-line > span:not(.and-badge-large) { letter-spacing: clamp(4px, 0.65vw, 9px); }

.and-badge-large {
  display: inline-block;
  padding: 2px 10px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px var(--text);
  color: var(--text);
  font-size: 0.6em;
  letter-spacing: 2px;
  white-space: nowrap;
}

.tagline-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.tagline-rule { width: 40px; height: 1px; background: rgba(245, 244, 240, 0.4); }
.tagline {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  color: rgba(245, 244, 240, 0.82);
}

.hero-status {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.status-badge {
  display: inline-block;
  padding: 4px 14px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 4px;
}

.countdown {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
}

.countdown[hidden] { display: none; }
.count-unit { min-width: 62px; display: flex; flex-direction: column; align-items: center; }
.count-value { font-size: clamp(28px, 5vw, 46px); font-weight: 700; line-height: 1; }
.count-label { margin-top: 6px; color: rgba(245, 244, 240, 0.62); font-size: 11px; letter-spacing: 2px; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  font-family: "Oswald", Impact, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.button-primary { background: var(--accent); color: var(--background); }
.button-primary:hover, .button-primary:focus-visible { background: var(--text); color: var(--background); }
.button-secondary { background: rgba(11, 12, 12, 0.48); color: var(--text); }
.button-secondary:hover, .button-secondary:focus-visible { background: var(--text); color: var(--background); }

.notify-form {
  display: flex;
  width: min(92vw, 420px);
  margin-top: 8px;
  gap: 0;
}
.notify-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(245, 244, 240, 0.30);
  border-radius: 0;
  outline: none;
  background: rgba(245, 244, 240, 0.08);
  color: var(--text);
  font: 14px/1.35 "Inter", Arial, sans-serif;
  appearance: none;
}
.notify-input::placeholder { color: rgba(245, 244, 240, 0.45); opacity: 1; }
.notify-input:focus { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.notify-button {
  flex: 0 0 auto;
  padding: 14px 22px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--background);
  cursor: pointer;
  white-space: nowrap;
  font: 600 13px/1.35 "Oswald", Impact, sans-serif;
  letter-spacing: 1.5px;
  appearance: none;
}
.notify-button:hover,
.notify-button:focus-visible { background: var(--text); color: var(--background); }
.notify-button:disabled { cursor: wait; opacity: 0.72; }
.notify-status {
  color: var(--accent);
  font-size: 15px;
  line-height: 1.4;
}
.notify-status:empty { display: none; }
.notify-status.is-error { color: #ff8a80; }
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.services {
  padding: 62px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services-grid {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.service-icon-wrap {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(245, 244, 240, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.service-icon {
  width: 27px;
  height: 27px;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.service-icon--mechanical { background-image: url("../icons/v1.3/rust/mechanical.png"); }
.service-icon--diagnostics { background-image: url("../icons/v1.3/rust/diagnostics.png"); }
.service-icon--marine { background-image: url("../icons/v1.3/rust/marine.png"); }
.service-icon--fabrication { background-image: url("../icons/v1.3/rust/fabrication.png"); }

html[data-theme="brass"] .service-icon--mechanical { background-image: url("../icons/v1.3/brass/mechanical.png"); }
html[data-theme="brass"] .service-icon--diagnostics { background-image: url("../icons/v1.3/brass/diagnostics.png"); }
html[data-theme="brass"] .service-icon--marine { background-image: url("../icons/v1.3/brass/marine.png"); }
html[data-theme="brass"] .service-icon--fabrication { background-image: url("../icons/v1.3/brass/fabrication.png"); }

html[data-theme="slate"] .service-icon--mechanical { background-image: url("../icons/v1.3/slate/mechanical.png"); }
html[data-theme="slate"] .service-icon--diagnostics { background-image: url("../icons/v1.3/slate/diagnostics.png"); }
html[data-theme="slate"] .service-icon--marine { background-image: url("../icons/v1.3/slate/marine.png"); }
html[data-theme="slate"] .service-icon--fabrication { background-image: url("../icons/v1.3/slate/fabrication.png"); }

.service-name { font-size: 14px; font-weight: 600; letter-spacing: 1.5px; }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.split-photo { min-height: 380px; position: relative; overflow: hidden; }
.split-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(245, 244, 240, 0.04);
  pointer-events: none;
}
.photo-credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  padding: 4px 7px;
  background: rgba(11, 12, 12, 0.68);
  color: rgba(245, 244, 240, 0.72);
  font-size: 10px;
}
.photo-credit:hover { color: var(--text); }
.split-copy {
  padding: clamp(38px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 3px; }
.split-copy h2 {
  margin: 0;
  font-family: "Oswald", Impact, sans-serif;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.06;
}
.split-copy p { max-width: 490px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.contact-section {
  padding: 70px clamp(20px, 5vw, 64px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.contact-grid {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-heading { margin-bottom: 14px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 3px; }
.contact-name { margin-bottom: 10px; font-family: "Oswald", Impact, sans-serif; font-size: 18px; font-weight: 600; }
.contact-grid p { margin: 0; color: rgba(245, 244, 240, 0.86); font-size: 15px; line-height: 1.8; }
.contact-grid a { display: block; color: rgba(245, 244, 240, 0.86); }
.contact-grid a:hover, .contact-grid a:focus-visible { color: var(--accent); }

.site-footer {
  padding: 23px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(245, 244, 240, 0.08);
  color: var(--faint);
  font-size: 12px;
}
.footer-tagline { letter-spacing: 2px; }

@media (max-width: 820px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid { grid-template-columns: 1fr; }
  .split-copy { min-height: 330px; }
  .split-grid .marine-copy { order: 4; }
  .split-grid .marine-photo { order: 3; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 620px) {
  .site-header { gap: 12px; padding: 15px 18px; }
  .header-divider, .header-wordmark { display: none; }
  .header-logo { height: 30px; }
  .header-phone { font-size: 13px; }
  .hero { min-height: 640px; height: auto; }
  .hero-content { min-height: 640px; padding-top: 54px; padding-bottom: 42px; }
  .brand-line { gap: 9px; }
  .brand-line > span:not(.and-badge-large) { letter-spacing: 3px; }
  .and-badge-large { padding: 2px 7px; }
  .tagline-rule { width: 24px; }
  .tagline { letter-spacing: 2.6px; font-size: 11px; }
  .hero-status { margin-top: 42px; }
  .count-unit { min-width: 50px; }
  .notify-form { width: min(92vw, 420px); }
  .notify-input { padding-left: 12px; padding-right: 12px; }
  .notify-button { padding-left: 16px; padding-right: 16px; }
  .services { padding-top: 48px; padding-bottom: 48px; }
  .services-grid { gap: 30px 18px; }
  .split-photo { min-height: 300px; }
  .split-copy { min-height: 0; padding: 42px 24px; }
}

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