/* ============================================================================
   common-home.css — Common Ground home page for eugeny.com
   ----------------------------------------------------------------------------
   Home page only. Loaded after assets/eugeny.css (reset and shared base).
   World: warm ivory paper, deep ink-blue, denim sidebar, pale blue band, one
   orange accent. Flat surfaces, hard edges, Fraunces display against system UI.

   Sections: hero plate, workspace window, creative modes with the December 12
   release register, European close. Motion is one authored entrance plus quiet
   hover and focus states, all transform/opacity only.

   Contrast: body text is ink on ivory or dark slate on pale blue. Orange is
   never used for text, only for rules, markers and the wordmark dot.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --ch-ivory:   #f8f3e4;
  --ch-ivory-2: #fffdf6;
  --ch-card:    #fdfcf6;
  --ch-ink:     #1b2f5c;
  --ch-ink-2:   #2b3f60;
  --ch-body:    #33475f;
  --ch-slate:   #22364e;
  --ch-label:   #3b4f66;
  --ch-orange:  #d9491f;
  --ch-band:    #d3e4f2;
  --ch-band-ink:#1d3149;
  --ch-frame:   #f1ecdd;
  --ch-side:    #edf1f8;
  --ch-line:    rgba(27, 47, 92, .16);
  --ch-line-2:  rgba(27, 47, 92, .28);
  --ch-line-ui: #e2e7ef;

  /* Type */
  --ch-display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --ch-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;

  /* Layout */
  --ch-wrap: 1240px;
  --ch-gutter: clamp(24px, 4.4vw, 56px);
  --ch-edge: max(var(--ch-gutter), calc((100vw - var(--ch-wrap)) / 2));

  /* Motion */
  --ch-ease: cubic-bezier(.16, 1, .3, 1);
  --ch-ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* The shared sheet paints a gradient page; this home is a flat printed sheet. */
body.home {
  color: var(--ch-body);
  background-color: var(--ch-ivory);
  background-image: none;
  background-attachment: scroll;
  font-family: var(--ch-ui);
  font-size: 16px;
  line-height: 1.55;
}

body.home ::selection { background: var(--ch-ink); color: var(--ch-ivory); }
body.home :focus-visible { outline: 2px solid var(--ch-ink); outline-offset: 3px; }

.ch-wrap {
  width: min(var(--ch-wrap), calc(100% - 2 * var(--ch-gutter)));
  margin-inline: auto;
}

.ch-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.ch-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ch-ic {
  width: 1em; height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ch-skip {
  position: absolute;
  left: 12px; top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ch-ink);
  color: var(--ch-ivory-2);
  font-size: .9rem;
  text-decoration: none;
}
.ch-skip:focus { top: 12px; }

.ch-dot { color: var(--ch-orange); }


/* ----------------------------------------------------------------------------
   01. Navigation
   ------------------------------------------------------------------------- */
.ch-nav {
  position: relative;
  z-index: 30;
  background: var(--ch-ivory);
}

.ch-nav-inner {
  width: min(var(--ch-wrap), calc(100% - 2 * var(--ch-gutter)));
  margin-inline: auto;
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 0;
}

.ch-brand {
  font-family: var(--ch-display);
  font-size: 1.72rem;
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--ch-ink);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.ch-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.1vw, 30px);
  margin-left: clamp(30px, 5vw, 64px);
  margin-right: auto;
}
.ch-nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ch-ink-2);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ch-ease-soft), border-color .2s var(--ch-ease-soft);
}
.ch-nav-links a:hover {
  color: var(--ch-ink);
  border-bottom-color: var(--ch-orange);
}

.ch-nav-toggle { display: none; }
.ch-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 12px 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.ch-burger span:not(.ch-sr-only) {
  display: block;
  height: 1.5px;
  background: var(--ch-ink);
  transition: transform .22s var(--ch-ease-soft), opacity .22s var(--ch-ease-soft);
}
.ch-nav-toggle:focus-visible + .ch-burger { outline: 2px solid var(--ch-ink); outline-offset: 2px; }
.ch-nav-toggle:checked + .ch-burger span:nth-child(2) { transform: translateY(6.5px) rotate(45deg); }
.ch-nav-toggle:checked + .ch-burger span:nth-child(3) { opacity: 0; }
.ch-nav-toggle:checked + .ch-burger span:nth-child(4) { transform: translateY(-6.5px) rotate(-45deg); }


