/* Energy Skin — First Principles Building
   Architectural warm-charcoal palette; mobile-first */

:root {
  --bg: #1a1814;
  --bg-elevated: #221f1a;
  --bg-alt: #141210;
  --surface: #2a2620;
  --surface-hover: #322e27;
  --border: rgba(232, 220, 200, 0.12);
  --border-strong: rgba(232, 220, 200, 0.22);
  --text: #f0ebe3;
  --text-muted: #a89f91;
  --text-soft: #7a7268;
  --accent: #c4a574;
  --accent-soft: rgba(196, 165, 116, 0.15);
  --accent-hover: #d4b88a;
  --focus: #e8c99a;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --narrow: min(680px, 100%);
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(26, 24, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.logo:hover {
  color: inherit;
}

.logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--accent) 0%, #8a6f45 100%);
  border-radius: 2px;
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(26, 24, 20, 0.45);
  border-radius: 1px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.logo-product {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.logo-company {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.nav-toggle-icon {
  width: 1rem;
  height: 0.7rem;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: var(--bg) !important;
}

@media (max-width: 799px) {
  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .nav-list li:last-child {
    border-bottom: none;
    padding-top: 0.5rem;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 0.25rem;
  }

  .nav-cta {
    display: inline-block;
    text-align: center;
  }
}

@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.btn-block {
  width: 100%;
}

/* Typography & sections */
.eyebrow,
.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-label.light {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 500;
  color: var(--text);
}

h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 5.5vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 38rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.narrow p {
  color: var(--text-muted);
}

.narrow p + p {
  margin-top: 1rem;
}

.narrow strong {
  color: var(--text);
  font-weight: 600;
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5rem) 0 0;
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.95fr;
    align-items: start;
    gap: 3rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.hero-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--border) 60%, transparent);
  opacity: 0.6;
}

.hero-visual {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.hero-product {
  margin: 0;
}

.product-img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: #f5f2eb;
  box-shadow: var(--shadow);
}

.full-figure {
  margin: 0 0 2.5rem;
}

.full-figure .product-img {
  background: #f7f5f0;
}

.full-figure figcaption {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 42rem;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.panel-card-compact {
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: none;
}

.panel-facts-compact {
  gap: 0.75rem;
}

.panel-facts-compact div {
  padding-bottom: 0.75rem;
}

.panel-facts-compact dd {
  font-size: 0.92rem;
}

.panel-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.panel-facts {
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.panel-facts div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.panel-facts div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.panel-facts dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.panel-facts dd {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

/* Trio cards */
.trio {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .trio {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.trio-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.6rem;
}

.section-alt .trio-card {
  background: var(--surface);
}

.trio-num {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.trio-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Why it wins */
.why-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

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

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
}

.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.why-card strong {
  color: var(--text);
}

.estimate-note {
  margin: 0 0 1.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.why-card em,
.panel-facts dd em {
  font-style: italic;
  color: var(--text-soft);
  font-size: 0.9em;
}

.contrast-strip {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (min-width: 700px) {
  .contrast-strip {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 2rem;
    padding: 2rem 2.25rem;
  }
}

.contrast-divider {
  width: 1px;
  background: var(--border-strong);
  align-self: stretch;
  display: none;
}

@media (min-width: 700px) {
  .contrast-divider {
    display: block;
  }
}

.contrast-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-family: var(--font-sans);
}

.contrast-label.accent {
  color: var(--accent);
}

.contrast-col p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Who */
.check-list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  font-size: 1rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 1px;
}

.credibility-note {
  margin-top: 2rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem !important;
  color: var(--text-soft) !important;
}

/* CTA */
.cta-section {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, var(--accent-soft), transparent 55%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
}

.cta-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.cta-copy .section-label {
  margin-bottom: 0.75rem;
}

.cta-copy p {
  color: var(--text-muted);
}

.contact-channels {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.channel-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
}

.channel-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  word-break: break-word;
}

.channel-link:hover {
  color: var(--accent-hover);
}

a.channel-link:hover {
  color: var(--accent-hover);
}

span.channel-link:hover {
  color: var(--text);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 500px) {
  .contact-form {
    padding: 1.75rem;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.optional {
  font-weight: 400;
  color: var(--text-soft);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color 0.2s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-soft);
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(232, 220, 200, 0.35);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Footer */
.showcase-section { background: var(--bg); }
.showcase-group { margin-top: 3rem; }
.showcase-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border-strong); margin-bottom: 1rem; }
.showcase-heading span { color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.showcase-heading p { color: var(--text-muted); font-size: .92rem; margin: 0 0 .75rem; max-width: 36rem; text-align: right; }
.showcase-grid { display: grid; gap: 1rem; }
.showcase-grid-single { max-width: 760px; }
.showcase-card { margin: 0; background: var(--bg-elevated); border: 1px solid var(--border); overflow: hidden; border-radius: var(--radius-lg); }
.showcase-card a { display: block; background: #111; }
.showcase-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; transition: transform .35s var(--ease); }
.showcase-card a:hover img { transform: scale(1.025); }
.showcase-card figcaption { display: grid; gap: .2rem; padding: 1rem 1.2rem 1.2rem; }
.showcase-card figcaption strong { color: var(--text); font-size: 1rem; }
.showcase-card figcaption span { color: var(--text-muted); font-size: .875rem; line-height: 1.5; }
.showcase-grid-details .showcase-card:nth-child(2) img { object-fit: contain; }
.showcase-grid-details .showcase-card:nth-child(3) img { object-fit: contain; aspect-ratio: 3 / 2; }
.showcase-note { margin: 2rem 0 0; color: var(--text-muted); font-size: .82rem; max-width: 55rem; border-left: 2px solid var(--accent); padding-left: 1rem; }
@media (min-width: 680px) { .showcase-grid-pair { grid-template-columns: repeat(2, minmax(0,1fr)); } .showcase-grid-details { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .showcase-grid-details { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 679px) { .showcase-heading { display: block; } .showcase-heading p { text-align: left; margin-top: .35rem; } }

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: grid;
  gap: 0.65rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    text-align: left;
  }
}

.footer-brand {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--accent);
}

.footer-sep {
  margin: 0 0.5rem;
  color: var(--text-soft);
}

.footer-mail {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}
