/* Hiperch Technologies — Nashville Lot Brief */

:root {
  /* Locked tokens — hiperch-engine/marketing/style-guide.md */
  --paper: #F7F3EA;
  --paper-deep: #EFE8DC;
  --ink: #1A1814;
  --muted: #2A2724;
  --line: #D4CBBA;
  --copper: #C4A574;
  --copper-deep: #B87333;
  --black: #0C0D0E;
  --white: #F3EFE6;
  --danger: #8b2e1f;
  --nav-h: 4.25rem;
  --max: 72rem;
  --prose: 40rem;
  --serif: "News Gothic", "Trade Gothic", Helvetica, Arial, sans-serif;
  --sans: Helvetica, "Nimbus Sans", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

::selection {
  background: #e6d5b3;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.wrap-prose {
  width: min(calc(100% - 2.5rem), var(--prose));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  width: 1.7rem;
  height: auto;
  color: var(--copper-deep);
}

.logo-type {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.18rem;
}

.logo-name {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.logo-sub {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--copper-deep);
}

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

.nav a {
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.nav a:hover,
.nav a.is-active {
  color: var(--copper-deep);
}

.nav-cta {
  margin-left: 0.35rem;
  color: var(--white);
}

.nav a.btn,
.nav a.btn:hover,
.nav a.btn.is-active {
  color: var(--white);
}

.menu-btn {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 1.15rem;
  height: 1px;
  margin: 0.28rem auto;
  background: var(--ink);
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  background: #2a2723;
  color: var(--white);
}

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

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

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

.hero {
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}

.kicker {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.4vw, 3.55rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
}

.cover {
  background: var(--black);
  color: var(--white);
  min-height: 28rem;
  padding: 1.6rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 50px rgba(14, 14, 14, 0.18);
}

.cover-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cover-mark {
  width: 2.1rem;
  height: auto;
  color: var(--copper);
}

.cover-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.cover-sub {
  margin-top: 0.2rem;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--copper);
}

.cover-rule {
  height: 1px;
  background: var(--copper);
  margin-top: 0.7rem;
  max-width: 11rem;
}

.cover-body {
  padding: 2.5rem 0 3rem;
}

.cover-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}

.cover h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
}

.cover-meta {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--copper);
}

.cover-lede {
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
  color: var(--white);
}

.cover-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--copper);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

/* ----- Sections ----- */

section {
  padding: 4.75rem 0;
  border-bottom: 1px solid var(--line);
}

.section-label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

h2 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.prose p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

/* Brief contents */

.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.item-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.num {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--copper-deep);
}

.item-list .title {
  font-size: 1.05rem;
  font-weight: 500;
}

.closer {
  margin: 1.5rem 0 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.4;
}

/* Sample */

.sample-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.sample-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem 1.5rem 1.25rem;
}

.sample-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
}

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

.sample-rows {
  margin: 0 0 1.35rem;
  border-top: 1px solid var(--line);
}

.sample-rows div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.sample-rows dt {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.sample-rows dd {
  margin: 0;
  font-weight: 500;
}

/* Who */

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

.who-list li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.who-list li:first-child {
  border-top: 1px solid var(--line);
}

.who-list .who-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* How */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 0.85rem;
  border-top: 1px solid var(--copper);
}

.steps p {
  margin: 0.55rem 0 0;
  font-size: 1.02rem;
}

.whitelabel {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  background: var(--paper-deep);
  border-left: 2px solid var(--copper);
}

.whitelabel p {
  margin: 0;
}

/* Pricing */

.price-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: end;
}

.price {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8vw, 5.5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.price span {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.price-copy p {
  margin: 0 0 0.65rem;
}

.price-copy p:last-child {
  margin-bottom: 0;
}

/* Not */

.not-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.not-list li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}

.not-list li:nth-child(-n + 2) {
  border-top: 1px solid var(--line);
}

/* Area */

.area-copy p {
  margin: 0 0 1rem;
  max-width: 40rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}

.email-block a {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
}

.email-block a:hover {
  color: var(--copper-deep);
}

.form {
  display: grid;
  gap: 0.9rem;
}

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

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0;
  appearance: none;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-ok {
  color: var(--ink);
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
}

.site-footer p {
  margin: 0;
  max-width: 42rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.app-stub {
  padding: 4.5rem 0 6rem;
}

.app-stub .lede {
  max-width: 36rem;
}

.app-stub code {
  font-size: 0.9em;
}

/* ----- Mobile nav panel ----- */

.nav-panel-close {
  display: none;
}

@media (max-width: 980px) {
  .menu-btn {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.28s var(--ease);
  }

  .nav.is-open {
    transform: none;
  }

  .nav a,
  .nav .btn {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    border-radius: 0;
  }

  .nav-cta {
    margin: 1.25rem 0 0;
    width: 100%;
  }

  .nav .btn {
    justify-content: center;
    border: 1px solid var(--black);
  }

  .nav-panel-close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .sample-grid,
  .contact-grid,
  .price-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding: 2.75rem 0 3rem;
  }

  .cover {
    min-height: 22rem;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .not-list {
    grid-template-columns: 1fr;
  }

  .not-list li:nth-child(-n + 2) {
    border-top: 0;
  }

  .not-list li:first-child {
    border-top: 1px solid var(--line);
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3.25rem 0;
  }

  .wrap,
  .wrap-prose {
    width: min(calc(100% - 1.75rem), var(--max));
  }
}

@media (max-width: 540px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .sample-card .btn {
    width: 100%;
  }

  .sample-rows div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
