/* ============================================================
   t06 - Scrollytelling Magazine
   Full-width sections, editorial serif, staggered blocks
   ============================================================ */

:root {
  --xxf-primary: #9f1239;
  --xxf-accent: #fda4af;
  --xxf-surface: #fdf2f8;
  --xxf-ink: #1c1917;
  --xxf-muted: #78716c;
  --xxf-line: rgba(28,25,23,.1);
  --xxf-card: #ffffff;
  --xxf-radius: 16px;
  --xxf-shadow: 0 20px 60px rgba(28,25,23,.08);
  --xxf-max: 1200px;

  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, serif;
  --font-display: var(--font-serif);

  --text-xs: clamp(.7rem, .65rem + .25vw, .8rem);
  --text-sm: clamp(.8rem, .75rem + .25vw, .9rem);
  --text-base: clamp(.95rem, .9rem + .25vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  --text-xl: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  --text-2xl: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
  --text-hero: clamp(2.4rem, 1.5rem + 4.5vw, 5rem);

  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-section: clamp(3rem, 2.5rem + 3vw, 6rem);

  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth: cubic-bezier(.4, 0, .2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body.template-t06 {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--xxf-ink);
  background: var(--xxf-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--xxf-primary); text-decoration: none; transition: color .2s var(--ease-smooth); }
a:hover { color: var(--xxf-accent); }

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--xxf-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 2rem);
}

.container--wide {
  max-width: 1400px;
}

/* --- Scrollbar --- */
body.template-t06::-webkit-scrollbar { width: 8px; }
body.template-t06::-webkit-scrollbar-track { background: var(--xxf-surface); }
body.template-t06::-webkit-scrollbar-thumb { background: var(--xxf-primary); border-radius: 4px; }

/* ---------- SEO Runtime Garbage Cleanup ---------- */
body[class*="template-"] :is(.container,.container--wide,.t06-header,.t06-header__top,.t06-nav,.t06-nav__list,.t06-hero,.t06-hero__content,.t06-section,.t06-layout,.t06-ranking,.t06-ranking__item,.t06-stagger,.t06-card,.t06-card__body,.t06-catelog-grid,.t06-catelog-card,.t06-keywords,.t06-sidebar,.t06-sidebar__block,.t06-list,.t06-list__item,.t06-article-body,.t06-article-header,.t06-prevnext,.t06-footer,.t06-footer__links,.t06-pagination) > :where(font,ins,small,sup,time,tt,var,area,map,bdo,dfn):not([class]) { display: none !important; }
body[class*="template-"] :is(.t06-brand,.t06-search,.t06-hero__img-wrap,.t06-section__head,.t06-card__img-wrap,.t06-card--featured,.t06-catelog-card__name,.t06-keyword,.t06-sidebar__title,.t06-sidebar__list,.t06-list__thumb,.t06-list__info,.t06-article-header__meta,.t06-prevnext__link,.t06-footer__link-list,.t06-footer__bottom) > :where(font,ins,small,sup,time,tt,var,area,map,bdo,dfn):not([class]) { display: none !important; }

/* ============================================================
   HEADER
   ============================================================ */
.t06-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 242, 248, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--xxf-line);
  transition: box-shadow .3s var(--ease-smooth);
}

.t06-header.is-scrolled {
  box-shadow: 0 4px 30px rgba(28, 25, 23, .06);
}

.t06-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  gap: var(--space-sm);
}

.t06-brand {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.t06-brand__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--xxf-primary);
  letter-spacing: -.02em;
}

.t06-brand__tag {
  font-size: var(--text-xs);
  color: var(--xxf-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.t06-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.t06-search {
  display: flex;
  align-items: center;
  background: var(--xxf-card);
  border: 1px solid var(--xxf-line);
  border-radius: 999px;
  padding: .35rem .75rem;
  transition: border-color .2s, box-shadow .2s;
}

.t06-search:focus-within {
  border-color: var(--xxf-primary);
  box-shadow: 0 0 0 3px rgba(159, 18, 57, .1);
}

.t06-search__input {
  border: none;
  background: transparent;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  outline: none;
  width: 140px;
  color: var(--xxf-ink);
}

.t06-search__input::placeholder { color: var(--xxf-muted); }

.t06-search__btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--xxf-muted);
  font-size: 1rem;
  padding: 0;
  transition: color .2s;
}

