/* VoltEdge Pro Systems — voltage-clef + flowing sections */
:root {
  --ink:          #1A1A1A;
  --ink-deep:     #101010;
  --orange:       #E07810;
  --orange-hot:   #E88A1A;
  --orange-deep:  #C06010;
  --paper:        #F7F4EC;
  --paper-2:      #EFEADF;
  --sheet:        #FFFDF8;
  --line:         #E2D9C8;
  --text:         #1A1A1A;
  --muted:        #4A453C;
  --on-dark:      #F8F6F0;
  --on-dark-soft: #E8E2D4;
  --radius:       18px;
  --maxw:         1120px;
  --ease:         cubic-bezier(.22, .61, .36, 1);
  --header-h:     74px;
  --display:      "Abril Fatface", Georgia, "Times New Roman", serif;
  --sans:         "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, .note-idx, .step span, .industry, .kicker {
  font-family: var(--display);
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: break-word;
  font-weight: 400;
}

h3, .kicker, .industry, .note-idx, .step span { font-family: var(--sans); font-weight: 900; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p, li, blockquote { margin: 0; overflow-wrap: break-word; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--orange); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--orange-deep);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn-primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(224, 120, 16, .55);
}
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
}

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(247, 244, 236, .78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(247, 244, 236, .96);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand img {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  flex: 0 0 auto;
}
.brand-name {
  font-family: var(--sans);
  font-size: 16px; font-weight: 900; letter-spacing: .01em;
  white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--orange); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 15px; color: var(--muted); font-weight: 700;
  transition: color .2s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.nav .nav-cta {
  color: var(--ink); border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 999px;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 10px;
  z-index: 110; flex: 0 0 auto;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero + voltage clef ===== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 28px;
  overflow: hidden;
  display: flex; align-items: center;
}
.staff-field {
  position: absolute; inset: 8% -4% 18%;
  width: 108%; height: 74%;
  pointer-events: none; z-index: 0;
}
.staff-field .staff {
  fill: none; stroke: var(--ink); stroke-width: 1.15; opacity: .08;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 28px;
}
.hero-copy { max-width: 620px; min-width: 0; }
.industry {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 900;
  color: var(--orange-deep);
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
}
.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.35rem);
  color: var(--ink);
  max-width: 14ch;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: var(--muted);
  margin: 22px 0 0;
  max-width: 42ch;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-place {
  margin-top: 22px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--muted);
}

.clef-stage {
  display: grid; place-items: center;
  position: relative;
  min-height: 420px;
}
.voltage-clef {
  width: min(380px, 86%);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(26, 26, 26, .12));
}
.clef-draw {
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  animation: drawClef 2.8s var(--ease) forwards;
}
.clef-sine {
  opacity: .7;
  stroke-dasharray: 8 14;
  animation: dashDrift 7s linear infinite;
}
.clef-dot { opacity: 0; animation: popDot .4s ease forwards 2.4s; }
.clef-dot.d2 { animation-delay: 2.6s; }
.clef-caption {
  margin-top: 8px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: var(--muted);
}

@keyframes drawClef { to { stroke-dashoffset: 0; } }
@keyframes dashDrift { to { stroke-dashoffset: -180; } }
@keyframes popDot { to { opacity: 1; } }

/* ===== Flowing ribbon between hero and about ===== */
.flow-break {
  line-height: 0;
  margin: -12px 0 0;
}
.flow-break svg { width: 100%; height: 110px; display: block; }
.flow-break .river {
  fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round;
  opacity: .55;
}
.flow-break .river.thin {
  stroke: var(--ink); stroke-width: 1.4; opacity: .18;
}

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-head { max-width: 720px; margin: 0 0 52px; }
.section-head h2, .bowl h2, .faq-intro h2, .contact-copy h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
}
.lead, .bowl p, .faq-intro p, .contact-copy p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 1.05rem;
}

