/* ============================================================
   A Centered Practice — editorial design system
   "Literary journal beside a bonfire": warm parchment, Fraunces
   serif, near-monochrome with one signal-blue outlined action.
   ============================================================ */

:root {
  /* Colors */
  --parchment: #fefffc;
  --paper: #ffffff;
  --linen: #f9faf7;
  --ink-black: #171717;
  --graphite: #2c2c2c;
  --charcoal: #444141;
  --ash: #646464;
  --fog: #b4b8b4;
  --mist: #dee2de;
  --twilight: #282834;
  --dusk: #1f1f29;
  --signal-blue: #41a1cf;
  --cerulean: #0081c0;
  --xref: #a9aca6;

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Shape */
  --r-btn: 8px;
  --r-card: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Elevation */
  --sh-card: rgba(0,0,0,0.08) 0px 1px 1px 0px, rgba(0,0,0,0.08) 0px 4px 5px 0px;
  --sh-diagram: rgba(0,0,0,0.05) 0px 1px 8px 0px;
  --sh-nav: rgba(0,0,0,0.15) 0px 2px 6px 0px;

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--charcoal); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--graphite); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--signal-blue); outline-offset: 3px; border-radius: 4px; }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.bg-paper { background: var(--paper); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.xref { color: var(--xref); border-bottom: 1px solid #cdd0cb; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ash); }
.muted { color: var(--ash); }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--dusk); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 16px; top: 16px; }

/* Type scale */
.display { font-size: 54px; line-height: 1.1; }
.h-lg { font-size: 48px; line-height: 1.1; }
.h { font-size: 40px; line-height: 1.1; }
.h-sm { font-size: 27px; line-height: 1.2; }

/* ---------- Navigation pill ---------- */
.nav {
  position: sticky; top: 20px; z-index: 100;
  display: flex; justify-content: center; pointer-events: none;
  padding: 0 20px;
}
.nav__pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 26px;
  padding: 9px 9px 9px 20px;
  border-radius: 50px;
  border: 1px solid var(--twilight);
  background: rgba(249,250,247,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-nav);
  max-width: calc(100% - 0px);
}
/* On-hero (transparent, light text) styling applies ONLY until scrolled past
   the hero. Adding .nav--solid drops these, so the pill falls back to the base
   light style and its text stays legible over white sections. */
