:root {
  --bg: #F1EDE4;
  --surface: #FCFAF6;
  --surface-2: #FFFFFF;
  --border: #DAD2C4;
  --border-subtle: #EDE7DC;
  --ink: #0C1526;
  --text: #16243D;
  --text-secondary: #4E5769;
  --text-muted: #8A8474;
  --accent: #A9834B;
  --accent-light: #C9A46A;
  --off-white: #F7F3EB;
  --slate-on-navy: #A9B2C4;
  --border-on-navy: #566178;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

section, .hero, .trust, .cta-band, .site-footer { scroll-margin-top: 84px; }

::selection { background: var(--accent); color: var(--surface); }

h1, h2, h3, h4 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rule-brass { width: 32px; height: 1px; background: var(--accent); margin-top: 10px; }
.rule-brass.on-navy { background: var(--accent-light); }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
  .card-grid .reveal.is-visible:nth-child(2) { transition-delay: .08s; }
  .card-grid .reveal.is-visible:nth-child(3) { transition-delay: .16s; }
  .timeline-row.reveal.is-visible:nth-child(2) { transition-delay: .06s; }
  .timeline-row.reveal.is-visible:nth-child(3) { transition-delay: .12s; }
  .timeline-row.reveal.is-visible:nth-child(4) { transition-delay: .18s; }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
  .hero-content > * { animation: fadeUp .8s ease both; }
  .hero-content .hero-eyebrow { animation-delay: 0s; }
  .hero-content h1 { animation-delay: .1s; }
  .hero-content .hero-body { animation-delay: .2s; }
  .hero-content .hero-ctas { animation-delay: .3s; }
  .hero-visual { animation: fadeUp 1s ease .15s both; }
}

/* ---- Header ---- */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 40px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { flex: 0 0 auto; display: block; }
.wordmark { font-weight: 500; font-size: 20px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); padding-left: 0.2em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; color: var(--text-secondary); padding-bottom: 3px; border-bottom: 1px solid transparent; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); border-bottom-color: var(--accent); }

.btn {
  font-family: 'IBM Plex Sans', sans-serif; font-weight: 500; border: 1px solid;
  cursor: pointer; display: inline-flex; align-items: center; white-space: nowrap;
  appearance: none; -webkit-appearance: none; margin: 0;
}
.btn-primary { background: var(--text); border-color: var(--text); color: var(--surface); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-secondary { background: transparent; border-color: var(--text); color: var(--text); }
.btn-secondary:hover { background: var(--text); color: var(--surface); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-md { padding: 15px 30px; font-size: 15px; }
.btn-primary-navy { background: var(--off-white); border-color: var(--off-white); color: var(--text); }
.btn-primary-navy:hover { background: var(--accent-light); border-color: var(--accent-light); }
.btn-secondary-navy { background: transparent; border-color: var(--border-on-navy); color: var(--off-white); }
.btn-secondary-navy:hover { border-color: var(--off-white); }

/* ---- Hero ---- */
.hero { background: var(--text); padding: 96px 40px; }
.hero-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero-eyebrow { color: var(--accent-light); }
.hero h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.015em; color: var(--off-white); margin: 20px 0 24px; max-width: 15ch; }
.hero-body { font-size: 17px; line-height: 1.6; color: var(--slate-on-navy); max-width: 42ch; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--border-on-navy);
  overflow: hidden;
  background: linear-gradient(160deg, #1B2A45, #0C1526);
}
.hero-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; filter: saturate(0.92) brightness(0.94);
  transition: opacity 1.1s ease;
}
.hero-frame.active { opacity: 1; }
.hero-ticks { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; justify-content: flex-end; gap: 6px; }
.hero-tick { width: 16px; height: 1px; background: var(--border-on-navy); transition: background .4s ease; }
.hero-tick.active { background: var(--accent-light); }

/* ---- Trust strip ---- */
.trust { padding: 56px 40px; border-bottom: 1px solid var(--border); }
.trust-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.trust-line { font-family: 'Newsreader', serif; font-size: 19px; color: var(--text); }
.trust-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 14px; border: 1px solid var(--border); color: var(--text-secondary); }

/* ---- Section shell ---- */
.section { padding: 96px 40px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 56ch; margin-bottom: 56px; }
.section-head .eyebrow { color: var(--accent); }
.section-head h2 { font-size: 34px; line-height: 1.15; }
.section-head p { font-size: 16px; }

