/* ══════════════════════════════════════════════════════════════
   author.css — luxury author-profile body styles
   Shared by /author/<slug>/ pages. Chrome (nav, drawer, footer,
   buttons, tokens) comes from services.css; this file only adds the
   `au-*` editorial sections. All colours/fonts reuse the design
   tokens declared at the top of services.css.
   ══════════════════════════════════════════════════════════════ */

/* Shared image placeholder (portrait + book covers).
   Swap the .au-ph block for a real <img> when assets are ready. */
.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(178,34,52,0.10) 0%, transparent 60%),
    linear-gradient(150deg, #142338 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: rgba(255,255,255,0.85); text-align: center;
}
.au-ph-mono {
  font-family: var(--f-display); font-weight: 400; line-height: 1;
  font-size: clamp(3rem, 7vw, 5.5rem); color: #fff;
}
.au-ph-tag {
  font-family: var(--f-cond); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.5);
}

/* ─── HERO ─────────────────────────────────────────────────────── */
.au-hero {
  background: var(--white); position: relative; overflow: hidden;
  min-height: calc(100vh - 104px);            /* fill the screen below the fixed nav */
  display: flex; align-items: center;
  padding: clamp(2.5rem,5vw,4.5rem) clamp(1.5rem,5vw,4.5rem);
}
/* soft ambient wash so the wide field doesn't read as empty */
.au-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 50% 8%, rgba(178,34,52,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 108%, rgba(10,24,40,0.05) 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-hero .eyebrow { font-size: 0.88rem; letter-spacing: 0.2em; margin-bottom: clamp(1.75rem,4vw,3rem); }

/* 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;
  column-gap: clamp(1rem, 2vw, 2rem);
  margin-bottom: clamp(2rem,4vw,3rem);
  padding-block: clamp(1.5rem,4vw,3rem);
}
/* full-width nameplate baseline runs through the composition so the wide field reads intentional */
.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(--border) 14%, var(--border) 86%, transparent);
}
.au-name { display: contents; }              /* keep one semantic <h1>, let spans be grid items */
.au-name-first, .au-name-last {
  font-family: var(--f-display); font-weight: 400; line-height: 0.9; letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem); white-space: nowrap; z-index: 1;
  /* names sit fully beside the portrait; the two 1fr tracks stay equal so it stays centred */
}
.au-name-first { grid-column: 1; grid-row: 1; justify-self: end;   text-align: right; color: var(--navy); }
.au-name-last  { grid-column: 3; grid-row: 1; justify-self: start; text-align: left;  color: var(--crimson); }
.au-portrait {
  grid-column: 2; grid-row: 1; position: relative; z-index: 2;
  width: min(33vw, 410px); aspect-ratio: 396/429; border-radius: 8px; overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 80px -34px rgba(15,23,42,0.5);
}
.au-portrait-photo {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
/* American-flag hover reveal — the transparent person cutout stays static on top
   (z-index 2); the shared, person-free flag (flag-hover-bg.svg) sits behind it (z-index 1)
   and slides in from the corners on hover. Because the cutout has clean alpha, it occludes
   the figure perfectly and the flag only shows in the margins — no ghosting, no halo.
   Two layers of the same flag, each clipped to one motif, enter from opposite corners:
   the star/stripe band from the top-left, the shield from the bottom-right. */
.au-flag {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url('/assets/authors/flag-hover-bg.svg') center/cover no-repeat;
  opacity: 0;
  transition: opacity 0.55s var(--ease-quart), transform 0.7s var(--ease-expo);
}
.au-flag--tl { clip-path: inset(0 0 60% 0);  transform: translate(-16%, -18%); }  /* top band */
.au-flag--br { clip-path: inset(52% 0 0 60%); transform: translate(16%, 18%); }    /* bottom-right shield */
.au-portrait:hover .au-flag { opacity: 1; transform: translate(0, 0); }
/* thin inner frame — editorial luxury detail */
.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(--crimson); }
.au-stage-seal text { font-family: var(--f-cond); font-size: 8.2px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; fill: var(--navy-mid); }
@keyframes au-seal-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .au-stage-seal .seal-ring { animation: none; }
  .au-flag { transition: opacity 0.3s linear; transform: none !important; }
}

