/* ============================================================
   Doc Moates — Portfolio
   Dark · cinematic · warm amber/gold
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:          #0f0b07;
  --bg-soft:     #15100b;
  --surface:     #1c1510;
  --surface-2:   #261c14;
  --border:      #392a1c;
  --border-soft: rgba(232, 161, 61, 0.14);

  --text:        #f3ede2;
  --text-dim:    #b7a991;
  --text-faint:  #80735f;

  --accent:        #e8a13d;
  --accent-bright: #f5cc85;
  --accent-deep:   #b9791f;
  --accent-ink:    #1a1206;

  --maxw: 1180px;
  --ease: cubic-bezier(.22, .68, .28, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
em { font-style: italic; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }

/* ---------- Texture & progress ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-bright));
  z-index: 10000;
  will-change: transform;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(15, 11, 7, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
  transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(18deg) scale(1.05); }
.brand-text {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: .01em;
  position: relative;
  transition: color .25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 100px;
  color: var(--text) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink) !important;
}

/* hamburger */
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: linear-gradient(160deg, #16100a, #0c0905);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-links { display: flex; flex-direction: column; gap: 6px; }
.menu-links a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3.1rem);
  font-weight: 400;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 8px 0;
  color: var(--text);
  transition: color .25s, padding-left .3s var(--ease);
}
.menu-links a:hover { color: var(--accent); padding-left: 10px; }
.menu-num {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .1em;
}
.menu-foot {
  margin-top: 48px;
  font-size: .85rem;
  color: var(--text-faint);
  letter-spacing: .04em;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%; right: -5%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(232,161,61,.20), rgba(232,161,61,.06) 42%, transparent 68%);
  pointer-events: none;
  filter: blur(10px);
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 38px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.hero-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 480;
  font-size: clamp(3rem, 8.4vw, 6.7rem);
  line-height: .98;
  letter-spacing: -.025em;
  margin-bottom: 32px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--text-dim);
  max-width: 30em;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 8px 30px -8px rgba(232,161,61,.5);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px -8px rgba(232,161,61,.65);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* portrait */
.hero-portrait { position: relative; justify-self: center; max-width: 380px; }
.portrait-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  z-index: 2;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15,11,7,.55));
  pointer-events: none;
}
.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(1.04) contrast(1.03);
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  opacity: .42;
  z-index: 1;
}
.portrait-emblem {
  position: absolute;
  left: -34px; bottom: -34px;
  width: 104px; height: 104px;
  border-radius: 50%;
  background: var(--bg);
  padding: 9px;
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.85);
  z-index: 3;
}
.portrait-emblem img { width: 100%; height: 100%; }

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--accent), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--accent-bright);
  animation: cue 2.1s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(300%); }
  100% { transform: translateY(300%); }
}

/* ============================================================
   SHARED SECTION HEADINGS
   ============================================================ */
.section-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.section-label span {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  padding-right: 14px;
  border-right: 1px solid var(--border);
}
.section-title {
  font-family: var(--serif);
  font-weight: 470;
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-intro {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  max-width: 34em;
  margin-bottom: 18px;
}

/* ============================================================
   JOURNEY
   ============================================================ */
.journey { background: var(--bg-soft); }
.journey-body {
  max-width: 38em;
  margin-top: 14px;
}
.journey-body p {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--text-dim);
  margin-bottom: 22px;
}
.journey-body p em { color: var(--text); font-style: italic; }

.stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.02em;
}
.stat-label {
  font-size: .82rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}

/* ============================================================
   DISCIPLINES
   ============================================================ */
.disciplines .section-intro { margin-bottom: 30px; }

.discipline {
  display: grid;
  grid-template-columns: .82fr 1.4fr;
  gap: 56px;
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.discipline:first-of-type { margin-top: 30px; }

.discipline-head {
  position: sticky;
  top: 112px;
  align-self: start;
}
.discipline-num {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(232,161,61,.4);
  display: block;
  margin-bottom: 14px;
}
.discipline-name {
  font-family: var(--serif);
  font-weight: 480;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.discipline-sub {
  display: block;
  font-size: .92rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 10px;
}
.discipline-intro {
  color: var(--text-dim);
  font-size: 1.02rem;
}

/* entries / timeline */
.discipline-entries {
  border-left: 1px solid var(--border);
  padding-left: 0;
}
.entry {
  position: relative;
  padding: 0 0 36px 32px;
  margin-left: -1px;
}
.entry:last-child { padding-bottom: 0; }
.entry::before {
  content: "";
  position: absolute;
  left: -5px; top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(232,161,61,.6);
  transition: transform .3s var(--ease);
}
.entry:hover::before { transform: scale(1.35); }
.entry-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.entry-role {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.entry-role em { color: var(--accent); font-style: italic; }
.entry-date {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 3px;
}
.entry-org {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-faint);
  margin: 7px 0 9px;
}
.entry-desc { color: var(--text-dim); font-size: .98rem; }
.entry-desc em { color: var(--text); font-style: italic; }
.inline-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(232,161,61,.4);
  transition: border-color .25s;
}
.inline-link:hover { border-color: var(--accent); }

/* chips */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chips li {
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-dim);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color .25s, color .25s, background .25s;
}
.chips li:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,161,61,.06);
}

