/* ════════════════════════════════════════════
   PLUTOPIA — Stylesheet
   Ancient × Futuristic × Fashion
   Origin · Journey · Emergence
   ════════════════════════════════════════════ */

@layer reset, tokens, base, components, utilities;


/* ════════════════════════════════════════════
   RESET
   ════════════════════════════════════════════ */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  img, video { display: block; max-width: 100%; height: auto; }
  button, input { font: inherit; }
}


/* ════════════════════════════════════════════
   TOKENS
   ════════════════════════════════════════════ */
@layer tokens {
  :root {
    /* ── Color ──────────────────────────────
       The palette reads like ancient artifacts
       lit by neon in a dark room.
    */
    --color-bg:         #06050A;   /* deep warm black */
    --color-surface:    #0C0A10;   /* slightly warm dark */
    --color-text:       #EDE5D0;   /* aged parchment / ivory */
    --color-muted:      #665A48;   /* warm stone grey */

    /* Bronze patina — the green-teal of oxidised copper.
       This IS both the ancient artifact color AND the neon. */
    --color-bronze:     #00C4A8;

    /* Cinnabar — ancient red mineral pigment.
       Han dynasty lacquer, seal ink, fire. */
    --color-cinnabar:   #C8200E;

    /* Gold leaf — ancient bronze high-point / edge light */
    --color-gold:       #C8921C;

    /* Borders */
    --color-border:       rgba(0, 196, 168, 0.1);
    --color-border-warm:  rgba(200, 146, 28, 0.15);
    --color-panel-border: rgba(237, 229, 208, 0.7); /* parchment */

    /* ── Typography ── */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-manga: 'Bangers', Impact, sans-serif;
    --font-sans:  'Inter', system-ui, sans-serif;

    /* ── Fluid type scale ── */
    --text-xs:   clamp(0.65rem,  1vw,   0.75rem);
    --text-sm:   clamp(0.8rem,   1.5vw, 0.9rem);
    --text-base: clamp(0.9rem,   1.5vw, 1rem);
    --text-lg:   clamp(1.4rem,   3vw,   2rem);
    --text-xl:   clamp(2rem,     5vw,   3.5rem);
    --text-hero: clamp(3.5rem,  13vw,  10rem);

    /* ── Spacing ── */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  8rem;

    /* ── Layout ── */
    --gutter:     clamp(1rem, 4vw, 3rem);
    --max-prose:  62ch;
    --panel-gap:  4px;

    /* ── Motion ── */
    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-io:   cubic-bezier(0.45, 0, 0.55, 1);
    --dur-fast:  250ms;
    --dur-base:  600ms;
    --dur-slow:  900ms;
  }
}


/* ════════════════════════════════════════════
   BASE
   ════════════════════════════════════════════ */
@layer base {
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

  body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 300;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  ::selection {
    background: var(--color-cinnabar);
    color: var(--color-text);
  }

  a { color: inherit; text-decoration: none; }
  a:hover { color: var(--color-bronze); }
}


/* ════════════════════════════════════════════
   COMPONENTS
   ════════════════════════════════════════════ */