/* 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: 'Great Vibes', cursive; font-style: normal; font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--navy); line-height: 0.9; }
.au-signature .sig-cap { display: block; font-family: var(--f-cond); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 0.55rem; }
/* the flank details need room; hide them before they crowd the nameplate */
@media (max-width: 1180px) { .au-stage-seal, .au-signature { display: none; } }
/* specialty tags — adds substance under the name */
.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(--f-cond); font-size: 1rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--crimson);
  border: 1px solid var(--crimson); border-radius: 8px; padding: 0.5rem 1.1rem; background: #fff;
}
.au-lede {
  font-family: var(--f-sans); font-size: clamp(1.05rem,1.5vw,1.28rem); line-height: 1.75;
  color: var(--body); 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 ────────────────────────────────────────────── */
.au-metrics { background: var(--navy); 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-quart); }
.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(--f-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(--crimson-hi); }
.au-metric-l { font-family: var(--f-cond); 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(--white); }
/* header row: title left · description middle · view-all button right */
.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 .section-num { margin-bottom: 0.4rem; }
.au-works-head-main .section-title { margin: 0; }
.au-works-deck {
  font-family: var(--f-sans); font-size: 0.95rem; line-height: 1.6; color: var(--body);
  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(--f-cond); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--navy); padding: 0.9rem 1.6rem; border-radius: 999px; text-decoration: none;
  transition: background 0.25s, transform 0.25s var(--ease-quart);
}
.au-works-viewall:hover { background: var(--crimson); transform: translateY(-2px); }
.au-works-viewall span { font-size: 1.15em; line-height: 0; }

/* 4-across cards with title + category overlaid on the image */
.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(10,24,40,0.32); transition: box-shadow 0.5s var(--ease-quart);
}
.au-work:hover .au-work-media { box-shadow: 0 24px 52px -18px rgba(10,24,40,0.42); }
.au-work-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease-quart); }
.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(6,15,26,0.92) 0%, rgba(6,15,26,0.55) 45%, transparent 100%);
}
.au-work-title { font-family: var(--f-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(--f-cond); 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(--navy); color: #fff; text-align: center; position: relative; overflow: hidden; }
.au-quote::before {
  content: '“'; position: absolute; top: -0.35em; left: 50%; transform: translateX(-50%);
  font-family: var(--f-display); font-size: clamp(9rem,20vw,16rem); line-height: 1;
  color: rgba(178,34,52,0.16); pointer-events: none;
}
.au-quote-inner { max-width: 860px; margin-inline: auto; position: relative; z-index: 1; }
.au-quote-text { font-family: var(--f-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(--crimson-hi); }
.au-quote-by { font-family: var(--f-cond); 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(--surface); }
.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(--border); 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(--f-cond); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--body); }
.au-awards li:first-child { color: var(--crimson); }
.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(--border); transition: background 0.5s var(--ease-quart); }
.au-tl-item::after { content: ''; position: absolute; left: -5px; top: 0.4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); transition: transform 0.5s var(--ease-quart), background 0.5s; }
.au-tl-item:hover::before { background: var(--crimson); }
.au-tl-item:hover::after { transform: scale(1.5); background: var(--crimson); }
.au-tl-year { font-family: var(--f-display); font-size: 1.5rem; color: var(--crimson); display: block; margin-bottom: 0.4rem; }
.au-tl-h { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem,2vw,1.6rem); color: var(--navy); margin: 0 0 0.6rem; }
.au-tl-item p { font-family: var(--f-sans); font-size: 0.975rem; line-height: 1.65; color: var(--body); margin: 0; max-width: 52ch; }

/* ─── ESSAYS ───────────────────────────────────────────────────── */
.au-essays { background: var(--white); }
.au-essays-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem,2.5vw,2rem); }
.au-essay {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem 1.9rem; transition: transform 0.4s var(--ease-quart), box-shadow 0.4s, border-color 0.4s;
}
.au-essay:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(10,24,40,0.28); border-color: rgba(178,34,52,0.4); }
.au-essay-meta { font-family: var(--f-cond); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.85rem; }
.au-essay-h { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; line-height: 1.25; color: var(--navy); margin: 0 0 0.85rem; transition: color 0.3s; }
.au-essay:hover .au-essay-h { color: var(--crimson); }
.au-essay p { font-family: var(--f-sans); font-size: 0.95rem; line-height: 1.6; color: var(--body); margin: 0 0 1.75rem; flex-grow: 1; }
.au-essay-link { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--f-cond); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); text-decoration: none; transition: color 0.3s, gap 0.3s; }
.au-essay-link:hover { color: var(--crimson); gap: 0.7rem; }
.au-essay-link svg { width: 14px; height: 14px; }

/* ─── CLOSING CTA (full-bleed navy band, flush to footer) ──────── */
.au-cta { background: var(--navy); position: relative; overflow: hidden; }
.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(--f-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(--crimson-hi); }
.au-cta-panel p { position: relative; z-index: 1; font-family: var(--f-sans); font-size: 1.05rem; line-height: 1.6; color: rgba(255,255,255,0.7); margin: 0; max-width: 52ch; }
.au-cta-panel .btn-primary { position: relative; z-index: 1; margin-top: 0.5rem; }

/* ─── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 980px) {
  /* Hero: stack first name → last name → portrait, all centered */
  .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; }
  .au-essays-grid { grid-template-columns: 1fr 1fr; }
}
@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; }
  .au-essays-grid { grid-template-columns: 1fr; }
}
