/* ============================================================
   LEDGER SQUARED — Website styles
   Page layout + components. Loads on top of tokens.css.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg-1); font-family: var(--font-sans); font-size: var(--body-size); line-height: var(--body-line); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper-0) 96%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 36px; height: 72px; }
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup img { width: 38px; height: 38px; display: block; }
.lockup span { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; color: var(--fg-1); white-space: nowrap; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--fg-2); text-decoration: none; white-space: nowrap; transition: color var(--dur-fast) var(--ease-out); }
.nav-links a:hover { color: var(--green-800); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--font-sans); font-size: 15px; font-weight: 600; line-height: 1; padding: 13px 22px; border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn-primary { background: var(--green-800); color: var(--fg-on-brand); }
.btn-primary:hover { background: var(--green-900); }
.btn-secondary { background: var(--paper-1); color: var(--green-800); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--paper-2); }
.btn-on-dark { background: var(--gold-500); color: var(--fg-on-gold); }
.btn-on-dark:hover { background: var(--gold-400); }

/* ---------- hero ---------- */
.hero { padding: 104px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 72px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } .hero-img { max-width: 360px; } }
.hero-img { width: 100%; height: auto; aspect-ratio: 304 / 400; object-fit: cover; border-radius: 170px 170px 12px 12px; display: block; }
.eyebrow { font-size: var(--eyebrow-size); font-weight: var(--eyebrow-weight); letter-spacing: var(--eyebrow-spacing); text-transform: uppercase; color: var(--accent); margin: 0 0 20px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(44px, 5.4vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -0.015em; margin: 0; max-width: 13ch; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 3px; background: var(--gold-500); border-radius: 2px; }
.hero p { font-size: var(--body-lg-size); line-height: var(--body-lg-line); color: var(--fg-2); max-width: 56ch; margin: 26px 0 36px; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 14px; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--fg-3); margin-top: 18px; }

/* ---------- services ---------- */
.services { padding: 88px 0 96px; border-top: 1px solid var(--line); }
.sec-head { max-width: 60ch; margin-bottom: 52px; }
.sec-head h2 { font-family: var(--font-display); font-size: var(--h2-size); line-height: var(--h2-line); font-weight: 600; letter-spacing: -0.008em; margin: 0 0 14px; }
.sec-head p { color: var(--fg-2); margin: 0; text-wrap: pretty; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } .nav-links { display: none; } }
.svc { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 28px 26px; transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.svc:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.svc-ic { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--green-100); color: var(--green-700); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.svc-ic svg { width: 21px; height: 21px; stroke-width: 1.75px; }
.svc h3 { font-family: var(--font-sans); font-size: 19px; font-weight: 600; letter-spacing: -0.006em; margin: 0 0 12px; }
.svc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.svc li { font-size: 14.5px; line-height: 1.5; color: var(--fg-2); padding: 7px 0; border-top: 1px solid var(--line); }
.svc li:first-child { border-top: 0; }

/* ---------- about ---------- */
.about { padding: 88px 0 96px; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: center; max-width: 980px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 36px; max-width: 420px; } }
.portrait { width: 100%; aspect-ratio: 304 / 400; border-radius: 170px 170px var(--radius-lg) var(--radius-lg); overflow: hidden; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.about h2 { font-family: var(--font-display); font-size: var(--h2-size); line-height: var(--h2-line); font-weight: 600; letter-spacing: -0.008em; margin: 0 0 6px; }
.about .role { font-size: 15px; font-weight: 600; color: var(--green-700); margin: 0 0 18px; }
.about p.bio { color: var(--fg-2); margin: 0 0 22px; max-width: 48ch; text-wrap: pretty; }
.about-contact { display: flex; flex-direction: column; gap: 10px; }
.about-contact a { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--green-800); text-decoration: none; width: fit-content; }
.about-contact a:hover { color: var(--green-900); text-decoration: underline; text-underline-offset: 3px; }
.about-contact svg { width: 17px; height: 17px; stroke-width: 1.75; color: var(--gold-600); }

/* ---------- CTA / contact band ---------- */
.cta { background: var(--green-800) url("../assets/ledger-texture.svg"); color: var(--fg-on-brand); }
.cta-inner { padding: 84px 32px 92px; max-width: 1060px; margin: 0 auto; }
.cta h2 { font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 42px); line-height: 1.16; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 16px; text-wrap: balance; }
.cta p.lede { color: var(--green-300); font-size: 17px; line-height: 1.6; margin: 0 0 0; text-wrap: pretty; max-width: 44ch; }
.cta-grid { display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: start; }
@media (max-width: 920px) { .cta-grid { grid-template-columns: 1fr; gap: 48px; } }
.cta-info { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.cta-info a { display: inline-flex; align-items: center; gap: 12px; color: var(--fg-on-brand); font-size: 16px; font-weight: 600; text-decoration: none; width: fit-content; }
.cta-info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cta-info svg { width: 18px; height: 18px; stroke-width: 1.75; color: var(--gold-400); }
.cta-info .note { color: var(--green-300); font-size: 14px; margin: 6px 0 0; }

/* form card */
.form-card { background: var(--paper-1); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 32px; }
.form-card h3 { font-family: var(--font-sans); font-size: 19px; font-weight: 600; color: var(--ink-1); margin: 0 0 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-card label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-card input, .form-card textarea { width: 100%; box-sizing: border-box; font-family: var(--font-sans); font-size: 15px; color: var(--ink-1); background: var(--paper-1); border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 11px 12px; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.form-card input::placeholder, .form-card textarea::placeholder { color: var(--ink-4); }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--green-600); box-shadow: var(--shadow-focus); }
.form-card textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.form-card .btn { width: 100%; justify-content: center; border: 0; font-size: 15.5px; cursor: pointer; }
.form-sent { display: none; text-align: center; padding: 36px 8px; }
.form-sent svg { width: 36px; height: 36px; color: var(--positive); stroke-width: 1.75; margin-bottom: 12px; }
.form-sent p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin: 0; }

/* ---------- footer ---------- */
footer { background: var(--green-900); color: var(--green-300); }
.foot { display: flex; align-items: center; gap: 16px; padding: 36px 0; }
.foot .lockup span { color: var(--fg-on-brand); font-size: 18px; }
.foot .lockup img { width: 30px; height: 30px; }
.foot-meta { margin-left: auto; font-size: 13.5px; display: flex; gap: 24px; align-items: center; }
.foot-meta a { color: var(--green-300); text-decoration: none; }
.foot-meta a:hover { color: var(--fg-on-brand); }

/* ---------- entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise var(--dur-slow) var(--ease-out) backwards; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
  .rise.d1 { animation-delay: 60ms; } .rise.d2 { animation-delay: 120ms; } .rise.d3 { animation-delay: 180ms; }
}
