/* =========================================================
   !WackySolutions LLC — site styles
   Editorial layout: flat light ground, hairline rules,
   vertical rails, one oversized serif page mark per page.
   Everything tunable lives in :root.
   ========================================================= */

:root {
  /* Ground — flat, light, no gradients */
  --paper:     #E4E4E1;
  --paper-2:   #EDEDEA;
  --panel:     #F3F3F0;

  /* Ink */
  --ink:       #141312;
  --ink-2:     #3C3A38;
  --ink-3:     #6E6B67;

  /* Hairlines */
  --rule:      #B4B3AE;
  --rule-soft: #CBCAC5;

  /* The one accent — gold.
     --accent is the bright mark: fills, bullets, buttons, big graphics.
     --accent-text is the same hue darkened for anything set as text, so it
     stays legible on the light ground (gold at full brightness is only
     about 1.9:1 against --paper, which is unreadable at body sizes).
     --error is functional only, for failed form submissions. */
  --accent:      #D4A017;
  --accent-text: #7E5B07;
  --error:       #A32014;

  /* Type */
  --display: "Bodoni Moda", "Times New Roman", Times, serif;
  --sans:    "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --rail:   58px;
  --shell:  1320px;
  --gutter: clamp(1.15rem, 3vw, 2.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.975rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); }

/* Condensed uppercase headlines */
.kicker, h2, h3 {
  font-family: var(--sans);
  font-stretch: 78%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.06;
  text-wrap: balance;
}
.kicker { font-size: clamp(1.5rem, 2.7vw, 2.35rem); max-width: 17ch; }
h2 { font-size: clamp(1.35rem, 2.3vw, 2rem); }
h3 { font-size: 1rem; letter-spacing: 0.02em; }
h4 { font-family: var(--sans); font-stretch: 88%; font-weight: 700; font-size: 0.95rem; }

.hot { color: var(--accent-text); }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }
.lede { font-size: 1.06rem; line-height: 1.55; color: var(--ink); max-width: 48ch; }

.label {
  font-family: var(--sans);
  font-stretch: 82%;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

/* Justified micro column, like the reference's intro block */
.micro {
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: justify;
  hyphens: auto;
  color: var(--ink-2);
  max-width: 30ch;
}
.micro::before {
  content: "!";
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5em;
  line-height: 0.7;
  vertical-align: -0.06em;
  color: var(--accent);
  margin-right: 0.4em;
}

/* ---------- Shell ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; color: #fff; }

/* ---------- Left rail ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  border-right: 1px solid var(--rule);
  background: var(--paper);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  z-index: 50;
}
.rail-glyph { display: flex; flex-direction: column; gap: 4px; }
.rail-glyph span { display: block; width: 20px; height: 1px; background: var(--ink); }
.rail-brand {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-stretch: 82%;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.rail-brand:hover { color: var(--accent-text); }
.asterisk { width: 15px; height: 15px; fill: var(--accent); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  font-stretch: 82%;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.brand-suffix { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.18em; color: var(--ink-3); }

.nav-list { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav-link {
  font-stretch: 82%;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  padding: 0.4rem 0.7rem;
  font-family: var(--sans);
  font-stretch: 82%;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.hero-tall { min-height: calc(100svh - 57px); }

/* Faint vertical column rules, fading downward */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to right, var(--rule-soft) 0 1px, transparent 1px calc(100% / 8));
  mask-image: linear-gradient(to bottom, #000 0%, transparent 46%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 46%);
  pointer-events: none;
}
.hero-top {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30ch);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2rem, 5vw, 3.25rem) clamp(2.5rem, 6vw, 4rem);
}
.hero-head { align-self: center; padding-top: clamp(0.5rem, 4vw, 3rem); }
.hero-head .label { margin-bottom: 0.9rem; }
.hero-head .lede { margin-top: 1.1rem; }

/* The page mark: one oversized serif word, cropped by the hero edge */
.markrow { position: relative; display: flex; align-items: flex-end; }
.pagemark {
  flex: 1;
  min-width: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--mark-size, 22vw);
  line-height: 0.72;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: -0.03em;
  user-select: none;
}
.pagemark .hot { color: var(--accent); } /* giant: brightness is fine at this scale */
.pagemark > .pm-inner { display: inline-block; }

/* Vertical tabs at the right edge of the mark row */
.stack { display: flex; align-self: stretch; }
.stack a {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 46px;
  padding-block: 1.1rem;
  border-left: 1px solid var(--rule);
  background: var(--paper-2);
  text-decoration: none;
  transition: background 0.18s ease;
}
.stack a:last-child { border-right: 1px solid var(--rule); }
.stack a:hover { background: var(--panel); }
.stack span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-stretch: 80%;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.stack a:hover span { color: var(--accent-text); }

/* Horizontal fallback for those tabs on small screens */
.stack-flat { display: none; flex-wrap: wrap; gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); }
.stack-flat a {
  flex: 1 1 200px; background: var(--paper-2); padding: 0.85rem 1rem; text-decoration: none;
  font-stretch: 82%; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
}
.stack-flat a:hover { color: var(--accent-text); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.75rem, 6vw, 4.75rem); border-top: 1px solid var(--rule); }
.section-flush { border-top: 0; }
.section-tint { background: var(--paper-2); }

