/* ============================================================
   Centry Advisors
   Brand blue + Poppins carried over from the logo; layout is a
   refresh: editorial, left-aligned, hairline rules, big type.
   ============================================================ */

:root {
  --brand:       #2b7cc4;   /* sampled from the logo bars */
  --brand-dark:  #1f5f99;
  --brand-light: #6fa8dc;
  --brand-wash:  #eef4fb;

  --ink:         #3d4650;   /* logo wordmark grey */
  --ink-strong:  #1d242c;
  --ink-soft:    #6b7885;
  --line:        #e3e8ed;
  --line-dark:   rgba(255, 255, 255, .14);

  --bg:          #ffffff;
  --bg-tint:     #f6f8fa;
  --bg-dark:     #131a22;

  /* Drives both the sticky bar's translucency and the logo's, so the logo
     never floats on top looking more solid than the bar behind it. */
  --nav-alpha: .93;

  --wrap:   1240px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(29, 36, 44, .05), 0 12px 32px rgba(29, 36, 44, .07);

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --hero-image: url("assets/hero.jpg");
}

/* ───────── Reset ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink-strong); line-height: 1.14; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1.15em; }
a { color: var(--brand); }
ol, ul { list-style: none; margin: 0; padding: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 18px;
  border-radius: var(--radius); text-decoration: none; transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }
@media (max-width: 640px) { .wrap { padding-inline: 20px; } }

/* Scroll reveal, disabled under reduced motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 13.5px; font-weight: 500;
  letter-spacing: .075em; text-transform: uppercase; text-decoration: none;
  padding: 14px 28px;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--brand); border-color: #c8d6e3; }
.btn--ghost:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn--onDark:hover { background: #fff; color: var(--ink-strong); border-color: #fff; }
.btn--lg { padding: 17px 36px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ───────── Navigation ───────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, var(--nav-alpha));
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .22s ease, border-color .22s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 16px rgba(29,36,44,.07); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 88px; }
.nav__logo { display: block; flex: 0 0 auto; }
.nav__logo img { width: 208px; height: auto; opacity: var(--nav-alpha); }

.nav__menu { display: flex; align-items: center; gap: 44px; }
.nav__list { display: flex; align-items: center; gap: 34px; }
.nav__list a {
  position: relative; display: block;
  color: var(--ink); text-decoration: none;
  font-size: 13.5px; font-weight: 500; letter-spacing: .085em; text-transform: uppercase;
  padding-block: 4px;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav__list a:hover { color: var(--ink-strong); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__list a.is-active { color: var(--ink-strong); }

.nav__toggle {
  display: none; position: relative;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--ink-strong);
}
.nav__toggle-bar, .nav__toggle-bar::before, .nav__toggle-bar::after {
  position: absolute; left: 10px; width: 24px; height: 2px;
  background: currentColor; transition: transform .2s ease, background-color .2s ease;
}
.nav__toggle-bar { top: 21px; }
.nav__toggle-bar::before { content: ""; top: -7px; left: 0; }
.nav__toggle-bar::after  { content: ""; top:  7px; left: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__inner { min-height: 72px; }
  .nav__logo img { width: 168px; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; inset: 100% 0 auto 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 4px 28px 26px; box-shadow: 0 16px 28px rgba(29,36,44,.09);
  }
  .nav__menu.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav__list a::after { display: none; }
  .nav__cta { margin-top: 20px; text-align: center; }
}

/* ───────── Hero ───────── */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(92vh, 780px); overflow: hidden; background: var(--bg-dark); }
.hero__media {
  position: absolute; inset: 0;
  background-image: var(--hero-image);
  background-size: cover; background-position: center 38%;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(15,22,30,.92) 0%, rgba(15,22,30,.72) 46%, rgba(15,22,30,.34) 100%),
    linear-gradient(180deg, rgba(15,22,30,.5) 0%, rgba(15,22,30,0) 34%);
}
.hero__content { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(96px, 13vw, 150px); }
.hero__kicker {
  color: var(--brand-light);
  font-size: 12.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  margin-bottom: 1.6em;
}
.hero__title {
  color: #fff; font-weight: 600;
  font-size: clamp(2.75rem, 7.4vw, 5.6rem);
  letter-spacing: -.028em; line-height: 1.02;
  max-width: 15ch; margin-bottom: .3em;
}
.hero__accent { color: var(--brand-light); }
.hero__sub {
  color: rgba(255,255,255,.8); font-weight: 300;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem); line-height: 1.6;
  max-width: 46ch; margin-bottom: 2.4em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats { position: relative; border-top: 1px solid var(--line-dark); background: rgba(10,15,21,.42); backdrop-filter: blur(4px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); }
.stat {
  background: transparent; padding: 30px 26px 30px 0;
  display: flex; flex-direction: column; gap: 5px;
}
.stat + .stat { padding-left: 26px; box-shadow: -1px 0 0 var(--line-dark); }
.stat__num { color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.stat__label { color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.45; }

@media (max-width: 780px) {
  .hero { min-height: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 18px 22px 0; }
  .stat + .stat { padding-left: 18px; }
  .stats .stat:nth-child(odd) { box-shadow: none; padding-left: 0; }
  .stats .stat:nth-child(n+3) { box-shadow: -1px 0 0 var(--line-dark), 0 -1px 0 var(--line-dark); }
  .stats .stat:nth-child(3) { box-shadow: 0 -1px 0 var(--line-dark); }
  .hero__actions .btn { flex: 1 1 auto; text-align: center; }
}

/* ───────── Section scaffolding ───────── */
.section { padding-block: clamp(72px, 10vw, 132px); }
.section--tint { background: var(--bg-tint); border-block: 1px solid var(--line); }
.section--dark { background: var(--bg-dark); color: rgba(255,255,255,.68); }

/* Two-column heading rail */
.split { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.split__aside { position: sticky; top: 118px; }
.split__main { max-width: 74ch; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 12px; }
  .split__aside { position: static; }
}

.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1em;
}
.eyebrow--light { color: var(--brand-light); }

