/* Ponte Consulting — site styles
   Colors, type and spacing come from the Ponte Consulting design system.
   Change a brand color once in :root and it updates everywhere. */

/* ---------- Fonts (self-hosted, OFL licensed) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light;
  --surface: #FFFFFF;
  --surface-alt: #F4F1EA;
  --surface-inverse: #13303A;
  --ink: #13303A;
  --ink-muted: #4A5E66;
  --ink-inverse: #F4F1EA;
  --ink-inverse-muted: #C9D3D6;
  --line: #DCDDD6;
  --line-strong: #13303A;
  --line-inverse: #24414B;
  --brand-soft: #1F4D5C;
  --accent: #B8862B;
  --accent-text: #8A6420;
  --accent-on-dark: #D9A84A;
  --stone: #E8E2D6;
  --chart-teal: #6FA3B2;
  --good: #2E7D5B;
  --warning: #9A5B00;
  --critical: #B3261E;
  --control: #4A5E66;

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-sans: Jost, "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 5vw, 64px);
  --section: 96px;
  --radius-sm: 2px;
  --radius-md: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 28px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--brand-soft); }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--ink-inverse); padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.section { padding: var(--section) var(--gutter); }
.section--alt { background: var(--surface-alt); }
.section--inverse { background: var(--surface-inverse); color: var(--ink-inverse); }
.container { max-width: 1200px; margin: 0 auto; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; padding-bottom: 48px; }
.section-head p { color: var(--ink-muted); }
.row { display: flex; flex-wrap: wrap; }

/* ---------- Type ---------- */
.eyebrow { font-size: 12px; line-height: 16px; letter-spacing: 0.24em; font-weight: 500; color: var(--accent-text); text-transform: uppercase; }
.eyebrow--muted { color: var(--ink-muted); }
.section--inverse .eyebrow { color: var(--accent-on-dark); }
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.display em { font-style: italic; font-weight: 500; }
.h1 { font-size: clamp(42px, 5vw, 62px); line-height: 1.08; }
.h2 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.1; }
.h3 { font-size: 30px; line-height: 36px; }
.title { font-size: 20px; line-height: 28px; font-weight: 500; }
.muted { color: var(--ink-muted); }
.small { font-size: 15px; line-height: 24px; }
.tiny { font-size: 13px; line-height: 20px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.figure { font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--radius-sm); border: 1px solid var(--ink); background: var(--ink); color: var(--ink-inverse); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; line-height: 20px; text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.btn:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--ink-inverse); }
.btn--sm { min-height: 44px; padding: 0 20px; }
.link-arrow { color: var(--brand-soft); font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.section--inverse .link-arrow { color: var(--ink-inverse); text-decoration-color: var(--accent-on-dark); }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.04em; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--stone); color: var(--ink); }
.tag--status { font-size: 11px; padding: 2px 8px; background: transparent; border: 1px solid currentColor; }
.tag--warning { color: var(--warning); }
.tag--good { color: var(--good); }
.keystone { flex: none; width: 10px; height: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--line); padding: 0 var(--gutter); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--brand-soft); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.nav-toggle { display: none; min-height: 44px; min-width: 44px; border: 1px solid var(--line-strong); background: transparent; border-radius: var(--radius-sm); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .logo img { height: 40px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 0 var(--gutter); }
.hero__arch { position: absolute; right: -180px; bottom: -40px; width: 1100px; height: auto; pointer-events: none; }
.hero .container { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 64px; padding: 56px 0 96px; }
@media (max-width: 600px) { .hero .container { padding-top: 40px; } }
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__copy p { max-width: 580px; color: var(--ink-muted); }
.hero__cta { padding-top: 8px; }
.results-card { flex: 1 1 380px; max-width: 460px; min-width: 0; background: var(--surface-alt); border-radius: var(--radius-md); padding: 28px; }
.results-card .eyebrow:first-child { padding-bottom: 12px; }
.result { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); }
.result__line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; font-size: 15px; line-height: 22px; }
.result__line .figure { font-size: 40px; line-height: 44px; }
.chips-static { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-static span { font-family: var(--font-mono); font-size: 13px; line-height: 20px; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--ink); color: var(--ink-inverse); }
.results-card__foot { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* ---------- What we connect ---------- */
.crossings { gap: 24px; }
.crossing { flex: 1 1 440px; min-width: 0; background: var(--surface); border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.crossing__diagram { display: flex; align-items: center; }
.node { flex: none; padding: 10px 14px; border: 1px solid var(--ink); border-radius: var(--radius-sm); font-size: 14px; line-height: 20px; font-weight: 500; }
.node--filled { background: var(--ink); color: var(--ink-inverse); }
.span-line { position: relative; flex: 1 1 24px; min-width: 24px; height: 1px; background: var(--ink); }
.span-line svg { position: absolute; left: 50%; top: -5px; margin-left: -6px; }
.crossing p { font-size: 15px; line-height: 24px; color: var(--ink-muted); }

/* ---------- Services ---------- */
.service { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 48px; padding: 32px 0; border-top: 1px solid var(--line); }
.service__head { flex: 1 1 300px; min-width: 0; display: flex; gap: 20px; align-items: flex-start; }
.service__head > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.icon { flex: none; width: 36px; height: 36px; margin-top: 4px; color: var(--brand-soft); }
.service__desc { flex: 1 1 360px; min-width: 0; max-width: 520px; color: var(--ink-muted); font-size: 15px; line-height: 24px; }
div.service__desc { display: flex; flex-direction: column; gap: 12px; }
.sister-note { color: var(--ink); font-size: 14px; line-height: 22px; }
.sister-note a { color: var(--brand-soft); text-decoration-color: var(--accent); text-underline-offset: 4px; font-weight: 500; }
.service__out { flex: 0 1 240px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* ---------- Calculators ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; }
.tab { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 20px; border-radius: var(--radius-sm); border: 1px solid var(--control); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer; }
.tab .mono { font-size: 12px; color: var(--accent-text); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.tab[aria-selected="true"] .mono { color: var(--accent-on-dark); }
.calc { gap: 24px; }
.panel { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 32px; background: var(--surface); border-radius: var(--radius-md); }
.panel--result { border: 1px solid var(--line); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 500; }
.field__hint { font-weight: 400; font-size: 13px; color: var(--ink-muted); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--control); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 16px; }
.input--num { font-family: var(--font-mono); }
.textarea { padding: 12px 14px; line-height: 24px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); }
.input[type="file"] { padding: 12px 14px; border-style: dashed; background: var(--surface-alt); font-size: 14px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0 0 12px; font-size: 14px; line-height: 20px; font-weight: 500; }
.big-figure { font-size: 56px; line-height: 60px; }
@media (max-width: 480px) { .big-figure { font-size: 44px; line-height: 48px; } .panel { padding: 24px; } }
.result-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 24px; }
.result-rows > div .mono { font-size: 14px; }
.result-rows > div.total { align-items: baseline; padding: 14px 0 0; border-top-color: var(--line-strong); font-weight: 500; }
.result-rows > div.total .mono { font-size: 24px; line-height: 28px; font-weight: 500; }

