/* ══════════════════════════════════════════════════════════════
   author.css — author-profile body styles
   Shared by /author/<slug>/ pages. Chrome (topbar, mega-menu,
   mobile menu, footer, wizard) comes from the shared partials +
   styles.css; this file only adds the `au-*` editorial sections.
   All colours/fonts reuse the design tokens declared at the top
   of styles.css.
   ══════════════════════════════════════════════════════════════ */

/* Placeholder portrait — used when a real author photo isn't ready yet. */
.au-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,138,101,0.14) 0%, transparent 60%),
    linear-gradient(150deg, #3a1064 0%, var(--purple-deep) 55%, var(--purple-ink) 100%);
  color: rgba(255,255,255,0.85); text-align: center;
}
.au-ph-mono {
  font-family: var(--display); font-weight: 400; line-height: 1;
  font-size: clamp(3rem, 7vw, 5.5rem); color: #fff;
}
.au-ph-tag {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.55);
}

/* ─── HERO ─────────────────────────────────────────────────────── */
.au-hero {
  background: var(--paper); position: relative; overflow: hidden;
  min-height: min(86vh, 880px);
  display: flex; align-items: center;
  padding: clamp(2.5rem,5vw,4.5rem) clamp(1.5rem,5vw,4.5rem);
}
.au-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 50% 8%, rgba(255,138,101,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 108%, rgba(90,24,154,0.06) 0%, transparent 60%);
}
.au-hero-inner {
  max-width: 1440px; margin-inline: auto; width: 100%; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.au-eyebrow {
  display: inline-block; margin-bottom: clamp(1.75rem,4vw,3rem);
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--purple-deep);
}

/* Name-around-portrait stage */
.au-hero-stage {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; justify-items: center;
  margin-bottom: clamp(2rem,4vw,3rem);
  padding-block: clamp(1.5rem,4vw,3rem);
}
.au-hero-stage::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; z-index: 0;
  background: linear-gradient(to right, transparent, var(--rule) 14%, var(--rule) 86%, transparent);
}
.au-name { display: contents; }
.au-name-first, .au-name-last {
  font-family: var(--display); font-weight: 400; line-height: 0.9; letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.6rem, 10vw, 7.5rem); white-space: nowrap; z-index: 1;
  width: 0; overflow: visible;
}
.au-name-first { grid-column: 1; grid-row: 1; justify-self: end;   text-align: right; transform: translateX(0.58em);  color: var(--purple-ink); }
.au-name-last  { grid-column: 3; grid-row: 1; justify-self: start; text-align: left;  transform: translateX(-0.58em); color: var(--coral); }
.au-portrait {
  grid-column: 2; grid-row: 1; position: relative; z-index: 2;
  width: min(42vw, 500px); aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
  box-shadow: 0 40px 80px -34px rgba(20,23,31,0.45);
}
.au-portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s var(--ease-out);
}
.au-portrait:hover img { transform: scale(1.03); }
.au-portrait::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--purple-deep);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.au-portrait:hover::before { opacity: 0.14; }
.au-portrait::after {
  content: ''; position: absolute; inset: 12px; z-index: 3; pointer-events: none;
  border: 1px solid rgba(255,255,255,0.55); border-radius: 3px;
}

/* rotating "published author" seal — fills the empty left field */
.au-stage-seal {
  position: absolute; left: 0; top: 7%; z-index: 3;
  width: clamp(100px, 10vw, 140px); height: auto;
}
.au-stage-seal svg { width: 100%; height: auto; display: block; }
.au-stage-seal .seal-ring { transform-origin: 60px 60px; animation: au-seal-spin 26s linear infinite; }
.au-stage-seal .seal-star { fill: var(--coral); }
.au-stage-seal text { font-family: var(--mono); font-size: 8.2px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; fill: var(--purple); }
@keyframes au-seal-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .au-stage-seal .seal-ring { animation: none; }
  .au-portrait:hover img { transform: none; }
}