/* ===== About bowls (asymmetric flowing panels) ===== */
.about-flow {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
}
.bowl {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 40px 36px 36px;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.bowl-left {
  border-radius: 88px 22px 88px 22px;
  margin-top: 8px;
}
.bowl-right {
  border-radius: 22px 88px 22px 88px;
  margin-top: 64px;
  background: var(--ink);
  color: var(--on-dark);
  border-color: transparent;
}
.bowl-right .kicker { color: var(--orange-hot); }
.bowl-left p + p { margin-top: 14px; }
.desk-list { list-style: none; padding: 0; margin: 8px 0 22px; display: grid; gap: 16px; }
.desk-list li { display: grid; gap: 2px; }
.desk-list strong { color: var(--on-dark); font-size: 1.02rem; }
.desk-list span { color: var(--on-dark-soft); font-size: .95rem; }
.bowl-right blockquote {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--on-dark);
  border-top: 1px solid rgba(248, 246, 240, .16);
  padding-top: 18px;
}

/* ===== Practice notes on an S-curve ===== */
.practice { padding-top: 40px; }
.score {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
  min-height: 520px;
}
.score-curve {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.score-curve path {
  fill: none; stroke: var(--orange); stroke-width: 2.4;
  stroke-linecap: round; opacity: .35;
  stroke-dasharray: 12 16;
  animation: dashDrift 18s linear infinite;
}
.note {
  position: relative; z-index: 1;
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 28px 26px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.note.n1 { border-radius: 72px 16px 48px 16px; margin-right: 8%; }
.note.n2 { border-radius: 16px 72px 16px 48px; margin-left: 10%; margin-top: 36px; }
.note.n3 { border-radius: 48px 16px 72px 16px; margin-right: 4%; margin-top: -12px; }
.note.n4 { border-radius: 16px 48px 16px 72px; margin-left: 14%; margin-top: 24px; }
.note-idx {
  display: block;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-deep); margin-bottom: 10px;
}
.note h3 { font-family: var(--display); font-weight: 400; font-size: 1.55rem; margin-bottom: 10px; }
.note p { color: var(--muted); font-size: 1rem; }

/* ===== Dark quote band ===== */
.quote-band {
  background: var(--ink-deep);
  color: var(--on-dark);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: "";
  position: absolute; inset: auto -10% -40% 40%;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(224, 120, 16, .22), transparent 68%);
  pointer-events: none;
}
.quote-inner { max-width: 820px; text-align: center; position: relative; }
.quote-clef { width: 42px; height: auto; margin: 0 auto 22px; display: block; }
.quote-inner blockquote {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  line-height: 1.28;
  color: var(--on-dark);
}
.quote-attr {
  margin-top: 22px;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: var(--on-dark-soft);
}

/* ===== Cadence steps on a flowing arc ===== */
.cadence {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-top: 12px;
}
.cadence-arc {
  position: absolute; left: 0; right: 0; top: 8px;
  width: 100%; height: 90px;
  pointer-events: none;
}
.cadence-arc path {
  fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; opacity: .4;
}
.step {
  position: relative; z-index: 1;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 28px 28px 64px 16px;
  padding: 24px 20px 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.step:nth-child(2) { margin-top: 8px; }
.step:nth-child(3) { margin-top: 48px; }
.step:nth-child(4) { margin-top: 18px; }
.step:nth-child(5) { margin-top: 40px; }
.step span {
  display: block;
  font-size: 12px; letter-spacing: .18em; color: var(--orange-deep);
  margin-bottom: 10px;
}
.step h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .98rem; }

/* ===== FAQ ===== */
.faq-sec { background: var(--paper-2); border-block: 1px solid var(--line); }
.faq-wrap {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: 48px; align-items: start;
}
.faq-intro { position: sticky; top: 100px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--sheet); border: 1px solid var(--line);
  border-radius: 16px 16px 28px 16px;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.faq-item.open { border-color: var(--orange); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink);
  font-family: var(--sans); font-size: 1.05rem; font-weight: 700; padding: 20px 22px;
}
.faq-ico { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--orange); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 280px; }
.faq-a p { color: var(--muted); margin: 0; padding: 0 22px 20px; font-size: .98rem; }

