/* Self-hosted fonts (SIL OFL 1.1 - see assets/fonts/OFL-*.txt).
   Served from our own origin rather than a third-party font CDN, so no
   visitor IP is disclosed to anyone else and the CSP can stay 'self'-only.
   Fraunces and Inter are variable fonts: one file spans the whole weight
   range. Only the latin and latin-ext subsets are shipped; other scripts
   fall back to the generic family in the font-family variables below.
   These filenames are cached immutably for a year (see httpx.CacheStatic),
   so a different font must get a NEW filename - never re-point one of
   these at different bytes. */

/* Fraunces - latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fraunces - latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter - latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter - latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono - latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono - latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono - latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono - latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f6f1e7;
  --bg-alt: #efe7d6;
  --card-bg: #fffdf8;
  --ink: #20261f;
  --ink-82: rgba(32, 38, 31, 0.82);
  --ink-8: rgba(32, 38, 31, 0.8);
  --ink-6: rgba(32, 38, 31, 0.6);
  --ink-55: rgba(32, 38, 31, 0.55);
  --ink-5: rgba(32, 38, 31, 0.5);
  --ink-45: rgba(32, 38, 31, 0.45);
  --ink-42: rgba(32, 38, 31, 0.42);
  --ink-4: rgba(32, 38, 31, 0.4);
  --ink-35: rgba(32, 38, 31, 0.35);
  --border-18: rgba(32, 38, 31, 0.18);
  --border-16: rgba(32, 38, 31, 0.16);
  --border-14: rgba(32, 38, 31, 0.14);
  --border-12: rgba(32, 38, 31, 0.12);
  --border-1: rgba(32, 38, 31, 0.1);
  --accent: #e96646;
  --accent-hover: #c04f26;
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27200%27 height=%27200%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.85%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27 opacity=%270.035%27/%3E%3C/svg%3E');
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px clamp(20px, 4vw, 64px);
  background: rgba(246, 241, 231, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-14);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-brand img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-8);
}

.btn-pill {
  padding: 10px 22px;
  background: var(--accent);
  color: var(--bg) !important;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) clamp(20px, 4vw, 64px) clamp(48px, 7vw, 90px);
}

.hero-inner {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-text {
  flex: 2 1 480px;
  min-width: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.accent-rule {
  width: 44px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 22px;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 30px;
  color: var(--ink);
  text-wrap: pretty;
}

.hero-text p {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  color: var(--ink-82);
  max-width: 600px;
  margin: 0 0 40px;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 28px;
  background: var(--accent);
  color: var(--bg) !important;
  font-weight: 600;
  border-radius: 3px;
}

.btn-secondary {
  padding: 14px 28px;
  border: 1px solid var(--border-18);
  color: var(--ink) !important;
  border-radius: 2px;
}

.hero-photo {
  flex: 1 1 260px;
  max-width: 320px;
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  border: 1px solid var(--border-12);
}

.hero-photo-caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-45);
}

/* ---------- Shared section reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Two-path qualifier ---------- */

.paths {
  padding: 0 clamp(20px, 4vw, 64px) clamp(60px, 8vw, 100px);
}

.paths-inner {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-18);
  padding-top: 36px;
}

.path-card {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.path-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-42);
}

.path-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0;
  color: var(--ink);
}

.path-card p {
  color: var(--ink-82);
  line-height: 1.65;
  margin: 0;
  text-wrap: pretty;
}

.path-card a {
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Proof band ---------- */

.proof {
  background: var(--bg-alt);
  padding: 56px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--border-12);
  border-bottom: 1px solid var(--border-12);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.proof-number {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  color: var(--accent);
  font-weight: 600;
}

.proof-label {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  margin-top: 4px;
}

.proof-footnote {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-14);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-45);
}

/* ---------- Section heading patterns ---------- */

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  margin: 0 0 48px;
  max-width: 760px;
  color: var(--ink);
  text-wrap: pretty;
}

/* ---------- Services ---------- */

