/* Homepage (#/home). Rendered by home.js; scoped under .home so it can't leak into other pages. */

.home {
  --home-red: #E1233F;
  --home-green: #16A34A;
  --home-blue: #5279ff;
  --home-ink: #1D233A;
  --home-surface: rgba(255, 255, 255, 0.05);
  --home-line: rgba(255, 255, 255, 0.1);
  --home-line-strong: rgba(255, 255, 255, 0.22);
  --home-muted: rgba(255, 255, 255, 0.72);
  --home-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  grid-column: 1 / -1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.home a { color: inherit; text-decoration: none; }

.home-arrow,
.home-external {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  transition: transform 0.25s var(--home-ease);
}

/* Sections rise in, one after another */
.home-reveal {
  animation: home-rise 0.7s var(--home-ease) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
  min-height: 440px;
  padding: 52px 48px;
  border-radius: 28px;
  border: 1px solid var(--home-line);
  background:
    radial-gradient(90% 85% at 0% 0%, rgba(225, 35, 63, 0.32) 0%, rgba(225, 35, 63, 0) 60%),
    radial-gradient(80% 90% at 100% 100%, rgba(82, 121, 255, 0.32) 0%, rgba(82, 121, 255, 0) 62%),
    linear-gradient(155deg, #3A4460 0%, #262D40 100%);
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.7);
}

/* Faint grid that fades out toward the edges */
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 35% 45%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 35% 45%, #000 10%, transparent 75%);
}

.home-hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.9);
}

.home-eyebrow-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
}

.home-eyebrow-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22C55E;
  animation: home-pulse 2.4s ease-out infinite;
}

@keyframes home-pulse {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(3); opacity: 0; }
}

.home-title {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #FFFFFF;
  text-wrap: balance;
}

.home-title-accent {
  background: linear-gradient(92deg, #FF5C75 0%, #FF8A5B 55%, #FFC36B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-lede {
  margin: 0;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--home-muted);
  text-wrap: pretty;
}

/* Ask box: hands the question to the SUFS Assistant */
.home-ask {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin-top: 4px;
  padding: 7px 7px 7px 9px;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(255, 255, 255, 0.07);
  transition: box-shadow 0.2s ease;
}

.home-ask:focus-within {
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(225, 35, 63, 0.4);
}

.home-ask-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #EEF1F8;
}

.home-ask-input {
  flex: 1;
  min-width: 0;
  padding: 10px 2px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--home-ink);
}

.home-ask-input::placeholder { color: #8E919C; }

.home-ask-send {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 13px;
  background: var(--home-red);
  color: #FFFFFF;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.home-ask-send:hover:not(:disabled) { background: #C81D36; }
.home-ask-send:active:not(:disabled) { transform: scale(0.95); }
.home-ask-send:disabled { opacity: 0.35; cursor: default; }
.home-ask-send:focus-visible { outline: 3px solid rgba(225, 35, 63, 0.45); outline-offset: 2px; }

.home-ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 580px;
}

.home-chip {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-chip:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); color: #FFFFFF; }
.home-chip:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* Collage of real resource covers */
.home-hero-art {
  position: relative;
  height: 360px;
}

.home-hero-cover {
  position: absolute;
  width: 62%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.65);
}

.home-hero-cover-1 { top: 4%; left: 0; transform: rotate(-6deg); z-index: 1; }
.home-hero-cover-2 { top: 20%; right: 0; transform: rotate(5deg); z-index: 2; }
.home-hero-cover-3 { bottom: 0; left: 16%; transform: rotate(-1.5deg); z-index: 3; }

.home-float {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5);
  animation: home-float 6s ease-in-out infinite;
}

.home-float-1 { top: 0; right: 6%; }
.home-float-2 { top: 50%; left: -4%; animation-delay: -2s; }
.home-float-3 { bottom: 4%; right: 0; animation-delay: -4s; }

.home-float-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--home-green);
  color: #FFFFFF;
  font-size: 12px;
}

@keyframes home-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Stats ---------- */
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -16px;
}

.home-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
}

.home-stat-value {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.home-stat-label {
  font-size: 14px;
  line-height: 1.4;
  color: var(--home-muted);
}

/* ---------- Section headings ---------- */
.home-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.home-section-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: #FFFFFF;
}

.home-section-sub {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--home-muted);
}

.home-see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--home-line);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.home-see-all:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--home-line-strong); }
.home-see-all:hover .home-arrow { transform: translateX(3px); }

/* ---------- Bento of offerings ---------- */
.home-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}

