/*
 * Novite Electrical  ·  v1 site
 *
 * Brand register: warm, crafted, owner-and-team led, premium.
 * Theme: charcoal dark + copper accent, mirroring Velden Electrical's dark aesthetic.
 * Glass morphism throughout; restrained, premium motion.
 * Type: Fraunces (display, humanist serif), Inter (body), JetBrains Mono (small technical labels).
 *
 * Mobile-first. No frameworks. Class architecture shared with the 3 Core scaffold
 * so assets/script.js (nav · reveal · contact form) transfers unchanged.
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Charcoal base (warm near-black, not pure black) */
  --char-900: #14110D;
  --char-800: #1A1612;
  --char-700: #221D18;
  --char-600: #2B251E;
  --char-500: #38312A;

  /* Copper accent (dark-theme tuned, ecosystem copper family) */
  --copper: #C5854A;
  --copper-bright: #E0A668;
  --copper-deep: #9A5F30;
  --copper-glow: rgba(197, 133, 74, 0.18);
  --copper-soft: rgba(197, 133, 74, 0.10);

  --text-primary: #F3EDE4;
  --text-secondary: #B9AD9C;
  --text-muted: #847A6C;

  /* Glass */
  --glass-bg: rgba(34, 29, 24, 0.55);
  --glass-strong: rgba(34, 29, 24, 0.80);
  --border-subtle: rgba(243, 237, 228, 0.07);
  --border-light: rgba(243, 237, 228, 0.12);
  --border-copper: rgba(197, 133, 74, 0.38);

  --success: #2fb344;
  --danger: #e0625e;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --max-content: 1140px;
  --max-narrow: 720px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--char-900);
}

body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(70% 55% at 80% -5%, rgba(197, 133, 74, 0.10), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(197, 133, 74, 0.05), transparent 55%),
    var(--char-900);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--copper-bright); }

/* ---------- Wordmark (logo slot) ---------- */

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.0;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.wordmark__sub {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: 2px;
}

/* Reserved slot for the Novite mark (logo in development, Higgs Field). */
.mark-slot {
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--border-copper);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--copper);
  background: radial-gradient(circle at 50% 30%, var(--copper-soft), transparent 70%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(20, 17, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 16px var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-nav { display: none; }

@media (min-width: 780px) {
  .site-nav { display: flex; gap: var(--space-4); }
}

.site-nav a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text-primary);
  border-color: var(--copper);
}

/* Mobile nav button + drawer */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  align-items: stretch;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (min-width: 780px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav.is-open { display: block; }
.mobile-nav__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.mobile-nav a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav a:hover { color: var(--copper-bright); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
  line-height: 1.12;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 500; }
h2 { font-size: clamp(26px, 3.8vw, 38px); }
h3 { font-size: clamp(19px, 2.4vw, 24px); }
h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: var(--space-2);
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: var(--space-2);
}

.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.62;
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
  max-width: 58ch;
}

p { color: var(--text-secondary); }
.muted { color: var(--text-muted); }
.center { text-align: center; }
strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Buttons (animated glass) ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(243, 237, 228, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Sheen sweep */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover::after { left: 150%; }

.btn:hover {
  border-color: var(--border-copper);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn--filled {
  color: #1c1409;
  background: linear-gradient(135deg, var(--copper-bright), var(--copper));
  border-color: transparent;
  font-weight: 600;
}

.btn--filled:hover {
  background: linear-gradient(135deg, #eab277, var(--copper-bright));
  box-shadow: 0 8px 30px -8px var(--copper-glow), 0 0 0 1px var(--border-copper);
  transform: translateY(-2px);
}

/* ---------- Layout ---------- */

main { display: block; }

.section {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-7) var(--space-3);
}

.section--narrow { max-width: var(--max-narrow); }

.divider {
  max-width: var(--max-content);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

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

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(55% 50% at 78% 22%, var(--copper-glow), transparent 68%),
    radial-gradient(40% 40% at 12% 88%, rgba(197, 133, 74, 0.08), transparent 60%);
  animation: heroPulse 9s ease-in-out infinite;
  pointer-events: none;
}

/* Faint circuit-trace texture, CSS only (no image dependency) */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(243, 237, 228, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 237, 228, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 80% at 70% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 70% 20%, #000 0%, transparent 75%);
  pointer-events: none;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: clamp(72px, 13vw, 150px) var(--space-3) clamp(64px, 11vw, 120px);
}

.hero__inner h1 {
  max-width: 16ch;
  margin-bottom: var(--space-3);
}

.hero__inner h1 .accent { color: var(--copper-bright); }

.hero__inner .lede { max-width: 54ch; }

/* ---------- Lanes (glass cards) ---------- */

.lanes--three {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 760px) {
  .lanes--three { grid-template-columns: repeat(3, 1fr); }
}

.lane {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.lane:hover {
  border-color: var(--border-copper);
  transform: translateY(-3px);
  background: var(--glass-strong);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--copper-soft);
}

.lane__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-3);
  color: var(--copper);
}
.lane__icon svg { width: 100%; height: 100%; display: block; }

