/* always respect [hidden] */
[hidden]{ display:none !important; }

:root{
  --black:#000;
  --gold:#c8a64a;
  --bg:#fafafa;
  --muted:#222;

  /* layout */
  --max: 980px;

  /* HERO rhythm knobs */
  --hero-top: 7vh;
  --hero-bottom: 0px;              /* keep hero itself neutral */
  --cta-top: 34px;                 /* spacing above buttons */
  --hero-to-cap: clamp(56px, 9vh, 160px); /* THIS is the “former glory” gap */

  /* type */
  --subhead-max: 90ch;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--black);
}

.page{
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--hero-top) 6vw 7vh;
  text-align: center;
}

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

/* HERO */
.hero{
  margin: 0;
  padding: 0 0 var(--hero-bottom);
}

.logo-img{
  display:block;
  margin: 0 auto 32px;
  width: clamp(190px, 22vw, 290px);
  height: auto;
}

/* Roles / title */
.hero-title{
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;

  max-width: 980px;
  margin-left: auto;
  margin-right: auto;

  text-wrap: balance;
}

/* Roles line: keep 1-line on desktop, gold pipes */
.hero-title.roles{
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: .6ch;

  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;

  white-space: nowrap;   /* <-- prevents the break */
  max-width: 100%;
  text-wrap: normal;     /* <-- overrides your balance wrapping */
}

.hero-title.roles .pipe{
  color: var(--gold);    /* <-- makes pipes gold again */
  font-weight: 400;
  margin: 0 .45em;
  letter-spacing: 0;
}

/* Mobile: allow stacking */
@media (max-width: 640px){
  .hero-title.roles{
    display: grid;
    justify-items: center;
    gap: 8px;
    white-space: normal;
  }
  .hero-title.roles .pipe{ display:none; }
}

.nowrap{ white-space: nowrap; }
.sep{ margin: 0 .18em; }

h1{
  margin: 0;
  font-size: clamp(26px, 3.3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.subhead{
  margin: 40px auto 40px;     /* real breathing room */
  width: min(100%, var(--subhead-max));
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.3;
  font-weight: 600;
}

.cta-row{
  margin: var(--cta-top) auto 0;
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.primary-btn{
  display:inline-block;
  padding: 12px 28px;
  border: 2px solid var(--black);
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
}

.primary-btn:hover{
  background: var(--black);
  color: #fff;
}

.text-link{
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
  border-bottom: 1px solid transparent;
}

.text-link:hover{
  border-bottom-color: var(--gold);
}

/* BANDS: stop using top margins to create the hero->cap gap.
   The gap is owned by the Capabilities section padding-top below. */
.band{
  margin: 0 auto 12vh;
  padding-top: 0;
}

/* THIS is the gap you care about: CTA -> icon boxes */
.band[aria-label="Capabilities"]{
  padding-top: 48px;
}

.band.muted{
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,.12);
}

/* Capabilities grid */
.triple{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  justify-items: center;
  margin-top: 48px; 
}

.block{ max-width: 260px; }

.icon-box{
  width: 30px;
  height: 30px;
  border: 2px solid var(--gold);
  margin: 0 auto 14px;
}

h2{
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

h3{
  margin: 18px 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

p{
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
}

.story-lede{
  max-width: 720px;
  margin: 0 auto;
  text-align: center !important;
}

.ghost-btn{
  margin-top: 18px;
  background: transparent;
  border: 1px solid var(--black);
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.ghost-btn:hover{
  border-color: var(--gold);
}

.story-more{
  max-width: 720px;
  margin: 22px auto 0;
  display: grid;
  gap: 18px;
  text-align: justify;
  text-justify: inter-word;
}

.story-more p{
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;

  /* guardrails */
  text-align-last: left;          /* last line not stretched */
  word-spacing: -0.03em;          /* subtle */
}

.story-lede,
.story-more{
  max-width: 100%;
}

.muted{ opacity: 0.85; }

.quiet-list{
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 560px;
  display: grid;
  gap: 10px;
  text-align: left; /* keep content aligned */
  width: fit-content;
}

.quiet-list li{
  display: grid;
  grid-template-columns: 14px 1fr; /* bullet column + text column */
  column-gap: 10px;
  align-items: start;
}

.quiet-list li::before{
  content: "·";
  color: var(--gold);
  line-height: 1.4;   /* match text rhythm */
  justify-self: end;  /* bullet hugs the text */
}

.contact{ max-width: 520px; }

.small-note{
  margin: 0 auto 18px;
  font-size: 14px;
  opacity: 0.85;
  max-width: 460px;
}

input, textarea{
  width: 100%;
  padding: 12px 12px;
  margin-top: 12px;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  font-size: 14px;
}

textarea{ resize: vertical; }

button[type="submit"]{
  margin-top: 14px;
  padding: 12px 22px;
  background: var(--black);
  color: #fff;
  border: none;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
}

.check-row{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}
.check-row input{ width: auto; margin-top: 2px; }
.check-row label{ font-size: 14px; color: var(--muted); }

button[type="submit"]:hover{ background: #111; }

.status{
  margin-top: 14px;
  font-size: 14px;
  min-height: 20px;
}

.hp-field{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer{
  margin-top: 10vh;
  font-size: 12px;
  opacity: 0.9;
}

.footer a{
  color: var(--black);
  text-decoration: none;
  font-weight: 700;
}

.footer a:hover{ color: var(--gold); }

/* FLOATING BRAND MARK (appears on scroll) */
.floating-brand{
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1200;

  display: grid;
  place-items: center;

  width: 72px;
  height: 72px;

  border: none;
  background: transparent;
  text-decoration: none;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;

  transition: opacity 220ms ease, transform 220ms ease;
}

.floating-brand img{
  width: 100%;
  height: 100%;
  display: block;
}

body.is-scrolled .floating-brand{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-brand:hover{
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}

/* MODALS */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999;
}

.modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 6vh 6vw;
}

.modal-card{
  width: min(860px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: var(--bg);
  border: 2px solid var(--black);
  text-align: left;
  padding: 26px 26px 22px;
  position: relative;
}

.modal-close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--black);
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.modal-close:hover{
  border-color: var(--gold);
}

.modal-body p{ margin: 10px 0; }

@media (max-width: 840px){
  .triple{ grid-template-columns: 1fr; }
  .hero-title{ line-height: 1.12; }
}
