/*
  SIGNAL YELLOW RULING
  Signal Yellow appears exactly once per full-bleed surface. On Bond Paper it is
  the counter line inside the header bell. On Vault Green it is the fixed 72px
  rule in the CTA strip. It is never text, a text background, or a hover state.
  The thanks-page bell trades its yellow counter line for yellow strike ticks
  during the single motion sequence, so both never appear at once.
*/

@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/fonts/libre-franklin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/fonts/libre-franklin-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/fonts/libre-franklin-900.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 94%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Barlow Fallback";
  src: local("Arial");
  size-adjust: 100%;
  ascent-override: 97%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "IBM Plex Mono Fallback";
  src: local("Courier New");
  size-adjust: 102%;
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --green: #0E3A34;
  --graphite: #171A19;
  --yellow: #F0A500;
  --slate: #5B5F5C;
  --hairline: #C9C7BE;
  --paper: #F5F4EF;
  --font-display: "Libre Franklin", "Libre Franklin Fallback", sans-serif;
  --font-body: "Barlow", "Barlow Fallback", sans-serif;
  --font-mono: "IBM Plex Mono", "IBM Plex Mono Fallback", monospace;
  --display-xl: clamp(2.5rem, 6vw, 3.5rem);
  --heading: clamp(1.6rem, 3.5vw, 2rem);
  --body: 1rem;
  --small: .875rem;
  --kicker: .8125rem;
  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s6: 3rem;
  --s8: 4rem;
  --s12: 6rem;
  --max-width: 1080px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
main section[id], #form-error { scroll-margin-top: 108px; }
.header-nav a { transition: text-decoration-color 160ms ease, color 160ms ease; }
.header-nav a[aria-current="location"] { text-decoration-color: var(--green); text-decoration-thickness: 2px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.55;
}

body,
button,
input,
textarea { font-style: normal; }

img,
svg { display: block; max-width: 100%; }

a { color: inherit; }

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  color: var(--green);
  font-family: var(--font-display);
}

h1 {
  margin-bottom: var(--s3);
  max-width: 34ch;
  font-size: var(--display-xl);
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1.04;
}

h2 {
  margin-bottom: var(--s3);
  font-size: var(--heading);
  font-weight: 900;
  line-height: 1.08;
}

h3 {
  margin-bottom: var(--s1);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.2;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 2 * var(--s3)), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: var(--s1);
  left: var(--s1);
  padding: var(--s1) var(--s2);
  transform: translateY(-180%);
  background: var(--green);
  color: var(--paper);
  font-weight: 600;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: var(--s3);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.brand-bell {
  width: 27px;
  height: 27px;
  fill: var(--green);
  overflow: visible;
}

.brand-bell .bell-counter {
  fill: none;
  stroke: var(--yellow);
  stroke-linecap: round;
  stroke-width: 4;
}

.brand-bell.one-color .bell-counter { stroke: var(--graphite); }

.brand-divider {
  width: 2px;
  height: 24px;
  background: var(--graphite);
}

.wordmark {
  display: flex;
  flex-direction: column;
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.wordmark-the {
  font-size: .49rem;
  font-weight: 600;
  letter-spacing: .2em;
}

.wordmark b { color: var(--green); font-weight: 900; }

.header-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: var(--s3);
  font-size: var(--small);
  font-weight: 500;
}

