/* agenthorizon.ai static site. Self-hosted fonts, minimal JS, refined editorial dusk. */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/hanken.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1B2628;            /* soft deep petrol, not black */
  --bg-2: #1F2D2F;          /* atmospheric partner */
  --surface: #233032;       /* raised panels */
  --surface-2: #2A3A3C;     /* hover */
  --ink: #F2EFE6;           /* warm cream, headlines */
  --body: #C8CDC9;          /* soft body text */
  --muted: #97A29D;         /* labels, meta (AA on bg) */
  --line: rgba(242, 239, 230, 0.10);
  --line-strong: rgba(242, 239, 230, 0.22);

  --rean: #8FB477;          /* Reanthesis moss, lifted for dark */
  --cake: #7FA6EE;          /* SkillsCake blue, lifted for dark */
  --rean-glow: rgba(143, 180, 119, 0.16);
  --cake-glow: rgba(127, 166, 238, 0.16);

  /* the signature: a dawn that blends into both product colors */
  --dawn: linear-gradient(90deg, #E08CC4 0%, #E0A858 40%, #6FA0E6 73%, #8FB477 100%);

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --shell: 940px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--body);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  position: relative;
  min-height: 100vh;
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient dawn field: ~8 soft colored splotches scattered down the whole page,
   low opacity so text stays crisp. Pure CSS, painted behind all content. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(620px 620px at 14% 3%,  rgba(224, 140, 196, 0.13), transparent 62%),
    radial-gradient(560px 560px at 87% 8%,  rgba(111, 160, 230, 0.12), transparent 62%),
    radial-gradient(520px 520px at 45% 21%, rgba(224, 168, 88, 0.07),  transparent 64%),
    radial-gradient(560px 560px at 7% 39%,  rgba(111, 160, 230, 0.09), transparent 64%),
    radial-gradient(620px 620px at 93% 49%, rgba(224, 140, 196, 0.10), transparent 64%),
    radial-gradient(520px 520px at 27% 65%, rgba(143, 180, 119, 0.08), transparent 64%),
    radial-gradient(560px 560px at 80% 79%, rgba(111, 160, 230, 0.09), transparent 64%),
    radial-gradient(560px 560px at 17% 95%, rgba(224, 140, 196, 0.08), transparent 64%);
}

a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; font-weight: 500; color: var(--ink); }

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

.nav {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 1.7rem clamp(1.25rem, 5vw, 2.25rem) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.mark { width: 26px; height: 26px; flex: none; color: var(--ink); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Layout ---------- */

main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2.25rem) 4rem;
}

section {
  padding-top: clamp(3rem, 7vw, 5rem);
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}

.hero { border-top: none; padding-top: clamp(1rem, 4vw, 2.5rem); margin-top: 0; position: relative; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.label::before {
  content: "";
  width: 22px; height: 3px;
  border-radius: 999px;
  background: var(--dawn);
}

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

.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 17ch;
  margin-bottom: 1.6rem;
}

.lede {
  font-size: clamp(1.12rem, 2.4vw, 1.34rem);
  color: var(--body);
  max-width: 54ch;
  margin-bottom: 2.1rem;
}

.horizon {
  height: 4px;
  border-radius: 999px;
  background: var(--dawn);
  max-width: 380px;
  margin-bottom: 2.3rem;
  box-shadow: 0 2px 22px rgba(224, 140, 196, 0.28), 0 2px 26px rgba(111, 160, 230, 0.22);
  transform-origin: left;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  background: var(--ink);
  color: #182223;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 600;
  padding: 0.78rem 1.6rem;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.button:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.button-secondary:hover { background: var(--surface); border-color: var(--ink); box-shadow: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Products ---------- */

.product {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(242, 239, 230, 0.03) inset, 0 18px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.product + .product { margin-top: 1.5rem; }
.product:hover { transform: translateY(-3px); }
.product-rean:hover { border-color: rgba(143, 180, 119, 0.4); }
.product-cake:hover { border-color: rgba(127, 166, 238, 0.4); }

/* art panel carries the product's own color as soft atmosphere */
.product-art {
  position: relative;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
}
.product-rean .product-art { background: radial-gradient(closest-side, var(--rean-glow), transparent 78%); }
.product-cake .product-art { background: radial-gradient(closest-side, var(--cake-glow), transparent 78%); }

.product-copy .eyebrow { color: var(--muted); margin-bottom: 0.7rem; }

.product h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); letter-spacing: -0.015em; margin-bottom: 0.35rem; }
.product-rean h2 { color: var(--rean); }
.product-cake h2 { color: var(--cake); }

.tagline { font-family: var(--sans); font-weight: 600; color: var(--ink); margin-bottom: 0.75rem; }

.product-copy p { color: var(--body); font-size: 0.99rem; }

.product-link {
  display: inline-block;
  margin-top: 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s var(--ease);
}
.product-rean .product-link { color: var(--rean); }
.product-cake .product-link { color: var(--cake); }
.product-link:hover { transform: translateX(3px); }
.product-link + .product-link { margin-left: 1.4rem; }

/* ---------- Product logo treatment (copied from ryanscheinberg.com, tuned heights) ---------- */

.logos { width: 100%; }

/* Plants are cropped to their content, so the box edges ARE the plant edges:
   center alignment lines up the real plant midpoints, and centering the row
   leaves the outer plant tips equidistant. */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.4rem);
}