.services {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 4vw, 64px);
}

.engagement-lead {
  background: var(--card-bg);
  border: 1px solid var(--border-18);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: clamp(28px, 3.5vw, 44px);
  max-width: 760px;
  margin-bottom: 56px;
}

.engagement-lead-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.engagement-lead h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}

.engagement-lead-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-55);
  margin-bottom: 20px;
}

.engagement-lead p {
  color: var(--ink-82);
  line-height: 1.7;
  margin: 0 0 16px;
  text-wrap: pretty;
}

.engagement-lead-note {
  font-size: 15px;
  color: var(--ink-6);
  padding-top: 16px;
  border-top: 1px solid var(--border-12);
}

.engagement-lead .btn-primary {
  display: inline-block;
  margin-top: 24px;
}

.services-intro {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-55);
  margin-bottom: 20px;
  max-width: 640px;
}

.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-16);
}

.service-row {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-16);
  flex-wrap: wrap;
}

.service-number {
  width: 40px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-35);
  padding-top: 4px;
}

.service-body {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
  color: var(--ink);
}

.service-body p {
  color: var(--ink-82);
  line-height: 1.65;
  margin: 0;
  max-width: 640px;
  text-wrap: pretty;
}

/* ---------- Fit ---------- */

.fit {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--border-14);
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 72px);
}

.fit-col-head {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-16);
}

.fit-yes {
  color: var(--accent);
}

.fit-no {
  color: var(--ink-45);
}

.fit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fit-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-82);
  line-height: 1.65;
  text-wrap: pretty;
}

.fit-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-35);
}

.fit-col:last-child .fit-list li {
  color: var(--ink-6);
}

/* ---------- Approach ---------- */

.approach {
  background: var(--bg-alt);
  padding: clamp(70px, 9vw, 120px) clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--border-14);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.approach-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.approach-number {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--accent);
  font-weight: 600;
}

.approach-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0;
  color: var(--ink);
}

.approach-item p {
  color: var(--ink-82);
  line-height: 1.65;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- About ---------- */

.about {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--border-14);
}

.about-inner {
  max-width: 760px;
}

.about-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--ink);
}

.about-inner p {
  color: var(--ink-8);
  line-height: 1.7;
  margin: 0 0 20px;
  text-wrap: pretty;
}

.about-inner p:last-of-type {
  margin-bottom: 32px;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-55);
}

.about-facts div {
  position: relative;
  padding-left: 18px;
}

.about-facts div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 1px;
  background: var(--ink-35);
}

/* ---------- Testimonials ---------- */

.testimonials {
  background: var(--bg-alt);
  padding: clamp(70px, 9vw, 120px) clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--border-14);
}

.testimonials h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink);
}

.testimonials-sub {
  color: var(--ink-5);
  font-size: 14px;
  margin: 0 0 44px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
  border-top: 2px solid rgba(233, 102, 70, 0.55);
}

.testimonial-card p {
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  font-size: 18px;
  font-style: italic;
  text-wrap: pretty;
}

.testimonial-attribution {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-5);
}

/* ---------- Contact ---------- */

.contact {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--border-14);
}

.contact-inner {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1 1 360px;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--ink);
}

.contact-info p {
  color: var(--ink-82);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 440px;
  text-wrap: pretty;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-6);
}

.contact-form-card {
  flex: 1 1 360px;
  background: var(--card-bg);
  border: 1px solid var(--border-18);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(32, 38, 31, 0.05);
  padding: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-error {
  color: var(--accent-hover);
  font-size: 14px;
  line-height: 1.5;
}

.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-5);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-16);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 3px;
  font-size: 15px;
  cursor: pointer;
  font-family: var(--font-body);
}

.contact-success {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
}

.contact-success-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}

.contact-success p {
  color: var(--ink-82);
  line-height: 1.6;
  margin: 0;
}

.contact-success a {
  font-weight: 600;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--border-14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-6);
}

.footer-copyright {
  font-size: 13px;
  color: var(--ink-4);
}