/* ----------------------------------------------------------------------------
   02. Hero — ivory editorial panel, illustrated plate flush to the right edge
   ------------------------------------------------------------------------- */
.ch-hero { position: relative; padding: 0; background: var(--ch-ivory); }

.ch-rail {
  position: absolute;
  left: clamp(8px, 1.1vw, 16px);
  top: clamp(28px, 4vw, 52px);
  bottom: clamp(24px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: var(--ch-label);
}
.ch-rail span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ch-label);
}
.ch-rail .ch-ic { width: 20px; height: 20px; color: #46583f; }

.ch-hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 42%) minmax(0, 58%);
  align-items: stretch;
  min-height: clamp(430px, 45vw, 640px);
}

.ch-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 3.4vw, 48px) clamp(26px, 3vw, 46px) clamp(26px, 3.4vw, 46px)
           calc(var(--ch-edge) + clamp(6px, 1.6vw, 24px));
}

.ch-hero h1 {
  font-family: var(--ch-display);
  font-size: clamp(2.5rem, 5.2vw, 4.55rem);
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.018em;
  color: var(--ch-ink);
  max-width: 11.5ch;
}

.ch-lede {
  margin-top: clamp(18px, 2vw, 26px);
  max-width: 34ch;
  font-size: clamp(1.02rem, 1.1vw, 1.15rem);
  line-height: 1.55;
  color: var(--ch-body);
}

.ch-cta-row { margin-top: clamp(16px, 2vw, 24px); }

.ch-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-size: .98rem;
  font-weight: 500;
  color: var(--ch-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ch-line-2);
  padding-bottom: 3px;
  transition: border-color .2s var(--ch-ease-soft);
}
.ch-link .ch-ic {
  width: 1.4em; height: 1.1em;
  color: var(--ch-orange);
  transition: translate .25s var(--ch-ease);
}
.ch-link:hover { color: var(--ch-ink); border-bottom-color: var(--ch-orange); }
.ch-link:hover .ch-ic { translate: 4px 0; }

.ch-hero-art {
  position: relative;
  margin: 0;
  background: #e6e3d1;
  overflow: hidden;
}
.ch-hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 46%;
}


/* ----------------------------------------------------------------------------
   03. Section split
   ------------------------------------------------------------------------- */
.ch-band { padding: clamp(42px, 4.6vw, 68px) 0; }
.ch-workspace { background: var(--ch-ivory); }
.ch-modes { background: var(--ch-band); }