.lane__body h3 { margin-bottom: var(--space-2); }

.lane__body p {
  color: var(--text-secondary);
  margin: 0 0 var(--space-3);
  font-size: 15px;
  line-height: 1.62;
}

.lane__cta {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-bright);
  border-bottom: 1px solid var(--border-copper);
  padding-bottom: 3px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.lane__cta:hover { color: var(--copper-bright); border-color: var(--copper-bright); }

/* ---------- Pull quote ---------- */

.pullquote {
  max-width: var(--max-narrow);
  margin: var(--space-7) auto;
  padding: 0 var(--space-3);
  text-align: center;
}

.pullquote p {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(21px, 2.6vw, 29px);
  line-height: 1.45;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}

.pullquote__cite {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

/* ---------- Feature band (owner + team) ---------- */

.band {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(34, 29, 24, 0.5), rgba(20, 17, 13, 0.2));
}

.band__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-7) var(--space-3);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 820px) {
  .band__inner { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}

/* ---------- Credentials / trust grid ---------- */

.credentials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

@media (min-width: 600px) {
  .credentials { grid-template-columns: 1fr 1fr; }
}

.credentials__item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--copper);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.credentials__item h4 { margin-bottom: 6px; }

.credentials__item p {
  margin: 0;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--text-primary);
}

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

.about-bio { max-width: var(--max-narrow); margin: 0 auto; }

.about-bio p {
  margin: 0 0 var(--space-3);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text-secondary);
}

/* ---------- Network note ---------- */

.network-note {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--copper);
  background: var(--copper-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.network-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.66;
  color: var(--text-secondary);
}

/* ---------- Work / gallery ---------- */

.gallery-section { margin-top: var(--space-6); }

.gallery-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-2);
  flex-wrap: wrap;
}

.gallery-section__head h2 { margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.gallery__item {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(70% 70% at 30% 20%, var(--copper-soft), transparent 70%),
    var(--char-700);
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.04); }

.gallery__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: var(--space-3);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}

@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-6); }
}

.form {
  display: grid;
  gap: var(--space-3);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 560px) {
  .form__row--two { grid-template-columns: 1fr 1fr; }
}

.form__field { display: flex; flex-direction: column; gap: 7px; }

.form__field label {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form__field input,
.form__field select,
.form__field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 15px;
  background: rgba(20, 17, 13, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form__field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.form__field select option { background: var(--char-800); color: var(--text-primary); }

.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--text-muted); }

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: var(--border-copper);
  box-shadow: 0 0 0 3px var(--copper-soft);
  background: rgba(20, 17, 13, 0.85);
}

.form__field textarea { resize: vertical; min-height: 130px; }

.form__actions { display: flex; justify-content: flex-end; margin-top: var(--space-1); }

/* Profile card (contact) */
.profile-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.profile-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 17, 13, 0.55));
  pointer-events: none;
}

.profile-card__body { padding: var(--space-3); }
.profile-card__name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.profile-card__role {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 var(--space-3);
}

.contact-line {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--border-subtle);
}
.contact-line:first-of-type { border-top: 0; }
.contact-line h4 { margin: 0; min-width: 78px; }
.contact-line p, .contact-line a {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-secondary);
}
.contact-line a:hover { color: var(--copper-bright); }

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

.site-footer {
  background: var(--char-800);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: var(--space-6) var(--space-3) var(--space-4);
  margin-top: var(--space-8);
}

.site-footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: 1.5fr 1fr 1fr; }
}

.site-footer__brand .wordmark { color: var(--text-primary); }
.site-footer__brand p { margin-top: var(--space-2); max-width: 340px; font-size: 14px; line-height: 1.6; }

.site-footer h4 { color: var(--text-primary); margin-bottom: var(--space-2); }
.site-footer p { margin: 5px 0; font-size: 14px; }
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--copper-bright); }

.site-footer__honorary {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: var(--space-3);
}

.site-footer__draft {
  max-width: var(--max-content);
  margin: var(--space-5) auto 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Form status ---------- */

.form__status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid var(--border-subtle);
  background: var(--glass-bg);
  color: var(--text-secondary);
}
.form__status--working { border-color: var(--border-light); color: var(--text-primary); }
.form__status--success {
  border-color: rgba(47, 179, 68, 0.4);
  background: rgba(47, 179, 68, 0.10);
  color: #c8f0d0;
}
.form__status--error {
  border-color: var(--border-copper);
  background: var(--copper-soft);
  color: var(--text-primary);
}

.form__field--hp { display: none !important; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero__glow { animation: none; }
  .btn::after { display: none; }
  .reveal { transition: opacity 0.3s ease; transform: none; }
  * { scroll-behavior: auto; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .site-footer, .mobile-nav, .nav-toggle, .btn { display: none !important; }
  body { background: white; color: black; }
}