/* ---- Services cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card:hover { border-color: var(--text); }
.card .icon { width: 44px; height: 44px; background: var(--bg); border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; margin-bottom: 4px; }
.card h3 { font-size: 21px; }
.card p { font-size: 14.5px; line-height: 1.6; }
.card .learn-more { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); border-top: 1px solid var(--border-subtle); padding-top: 14px; margin-top: 6px; }

/* ---- Day timeline (signature element) ---- */
.timeline { background: var(--surface); border: 1px solid var(--border); }
.timeline-row {
  display: grid; grid-template-columns: 100px 1px 1fr; gap: 28px;
  padding: 28px 32px; border-bottom: 1px solid var(--border-subtle);
}
.timeline-row:last-child { border-bottom: none; }
.timeline-time { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--text-muted); padding-top: 2px; }
.timeline-rule { background: var(--border); }
.timeline-text h4 { font-family: 'IBM Plex Sans', sans-serif; font-weight: 500; font-size: 15.5px; color: var(--text); margin-bottom: 4px; }
.timeline-text p { font-size: 14px; color: var(--text-secondary); }

/* ---- CTA band ---- */
.cta-band { position: relative; background: var(--text); overflow: hidden; text-align: center; }
.cta-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  filter: saturate(0.85) brightness(0.9);
}
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,21,38,0.94), rgba(18,30,50,0.86) 45%, rgba(12,21,38,0.78)); }
.cta-content { position: relative; padding: 120px 40px; }
.cta-inner { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-inner .eyebrow { color: var(--accent-light); }
.cta-inner h2 { font-size: 36px; line-height: 1.15; color: var(--off-white); }
.cta-inner p { font-size: 16px; color: var(--slate-on-navy); margin-bottom: 8px; }

/* ---- Contact form ---- */
.contact-form { max-width: 480px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.form-row input, .form-row textarea {
  font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); padding: 12px 14px; resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn { align-self: flex-start; }
.contact-form .btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { font-size: 13.5px; min-height: 1.2em; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #B3423A; }

/* ---- Footer ---- */
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding: 48px 40px; background: var(--surface); border-top: 1px solid var(--border); }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-wordmark { font-family: 'Newsreader', serif; font-size: 24px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }
.footer-subline { font-family: 'Newsreader', serif; font-style: italic; font-size: 15px; color: var(--accent); padding-left: 44px; }

/* ---- Founder quote ---- */
.founder-quote { max-width: 720px; border-left: 2px solid var(--accent); padding: 4px 0 4px 32px; }
.founder-quote p { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 20px; line-height: 1.6; color: var(--text); margin: 0; }
.founder-quote footer { margin-top: 16px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.footer-col-links { display: flex; flex-direction: column; gap: 8px; }
.footer-col-links a { font-size: 14px; color: var(--text-secondary); }
.footer-col-links a:hover { color: var(--accent); }
.footer-legal { padding: 20px 40px; text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-muted); border-top: 1px solid var(--border-subtle); }

/* ---- Blog index ---- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.blog-card:hover { border-color: var(--text); }
.blog-card .blog-meta { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.blog-card h3 { font-size: 22px; line-height: 1.2; }
.blog-card p { font-size: 14.5px; line-height: 1.6; }
.blog-card .learn-more { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); border-top: 1px solid var(--border-subtle); padding-top: 14px; margin-top: 6px; }

/* ---- Blog post (article) ---- */
.post-hero { padding: 72px 40px 48px; border-bottom: 1px solid var(--border); }
.post-hero-inner { max-width: 720px; margin: 0 auto; }
.post-hero h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -0.01em; margin: 16px 0 20px; }
.post-meta { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.post-dek { font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.post-body { max-width: 680px; margin: 0 auto; padding: 64px 40px; display: flex; flex-direction: column; gap: 24px; }
.post-body p { font-size: 17px; line-height: 1.75; color: var(--text-secondary); }
.post-body h2 { font-size: 26px; line-height: 1.25; margin-top: 16px; }
.post-body h3 { font-size: 20px; line-height: 1.3; margin-top: 8px; }
.post-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.post-body li { font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.post-body blockquote { border-left: 2px solid var(--accent); padding: 4px 0 4px 24px; font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 19px; color: var(--text); }
.post-back { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; }
  .card-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .nav-link:not(.cta) { display: none; }
  .timeline-row { grid-template-columns: 72px 1px 1fr; gap: 16px; padding: 22px; }
}