.ch-split {
  display: grid;
  grid-template-columns: minmax(0, .38fr) minmax(0, .62fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.ch-kicker {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ch-label);
  margin-bottom: 14px;
}

.ch-split h2,
.ch-close h2 {
  font-family: var(--ch-display);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.014em;
  color: var(--ch-ink);
  max-width: 14ch;
}

.ch-split-copy p:not(.ch-kicker):not(.ch-link-row) {
  margin-top: clamp(16px, 1.8vw, 22px);
  max-width: 40ch;
  font-size: clamp(1rem, 1vw, 1.06rem);
  line-height: 1.62;
  color: var(--ch-body);
}
.ch-link-row { margin-top: clamp(20px, 2.2vw, 28px); }

.ch-workspace .ch-split-copy { padding-top: clamp(4px, 1vw, 14px); }
.ch-modes .ch-split-copy { padding-top: clamp(2px, .8vw, 10px); }


/* ----------------------------------------------------------------------------
   04. App window — cream frame, denim sidebar, white canvas
   ------------------------------------------------------------------------- */
.ch-app-wrap {
  margin: clamp(-26px, -2vw, -10px) 0 0;
}

.ch-app {
  display: grid;
  grid-template-columns: clamp(140px, 22%, 196px) minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  background: var(--ch-frame);
  border: 1px solid rgba(27, 47, 92, .1);
  border-radius: 16px;
  box-shadow: 0 30px 60px -44px rgba(27, 47, 92, .55), 0 2px 8px rgba(27, 47, 92, .05);
  font-family: var(--ch-ui);
  font-size: 12px;
  line-height: 1.35;
  color: var(--ch-slate);
}

.ch-app-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 11px 9px 14px;
  background: var(--ch-side);
  border-radius: 10px;
}
.ch-app-dots { display: flex; gap: 5px; padding: 1px 2px 7px; }
.ch-app-dots i { width: 7px; height: 7px; border-radius: 50%; background: #e2746a; }
.ch-app-dots i:nth-child(2) { background: #e6bc63; }
.ch-app-dots i:nth-child(3) { background: #7bbd86; }

.ch-app-brand {
  font-family: var(--ch-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ch-ink);
  padding: 0 6px 2px;
  line-height: 1.1;
}

.ch-app-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ch-app-nav li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #34485f;
  font-size: 12px;
}
.ch-app-nav li .ch-ic { width: 13px; height: 13px; color: #46586e; }
.ch-app-nav li.is-active { background: #dfe6f2; color: var(--ch-ink); font-weight: 600; }
.ch-app-nav li.is-active .ch-ic { color: var(--ch-ink); }
.ch-app-nav + .ch-app-nav { border-top: 1px solid #dbe2ee; padding-top: 10px; margin-top: 4px; }

.ch-app-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 16px;
  min-width: 0;
  background: #fff;
  border-radius: 10px;
}
.ch-app-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ch-ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ch-line-ui);
}

.ch-app-greet { display: flex; align-items: center; gap: 10px; }
.ch-app-orb {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ch-ink);
  color: #f6f1e2;
  flex: none;
}
.ch-app-orb .ch-ic { width: 16px; height: 16px; }
.ch-app-pill {
  flex: 0 1 260px;
  border: 1px solid var(--ch-line-ui);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 12px;
  color: #3d5169;
  background: #fff;
}

.ch-app-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ch-app-tiles li {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 2px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--ch-line-ui);
  border-radius: 8px;
  background: #fff;
}
.ch-app-tiles .ch-ic { width: 14px; height: 14px; color: #2b4a86; grid-row: 1 / span 2; }
.ch-app-tiles strong { font-size: 12px; font-weight: 600; color: var(--ch-ink); }
.ch-app-sub { font-size: 11.5px; color: #4a5f76; }

.ch-app-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--ch-line-ui);
  border-radius: 10px;
  background: #fff;
}
.ch-app-composer .ch-attach { width: 14px; height: 14px; color: #55687e; }
.ch-app-composer p { flex: 1; font-size: 12px; color: #4a5f76; }
.ch-app-mic {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: #33407d;
  color: #fff;
}
.ch-app-mic .ch-ic { width: 14px; height: 14px; }
.ch-app-composer .ch-send { width: 15px; height: 15px; color: #55687e; }

.ch-app-caption {
  margin-top: 10px;
  font-size: .78rem;
  color: #4d6178;
  text-align: right;
}


/* ----------------------------------------------------------------------------
   05. Creative modes
   ------------------------------------------------------------------------- */
.ch-modes-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.ch-mode {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px 14px;
  background: var(--ch-card);
  border: 1px solid rgba(27, 47, 92, .12);
  border-radius: 10px;
  box-shadow: 0 16px 28px -30px rgba(20, 40, 80, .55);
  transition: border-color .22s var(--ch-ease-soft), translate .22s var(--ch-ease-soft);
}
.ch-mode:hover,
.ch-mode:focus-within {
  border-color: rgba(27, 47, 92, .3);
  translate: 0 -2px;
}
.ch-mode header { display: flex; align-items: center; gap: 8px; color: var(--ch-band-ink); }
.ch-mode header .ch-ic { width: 15px; height: 15px; }
.ch-mode header h3 {
  font-family: var(--ch-ui);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .004em;
  line-height: 1.2;
  color: var(--ch-band-ink);
}
.ch-mode-text { grid-column: span 2; }
.ch-mode-image { grid-column: span 2; }
.ch-mode-voice { grid-column: span 2; }
.ch-mode-video { grid-column: span 2; }
.ch-mode-vision { grid-column: span 4; }

.ch-mode-note { font-size: .82rem; line-height: 1.45; color: var(--ch-band-ink); }

.ch-typed {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 12px 13px;
  border: 1px solid rgba(27, 47, 92, .16);
  border-radius: 7px;
  background: #fff;
  font-size: .84rem;
  line-height: 1.45;
  color: var(--ch-band-ink);
}
.ch-caret {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--ch-ink);
  translate: 0 2px;
}

.ch-frame {
  border-radius: 7px;
  overflow: hidden;
  background: #dfe3d6;
  aspect-ratio: 16 / 10;
}
.ch-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 82%; }

.ch-wave-row { display: flex; align-items: center; gap: 12px; min-height: 76px; }
.ch-wave { display: flex; align-items: center; gap: 3px; flex: 1; height: 52px; }
.ch-wave i {
  flex: 1;
  min-width: 1px;
  height: 6px;
  border-radius: 1px;
  background: #33407d;
  opacity: .9;
}
.ch-wave i:nth-child(6n + 1) { height: 16%; }
.ch-wave i:nth-child(6n + 2) { height: 46%; }
.ch-wave i:nth-child(6n + 3) { height: 84%; }
.ch-wave i:nth-child(6n + 4) { height: 34%; }
.ch-wave i:nth-child(6n + 5) { height: 66%; }
.ch-wave i:nth-child(6n + 6) { height: 22%; }
.ch-rec { width: 22px; height: 22px; border-radius: 50%; background: var(--ch-orange); flex: none; }

.ch-film {
  position: relative;
  min-height: 92px;
  border-radius: 7px;
  background: #22364e;
  overflow: hidden;
}
.ch-film img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 30% 86%;
}
.ch-film-play {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 246, .94);
  color: var(--ch-ink);
}
.ch-film-play .ch-ic { width: 15px; height: 15px; translate: 1.5px 0; fill: currentColor; }

