/* malusis.com -- dark editorial, full-bleed, mobile first.
   One accent, spent on the hero, the state band and the calls to action.
   Every background here is authored CSS; nate.png is the only image. */

:root {
  --ground:     #06151e;   /* the deep ground the page sits on */
  --ground-2:   #0a202c;
  --deep:       #030d13;
  --paper:      #ecefec;   /* light bands, cool rather than cream */
  --paper-2:    #e2e7e3;
  --paper-ink:  #0d171d;
  --paper-soft: #47565f;
  --fg:         #e9f2f5;
  --fg-soft:    #9db2bd;
  --fg-faint:   #6d838f;
  --flare:      #ffb100;   /* the one accent */
  --flare-ink:  #170f00;
  --flare-dim:  #c98a00;
  --line-dark:  rgba(233, 242, 245, .14);
  --line-light: rgba(13, 23, 29, .14);
  --err:        #ff9c8f;
  --display:    "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans:       "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono:       "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Full-bleed decoration must never buy a horizontal scrollbar on a phone. */
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 400 17px/1.65 var(--sans);
  color: var(--fg);
  background: var(--ground);
  overflow-x: hidden;
  /* Room for the mobile call bar, which is fixed over the bottom of the page. */
  padding-bottom: 5.5rem;
}

.wrap {
  width: 100%;
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 4vw, 3.25rem);
}
.wrap.wide { max-width: 92rem; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.022em;
  text-wrap: balance;
  margin: 0 0 .8rem;
}
h1 {
  font-size: clamp(2.75rem, 8.2vw, 6.6rem);
  line-height: .96;
  font-weight: 700;
  margin-bottom: 1.35rem;
}
h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--flare);
}
h2 { font-size: clamp(1.85rem, 4vw, 3.1rem); line-height: 1.05; }
h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -.01em; }
p  { margin: 0 0 1rem; text-wrap: pretty; }
a  { color: var(--flare); text-underline-offset: .18em; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: .95em; letter-spacing: .02em; }

:where(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--flare);
  outline-offset: 3px;
}

