/* ─────────────────────────────────────────────────────────
     yozoraki v7 — homepage local styles.
     Uses --aw-color-* (Festival Midnight yozora tokens) and
     --font-heading / --font-sans (Noto Serif JP / Plus Jakarta Sans).
     No em-dashes anywhere. No rounded-xl card containers. No
     uppercase tracking text strips. No locale/weather strips.
   ────────────────────────────────────────────────────────── */

  .v7-home {
    background: var(--aw-color-bg-page);
    color: var(--aw-color-text-default);
    /* Page padding matches .v7-detail so the header logo at
       px-[96px] and the body content land at the same x. Hero
       stays FLUSH at x=72 (page-padding edge) — 24px less than
       the header / sections / bento at x=96, by design. */
    padding-inline: clamp(1rem, 4vw, 1.5rem);
  }
  @media (min-width: 1024px) {
    .v7-home {
      padding-left: 72px;
      padding-right: 72px;
    }
  }

  /* ─── Light/dark image swap (class-based theme, not media query) ───
     `!important` is required because the parent .v7-bento-cell-bg img
     rule (specificity 0,1,1) wins over .dark .v7-theme-img-* (0,2,0)
     when both apply. `!important` ensures the swap is load-bearing. */
  .v7-theme-img--light { display: block !important; }
  .v7-theme-img--dark { display: none !important; }
   .dark .v7-theme-img--light { display: none !important; }
   .dark .v7-theme-img--dark { display: block !important; }

   /* Stack the two image variants on top of each other (dark on top of light) */
   .v7-scope-cell--image .v7-theme-img,
   .v7-bento-cell-bg .v7-theme-img {
     position: absolute;
     inset: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
   }

  /* ─── Section 1: Editorial manifesto opener ─── */
  .v7-hero {
    position: relative;
    min-height: clamp(560px, 92vh, 920px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    overflow: hidden;
    isolation: isolate;
  }
  .v7-hero-frame {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .v7-hero-image,
  .v7-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .v7-hero-image {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .v7-hero-image .v7-theme-img {
    position: absolute;
    inset: 0;
  }
  .v7-hero-veil {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgb(3 6 33 / 12%) 0%, rgb(3 6 33 / 0%) 32%, rgb(3 6 33 / 0%) 56%, rgb(3 6 33 / 78%) 100%),
      linear-gradient(90deg, rgb(3 6 33 / 78%) 0%, rgb(3 6 33 / 30%) 50%, rgb(3 6 33 / 8%) 100%);
  }
  .v7-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
    /* Hero sits OUTSIDE .v7-home (so the image layer can bleed full
       viewport). The content edge matches what .v7-home previously
       provided: clamp(1rem, 4vw, 1.5rem) on mobile, 72px at >= 1024px.
       This is 24px less than the header / sections (x=96), by design —
       the hero reads as a wide visual anchor with text slightly inside
       the body's content edge. */
    padding-inline: clamp(1rem, 4vw, 1.5rem);
    color: var(--aw-color-paper);
  }
  @media (min-width: 1024px) {
    .v7-hero-content {
      padding-left: 72px;
      padding-right: 72px;
    }
  }
  .v7-hero-eyebrow {
    font-family: var(--font-mono, ui-monospace);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--aw-color-amber);
    margin: 0 0 1.5rem;
    max-width: 60ch;
  }
  .v7-hero-headline {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(3rem, 9vw, 6.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
    max-width: 18ch;
  }
  .v7-hero-headline span {
    display: block;
  }
  .v7-hero-lead {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.55;
    font-weight: 400;
    margin: 0 0 2.5rem;
    max-width: 32ch;
    color: var(--aw-color-paper);
  }
  .v7-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem 0.875rem 1.75rem;
    border: 1px solid var(--aw-color-amber);
    background: transparent;
    color: var(--aw-color-amber);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: none;
    text-decoration: none;
    transition: background 200ms ease, color 200ms ease, gap 200ms ease;
  }
  .v7-hero-cta:hover,
  .v7-hero-cta:focus-visible {
    background: var(--aw-color-amber);
    color: var(--aw-color-bg-page);
    gap: 1.25rem;
  }
  .v7-hero-cta-arrow {
    font-size: 1rem;
    line-height: 1;
  }

  /* ─── Section 2: Scope strip ─── */
  .v7-scope {
    background: var(--aw-color-bg-page);
    padding-block: clamp(4.5rem, 8vw, 7.5rem);
    /* Mobile: small gutter. Desktop (>= 1024px): the section's 24px
       padding combines with .v7-home's 72px page padding to put
       content at x=96, matching the header logo at px-[96px]. */
    padding-inline: clamp(1rem, 4vw, 1.5rem);
  }
  @media (min-width: 1024px) {
    .v7-scope {
      padding-left: 24px;
      padding-right: 24px;
    }
  }
  .v7-scope-grid {
    max-width: 80rem;
    /* Flush to the section's content edge (x=96 at >= 1024px). */
    margin-inline: 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: end;
  }
  .v7-scope-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .v7-scope-cell--lead {
    border-right: 1px solid var(--aw-color-line);
    padding-right: clamp(1.5rem, 3vw, 3rem);
  }
  .v7-scope-cell--image {
    /* Positioning context for the absolutely-positioned .v7-theme-img
       (lines below). Without `position: relative` here, the image
       escapes to the initial containing block and becomes a 100vw x
       100vh element that `overflow: hidden` only barely contains. */
    position: relative;
    border: 1px solid var(--aw-color-line);
    padding: 0;
    overflow: hidden;
  }
  .v7-scope-cell--image .v7-scope-image {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
  }
  .v7-scope-cell--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.7) brightness(0.85);
  }
  .v7-scope-cell--image .v7-scope-number,
  .v7-scope-cell--image .v7-scope-label,
  .v7-scope-cell--image .v7-scope-sub {
    padding-inline: 1.25rem;
  }
  .v7-scope-cell--image .v7-scope-number {
    margin-top: 1.25rem;
  }
  .v7-scope-cell--image .v7-scope-label {
    margin-top: 0.5rem;
  }
  .v7-scope-cell--image .v7-scope-sub {
    padding-bottom: 1.25rem;
  }
  .v7-scope-number {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(3.25rem, 6vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--aw-color-text-heading);
  }
  .dark .v7-scope-number {
    color: var(--aw-color-paper);
  }
  .v7-scope-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--aw-color-text-muted);
  }
  .v7-scope-sub {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--aw-color-text-muted);
    line-height: 1.5;
  }

  /* ─── Section 4: Featured bento ─── */
  .v7-bento {
    background: var(--aw-color-bg-page);
    padding-block: clamp(4.5rem, 8vw, 7.5rem);
    padding-inline: clamp(1rem, 4vw, 1.5rem);
  }
  @media (min-width: 1024px) {
    .v7-bento {
      padding-left: 24px;
      padding-right: 24px;
    }
  }
  .v7-bento-head {
    max-width: 80rem;
    /* Flush to the section's content edge (x=96 at >= 1024px). */
    margin-inline: 0;
    margin-bottom: clamp(2.5rem, 4vw, 4rem);
  }
  .v7-bento-eyebrow {
    font-family: var(--font-mono, ui-monospace);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--aw-color-amber);
    margin: 0 0 1rem;
  }
  .v7-bento-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 0.875rem;
    color: var(--aw-color-text-heading);
    text-wrap: balance;
  }
  .dark .v7-bento-title { color: var(--aw-color-paper); }
  .v7-bento-sub {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--aw-color-text-muted);
    max-width: 56ch;
    margin: 0;
  }
  .v7-bento-grid {
    max-width: 80rem;
    /* Flush to the section's content edge (x=96 at >= 1024px). */
    margin-inline: 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    min-height: 38rem;
  }
  .v7-bento-cell {
    position: relative;
    display: block;
    background: var(--aw-color-bg-elevated);
    color: var(--aw-color-text-default);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--aw-color-line);
    transition: border-color 200ms ease, transform 200ms ease;
  }
  .v7-bento-cell:hover,
  .v7-bento-cell:focus-visible {
    border-color: var(--aw-color-amber);
  }
  .v7-bento-cell--hero {
    grid-row: span 2;
    background: transparent;
  }
  .v7-bento-cell-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .v7-bento-cell-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .v7-bento-cell-veil {
    display: none; /* Removed in v7 — the veil was an Astrowind carry-over
                       that hid the v7 imagery. The bento cell uses
                       just the image and the text overlay now. */
  }
  .v7-bento-cell-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
  }
  .v7-bento-cell--hero .v7-bento-cell-body {
    color: var(--aw-color-paper);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    justify-content: flex-end;
  }
  .v7-bento-cell-eyebrow {
    font-family: var(--font-mono, ui-monospace);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--aw-color-amber);
    margin: 0;
  }
  .v7-bento-cell-tier {
    font-family: var(--font-mono, ui-monospace);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--aw-color-amber);
    margin: 0;
  }
  .v7-bento-cell-name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
    color: inherit;
    text-wrap: balance;
  }
  .v7-bento-cell--hero .v7-bento-cell-name {
    font-size: clamp(2.25rem, 4.4vw, 3.25rem);
    font-weight: 300;
  }
  .v7-bento-cell-en {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-style: italic;
    color: var(--aw-color-text-muted);
    margin: 0;
  }
  .v7-bento-cell--hero .v7-bento-cell-en { color: var(--aw-color-paper); opacity: 0.78; }
  .v7-bento-cell-meta {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--aw-color-text-muted);
    margin: 0;
    margin-top: auto;
  }
  .v7-bento-cell--hero .v7-bento-cell-meta { color: var(--aw-color-paper); opacity: 0.78; }
  .v7-bento-cell-arrow {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
    transition: transform 240ms ease;
  }
  .v7-bento-cell--hero .v7-bento-cell-arrow {
    color: var(--aw-color-amber);
  }
  .v7-bento-cell:hover .v7-bento-cell-arrow,
  .v7-bento-cell:focus-visible .v7-bento-cell-arrow {
    transform: translateX(0.5rem);
  }

  /* ─── Section 5: Closing strip ─── */
  .v7-closing {
    background: var(--aw-color-bg-page);
    border-top: 1px solid var(--aw-color-line);
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
    padding-inline: clamp(1rem, 4vw, 1.5rem);
  }
  @media (min-width: 1024px) {
    .v7-closing {
      padding-left: 24px;
      padding-right: 24px;
    }
  }
  .v7-closing-inner {
    max-width: 80rem;
    /* Flush to the section's content edge (x=96 at >= 1024px). */
    margin-inline: 0;
  }
  .v7-closing-eyebrow {
    font-family: var(--font-mono, ui-monospace);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--aw-color-text-muted);
    margin: 0 0 1.5rem;
  }
  .v7-closing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem 1.5rem;
  }
  .v7-closing-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border: 1px solid var(--aw-color-line);
    text-decoration: none;
    color: var(--aw-color-text-default);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: border-color 200ms ease, color 200ms ease;
  }
  .v7-closing-list a:hover,
  .v7-closing-list a:focus-visible {
    border-color: var(--aw-color-amber);
    color: var(--aw-color-amber);
  }
  .v7-closing-list span:last-child {
    font-size: 1rem;
  }
  .v7-closing-note {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--aw-color-text-muted);
    margin: 0;
    max-width: 56ch;
  }

  /* ─── Mobile collapse ─── */
  @media (max-width: 1023px) {
    .v7-scope-grid {
      grid-template-columns: 1fr 1fr;
    }
    .v7-scope-cell--lead {
      grid-column: span 2;
      border-right: none;
      border-bottom: 1px solid var(--aw-color-line);
      padding-right: 0;
      padding-bottom: 1.5rem;
    }
    .v7-scope-cell--image {
      grid-column: span 2;
    }
    .v7-bento-grid {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      min-height: 0;
    }
    .v7-bento-cell--hero {
      grid-row: auto;
      min-height: 26rem;
    }
  }
  @media (max-width: 640px) {
    .v7-scope-grid {
      grid-template-columns: 1fr;
    }
    .v7-scope-cell--lead {
      grid-column: auto;
    }
    .v7-scope-cell--image {
      grid-column: auto;
    }
    .v7-hero-content {
      padding-block: 3rem;
    }
    .v7-bento-cell-body {
      padding: 1.25rem;
    }
    .v7-bento-cell--hero .v7-bento-cell-body {
      padding: 1.5rem;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .v7-hero-cta,
    .v7-bento-cell,
    .v7-bento-cell-arrow,
    .v7-closing-list a {
      transition: none;
    }
  }