/* ============================================================
   Kanto Systems — landing page
   Palette
     Pine    #10382B  deep forest green (text, footer)
     Moss    #1E6B4F  primary brand green
     Sprout  #79B043  fresh growth green (accent — use sparingly)
     Birch   #F6F9F4  page background
     Mist    #E3EDE2  tinted panels / lines
   Type
     Display: Bricolage Grotesque
     Body:    Instrument Sans
   ============================================================ */

/* ---------- fonts (self-hosted variable fonts) ---------- */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-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;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/instrument-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;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-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;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-italic-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 {
  --pine: #10382b;
  --moss: #1e6b4f;
  --sprout: #79b043;
  --sprout-light: #8cc15c; /* sprout for small text on pine — keeps AA (≥4.5:1) */
  --birch: #f6f9f4;
  --mist: #e3ede2;
  --ink: #1c2b24;
  --ink-soft: #47584f;
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Instrument Sans", sans-serif;
  --radius: 14px;
  --container: 1120px;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--birch);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--pine);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.55rem; }

p { color: var(--ink-soft); max-width: 62ch; }

a { color: var(--moss); }

:focus-visible {
  outline: 3px solid var(--moss);
  outline-offset: 3px;
  border-radius: 4px;
}

/* moss is too dark against the pine sections — use sprout there */
.vision :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--sprout);
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 30;
  background: var(--pine);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transform: translateY(-110%);
}

.skip-link:focus { transform: none; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1rem;
}

.eyebrow-light { color: var(--sprout-light); }

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

section[id] { scroll-margin-top: 72px; }

.section-lede { margin-bottom: 3rem; font-size: 1.125rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--moss);
  border: 2px solid var(--moss);
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover { background: var(--pine); border-color: var(--pine); transform: translateY(-1px); }

.btn-ghost {
  color: var(--moss);
  background: transparent;
}

.btn-ghost:hover { color: #fff; }

.btn-small { padding: 0.5rem 1.2rem; font-size: 0.925rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--birch) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-block: 0.9rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.wordmark-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.wordmark-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--pine);
  letter-spacing: -0.01em;
}

.wordmark-sub {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--moss);
  margin-top: -0.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}

.nav-links a:not(.btn) {
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  /* keeps tap targets ≥24px tall on wrapped mobile nav rows */
  padding-block: 0.4rem;
}

.nav-links a:not(.btn):hover { color: var(--moss); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--moss);
}

.lede {
  font-size: 1.17rem;
  margin-top: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-visual { text-align: center; }

.rings {
  width: min(100%, 440px);
  overflow: visible;
}

.ring, .ring-core {
  fill: none;
  stroke: var(--moss);
  stroke-linecap: round;
  transform-origin: 260px 260px;
}

.ring-1 { stroke-width: 3;  stroke: var(--mist);   stroke-dasharray: 6 14; }
.ring-2 { stroke-width: 5;  stroke: var(--pine);   opacity: 0.85; }
.ring-3 { stroke-width: 3;  stroke: var(--moss);   stroke-dasharray: 90 22; }
.ring-4 { stroke-width: 7;  stroke: var(--moss);   opacity: 0.55; }
.ring-5 { stroke-width: 3;  stroke: var(--sprout); stroke-dasharray: 40 14; }
.ring-core { stroke: var(--sprout); stroke-width: 3; fill: color-mix(in srgb, var(--sprout) 22%, transparent); }

.sprout path { fill: var(--sprout); }
.sprout path:first-child { fill: var(--moss); }

.rings-caption {
  margin: 1.4rem auto 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* one-time page-load entrance; no ambient motion after it settles */
@media (prefers-reduced-motion: no-preference) {
  .rings-group { animation: rings-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .sprout { animation: sprout-in 0.9s 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

  @keyframes rings-in {
    from { opacity: 0; transform: scale(0.86); transform-origin: 260px 260px; }
    to   { opacity: 1; transform: scale(1); }
  }
  @keyframes sprout-in {
    from { opacity: 0; transform: translate(260px, 40px) scale(0.4); }
    to   { opacity: 1; transform: translate(260px, 20px) scale(1); }
  }
}

/* ---------- shift ---------- */

.shift { background: #fff; border-block: 1px solid var(--mist); }

.shift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-top: 2.5rem;
}

.shift-item {
  border-top: 3px solid var(--sprout);
  padding-top: 1.4rem;
}

.focus-grid { grid-template-columns: repeat(2, 1fr); margin-top: 0; }

.focus-grid .shift-item:last-child { border-top-color: var(--moss); }

/* ---------- approach ---------- */

.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.loop-card {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}

.loop-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  transform: rotate(-90deg);
}

.loop-track { fill: none; stroke: var(--mist); stroke-width: 4; }

.loop-arc {
  fill: none;
  stroke: var(--moss);
  stroke-width: 4;
  stroke-linecap: round;
}

.loop-card:last-child .loop-arc { stroke: var(--sprout); }

/* ---------- the model ---------- */

.model { border-top: 1px solid var(--mist); }

.model-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 3rem;
}

.model-explain p + p { margin-top: 1.1rem; }

.model-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.md-box {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
}

.md-box strong {
  display: block;
  font-family: var(--display);
  font-size: 0.975rem;
  color: var(--pine);
}

.md-box span { color: var(--ink-soft); font-size: 0.825rem; }

.md-devco { border: 2px solid var(--moss); }

.md-fin { background: var(--mist); }

.md-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.md-row .md-box { border-top: 3px solid var(--sprout); }

.md-link {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  max-width: none;
}

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

/* ---------- people (currently disabled in HTML — see TODO) ---------- */

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.person-card {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}

.person-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.1rem;
}

.person-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--moss);
  margin-bottom: 0.6rem;
}