.ch-vision { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 14px; align-items: center; }
.ch-vision-frame {
  border-radius: 7px;
  overflow: hidden;
  background: #dfe3d6;
  aspect-ratio: 5 / 4;
}
.ch-vision-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 14% 6%; }
.ch-vision-copy { display: grid; gap: 8px; }
.ch-vision-q { font-size: .85rem; line-height: 1.45; color: var(--ch-band-ink); }
.ch-vision-a { font-size: .82rem; line-height: 1.5; color: #23374f; }


/* ----------------------------------------------------------------------------
   06. December 12 release register
   ------------------------------------------------------------------------- */
.ch-release {
  margin-top: clamp(26px, 3.2vw, 42px);
  padding-top: 20px;
  border-top: 1px solid rgba(27, 47, 92, .24);
}
.ch-release-title {
  font-family: var(--ch-ui);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ch-label);
  margin-bottom: 18px;
}
.ch-release-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(16px, 2.1vw, 30px);
}
.ch-release-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ch-release-name { font-size: .95rem; font-weight: 600; color: var(--ch-band-ink); }
.ch-release-copy { font-size: .86rem; line-height: 1.5; color: #23374f; max-width: 33ch; }
.ch-release-list .ch-link { margin-top: auto; font-size: .82rem; font-weight: 500; color: var(--ch-band-ink); border-bottom-color: rgba(27, 47, 92, .3); }


/* ----------------------------------------------------------------------------
   07. Close — landscape plate with the promise set into the sky
   ------------------------------------------------------------------------- */
.ch-close { position: relative; padding: 0; background: var(--ch-ivory); }

.ch-close-stage {
  position: relative;
  min-height: clamp(520px, 50vw, 760px);
  overflow: clip;
  background: #eee9d8;
}
.ch-close-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
}