.t06-search__btn:hover { color: var(--xxf-primary); }

.t06-sitemap-link {
  font-size: var(--text-xs);
  color: var(--xxf-muted);
  letter-spacing: .05em;
  transition: color .2s;
}

.t06-sitemap-link:hover { color: var(--xxf-primary); }

/* --- Nav --- */
.t06-nav {
  border-top: 1px solid var(--xxf-line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.t06-nav::-webkit-scrollbar { display: none; }

.t06-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  white-space: nowrap;
}

.t06-nav__item {}

.t06-nav__link {
  display: inline-block;
  padding: .65rem 1.1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--xxf-ink);
  position: relative;
  transition: color .2s;
}

.t06-nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--xxf-primary);
  transition: width .3s var(--ease-out-expo), left .3s var(--ease-out-expo);
}

.t06-nav__link:hover {
  color: var(--xxf-primary);
}

.t06-nav__link:hover::after {
  width: 100%;
  left: 0;
}

/* ============================================================
   HERO (index)
   ============================================================ */
.t06-hero {
  position: relative;
  min-height: clamp(50vh, 60vh, 80vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.t06-hero__img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.t06-hero__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t06-hero__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 25, 23, .85) 0%,
    rgba(28, 25, 23, .3) 50%,
    rgba(28, 25, 23, .05) 100%
  );
}

.t06-hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0;
  width: 100%;
  max-width: var(--xxf-max);
  margin: 0 auto;
  padding-left: clamp(1rem, 2vw, 2rem);
  padding-right: clamp(1rem, 2vw, 2rem);
}

.t06-hero__tag {
  display: inline-block;
  background: var(--xxf-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3em .9em;
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

.t06-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: var(--space-sm);
  max-width: 800px;
}

.t06-hero__title a { color: #fff; }
.t06-hero__title a:hover { color: var(--xxf-accent); }

.t06-hero__excerpt {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, .8);
  max-width: 600px;
  line-height: 1.6;
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.t06-section {
  padding: var(--space-section) 0;
}

.t06-section--alt {
  background: var(--xxf-card);
}

.t06-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--xxf-primary);
}

.t06-section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--xxf-ink);
  letter-spacing: -.01em;
}

.t06-section__more {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--xxf-primary);
  white-space: nowrap;
}

/* ============================================================
   MAIN / SIDEBAR LAYOUT
   ============================================================ */
.t06-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 960px) {
  .t06-layout--sidebar {
    grid-template-columns: 1fr 340px;
  }
}

/* ============================================================
   RANKING (numbered list)
   ============================================================ */
.t06-ranking {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .t06-ranking { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .t06-ranking { grid-template-columns: 1fr 1fr 1fr; }
}

.t06-ranking__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--xxf-line);
}

.t06-ranking__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--xxf-primary);
  min-width: 2rem;
  line-height: 1;
  padding-top: .15em;
}

.t06-ranking__num--gold { color: #d97706; }
.t06-ranking__num--silver { color: #6b7280; }
.t06-ranking__num--bronze { color: #b45309; }

.t06-ranking__link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--xxf-ink);
  line-height: 1.5;
  transition: color .2s;
}

.t06-ranking__link:hover { color: var(--xxf-primary); }

/* ============================================================
   STAGGERED GRID (arclist editorial)
   ============================================================ */
.t06-stagger {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .t06-stagger { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .t06-stagger { grid-template-columns: 1fr 1fr 1fr; }
}

.t06-card {
  background: var(--xxf-card);
  border-radius: var(--xxf-radius);
  overflow: hidden;
  box-shadow: var(--xxf-shadow);
  transition: transform .4s var(--ease-out-expo), box-shadow .4s var(--ease-out-expo);
}

.t06-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(28, 25, 23, .12);
}

.t06-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .t06-card--featured {
    grid-template-columns: 1fr 1fr;
  }
}

