/* ==========================================================================
   Honey Shield Collective — black / gold / cream with photography
   Newsreader + Libre Franklin

   This file and main.js are linked with a ?v=N query in all three pages. Bump N
   on every deploy — hosts here have served stale CSS otherwise.
   ========================================================================== */

:root {
  --ink: #0f1011;
  --ink-raise: #17181a;
  --cream: #efebe3;
  --text: #ffffff;
  --text-2: #b6b2aa;
  --muted: #8b8880;
  --gold: #c9a24b;
  --gold-bright: #ddbb6c;
  /* the comp's #8a7231 is 3.90:1 on cream, under the 4.5:1 AA floor for the
     kickers and stage numbers it colours; #786425 is 4.84:1 */
  --gold-deep: #786425;
  --ink-on-cream: #22201c;
  --body-on-cream: #55524a;
  --line: rgba(239, 235, 227, 0.14);
  --line-cream: rgba(15, 16, 17, 0.25);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  /* the fixed header's real height — the hero offset and the legal-page top
     padding both derive from it, so it has to be a constant, not whatever the
     tallest child happens to measure */
  --header-h: 4.55rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

/* Keyboard focus. Without this the browser default applies, which is a thin blue
   ring — off-palette here, and weak against near-black in Safari. :focus-visible
   means mouse clicks never show it. */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 1px;
}

/* gold-bright is only 1.55:1 on cream, so the ring flips to ink there */
.section-cream :focus-visible { outline-color: var(--ink-on-cream); }

/* WCAG 2.4.11: the header is fixed, so tabbing backwards used to park the focused
   element underneath it — 7 of them, with the hero buttons fully hidden. This keeps
   scroll-into-view clear of the bar. */
a, button, [tabindex]:not([tabindex="-1"]) {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
}

h2, h3 { text-wrap: balance; }

.container {
  max-width: 84rem;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.kicker {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.prose p { max-width: 60ch; color: var(--text-2); }
.prose p + p { margin-top: 1.1em; }
.prose-strong { color: var(--text); font-weight: 600; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  padding: 1rem 1.9rem;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.btn:active { transform: scale(0.97); }

.btn-solid { background: var(--gold); color: #17130a; }
/* the border is this button's only affordance, so it needs 3:1 as a UI boundary
   (1.4.11). The comp's 0.35 gives 2.88:1 on ink and 2.68:1 over the hero photo;
   0.48 gives 4.39 and 3.74. */
.btn-outline { background: transparent; color: var(--text); border-color: rgba(239, 235, 227, 0.48); }

@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: var(--gold-bright); }
  .btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
}


/* ---------- entrances ---------- */

.rise {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 800ms var(--ease-out) forwards;
}
.r1 { animation-delay: 60ms; }
.r2 { animation-delay: 120ms; }
.r3 { animation-delay: 180ms; }

@keyframes rise { to { opacity: 1; transform: none; } }

.fade {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.fade.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; transform: none; }
  .fade { transform: none; transition: opacity 300ms ease; }
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, height 300ms var(--ease-out);
}

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

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}

.brand-logo {
  height: 40px;
  /* an inline <svg> has no intrinsic size, so width:auto alone falls back to
     the 300px default — the ratio has to be declared */
  aspect-ratio: 1731.34 / 490.06;
  width: auto;
  fill: var(--gold);
  flex: none;
  display: block;
}

.site-footer .brand-logo { height: 46px; }

.site-nav { display: flex; gap: 1.9rem; }

.site-nav a {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  transition: color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--text); }
}

.btn-header { padding: 0.65rem 1.3rem; border-color: var(--gold); color: var(--gold); }

@media (hover: hover) and (pointer: fine) {
  .btn-header:hover { background: var(--gold); color: #17130a; }
}

@media (max-width: 960px) {
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .btn-header { padding: 0.5rem 0.95rem; font-size: 0.72rem; }
  /* the button shrinks here, so the bar can too — the hero offset follows the
     variable automatically */
  :root { --header-h: 4.25rem; }
  .site-header.scrolled { height: 3.9rem; }
  .brand-logo { height: 36px; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  display: block;
}

/* These two layers are what make the hero copy legible, and the margin is thin:
   the smallest text measures 4.94:1 against the current photo, versus the 4.5:1
   AA requirement. Swapping hero-lead.jpg for a brighter image on the left side
   will break contrast — re-measure before changing it. */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg,
      rgba(15, 16, 17, 0.96) 0%,
      rgba(15, 16, 17, 0.88) 26%,
      rgba(15, 16, 17, 0.74) 42%,
      rgba(15, 16, 17, 0.55) 56%,
      rgba(15, 16, 17, 0.38) 70%,
      rgba(15, 16, 17, 0.28) 84%,
      rgba(15, 16, 17, 0.28) 100%),
    linear-gradient(180deg, rgba(15, 16, 17, 0.55) 0%, rgba(15, 16, 17, 0) 22%);
}

