/* ==========================================================================
   Home page — nav (top + floating), hero, work grid, about, testimonials,
   contact, and footer. Shared nav internals live in base.css; this file
   only positions the two nav bars and styles home-only sections.
   ========================================================================== */

/* gradient + grain are isolated in their own stacking context
   so the grain screens only the gradient, not page content */
#bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(70% 60% at -5% 0%, var(--bg-pink) 0%, transparent 65%),
    radial-gradient(45% 55% at 100% 35%, var(--bg-lilac) 0%, transparent 60%),
    var(--c-white);
}

#bg-layer svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ========== TOP NAV (full-width bar; hides once scrolled) ========== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-nav.scrolled-away {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

/* ========== HERO ========== */
.hero {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1280px;
  max-width: 100%;
  padding: 0 16px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 1 591px;
  min-width: 0;
  padding-left: 20px;
}

.hero-headline-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 3.75vw, 48px);
  color: var(--c-ink);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.hero-subheadline {
  font-weight: 600;
  font-size: clamp(18px, 1.72vw, 22px);
  color: var(--c-gray-600);
  line-height: 1.4;
}

.hero-rule {
  width: 56px;
  height: 3px;
  background: var(--c-pink);
  border-radius: 2px;
}

.hero-description {
  font-size: 16px;
  color: var(--c-gray-500);
  line-height: 1.65;
}

.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  background: var(--c-purple-bright);
  color: var(--c-white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--c-purple-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--c-white);
  color: var(--c-purple);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-border-violet);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--c-border-violet-hover); transform: translateY(-1px); }
.btn-secondary:active { transform: translateY(0); }

/* hero photo frame — fluid: children sized as % of the box, which scales
   with viewport. At the 602px desktop width the percentages resolve to the
   original pixel sizes, so the desktop composition is unchanged. */
.hero-right {
  position: relative;
  flex: 0 0 auto;
  /* Two-column zone: 602px at 1280px scaling to 400px at 1050px. */
  width: clamp(260px, calc(87.8vw - 522px), 602px);
  aspect-ratio: 602 / 610;
  height: auto;
}

.hero-photo-clip {
  position: absolute;
  width: 58.804%;
  height: 77.049%;
  border-radius: 290px;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-photo-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-border {
  position: absolute;
  width: 62.126%;
  height: 80.328%;
  border-radius: 1000px;
  border: 0.5px solid var(--c-ink-deep);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-sparkle {
  position: absolute;
  width: 68.771%;
  height: 80.246%;
  left: 14.784%;
  top: 10.082%;
  pointer-events: none;
}

.hero-sparkle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ========== SECTION LABEL ========== */
.section-label {
  font-weight: 500;
  font-size: 11px;
  color: var(--c-purple-hover);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.section-label--center { text-align: center; }

/* ========== WORK SECTION ========== */
.section-work {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 88px 16px;
}

.work-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 1280px;
  max-width: 100%;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover { transform: translateY(-4px); }

.card-thumb {
  height: 320px;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease;
}

.card:hover .card-thumb { box-shadow: var(--shadow-card); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 11px;
  white-space: nowrap;
}

.chip-purple  { background: var(--c-surface-lavender); color: var(--c-purple); }
.chip-green   { background: var(--c-surface-success);  color: var(--c-ink-success); }
.chip-amber   { background: var(--c-surface-amber);    color: var(--c-ink-amber); }

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--c-ink);
  letter-spacing: -0.2px;
}

.card-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--c-gray-500);
  line-height: 1.5;
}

.card-desc {
  font-size: 14px;
  color: var(--c-gray-500);
  line-height: 1.65;
  max-width: 540px;
}

.card-link {
  font-weight: 500;
  font-size: 13px;
  color: var(--c-purple-hover);
  text-decoration: none;
  transition: color 0.18s;
}
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.card-link:hover { color: var(--c-purple-bright); }