/* ---------- services ---------- */

.services {
  background: var(--birch);
}

.services .loop-card { background: #fff; }

.services-cta {
  margin-top: 2.25rem;
  font-size: 1.075rem;
  font-weight: 500;
  color: var(--pine);
}

/* ---------- vision ---------- */

.vision {
  background: var(--pine);
}

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

.vision h2 { color: #fff; }

.vision p { color: color-mix(in srgb, #fff 78%, var(--pine)); font-size: 1.125rem; }

.vision-tagline {
  margin-top: 2.2rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--sprout);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.field { margin-bottom: 1.1rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pine);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--birch);
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--moss);
  outline-offset: 1px;
  border-color: var(--moss);
}

.field textarea { resize: vertical; }

.form-note {
  margin-top: 1rem;
  font-size: 0.925rem;
  color: var(--moss);
}

.contact-email {
  margin-top: 1.2rem;
  font-size: 0.975rem;
}

.honeypot { display: none; }

.form-privacy {
  margin-top: 0.9rem;
  font-size: 0.85rem;
}

.footer-legal a {
  color: inherit;
}

/* ---------- prose pages (model.html) ---------- */

.prose-lede {
  font-size: 1.125rem;
  margin-top: 1.75rem;
}

.prose h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin: 3rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.075rem;
  margin: 1.75rem 0 0.35rem;
}

.prose p + p { margin-top: 1rem; }

.prose-cta {
  margin-top: 3rem;
  font-size: 1.075rem;
  font-weight: 500;
  color: var(--pine);
}

/* ---------- privacy / legal page ---------- */

.legal-inner { max-width: 720px; }

.legal-title {
  font-family: var(--display);
  color: var(--pine);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.015em;
}

.legal-updated {
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.5rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--pine);
  padding-block: 2.75rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-mark {
  width: 44px;
  height: 44px;
}

.wordmark-footer { color: #fff; }

.wordmark-footer .wordmark-sub { color: var(--sprout-light); }

.footer-tagline {
  color: color-mix(in srgb, #fff 65%, var(--pine));
  font-size: 0.925rem;
  margin-top: 0.5rem;
}

.footer-legal {
  /* ≥68% white keeps 14px text at AA contrast (≥4.5:1) on pine */
  color: color-mix(in srgb, #fff 68%, var(--pine));
  font-size: 0.875rem;
}

/* ---------- scroll reveal ----------
   Hidden state is gated on the .js class (set by script.js) so content
   stays visible if JavaScript is blocked or fails to load. */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  /* copy first, rings after — the value prop stays above the fold on phones */
  .hero-grid { grid-template-columns: 1fr; }
  .rings { width: min(60%, 300px); }
  .shift-grid { grid-template-columns: 1fr; }
  .loop-grid { grid-template-columns: 1fr 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* the wrapped two-row header would permanently eat ~150px of a small
     viewport if it stayed sticky */
  .site-header { position: static; }
  section[id] { scroll-margin-top: 1rem; }
  .nav { flex-wrap: wrap; row-gap: 0.3rem; padding-block: 0.7rem; }
  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 0.3rem 1.1rem;
  }
  .nav-links a { font-size: 0.9rem; }
  .btn-small { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
  .loop-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