.nav--onhero:not(.nav--solid) .nav__pill { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.10); }
.nav__pill { transition: background .25s ease, border-color .25s ease; }
.nav__brand, .nav__link, .nav__toggle { transition: color .25s ease; }
.nav__brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: var(--twilight); white-space: nowrap; }
.nav--onhero:not(.nav--solid) .nav__brand, .nav--onhero:not(.nav--solid) .nav__menu a.nav__link { color: var(--parchment); }
.nav__menu { display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--twilight); }
.nav__link:hover { color: var(--signal-blue); }
.nav__toggle { display: none; color: var(--twilight); }
.nav--onhero:not(.nav--solid) .nav__toggle { color: var(--parchment); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; border-radius: var(--r-btn); border: 1px solid transparent; padding: 9px 16px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn__arw { width: 20px; height: 20px; border-radius: 50%; border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; }
.btn--dark { background: var(--dusk); border-color: var(--twilight); color: #fff; padding-left: 18px; }
.btn--dark:hover { background: #14141c; }
.btn--blue { background: transparent; border-color: var(--signal-blue); color: var(--signal-blue); }
.btn--blue:hover { background: rgba(65,161,207,0.08); }
.btn--outline { background: transparent; border-color: var(--twilight); color: var(--twilight); }
.btn--outline:hover { background: var(--linen); }
.btn--onhero.btn--blue { border-color: #7fc4e4; color: #bfe4f4; }
.btn--onhero.btn--ghost { color: var(--parchment); }
.btn--ghost { background: transparent; border: none; color: var(--twilight); font-size: 16px; padding: 0; }
.btn--ghost:hover { color: var(--signal-blue); }
.btn--white { border-color: rgba(255,255,255,0.8); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 760px; margin-top: -68px; padding-top: 68px; overflow: hidden; display: flex; align-items: flex-end; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(22,24,28,0.52) 0%, rgba(22,24,28,0.10) 20%, rgba(22,24,28,0) 42%, rgba(22,24,28,0.16) 68%, rgba(22,24,28,0.55) 100%),
  linear-gradient(90deg, rgba(22,24,28,0.42) 0%, rgba(22,24,28,0.06) 48%, rgba(22,24,28,0) 70%); }
.hero__inner { position: relative; width: 100%; padding-bottom: 52px; padding-top: 120px; }
.hero__card {
  width: min(610px, 100%);
  padding: 42px; border-radius: var(--r-xl);
  background: rgba(28,20,26,0.32);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.16);
}
.hero__card .eyebrow { color: rgba(254,255,252,0.82); }
.hero__card h1 { color: var(--parchment); font-size: 56px; line-height: 1.06; margin: 16px 0 14px; }
.hero__card p { color: rgba(254,255,252,0.85); font-size: 17px; line-height: 1.5; max-width: 470px; }
.hero__cta { display: flex; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.hero__meta { position: absolute; top: 30px; right: 40px; display: flex; align-items: center; gap: 8px; color: rgba(254,255,252,0.9); font-size: 14px; font-weight: 500; z-index: 3; }

/* page header (interior pages, no photo) */
.pagehead { padding: 150px 0 56px; }
.pagehead__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: end; }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--r-card); box-shadow: var(--sh-card); padding: 28px; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.svc-card { display: flex; flex-direction: column; gap: 14px; }
.svc-card h3 { font-size: 27px; }
.svc-card__icon { color: var(--twilight); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section__head .stack { display: flex; flex-direction: column; gap: 14px; }

/* editorial statement */
.statement { font-size: 54px; line-height: 1.14; max-width: 1000px; color: var(--graphite); }
.statement--sm { font-size: 44px; }
.cols { display: flex; gap: 64px; margin-top: 44px; max-width: 860px; flex-wrap: wrap; }
.cols > div { flex: 1; min-width: 240px; }

/* team */
.team-card { display: flex; gap: 22px; align-items: center; }
.avatar { flex: none; width: 88px; height: 88px; border-radius: var(--r-card); background: var(--linen); border: 1px solid var(--mist); display: flex; align-items: center; justify-content: center; }
.avatar span { font-family: var(--serif); font-size: 34px; color: var(--signal-blue); }

/* cerulean panel */
.cerulean { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--cerulean); padding: 80px; min-height: 400px; }
.cerulean h2 { font-size: 48px; line-height: 1.12; color: #fff; margin: 18px 0 20px; max-width: 720px; }
.cerulean .eyebrow { color: rgba(255,255,255,0.85); }
.cerulean p { position: relative; }
.notif { position: absolute; right: 56px; top: 118px; width: 280px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); box-shadow: rgba(0,0,0,0.12) 0px 8px 24px 0px; display: flex; gap: 12px; align-items: flex-start; }
.notif__ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #eaf5fb; display: flex; align-items: center; justify-content: center; }

/* diagram card */
.diagram { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.frame { border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--mist); box-shadow: var(--sh-diagram); overflow: hidden; }
.frame__bar { height: 34px; border-bottom: 1px solid #eef0ec; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.frame__bar span { width: 9px; height: 9px; border-radius: 50%; background: #e6e8e4; }
.frame__body { padding: 34px 40px; }
.tickmark { color: var(--fog); }

/* tags */
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag { font-size: 13px; color: var(--charcoal); border: 1px solid var(--mist); border-radius: 8px; padding: 5px 12px; background: var(--linen); }

/* stat row */
.stats { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.stat { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 8px; padding-left: 40px; }
.stat:first-child { padding-left: 0; }
.stat__n { font-family: var(--serif); font-size: 45px; line-height: 1; color: var(--graphite); }
.stat__l { font-size: 14px; color: var(--ash); }
.divider-v { width: 1px; height: 56px; background: var(--mist); }

/* service detail rows */
.svc-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 36px; align-items: center; }
.svc-row h2 { font-size: 32px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--mist); padding: 22px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--serif); font-size: 24px; color: var(--graphite); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 26px; height: 26px; position: relative; }
.faq summary .plus::before, .faq summary .plus::after { content: ''; position: absolute; background: var(--signal-blue); transition: transform .2s; }
.faq summary .plus::before { left: 0; top: 12px; width: 26px; height: 2px; }
.faq summary .plus::after { left: 12px; top: 0; width: 2px; height: 26px; }
.faq details[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq p { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--charcoal); max-width: 720px; }

