/* =========================================================
   15A Capital — styles
   White base, blue accents only. Editorial, restrained.
   ========================================================= */

:root {
  --white: #ffffff;
  --tint: #f5f8fd;           /* faint blue section wash */
  --tint-strong: #eef3fc;
  --ink: #0e1a2b;            /* near-black with blue depth */
  --ink-soft: #35455c;       /* secondary text */
  --muted: #64748b;          /* tertiary / labels */
  --line: #e3eaf4;           /* soft borders */
  --line-strong: #d3deee;
  --blue: #1a4bd4;           /* primary accent */
  --blue-deep: #123a9e;      /* hover / depth */
  --blue-wash: #e8eefc;      /* light blue fill */
  --focus: #2f6bff;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 420; letter-spacing: -0.015em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- wordmark ---------- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42em;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark-mark {
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.01em;
}
.wordmark-name { font-weight: 340; color: var(--ink); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  font-size: 0.95rem;
}
.site-nav a { color: var(--ink-soft); position: relative; transition: color 0.2s var(--ease); }
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:not(.nav-cta):hover { color: var(--ink); }
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  color: var(--blue);
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-cta:hover { border-color: var(--blue); background: var(--blue-wash); }
.site-nav a:nth-child(1), .site-nav a:nth-child(2), .site-nav a:nth-child(3) { display: none; }
@media (min-width: 720px) {
  .site-nav a:nth-child(1), .site-nav a:nth-child(2), .site-nav a:nth-child(3) { display: inline; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(18, 58, 158, 0.18);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(18, 58, 158, 0.22); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(72px, 13vh, 132px);
  padding-bottom: clamp(56px, 9vh, 104px);
  overflow: hidden;
}
.hero::before {
  /* very subtle abstract geometry: faint concentric blue arcs, upper-right */
  content: "";
  position: absolute;
  top: -22%;
  right: -14%;
  width: min(60vw, 640px);
  height: min(60vw, 640px);
  background:
    radial-gradient(circle at center, transparent 0 39%, rgba(26, 75, 212, 0.045) 39% 40%, transparent 40%),
    radial-gradient(circle at center, transparent 0 55%, rgba(26, 75, 212, 0.04) 55% 56%, transparent 56%),
    radial-gradient(circle at center, transparent 0 72%, rgba(26, 75, 212, 0.03) 72% 73%, transparent 73%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  margin: 0 0 22px;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero-sub {
  margin: 30px 0 0;
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 44ch;
  font-weight: 400;
}
.hero-support {
  margin: 20px 0 0;
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-rule {
  margin-top: clamp(48px, 8vh, 92px);
  height: 1px;
  background: linear-gradient(to right, var(--line-strong), transparent);
}

/* ---------- generic section ---------- */
.section { padding-block: clamp(64px, 11vh, 128px); }
.section-tint { background: var(--tint); }
.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 72px);
}
@media (min-width: 860px) {
  .section-grid { grid-template-columns: 0.82fr 1.18fr; }
}
.section-aside { position: relative; }
@media (min-width: 860px) {
  .section-aside { position: sticky; top: 108px; align-self: start; }
}
.section-index {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  opacity: 0.9;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  max-width: 14ch;
}
.section-body p {
  margin: 0 0 22px;
  font-size: clamp(1.04rem, 1.5vw, 1.16rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 60ch;
}
.section-body p:last-child { margin-bottom: 0; }

/* ---------- pillars ---------- */
.pillars {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.pillars li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.04rem;
  color: var(--ink);
  font-weight: 450;
}
.pillar-tick {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-wash);
}

/* ---------- contact ---------- */
.section-contact {
  background: var(--tint);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.86fr 1.14fr; }
}
.contact-intro { position: relative; }
@media (min-width: 900px) {
  .contact-intro { position: sticky; top: 108px; }
}
.contact-intro .section-title { margin-bottom: 22px; }
.contact-intro p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 42ch;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 1px 2px rgba(14, 26, 43, 0.04), 0 20px 48px -28px rgba(18, 58, 158, 0.16);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 0; }
.field-row .field { margin-bottom: 0; }
.field-row { margin-bottom: 18px; }

.field label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: #9aa7b8; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #b9c7dc; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 75, 212, 0.13);
}
.field input:invalid:not(:placeholder-shown):not(:focus) { border-color: #d97070; }

/* select shell for custom caret */
.select-shell { position: relative; }
.select-shell select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.select-caret {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

/* honeypot — visually hidden but present in DOM */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.btn-submit { position: relative; min-width: 168px; }
.btn-submit[disabled] { opacity: 0.72; cursor: progress; }
.btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.is-sending .btn-label { opacity: 0.85; }
.is-sending .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.form-note.is-error { color: #c0392b; }

/* success state */
.form-success {
  text-align: left;
  padding: clamp(20px, 3vw, 34px) 0;
  animation: fadeUp 0.5s var(--ease) both;
}
.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue-wash);
  color: var(--blue);
  margin-bottom: 20px;
}
.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 420;
  margin-bottom: 10px;
}
.form-success p { margin: 0; color: var(--ink-soft); max-width: 40ch; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 6vh, 60px);
  background: var(--white);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.wordmark-footer { font-size: 1.15rem; }
.footer-tag {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 40ch;
}
.footer-legal { margin: 0; color: var(--muted); font-size: 0.86rem; }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