/* signature flourish — fills the empty right field */
.au-signature { position: absolute; right: 0; bottom: 7%; z-index: 3; text-align: right; pointer-events: none; }
.au-signature .sig { display: block; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 2.8vw, 2.6rem); color: var(--purple-ink); line-height: 1; }
.au-signature .sig-cap { display: block; font-family: var(--mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 0.55rem; }
@media (max-width: 1180px) { .au-stage-seal, .au-signature { display: none; } }

.au-tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0 0 clamp(1.5rem,3vw,2.25rem); padding: 0; }
.au-tags li {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--purple);
  border: 1px solid var(--rule); border-radius: 999px; padding: 0.5rem 1.1rem; background: var(--purple-pale);
}
.au-lede {
  font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(1.05rem,1.5vw,1.28rem); line-height: 1.75;
  color: var(--ink-soft); max-width: 60ch; margin: 0 auto clamp(2rem,4vw,2.75rem);
}
.au-hero-actions { display: flex; gap: clamp(1rem,3vw,2.5rem); flex-wrap: wrap; align-items: center; justify-content: center; }

/* ─── METRIC RIBBON (hidden until real figures are supplied) ──── */
.au-metrics { background: var(--purple-ink); display: none; }
.au-metrics-inner {
  max-width: 1300px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-inline: 1px solid rgba(255,255,255,0.12);
}
.au-metric { padding: clamp(2.5rem,5vw,4rem) 1.5rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.12); transition: background 0.4s var(--ease-out); }
.au-metric:first-child { border-left: 1px solid rgba(255,255,255,0.12); }
.au-metric:hover { background: rgba(255,255,255,0.03); }
.au-metric-n { display: block; font-family: var(--display); font-weight: 400; line-height: 1; font-size: clamp(2.5rem,5vw,4rem); color: rgba(255,255,255,0.92); margin-bottom: 0.85rem; }
.au-metric:nth-child(2n) .au-metric-n { color: var(--coral); }
.au-metric-l { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.45); }

/* ─── COLLECTED WORKS (featured grid) ──────────────────────────── */
.au-works { background: var(--paper); }
.au-works-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(1.5rem,4vw,3rem); flex-wrap: wrap; margin-bottom: clamp(2rem,4vw,3.25rem);
}
.au-works-head-main { text-align: left; }
.au-works-head-main .au-section-num { margin-bottom: 0.4rem; }
.au-works-head-main .au-section-title { margin: 0; }
.au-works-deck {
  font-family: var(--body); font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft);
  max-width: 32ch; margin: 0; text-align: left; flex: 0 1 auto;
}
.au-works-viewall {
  display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--purple-deep); padding: 0.9rem 1.6rem; border-radius: 999px; text-decoration: none;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
.au-works-viewall:hover { background: var(--coral); transform: translateY(-2px); }
.au-works-viewall span { font-size: 1.15em; line-height: 0; }

.au-works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem,1.6vw,1.5rem); }
.au-work { display: block; text-decoration: none; }
.au-work-media {
  position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 3/4;
  box-shadow: 0 14px 34px -16px rgba(20,23,31,0.32); transition: box-shadow 0.5s var(--ease-out);
}
.au-work:hover .au-work-media { box-shadow: 0 24px 52px -18px rgba(20,23,31,0.42); }
.au-work-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease-out); }
.au-work:hover .au-work-media img { transform: scale(1.06); }
.au-work-cap {
  position: absolute; inset: auto 0 0 0; padding: 1.3rem 1.15rem 1.15rem;
  background: linear-gradient(to top, rgba(42,10,74,0.92) 0%, rgba(42,10,74,0.55) 45%, transparent 100%);
}
.au-work-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.1rem,1.5vw,1.45rem); color: #fff; line-height: 1.15; margin: 0 0 0.3rem; }
.au-work-cat { font-family: var(--mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* ─── AUTHOR'S NOTE (pull-quote) ───────────────────────────────── */
.au-quote { background: var(--purple-ink); color: #fff; text-align: center; position: relative; overflow: hidden; }
.au-quote::before {
  content: '\201C'; position: absolute; top: -0.35em; left: 50%; transform: translateX(-50%);
  font-family: var(--display); font-size: clamp(9rem,20vw,16rem); line-height: 1;
  color: rgba(255,138,101,0.14); pointer-events: none;
}
.au-quote-inner { max-width: 860px; margin-inline: auto; position: relative; z-index: 1; }
.au-quote-text { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.5rem,3.4vw,2.4rem); line-height: 1.35; margin: 0 0 2rem; }
.au-quote-text em { font-style: italic; color: var(--purple-soft); }
.au-quote-by { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* ─── JOURNEY IN INK (timeline) ────────────────────────────────── */
.au-journey { background: var(--purple-pale); }
.au-journey-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(2rem,5vw,5rem); }
.au-journey-intro { position: sticky; top: 120px; align-self: start; }
.au-journey-intro hr { border: none; border-top: 1px solid var(--rule); margin: 1.75rem 0; }
.au-awards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.au-awards li { display: flex; align-items: center; gap: 0.75rem; font-family: var(--mono); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.au-awards li:first-child { color: var(--coral); }
.au-awards svg { flex-shrink: 0; width: 18px; height: 18px; }
.au-timeline { display: flex; flex-direction: column; gap: clamp(2.5rem,4vw,4rem); }
.au-tl-item { position: relative; padding-left: 3rem; }
.au-tl-item::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 2px; background: var(--rule); transition: background 0.5s var(--ease-out); }
.au-tl-item::after { content: ''; position: absolute; left: -5px; top: 0.4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--purple-deep); transition: transform 0.5s var(--ease-out), background 0.5s; }
.au-tl-item:hover::before { background: var(--coral); }
.au-tl-item:hover::after { transform: scale(1.5); background: var(--coral); }
.au-tl-year { font-family: var(--display); font-size: 1.5rem; color: var(--coral); display: block; margin-bottom: 0.4rem; }
.au-tl-h { font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem,2vw,1.6rem); color: var(--purple-ink); margin: 0 0 0.6rem; }
.au-tl-item p { font-family: var(--body); font-size: 0.975rem; line-height: 1.65; color: var(--ink-soft); margin: 0; max-width: 52ch; }

