/* Early Auto Wire — matte black, copper, premium-technical */
:root {
  --bg: #0b0a09;
  --bg-2: #12110f;
  --bg-3: #181614;
  --copper: #d1865e;
  --copper-bright: #e8a678;
  --copper-deep: #a86b45;
  --copper-soft: rgba(209, 134, 94, 0.18);
  --line: rgba(209, 134, 94, 0.28);
  --line-strong: rgba(209, 134, 94, 0.45);
  --text: #f4ebe3;
  --muted: #c4b6aa;
  --dim: #8f8378;
  --focus: #f0c09a;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(209, 134, 94, 0.08), transparent 55%),
    linear-gradient(to right, rgba(209, 134, 94, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(209, 134, 94, 0.035) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 80%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: 1rem;
  top: -40px;
  z-index: 20;
  padding: 0.5rem 0.8rem;
  background: var(--copper);
  color: #1a100c;
  font-size: 0.85rem;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

a { color: var(--copper-bright); }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 10, 9, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.6rem;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  display: block;
  height: 44px;
  width: auto;
}
@media (min-width: 720px) {
  .brand img { height: 52px; }
}
.nav {
  margin-left: auto;
  display: none;
  gap: 1.5rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--copper-bright); }
.header-cta {
  margin-left: auto;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a100c;
  background: linear-gradient(180deg, var(--copper-bright), var(--copper-deep));
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--copper);
}
.header-cta:hover { color: #1a100c; filter: brightness(1.08); }

@media (min-width: 720px) {
  .nav { display: flex; }
  .header-cta { margin-left: 0; }
}

/* Hero — fills a 1280×800 first screen */
.hero {
  position: relative;
  min-height: min(calc(100svh - 3.6rem), 46.5rem);
  display: grid;
  place-items: center;
  padding: 2.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.hero, .section { scroll-margin-top: 3.7rem; }
.hero-glow {
  position: absolute;
  inset: 12% 20% 30%;
  background: radial-gradient(ellipse at center, rgba(209, 134, 94, 0.14), transparent 68%);
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 46rem;
}
.hero-logo {
  width: min(20.75rem, 86vw);
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  background: transparent;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 4.4vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--text);
  max-width: 18ch;
}
.hero-sub {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  max-width: 36rem;
}
.ground {
  color: var(--copper);
  margin: 1.4rem 0 1.6rem;
  opacity: 0.9;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a100c;
  background: linear-gradient(180deg, #e8a678 0%, #c67a4a 100%);
  border: 1px solid #f0c09a;
  padding: 0.85rem 1.35rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 10px 24px rgba(168, 107, 69, 0.18);
}
.btn:hover { color: #1a100c; filter: brightness(1.06); }
button.btn { width: 100%; }
@media (min-width: 600px) {
  button.btn { width: auto; }
}

/* Sections */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}
.section-head { margin-bottom: 1.75rem; }
.kicker {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--copper);
}
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}
h3 {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-grid li {
  padding: 1.5rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
}
.service-grid .idx {
  grid-row: 1 / span 2;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--copper);
  padding-top: 0.28rem;
}
.service-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.98rem;
  max-width: 38ch;
}

@media (min-width: 880px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(209,134,94,0.03), transparent 40%);
  }
  .service-grid li {
    padding: 1.75rem 1.6rem 1.85rem;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
  .service-grid li:nth-child(2n) { border-right: 0; }
  .service-grid li:nth-child(n+3) { border-bottom: 0; }
}

.about-intro {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.portrait {
  margin: 0;
  max-width: 18rem;
}
.portrait-frame {
  aspect-ratio: 4 / 5;
  width: 100%;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(209,134,94,0.08), transparent 55%),
    var(--bg-3);
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  filter: grayscale(0.15) contrast(1.05);
}
.portrait figcaption {
  margin-top: 0.7rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
}
.lede {
  margin: 0.85rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  max-width: 36ch;
}
.fine {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-weight: 300;
  max-width: 52ch;
}
.fine.close {
  color: var(--copper-bright);
}
@media (min-width: 880px) {
  .about-intro {
    grid-template-columns: minmax(14rem, 0.72fr) 1.28fr;
    gap: 3.25rem;
  }
}

/* Contact */
.contact { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.contact-grid { display: grid; gap: 2.25rem; }
@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }
}
.inquire {
  display: grid;
  gap: 1.1rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  background: rgba(18, 17, 15, 0.7);
}
@media (min-width: 600px) {
  .inquire { padding: 1.75rem 1.6rem; }
}
.field { display: grid; gap: 0.4rem; }
.field-row {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}
input, textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: #0e0d0c;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0.8rem;
  width: 100%;
  caret-color: var(--copper-bright);
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 1px var(--copper-soft);
}
textarea { resize: vertical; min-height: 7.5rem; }
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--copper-bright);
  box-shadow: 0 0 0 1000px #0e0d0c inset;
  transition: background-color 9999s ease-out;
}
.form-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--copper-bright);
}

.site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--dim);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-inner p { margin: 0; }
@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1280px) {
  .hero-logo { width: 21.5rem; }
  .hero { padding-top: 2rem; padding-bottom: 2.75rem; }
}

@media (max-width: 420px) {
  .hero-logo { width: min(20.75rem, 92vw); }
}
