/* organicai.online: one-page firm site.
   Visual system matches askhermi.com (colors, type, spacing), kept as this
   site's own copy so the two sites never share files. */

/* Self-hosted fonts (SIL Open Font License). Variable files cover every weight used. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-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;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/dm-sans-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;
}

:root {
  --green: #1E4D3A;
  --green-dark: #163a2c;
  --green-soft: #e3ebe6;
  --charcoal: #232323;
  --muted: #5c5c5a;
  --ivory: #F5F3EE;
  --paper: #FBFAF7;
  --line: #dcd8cf;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --shadow-1: 0 1px 1px rgba(35,35,35,.04), 0 2px 6px rgba(35,35,35,.05);
  --shadow-2: 0 1px 2px rgba(35,35,35,.05), 0 8px 20px rgba(35,35,35,.07), 0 22px 48px rgba(30,77,58,.08);
  --shadow-3: 0 2px 4px rgba(35,35,35,.06), 0 18px 40px rgba(35,35,35,.12), 0 40px 90px rgba(30,77,58,.14);
  --lift: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--ivory); color: var(--charcoal); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--green); color: #fff; padding: 8px 14px; z-index: 100; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--charcoal); line-height: 1.12; letter-spacing: .005em; }
h1 { font-size: clamp(40px, 6.2vw, 72px); }
h2 { font-size: clamp(32px, 4.4vw, 50px); }
h3 { font-size: clamp(22px, 2.4vw, 27px); }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--green); font-weight: 500; margin-bottom: 18px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; }
p + p { margin-top: 1em; }
.tm { font-size: .55em; vertical-align: super; letter-spacing: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 2px; font: 500 15px/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; border: 1px solid var(--green); transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 14px rgba(30,77,58,.22); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,243,238,.96); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--serif); font-size: 25px; font-weight: 600; }
.brand-name small { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--charcoal); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--charcoal); }
.nav-links a:hover { color: var(--green); }
.nav-links .btn { min-height: 42px; padding: 0 20px; font-size: 14px; color: var(--green); }

/* Sections */
section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #fff; }
.section-dark { background: var(--green); color: var(--ivory); }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: #d6e2db; }
.section-head { max-width: 720px; margin-bottom: 56px; }

/* Hero */
.hero { padding-top: clamp(64px, 9vw, 120px); }
.hero h1 { max-width: 20ch; }
.hero .lead { margin-top: 26px; max-width: 660px; }
.specs { list-style: none; display: grid; grid-template-columns: repeat(4, max-content); gap: 12px 36px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.specs li { position: relative; padding-left: 20px; font-size: 12.5px; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.specs li::before { content: ""; position: absolute; left: 0; top: .72em; width: 11px; height: 1px; background: var(--green); }

/* Standard */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.story { margin-top: 24px; color: var(--muted); }
.quote-card { margin: 0; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--green); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-2); }
blockquote { font-family: var(--serif); font-size: clamp(23px, 2.6vw, 30px); line-height: 1.4; color: var(--charcoal); }
.sig { margin-top: 28px; }
.sig strong { display: block; font-size: 17px; }
.sig span { display: block; font-size: 14px; color: var(--muted); }

/* Principles */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 36px 32px 8px; border-right: 1px solid var(--line); }
.pillar:first-child { padding-left: 0; }
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar .num { font-family: var(--serif); font-size: 18px; color: var(--green); margin-bottom: 14px; }
.pillar p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* Hermi */
.system { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-2); }
.system .mark-lg { width: 64px; height: 64px; color: var(--green); margin-bottom: 22px; }
.system h3 { font-size: clamp(30px, 3.4vw, 40px); }
.system p { margin-top: 14px; color: var(--muted); }
.system .pron { font-size: 14px; letter-spacing: .04em; }
.system .fine { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.system .btn { margin-top: 28px; }
.system { transition: transform .35s var(--lift), box-shadow .35s var(--lift); }
.system:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }

/* Reveal, matching askhermi.com: each block rises once as it scrolls into view. Only hidden when
   JavaScript is running (the "js" class is set in <head>), so the page is always readable without it.
   Uses `translate`, so hover lifts (which use `transform`) work independently. */
.js .reveal { opacity: 0; translate: 0 14px; transition: opacity .7s ease, translate .7s ease; }
.js .reveal.in { opacity: 1; translate: none; }
.js .system.reveal { transition: opacity .7s ease, translate .7s ease, transform .35s var(--lift), box-shadow .35s var(--lift); }
/* Groups: the group stays still and its items rise one after another (--i is set by the page script). */
.js .reveal.stagger { opacity: 1; translate: none; }
.js .reveal.stagger > * { opacity: 0; translate: 0 14px; transition: opacity .7s ease calc(var(--i, 0) * 90ms), translate .7s ease calc(var(--i, 0) * 90ms); }
.js .reveal.stagger.in > * { opacity: 1; translate: none; }

/* Contact */
.cta { text-align: center; }
.cta h2 { max-width: 18ch; margin: 0 auto; }
.cta .lead { margin: 22px auto 0; }
.cta .actions { justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--green); border-color: #fff; box-shadow: none; }
.cta .btn-primary:hover { background: var(--ivory); }
.cta .btn-ghost { color: #fff; border-color: #b9d2c4; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Footer */
footer { padding: 48px 0; font-size: 14px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.foot .signature { font-family: var(--serif); font-size: 19px; color: var(--charcoal); }
.foot a { color: var(--green); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.legal h1 { font-size: clamp(38px, 5vw, 54px); }
.legal h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 44px; }
.legal p, .legal li { color: #3d3d3b; margin-top: 14px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--green); }
.legal .meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.back { display: inline-block; margin-bottom: 32px; color: var(--green); text-decoration: none; font-size: 15px; }

/* Responsive */
@media (max-width: 900px) {
  .specs { grid-template-columns: repeat(2, max-content); }
}
@media (max-width: 820px) {
  .split, .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child, .pillar:last-child { padding: 28px 0 8px; border-right: 0; border-top: 1px solid var(--line); }
  .pillars { border-top: 0; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { height: 68px; }
  .brand-name b { font-size: 22px; }
  .brand-name small { font-size: 9.5px; letter-spacing: .16em; }
  .specs { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .system { transition: none; }
  .js .reveal, .js .reveal.stagger > *, .js .system.reveal { opacity: 1; translate: none; transition: none; }
}
@media (max-width: 820px) {
  .system:hover { transform: none; }
}