/* ============================================================
   WRITING
   ============================================================ */
.writing { background: var(--bg-soft); }

.book {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: center;
  margin: 48px 0 70px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.book-cover {
  aspect-ratio: 3 / 4.4;
  border-radius: 4px 8px 8px 4px;
  background:
    linear-gradient(150deg, #2a1f12, #14100a);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent-deep);
  box-shadow: 0 28px 56px -22px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.02);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-3deg);
  transition: transform .5s var(--ease);
}
.book:hover .book-cover { transform: rotate(0deg) translateY(-6px); }
.book-cover-kicker {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.book-cover-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.85rem;
  line-height: 1.08;
  color: var(--text);
}
.book-cover-author {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.book-info h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.book-sub {
  color: var(--accent);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 6px 0 16px;
}
.book-info p { color: var(--text-dim); }

/* publications */
.pubs-head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.pub-list { list-style: none; }
.pub {
  display: grid;
  grid-template-columns: 70px 1fr 230px;
  gap: 20px;
  align-items: baseline;
  padding: 18px 12px;
  border-bottom: 1px solid var(--border);
  transition: background .25s, padding-left .3s var(--ease);
}
.pub:hover {
  background: rgba(232,161,61,.04);
  padding-left: 22px;
}
.pub-year {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
}
.pub-title {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
}
.pub-venue {
  font-size: .85rem;
  color: var(--text-faint);
  text-align: right;
  letter-spacing: .02em;
}
.pub-extra { display: none; }
.pub-list.expanded .pub-extra { display: grid; }

.pub-toggle {
  margin-top: 28px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color .25s, background .25s, transform .25s;
}
.pub-toggle::after {
  content: "↓";
  transition: transform .3s var(--ease);
}
.pub-toggle.open::after { transform: rotate(180deg); }
.pub-toggle:hover {
  border-color: var(--accent);
  background: rgba(232,161,61,.06);
}

/* ============================================================
   RECOGNITION
   ============================================================ */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  margin: 44px 0 64px;
}
.honor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 26px;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.honor:hover {
  transform: translateY(-6px);
  border-color: var(--border-soft);
}
.honor-year {
  font-family: var(--serif);
  font-weight: 600;
  font-size: .95rem;
  color: var(--accent);
  letter-spacing: .04em;
}
.honor h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.22;
  margin: 10px 0 10px;
  letter-spacing: -.01em;
}
.honor p { font-size: .92rem; color: var(--text-dim); }
.honor-feature {
  background: linear-gradient(155deg, rgba(232,161,61,.12), var(--surface) 55%);
  border-color: var(--border-soft);
}
.honor-feature h3 { font-size: 1.55rem; }
.honor-feature .honor-year { font-size: 1.05rem; }

/* credentials */
.creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 52px;
}
.cred-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.22rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cred-list { list-style: none; }
.cred-list li {
  font-size: .94rem;
  color: var(--text-dim);
  padding: 9px 0 9px 22px;
  position: relative;
}
.cred-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .8;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  text-align: center;
  background: var(--bg-soft);
  overflow: hidden;
}
.contact .wrap { position: relative; }
.contact-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 620px; height: 620px;
  max-width: 110vw;
  background: radial-gradient(circle, rgba(232,161,61,.16), transparent 66%);
  pointer-events: none;
}
.contact .section-label { justify-content: center; }
.contact-title {
  font-family: var(--serif);
  font-weight: 470;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
.contact-lead {
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  max-width: 30em;
  margin: 0 auto 40px;
}
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 4.6vw, 2.9rem);
  color: var(--accent);
  padding-bottom: 8px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 50% 100%;
  transition: background-size .4s var(--ease), color .25s;
}
.contact-email:hover {
  background-size: 100% 1.5px;
  color: var(--accent-bright);
}
.contact-meta {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 14px 44px;
  flex-wrap: wrap;
}
.contact-meta span {
  font-size: .92rem;
  color: var(--text-faint);
}
.contact-meta strong {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .76rem;
  margin-right: 6px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  background: var(--bg);
}
.footer-inner { display: flex; flex-direction: column; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-mark { width: 56px; height: 56px; border-radius: 50%; }
.footer-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}
.footer-tag {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 3px;
}
.footer-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dim);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-faint);
}
.back-top { color: var(--text-dim); transition: color .25s; }
.back-top:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 54px; }
  .hero-portrait { order: -1; max-width: 300px; }
  .hero-title br { display: none; }
  .discipline { grid-template-columns: 1fr; gap: 30px; }
  .discipline-head { position: static; }
  .creds { grid-template-columns: 1fr 1fr; gap: 32px; }
  .book { grid-template-columns: 180px 1fr; gap: 32px; padding: 30px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .creds { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; gap: 26px; }
  .book-cover { max-width: 200px; transform: rotate(-2deg); }
  .pub { grid-template-columns: 52px 1fr; gap: 6px 14px; }
  .pub-venue { grid-column: 2; text-align: left; }
  .pub:hover { padding-left: 12px; }
  .entry-top { gap: 4px; }
  .section-title br { display: none; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 20px; }
  .hero-inner { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; }
  .portrait-emblem { width: 78px; height: 78px; left: -20px; bottom: -20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