.display {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 600; letter-spacing: -.022em; line-height: 1.18;
  margin-bottom: .7em;
}
.display--light { color: #fff; }

.deck {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem); font-weight: 300; line-height: 1.6;
  max-width: 52ch; color: rgba(255,255,255,.7); margin-bottom: 0;
}
.deck--dark { color: var(--ink-soft); }

.prose { color: var(--ink-soft); }
.prose__pull {
  margin-top: 1.8em; padding-left: 22px;
  border-left: 3px solid var(--brand);
  color: var(--ink-strong); font-size: 1.15rem; font-weight: 500;
}
.note { margin: 2.6em 0 0; font-size: 14px; color: var(--ink-soft); font-style: italic; }

/* ───────── Services ───────── */
.services { margin-top: clamp(48px, 6vw, 76px); border-top: 1px solid var(--line-dark); }
.service {
  display: grid; grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(30px, 3.6vw, 44px);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color .25s ease;
}
.service:hover { background: rgba(255,255,255,.032); }
.service__num {
  color: var(--brand-light); font-size: 14px; font-weight: 500;
  letter-spacing: .1em; padding-top: .5em;
}
.service__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(12px, 3vw, 44px); align-items: start; }
.service h3 { color: #fff; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -.01em; margin: 0; }
.service p { color: rgba(255,255,255,.62); font-size: 15.5px; margin: 0; }

@media (max-width: 860px) {
  .service { grid-template-columns: 54px minmax(0, 1fr); }
  .service__body { grid-template-columns: 1fr; gap: 10px; }
}

/* ───────── Cases ───────── */
.cases {
  margin-top: clamp(44px, 5vw, 68px);
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.case {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.case:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(29,36,44,.06), 0 18px 40px rgba(29,36,44,.1); }
.case__tag {
  font-size: 11.5px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1.2em;
}
.case__title { font-size: 1.22rem; font-weight: 500; margin-bottom: .6em; }
.case__body { color: var(--ink-soft); font-size: 15.5px; }
.case__metric {
  margin: auto 0 0; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 1.3rem; font-weight: 600; color: var(--ink-strong);
}

/* ───────── Founder ───────── */
.founder { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 5.5vw, 80px); align-items: start; }
.founder__photo { margin: 0; }
/* height:auto is load-bearing: without it the img falls back to its height
   attribute and stretches. aspect-ratio + object-position keep the framing
   sane if a photo that isn't exactly 4:5 gets dropped in later. */
.founder__photo img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center 22%;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.founder__role { color: var(--brand); font-weight: 500; letter-spacing: .03em; margin: -.5em 0 1.8em; }
.founder__body > p { color: var(--ink-soft); }

.creds { margin: 2.2em 0; display: grid; gap: 11px; }
.creds li { display: flex; align-items: baseline; gap: 15px; font-size: 15px; color: var(--ink-soft); }
.creds span {
  flex: 0 0 auto; min-width: 66px; text-align: center;
  background: var(--brand-wash); color: var(--brand-dark);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px;
}

@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 320px; }
}

/* ───────── Contact ───────── */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__intro > p { color: var(--ink-soft); }

.contact__form {
  background: var(--bg-tint); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(26px, 3.6vw, 40px);
}
/* Formspree honeypot. Offscreen rather than display:none so bots still fill it.
   Kept in CSS, not a style attribute, so the CSP needs no 'unsafe-inline'. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.field { margin-bottom: 20px; }
.field label {
  display: block; margin-bottom: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px;
  font-family: var(--font); font-size: 16px; color: var(--ink-strong);
  background: #fff; border: 1px solid #d3dde6; border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43,124,196,.17);
  outline: none;
}
.field textarea { resize: vertical; min-height: 128px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c0392b; }
.field__error { margin: 7px 0 0; font-size: 13px; color: #c0392b; }

.form__status { margin: 16px 0 0; font-size: 15px; min-height: 1.5em; }
.form__status.is-ok    { color: #1c7a45; }
.form__status.is-error { color: #c0392b; }

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

/* ───────── Footer ───────── */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.6); padding-block: 60px 34px; }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 28px 40px; padding-bottom: 34px; border-bottom: 1px solid var(--line-dark);
}
.footer p { margin: 0; }
.footer__brandcol { max-width: 46ch; }
.footer__brand { color: #fff; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 15px; margin-bottom: 8px !important; }
.footer__tag { font-size: 14px; font-weight: 300; max-width: 34ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 2px 26px; margin-block: -10px; }
.footer__nav a { display: inline-block; padding-block: 10px; color: rgba(255,255,255,.6); text-decoration: none; font-size: 13.5px; letter-spacing: .04em; }
.footer__nav a:hover { color: #fff; }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 26px; font-size: 13px; color: rgba(255,255,255,.55);
}