/* --- header ------------------------------------------------------------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 21, 30, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 3.6rem;
}
.brand { display: block; text-decoration: none; color: var(--fg); line-height: 1.15; }
.brand-name { display: block; font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.brand-sub {
  display: block; margin-top: .12rem;
  font-size: .64rem; font-weight: 600; letter-spacing: .19em;
  text-transform: uppercase; color: var(--fg-faint);
}
.bar-call {
  color: var(--fg); text-decoration: none; font-weight: 600; font-size: .92rem;
  white-space: nowrap;
  border: 1px solid var(--line-dark); border-radius: 2px;
  padding: .45rem .95rem;
}
.bar-call:hover { border-color: var(--flare); color: var(--flare); }
.bar-call-label {
  color: var(--fg-faint); font-weight: 600;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  font: inherit; font-weight: 700; line-height: 1.2;
  letter-spacing: .005em;
  padding: .95rem 1.6rem; border-radius: 3px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .14s ease, background-color .14s ease, border-color .14s ease;
}
.btn-lg { padding: 1.1rem 2rem; font-size: 1.04rem; }
.btn-primary { background: var(--flare); color: var(--flare-ink); }
.btn-primary:hover { background: #ffc23d; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--flare); color: var(--flare); transform: translateY(-2px); }
.btn-block { display: block; width: 100%; margin-top: .4rem; }
button.btn { -webkit-appearance: none; appearance: none; }
button[disabled] { opacity: .55; cursor: default; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(70rem 38rem at 82% 6%, rgba(255, 177, 0, .16), transparent 62%),
    radial-gradient(55rem 45rem at 2% 96%, rgba(0, 152, 168, .16), transparent 60%),
    linear-gradient(175deg, #071a24 0%, var(--ground) 55%, #04111a 100%);
  padding: clamp(2.75rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 6.5rem);
}
/* Authored hairline grid. No image, no request, and it survives any viewport. */
.hero::before {
  content: "";
  position: absolute; inset: -10%;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(233, 242, 245, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(233, 242, 245, .05) 1px, transparent 1px);
  background-size: 5.5rem 5.5rem;
  mask-image: radial-gradient(60rem 45rem at 30% 20%, #000 25%, transparent 78%);
}
.hero-grid { position: relative; display: grid; gap: clamp(2.25rem, 4vw, 4rem); }

.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  margin: 0 0 1.25rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--flare);
}
.eyebrow-rule { display: block; width: 2.6rem; height: 1px; background: var(--flare); opacity: .8; }

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 36rem;
  margin-bottom: 2rem;
}
.reassure {
  font-size: .95rem; color: var(--fg-faint); max-width: 33rem;
  margin: 0 0 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-actions .btn { flex: 1 1 15rem; }

/* --- NPN credential seal ------------------------------------------------ */
.npn-chip {
  display: inline-flex; align-items: center; gap: .85rem;
  max-width: 100%;
  padding: .8rem 1.1rem;
  border: 1px solid rgba(255, 177, 0, .45);
  border-radius: 3px;
  background: rgba(255, 177, 0, .07);
  color: var(--fg);
  text-decoration: none;
}
.npn-chip:hover { border-color: var(--flare); background: rgba(255, 177, 0, .13); }
.npn-mark { flex: none; width: 1.6rem; height: 1.6rem; color: var(--flare); }
.npn-body { display: block; min-width: 0; }
.npn-label {
  display: block;
  font-size: .62rem; font-weight: 700; letter-spacing: .19em;
  text-transform: uppercase; color: var(--fg-faint);
}
.npn-number {
  display: block;
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.npn-verify {
  margin-left: auto; padding-left: .85rem;
  border-left: 1px solid rgba(255, 177, 0, .32);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--flare);
  white-space: nowrap;
}

/* --- the six states, as a graphic ---------------------------------------- */
.states-band {
  background: var(--flare);
  color: var(--flare-ink);
  padding: clamp(1.75rem, 3.5vw, 3rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
}
.band-label {
  margin: 0 0 1.1rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(23, 15, 0, .62);
}
.states-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid rgba(23, 15, 0, .22);
}
.states-grid li {
  padding: .9rem .25rem .7rem;
  border-bottom: 1px solid rgba(23, 15, 0, .22);
  border-right: 1px solid rgba(23, 15, 0, .22);
  min-width: 0;
}
.states-grid li:nth-child(3n) { border-right: 0; }
.state-abbr {
  display: block;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  line-height: .92;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.state-full {
  display: block; margin-top: .3rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(23, 15, 0, .66);
}

/* --- bands --------------------------------------------------------------- */
.band { padding: clamp(3.25rem, 7vw, 6.5rem) 0; }
.paper-band { background: var(--paper); color: var(--paper-ink); }
.paper-band h2, .paper-band h3 { color: var(--paper-ink); }
.paper-band a { color: #a86f00; }
.dark-band { background: var(--ground-2); }
.deep-band {
  background:
    radial-gradient(50rem 30rem at 90% 0%, rgba(255, 177, 0, .07), transparent 65%),
    var(--deep);
  border-block: 1px solid var(--line-dark);
}

.kicker {
  margin: 0 0 .55rem;
  font-family: var(--mono); font-weight: 500;
  font-size: .8rem; letter-spacing: .22em;
  color: var(--flare);
}
.paper-band .kicker { color: var(--flare-dim); }

.split { display: grid; gap: clamp(1.25rem, 3vw, 3.5rem); align-items: start; }
.split-label h2 { margin-bottom: 0; }
.split-body > :last-child { margin-bottom: 0; }
.big {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -.01em;
}
.section-lede { color: var(--fg-soft); max-width: 40rem; font-size: 1.06rem; }
.paper-band .section-lede { color: var(--paper-soft); }
.pull {
  margin-top: 1.75rem; padding: .35rem 0 .35rem 1.35rem;
  border-left: 3px solid var(--flare);
  font-family: var(--display); font-size: 1.12rem; line-height: 1.5;
  color: var(--paper-soft);
}

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 0 1.4rem 3.75rem;
  border-top: 1px solid var(--line-light);
}
.steps li:last-child { border-bottom: 1px solid var(--line-light); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1.35rem;
  font-family: var(--mono); font-size: .95rem; letter-spacing: .06em;
  color: var(--flare-dim);
}
ul.plain { margin: 0 0 1.5rem; padding: 0; list-style: none; }
ul.plain li {
  position: relative;
  padding: .85rem 0 .85rem 1.6rem;
  border-bottom: 1px solid var(--line-dark);
  color: var(--fg-soft);
}
ul.plain li::before {
  content: ""; position: absolute; left: 0; top: 1.45rem;
  width: .55rem; height: 1px; background: var(--flare);
}

/* --- topics (who I work with) -------------------------------------------- */
.topics {
  display: grid; grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-dark);
}
.topic {
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.topic p { color: var(--fg-soft); font-size: .98rem; margin-bottom: 0; }
.topic-index {
  margin: 0 0 .5rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--flare);
}
.topic-cta {
  background: rgba(255, 177, 0, .08);
  border: 1px solid rgba(255, 177, 0, .3);
  padding: 1.85rem 1.6rem;
}
.topic-cta h3 { color: var(--flare); }
.topic-cta p { margin-bottom: 1rem; }
.topic-cta p:last-child { margin-bottom: 0; }

/* --- form ---------------------------------------------------------------- */
.form-card {
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--flare);
  border-radius: 3px;
  padding: clamp(1.4rem, 2.6vw, 2.1rem);
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  scroll-margin-top: 5rem;
}
.card-title { font-size: 1.4rem; margin-bottom: .35rem; }
.card-note { font-size: .92rem; color: var(--fg-faint); margin-bottom: .25rem; }
.topic-cta .card-note { color: var(--fg-soft); }

