/* ═══════════════════════════════════════════
   MOBILE.CSS: Esther's Eloquence Emporium
   ─ Tablet  : 769px – 1024px
   ─ Mobile  : ≤ 768px
   Desktop styles in styles.css are untouched.
   ═══════════════════════════════════════════ */

/* ── TABLET ── */
@media (min-width: 769px) and (max-width: 1024px) {

  .container {
    padding: 0 40px;
  }

  /* Hero: the biggest pain point at tablet */
  .hero-inner {
    min-height: 680px;
    gap: 12px;
  }
  .hero-left {
    max-width: 320px;
    padding-top: 120px;
  }
  .hero-title-bold,
  .hero-title-italic {
    font-size: 72px;
    line-height: 68px;
  }
  .hero-greeting { font-size: 26px; line-height: 34px; }
  .hero-desc { font-size: 20px; line-height: 30px; }
  .hero-center {
    flex: 0 0 300px;
    margin-left: 16px;
  }
  .hero-portrait { height: 580px; }
  .hero-right {
    max-width: 210px;
    gap: 18px;
  }
  .stat-number { font-size: 28px; line-height: 34px; }
  .stat-label  { font-size: 14px; line-height: 20px; }

  /* Global section titles */
  .section-title { font-size: 60px; line-height: 60px; }
  .about-title,
  .skills-title,
  .process-title { font-size: 52px; line-height: 52px; }

  /* About */
  .about-inner { gap: 48px; }
  .about-intro { font-size: 22px; line-height: 36px; }

  /* Services bar: 2×2 on tablet */
  .services-inner { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(3) { border-left: none; }

  /* Portfolio: 2 cols on tablet */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  /* Skills */
  .skills-inner { gap: 48px; }

  /* Process */
  .process-inner { gap: 40px; }

  /* Pricing: stack to single col on tablet since 3 cols is cramped */
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 12px; }
  .price-card {
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
  }
  .price-card--featured { border: none !important; }

  /* FAQ */
  .faq-inner { grid-template-columns: 1fr; gap: 40px; }

  /* Reach */
  .reach-editorial { gap: 40px; }
  .reach-lead-number { font-size: 88px; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {

  /* ── BASE ── */
  :root {
    --section-padding: 60px;
  }

  .container {
    padding: 0 20px;
  }

  .section-title {
    font-size: 42px;
    line-height: 42px;
  }

  .section-sub {
    font-size: 16px;
    line-height: 24px;
  }

  .btn {
    font-size: 16px;
    gap: 14px;
    padding: 10px 10px 10px 22px;
  }

  .btn-arrow {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  /* ── HEADER ── */
  .site-header .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .logo {
    font-size: 28px;
    line-height: 28px;
  }

  .logo-dot {
    width: 10px;
    height: 10px;
  }

  .menu-btn {
    font-size: 17px;
    padding: 10px 20px;
  }

  /* ── HERO ── */
  .hero-glow {
    width: 280px; height: 280px;
    top: -60px; left: -40px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
    gap: 0;
    text-align: center;
  }

  /* Portrait takes full top portion */
  .hero-center {
    flex: none;
    order: 1;
    width: 100%;
    position: relative;
    margin-left: 0;
  }

  .hero-portrait {
    width: 100%;
    max-width: 100%;
    height: 100vw;
    min-height: 420px;
    max-height: 620px;
    border-radius: 0 0 40% 40%;
    object-fit: cover;
    object-position: top center;
    display: block;
  }

  /* Text block sits directly below portrait */
  .hero-left {
    flex: none;
    width: 100%;
    padding: 28px 20px 0;
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 28px;
  }

  .hero-greeting {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 4px;
    opacity: 0.7;
  }

  .hero-title-bold,
  .hero-title-italic {
    font-size: 58px;
    line-height: 54px;
  }

  .hero-title {
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 23px;
    margin-bottom: 16px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.75;
  }

  .hero-tags {
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
  }

  .hero-tag {
    font-size: 12px;
    padding: 5px 12px;
  }

  /* Stats: 2x2 pill grid below CTA */
  .hero-right {
    flex: none;
    width: 100%;
    order: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 24px 20px 40px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
    align-self: auto;
    text-align: center;
  }

  .stat-item {
    width: auto;
    padding: 16px 10px;
    text-align: center;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .stat-item:nth-child(2n) {
    border-right: none;
  }

  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .stat-number {
    font-size: 28px;
    line-height: 32px;
    color: var(--color-accent);
  }

  .stat-label {
    font-size: 11px;
    line-height: 15px;
    margin-top: 3px;
  }

  /* ── SERVICES ── */
  .services-bar {
    padding: 44px 0 36px;
  }

  .services-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .services-inner.container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .service-card {
    padding: 20px 14px;
    border-left: none;
    border-bottom: 1px solid var(--border);
    transition: none;
  }

  /* Reset desktop specificity bleed: :first-child and :not(:first-child) both
     override the base .service-card rule above, so re-assert uniform padding */
  .service-card:first-child,
  .service-card:not(:first-child) {
    padding-left: 14px;
  }

  .service-card:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .service-card:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .service-title {
    font-size: 17px;
    line-height: 21px;
    margin-bottom: 6px;
  }

  .service-desc {
    font-size: 12px;
    line-height: 18px;
  }

  /* ── REACH STATS ── */
  .reach-stats {
    padding: 60px 0 0;
  }

  .reach-editorial {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 40px;
  }

  .reach-lead {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
  }

  .reach-lead-number {
    font-size: 72px;
    line-height: 1;
  }

  .reach-lead-label {
    font-size: 16px;
  }

  .reach-narrative {
    font-size: 18px;
  }

  .reach-footnotes {
    gap: 8px;
  }

  .reach-footnote {
    font-size: 13px;
  }

  .quote-band {
    padding: 14px 0;
  }

  .quote-track span {
    font-size: 16px;
  }

  /* ── ABOUT ── */
  .about {
    padding: 60px 0;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-title {
    font-size: 40px;
    line-height: 40px;
  }

  .about-left-quote {
    font-size: 17px;
    line-height: 26px;
    margin-top: 16px;
  }

  .about-cta {
    margin-top: 20px;
  }

  .about-intro {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 16px;
  }

  .about-body {
    font-size: 15px;
    line-height: 23px;
  }

  .about-badges {
    gap: 6px;
  }

  .badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  /* ── PORTFOLIO / CONTENT: HORIZONTAL CAROUSEL ── */
  .portfolio {
    padding: 52px 0 48px;
  }

  .portfolio-header {
    margin-bottom: 24px;
    padding: 0 20px;
  }

  .portfolio-header .section-title {
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 6px;
  }

  .portfolio-header .section-sub {
    font-size: 14px;
    line-height: 21px;
  }

  .portfolio-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 4px 20px 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding-left: 20px;
    overscroll-behavior-x: contain;
  }

  .portfolio-grid::-webkit-scrollbar {
    display: none;
  }

  /* ── Cards: scaled-down desktop portrait ── */
  .project-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
  }

  .project-link {
    display: block;
  }

  /* Portrait thumbnail: 9:16, dark base */
  .project-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 9 / 16;
    height: auto;
    background: var(--color-card-dark);
    position: relative;
    width: 100%;
  }

  /* Thumb card fills the portrait frame */
  .thumb-card {
    padding: 18px 16px 14px;
    border-radius: 16px;
    aspect-ratio: 9 / 16;
    width: 100%;
    height: 100%;
  }

  /* Restore all thumb content */
  .project-image .thumb-stats,
  .project-image .thumb-bg-text,
  .project-image .thumb-headline,
  .project-image .thumb-series {
    display: block;
  }

  .project-image .thumb-stats {
    display: flex;
  }

  .project-image .thumb-inner {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    justify-content: center;
    padding: 0;
    align-items: flex-start;
  }

  .thumb-emoji {
    font-size: 28px;
    margin-bottom: 6px;
  }

  .thumb-headline {
    font-size: 20px;
    line-height: 22px;
  }

  .thumb-headline em {
    font-size: 21px;
  }

  .thumb-series {
    font-size: 9px;
    padding: 4px 8px;
    letter-spacing: 0.08em;
  }

  .thumb-bg-text {
    font-size: 90px;
    bottom: -10px;
    right: -6px;
  }

  .thumb-stats {
    font-size: 11px;
    gap: 8px;
    padding-top: 10px;
  }

  /* Info below the card */
  .project-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
  }

  .project-name {
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 0;
  }

  .project-desc-text {
    font-size: 12px;
    line-height: 17px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .project-footer {
    margin-top: 4px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .project-year {
    font-size: 13px;
  }

  .project-tag {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Carousel scroll indicator dots */
  .portfolio-scroll-hint {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 0 20px;
  }

  .portfolio-scroll-hint span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: color-mix(in oklch, var(--color-text) 22%, transparent);
    display: block;
    transition: all 0.3s ease;
  }

  .portfolio-scroll-hint span.active {
    background: var(--color-accent);
    width: 20px;
    border-radius: 4px;
  }

  /* ── SKILLS ── */
  .skills {
    padding: 52px 0;
  }

  .skills-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .skills-title {
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 16px;
  }

  .skills-desc {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 20px;
  }

  .skill-label {
    font-size: 34px;
    line-height: 40px;
  }


  .skill-item {
    padding: 20px 14px;
  }

  .skill-name {
    font-size: 13px;
    line-height: 18px;
  }

  /* ── PROCESS: IMAGE GOES BETWEEN HEADER AND STEPS ── */
  .process {
    padding: 60px 0;
  }

  /* Process reorder on mobile using CSS grid order */
  .process-inner {
    display: flex;
    flex-direction: column;
  }

  .process-left {
    display: flex;
    flex-direction: column;
    order: 1;
  }

  .process-header {
    order: 1;
  }

  .process-right {
    order: 2;
    margin-bottom: 28px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--color-card-dark);
    box-shadow: 0 6px 28px color-mix(in oklch, var(--color-text) 16%, transparent);
    border: 1px solid color-mix(in oklch, var(--color-text) 8%, transparent);
  }

  .process-right::after {
    content: 'How I Teach';
    position: absolute;
    bottom: 16px;
    left: 18px;
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: color-mix(in oklch, var(--color-white) 70%, transparent);
    background: color-mix(in oklch, var(--color-text) 55%, transparent);
    padding: 5px 12px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
  }

  .process-steps {
    order: 3;
  }

  .process-title {
    font-size: 38px;
    line-height: 38px;
    margin-bottom: 10px;
  }

  .process-sub {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 0;
  }

  .process-image {
    display: block;
    width: 100%;
    height: 260px;
    min-height: unset;
    border-radius: 0;
    object-fit: cover;
    object-position: top center;
    opacity: 0.92;
  }

  .step-title {
    font-size: 26px;
    line-height: 32px;
  }

  .step-desc {
    font-size: 14px;
    line-height: 22px;
  }

  .step-num {
    font-size: 16px;
    min-width: 28px;
  }

  .process-step {
    padding: 20px 0;
    gap: 14px;
  }

  /* ── GALLERY ── */
  .gallery {
    padding: 44px 0;
  }

  .gallery-slides img {
    display: none;
  }

  .gallery-tile {
    width: 160px;
    height: 120px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .gt-emoji {
    font-size: 18px;
  }

  .gt-text {
    font-size: 13px;
    line-height: 16px;
  }

  .gt--quote {
    font-size: 12px;
    line-height: 18px;
  }

  /* ── WORK WITH ME / PRICING ── */
  .pricing {
    padding: 60px 0;
  }

  .pricing-header {
    margin-bottom: 36px;
  }

  .pricing-header .section-title {
    font-size: 42px;
    line-height: 42px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
    gap: 0;
  }

  .price-card {
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid var(--border);
    padding: 36px 0;
    border-radius: 0;
  }

  .price-card:last-child {
    border-bottom: none;
  }

  .price-card + .price-card {
    border-left: none;
  }

  .price-card--featured {
    border-radius: 16px;
    padding: 32px 24px;
    margin: 8px 0;
    border-bottom: none;
  }

  .price-amount {
    font-size: 52px;
    line-height: 52px;
  }

  .plan-name {
    font-size: 22px;
  }

  .plan-features li {
    font-size: 14px;
    line-height: 21px;
  }

  .plan-badge {
    font-size: 10px;
    padding: 3px 10px;
  }

  /* ── FAQ ── */
  .faq {
    padding: 60px 0;
  }

  .faq-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .faq-header .section-title {
    font-size: 42px;
    line-height: 42px;
  }

  .faq-question {
    font-size: 16px;
    line-height: 24px;
    padding: 16px 36px 16px 0;
  }

  .faq-answer {
    font-size: 14px;
    line-height: 22px;
  }

  /* ── FOOTER ── */
  .site-footer {
    padding: 48px 0 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .footer-brand {
    grid-column: auto;
    padding: 0 0 32px;
    border-bottom: 1px solid var(--border);
  }

  .footer-logo {
    font-size: 34px;
    line-height: 40px;
    margin-bottom: 6px;
  }

  .footer-tagline {
    font-size: 10px;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
  }

  .footer-bio {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 12px;
    max-width: 100%;
  }

  .footer-copy {
    font-size: 12px;
  }

  .footer-col {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
  }

  .footer-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-col-title {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-weight: 600;
    opacity: 0.5;
  }

  .footer-col ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
  }

  .footer-col ul li {
    margin-bottom: 0;
  }

  .footer-col ul li a {
    font-size: 15px;
    line-height: 28px;
    padding: 8px 0;
    display: inline-block;
  }

  .footer-social-col ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .footer-social-col ul li a {
    font-size: 14px;
    line-height: 28px;
  }

  .footer-bottom {
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px solid var(--border);
  }

  .footer-big-sub {
    font-size: 0.8rem;
  }

  .footer-big-text {
    font-size: clamp(5rem, 26vw, 9rem);
  }

  .footer-bottom {
    padding-bottom: 40px;
  }

  /* ── REACH STATS: lead number colour ── */
  .reach-lead-number {
    color: var(--color-accent);
  }

  /* ── PROCESS: hide desktop layout, show bento ── */
  .process-inner {
    display: none;
  }

  .process-bento {
    display: block;
  }

  .bento-header {
    margin-bottom: 20px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--border);
  }

  .bento-header .section-title {
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 8px;
  }

  .bento-header .process-sub {
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 0;
    color: var(--text-secondary);
  }

  .bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
  }

  .bento-img {
    grid-column: 1 / -1;
    grid-row: 1;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .bento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  .bento-step {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--border);
  }

  .bento-step--1 {
    grid-column: 1;
    grid-row: 2;
  }

  .bento-step--2 {
    grid-column: 2;
    grid-row: 2;
  }

  .bento-step--3 {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    background: var(--color-text);
    color: var(--color-white);
    border-color: transparent;
  }

  .bento-step--3 .bento-num {
    color: var(--color-accent) !important;
  }

  .bento-step--3 .bento-step-title {
    color: var(--color-white);
  }

  .bento-step--3 .bento-step-desc {
    color: color-mix(in oklch, var(--color-white) 60%, transparent);
  }

  .bento-num {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--color-accent);
    opacity: 0.7;
    letter-spacing: 0.05em;
    line-height: 1;
  }

  .bento-step-title {
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 20px;
    color: var(--color-text);
    margin: 0;
  }

  .bento-step-desc {
    font-family: var(--font-serif);
    font-size: 13px;
    line-height: 18px;
    color: var(--text-secondary);
    margin: 0;
  }

  /* ── FLOATING SUBSCRIBE ── */
  .float-sub {
    bottom: 16px;
    right: 16px;
    font-size: 14px;
    padding: 9px 16px 9px 14px;
    gap: 8px;
  }

  /* ── NAV DROPDOWN ── */
  .nav-dropdown {
    position: fixed;
    top: 0; left: 0; right: 0;
    border-radius: 0 0 20px 20px;
    padding: 80px 28px 32px;
    min-width: 100%;
    transform: translateY(-100%);
    transform-origin: top center;
    opacity: 0;
    transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease-out);
  }

  .menu-wrapper.active .nav-dropdown {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 28px;
    line-height: 48px;
    border-bottom: 1px solid color-mix(in oklch, var(--color-white) 8%, transparent);
    padding: 4px 0;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

}

/* Extra small phones */
@media (max-width: 360px) {
  .hero-title-bold,
  .hero-title-italic {
    font-size: 46px;
    line-height: 43px;
  }

  .project-card {
    flex: 0 0 210px;
    min-width: 210px;
  }

  .stat-number {
    font-size: 22px;
  }
}