.home-tile {
  --tile-accent: #E1233F;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 250px;
  padding: 26px;
  border-radius: 22px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  color: #FFFFFF;
  transition: transform 0.3s var(--home-ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Accent glow in the corner of each tile */
.home-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 60% at 100% 0%, var(--tile-accent), transparent 70%);
  opacity: 0.16;
  transition: opacity 0.3s ease;
}

a.home-tile:hover {
  transform: translateY(-4px);
  border-color: var(--home-line-strong);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.75);
}

a.home-tile:hover::before { opacity: 0.28; }
a.home-tile:hover .home-arrow { transform: translateX(4px); }
a.home-tile:hover .home-external { transform: translate(2px, -2px); }
.home-tile:focus-visible,
.home-card:focus-visible,
.home-see-all:focus-visible,
.home-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; }

.home-tile-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.home-tile-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tile-accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--tile-accent) 40%, transparent);
  font-size: 22px;
  line-height: 1;
}

.home-tile-title {
  margin: 4px 0 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.home-tile-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--home-muted);
}

.home-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
}

/* Resources: wide tile, copy beside a cover mosaic */
.home-tile-resources {
  grid-column: span 2;
  flex-direction: row;
  align-items: stretch;
}

.home-tile-resources .home-tile-body { flex: 1 1 45%; }
.home-tile-resources .home-tile-link { margin-top: auto; padding-top: 8px; }

.home-mosaic {
  flex: 1 1 55%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 210px;
}

.home-mosaic img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.5s var(--home-ease);
}

.home-tile-resources:hover .home-mosaic img:nth-child(1) { transform: translate(-3px, -3px) rotate(-1.5deg); }
.home-tile-resources:hover .home-mosaic img:nth-child(2) { transform: translate(3px, -3px) rotate(1.5deg); }
.home-tile-resources:hover .home-mosaic img:nth-child(3) { transform: translate(-3px, 3px) rotate(1.5deg); }
.home-tile-resources:hover .home-mosaic img:nth-child(4) { transform: translate(3px, 3px) rotate(-1.5deg); }

/* SUFS Assistant: tall tile with a chat preview */
.home-tile-assistant { grid-row: span 2; }

.home-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--home-line);
}

.home-chat-row { display: flex; align-items: flex-end; gap: 8px; }
.home-chat-user { justify-content: flex-end; }

.home-bubble {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
}

.home-chat-user .home-bubble {
  background: var(--home-red);
  color: #FFFFFF;
  border-bottom-right-radius: 5px;
}

.home-chat-bot .home-bubble {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 5px;
}

.home-chat-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 8px 8px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--home-line);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.home-chat-send {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--home-red);
  color: #FFFFFF;
  font-size: 14px;
}

.home-chat-avatar { width: 28px; height: 28px; border-radius: 50%; background: #EEF1F8; flex-shrink: 0; }

.home-typing { display: inline-flex; align-items: center; gap: 4px; padding: 13px 14px; }

.home-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  animation: home-typing 1.2s ease-in-out infinite;
}

.home-typing i:nth-child(2) { animation-delay: 0.15s; }
.home-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes home-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Florida Curriculum: a real standard, styled like the curriculum cards */
.home-standard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #3A3F55;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.7);
  transform: rotate(-1deg);
  transition: transform 0.35s var(--home-ease);
}

.home-tile-curriculum:hover .home-standard { transform: rotate(0deg) translateY(-2px); }

.home .fc-code {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 6px;
  background: #faebff;
  color: #9228e7;
  font-size: 12px;
  font-weight: 600;
}