/* ─── section headings shared by Works / Journey ───────────────── */
.au-section-num { display: block; font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--purple-deep); margin-bottom: 0.6rem; }
.au-section-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem,4.6vw,3.2rem); line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; color: var(--ink); margin: 0; }
.au-section-title em { font-style: italic; font-weight: 500; color: var(--purple-deep); }
.au-section-deck { font-family: var(--display); font-style: italic; font-weight: 300; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; margin-top: 0.6rem; max-width: 50ch; }

/* ─── CLOSING CTA (full-bleed dark band, flush to footer) ──────── */
.au-cta { background: linear-gradient(135deg,var(--purple-ink) 0%,var(--purple-deep) 60%,#2a0a4a 100%); position: relative; overflow: hidden; }
.au-cta::before { content: ''; position: absolute; top: -50%; left: -15%; width: 60vw; height: 60vw; background: radial-gradient(closest-side, rgba(198,164,249,.15), transparent 70%); pointer-events: none; }
.au-cta-panel {
  max-width: 780px; margin-inline: auto; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem;
}
.au-cta-title { position: relative; z-index: 1; font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem,4vw,3rem); line-height: 1.15; color: #fff; margin: 0; max-width: 20ch; }
.au-cta-title em { font-style: italic; color: var(--purple-soft); }
.au-cta-panel p { position: relative; z-index: 1; font-family: var(--display); font-style: italic; font-weight: 300; font-size: 1.05rem; line-height: 1.6; color: rgba(255,255,255,0.72); margin: 0; max-width: 52ch; }
.au-cta-panel .btn { position: relative; z-index: 1; margin-top: 0.5rem; }

/* ─── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 980px) {
  .au-hero-stage { grid-template-columns: 1fr; row-gap: 0.25rem; }
  .au-name-first, .au-name-last { grid-column: 1; justify-self: center; text-align: center; width: auto; transform: none; font-size: clamp(2.6rem, 12vw, 4.5rem); }
  .au-name-first { grid-row: 1; }
  .au-name-last { grid-row: 2; }
  .au-portrait { grid-column: 1; grid-row: 3; width: min(80vw, 340px); margin-top: 1.25rem; }
  .au-hero-stage::before { display: none; }
  .au-metrics-inner { grid-template-columns: repeat(2, 1fr); }
  .au-metric:nth-child(2) { border-right: none; }
  .au-works-head { align-items: flex-start; }
  .au-works-grid { grid-template-columns: repeat(2, 1fr); }
  .au-journey-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .au-journey-intro { position: static; }
}
@media (max-width: 640px) {
  .au-name-first, .au-name-last { font-size: clamp(2rem, 13vw, 3.25rem); }
  .au-metrics-inner { grid-template-columns: 1fr 1fr; }
  .au-metric:nth-child(3) { border-right: none; }
}