/* ===== Contact ===== */
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.contact-email {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--orange-deep);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s, transform .25s var(--ease);
}
.contact-addr { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.contact-form {
  background: var(--sheet); border: 1px solid var(--line);
  border-radius: 28px 16px 64px 16px;
  padding: 28px; display: grid; gap: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.field { display: grid; gap: 7px; }
.field label {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted);
}
.field input, .field textarea {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  padding: 12px 14px; font: inherit; font-size: 15px; width: 100%; resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(224, 120, 16, .16);
}

/* ===== Footer (dark, near-white text) ===== */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: 56px 0 32px;
}
.site-footer .brand-name { color: var(--on-dark); }
.site-footer .brand img { border-color: rgba(248, 246, 240, .16); }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.footer-tag { color: var(--on-dark-soft); font-size: 1.02rem; max-width: 42ch; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
  color: var(--on-dark-soft); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 700;
  transition: color .2s var(--ease);
}
.footer-bottom {
  display: flex; flex-direction: column; gap: 6px;
  color: var(--on-dark-soft); font-size: 13px;
  margin-top: 8px; padding-top: 22px;
  border-top: 1px solid rgba(248, 246, 240, .14);
  width: 100%; max-width: 560px;
}

/* ===== Reveal — hover transforms MUST come after this ===== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .clef-draw, .clef-sine, .clef-dot, .score-curve path { animation: none; }
  .clef-draw { stroke-dashoffset: 0; }
  .clef-dot { opacity: 1; }
}

/* Hover lift AFTER .reveal.in so lift is not overwritten */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); }
  .nav .nav-cta:hover {
    background: var(--ink); color: var(--on-dark);
    transform: translateY(-2px);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    background: var(--orange-deep);
    box-shadow: 0 14px 32px -10px rgba(192, 96, 16, .65);
  }
  .btn-ghost:hover {
    transform: translateY(-2px);
    background: var(--ink);
    color: var(--on-dark);
  }
  .bowl-left:hover, .note:hover, .step:hover, .contact-form:hover {
    transform: translateY(-6px);
    border-color: var(--orange);
    box-shadow: 0 22px 40px -22px rgba(26, 26, 26, .28);
  }
  .bowl-right:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .45);
  }
  .faq-item:hover { border-color: var(--orange); }
  .faq-q:hover { color: var(--orange-deep); }
  .contact-email:hover { border-bottom-color: var(--orange); color: var(--orange); }
  .footer-nav a:hover { color: var(--on-dark); }
}

@media (hover: none) {
  .btn-primary:active { background: var(--orange-deep); }
  .note:active, .step:active { border-color: var(--orange); }
}

/* ===== Tablet ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 12px; }
  .clef-stage { order: -1; min-height: 0; }
  .voltage-clef { width: min(240px, 58vw); }
  .hero { min-height: 0; padding: calc(var(--header-h) + 24px) 0 12px; }
  .hero h1 { max-width: none; }
  .about-flow, .faq-wrap, .contact-inner { grid-template-columns: 1fr; gap: 22px; }
  .bowl-right { margin-top: 0; }
  .faq-intro { position: static; }
  .cadence { grid-template-columns: 1fr 1fr; }
  .step:nth-child(n) { margin-top: 0; }
  .cadence-arc { display: none; }
  .score { grid-template-columns: 1fr; min-height: 0; }
  .note.n1, .note.n2, .note.n3, .note.n4 {
    margin: 0; border-radius: 28px 16px 48px 16px;
  }
  .score-curve { display: none; }
}

/* ===== Mobile nav + stacking ===== */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(247, 244, 236, .98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 22px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 12px 4px; font-size: 17px; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav .nav-cta { text-align: center; margin-top: 10px; border: 1px solid var(--ink); }
  .header-inner { height: 68px; }
  .section { padding: 64px 0; }
  .quote-band { padding: 68px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .bowl { padding: 28px 22px 24px; }
  .bowl-left, .bowl-right { border-radius: 36px 16px 36px 16px; }
  .contact-form { padding: 22px 18px; border-radius: 22px 12px 40px 12px; }
  .flow-break svg { height: 72px; }
}

@media (max-width: 430px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 88px 0 20px; }
  .hero h1 { font-size: 2.05rem; }
  .hero-sub { font-size: .98rem; }
  .voltage-clef { width: min(200px, 62vw); }
  .clef-caption { font-size: 11px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .cadence { grid-template-columns: 1fr; gap: 14px; }
  .note { padding: 22px 18px 20px; }
  .note h3 { font-size: 1.3rem; }
  .quote-band { padding: 56px 0; }
  .brand-name { font-size: 14px; }
  .footer-nav { gap: 12px 16px; }
}

@media (max-width: 390px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 1.92rem; }
  .hero-sub { font-size: .96rem; }
  .industry { font-size: 11px; }
  .bowl { padding: 22px 16px 20px; }
  .step { padding: 20px 16px 18px; }
}