/* Charts */
.range { position: relative; height: 10px; background: var(--stone); border-radius: 2px; }
.range__band { position: absolute; top: 0; bottom: 0; background: var(--brand-soft); border-radius: 2px; }
.range__marker { position: absolute; top: -7px; width: 3px; height: 24px; margin-left: -1px; background: var(--accent); transition: left .2s ease; }
.axis { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.stack { display: flex; height: 16px; background: var(--stone); border-radius: 2px; overflow: hidden; }
.stack > div { transition: width .2s ease; }
.legend { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 10px; height: 10px; }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel__row { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 20px; }
.funnel__label { flex: 0 0 104px; color: var(--ink-muted); }
.funnel__track { flex: 1 1 auto; height: 14px; background: var(--surface-alt); border-radius: 2px; }
.funnel__bar { display: block; height: 100%; border-radius: 2px; transition: width .2s ease; }
.funnel__val { flex: 0 0 56px; text-align: right; font-family: var(--font-mono); }

/* Chips (pill toggles built on real radios and checkboxes) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--control); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; font-weight: 500; line-height: 20px; cursor: pointer; user-select: none; }
.chip--mono span { font-family: var(--font-mono); min-width: 64px; justify-content: center; }
.chip input:checked + span { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip--check span::before { content: "+"; font-family: var(--font-mono); font-size: 13px; }
.chip--check input:checked + span::before { content: "\2713"; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }

/* ---------- Process ---------- */
.steps { gap: 0 32px; }
.step { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px 0 32px; border-top: 1px solid var(--line-strong); }
.step .icon { width: 32px; height: 32px; margin: 0; }
.step h3 { font-size: 28px; line-height: 34px; }

/* ---------- Pricing ---------- */
.pricing { gap: 48px 64px; }
.pricing__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pricing__intro p { color: var(--ink-muted); }
.paths { flex: 2 1 560px; min-width: 0; gap: 24px; }
.path { flex: 1 1 260px; min-width: 0; background: var(--surface); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.path p { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.keylist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 24px; }
.keylist li { display: flex; gap: 12px; align-items: baseline; }

/* ---------- About ---------- */
.about { gap: 48px 64px; align-items: flex-start; }
.about__photo { flex: 0 1 420px; max-width: 100%; min-width: 240px; aspect-ratio: 5 / 4; height: auto; border-radius: var(--radius-md); background: var(--stone); object-fit: cover; width: 100%; }
.about__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about__text p { max-width: 640px; }
.highlights { gap: 16px; padding-top: 8px; }
.highlight { flex: 1 1 200px; min-width: 0; background: var(--surface-alt); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.highlight .figure { font-size: 28px; line-height: 32px; }
.highlight strong { font-size: 16px; line-height: 22px; font-weight: 500; }
.highlight span:last-child { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- Case studies and testimonials ---------- */
.cards { gap: 24px; }
.card { flex: 1 1 320px; min-width: 0; background: var(--surface); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.section--alt .card { background: var(--surface); }
.quote { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 26px; line-height: 34px; }

/* ---------- Testimonials ---------- */
.testimonial { margin: 0; background: var(--surface); border-radius: var(--radius-md); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 32px; max-width: 980px; }
.testimonial__mark { width: 48px; height: 36px; grid-row: span 2; margin-top: 8px; }
.testimonials { display: flex; flex-direction: column; gap: 24px; }
.testimonial__quote p + p { margin-top: 0.8em; }
.testimonial__quote { margin: 0; font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: clamp(20px, 2.1vw, 25px); line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.testimonial__by { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.testimonial__by strong { font-weight: 500; }
.testimonial__by span { color: var(--ink-muted); }
@media (max-width: 600px) { .testimonial { grid-template-columns: minmax(0, 1fr); } .testimonial__mark { grid-row: auto; width: 36px; height: 27px; } }
.case-studies .card { background: var(--surface); }

/* ---------- Contact ---------- */
.contact { gap: 48px 64px; align-items: flex-start; }
.contact__intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact__intro p { color: var(--ink-inverse-muted); }
.contact__email { font-family: var(--font-mono); font-size: 14px; color: var(--ink-inverse); text-decoration: none; }
.form-card { flex: 2 1 560px; min-width: 0; background: var(--surface); color: var(--ink); border-radius: var(--radius-md); padding: clamp(24px, 4vw, 40px); }
.form { display: flex; flex-direction: column; gap: 28px; }
.form legend { font-size: 15px; line-height: 24px; }
.form legend .mono { font-size: 12px; color: var(--accent-text); padding-right: 8px; }
.fields { display: flex; flex-wrap: wrap; gap: 16px; }
.fields > .field { flex: 1 1 220px; min-width: 0; }
.uploads .input + .input { margin-top: 4px; }
.add-file { align-self: flex-start; background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; font: inherit; font-size: 15px; }
.field__hint.is-error { color: var(--critical); font-weight: 500; }
.subq { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface-alt); border-radius: var(--radius-sm); margin-top: 16px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.form__foot p { flex: 1 1 280px; font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 64px var(--gutter) 40px; background: var(--surface-inverse); color: var(--ink-inverse-muted); border-top: 1px solid var(--line-inverse); }
.site-footer .container { display: flex; flex-direction: column; gap: 32px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer__top img { height: 44px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.site-footer nav a { color: var(--ink-inverse); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-decoration-color: var(--accent-on-dark); text-underline-offset: 6px; }
.site-footer p { max-width: 760px; font-size: 13px; line-height: 20px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; border-top: 1px solid var(--line-inverse); padding-top: 20px; }

/* ---------- Simple pages (thanks, 404) ---------- */
.simple { min-height: 70vh; display: flex; align-items: center; padding: 96px var(--gutter); }
.simple .container { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin: 0 auto; }