.split {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: clamp(1.25rem, 3.5vw, 3rem);
  align-items: start;
}
.split-label { align-self: stretch; }
.split-label .label { position: sticky; top: 80px; }
.split-body > * + * { margin-top: 1.4rem; }

/* ---------- Buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.35rem; margin-top: 1.9rem; }
.btn {
  display: inline-flex;
  align-items: center;
  font-stretch: 82%;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.tel-link {
  font-stretch: 82%;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.tel-link:hover { color: var(--accent-text); border-bottom-color: var(--accent); }

/* ---------- Lists ---------- */
.mark-list { list-style: none; margin: 1.2rem 0 0; padding: 0; max-width: 58ch; }
.mark-list li {
  position: relative;
  padding-left: 1.5rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-2);
}
.mark-list li:last-child { border-bottom: 0; }
.mark-list li::before {
  content: "!";
  position: absolute; left: 0; top: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent-text);
}

/* ---------- Panels ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.card { background: var(--panel); padding: clamp(1.2rem, 2.2vw, 1.7rem); }
.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.9rem; }
.card-tag {
  display: block;
  font-stretch: 82%;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.85rem;
}

/* ---------- Services ---------- */
.service { border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 5vw, 4rem); }
.service-head { max-width: 46ch; }
.service-head h2 { margin-bottom: 0.6rem; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.2rem, 2.6vw, 2.2rem);
  margin-top: 2.2rem;
}
.detail { border-top: 2px solid var(--ink); padding-top: 0.8rem; }
.detail h4 { margin-bottom: 0.35rem; }
.detail p { font-size: 0.9rem; margin: 0; }

/* ---------- Engagement tiers ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2rem;
}
.tier { background: var(--panel); padding: clamp(1.2rem, 2.2vw, 1.7rem); }
.meter { display: flex; gap: 4px; margin-bottom: 0.95rem; }
.meter span { width: 28px; height: 4px; background: #C6C5C0; }
.meter span.on { background: var(--accent); }
.tier h3 { margin-bottom: 0.45rem; }
.tier p { font-size: 0.9rem; }
.meter-caption {
  display: block;
  margin-top: 0.9rem;
  font-stretch: 82%;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Pull quote ---------- */
.pull {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 20ch;
  margin-block: 1.75rem;
}
.split-body > .pull:first-child { margin-top: 0; }
.pull .hot { color: var(--accent-text); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-block + .contact-block { margin-top: 1.75rem; }
.contact-block .label { margin-bottom: 0.35rem; }
.contact-block address { font-style: normal; font-size: 1rem; line-height: 1.65; color: var(--ink); }

.form-card { background: var(--panel); border: 1px solid var(--rule); padding: clamp(1.35rem, 2.6vw, 2rem); }
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-stretch: 82%;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.35rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.65rem 0.75rem;
}
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  background: #fff; border-color: var(--accent-text); outline: none;
}
.field-hint { font-size: 0.7rem; color: var(--ink-3); margin-top: 0.35rem; }
.honeypot { position: absolute; left: -9999px; }
.form-status {
  font-size: 0.8rem; line-height: 1.55; margin-top: 0.9rem;
  padding: 0.7rem 0.85rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2);
}
.form-status[hidden] { display: none; }
.form-status.is-error { border-color: var(--error); color: var(--error); }
.form-status.is-ok { border-color: var(--ink); color: var(--ink); }

/* ---------- Legal ---------- */
.legal { max-width: 66ch; }
.legal h2 { font-size: clamp(1.05rem, 1.7vw, 1.25rem); margin-top: 2.5rem; margin-bottom: 0.6rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { padding-left: 1.1rem; max-width: 62ch; color: var(--ink-2); }
.legal li { margin-bottom: 0.4rem; }

/* ---------- Closing band ---------- */
.band { border-top: 1px solid var(--rule); background: var(--paper-2); padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.band-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: end; justify-content: space-between; }
.band h2 { max-width: 14ch; font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: clamp(2.25rem, 4vw, 3rem) 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.5rem, 3.5vw, 3rem); }
.footer-grid address { font-style: normal; font-size: 0.9rem; line-height: 1.7; color: var(--ink-2); }
.footer-list { list-style: none; margin: 0.7rem 0 0; padding: 0; }
.footer-list li { margin-bottom: 0.4rem; }
.footer-list a, .footer-grid address a {
  font-size: 0.9rem; color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-list a:hover, .footer-grid address a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem); padding-top: 1.1rem; border-top: 1px solid var(--rule);
  font-stretch: 82%; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Reveal (hidden state only applies when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 1000px) {
  .rail { display: flex; }
  body { padding-left: var(--rail); }
}

@media (max-width: 999px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-note { grid-row: 2; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 0.8rem; }
  .split-label .label { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-block; }
  .nav-list {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--rule);
    padding: 0.4rem var(--gutter) 0.9rem;
  }
  .nav-list.is-open { display: flex; }
  .nav-link { padding-block: 0.7rem; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-tall { min-height: 0; }
  .pagemark { font-size: var(--mark-size-sm, 26vw); }
  .stack { display: none; }
  .stack-flat { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