.header-nav a,
.text-link {
  text-decoration-color: var(--hairline);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.header-nav a:hover,
.text-link:hover { text-decoration-color: var(--graphite); }

.button {
  transition: background-color 160ms ease, border-color 160ms ease, transform 100ms ease;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 2px;
  padding: .72rem 1.25rem;
  background: var(--green);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { border-color: var(--graphite); background: var(--graphite); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { cursor: wait; }

.button-small {
  min-height: 40px;
  padding: .55rem .9rem;
  font-size: var(--small);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(var(--s6), 7vw, var(--s8));
  border-bottom: 1px solid var(--hairline);
}

.hero-copy { max-width: 540px; }
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 3.5rem); letter-spacing: -.035em; line-height: 1.06; }
.hero .triplet { flex-direction: column; font-size: 1.05rem; font-weight: 600; line-height: 1.5; }
.hero .triplet span + span::before { content: none; }
.hero .actions { flex-wrap: wrap; gap: 1rem 1.5rem; }

.conversation { width: 100%; max-width: 480px; margin: 0; justify-self: end; }
.conversation-window { background: #fff; border: 1px solid #e1e3df; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 56px -32px #0e3a3440, 0 3px 10px #171a1905; }
.conversation-header { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid #e9ebe7; background: #fafbf9; }
.desk-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e9efeb; flex-shrink: 0; }
.desk-avatar svg { width: 27px; fill: var(--green); }
.conversation-header strong { display: block; font-size: 1rem; font-weight: 600; }
.conversation-header div > span { display: block; color: var(--slate); font-size: .8rem; }
.conversation-thread { padding: 20px 24px 24px; }
.conversation-time { text-align: center; color: var(--slate); font-size: .75rem; margin-bottom: 21px; }
.message { width: fit-content; max-width: 88%; margin-bottom: 15px; transform-origin: bottom left; }
.message-desk { position: relative; margin-left: auto; transform-origin: bottom right; }
.message-content { transform-origin: bottom right; }
.typing-beat { position: absolute; top: 20px; right: 0; display: flex; gap: 4px; align-items: center; padding: 15px 16px; background: #e9efeb; border-radius: 18px 18px 5px 18px; opacity: 0; }
.typing-beat span { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.message-sender { display: block; margin: 0 10px 5px; font-size: .69rem; color: var(--slate); line-height: 1.2; }
.message-desk .message-sender { text-align: right; }
.message-bubble { position: relative; margin: 0; padding: 11px 15px; border-radius: 18px 18px 18px 5px; background: #eff0ed; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .875rem; line-height: 1.45; letter-spacing: -.012em; }
.message-desk .message-bubble { color: white; background: var(--green); border-radius: 18px 18px 5px 18px; }
.booking-receipt { display: flex; gap: 12px; align-items: center; border-top: 1px solid #e9ebe7; padding-top: 19px; margin-top: 23px; }
.booking-receipt svg { flex: 0 0 25px; width: 25px; color: var(--green); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.booking-receipt strong { display: block; font-size: .86rem; font-weight: 600; color: var(--green); }
.booking-receipt span { display: block; color: var(--slate); font-size: .78rem; }
.conversation figcaption { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 8px; padding-inline: 5px; font-size: .75rem; color: var(--slate); }
.conversation-controls { display: flex; gap: 4px; }
.conversation-controls[hidden] { display: none; }
.conversation-controls button { min-height: 40px; border: 0; padding: 6px 8px; background: transparent; color: var(--green); font: inherit; cursor: pointer; border-radius: 5px; }
.conversation-controls button:hover { background: #e9efeb; }
.conversation-controls button:disabled { color: var(--slate); cursor: default; }

.triplet {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--s3);
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.3;
}

.hero-body { max-width: 720px; font-size: 1.125rem; }

.actions {
  display: flex;
  margin-top: var(--s4);
  align-items: center;
  gap: var(--s3);
}

.text-link { font-weight: 600; }

.section { padding-block: clamp(3.5rem, 7vw, 5rem); }

.section + .section { border-top: 1px solid var(--hairline); }

.kicker {
  margin-bottom: var(--s2);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: var(--kicker);
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: var(--s8);
  align-items: end;
}

.section-intro p { margin-bottom: var(--s3); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: var(--s3);
  padding: 28px;
  background: #eaf0eb;
  border-radius: 12px;
}

.service-card {
  min-height: 0;
  border: 0;
  padding: 0;
}

.service-icon { width: 28px; height: 28px; margin-bottom: 16px; fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card p { max-width: 48ch; }

.service-card > span,
.process-table article > span {
  display: block;
  margin-bottom: var(--s6);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: var(--small);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.service-card p { margin-bottom: 0; }

.process > h2 { margin-bottom: var(--s4); }

.process-table article:first-child { padding-top: 0; }
.process-table article:last-child { padding-bottom: 0; }
.process-table article + article { border-top: 1px solid var(--hairline); }

.process-table article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  padding-block: var(--s4);
}

.process-table article > span { margin: .2rem 0 0; }

.process-table article div { max-width: 720px; }

.process-table article p { margin-bottom: 0; }

.measure { max-width: 65ch; font-size: 1.125rem; }

.audience h2 { max-width: 740px; }

.audience-list {
  max-width: 900px;
  margin-block: var(--s4);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
}

.audience-list span { font-family: var(--font-mono); }

.audience-close {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
}

.faq h2 { margin-bottom: var(--s4); }

.faq-list { border-top: 1px solid var(--hairline); }

.faq-list details { border-bottom: 1px solid var(--hairline); transition: background-color 180ms ease; }
.faq-list details[data-expanded="true"] { background: #eaf0eb70; }
.faq-list summary:hover { color: var(--green); }

.faq-list summary {
  position: relative;
  padding-inline: 12px;
  display: flex;
  min-height: 64px;
  padding-block: var(--s2);
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "";
  width: 12px;
  height: 1.5px;
  background: var(--green);
  flex: 0 0 auto;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
}

.faq-list summary::before { content: ""; position: absolute; right: 17.25px; top: calc(50% - 6px); width: 1.5px; height: 12px; background: var(--green); transition: transform 190ms cubic-bezier(.22,1,.36,1); }
.faq-list details[open]:not([data-expanded]) summary::before,
.faq-list details[data-expanded="true"] summary::before { transform: scaleY(0); }

.faq-list details p { max-width: 760px; padding: 0 12px var(--s3); margin-bottom: 0; }

.money {
  color: var(--green);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.cta-strip {
  background: var(--green);
  color: var(--paper);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s8);
  padding-block: var(--s8);
  align-items: end;
}

.cta-inner h2 { color: var(--paper); }

.cta-inner p { max-width: 680px; margin-bottom: 0; }

.signal-rule {
  display: block;
  width: 72px;
  height: 4px;
  margin: var(--s3) 0;
  border-radius: 2px;
  background: var(--yellow);
}

.cta-actions { display: grid; gap: var(--s2); justify-items: start; }

.button-inverted {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--green);
}

.button-inverted:hover {
  border-color: var(--paper);
  background: var(--graphite);
  color: var(--paper);
}

.cta-email {
  font-family: var(--font-mono);
  font-size: var(--small);
  text-underline-offset: 4px;
}

.contact { max-width: 1080px; }

.contact-form { max-width: 560px; margin-top: var(--s4); }
.contact-form > button[type="submit"] { min-width: 132px; }
.field-error:not(:empty), .form-status.is-visible { animation: feedback-appear 160ms ease-out; }
@keyframes feedback-appear { from { opacity: 0; } to { opacity: 1; } }

.field { margin-bottom: var(--s3); }

.field label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 500;
}

.field input,
.field textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: .75rem .85rem;
  background: var(--paper);
  color: var(--graphite);
  font: 400 1rem/1.4 var(--font-body);
}

.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px #0e3a3412; background: #fff; }

.field input::placeholder,
.field textarea::placeholder { color: var(--slate); }

.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); }

.field-error {
  min-height: 1.55em;
  margin: .35rem 0 0;
  color: var(--graphite);
  font-size: var(--small);
  font-weight: 600;
}
.field-error:empty { visibility: hidden; }

.honeypot { position: absolute; left: -10000px; }

.form-status {
  display: none;
  max-width: 560px;
  margin-bottom: var(--s3);
  border-left: 2px solid var(--graphite);
  padding-left: var(--s2);
  font-weight: 600;
}

.form-status:target,
.form-status.is-visible { display: block; }

.contact-form.is-submitting .button { cursor: wait; }

.site-footer {
  background: var(--graphite);
  color: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
  gap: var(--s8);
  padding-block: var(--s8);
}

.footer-tagline {
  max-width: 600px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1.6;
}

.footer-meta p { margin-bottom: .5rem; }

.footer-meta a { text-underline-offset: 3px; }

.simple-main { min-height: 62vh; }

.simple-page {
  max-width: 760px;
  padding-block: var(--s12);
}

.simple-page h1 { max-width: 18ch; }

.simple-page h2 { margin-top: var(--s6); }

.simple-page p,
.simple-page li { max-width: 68ch; }

.simple-page .actions { margin-top: var(--s4); }

.thanks-page {
  display: grid;
  min-height: 62vh;
  place-content: center;
  justify-items: start;
}

.thanks-bell {
  width: 96px;
  margin-bottom: var(--s4);
  fill: var(--green);
  overflow: visible;
  transform-origin: 50% 82%;
}

.thanks-bell .bell-sheen { fill: var(--paper); }

.thanks-bell .bell-counter {
  fill: none;
  stroke: var(--yellow);
  stroke-linecap: round;
  stroke-width: 4;
}

.thanks-bell .strike {
  visibility: hidden;
  fill: none;
  stroke: var(--yellow);
  stroke-linecap: round;
  stroke-width: 4;
}

.thanks-bell.just-rang { animation: bell-ring 1.2s ease-out both; }

.thanks-bell.just-rang .bell-counter { animation: counter-settle 1.2s steps(1, end) both; }

.thanks-bell.just-rang .strike { animation: strike-settle 1.2s steps(1, end) both; }

@keyframes bell-ring {
  0%, 100% { transform: rotate(0); }
  18% { transform: rotate(-7deg); }
  36% { transform: rotate(6deg); }
  54% { transform: rotate(-3deg); }
  72% { transform: rotate(2deg); }
}

@keyframes counter-settle {
  0%, 67% { stroke: var(--graphite); }
  68%, 100% { stroke: var(--yellow); }
}

@keyframes strike-settle {
  0%, 67% { visibility: visible; }
  68%, 100% { visibility: hidden; }
}

@media (min-width: 900px) {
  .triplet { flex-direction: row; }
  .triplet span + span::before { content: " · "; white-space: pre; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 640px; }
  .conversation { justify-self: center; }
  .header-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card > span { margin-bottom: var(--s4); }
  .section-intro,
  .cta-inner,
  .footer-inner { grid-template-columns: 1fr; gap: var(--s4); }
}

@media (max-width: 560px) {
  .conversation-header { padding: 16px 18px; }
  .conversation-thread { padding: 18px; }
  .message { max-width: 91%; }
  .message-bubble { font-size: .83rem; padding: 10px 13px; }
  .conversation-time { font-size: .69rem; }
  .service-grid { padding: 22px; gap: 28px 20px; }
  .service-card h3 { font-size: 1rem; }
  :root { --s12: 4.5rem; }
  .shell { width: min(calc(100% - 2 * var(--s2)), var(--max-width)); }
  .header-inner { min-height: 68px; gap: .65rem; }
  .brand { gap: .45rem; }
  .brand-bell { width: 24px; height: 24px; }
  .brand-divider { height: 21px; }
  .wordmark { font-size: .65rem; }
  .wordmark-the { font-size: .42rem; }
  .button-small { min-height: 38px; padding-inline: .65rem; font-size: .72rem; }
  .actions { align-items: flex-start; flex-direction: column; }
  .actions .button { width: 100%; }
  .process-table article { grid-template-columns: 1fr; gap: var(--s2); }
  .process-table article > span { margin: 0; }
  .audience-list span { display: none; }
  .audience-list { line-height: 1.8; }
  .cta-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .field-error:not(:empty), .form-status.is-visible { animation: none; }
  .button, .header-nav a, .faq-list details, .faq-list summary::before, .field input, .field textarea { transition: none; }
  .button:active:not(:disabled) { transform: none; }
  html { scroll-behavior: auto; }
  .thanks-bell.just-rang,
  .thanks-bell.just-rang .bell-counter,
  .thanks-bell.just-rang .strike { animation: none; }
  .thanks-bell .strike { visibility: hidden; }
}