.t06-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.t06-card--featured .t06-card__img-wrap {
  aspect-ratio: auto;
  min-height: 260px;
}

.t06-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out-expo);
}

.t06-card:hover .t06-card__img-wrap img {
  transform: scale(1.05);
}

.t06-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.t06-card--featured .t06-card__body {
  padding: var(--space-lg);
  justify-content: center;
}

.t06-card__date {
  font-size: var(--text-xs);
  color: var(--xxf-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.t06-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
  color: var(--xxf-ink);
}

.t06-card__title a {
  color: inherit;
  transition: color .2s;
}

.t06-card__title a:hover {
  color: var(--xxf-primary);
}

.t06-card--featured .t06-card__title {
  font-size: var(--text-2xl);
}

.t06-card__excerpt {
  font-size: var(--text-sm);
  color: var(--xxf-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   CATELOG GRID
   ============================================================ */
.t06-catelog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-sm);
}

.t06-catelog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-sm);
  background: var(--xxf-card);
  border-radius: var(--xxf-radius);
  border: 1px solid var(--xxf-line);
  text-align: center;
  transition: border-color .2s, box-shadow .3s, transform .3s var(--ease-out-expo);
}

.t06-catelog-card:hover {
  border-color: var(--xxf-primary);
  box-shadow: 0 8px 30px rgba(159, 18, 57, .08);
  transform: translateY(-3px);
}

.t06-catelog-card__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--xxf-ink);
}

.t06-catelog-card:hover .t06-catelog-card__name {
  color: var(--xxf-primary);
}

/* ============================================================
   KEYWORDS
   ============================================================ */
.t06-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.t06-keyword {
  display: inline-block;
  padding: .35em .85em;
  background: var(--xxf-card);
  border: 1px solid var(--xxf-line);
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--xxf-muted);
  transition: all .2s;
}

.t06-keyword:hover {
  background: var(--xxf-primary);
  border-color: var(--xxf-primary);
  color: #fff;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.t06-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.t06-sidebar__block {
  background: var(--xxf-card);
  border-radius: var(--xxf-radius);
  padding: var(--space-md);
  box-shadow: var(--xxf-shadow);
}

.t06-sidebar__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--xxf-ink);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--xxf-primary);
}

.t06-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.t06-sidebar__link {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: var(--text-sm);
  color: var(--xxf-ink);
  padding: .4rem 0;
  border-bottom: 1px solid var(--xxf-line);
  transition: color .2s;
}

.t06-sidebar__link:last-child { border-bottom: none; }
.t06-sidebar__link:hover { color: var(--xxf-primary); }

/* ============================================================
   LIST PAGE
   ============================================================ */
.t06-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.t06-list__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--xxf-line);
  transition: background .2s;
}

@media (min-width: 640px) {
  .t06-list__item {
    grid-template-columns: 200px 1fr;
  }
}

.t06-list__item:hover {
  background: rgba(159, 18, 57, .02);
}

.t06-list__thumb {
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--xxf-radius) / 2);
  overflow: hidden;
}

.t06-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease-out-expo);
}

.t06-list__item:hover .t06-list__thumb img {
  transform: scale(1.05);
}

.t06-list__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-xs);
}

.t06-list__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
}

.t06-list__title a { color: var(--xxf-ink); }
.t06-list__title a:hover { color: var(--xxf-primary); }

.t06-list__meta {
  font-size: var(--text-xs);
  color: var(--xxf-muted);
}

.t06-list__excerpt {
  font-size: var(--text-sm);
  color: var(--xxf-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Pagination --- */
.t06-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: var(--space-lg) 0;
}

.t06-pagination a,
.t06-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .6rem;
  font-size: var(--text-sm);
  border-radius: 8px;
  border: 1px solid var(--xxf-line);
  color: var(--xxf-ink);
  background: var(--xxf-card);
  transition: all .2s;
}

.t06-pagination a:hover {
  background: var(--xxf-primary);
  border-color: var(--xxf-primary);
  color: #fff;
}

/* ============================================================
   SHOW PAGE (article)
   ============================================================ */
.t06-article-header {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--xxf-line);
}

.t06-article-header__cat {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--xxf-primary);
  margin-bottom: var(--space-sm);
}

