/* ==========================================================================
   CAZIQ.SITE — Ember Motion
   Pure HTML5 + CSS3
   ========================================================================== */

:root {
  --burnt-black: #100807;
  --dark-ember: #1C0B08;
  --flame-red: #E63324;
  --crimson: #9F1713;
  --ember-orange: #FF6A1A;
  --warm-orange: #FF9A3D;
  --sun-gold: #FFC15A;
  --ember-cream: #FFF1DE;
  --text-main: #FFF7ED;
  --text-dark: #1A0A07;
  --text-muted: #BBA39A;

  --grad-ember: linear-gradient(135deg, #9F1713 0%, #E63324 45%, #FF6A1A 100%);
  --grad-fire-sunset: linear-gradient(135deg, #E63324 0%, #FF6A1A 50%, #FFC15A 100%);
  --grad-red-heat: linear-gradient(145deg, #100807 0%, #9F1713 48%, #FF6A1A 100%);
  --grad-orange-glow: linear-gradient(135deg, #FF6A1A 0%, #FF9A3D 50%, #FFC15A 100%);
  --grad-dark-ember: linear-gradient(135deg, #100807 0%, #1C0B08 45%, #9F1713 100%);
  --grad-line: linear-gradient(90deg, #9F1713 0%, #E63324 35%, #FF6A1A 70%, #FFC15A 100%);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-black: "Archivo Black", "Space Grotesk", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --nav-h: 4.25rem;
  --pad-x: clamp(1.25rem, 4vw, 4.5rem);
  --max-w: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glow: 0 0 40px rgba(230, 51, 36, 0.28);
}

/* Reset / Base ------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-main);
  background: var(--burnt-black);
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ember-orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--ember-cream);
  color: var(--text-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 1rem;
}

/* Shared ------------------------------------------------------------------- */

.section-inner {
  width: min(100% - (var(--pad-x) * 2), var(--max-w));
  margin-inline: auto;
}

.label {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-orange);
  margin-bottom: 1.25rem;
}

.label--dark {
  color: var(--text-dark);
  opacity: 0.7;
}

.section-head {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head--split {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

@media (min-width: 768px) {
  .section-head--split {
    grid-template-columns: 1.4fr 1fr;
  }
}

.section-title {
  font-family: var(--font-black);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.section-title em {
  font-style: italic;
  background: var(--grad-fire-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-aside {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 28ch;
  justify-self: end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn--primary {
  background: var(--grad-ember);
  color: var(--text-main);
  box-shadow: var(--glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 56px rgba(255, 106, 26, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--ember-cream);
  border: 1px solid var(--ember-cream);
}

.btn--ghost:hover {
  border-color: var(--ember-orange);
  color: var(--ember-orange);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--text-dark);
  color: var(--ember-cream);
}

.btn--dark:hover {
  background: var(--burnt-black);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(16, 8, 7, 0.35);
}

/* 1. Ember Navigation ------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--burnt-black);
  border-bottom: 1px solid rgba(255, 106, 26, 0.55);
}

.nav__inner {
  width: min(100% - (var(--pad-x) * 2), var(--max-w));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  justify-self: start;
  position: relative;
}

.nav__brand-main {
  font-family: var(--font-black);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.nav__brand-dot {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.nav__edition {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-align: center;
}

.nav__menu {
  justify-self: end;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  position: relative;
}

.nav__brand::after,
.nav__menu::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: var(--flame-red);
  transition: width 0.35s var(--ease);
}

.nav__brand:hover,
.nav__menu:hover {
  color: var(--ember-orange);
}

.nav__brand:hover::after,
.nav__menu:hover::after {
  width: 100%;
}

@media (max-width: 640px) {
  .nav__edition {
    display: none;
  }

  .nav__inner {
    grid-template-columns: 1fr auto;
  }
}

/* 2. Flame Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(2rem, 5vw, 4rem) var(--pad-x) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 75% 40%, rgba(159, 23, 19, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(255, 106, 26, 0.12) 0%, transparent 55%),
    var(--burnt-black);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__giant {
  position: absolute;
  right: -4%;
  top: 8%;
  font-family: var(--font-black);
  font-size: clamp(8rem, 28vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(255, 247, 237, 0.035);
  user-select: none;
  animation: float-soft 12s ease-in-out infinite;
}

.hero__watermark {
  position: absolute;
  left: -2%;
  bottom: 12%;
  font-family: var(--font-black);
  font-size: clamp(6rem, 18vw, 14rem);
  letter-spacing: -0.04em;
  color: rgba(230, 51, 36, 0.06);
  user-select: none;
  white-space: nowrap;
}

.hero__grid {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-w));
  margin-inline: auto;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
}

.hero__copy {
  max-width: 38rem;
}

.hero__title {
  font-family: var(--font-black);
  font-size: clamp(4.5rem, 14vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__line {
  display: block;
}

.hero__line--ital {
  font-style: italic;
  padding-left: 0.08em;
  color: var(--ember-cream);
}

.hero__line--burn {
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: max-content;
  max-width: 110%;
  filter: drop-shadow(0 0 28px rgba(230, 51, 36, 0.25));
  animation: gradient-shift 8s ease infinite;
  background-size: 200% 200%;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 34ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (max-width: 520px) {
  .hero__actions .btn {
    width: 100%;
  }
}

/* Hero Artwork */

.hero__art {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin-inline: auto;
  isolation: isolate;
}

.art-frame {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 241, 222, 0.35);
  border-radius: 0;
  transform: rotate(-6deg);
  z-index: 1;
}

.art-circle {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  left: 12%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF9A3D 0%, #E63324 45%, #9F1713 100%);
  filter: blur(0.2px);
  box-shadow: 0 0 60px rgba(230, 51, 36, 0.35);
  animation: morph-blob 10s ease-in-out infinite;
  z-index: 2;
}

.art-ellipse {
  position: absolute;
  width: 72%;
  height: 38%;
  right: 0;
  top: 28%;
  border-radius: 50%;
  background: var(--grad-orange-glow);
  transform: rotate(-18deg) scale(1.05);
  opacity: 0.9;
  mix-blend-mode: screen;
  filter: blur(1px);
  animation: rotate-slow 22s linear infinite;
  z-index: 3;
}

.art-rect {
  position: absolute;
  width: 34%;
  height: 48%;
  left: 42%;
  bottom: 10%;
  background: linear-gradient(180deg, #9F1713 0%, #E63324 100%);
  border-radius: 12px;
  clip-path: polygon(12% 0, 100% 8%, 88% 100%, 0 92%);
  transform: rotate(12deg);
  box-shadow: 0 20px 50px rgba(16, 8, 7, 0.45);
  z-index: 4;
  animation: float-soft 9s ease-in-out infinite reverse;
}

.art-ring {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  right: 10%;
  bottom: 18%;
  border-radius: 50%;
  border: 3px solid var(--sun-gold);
  box-shadow: 0 0 24px rgba(255, 193, 90, 0.35);
  animation: rotate-slow 16s linear infinite reverse;
  z-index: 5;
}

.art-line {
  position: absolute;
  width: 70%;
  height: 2px;
  left: 8%;
  top: 62%;
  background: var(--ember-cream);
  transform: rotate(-28deg);
  opacity: 0.85;
  z-index: 6;
}

.art-shard {
  position: absolute;
  width: 22%;
  height: 22%;
  left: 18%;
  bottom: 22%;
  background: var(--grad-fire-sunset);
  border-radius: 50% 0 50% 0;
  transform: rotate(35deg);
  z-index: 5;
  animation: pulse-glow 5s ease-in-out infinite;
}

.art-core {
  position: absolute;
  width: 14%;
  aspect-ratio: 1;
  left: 48%;
  top: 42%;
  border-radius: 50%;
  background: var(--ember-cream);
  box-shadow: 0 0 30px rgba(255, 193, 90, 0.65);
  z-index: 7;
}

.hero__meta {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-w));
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1vw, 0.72rem);
  letter-spacing: 0.14em;
  color: var(--text-muted);
  border-top: 1px solid rgba(187, 163, 154, 0.25);
  padding-top: 1.25rem;
}

@media (max-width: 640px) {
  .hero__meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero__scroll {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  width: min(100%, var(--max-w));
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--warm-orange);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero__scroll:hover {
  color: var(--sun-gold);
  transform: translateY(3px);
}

/* 3. Manifesto ------------------------------------------------------------- */

.manifesto {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: var(--dark-ember);
  overflow: hidden;
}

.manifesto::before {
  content: "CAZIQ";
  position: absolute;
  right: -4%;
  top: 20%;
  font-family: var(--font-black);
  font-size: clamp(8rem, 22vw, 16rem);
  color: rgba(230, 51, 36, 0.06);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

.manifesto__title {
  font-family: var(--font-black);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.manifesto__title span {
  display: block;
}

.manifesto__title-accent {
  font-style: italic;
  background: var(--grad-fire-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.manifesto__text {
  max-width: 42rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.manifesto__line {
  height: 3px;
  width: min(100%, 720px);
  background: var(--grad-line);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255, 106, 26, 0.35);
  animation: line-glow 4s ease-in-out infinite;
}

/* 4. Heat Index ------------------------------------------------------------ */

.heat-index {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--burnt-black);
}

.index-list {
  border-top: 1px solid rgba(187, 163, 154, 0.22);
}

.index-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(0.5rem, 2vw, 1.5rem);
  border-bottom: 1px solid rgba(187, 163, 154, 0.22);
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.index-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-ember);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: 0;
}

.index-row > * {
  position: relative;
  z-index: 1;
}

.index-row__num {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
  min-width: 2.5rem;
}

.index-row__title {
  display: block;
  font-family: var(--font-black);
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease);
}

.index-row__desc {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  max-width: 36ch;
  transition: color 0.35s var(--ease);
}

.index-row__arrow {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ember-orange);
  transition: transform 0.4s var(--ease);
}

.index-row:hover,
.index-row:focus-visible {
  background: var(--dark-ember);
}

.index-row:hover::before,
.index-row:focus-visible::before {
  opacity: 0.12;
}

.index-row:hover .index-row__num,
.index-row:focus-visible .index-row__num {
  color: var(--ember-orange);
  transform: scale(1.08);
}

.index-row:hover .index-row__title,
.index-row:focus-visible .index-row__title {
  transform: scale(1.03);
  transform-origin: left center;
}

.index-row:hover .index-row__desc,
.index-row:focus-visible .index-row__desc {
  color: var(--ember-cream);
}

.index-row:hover .index-row__arrow,
.index-row:focus-visible .index-row__arrow {
  transform: translateX(0.55rem);
}

/* 5. Ember Gallery --------------------------------------------------------- */

.gallery {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background:
    radial-gradient(ellipse 60% 40% at 10% 20%, rgba(159, 23, 19, 0.25) 0%, transparent 55%),
    var(--dark-ember);
}

.gallery__grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (min-width: 700px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item--01,
  .gallery-item--06 {
    grid-row: span 1;
  }
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-art {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--burnt-black);
  border: 1px solid rgba(187, 163, 154, 0.15);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.gallery-item:hover .gallery-art {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(16, 8, 7, 0.45), 0 0 40px rgba(230, 51, 36, 0.15);
}

.gallery-meta__code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--warm-orange);
}

.gallery-meta__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0.35rem;
}

/* Gallery 01 — First Light */
.g01-a {
  position: absolute;
  inset: 0;
  background: var(--grad-orange-glow);
  opacity: 0.85;
}

.g01-b {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  left: -10%;
  bottom: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF1DE 0%, #FF9A3D 40%, transparent 70%);
  animation: pulse-glow 7s ease-in-out infinite;
}

.g01-c {
  position: absolute;
  width: 45%;
  height: 3px;
  right: 12%;
  top: 30%;
  background: var(--burnt-black);
  transform: rotate(-25deg);
}

/* Gallery 02 — Red Horizon */
.g02-a {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #100807 0%, #9F1713 55%, #FF6A1A 100%);
}

.g02-b {
  position: absolute;
  left: 0;
  right: 0;
  top: 42%;
  height: 18%;
  background: linear-gradient(90deg, #E63324, #FFC15A);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 70%);
}

.g02-c {
  position: absolute;
  width: 55%;
  aspect-ratio: 2 / 1;
  left: 22%;
  top: 18%;
  border: 2px solid var(--sun-gold);
  border-radius: 50%;
  border-bottom-color: transparent;
  transform: rotate(-8deg);
}

/* Gallery 03 — After Sunset */
.g03-a {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 70%, #FF6A1A 0%, #9F1713 40%, #100807 75%);
}

.g03-b {
  position: absolute;
  width: 80%;
  height: 35%;
  left: 10%;
  top: 28%;
  border-radius: 50%;
  background: rgba(255, 154, 61, 0.45);
  filter: blur(8px);
}

.g03-c {
  position: absolute;
  width: 28%;
  aspect-ratio: 1;
  left: 36%;
  top: 22%;
  border-radius: 50%;
  background: var(--sun-gold);
  box-shadow: 0 0 40px rgba(255, 193, 90, 0.55);
}

/* Gallery 04 — Moving Color */
.g04-a {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -35deg,
    #100807 0 18px,
    #9F1713 18px 36px,
    #E63324 36px 54px,
    #FF6A1A 54px 72px
  );
  background-size: 200% 200%;
  animation: stripe-drift 14s linear infinite;
}

.g04-b {
  position: absolute;
  inset: 18%;
  border: 1px solid var(--ember-cream);
  border-radius: 12px;
  mix-blend-mode: overlay;
}

.g04-c {
  position: absolute;
  width: 40%;
  height: 40%;
  right: 8%;
  bottom: 12%;
  background: var(--grad-fire-sunset);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: 0.9;
}

/* Gallery 05 — Deep Orange */
.g05-a {
  position: absolute;
  inset: 0;
  background: var(--grad-red-heat);
}

.g05-b {
  position: absolute;
  width: 65%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #FFC15A 0%, #FF6A1A 35%, #9F1713 70%, transparent 72%);
  animation: pulse-glow 6s ease-in-out infinite;
}

.g05-c {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 241, 222, 0.25);
  border-radius: 50%;
}

/* Gallery 06 — Burning Point */
.g06-a {
  position: absolute;
  inset: 0;
  background: #100807;
}

.g06-b,
.g06-c {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.g06-b {
  width: 70%;
  aspect-ratio: 1;
  border: 2px solid var(--crimson);
  box-shadow: 0 0 0 18px rgba(159, 23, 19, 0.2), 0 0 0 36px rgba(230, 51, 36, 0.12);
  animation: ring-expand 5s ease-in-out infinite;
}

.g06-c {
  width: 18%;
  aspect-ratio: 1;
  background: var(--grad-ember);
  box-shadow: 0 0 40px rgba(255, 106, 26, 0.55);
}

/* 6. Featured Stories ------------------------------------------------------ */

.stories {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--burnt-black);
}

.stories__layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 900px) {
  .stories__layout {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
  }

  .story--wide {
    grid-column: 1 / -1;
  }

  .story--asymmetric {
    grid-column: 1 / -1;
  }
}

.story {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(187, 163, 154, 0.2);
  padding-top: 1.5rem;
}

.story--wide {
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .story--wide {
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
}

.story--vertical {
  display: flex;
  flex-direction: column;
}

.story--asymmetric {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .story--asymmetric {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
}

.story__visual {
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.story--vertical .story__visual {
  min-height: 280px;
  flex: 1;
}

.story__visual--01 {
  background:
    linear-gradient(120deg, transparent 40%, rgba(255, 193, 90, 0.25) 100%),
    var(--grad-ember);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.story__visual--01::after {
  content: "";
  position: absolute;
  width: 40%;
  aspect-ratio: 1;
  right: 10%;
  top: 20%;
  border-radius: 50%;
  border: 2px solid var(--ember-cream);
  opacity: 0.6;
}

.story__visual--02 {
  background: var(--grad-dark-ember);
}

.story__visual--02::before {
  content: "";
  position: absolute;
  inset: 15% 20%;
  background: var(--grad-fire-sunset);
  border-radius: 50% 50% 12px 12px;
  transform: rotate(-8deg);
}

.story__visual--03 {
  background: var(--grad-orange-glow);
  clip-path: polygon(8% 0, 100% 12%, 92% 100%, 0 88%);
  min-height: 260px;
}

.story__visual--03::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 2px;
  left: 20%;
  top: 50%;
  background: var(--burnt-black);
  transform: rotate(-20deg);
}

.story__content {
  padding: 1.25rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.story__cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--warm-orange);
}

.story__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 16ch;
}

.story__desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 40ch;
}

.story__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(187, 163, 154, 0.18);
}

.story__year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.story__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.35rem;
  color: var(--ember-orange);
  border: 1px solid rgba(255, 106, 26, 0.45);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.story__link:hover,
.story__link:focus-visible {
  background: var(--grad-ember);
  color: var(--text-main);
  border-color: transparent;
  transform: translateX(4px);
}

/* 7. Motion Chamber -------------------------------------------------------- */

.motion {
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: #080403;
  overflow: hidden;
}

.motion__inner {
  text-align: center;
}

.motion__title {
  font-family: var(--font-black);
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.motion__title span {
  display: block;
}

.motion__title-accent {
  font-style: italic;
  background: var(--grad-fire-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.motion__stage {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.motion__orb {
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #9F1713 0%, #E63324 30%, #FF6A1A 65%, #FFC15A 100%);
  background-size: 200% 200%;
  box-shadow:
    0 0 60px rgba(230, 51, 36, 0.45),
    0 0 120px rgba(255, 106, 26, 0.25);
  animation: orb-spin 14s ease-in-out infinite, gradient-shift 8s ease infinite;
  z-index: 2;
}

.motion__ring,
.motion__ring--2 {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 154, 61, 0.35);
  animation: rotate-slow 20s linear infinite;
}

.motion__ring {
  width: 72%;
  aspect-ratio: 1;
  border-style: dashed;
}

.motion__ring--2 {
  width: 90%;
  aspect-ratio: 1;
  border-color: rgba(255, 193, 90, 0.2);
  animation-direction: reverse;
  animation-duration: 28s;
}

.motion__tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.2vw, 0.72rem);
  letter-spacing: 0.16em;
  color: var(--text-muted);
  white-space: nowrap;
}

.motion__tag--1 { top: 6%; left: 50%; transform: translateX(-50%); }
.motion__tag--2 { right: 0; top: 50%; transform: translateY(-50%); }
.motion__tag--3 { bottom: 6%; left: 50%; transform: translateX(-50%); }
.motion__tag--4 { left: 0; top: 50%; transform: translateY(-50%); }

@media (max-width: 520px) {
  .motion__tag--2,
  .motion__tag--4 {
    display: none;
  }
}

/* 8. Archive --------------------------------------------------------------- */

.archive {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--dark-ember);
}

.archive-list {
  border-top: 1px solid rgba(255, 154, 61, 0.25);
}

.archive-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0.5rem;
  border-bottom: 1px solid rgba(255, 154, 61, 0.2);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.archive-row__indicator {
  width: 0;
  height: 2px;
  background: var(--grad-ember);
  transition: width 0.35s var(--ease);
}

.archive-row__text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.archive-row__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.35s var(--ease);
}

.archive-row__arrow {
  color: var(--ember-orange);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.archive-row:hover,
.archive-row:focus-visible {
  transform: translateX(8px);
  background: rgba(16, 8, 7, 0.35);
}

.archive-row:hover .archive-row__indicator,
.archive-row:focus-visible .archive-row__indicator {
  width: 1.5rem;
}

.archive-row:hover .archive-row__num,
.archive-row:focus-visible .archive-row__num {
  color: var(--ember-orange);
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.archive-row:hover .archive-row__arrow,
.archive-row:focus-visible .archive-row__arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 520px) {
  .archive-row {
    grid-template-columns: auto 1fr auto;
  }

  .archive-row__num {
    display: none;
  }
}

/* 9. Final Flame ----------------------------------------------------------- */

.final {
  position: relative;
  min-height: 90vh;
  min-height: 90svh;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 10vw, 7rem) var(--pad-x);
  background: linear-gradient(145deg, #9F1713 0%, #E63324 45%, #FF6A1A 100%);
  overflow: hidden;
  text-align: center;
}

.final__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.final__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(26, 10, 7, 0.18);
}

.final__circle--1 {
  width: min(50vw, 420px);
  aspect-ratio: 1;
  left: -8%;
  top: 15%;
  background: rgba(255, 193, 90, 0.12);
  animation: float-soft 11s ease-in-out infinite;
}

.final__circle--2 {
  width: min(35vw, 280px);
  aspect-ratio: 1;
  right: 8%;
  bottom: 18%;
  background: rgba(16, 8, 7, 0.12);
  animation: float-soft 9s ease-in-out infinite reverse;
}

.final__ring {
  position: absolute;
  width: min(60vw, 520px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(26, 10, 7, 0.15);
  animation: rotate-slow 30s linear infinite;
}

.final__content {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.final__title {
  font-family: var(--font-black);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.final__title span {
  display: block;
}

.final__text {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(26, 10, 7, 0.78);
  max-width: 36ch;
  margin: 0 auto 2.25rem;
}

.final .btn {
  min-width: min(100%, 220px);
}

/* 10. Footer --------------------------------------------------------------- */

.footer {
  background: #080403;
  padding: 0 0 2rem;
}

.footer__divider {
  height: 3px;
  background: var(--grad-line);
}

.footer__inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 3rem;
}

@media (min-width: 860px) {
  .footer__inner {
    grid-template-columns: 1.2fr 1.5fr;
    align-items: start;
  }
}

.footer__brand-main {
  font-family: var(--font-black);
  font-size: clamp(3.5rem, 10vw, 7rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.footer__brand-dot {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.14em;
  color: var(--text-muted);
  vertical-align: super;
  margin-left: 0.2rem;
}

.footer__tagline {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--warm-orange);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--ember-orange);
  margin-bottom: 1.1rem;
}

.footer__col a {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  position: relative;
  transition: color 0.3s var(--ease);
}

.footer__col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--flame-red);
  transition: width 0.3s var(--ease);
}

.footer__col a:hover,
.footer__col a:focus-visible {
  color: var(--ember-cream);
}

.footer__col a:hover::after,
.footer__col a:focus-visible::after {
  width: 100%;
}

.footer__bottom {
  width: min(100% - (var(--pad-x) * 2), var(--max-w));
  margin-inline: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(187, 163, 154, 0.18);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .footer__nav {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Animations --------------------------------------------------------------- */

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes morph-blob {
  0%, 100% {
    border-radius: 50%;
    transform: scale(1);
  }
  33% {
    border-radius: 45% 55% 52% 48%;
    transform: scale(1.04) rotate(4deg);
  }
  66% {
    border-radius: 55% 45% 48% 52%;
    transform: scale(0.98) rotate(-3deg);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.85;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.15);
  }
}

@keyframes line-glow {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes orb-spin {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    border-radius: 50%;
  }
  25% {
    transform: scale(1.06) rotate(4deg);
    border-radius: 48% 52% 50% 50%;
  }
  50% {
    transform: scale(1.02) rotate(0deg);
    border-radius: 50% 48% 52% 48%;
  }
  75% {
    transform: scale(1.08) rotate(-4deg);
    border-radius: 52% 48% 48% 52%;
  }
}

@keyframes stripe-drift {
  from { background-position: 0 0; }
  to { background-position: 120px 80px; }
}

@keyframes ring-expand {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.75;
  }
}

/* Fix art-ellipse / art-ring transform conflicts with animations */
.art-ellipse {
  animation: ellipse-spin 22s linear infinite;
}

@keyframes ellipse-spin {
  from { transform: rotate(-18deg) scale(1.05); }
  to { transform: rotate(342deg) scale(1.05); }
}

.art-ring {
  animation: ring-spin 16s linear infinite reverse;
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.motion__tag--1 { animation: none; }
.motion__tag--2 { animation: none; }
.motion__tag--3 { animation: none; }
.motion__tag--4 { animation: none; }

/* Reduced motion ----------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Small polish ------------------------------------------------------------- */

@media (max-width: 979px) {
  .hero__art {
    width: min(100%, 420px);
  }

  .art-ellipse {
    filter: blur(1.5px);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 1.5rem;
  }

  .hero__title {
    font-size: clamp(3.75rem, 18vw, 5.5rem);
  }

  .hero__art {
    width: min(92%, 340px);
  }
}