.home-standard-desc {
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-levels { display: flex; gap: 6px; }

.home-levels span {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.home-levels .mild { background: #E9F7E4; color: #2F8A14; }
.home-levels .hot { background: #FFF1DD; color: #C26A00; }
.home-levels .spicy { background: #FFE4E8; color: #C81D36; }

/* SUFS Blogs: fanned article thumbnails */
.home-fan {
  position: relative;
  height: 96px;
}

.home-fan img {
  position: absolute;
  top: 8px;
  width: 44%;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #3A4460;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s var(--home-ease);
}

.home-fan img:nth-child(1) { left: 0; transform: rotate(-5deg); z-index: 1; }
.home-fan img:nth-child(2) { left: 28%; transform: rotate(0deg) translateY(-6px); z-index: 2; }
.home-fan img:nth-child(3) { left: 56%; transform: rotate(5deg); z-index: 1; }

.home-tile-blogs:hover .home-fan img:nth-child(1) { transform: rotate(-9deg) translateX(-6px); }
.home-tile-blogs:hover .home-fan img:nth-child(2) { transform: translateY(-10px); }
.home-tile-blogs:hover .home-fan img:nth-child(3) { transform: rotate(9deg) translateX(6px); }

/* Online Tutoring: the green spotlight tile */
.home-tile-tutoring {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, #1DB954 0%, #16A34A 45%, #0F7A37 100%);
  border-color: rgba(255, 255, 255, 0.18);
}

.home-tile-tutoring::before { display: none; }
.home-tile-tutoring .home-tile-body { flex: 1 1 55%; }
.home-tile-tutoring .home-tile-text { color: rgba(255, 255, 255, 0.88); }

.home-tile-eyebrow {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.home-tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.home-tutoring-image {
  flex: 1 1 45%;
  min-width: 0;
  max-width: 340px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
  transform: rotate(2deg);
  transition: transform 0.4s var(--home-ease);
}

.home-tile-tutoring:hover .home-tutoring-image { transform: rotate(0deg) scale(1.02); }

/* Shared buttons */
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-btn:active { transform: translateY(1px); }

.home-btn-light {
  background: #FFFFFF;
  color: var(--home-ink);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}

.home-btn-light:hover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6); transform: translateY(-1px); }
.home-tile-tutoring .home-btn-light { color: #0F7A37; }

.home a.home-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
}

.home-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #FFFFFF; }
.home-btn-ghost:hover .home-external { transform: translate(2px, -2px); }

/* ---------- Resource and article cards ---------- */
.home-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  transition: transform 0.3s var(--home-ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-card:hover {
  transform: translateY(-4px);
  border-color: var(--home-line-strong);
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.75);
}

.home-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #262D40;
}

.home-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--home-ease);
}

.home-card:hover .home-card-image img { transform: scale(1.06); }

.home-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  padding: 14px 16px 16px;
}

.home-card-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #FF8A9B;
}

.home-card-title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: #FFFFFF;
}

.home-card-meta {
  margin-top: auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Newsletter ---------- */
.home-newsletter {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 24px;
  background:
    radial-gradient(60% 140% at 100% 0%, rgba(255, 195, 107, 0.35) 0%, transparent 60%),
    linear-gradient(120deg, #E1233F 0%, #B8183A 100%);
  box-shadow: 0 26px 50px -28px rgba(225, 35, 63, 0.8);
}

.home-newsletter::before {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -90px;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 36px solid rgba(255, 255, 255, 0.08);
}

.home-newsletter-copy { max-width: 620px; }

.home-newsletter-title {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: #FFFFFF;
  text-wrap: balance;
}

.home-newsletter-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.home-newsletter .home-btn-light { color: #B8183A; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 44px 40px;
  }

  .home-hero-art { display: none; }
  .home-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-tile-assistant { grid-row: auto; }
  .home-chat { flex: none; }
}

@media (max-width: 1000px) {
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  body.home-view #page-title::before { display: none !important; }

  .home { gap: 36px; }

  .home-hero {
    padding: 28px 20px;
    border-radius: 22px;
    gap: 0;
  }

  .home-hero-copy { gap: 16px; }
  .home-lede { font-size: 15.5px; }
  .home-ask { padding: 6px 6px 6px 8px; border-radius: 16px; }
  .home-ask-avatar { width: 32px; height: 32px; }
  .home-ask-send { width: 42px; height: 42px; }

  .home-stats { gap: 10px; margin-top: -8px; }
  .home-stat { padding: 16px; border-radius: 16px; }
  .home-stat-value { font-size: 28px; }
  .home-stat-label { font-size: 13px; }

  .home-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .home-section-title { font-size: 24px; }

  .home-bento { grid-template-columns: minmax(0, 1fr); }
  .home-tile { min-height: 0; padding: 22px; }
  .home-tile-resources,
  .home-tile-tutoring {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .home-mosaic { min-height: 0; }
  .home-mosaic img { aspect-ratio: 16 / 10; height: auto; }
  .home-tutoring-image { max-width: none; width: 100%; transform: none; }

  .home-newsletter {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
  }
  .home-newsletter-title { font-size: 22px; }
}

@media (max-width: 520px) {
  .home-card-grid { grid-template-columns: minmax(0, 1fr); }
  .home-tile-actions .home-btn,
  .home-newsletter .home-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .home-reveal,
  .home-float,
  .home-eyebrow-dot::after,
  .home-typing i { animation: none; }

  .home *,
  .home *::before { transition: none !important; }
}
