/* Calyer Consulting: one-page site
   Self-hosted fonts (SIL OFL): Source Serif 4, IBM Plex Sans */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand: matches the Calyer logo and LinkedIn banner */
  --navy-deep: #0d1a29;
  --navy: #14263a;
  --navy-logo: #17293b;
  --navy-soft: #1e3450;
  --brass: #c39641;        /* logo dot */
  --brass-hover: #d1a756;
  --brass-ink: #805a1f;    /* brass for text on light backgrounds (AA) */
  --paper: #f3f5f7;
  --white: #ffffff;
  --ink: #142133;
  --slate: #4a5567;
  --rule: #d8dde4;
  --on-navy: #e8ecf2;
  --on-navy-muted: #a7b2c2;
  --rule-navy: rgba(255, 255, 255, 0.12);

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --header-h: 4.25rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
a { color: inherit; }
cite { font-style: italic; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--brass); color: var(--navy-deep);
  padding: .6rem 1rem; border-radius: 4px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.4rem;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none; border-radius: 4px;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-brass, .btn-small { background: var(--brass); color: var(--navy-deep); }
.btn-brass:hover, .btn-small:hover { background: var(--brass-hover); }
.btn-ghost { color: var(--on-navy); border-color: rgba(232, 236, 242, .35); }
.btn-ghost:hover { border-color: var(--brass); color: var(--white); }
.btn-small { min-height: 2.5rem; padding: .5rem 1rem; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.wordmark {
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--white); text-decoration: none;
  font-family: var(--sans); font-size: 1.15rem; font-weight: 600; letter-spacing: -.005em;
}
.mark { width: 2.1rem; height: 2.1rem; flex: none; }
.mark-bg { fill: var(--navy-logo); stroke: rgba(255, 255, 255, .18); stroke-width: 6; }
.mark-c { fill: #fff; }
.mark-dot { fill: var(--brass); }

nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--on-navy-muted); text-decoration: none; font-size: .9375rem; font-weight: 500; white-space: nowrap;
  padding-block: .25rem; border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); border-bottom-color: var(--brass); }

/* Narrower screens: logo and button on top, section links on a second, swipeable row */
@media (max-width: 1180px) {
  :root { --header-h: 7.25rem; }
  .header-inner { flex-wrap: wrap; row-gap: 0; padding-top: .7rem; min-height: 0; }
  nav { display: contents; }
  .nav-links {
    order: 3; flex: 1 0 100%;
    gap: 1.4rem; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: .65rem var(--gutter) .75rem;
    border-top: 1px solid rgba(255, 255, 255, .07); margin-top: .7rem;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links li:last-child { padding-right: 2rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 450;
  line-height: 1.05;
  letter-spacing: -.022em;
  max-width: 17ch;
}
.lede {
  margin-top: 1.6rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--on-navy);
  max-width: 37rem;
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }
.hero-note { margin-top: 1.4rem; font-size: .9375rem; color: var(--on-navy-muted); }

/* headshot with the concentric rings from the LinkedIn banner */
.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 27rem; justify-self: center; }
.rings { position: absolute; inset: -30%; width: 160%; height: 160%; z-index: -1; overflow: visible; }
.rings circle { fill: none; stroke: rgba(255, 255, 255, .075); stroke-width: 1.6; }
.rings .ring-dot { fill: var(--brass); stroke: none; }
.hero-photo {
  position: absolute; inset: 0; margin: auto;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 60px rgba(0, 0, 0, .35);
}

/* Tablets and narrow windows: headshot stays to the right of the headline */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(8.5rem, 26vw, 13rem);
    grid-template-areas: "title photo" "body body";
    gap: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
  }
  .hero-copy { display: contents; }
  .hero-copy h1 { grid-area: title; align-self: center; }
  .hero-copy > :not(h1) { grid-column: 1 / -1; }
  .hero-copy > .lede, .hero-copy > .hero-note { margin-top: 0; }
  .hero-copy > .actions { margin-top: .5rem; }
  .hero-visual { grid-area: photo; align-self: center; max-width: none; }
  .rings { inset: -26%; width: 152%; height: 152%; }
}
/* Phones: stack, photo above the headline */
@media (max-width: 520px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "photo" "title" "body"; }
  .hero-visual { max-width: 11rem; justify-self: start; }
}

.framework-strip {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-navy);
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
}
.framework-strip p { font-size: .9375rem; color: var(--on-navy-muted); }
.framework-strip ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.framework-strip li {
  font-size: .875rem; font-weight: 500; color: var(--on-navy);
  padding: .3rem .75rem; border: 1px solid rgba(195, 150, 65, .45); border-radius: 999px;
  white-space: nowrap;
}

/* one orchestrated moment: the hero settles in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .22s; }
  .hero-visual { animation: fade 1s .2s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head p, .split-head p { margin-top: 1rem; color: var(--slate); font-size: 1.125rem; }

/* Seats */
.seat-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1060px) { .seat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .seat-grid { grid-template-columns: 1fr; } }
.seat-grid li { border-top: 3px solid var(--brass); padding-top: 1.4rem; }
.seat-grid h3 { font-size: 1.4rem; font-weight: 500; }
.seat-grid p { margin-top: .7rem; color: var(--slate); font-size: 1rem; }

/* Triggers */
.triggers { background: var(--paper); }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-head { position: sticky; top: calc(var(--header-h) + 2.5rem); }
@media (max-width: 860px) { .split-head { position: static; } }