.t06-article-header__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--xxf-ink);
  max-width: 800px;
  margin: 0 auto var(--space-sm);
}

.t06-article-header__meta {
  font-size: var(--text-sm);
  color: var(--xxf-muted);
}

.t06-article-body {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  line-height: 1.9;
  color: var(--xxf-ink);
  max-width: 740px;
  margin: var(--space-xl) auto;
  padding: 0 clamp(1rem, 2vw, 2rem);
}

.t06-article-body p {
  margin-bottom: 1.4em;
}

.t06-article-body h2,
.t06-article-body h3,
.t06-article-body h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: .6em;
  color: var(--xxf-ink);
}

.t06-article-body h2 { font-size: var(--text-2xl); }
.t06-article-body h3 { font-size: var(--text-xl); }
.t06-article-body h4 { font-size: var(--text-lg); }

.t06-article-body img {
  border-radius: var(--xxf-radius);
  margin: var(--space-lg) 0;
  box-shadow: var(--xxf-shadow);
}

.t06-article-body blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--xxf-primary);
  background: var(--xxf-surface);
  border-radius: 0 var(--xxf-radius) var(--xxf-radius) 0;
  font-style: italic;
  color: var(--xxf-muted);
}

.t06-article-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.t06-article-body ul,
.t06-article-body ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.t06-article-body ul { list-style: disc; }
.t06-article-body ol { list-style: decimal; }

.t06-article-body li {
  margin-bottom: .4em;
}

/* --- Prev / Next --- */
.t06-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  max-width: 740px;
  margin: var(--space-xl) auto;
  padding: 0 clamp(1rem, 2vw, 2rem);
}

.t06-prevnext__link {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: var(--space-md);
  background: var(--xxf-card);
  border-radius: var(--xxf-radius);
  border: 1px solid var(--xxf-line);
  transition: border-color .2s, box-shadow .3s;
}

.t06-prevnext__link:hover {
  border-color: var(--xxf-primary);
  box-shadow: 0 8px 30px rgba(159, 18, 57, .08);
}

.t06-prevnext__label {
  font-size: var(--text-xs);
  color: var(--xxf-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.t06-prevnext__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--xxf-ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   FOOTER
   ============================================================ */
.t06-footer {
  background: var(--xxf-ink);
  color: rgba(255, 255, 255, .7);
  padding: var(--space-xl) 0 var(--space-md);
}

.t06-footer__links {
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.t06-footer__link-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  margin-bottom: var(--space-xs);
}

.t06-footer__link-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  margin-bottom: var(--space-md);
}

.t06-footer__link-list a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .6);
  transition: color .2s;
}

.t06-footer__link-list a:hover {
  color: var(--xxf-accent);
}

.t06-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--text-xs);
}

.t06-footer__copy {
  color: rgba(255, 255, 255, .4);
}

.t06-footer__copy a {
  color: rgba(255, 255, 255, .5);
}

.t06-footer__copy a:hover {
  color: var(--xxf-accent);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.t06-animate {
  opacity: 0;
  animation: fadeInUp .7s var(--ease-out-expo) forwards;
}

.t06-animate--delay-1 { animation-delay: .1s; }
.t06-animate--delay-2 { animation-delay: .2s; }
.t06-animate--delay-3 { animation-delay: .3s; }

/* Section reveal on scroll - only hidden when JS is active */
.js-ready .t06-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}

.js-ready .t06-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 639px) {
  .t06-hero { min-height: 50vh; }
  .t06-hero__title { font-size: clamp(1.8rem, 1rem + 4vw, 3rem); }
  .t06-hero__excerpt { font-size: var(--text-base); }
  .t06-prevnext { grid-template-columns: 1fr; }
  .t06-article-header__title { font-size: clamp(1.8rem, 1rem + 4vw, 3.5rem); }
}

@media (min-width: 640px) and (max-width: 959px) {
  .t06-stagger { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .t06-section {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
.t06-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.t06-divider {
  width: 60px;
  height: 3px;
  background: var(--xxf-primary);
  border: none;
  margin: var(--space-md) 0;
}