@layer components {

  /* ─────────────────────────────────────────
     SHARED TEXTURES
  ──────────────────────────────────────────── */

  /* Film grain */
  .grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 950;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
  }

  /* CRT scanlines — subtle, period-appropriate */
  .site__scanlines,
  .gate__scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 940;
    background: repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.06) 2px,
      rgba(0, 0, 0, 0.06) 4px
    );
  }

  /* Stone rubbing texture — ink-on-stone feel */
  .gate__texture,
  .manifesto__rubbing,
  .panels__rubbing {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)' opacity='0.4'/%3E%3C/svg%3E");
    background-size: 300px 300px;
  }


  /* ─────────────────────────────────────────
     SEAL — ancient chop / stamp mark
     Used as section labels throughout.
  ──────────────────────────────────────────── */
  .seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cinnabar);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.3em 0.75em;
    line-height: 1.5;

    /* Slight imperfection — real seals are never perfectly crisp */
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,0.08),
      0 0 12px rgba(200, 32, 14, 0.25);
  }

  .seal--sm {
    font-size: 0.6rem;
    padding: 0.2em 0.5em;
  }


  /* ─────────────────────────────────────────
     CORNER BRACKETS — classical frame corners
     Used on panels and the gate to evoke
     ancient framing / mounting marks.
  ──────────────────────────────────────────── */
  .corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--color-gold);
    border-style: solid;
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
  }

  .corner--tl { top: -1px; left: -1px;   border-width: 1.5px 0 0 1.5px; }
  .corner--tr { top: -1px; right: -1px;  border-width: 1.5px 1.5px 0 0; }
  .corner--bl { bottom: -1px; left: -1px;  border-width: 0 0 1.5px 1.5px; }
  .corner--br { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }


  /* ─────────────────────────────────────────
     DIVIDER — diamond section break
     A universal ancient geometry:
     diamond = transition, threshold.
  ──────────────────────────────────────────── */
  .divider {
    display: flex;
    align-items: center;
    padding-inline: var(--gutter);
    height: 40px;
  }

  .divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right,
      transparent,
      var(--color-border-warm),
      transparent
    );
  }

  .divider__mark {
    width: 7px;
    height: 7px;
    border: 1px solid var(--color-gold);
    transform: rotate(45deg);
    margin-inline: var(--space-md);
    opacity: 0.6;
    flex-shrink: 0;
  }


  /* ─────────────────────────────────────────
     PASSWORD GATE
  ──────────────────────────────────────────── */
  .gate {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--color-bg);
    z-index: 900;
    transition: opacity var(--dur-base) var(--ease-out);
    overflow: hidden;
  }

  .gate__texture {
    opacity: 0.06;
  }

  /* Large faint background inscription — like text carved in stone */
  .gate__bg-word {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-manga);
    font-size: clamp(8rem, 25vw, 20rem);
    letter-spacing: 0.1em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(237, 229, 208, 0.03);
    pointer-events: none;
    user-select: none;
  }

  .gate.is-exiting { opacity: 0; pointer-events: none; }

  /* Gate panel — positioned relative for corner brackets */
  .gate__panel {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(237, 229, 208, 0.15);
    padding: 1px;
    animation: fade-up var(--dur-slow) var(--ease-out) both;
    max-width: min(90vw, 420px);
    width: 100%;

    /* Outer glow: bronze-warm */
    box-shadow:
      0 0 0 1px rgba(200, 146, 28, 0.08),
      0 0 40px rgba(0, 196, 168, 0.05),
      0 24px 60px rgba(0, 0, 0, 0.6);
  }

  .gate__panel-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: clamp(2rem, 7vw, 3.5rem);
    text-align: center;
    background: var(--color-bg);
  }

  .gate__seal {
    /* The access seal — cinnabar, like an official chop */
  }

  .gate__brand {
    font-family: var(--font-manga);
    font-size: clamp(2.5rem, 8vw, 4rem);
    letter-spacing: 0.18em;
    color: var(--color-text);
    line-height: 1;

    /* Bronze-gold shimmer on the inscription */
    text-shadow:
      0 0 30px rgba(0, 196, 168, 0.25),
      0 0 60px rgba(200, 146, 28, 0.1);

    animation: glitch 8s var(--ease-io) 3s infinite;
  }

  .gate__hint {
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted);
  }

  .gate__form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
    width: 100%;
  }

  .gate__input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(237, 229, 208, 0.1);
    color: var(--color-text);
    font-size: var(--text-base);
    letter-spacing: 0.3em;
    padding-block: 0.85rem;
    text-align: center;
    outline: none;
    transition: border-color var(--dur-base) var(--ease-out);
  }

  .gate__input::placeholder { color: var(--color-muted); letter-spacing: 0.2em; }

  .gate__input:focus {
    border-bottom-color: var(--color-bronze);
  }

  .gate__btn {
    background: transparent;
    border: 1px solid rgba(237, 229, 208, 0.2);
    color: var(--color-text);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    transition:
      background var(--dur-fast) ease,
      border-color var(--dur-fast) ease,
      color var(--dur-fast) ease,
      box-shadow var(--dur-fast) ease;
  }

  .gate__btn:hover,
  .gate__btn:focus-visible {
    background: var(--color-bronze);
    border-color: var(--color-bronze);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(0, 196, 168, 0.3);
    outline: none;
  }

  .gate__error {
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    color: var(--color-cinnabar);
    min-height: 1em;
    text-shadow: 0 0 8px rgba(200, 32, 14, 0.4);
  }


  /* ─────────────────────────────────────────
     SITE
  ──────────────────────────────────────────── */
  .site { min-height: 100svh; }
  .site.is-visible { animation: fade-in var(--dur-slow) var(--ease-out) both; }


  /* ─────────────────────────────────────────
     NAV
  ──────────────────────────────────────────── */
  .nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--gutter);
    z-index: 100;
  }

  .nav__brand {
    font-family: var(--font-manga);
    font-size: 1.3rem;
    letter-spacing: 0.28em;
    color: var(--color-text);
    text-shadow:
      0 0 20px rgba(0, 196, 168, 0.35),
      0 0 40px rgba(200, 146, 28, 0.1);
    animation: glitch 10s var(--ease-io) 5s infinite;
    mix-blend-mode: difference;
  }

  .nav__season {
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    color: var(--color-bronze);
    mix-blend-mode: difference;
    opacity: 0.8;
  }


  /* ─────────────────────────────────────────
     HERO
  ──────────────────────────────────────────── */
  .hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
  }

  .hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Slight warm tint in the filter — ancient photograph feel */
    filter: grayscale(50%) sepia(15%) contrast(1.1) brightness(0.5);
  }

  /* Speed lines — bronze not cyan */
  .hero__speed-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: repeating-conic-gradient(
      from 0deg at 50% 55%,
      transparent 0deg 11deg,
      rgba(0, 196, 168, 0.015) 11deg 12deg
    );
    mix-blend-mode: screen;
  }

  /* Overlay — warmer tone, like aged lacquer */
  .hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
      linear-gradient(to bottom,
        rgba(6, 5, 10, 0.35) 0%,
        rgba(6, 5, 10, 0.05) 35%,
        rgba(6, 5, 10, 0.88) 100%
      ),
      radial-gradient(ellipse at 50% 40%,
        rgba(200, 146, 28, 0.04) 0%,
        transparent 70%
      );
  }

  /* Classical frame — top */
  .hero__frame-top {
    position: absolute;
    inset-block-start: var(--space-md);
    inset-inline: var(--gutter);
    inset-block-start: 5rem; /* below nav */
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: fade-in var(--dur-slow) var(--ease-out) 1200ms both;
  }

  .hero__frame-bottom {
    position: absolute;
    inset-block-end: 4.5rem; /* above scroll hint */
    inset-inline: var(--gutter);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: fade-in var(--dur-slow) var(--ease-out) 1400ms both;
  }

  .hero__frame-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right,
      transparent, rgba(200, 146, 28, 0.3), transparent
    );
  }

  .hero__frame-diamond {
    width: 5px;
    height: 5px;
    border: 1px solid rgba(200, 146, 28, 0.5);
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  .hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: var(--space-xl) var(--gutter) var(--space-lg);
  }

  .hero__kicker {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    color: var(--color-bronze);
    margin-block-end: var(--space-md);
    opacity: 0;
    animation: fade-up var(--dur-base) var(--ease-out) 100ms both;
    text-shadow: 0 0 16px rgba(0, 196, 168, 0.4);
  }

  .hero__title {
    font-family: var(--font-serif);
    font-size: var(--text-hero);
    font-weight: 300;
    line-height: 0.92;
    display: flex;
    flex-direction: column;
    gap: 0.06em;
  }

  .hero__line {
    display: block;
    opacity: 0;
    transform: translateY(28px);
    animation: fade-up var(--dur-base) var(--ease-out) both;
  }

  .hero__line:nth-child(1) { animation-delay: 200ms; }
  .hero__line:nth-child(2) { animation-delay: 380ms; }
  .hero__line:nth-child(3) { animation-delay: 550ms; }

  /* Outline text — like carved inscription, not filled paint */
  .hero__line--outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-bronze);
    text-shadow: 0 0 50px rgba(0, 196, 168, 0.2);
  }

  .hero__tagline {
    margin-block-start: var(--space-md);
    font-size: var(--text-xs);
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--color-muted);
    opacity: 0;
    animation: fade-up var(--dur-base) var(--ease-out) 750ms both;
  }

  .hero__scroll {
    position: absolute;
    inset-block-end: var(--space-md);
    inset-inline-start: 50%;
    translate: -50% 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0;
    animation: fade-up var(--dur-base) var(--ease-out) 1100ms both;
  }

  .hero__scroll-label {
    font-size: var(--text-xs);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-muted);
  }

  .hero__scroll-bar {
    width: 1px;
    height: 3rem;
    background: rgba(200, 146, 28, 0.1);
    overflow: hidden;
  }

  .hero__scroll-bar::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-gold), var(--color-bronze));
    translate: 0 -100%;
    animation: scroll-bar 2s var(--ease-io) 1.6s infinite;
  }


  /* ─────────────────────────────────────────
     MANIFESTO
  ──────────────────────────────────────────── */
  .manifesto {
    display: grid;
    min-height: 90svh;
  }

  .manifesto__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  /* Left: text — feels like aged stone wall, inscribed */
  .manifesto__text-panel {
    position: relative;
    background:
      radial-gradient(ellipse at 30% 60%, rgba(200, 146, 28, 0.04) 0%, transparent 60%),
      var(--color-surface);
    border-inline-end: var(--panel-gap) solid var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }

  .manifesto__rubbing { opacity: 0.04; }

  .manifesto__text-inner {
    position: relative;
    z-index: 1;
    padding: clamp(2rem, 5vw, 4.5rem);
  }

  .manifesto__text-inner .seal {
    margin-block-end: var(--space-md);
    display: inline-flex;
  }

  .manifesto__statement {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 300;
    line-height: 1.2;
    margin-block-end: var(--space-md);
  }

  .manifesto__statement em {
    font-style: italic;
    color: var(--color-bronze);
  }

  .manifesto__body {
    font-size: var(--text-sm);
    line-height: 1.9;
    color: var(--color-muted);
    max-width: var(--max-prose);
  }

  /* Chinese character — 道 (The Way / The Path).
     Used as a faint watermark inscription. Not decoration:
     it carries the brand's philosophy of journey. */
  .manifesto__glyph {
    font-family: serif;
    font-size: clamp(6rem, 16vw, 12rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(200, 146, 28, 0.08);
    padding: 0 clamp(1rem, 3vw, 3rem) clamp(1rem, 3vw, 3rem);
    align-self: flex-end;
    position: relative;
    z-index: 1;
    user-select: none;
    letter-spacing: normal;
  }

  /* Right: image */
  .manifesto__image-panel {
    position: relative;
    overflow: hidden;
  }

  .manifesto__image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Slight sepia — like a photograph aged in an archive */
    filter: grayscale(25%) sepia(10%) contrast(1.05);
    transition: transform 10s ease;
  }

  .manifesto__image-panel:hover img { transform: scale(1.03); }

  /* Bronze gradient at top — like light catching old metal */
  .manifesto__image-panel::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(to right,
      transparent, var(--color-gold), transparent
    );
    z-index: 1;
    opacity: 0.6;
  }

  .manifesto__image-caption {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    padding: var(--space-sm);
    background: linear-gradient(to top, rgba(6,5,10,0.85), transparent);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--color-muted);
    z-index: 2;
  }


  /* ─────────────────────────────────────────
     PANELS GRID — manga comic layout
  ──────────────────────────────────────────── */
  .panels {
    position: relative;
    container-type: inline-size;
  }

  /* Ancient beast watermark — Han dynasty-inspired.
     Visible only as a faint presence, like a rubbing. */
  .panels__watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
    color: var(--color-bronze);
    opacity: 0.04;
  }

  .panels__watermark svg {
    width: min(70%, 500px);
    height: auto;
  }

  .panels__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--panel-gap);
    background: var(--color-bg);
  }

  .panels__cell {
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
  }

  .panels__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(35%) sepia(8%) contrast(1.1);
    transition: filter var(--dur-slow) ease, transform 10s ease;
  }

  .panels__cell:hover img {
    filter: grayscale(15%) sepia(5%) contrast(1.15);
    transform: scale(1.025);
  }

  /* Panel label with seal */
  .panels__cell-label {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(6, 5, 10, 0.75);
    border-block-end: 1px solid rgba(200, 146, 28, 0.1);
    border-inline-end: 1px solid rgba(200, 146, 28, 0.1);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    color: var(--color-muted);
    z-index: 2;
  }

  /* Corner brackets on cells */
  .panels__cell .corner { opacity: 0; transition: opacity var(--dur-base) ease; }
  .panels__cell:hover .corner { opacity: 0.5; }

  /* Cell sizing */
  .panels__cell--large { grid-column: 1; grid-row: 1; aspect-ratio: 4/3; }
  .panels__cell--tall  { grid-column: 2; grid-row: 1 / 3; }
  .panels__cell--wide  { grid-column: 1; grid-row: 2; aspect-ratio: 16/7; }
  .panels__cell--text  { display: none; }

  /* Text panel with rubbing */
  .panels__rubbing { opacity: 0.06; }

  .panels__impact {
    font-family: var(--font-manga);
    font-size: clamp(3rem, 8cqi, 7rem);
    letter-spacing: 0.08em;
    line-height: 1;
    /* Outline only — like a carved inscription */
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(237, 229, 208, 0.5);
    text-align: center;
    position: relative;
    z-index: 1;
    padding: var(--space-md);
    margin: auto;
  }

  @container (min-width: 800px) {
    .panels__grid {
      grid-template-columns: 2fr 1fr 1fr;
      grid-template-rows: 1fr 1fr;
    }
    .panels__cell--large  { grid-column: 1; grid-row: 1 / 3; aspect-ratio: unset; }
    .panels__cell--tall   { grid-column: 2; grid-row: 1 / 3; }
    .panels__cell--wide   { grid-column: 3; grid-row: 1; aspect-ratio: unset; }
    .panels__cell--text   {
      display: flex;
      align-items: center;
      justify-content: center;
      grid-column: 3;
      grid-row: 2;
    }
  }


  /* ─────────────────────────────────────────
     PRODUCTS
     No prices, no cart — editorial preview only.
     The coat (MANTLE) anchors the centre as the
     hero piece; four others orbit it.
  ──────────────────────────────────────────── */
  .products {
    padding-block-start: var(--space-lg);
  }

  .products__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-inline: var(--gutter);
    padding-block-end: var(--space-lg);
  }

  .products__header-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
  }

  .products__title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 300;
    letter-spacing: 0.02em;
  }

  .products__sub {
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted);
  }

  /* Grid — coat in the centre spans two rows */
  .products__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--panel-gap);
    background: var(--color-bg); /* gap colour = panel gutter */
  }

  .products__cell--cap    { grid-column: 1; grid-row: 1; }
  .products__cell--coat   { grid-column: 2; grid-row: 1 / 3; } /* spans both rows */
  .products__cell--bag    { grid-column: 3; grid-row: 1; }
  .products__cell--top    { grid-column: 1; grid-row: 2; }
  .products__cell--bottom { grid-column: 3; grid-row: 2; }

  .products__cell {
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
    aspect-ratio: 3 / 4;

    /* Warm inner glow — like light catching bronze */
    box-shadow: inset 0 0 60px rgba(6, 5, 10, 0.5);
  }

  /* Coat cell: no fixed aspect-ratio — fills both rows naturally */
  .products__cell--coat {
    aspect-ratio: unset;
    min-height: 480px;
  }

  .products__image {
    position: absolute;
    inset: 0;
  }

  .products__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(30%) sepia(10%) contrast(1.08);
    transition:
      transform 8s ease,
      filter var(--dur-slow) ease;
  }

  .products__cell:hover .products__image img {
    transform: scale(1.04);
    filter: grayscale(10%) sepia(5%) contrast(1.12);
  }

  /* Info overlay — anchored to bottom, reveals on hover */
  .products__info {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    padding: var(--space-md) var(--space-sm) var(--space-sm);
    background: linear-gradient(
      to top,
      rgba(6, 5, 10, 0.95) 0%,
      rgba(6, 5, 10, 0.5)  50%,
      transparent          100%
    );
    transform: translateY(4px);
    transition: transform var(--dur-base) var(--ease-out);
    z-index: 2;
  }

  .products__cell:hover .products__info {
    transform: translateY(0);
  }

  /* Larger info block for the coat */
  .products__info--large {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .products__meta {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-block-end: var(--space-xs);
  }

  .products__type {
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted);
  }

  .products__name {
    font-family: var(--font-manga);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 0.15em;
    color: var(--color-text);
    line-height: 1;
    /* Carved inscription feel */
    text-shadow:
      0 0 20px rgba(0, 196, 168, 0.2),
      0 0 40px rgba(200, 146, 28, 0.1);
  }

  .products__season {
    margin-block-start: var(--space-xs);
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    color: var(--color-muted);
    font-style: italic;
  }

  /* Corner brackets: shown on hover */
  .products__cell .corner {
    opacity: 0;
    transition: opacity var(--dur-base) ease;
  }

  .products__cell:hover .corner { opacity: 0.6; }

  /* Bronze top-edge accent line on hover */
  .products__cell::after {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline: 20%;
    height: 1px;
    background: linear-gradient(to right,
      transparent, var(--color-gold), transparent
    );
    opacity: 0;
    transition: opacity var(--dur-base) ease, inset-inline var(--dur-base) ease;
    z-index: 3;
  }

  .products__cell:hover::after {
    opacity: 0.5;
    inset-inline: 5%;
  }

  /* ── Responsive ── */
  @media (max-width: 640px) {
    .products__grid {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto;
    }

    /* Stack everything on mobile */
    .products__cell--cap,
    .products__cell--coat,
    .products__cell--bag,
    .products__cell--top,
    .products__cell--bottom {
      grid-column: auto;
      grid-row: auto;
    }

    .products__cell--coat {
      grid-column: 1 / -1; /* full width on mobile */
      min-height: 400px;
      aspect-ratio: unset;
    }

    .products__cell { aspect-ratio: 3/4; }

    .products__header {
      flex-direction: column;
      align-items: flex-start;
    }
  }


  /* ─────────────────────────────────────────
     NOTIFY
  ──────────────────────────────────────────── */
  .notify {
    padding: var(--space-xl) var(--gutter);
    position: relative;
    overflow: hidden;

    /* Warm radial glow — like candlelight on stone */
    background: radial-gradient(
      ellipse at 50% 0%,
      rgba(200, 146, 28, 0.04) 0%,
      transparent 70%
    );
  }

  .notify__inner {
    max-width: 540px;
    margin-inline: auto;
    text-align: center;
  }

  .notify__title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 300;
    line-height: 1.2;
    margin-block-end: var(--space-sm);
    margin-block-start: var(--space-sm);
  }

  .notify__title em {
    font-style: italic;
    color: var(--color-bronze);
  }

  .notify__sub {
    font-size: var(--text-sm);
    color: var(--color-muted);
    margin-block-end: var(--space-md);
    line-height: 1.75;
  }

  .notify__field {
    display: flex;
    border: 1px solid rgba(200, 146, 28, 0.2);
    transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
  }

  .notify__field:focus-within {
    border-color: var(--color-bronze);
    box-shadow:
      0 0 20px rgba(0, 196, 168, 0.1),
      inset 0 0 20px rgba(0, 196, 168, 0.02);
  }

  .notify__input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: var(--text-sm);
    padding: var(--space-sm);
    outline: none;
  }

  .notify__input::placeholder { color: var(--color-muted); }

  .notify__btn {
    background: transparent;
    border: none;
    border-inline-start: 1px solid rgba(200, 146, 28, 0.2);
    color: var(--color-gold);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: var(--space-sm) var(--space-md);
    transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
    white-space: nowrap;
  }

  .notify__btn:hover,
  .notify__btn:focus-visible {
    background: var(--color-bronze);
    color: var(--color-bg);
    outline: none;
  }

  .notify__feedback {
    margin-block-start: var(--space-sm);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    color: var(--color-bronze);
    text-shadow: 0 0 8px rgba(0, 196, 168, 0.4);
    min-height: 1.2em;
  }


  /* ─────────────────────────────────────────
     FOOTER
  ──────────────────────────────────────────── */
  .footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-xs);
    padding: var(--space-md) var(--gutter);
    border-block-start: 1px solid rgba(200, 146, 28, 0.08);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    color: var(--color-muted);
  }

  .footer__credits a:hover { color: var(--color-bronze); }

} /* end @layer components */