form { margin-top: 1.1rem; }
.row { display: flex; gap: .75rem; }
.row > div { flex: 1; min-width: 0; }
label {
  display: block; margin-top: 1rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-soft);
}
.opt { font-weight: 500; letter-spacing: .06em; color: var(--fg-faint); text-transform: none; }
input[type=text], input[type=tel], input[type=email], textarea {
  width: 100%; padding: .8rem .8rem; margin-top: .4rem;
  border: 1px solid rgba(233, 242, 245, .2);
  border-radius: 2px;
  /* 16px minimum: anything smaller makes iOS Safari zoom on focus. */
  font: 16px/1.4 var(--sans);
  background: rgba(3, 13, 19, .55);
  color: var(--fg);
}
input::placeholder, textarea::placeholder { color: var(--fg-faint); }
input:focus, textarea:focus { border-color: var(--flare); }
textarea { resize: vertical; }
/* The honeypot must be unreachable, not merely invisible: display:none alone
   is a pattern bots recognise and skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
label.consent {
  display: flex; gap: .65rem; align-items: flex-start;
  margin-top: 1.25rem;
  font-size: .76rem; font-weight: 400; letter-spacing: 0;
  text-transform: none;
  color: var(--fg-faint); line-height: 1.55;
}
label.consent input {
  flex: none; width: auto; margin-top: .2rem;
  accent-color: var(--flare);
  transform: scale(1.15);
}
.consent-status { margin-top: .8rem; font-size: .9rem; }
.consent-status.err { color: var(--err); }
.ok { color: var(--flare); font-weight: 600; }

/* --- about --------------------------------------------------------------- */
.about-band {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--paper-ink);
}
.about-band h2 { color: var(--paper-ink); }
.about-band a { color: #a86f00; }
.about-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.portrait {
  display: block;
  position: relative;
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background: #d7ddd9;
  box-shadow: 1.1rem 1.1rem 0 var(--flare);
}
.portrait img {
  /* Scaled and nudged so the frame sits on the face, keeping the wall
     behind it out of shot. */
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 40% 16%;
  transform: scale(1.3);
  transform-origin: 40% 16%;
  filter: brightness(1.06) contrast(1.02);
}
.about-copy .big { color: var(--paper-ink); }
.about-copy p { color: var(--paper-soft); }
.about-copy .big strong, .about-copy strong { color: var(--paper-ink); }
.facts { margin: 2rem 0 0; display: grid; gap: 0; }
.facts > div {
  display: grid; gap: .15rem;
  padding: .9rem 0;
  border-top: 1px solid var(--line-light);
}
.facts > div:last-child { border-bottom: 1px solid var(--line-light); }
.facts dt {
  font-size: .64rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--paper-soft);
}
.facts dd { margin: 0; font-size: 1.02rem; color: var(--paper-ink); }

