/* CascadAI brand — shared by cascadai.org and gambit.cascadai.org.
   Deployed to /brand/ on both hosts by deploy.sh. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/bricolage-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-weight: 400 800;
  font-display: swap;
  src: url("fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Hanken Grotesk";
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/hanken-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: "Hanken Grotesk";
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/hanken-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

:root {
  --bg: #F6F8F4;
  --surface: #FFFFFF;
  --band: #EDF1E9;
  --tint: #E7EFE3;
  --ink: #15241B;
  --body: #3C4A41;
  --muted: #5C6960;
  --line: #DDE4D6;
  --line-strong: #C9D3C0;
  --pill-line: #B6C2AC;
  --accent: #1F7A52;
  --deep: #0E3A28;
  --highlight: #F2B23C;
  --rust: #B4541F;
  --dark: #15241B;
  --dark-text: #C6D4C9;
  --dark-label: #7D9487;
  --on-accent: #E4F0E9;

  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 9.7vw, 140px);
  --wrap: 1160px;
  --section-y: clamp(44px, 6vw, 84px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); background: var(--bg); color: var(--ink); line-height: 1.5; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--deep); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul { margin: 0; }
[id] { scroll-margin-top: 88px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.section--band { background: var(--band); border-block: 1px solid var(--line); }
.section--dark { background: var(--dark); color: var(--bg); }
.section--accent { background: var(--accent); color: #fff; }

/* Type */
.display { font-family: var(--display); }
.eyebrow { display: inline-block; font-size: clamp(12px, 1vw, 14px); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section--dark .eyebrow { color: var(--highlight); }
.h2 { font-family: var(--display); font-size: clamp(29px, 3.2vw, 46px); line-height: 1.1; font-weight: 700; letter-spacing: -0.026em; color: var(--ink); }
.section--dark .h2, .section--accent .h2 { color: #fff; }
.h3 { font-family: var(--display); font-size: clamp(19px, 1.65vw, 24px); line-height: 1.2; font-weight: 700; color: var(--ink); }
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--muted); max-width: 760px; }
.copy { font-size: clamp(16px, 1.2vw, 17px); line-height: 1.6; color: var(--body); }
.caption { font-size: clamp(14px, 1.05vw, 15px); line-height: 1.5; color: var(--muted); }
.section-head { margin-bottom: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.section-head .eyebrow { margin-bottom: 2px; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav .wrap { height: clamp(64px, 6vw, 88px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-family: var(--display); font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; letter-spacing: -0.4px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 16px; font-weight: 500; text-decoration: none; color: var(--ink); }
.nav-links a[aria-current] { font-weight: 600; color: var(--accent); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); border-radius: 10px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(21,36,27,0.08); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 17px; }
  .nav-links .btn { margin-top: 8px; justify-content: center; }
}

/* Buttons & pills */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 30px; border-radius: 999px; font-size: clamp(17px, 1.25vw, 18px); font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn--sm { height: 46px; padding: 0 24px; font-size: 16px; }
.btn--primary { background: var(--accent); color: #fff !important; box-shadow: 0 2px 6px rgba(21,36,27,0.08); }
.btn--primary:hover { background: var(--deep); }
.btn--ghost { background: var(--surface); border: 1px solid var(--pill-line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--light { background: #fff; color: var(--deep); font-weight: 700; height: 58px; padding: 0 34px; }
.btn--light:hover { background: var(--tint); color: var(--deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 560px) { .btn-row { flex-direction: column; gap: 10px; } .btn-row .btn { width: 100%; } }
.pill { display: inline-flex; align-self: flex-start; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--pill-line); background: var(--surface); font-size: clamp(12px, 1vw, 14px); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--deep); }
.tag { display: inline-flex; align-self: flex-start; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--tint); font-size: 13px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--deep); }

/* Cards & grids */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1000px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.card { padding: clamp(24px, 2.3vw, 32px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.card--bg { background: var(--bg); }
.card--dashed { background: var(--band); border: 1px dashed var(--pill-line); justify-content: center; }
.card--topline { border-top: 4px solid var(--accent); }
.num { font-family: var(--display); font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1; color: var(--highlight); }

/* Media frames */
.frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--dark); box-shadow: 0 18px 44px rgba(21,36,27,0.13); }
.section--dark .frame { border-color: #2C4034; box-shadow: 0 18px 44px rgba(0,0,0,0.3); }
.frame img, .frame video { width: 100%; }
.window-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #1D2F24; border-bottom: 1px solid #2C4034; }
.window-bar i { width: 10px; height: 10px; border-radius: 999px; background: #55705F; }
.window-bar span { margin-left: 12px; font-size: 13px; color: #A9BCAF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* CTA + footer */
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px 60px; flex-wrap: wrap; }
.cta p { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--on-accent); max-width: 720px; margin-top: 14px; }
.cta-side { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.cta-side span { font-size: 15px; color: var(--on-accent); }
@media (max-width: 560px) { .cta-side { width: 100%; } .cta-side .btn { width: 100%; } }
.footer { background: var(--dark); color: var(--dark-text); padding-block: clamp(32px, 3.4vw, 48px); }
.footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px 60px; flex-wrap: wrap; }
.footer .name { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer p { font-size: 15px; line-height: 1.6; max-width: 420px; }
.footer-cols { display: flex; gap: 32px 60px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols .label { font-size: 13px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--dark-label); }
.footer a { font-size: 15px; color: var(--dark-text); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