.ch-close-copy {
  position: relative;
  z-index: 1;
  width: min(34rem, 48%);
  margin-left: auto;
  margin-right: calc(var(--ch-edge) + 160px);
  padding: clamp(26px, 3.4vw, 48px) clamp(18px, 2vw, 28px);
  background: var(--ch-ivory);
}
.ch-close .ch-kicker { color: #3b4f66; margin-bottom: 12px; }
.ch-close h2 {
  max-width: 15ch;
  font-size: clamp(1.72rem, 2.9vw, 2.55rem);
}
.ch-close-copy > p:not(.ch-kicker):not(.ch-close-rule) {
  margin-top: 14px;
  max-width: 36ch;
  font-size: .95rem;
  line-height: 1.58;
  color: #2b3f58;
}
.ch-close-rule {
  margin: 20px 0 0 auto;
  padding-top: 12px;
  border-top: 2px solid var(--ch-orange);
  width: 226px;
  max-width: 100%;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ch-ink);
}

.ch-close-rail {
  position: absolute;
  z-index: 1;
  right: var(--ch-edge);
  top: clamp(70px, 9vw, 150px);
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 15px;
  text-align: right;
}
.ch-close-rail li {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--ch-ink);
  background: var(--ch-ivory);
  padding: 3px 6px;
}


/* ----------------------------------------------------------------------------
   08. Footer
   ------------------------------------------------------------------------- */
.ch-foot { background: var(--ch-ivory); }
.ch-foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 30px;
  padding: 26px 0 36px;
}
.ch-foot-brand {
  font-family: var(--ch-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ch-ink);
}
.ch-foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ch-foot-links a {
  font-size: .84rem;
  color: var(--ch-body);
  text-decoration: none;
  transition: color .2s var(--ch-ease-soft);
}
.ch-foot-links a:hover { color: var(--ch-ink); text-decoration: underline; text-underline-offset: 3px; }
.ch-foot-legal { font-size: .82rem; color: var(--ch-body); }
.ch-foot-legal a { color: var(--ch-ink); }