/* thumb: IXL Quizzes */
.thumb-ixl {
  background: linear-gradient(126.16deg, #def7ff 10.729%, #f2ffe7 56.171%, #c9ebf6 98.247%);
  padding: 20px 0 0 48px;
  display: flex;
  align-items: flex-start;
}

.thumb-ixl .device-wrap {
  position: relative;
  width: 420px;
  height: 431px;
  flex-shrink: 0;
}

.thumb-ixl .device-wrap img.desktop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-ixl .ipad-group {
  position: absolute;
  left: 313px;
  top: 183px;
}

.thumb-ixl .ipad-bg {
  position: absolute;
  top: 0; left: 0;
  width: 280px;
  height: 199.868px;
  object-fit: cover;
}

.thumb-ixl .ipad-screen {
  position: absolute;
  top: 11.05px;
  left: 11.97px;
  width: 257.133px;
  height: 179.605px;
  object-fit: cover;
}

/* thumb: Rosetta Stone */
.thumb-rosetta {
  background: linear-gradient(139.97deg, #fffad6 22.354%, #fdeadb 56.524%, #fff1bb 88.162%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px;
}

.thumb-rosetta img {
  width: 183px;
  height: 348px;
  object-fit: cover;
  flex-shrink: 0;
}

/* thumb: IXL Libraries */
.thumb-libraries {
  background: linear-gradient(126.16deg, #b0d6f2 10.729%, #bd97f4 56.171%, #91d2e7 98.247%);
  padding: 20px 0 0 32px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  position: relative;
}

.thumb-libraries .ds-typography {
  width: 308px;
  height: 612px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.thumb-libraries .ds-color {
  position: absolute;
  left: 351px;
  top: 20px;
  width: 557px;
  height: 343px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

/* ========== ABOUT SECTION ========== */
.section-about {
  width: 1280px;
  max-width: calc(100% - 32px);
  background: var(--c-surface-lavender);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.about-inner {
  display: flex;
  align-items: flex-start;
  gap: 160px;
  padding-bottom: 40px;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 0 1 560px;
  min-width: 0;
}

.about-text-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--c-ink);
  letter-spacing: -0.3px;
  line-height: 1.25;
  max-width: 560px;
}

.about-body {
  font-size: 15px;
  color: var(--c-gray-600);
  line-height: 1.65;
  max-width: 560px;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 0;
  min-width: 431px;
  align-self: flex-start;
}

.hobbies-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hobby-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 40px;
  border: 1px solid var(--c-border-lavender-strong);
  font-size: 15px;
  color: var(--c-gray-600);
  white-space: nowrap;
}

.photo-grid {
  display: grid;
  grid-template-columns: 165px 76.5px 165px;
  grid-template-rows: 76.5px 76.5px;
  gap: 12px;
  width: fit-content;
}

.photo-grid img {
  border-radius: var(--radius-sm);
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.photo-grid .p-large { grid-column: 1; grid-row: 1 / span 2; }
.photo-grid .p-tr    { grid-column: 2; grid-row: 1; }
.photo-grid .p-br    { grid-column: 2; grid-row: 2; }
.photo-grid .p-right { grid-column: 3; grid-row: 1 / span 2; }

.about-divider {
  width: 100%;
  height: 1px;
  background: var(--c-border-lavender-strong);
  margin-bottom: 40px;
}

.experience-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.experience-grid {
  display: flex;
  gap: 40px;
}

.exp-item {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-title {
  font-weight: 500;
  font-size: 13px;
  color: var(--c-ink);
}

.exp-desc {
  font-size: 13px;
  color: var(--c-gray-600);
  line-height: 1.55;
}

/* ========== TESTIMONIALS ========== */
.section-testimonials {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 88px 16px;
}

.test-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  width: 1280px;
  max-width: 100%;
}

.test-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.test-row {
  display: flex;
  gap: 24px;
}

.test-card {
  background: var(--c-white);
  border: 1px solid var(--c-border-lavender);
  border-radius: var(--radius-card);
  padding: 28px;
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.test-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  color: var(--c-ink-soft);
  line-height: 24px;
}

.test-quote strong { font-weight: 700; }

.test-divider {
  width: 24px;
  height: 1.5px;
  background: var(--c-pink);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ========== CONTACT ========== */
.section-contact {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 88px 16px;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  max-width: 640px;
  width: 100%;
}

.contact-ornament {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-hairline {
  width: 32px;
  height: 1px;
  background: var(--c-pink);
}

.contact-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--c-ink);
  text-align: center;
  letter-spacing: -0.3px;
}

.contact-desc {
  font-size: 16px;
  color: var(--c-gray-500);
  text-align: center;
  max-width: 560px;
  line-height: 1.6;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--c-ink-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 56px;
  width: 100%;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.foot-brand img { width: 24px; height: 18.4px; display: block; }

.foot-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.foot-links {
  display: flex;
  gap: 24px;
}

.foot-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.50);
  text-decoration: none;
  transition: color 0.18s;
}
.foot-links a:hover { color: rgba(255, 255, 255, 0.80); }

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ========== RESPONSIVE ========== */
/* Below ~1180px the two-column About no longer fits (560px text + 160px gap
   + ~431px photo grid), so stack it vertically before it starts to clip. */
@media (max-width: 1180px) {
  .about-inner { flex-direction: column; gap: 32px; }
  .about-left { flex: 1 1 auto; }
  .about-heading, .about-body { max-width: none; }
  .about-right { min-width: 0; width: 100%; }
}

/* Below ~900px the scaled two-column hero gets too tight, so stack it
   (image on top, text below) while the image keeps scaling fluidly. */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 16px 48px; }
  .hero-left { flex: 1 1 auto; width: 100%; padding-right: 20px; }
  /* Stacked zone: 320px at 850px. */
  .hero-right { order: -1; align-self: center; width: clamp(240px, calc(40vw - 20px), 380px); }
}

@media (max-width: 768px) {
  /* Hero */
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 16px 40px;
    gap: 0;
  }
  .hero-left {
    width: 100%;
    flex-shrink: 1;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-headline { font-size: 36px; }
  .hero-subheadline { font-size: 18px; }
  .hero-right {
    display: block;
    width: 270px;
    height: 275px;
    flex-shrink: 0;
    order: -1;
    align-self: center;
    margin-top: -20px;
  }
  .hero-photo-clip { width: 159px; height: 212px; }
  .hero-photo-border { width: 168px; height: 221px; }
  .hero-sparkle { width: 186px; height: 220px; left: 40px; top: 28px; }
  .hero-description { font-size: 15px; }

  /* Work */
  .section-work { padding: 60px 16px; }
  .work-grid { grid-template-columns: 1fr; gap: 24px; }
  .card-thumb { height: 220px; }
  .card-body { padding: 20px; }

  /* About */
  .section-about { padding: 28px 20px; }
  .about-inner {
    flex-direction: column;
    gap: 32px;
  }
  .about-left { width: 100%; flex-shrink: 1; }
  .about-heading { font-size: 26px; }
  .photo-grid {
    grid-template-columns: 120px 56px 120px;
    grid-template-rows: 56px 56px;
    gap: 8px;
  }

  /* Experience */
  .experience-grid { flex-direction: column; gap: 20px; }

  /* Testimonials */
  .section-testimonials { padding: 60px 16px; }
  .test-row { flex-direction: column; gap: 16px; }

  /* Contact */
  .section-contact { padding: 60px 16px; }
  .contact-heading { font-size: 28px; }
  .contact-desc { font-size: 15px; }

  /* Footer */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 20px;
  }
}
