:root {
  --ink: #0e1413;
  --ink-2: #16201e;
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --text: #1b2321;
  --muted: #5d6a66;
  --light: #e9efe9;
  --light-muted: #9fb0aa;
  --sage: #8fb9a8;
  --dusk: #f0b47d;
  --line: rgba(14, 20, 19, 0.12);
  --line-dark: rgba(233, 239, 233, 0.14);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

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

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  color: var(--light);
  transition: background .3s, backdrop-filter .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(14, 20, 19, 0.78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.mark { width: 34px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.mark path:last-child { stroke: var(--dusk); }
.nav nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); font-size: 15px; }
.nav nav a { text-decoration: none; opacity: .82; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }
.nav .nav-cta { opacity: 1; padding: 8px 16px; border: 1px solid var(--line-dark); border-radius: 999px; }
.nav .nav-cta:hover { border-color: var(--light-muted); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: radial-gradient(120% 80% at 70% 10%, #1d2b28 0%, var(--ink) 60%);
  color: var(--light);
}
.ridges { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 20, 19, .92) 0%, rgba(14, 20, 19, .7) 34%, rgba(14, 20, 19, 0) 62%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 120px var(--gutter) 34vh;
}
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--light-muted); margin-bottom: 22px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 8.2vw, 112px);
  line-height: .98; letter-spacing: -.015em;
  max-width: 12ch;
}
.hero h1 em { color: var(--dusk); }
.lede { margin-top: 26px; max-width: 46ch; font-size: clamp(17px, 1.6vw, 20px); color: #c9d5d0; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--light); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { color: var(--light); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--light-muted); }
.btn-accent { background: var(--dusk); color: var(--ink); }
.btn-accent:hover { background: #f5c497; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Sections */
section { scroll-margin-top: 64px; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.section-head h2, .contact h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.01em;
  max-width: 16ch;
}
.section-head h2 em { color: #4f7f6f; }
.intro { margin-top: 22px; max-width: 52ch; color: var(--muted); font-size: 18px; }

.what { padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 10vw, 120px); }
.pillars {
  list-style: none; margin: clamp(48px, 7vw, 84px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.pillars li { padding: 28px 28px 8px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.pillars li:last-child { border-right: 0; margin-right: 0; }
.num { display: block; font-size: 13px; color: var(--muted); letter-spacing: .08em; margin-bottom: 40px; }
.pillars h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-bottom: 10px; }
.pillars p { color: var(--muted); }

.quote { background: var(--paper-2); padding: clamp(70px, 10vw, 120px) 0; }
.quote p {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 58px); line-height: 1.12;
  max-width: 22ch;
}
.quote em { color: #4f7f6f; }

.how { padding: clamp(80px, 12vw, 150px) 0; }
.how-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.principles { display: grid; gap: 0; }
.principles article { padding: 28px 0; border-top: 1px solid var(--line); }
.principles article:last-child { border-bottom: 1px solid var(--line); }
.principles h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.principles p { color: var(--muted); max-width: 52ch; }

/* Contact */
.contact { background: var(--ink); color: var(--light); padding: clamp(80px, 12vw, 140px) 0; }
.contact .kicker { color: var(--light-muted); }
.contact h2 em { color: var(--dusk); }
.contact .intro { color: var(--light-muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); }
.contact dl { margin: 40px 0 0; display: grid; gap: 22px; }
.contact dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--light-muted); margin-bottom: 4px; }
.contact dd { margin: 0; line-height: 1.55; }
.contact dd a { text-decoration-color: rgba(240, 180, 125, .5); text-underline-offset: 4px; }
.contact dd a:hover { color: var(--dusk); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; align-content: start; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--light-muted); }
.opt { opacity: .7; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  font: 400 16px/1.4 var(--sans); color: var(--light);
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 10px;
  transition: border-color .2s, background .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--light-muted) 50%), linear-gradient(135deg, var(--light-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); background: #1a2623; }
.field .invalid { border-color: #e48a7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.status { font-size: 15px; color: var(--light-muted); }
.status.ok { color: var(--sage); }
.status.err { color: #f0a090; }
.status a { color: inherit; }

/* Footer */
.footer { background: var(--ink); color: var(--light-muted); border-top: 1px solid var(--line-dark); padding: 28px 0 36px; font-size: 14px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand { color: var(--light); }

/* Conversation showcase */
.showcase { background: radial-gradient(90% 70% at 85% 30%, #1d2b28 0%, var(--ink) 65%); color: var(--light); padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; }
.showcase .kicker { color: var(--light-muted); }
.showcase .section-head h2 em { color: var(--dusk); }
.showcase .intro { color: var(--light-muted); }
.showcase-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.ticks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; color: #c9d5d0; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); transform: translateY(-2px); }
.phone { width: min(100%, 380px); justify-self: center; background: #f7f5f0; color: var(--text); border-radius: 34px; padding: 18px 16px 16px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 10px #0a0f0e, 0 0 0 11px rgba(233, 239, 233, .14); }
.phone-top { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); }
.phone-top b { display: block; font-weight: 600; font-size: 15px; color: var(--ink); }
.phone-top small { font-size: 12px; color: #3f8f72; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--ink); background: linear-gradient(135deg, var(--dusk), #f6d4b0); }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 16px 4px; min-height: 300px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; }
.msg.them { align-self: flex-start; background: #e8e3d8; border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--light); border-bottom-right-radius: 6px; position: relative; }
.read { display: block; text-align: right; font-size: 11px; color: var(--sage); margin-top: 3px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 14px; border-radius: 18px; background: #e8e3d8; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #8d978f; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.safety { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 14px; background: rgba(143, 185, 168, .18); color: #2f6b56; font-size: 13px; font-weight: 600; }
.safety svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
/* Typing dots and the reply that replaces them share one spot, so the phone never changes height */
.slot { display: grid; justify-items: start; }
.slot > * { grid-area: 1 / 1; }
.slot .typing { align-self: start; }
.phone [data-step] { transition: opacity .45s ease, transform .45s ease; }
.phone.animating [data-step]:not(.shown) { opacity: 0; transform: translateY(8px); }

/* Trust */
.trust { padding: clamp(80px, 11vw, 140px) 0; }
.trust-grid { margin-top: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-grid article { background: #fbfaf6; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; transition: transform .3s, box-shadow .3s; }
.trust-grid article:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(14, 20, 19, .35); }
.t-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); margin-bottom: 26px; }
.t-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--dusk); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.trust-grid h3 { font-family: var(--serif); font-size: 26px; line-height: 1.1; margin-bottom: 10px; }
.trust-grid p { color: var(--muted); font-size: 15.5px; }

.how { background: var(--paper-2); }

/* Process timeline */
.process { padding: clamp(80px, 11vw, 140px) 0; }
.timeline { list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 21px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--dusk), rgba(79, 127, 111, .5), transparent); }
.timeline li { position: relative; }
.t-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: #4f7f6f; margin-bottom: 26px; position: relative; }
.timeline h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-bottom: 8px; }
.timeline p { color: var(--muted); max-width: 30ch; }

/* Careers */
.careers { padding: 0 0 clamp(80px, 11vw, 140px); }
.careers-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(36px, 5vw, 64px); border-radius: 28px; color: var(--light); background: radial-gradient(80% 120% at 100% 0%, rgba(240, 180, 125, .22), transparent 55%), var(--ink); }
.careers-card .kicker { color: var(--light-muted); }
.careers-card h2 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; max-width: 18ch; }
.careers-card h2 em { color: var(--dusk); }
.careers-card .intro { color: var(--light-muted); }
.careers-card .btn { flex: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.pillars li.reveal:nth-child(2) { transition-delay: .08s; }
.pillars li.reveal:nth-child(3) { transition-delay: .16s; }
.pillars li.reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .typing span { animation: none; }
}

@media (max-width: 1100px) {
  .nav nav a[href="#trust"], .nav nav a[href="#careers"] { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars li { margin-right: 0; padding-right: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pillars li:nth-child(odd) { border-right: 1px solid var(--line); margin-right: 0; }
  .pillars li:nth-child(even) { padding-left: 24px; }
  .num { margin-bottom: 24px; }
  .how-grid, .contact-grid, .showcase-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
  .careers-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .hero-inner { padding-bottom: 30vh; }
  .hero::after { background: linear-gradient(180deg, rgba(14, 20, 19, .6) 0%, rgba(14, 20, 19, .6) 62%, rgba(14, 20, 19, 0) 78%); }
  .pillars { grid-template-columns: 1fr; }
  .pillars li, .pillars li:nth-child(odd), .pillars li:nth-child(even) { border-right: 0; padding: 24px 0 20px; }
  .form { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .trust-grid, .timeline { grid-template-columns: 1fr; }
  .phone { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 7px #0a0f0e, 0 0 0 8px rgba(233, 239, 233, .14); }
}