/* ----------------------------------------------------------------------------
   09. Motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .ch-hero-copy > * { animation: ch-rise .8s var(--ch-ease) both; }
  .ch-hero-copy h1 { animation-delay: .04s; }
  .ch-hero-copy .ch-lede { animation-delay: .12s; }
  .ch-hero-copy .ch-cta-row { animation-delay: .2s; }

  .ch-hero-art img { animation: ch-plate 1.1s var(--ch-ease) .06s both; }
  .ch-app { animation: ch-settle .85s var(--ch-ease) .14s both; }

  .ch-mode,
  .ch-close-copy { animation: ch-settle .75s var(--ch-ease) both; animation-timeline: view(); animation-range: entry 5% cover 24%; }

  .ch-caret { animation: ch-blink 1.15s steps(1, end) infinite; }
  .ch-app-mic { animation: ch-listen 2.8s var(--ch-ease-soft) 1s 2; }

  .ch-mode:hover .ch-wave i,
  .ch-mode:focus-within .ch-wave i { animation: ch-wave 1.05s ease-in-out infinite alternate; }
  .ch-wave i:nth-child(3n) { animation-delay: .16s; }
  .ch-wave i:nth-child(3n + 1) { animation-delay: .3s; }
  .ch-wave i:nth-child(4n) { animation-delay: .46s; }
}

@supports not (animation-timeline: view()) {
  .ch-mode,
  .ch-close-copy { animation: none; }
}

@keyframes ch-rise {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes ch-plate {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes ch-settle {
  from { opacity: 0; translate: 0 10px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes ch-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
@keyframes ch-listen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(51, 64, 125, .38); }
  50%      { box-shadow: 0 0 0 5px rgba(51, 64, 125, 0); }
}
@keyframes ch-wave {
  from { transform: scaleY(.55); }
  to   { transform: scaleY(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  body.home *,
  body.home *::before,
  body.home *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .ch-mode,
  .ch-close-copy { animation: none !important; }
  .ch-mode:hover,
  .ch-mode:focus-within { translate: none; }
}


/* ----------------------------------------------------------------------------
   10. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .ch-rail { display: none; }
  .ch-hero-copy { padding-left: var(--ch-edge); }
}

@media (max-width: 1020px) {
  .ch-hero-grid { grid-template-columns: minmax(280px, 46%) minmax(0, 54%); min-height: clamp(400px, 52vw, 540px); }
  .ch-split { grid-template-columns: 1fr; gap: clamp(24px, 3.4vw, 34px); }
  .ch-app-wrap { margin-top: 0; max-width: 780px; }
  .ch-workspace .ch-split-copy,
  .ch-modes .ch-split-copy { padding-top: 0; }
  .ch-split-copy p:not(.ch-kicker):not(.ch-link-row) { max-width: 52ch; }
  .ch-split h2 { max-width: 18ch; }
  .ch-modes-grid { max-width: 780px; }
  .ch-close-copy { width: min(26rem, calc(100% - var(--ch-edge) - 180px)); }
  .ch-close-rail { top: clamp(56px, 8vw, 96px); }
}

@media (max-width: 860px) {
  .ch-burger { display: flex; }
  .ch-nav-toggle { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; }
  .ch-nav-inner { flex-wrap: wrap; }
  .ch-nav-links {
    display: none;
    order: 3;
    width: 100%;
    margin: 0;
    padding: 4px 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    border-top: 1px solid var(--ch-line);
  }
  .ch-nav-toggle:checked ~ .ch-nav-links { display: flex; }
  .ch-nav-links a { font-size: 1rem; padding: 10px 0; width: 100%; }

  .ch-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .ch-hero-copy {
    padding: clamp(28px, 5vw, 42px) var(--ch-gutter) clamp(24px, 4vw, 34px);
  }
  .ch-hero h1 { max-width: 15ch; font-size: clamp(2.4rem, 8vw, 3.4rem); }
  .ch-hero-art { aspect-ratio: 16 / 10; }
  .ch-hero-art img { object-position: 58% 42%; }

  .ch-close-stage { min-height: 0; }
  .ch-close-art { position: static; height: clamp(240px, 48vw, 360px); }
  .ch-close-copy {
    width: min(var(--ch-wrap), calc(100% - 2 * var(--ch-gutter)));
    margin: 0 auto;
    padding: clamp(26px, 4vw, 38px) 0 clamp(28px, 4vw, 40px);
    background: transparent;
  }
  .ch-close h2 { font-size: clamp(1.7rem, 5.2vw, 2.3rem); max-width: 17ch; }
  .ch-close-copy > p:not(.ch-kicker):not(.ch-close-rule) { max-width: 46ch; }
  .ch-close-rule { margin-left: 0; }
  .ch-close-rail {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    justify-content: start;
    gap: 18px;
    width: min(var(--ch-wrap), calc(100% - 2 * var(--ch-gutter)));
    margin: 0 auto;
    padding: 0 0 28px;
    text-align: left;
    overflow-x: auto;
  }
  .ch-close-rail li { color: var(--ch-label); background: transparent; padding: 0; font-size: .74rem; }
}

@media (max-width: 720px) {
  .ch-mode-text, .ch-mode-image, .ch-mode-voice, .ch-mode-video { grid-column: span 3; }
  .ch-mode-vision { grid-column: span 6; }
  .ch-vision { grid-template-columns: 132px minmax(0, 1fr); }
  .ch-app { grid-template-columns: clamp(132px, 26%, 168px) minmax(0, 1fr); }
  .ch-app-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-app-tiles li:last-child { display: none; }
  .ch-app-pill { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  .ch-hero h1 { font-size: clamp(2.2rem, 10.6vw, 2.9rem); }
  .ch-app { grid-template-columns: minmax(0, 1fr); }
  .ch-app-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px;
  }
  .ch-app-dots { padding-bottom: 4px; }
  .ch-app-brand { width: 100%; padding: 0 4px 4px; }
  .ch-app-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .ch-app-nav li { padding: 5px 8px; }
  .ch-app-nav + .ch-app-nav { border-top: 0; padding-top: 0; margin-top: 0; }
  .ch-app-side .ch-app-nav:last-child li:last-child { display: none; }
  .ch-app-tiles li:last-child { display: grid; }
  .ch-vision { grid-template-columns: 1fr; }
  .ch-vision-frame { aspect-ratio: 16 / 6; }
  .ch-close-rule { margin-top: 18px; }
  .ch-foot-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ch-app-caption { text-align: left; }
}
