/* HAMBE A.D. editorial identity
   Warm paper, black type, quiet rules, and operational proof. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/inter-var.woff2?v=1") format("woff2");
}

:root {
  color-scheme: light !important;
  --ground: #f4eddf !important;
  --paper: #f4eddf !important;
  --paper-deep: #e9decc !important;
  --panel: #efe5d5 !important;
  --panel-2: #e8dcc9 !important;
  --card: #efe5d5 !important;
  --card-2: #e8dcc9 !important;
  --white: #fbf7ef !important;
  --ink: #17130f !important;
  --ink-2: #61594f !important;
  --ink-soft: #61594f !important;
  --muted: #696056 !important;
  --dim: #8b8174 !important;
  --line: #cbbda8 !important;
  --line-soft: rgba(23, 19, 15, .12) !important;
  --line-dark: #403a33 !important;
  --accent: #17130f !important;
  --accent-2: #17130f !important;
  --accent2: #f4eddf !important;
  --accent-deep: #17130f !important;
  --accent-soft: rgba(23, 19, 15, .08) !important;
  --accent-faint: rgba(23, 19, 15, .08) !important;
  --btn-ink: #f4eddf !important;
  --button-ink: #f4eddf !important;
  --dark: #17130f !important;
  --dark-2: #211c17 !important;
  --shadow: none !important;
  --good: #486a51 !important;
  --ok: #6d9275 !important;
  --warn: #9a6b31 !important;
  --bad: #a35549 !important;
}

* {
  scrollbar-color: #a99b88 #ece2d2;
}

html {
  background: var(--ground) !important;
  color-scheme: light !important;
  scroll-padding-top: 86px;
}

body,
body[data-industry] {
  min-height: 100vh;
  margin: 0;
  padding-top: 0 !important;
  color: var(--ink) !important;
  background:
    radial-gradient(circle at 82% 2%, rgba(255, 255, 255, .38), transparent 31rem),
    linear-gradient(180deg, #f7f1e6 0, var(--ground) 38rem) !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(1rem, .25vw + .95rem, 1.075rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(23, 19, 15, .42);
  text-underline-offset: 4px;
}

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

:focus-visible {
  outline: 2px solid var(--ink) !important;
  outline-offset: 4px;
}

.wrap {
  width: min(100% - clamp(34px, 7vw, 94px), 1180px) !important;
  max-width: 1180px !important;
  margin-inline: auto;
  padding-inline: 0 !important;
}

.bg-topo,
.gw-honeycomb-field,
.pixel-field {
  display: none !important;
}

.mono,
.eyebrow,
.tag,
.num,
.crumbs,
.metric span,
.footer-links,
.seo-footer-links,
.artifact-label,
.section-kicker {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Masthead */
.nav,
.site-nav {
  position: sticky !important;
  inset: 0 auto auto !important;
  z-index: 100;
  width: 100% !important;
  transform: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: rgba(247, 241, 230, .94) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav::after,
.site-nav::after {
  display: none !important;
}

.nav-in,
.nav-inner {
  min-height: 76px !important;
}

.wordmark,
.brand {
  display: inline-flex;
  align-items: baseline !important;
  gap: 0 !important;
  color: var(--ink) !important;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif !important;
  font-size: clamp(1.22rem, 1.6vw, 1.48rem) !important;
  font-weight: 400 !important;
  letter-spacing: .045em !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap;
}

.wordmark .mark,
.brand-mark,
svg.mark,
span.mark {
  display: none !important;
}

.wordmark .hq {
  color: inherit !important;
}

.nav-links,
.concept-switch {
  gap: clamp(5px, 1vw, 16px) !important;
  font-family: "Inter", sans-serif !important;
}

.nav-links a:not(.btn):not(.button),
.concept-switch a {
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
  padding: 9px 4px !important;
  color: var(--muted) !important;
  background: transparent !important;
  font-family: "Inter", sans-serif !important;
  font-size: .69rem !important;
  font-weight: 650 !important;
  letter-spacing: .105em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
}

.nav-links a:not(.btn):not(.button):hover,
.nav-links a:not(.btn):not(.button):focus-visible,
.nav-links a[aria-current="page"],
.concept-switch a:hover,
.concept-switch a[aria-current="page"] {
  border-bottom-color: var(--ink) !important;
  color: var(--ink) !important;
}

.nav-links .login {
  color: var(--ink) !important;
}

.menu-btn,
.menu-button {
  display: none;
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  padding: 8px 12px !important;
  color: var(--ink) !important;
  background: transparent !important;
  font: 700 .68rem/1 "Inter", sans-serif !important;
  letter-spacing: .1em !important;
  text-transform: uppercase;
}

/* Buttons */
.btn,
.button {
  display: inline-flex !important;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  padding: 11px 19px !important;
  color: var(--ground) !important;
  background: var(--ink) !important;
  box-shadow: none !important;
  font: 700 .7rem/1 "Inter", sans-serif !important;
  letter-spacing: .095em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: background-color .2s ease, color .2s ease, transform .2s ease !important;
}

.btn:hover,
.button:hover {
  color: var(--ink) !important;
  background: transparent !important;
  filter: none !important;
  transform: translateY(-2px);
}

.btn-ghost,
.button-ghost {
  color: var(--ink) !important;
  background: transparent !important;
}

.btn-ghost:hover,
.button-ghost:hover {
  color: var(--ground) !important;
  background: var(--ink) !important;
}

.btn-lg {
  min-height: 50px;
  padding-inline: 24px !important;
}

/* Editorial typography */
.display,
h1,
h2,
h3,
.hero h1,
.hero-inner h1,
.page-hero h1,
.section h2,
.section h3,
.section-head h2,
.evidence-heading h2,
.field-visuals-head h2,
.contact-grid h2,
.manifesto blockquote,
.cta-band h3,
.callout h2,
.founder-card h3 {
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif !important;
  font-weight: 400 !important;
  letter-spacing: -.025em !important;
}

.display em,
.hero h1 em,
.page-hero h1 em,
.hero-inner h1 em {
  color: var(--ink) !important;
  font-style: italic !important;
  font-weight: 400 !important;
}

.eyebrow,
.kicker,
.section-kicker,
.artifact-label {
  display: flex !important;
  align-items: center;
  gap: 12px;
  color: var(--ink) !important;
  font-size: .67rem !important;
  font-weight: 700 !important;
  letter-spacing: .15em !important;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before,
.section-kicker::before {
  content: "";
  display: block !important;
  width: 28px !important;
  height: 1px !important;
  flex: 0 0 28px !important;
  background: var(--ink) !important;
}

.eyebrow::after {
  display: none !important;
}

.lede,
.hero-copy,
.section-head p.sub,
.section-head > p:last-child,
.contact-grid .pitch {
  color: var(--muted) !important;
  font-size: clamp(1.02rem, .35vw + .94rem, 1.17rem) !important;
  line-height: 1.72 !important;
}

/* First viewport */
.hero,
.page-hero {
  position: relative;
  overflow: clip;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
}

.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after {
  display: none !important;
}

.hero-in {
  min-height: min(790px, calc(100svh - 76px));
  padding-block: clamp(76px, 9vw, 128px) !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr) !important;
  gap: clamp(54px, 7vw, 102px) !important;
  align-items: center;
}

.hero h1,
.hero-inner h1 {
  max-width: 10.8ch !important;
  margin: 22px 0 25px !important;
  color: var(--ink) !important;
  font-size: clamp(3.7rem, 7.4vw, 7rem) !important;
  line-height: .91 !important;
  text-wrap: balance;
}

.hero .lede {
  max-width: 38em !important;
}

.hero-cfo {
  max-width: 39em !important;
  margin-top: 22px !important;
  padding: 17px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  color: var(--muted) !important;
}

.hero-cfo strong {
  color: var(--ink) !important;
  font-weight: 650;
}

.hero-ctas,
.hero-actions {
  margin-top: 30px;
  gap: 11px !important;
}

.page-hero {
  padding-block: clamp(84px, 11vw, 150px) clamp(60px, 7vw, 94px) !important;
}

.page-hero h1 {
  max-width: 15ch !important;
  margin: 22px 0 20px !important;
  font-size: clamp(3.15rem, 7vw, 6.7rem) !important;
  line-height: .94 !important;
}

.page-hero .lede {
  max-width: 44em !important;
}

.crumbs {
  margin-bottom: 32px !important;
  color: var(--dim) !important;
  font-size: .66rem !important;
  letter-spacing: .1em !important;
  text-transform: uppercase;
}

/* Sections */
.section {
  border-top: 1px solid var(--line-soft) !important;
  padding-block: clamp(74px, 9vw, 126px) !important;
  background: transparent !important;
}

.section-soft {
  background: rgba(206, 190, 166, .16) !important;
}

.section-head {
  margin-bottom: clamp(38px, 6vw, 68px) !important;
}

.section-head h2,
.section h2,
.h2,
.field-visuals-head h2 {
  max-width: 18ch !important;
  margin-top: 17px !important;
  color: var(--ink) !important;
  font-size: clamp(2.45rem, 5vw, 4.9rem) !important;
  line-height: .98 !important;
  text-wrap: balance;
}

.section h3,
.card h3,
.svc h3,
.step h3,
.price-card h3,
.principle h3 {
  color: var(--ink) !important;
  font-size: clamp(1.28rem, 1.7vw, 1.72rem) !important;
  line-height: 1.08 !important;
}

.prose {
  max-width: 69ch !important;
  color: var(--muted) !important;
  font-size: clamp(1.04rem, .28vw + .98rem, 1.17rem) !important;
  line-height: 1.83 !important;
}

.prose strong {
  color: var(--ink) !important;
}

/* Cards and structured content */
.svc,
.card,
.step,
.price-card,
.fit-card,
.about-card,
.contact-form,
.portal-card,
.login-card,
.dcard,
.quiz,
.metric,
.principle,
.care-strip,
.cta-band,
.founder-card,
.callout {
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  color: var(--ink) !important;
  background: rgba(244, 237, 223, .48) !important;
  box-shadow: none !important;
}

.svc,
.card,
.price-card,
.fit-card,
.about-card,
.portal-card,
.login-card,
.dcard,
.principle {
  padding: clamp(24px, 3vw, 36px) !important;
}

.svc::before,
.svc::after,
.card::before,
.price-card::before,
.fit-card::before,
.about-card::before,
.portal-card::before,
.step::before,
.care-strip::before {
  display: none !important;
}

.svc:hover,
.card:hover,
.price-card:hover {
  border-color: var(--ink) !important;
  transform: translateY(-3px);
}

.svc-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.svc-grid .svc,
.svc-grid .svc:nth-child(4),
.svc-grid .svc:nth-child(5) {
  grid-column: auto !important;
}

.svc .tag,
.card .tag,
.step .num,
.price-card .tag,
.principle .tag,
.metric span {
  color: var(--ink) !important;
  font: 700 .64rem/1.3 "Inter", sans-serif !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}

.svc p,
.card p,
.step p,
.price-card .blurb,
.price-card li,
.principle p,
.care-strip p,
.metric span,
.honesty,
.note,
.callout p {
  color: var(--muted) !important;
}

.price-card.featured {
  border: 2px solid var(--ink) !important;
}

.price-card .amount,
.care-strip .amount,
.metric strong {
  color: var(--ink) !important;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif !important;
  font-weight: 400 !important;
}

.step {
  border-width: 1px 0 0 !important;
  padding: 19px 0 0 !important;
  background: transparent !important;
}

.note {
  border: 0 !important;
  border-left: 1px solid var(--ink) !important;
  background: transparent !important;
}

.callout {
  border-left: 5px solid var(--ink) !important;
}

.cta-band,
.care-strip,
.founder-card {
  padding: clamp(28px, 4.5vw, 56px) !important;
}

.care-strip + .care-strip {
  margin-top: 14px !important;
}

.cta-band {
  background: var(--ink) !important;
}

.cta-band h3,
.cta-band p {
  color: var(--ground) !important;
}

.cta-band .btn,
.cta-band .button {
  border-color: var(--ground) !important;
  color: var(--ink) !important;
  background: var(--ground) !important;
}

.cta-band .btn:hover,
.cta-band .button:hover {
  color: var(--ground) !important;
  background: transparent !important;
}

/* Manifesto */
.manifesto,
.manifesto-first {
  background: var(--ink) !important;
}

.manifesto .eyebrow,
.manifesto .eyebrow::before {
  color: var(--ground) !important;
}

.manifesto .eyebrow::before {
  background: var(--ground) !important;
}

.manifesto blockquote {
  max-width: 25ch !important;
  color: var(--ground) !important;
  font-size: clamp(2.15rem, 4.5vw, 4.5rem) !important;
  line-height: 1.03 !important;
}

.manifesto blockquote span {
  color: #bdb2a1 !important;
}

/* Hero diagnostic: a single dark proof object on paper */
.audit {
  --ink: #f7f0e3 !important;
  --ink-2: #cbc0ae !important;
  --muted: #b3a795 !important;
  --dim: #8e8373 !important;
  --line: rgba(247, 240, 227, .22) !important;
  --line-soft: rgba(247, 240, 227, .11) !important;
  --accent: #f7f0e3 !important;
  --accent2: #f7f0e3 !important;
  --ground: #17130f !important;
  overflow: hidden;
  border: 1px solid #17130f !important;
  border-radius: 0 !important;
  color: var(--ink) !important;
  background: #17130f !important;
  box-shadow: 16px 18px 0 rgba(92, 76, 57, .11) !important;
}

.audit::before {
  opacity: .3;
  background-image: linear-gradient(rgba(247,240,227,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(247,240,227,.035) 1px, transparent 1px) !important;
  background-size: 22px 22px !important;
}

.audit-head,
.audit-foot {
  border-color: var(--line-soft) !important;
  color: var(--ink-2) !important;
  background: #211c17 !important;
}

.audit-body {
  color: var(--ink) !important;
  background: transparent !important;
}

.audit .flow-node {
  border-color: var(--line) !important;
  background: #211c17 !important;
}

.audit .flow-node:last-child {
  border-color: var(--ink) !important;
  background: #2c251e !important;
}

.audit-next {
  border-color: var(--ink) !important;
  color: var(--ink) !important;
  background: transparent !important;
}

.audit-pixels {
  display: none !important;
}

/* Operational evidence: black editorial insert */
.evidence-layer {
  --ground: #17130f !important;
  --ink: #f4eddf !important;
  --muted: #c4b8a6 !important;
  --dim: #968a78 !important;
  --line: rgba(244, 237, 223, .24) !important;
  --line-soft: rgba(244, 237, 223, .12) !important;
  --accent: #f4eddf !important;
  --accent2: #f4eddf !important;
  border-color: rgba(244, 237, 223, .16) !important;
  background: #17130f !important;
}

.evidence-layer::before {
  opacity: .1 !important;
}

.evidence-heading h2,
.evidence-heading-copy p,
.evidence-heading-copy span,
.evidence-layer .eyebrow {
  color: var(--ink) !important;
}

.evidence-layer .eyebrow::before {
  background: var(--ink) !important;
}

.industry-tabs,
.evidence-frame {
  border-radius: 0 !important;
  border-color: var(--line) !important;
  background: #211c17 !important;
  box-shadow: none !important;
}

.industry-tabs button,
.state-tabs button {
  color: var(--dim) !important;
  border-color: var(--line) !important;
  background: transparent !important;
}

.industry-tabs button[aria-selected="true"] {
  color: var(--ink) !important;
  background: rgba(244,237,223,.08) !important;
}

.industry-tabs button[aria-selected="true"]::after,
.state-tabs button[aria-selected="true"] {
  color: #17130f !important;
  background: #f4eddf !important;
}

.evidence-frame {
  border-top-color: #f4eddf !important;
}

.evidence-paper,
.evidence-paper-before {
  color: #17130f !important;
  background: #f5efe4 !important;
}

.evidence-note {
  border-radius: 0 !important;
  background: #fbf7ef !important;
  box-shadow: none !important;
}

.artifact-pencil {
  color: #5f574d !important;
  font-family: "Inter", sans-serif !important;
  font-size: .72rem !important;
  font-style: italic;
  transform: none !important;
}

/* Forms and booking */
input,
textarea,
select {
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  color: var(--ink) !important;
  background: rgba(255, 255, 255, .3) !important;
  font-family: "Inter", sans-serif !important;
}

.booking-shell,
.booking-status,
.booking-fallback {
  border-radius: 0 !important;
  border-color: var(--line) !important;
  background: rgba(244, 237, 223, .54) !important;
  box-shadow: none !important;
}

.booking-status,
.booking-fallback {
  color: var(--muted) !important;
}

.contact-grid .direct a,
.founder-contact a {
  color: var(--ink) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* Preview pages */
.concept-bar {
  color: var(--ground) !important;
  background: var(--ink) !important;
}

.hero-inner {
  min-height: 690px !important;
  padding-block: clamp(72px, 9vw, 118px) !important;
}

.preview-shell .hero::before {
  display: none !important;
}

.preview-shell .section,
.preview-shell .proof-section,
.preview-shell .process-section {
  background: transparent !important;
}

.preview-shell .artifact,
.preview-shell .proof-card,
.preview-shell .process-card {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Footer */
footer:not(.system-visual-foot) {
  border-top: 1px solid var(--line) !important;
  padding: 48px 0 58px !important;
  color: var(--muted) !important;
  background: transparent !important;
}

.footer-links,
.seo-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px !important;
  margin-bottom: 28px;
  font-size: .66rem !important;
  letter-spacing: .095em !important;
  text-transform: uppercase;
}

.footer-links a,
.seo-footer-links a,
.foot-in,
.foot-in a {
  color: var(--muted) !important;
}

.foot-in {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}

/* Motion remains quiet and purposeful. */
.rv {
  transform: translateY(10px) !important;
  transition-duration: .55s !important;
}

.rv.in {
  transform: none !important;
}

@media (max-width: 980px) {
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .menu-btn,
  .menu-button {
    display: inline-flex !important;
  }

  .nav-links {
    position: absolute !important;
    inset: 76px 0 auto !important;
    display: none !important;
    align-items: stretch !important;
    gap: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 13px clamp(20px, 5vw, 48px) 20px !important;
    background: rgba(247, 241, 230, .985) !important;
    box-shadow: 0 22px 34px rgba(57, 44, 28, .1) !important;
  }

  .nav-links.open {
    display: grid !important;
  }

  .nav-links a:not(.btn):not(.button) {
    min-height: 46px;
    align-items: center;
    border-bottom: 1px solid var(--line-soft) !important;
    padding: 13px 0 !important;
  }

  .nav-links .btn,
  .nav-links .button {
    margin-top: 12px;
  }

  .hero-in,
  .hero-inner {
    min-height: auto !important;
    grid-template-columns: 1fr !important;
  }

  .hero-in {
    gap: 58px !important;
  }

  .hero h1,
  .hero-inner h1 {
    max-width: 12ch !important;
  }

  .evidence-heading {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .svc-grid {
    grid-template-columns: 1fr !important;
  }

  .wrap {
    width: min(100% - 32px, 1180px) !important;
  }

  .nav-in,
  .nav-inner {
    min-height: 68px !important;
  }

  .nav-links {
    inset-block-start: 68px !important;
  }

  .wordmark,
  .brand {
    font-size: 1.12rem !important;
  }

  .hero-in,
  .hero-inner {
    padding-block: 68px !important;
  }

  .hero h1,
  .hero-inner h1 {
    font-size: clamp(3.15rem, 17vw, 4.9rem) !important;
  }

  .page-hero {
    padding-block: 70px 56px !important;
  }

  .page-hero h1 {
    font-size: clamp(2.9rem, 15vw, 4.7rem) !important;
  }

  .section {
    padding-block: 72px !important;
  }

  .section-head h2,
  .section h2,
  .h2,
  .field-visuals-head h2 {
    font-size: clamp(2.35rem, 12vw, 3.8rem) !important;
  }

  .hero-ctas,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-ctas .btn,
  .hero-actions .button,
  .hero-actions .btn {
    width: 100%;
  }

  .audit {
    box-shadow: 9px 10px 0 rgba(92, 76, 57, .11) !important;
  }

  .industry-tabs {
    grid-template-columns: 1fr !important;
  }

  .industry-tabs button {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .evidence-frame-top,
  .foot-in {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .state-tabs button {
    min-height: 48px;
  }
}

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