.logos img { width: auto; }

.lupine-full  { height: clamp(148px, 26vw, 184px); }
.lupine-short {
  height: clamp(72px, 13vw, 90px);                 /* same generator scale as the full plant, so the leaves match */
  transform: translateY(clamp(22px, 4.6vw, 27px)); /* drop it so its middle sits ~35% up the full spike */
}

.logos-single img { height: clamp(92px, 20vw, 120px); }

/* ---------- Consulting ---------- */

.section-head {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 1rem;
  max-width: 20ch;
}

.section-lede { color: var(--body); max-width: 58ch; margin-bottom: 1.7rem; font-size: 1.05rem; }

.caps { list-style: none; margin-bottom: 1.8rem; max-width: 60ch; }

.caps li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--body);
}

.caps li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rean), var(--cake));
}

.credit {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.principle {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.principle h3 { font-size: 1.18rem; letter-spacing: -0.01em; margin-bottom: 0.55rem; }
.principle p { color: var(--body); font-size: 0.96rem; }

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

.contact-form {
  max-width: 560px;
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: clamp(1.4rem, 3vw, 2rem);
  position: relative;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0; left: clamp(1.4rem, 3vw, 2rem); right: clamp(1.4rem, 3vw, 2rem);
  height: 3px;
  border-radius: 999px;
  background: var(--dawn);
  opacity: 0.85;
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.field input, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cake);
  box-shadow: 0 0 0 3px rgba(127, 166, 238, 0.22);
}

/* honeypot: off-screen but reachable by bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.cf-turnstile { margin: 0.3rem 0 1.1rem; }

.contact-form .button { margin-top: 0.3rem; }

.form-status { margin-top: 0.9rem; font-size: 0.92rem; min-height: 1.2em; }
.form-status.ok { color: var(--rean); }
.form-status.err { color: #E59C8E; }

.contact-alt { margin-top: 1.3rem; color: var(--muted); font-size: 0.95rem; }
.email-plain { color: var(--ink); font-weight: 600; }

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

footer {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 5vw, 2.25rem) 3.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  position: relative;
}

.foot-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
  margin-bottom: 2rem;
}

footer a { color: var(--muted); text-decoration: none; transition: color 0.2s var(--ease); }
footer a:hover { color: var(--ink); }
.dot { margin: 0 0.6rem; color: var(--line-strong); }
footer .email-plain { font-weight: 600; }
.foot-brand { color: var(--ink); font-weight: 600; }
.tm { font-size: 0.62em; vertical-align: 0.42em; font-weight: 600; margin-left: 1px; }
.copyright { margin-top: 1rem; font-size: 0.78rem; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
  .product { grid-template-columns: 1fr; }
  .product-cake .product-art { order: -1; }
  .principles { grid-template-columns: 1fr; }
}

/* ---------- Motion: tasteful "appearances" ---------- */

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

.js .horizon { transform: scaleX(0); }
.js .horizon.in { animation: drawLine 0.8s var(--ease) 0.2s forwards; }
@keyframes drawLine { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  .js .horizon, .js .horizon.in { transform: none; animation: none; }
  .button:hover, .product:hover, .product-link:hover { transform: none; }
}