.trigger-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.trigger-list li {
  position: relative;
  padding: 1.1rem 0 1.1rem 2rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-size: clamp(1.12rem, 1.8vw, 1.3rem); line-height: 1.4; font-weight: 420;
}
.trigger-list li::before {
  content: ""; position: absolute; left: 0; top: 1.8rem;
  width: .85rem; height: 1px; background: var(--brass-ink);
}

/* Services */
.service-grid {
  display: grid; gap: 0 clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .service-grid { grid-template-columns: 1fr; } }
.service-grid article { padding-block: 1.6rem 2.2rem; border-top: 2px solid var(--navy); }
.service-grid p { margin-top: .7rem; color: var(--slate); font-size: 1rem; }

/* Compliance (dark band) */
.compliance { background: var(--navy); color: var(--on-navy); }
.compliance h2 { color: var(--white); }
.compliance .section-head p { color: var(--on-navy); }
.compliance-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 900px) { .compliance-grid { grid-template-columns: 1fr; } }
.col-title { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--on-navy-muted); letter-spacing: 0; margin-bottom: 1rem; }

.lifecycle { list-style: none; margin: 0; padding: 0; counter-reset: stage; border-top: 1px solid var(--rule-navy); }
.lifecycle li {
  counter-increment: stage; position: relative;
  padding: 1.1rem 0 1.1rem 3rem; border-bottom: 1px solid var(--rule-navy);
  font-size: 1rem; color: var(--on-navy-muted);
}
.lifecycle li::before {
  content: counter(stage); position: absolute; left: 0; top: .95rem;
  font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--brass);
}
.lifecycle strong { display: block; color: var(--white); font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin-bottom: .2rem; }

.framework-guide { margin: 0; border-top: 1px solid var(--rule-navy); }
.framework-guide > div { display: grid; grid-template-columns: 12.5rem 1fr; gap: .25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-navy); }
.framework-guide dt { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--brass); line-height: 1.35; }
.framework-guide dd { margin: 0; font-size: .975rem; color: var(--on-navy); }
@media (max-width: 520px) { .framework-guide > div { grid-template-columns: 1fr; } }

/* Track record */
.case-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 920px) { .case-grid { grid-template-columns: 1fr; } }
.case {
  background: var(--paper);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border-radius: 6px;
  border-top: 3px solid var(--brass);
}
.case h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 500; margin-bottom: 1.1rem; }
.case p { font-size: 1rem; color: var(--slate); }
.case-more { margin-top: 1.4rem !important; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: .9375rem !important; }

.ledger {
  list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem);
}
@media (max-width: 860px) { .ledger { grid-template-columns: 1fr; } }
.ledger li { display: grid; grid-template-columns: 7.75rem 1fr; gap: 1.25rem; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.ledger strong {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.1;
  color: var(--navy); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.015em; white-space: nowrap;
}
.ledger span { color: var(--slate); font-size: 1rem; line-height: 1.5; }
@media (max-width: 480px) { .ledger li { grid-template-columns: 1fr; gap: .2rem; } }

/* Process */
.process { background: var(--paper); }
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; position: relative; padding-top: 4.25rem; border-top: 1px solid var(--rule); }
.steps li::before {
  content: counter(step);
  position: absolute; top: .9rem; left: 0;
  font-family: var(--serif); font-size: 2.6rem; font-weight: 400; line-height: 1;
  color: var(--brass-ink); font-variant-numeric: lining-nums;
}
.steps p { margin-top: .6rem; color: var(--slate); font-size: 1rem; }

/* About */
.about-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy { max-width: 42rem; }
.about-copy h2 { margin-bottom: 1.5rem; }
.about-copy p { font-size: 1.0625rem; }
.about-copy p:first-of-type { font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.4rem); line-height: 1.5; font-weight: 420; color: var(--ink); }
.about-copy p:not(:first-of-type) { color: var(--slate); }
.about-side { padding-top: .6rem; }
.about-side h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; color: var(--slate); letter-spacing: 0; margin-bottom: .75rem; }
.career { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.career li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.career .yr { grid-row: span 2; color: var(--brass-ink); font-size: .9375rem; font-variant-numeric: tabular-nums; padding-top: .1rem; }
.career .role { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.career .org { color: var(--slate); font-size: .9375rem; }

/* FAQ */
.faq { background: var(--paper); }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.2rem 2.5rem 1.2rem 0;
  font-family: var(--serif); font-size: clamp(1.12rem, 1.8vw, 1.3rem); font-weight: 500; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem;
  border-right: 2px solid var(--brass-ink); border-bottom: 2px solid var(--brass-ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list summary:hover { color: var(--navy-soft); }
.faq-list details p { padding: 0 2.5rem 1.4rem 0; color: var(--slate); }

/* Contact */
.contact {
  background: var(--navy); color: var(--on-navy);
  padding-block: clamp(4rem, 9vw, 6.5rem);
  border-top: 3px solid var(--brass);
}
.contact h2 { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.25rem); font-weight: 450; letter-spacing: -.02em; }
.contact p { margin-top: 1rem; max-width: 36rem; color: var(--on-navy); font-size: 1.125rem; }
@media (max-width: 420px) { .contact .btn { width: 100%; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-size: .875rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.75rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: var(--brass); }

/* 404 */
.page-404 { min-height: 100vh; display: flex; align-items: center; }

@media print {
  .site-header, .rings { display: none; }
  .hero, .compliance, .contact, .site-footer { background: none; color: #000; }
  .hero h1, .compliance h2, .contact h2, .lifecycle strong { color: #000; }
}