/* --- closing -------------------------------------------------------------- */
.closing {
  background:
    radial-gradient(60rem 34rem at 12% 10%, rgba(255, 177, 0, .13), transparent 62%),
    linear-gradient(180deg, var(--ground) 0%, #04111a 100%);
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
}
.closing-head { font-size: clamp(2rem, 5vw, 3.9rem); }
.closing-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); }
.alt { font-size: .95rem; color: var(--fg-faint); margin-bottom: .4rem; }

/* --- footer --------------------------------------------------------------- */
footer {
  background: var(--deep);
  color: var(--fg-faint);
  border-top: 1px solid var(--line-dark);
  padding: clamp(2.25rem, 4vw, 3.5rem) 0 3rem;
  font-size: .88rem;
}
footer strong { color: var(--fg); font-family: var(--display); font-size: 1.05rem; }
footer a { color: var(--fg-soft); }
.footer-grid { display: grid; gap: 1.5rem; }
.fine { font-size: .78rem; line-height: 1.6; color: #566a75; margin-bottom: 0; max-width: 46rem; }

/* --- mobile call bar ------------------------------------------------------ */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(3, 13, 19, .93);
  border-top: 1px solid var(--line-dark);
  backdrop-filter: blur(10px);
}
.sticky-bar .btn { flex: 1; padding: .85rem .4rem; font-size: .93rem; }

/* --- wider screens -------------------------------------------------------- */
@media (min-width: 40rem) {
  .topics { grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
  .states-grid { grid-template-columns: repeat(6, 1fr); }
  .states-grid li:nth-child(3n) { border-right: 1px solid rgba(23, 15, 0, .22); }
  .states-grid li:last-child { border-right: 0; }
  .facts > div { grid-template-columns: 14rem 1fr; gap: 1rem; align-items: baseline; }
}

@media (min-width: 58rem) {
  /* The form sits beside the pitch, so it is visible without scrolling. */
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(23rem, .75fr); align-items: start; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .topics { grid-template-columns: repeat(3, 1fr); }
  .closing-grid { grid-template-columns: minmax(0, 1.05fr) minmax(23rem, .95fr); align-items: center; }
  .about-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 3rem; }
  .hero-actions .btn { flex: 0 0 auto; }
  /* The phone is in the sticky header on desktop; the bottom bar is a phone thing. */
  .sticky-bar { display: none; }
  body { padding-bottom: 0; }
}

@media (min-width: 88rem) {
  body { font-size: 18px; }
}

@media (max-width: 30rem) {
  .row { display: block; }
  .brand-sub { display: none; }
  .npn-chip { flex-wrap: wrap; gap: .6rem .8rem; }
  .npn-verify { margin-left: 0; padding-left: 0; border-left: 0; }
}

/* --- motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero .form-card {
    animation: rise .7s cubic-bezier(.2, .7, .3, 1) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-copy > :nth-child(6) { animation-delay: .3s; }
  .hero .form-card { animation-delay: .18s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