.hero-inner { position: relative; width: 100%; }

.hero h1 {
  font-size: clamp(2.5rem, 4.9vw, 4.25rem);
  line-height: 1.08;
  margin: 1.6rem 0 0;
  max-width: 38.75rem;
}

.tick { color: var(--gold); }

.gold-rule {
  display: block;
  width: 3.4rem;
  height: 2px;
  background: var(--gold);
  margin-block: 2rem;
}

.hero-copy p { max-width: 54ch; color: var(--text-2); }
.hero-copy p + p { margin-top: 1em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0;
    padding-bottom: 3rem;
    min-height: 0;
  }
  .hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: min(52svh, 26rem);
    order: -1;
  }
  /* on mobile the photo sits above the copy: fade it into the content below
     instead of darkening its left half */
  .hero-photo::after {
    background: linear-gradient(180deg,
      rgba(15, 16, 17, 0.35) 0%,
      rgba(15, 16, 17, 0.05) 35%,
      rgba(15, 16, 17, 0.15) 70%,
      rgba(15, 16, 17, 0.85) 94%,
      #0f1011 100%);
  }
  .hero-inner { padding-top: 2.2rem; }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(5rem, 10vh, 7.5rem); }

.section-raise { background: var(--ink-raise); }

.section-cream {
  background: var(--cream);
  color: var(--ink-on-cream);
}

.section-cream .prose p { color: var(--body-on-cream); }
.section-cream .prose-strong { color: var(--ink-on-cream); }
.section-cream .kicker { color: var(--gold-deep); }

.section h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  max-width: 26ch;
  margin-bottom: clamp(1.8rem, 4vh, 2.6rem);
}

.kicker + h2 { margin-top: 0.8rem; }

.lede {
  color: var(--muted);
  margin-top: -1.2rem;
  margin-bottom: clamp(2.4rem, 5vh, 3.6rem);
}

.section-cream .lede { color: #55524a; }

/* ---------- structure / services ---------- */

.structure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(3rem, 6vw, 5.5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 7vh, 5rem);
}

.bar-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.4;
  color: var(--text);
  border-left: 2px solid var(--gold);
  padding-left: 1.3rem;
  margin-bottom: 1.6rem;
}

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

.svc-index {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

.svc-index li + li { border-left: 1px solid var(--line); }

.svc-index a {
  display: block;
  height: 100%;
  padding: 1.2rem 1rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-2);
  transition: color 200ms ease, background-color 200ms ease;
}

.svc-index a span {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

@media (hover: hover) and (pointer: fine) {
  .svc-index a:hover { color: var(--text); background: var(--ink-raise); }
}

@media (max-width: 900px) {
  .svc-index { grid-template-columns: 1fr; }
  .svc-index li + li { border-left: none; border-top: 1px solid var(--line); }
  .svc-index a { text-align: left; display: flex; gap: 0.9rem; align-items: baseline; padding: 0.9rem 1.1rem; }
  .svc-index a span { margin-bottom: 0; }
}

.svc {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.4rem, 5vh, 3.4rem);
  scroll-margin-top: 5rem;
}

.svc:last-of-type { padding-bottom: 0; }

.svc h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  margin-bottom: 1.4rem;
}

.svc h3 span {
  color: var(--gold);
  font-size: 0.95rem;
  margin-right: 1.1rem;
}

.svc-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(3rem, 6vw, 5.5rem);
}

.svc-cols .prose p { font-size: 0.92rem; }

@media (max-width: 900px) {
  .svc-cols { grid-template-columns: 1fr; }
  .svc-cols .prose + .prose { margin-top: 1.1em; }
}

/* ---------- approach stages ---------- */

.stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.6rem 2.4rem;
}

.stage-no {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold-deep);
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.stages h3 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.stages p:last-child { font-size: 0.9rem; color: var(--body-on-cream); }

@media (max-width: 1000px) {
  .stages { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stages { grid-template-columns: 1fr; }
}

/* ---------- why cells ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.why-grid > div {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.why-grid > div:nth-child(3n) { border-right: none; }
.why-grid > div:nth-child(n+4) { border-bottom: none; }

.why-grid h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.why-grid p { font-size: 0.88rem; color: var(--text-2); }

@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .why-grid > div:nth-child(2n) { border-right: none; }
  .why-grid > div:nth-child(n+5) { border-bottom: none; }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-grid > div { border-right: none !important; border-bottom: 1px solid var(--line); }
  .why-grid > div:last-child { border-bottom: none; }
}

/* ---------- accountability / questions ---------- */

.acc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 1fr);
  gap: 3rem clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}

.acc-grid h2 { margin-bottom: 1.5rem; }

.questions { list-style: none; }

.questions li {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

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

.questions li span {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--gold);
  flex: none;
}

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

/* ---------- industries ---------- */

.ind-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: clamp(2.4rem, 5vh, 3.6rem);
}

.ind-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .ind-photos { grid-template-columns: 1fr; }
}

.ind-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 1fr);
  gap: 2.5rem clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}

.ind-list {
  list-style: none;
  columns: 2;
  column-gap: 2.5rem;
}

.ind-list li {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-on-cream);
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line-cream);
  break-inside: avoid;
}

@media (max-width: 900px) {
  .ind-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ind-list { columns: 1; }
}

/* ---------- about ---------- */

/* same width as every other section — the comp inset this block, which read as a mistake */
.about-inner { max-width: 84rem; }

.about-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 3.4vw, 2.875rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 26ch;
  text-wrap: balance;
  margin-top: 1.4rem;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cfcbc2;
  max-width: 56ch;
  margin-top: 1.5rem;
}

.about-grid {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr));
  gap: 1.25rem 3.75rem;
  align-items: start;
  font-size: 1.03rem;
  line-height: 1.78;
  color: #a9a59d;
}

/* explicit columns: paragraphs stack tightly instead of aligning to grid rows */
.about-grid > div {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-grid p { max-width: 62ch; }

/* ---------- principle ---------- */

.principle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}

.principle-lede {
  color: var(--muted);
  margin-top: 1.3rem;
}

.principle-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  margin-top: 1rem;
  max-width: 22ch;
  text-wrap: balance;
}

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

/* ---------- contact ---------- */

.section-contact {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6.5rem, 15vh, 10rem);
}

.contact-bg { position: absolute; inset: 0; }

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 13, 10, 0.82);
}

.contact-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.6rem;
}

.contact-inner h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  max-width: 24ch;
  margin-bottom: 0;
}

.contact-inner .prose p { margin-inline: auto; max-width: 58ch; }

/* ---------- footer ---------- */

.site-footer {
  background: #0b0c0d;
  padding-block: 2.8rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2.2rem;
}

.footer-services {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  text-align: right;
  font-size: 0.86rem;
  font-weight: 500;
}

.footer-services a {
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-services a:hover { color: var(--text); }
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.7rem;
}

.footer-legal { font-size: 0.8rem; color: #8b8880; }

@media (max-width: 620px) {
  .footer-top { flex-direction: column; }
  .footer-services { text-align: left; }
}

/* ---------- legal pages ---------- */

.legal {
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vh, 6rem));
  padding-bottom: clamp(4rem, 9vh, 7rem);
}

.legal-inner { max-width: 58rem; }

.legal h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin-top: 0.7rem;
}

.legal-date {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.legal-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #cfcbc2;
  margin-top: 2.2rem;
}

.legal h2 {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  margin-top: 2.8rem;
  margin-bottom: 0.9rem;
}

.legal p {
  color: var(--text-2);
  line-height: 1.8;
  max-width: 72ch;
}

.legal p + p { margin-top: 1.1rem; }
.legal h2 + p { margin-top: 0; }

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

.legal a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .legal a:hover { color: var(--gold-bright); }
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-legal a:hover { color: var(--text-2); }
}

.footer-legal .sep { opacity: 0.45; padding: 0 0.55rem; }