/* ════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════ */
@layer utilities {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity  var(--dur-slow) var(--ease-out),
      transform var(--dur-slow) var(--ease-out);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scroll-bar {
  0%   { translate: 0 -100%; }
  50%  { translate: 0  100%; }
  100% { translate: 0  100%; }
}

/* Glitch — chromatic aberration between bronze & cinnabar.
   Like an ancient inscription flickering under fluorescent light. */
@keyframes glitch {
  0%, 88%, 100% {
    text-shadow:
      0 0 20px rgba(0, 196, 168, 0.3),
      0 0 40px rgba(200, 146, 28, 0.1);
    translate: 0 0;
  }
  90% {
    text-shadow:
      -3px 0 var(--color-cinnabar),
       3px 0 var(--color-bronze);
    translate: -2px 0;
  }
  92% {
    text-shadow:
       3px 0 var(--color-cinnabar),
      -3px 0 var(--color-bronze);
    translate: 2px 0;
  }
  94% {
    text-shadow:
      -1px 0 var(--color-cinnabar),
       1px 0 var(--color-bronze);
    translate: 0 0;
  }
}


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 640px) {
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__image-panel { aspect-ratio: 4/3; }
  .manifesto__glyph { font-size: 5rem; }

  .panels__grid { grid-template-columns: 1fr 1fr; }

  .footer { flex-direction: column; text-align: center; }

  .notify__field { flex-direction: column; }
  .notify__btn {
    border-inline-start: none;
    border-block-start: 1px solid rgba(200, 146, 28, 0.2);
  }

  .nav { padding-block: var(--space-sm); }

  .hero__frame-top,
  .hero__frame-bottom { display: none; }
}


/* ════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__line,
  .hero__tagline,
  .hero__kicker,
  .hero__scroll,
  .hero__frame-top,
  .hero__frame-bottom,
  .gate__panel { opacity: 1; transform: none; }
}