/* ---------- Forms (paper) ---------- */
.form-card { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--r-lg); box-shadow: var(--sh-card); padding: 40px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--ash); letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  background: var(--linen); border: none; border-bottom: 1px solid var(--charcoal);
  border-radius: 0; padding: 12px 4px; font-size: 16px; color: var(--charcoal);
  font-family: var(--sans); width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ash); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--signal-blue); box-shadow: 0 1px 0 0 var(--signal-blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--paper); border-top: 1px solid var(--mist); padding: 88px 0 60px; }
.footer__statement { font-size: 48px; line-height: 1.15; max-width: 900px; color: var(--graphite); }
.footer__cols { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-top: 44px; }
.footer__links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--charcoal); }
.footer__col a { color: var(--charcoal); }
.footer__col a:hover { color: var(--signal-blue); }
.footer__col .lbl { color: var(--ash); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer__legal { max-width: var(--maxw); margin: 40px auto 0; padding: 24px 40px 0; border-top: 1px solid var(--mist); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ash); flex-wrap: wrap; }

/* book-edge divider */
.edge { height: 14px; background: var(--paper); border-top: 1px solid var(--mist); border-bottom: 1px solid #eef0ec; }

/* map */
.map { border: 1px solid var(--mist); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-card); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; right: 24px; bottom: 24px; z-index: 120;
  background: var(--paper); border: 1px solid var(--mist); border-radius: var(--r-card);
  box-shadow: var(--sh-diagram); padding: 12px 16px;
  display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--charcoal);
  max-width: calc(100vw - 48px);
}
.cookie[hidden] { display: none; }
.cookie button { background: none; border: none; font: inherit; cursor: pointer; color: var(--ash); }
.cookie button.accept { color: var(--twilight); font-weight: 500; }
.cookie .sep { width: 1px; height: 16px; background: var(--mist); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .display { font-size: 46px; }
  .h-lg { font-size: 40px; }
  .statement { font-size: 42px; }
  .hero__card h1 { font-size: 46px; }
  .diagram { grid-template-columns: 1fr; }
  .pagehead__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__statement { font-size: 38px; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 24px; }
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 16px; }
  .stat { padding-left: 0; }
  .divider-v { display: none; }
  .cerulean { padding: 40px 28px; }
  .cerulean h2 { font-size: 34px; }
  .notif { position: static; width: auto; margin-bottom: 24px; }
  .nav__menu { display: none; }
  .nav__pill.open { flex-direction: column; align-items: stretch; border-radius: 20px; gap: 14px; padding: 16px 18px; }
  .nav__pill.open .nav__menu { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .nav__pill.open .nav__links { flex-direction: column; gap: 14px; }
  .nav__pill.open .btn--dark { justify-content: center; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 6px; }
  .nav__pill { justify-content: space-between; width: 100%; }
  .hero__meta { display: none; }
}
@media (max-width: 560px) {
  .display, .hero__card h1 { font-size: 38px; }
  .h, .h-lg, .statement { font-size: 32px; }
  .section { padding: 56px 0; }
  .hero__card { padding: 28px; }
  .footer__statement { font-size: 30px; }
  .cookie { left: 16px; right: 16px; bottom: 16px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
