.author-page {
  --author-surface: #15110d;
  --author-surface-2: #1c1711;
  --author-rule: rgba(201, 163, 107, 0.44);
  background: #0c0a08;
}

.author-page .nav { background: rgba(7, 6, 5, 0.9); }
.author-page .menu { gap: 34px; }

.author-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
}
.author-breadcrumbs a:hover { color: var(--accent-2); }

.author-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--author-rule);
  background:
    radial-gradient(42% 52% at 82% 28%, rgba(201, 163, 107, 0.08), transparent 72%),
    #0c0a08;
}
.author-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  gap: 56px;
  align-items: center;
  min-height: 720px;
  padding-top: 42px;
  padding-bottom: 46px;
}
.author-hero__copy { position: relative; z-index: 2; }
.author-hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(48px, 5.3vw, 78px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.author-hero h1 span { color: var(--cream); }
.author-hero h1::after {
  content: "";
  display: block;
  width: 106px;
  height: 2px;
  margin-top: 30px;
  background: var(--accent);
}
.author-hero__lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(244, 239, 230, 0.78);
  font-size: 20px;
  line-height: 1.65;
}
.author-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 42px 0 0;
  max-width: 680px;
}
.author-proof div { min-height: 82px; padding: 0 24px; border-left: 1px solid var(--author-rule); }
.author-proof div:first-child { padding-left: 0; border-left: 0; }
.author-proof dt { color: var(--accent-2); font-family: var(--serif); font-size: 34px; line-height: 1; }
.author-proof dd { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.author-portrait {
  position: relative;
  align-self: end;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--author-rule);
  border-radius: 20px 20px 0 0;
  background: #090806;
  box-shadow: 0 36px 92px rgba(0, 0, 0, 0.48);
}
.author-portrait img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  object-position: 50% 17%;
}
.author-focus {
  display: flex;
  align-items: center;
  gap: 18px 28px;
  min-height: 84px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.author-focus strong { color: var(--accent-2); font-family: var(--serif); font-size: 19px; font-weight: 600; }
.author-focus span { position: relative; padding-left: 16px; }
.author-focus span::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border: 1px solid var(--accent); transform: rotate(45deg); }

.author-section { padding: 104px 0; border-bottom: 1px solid var(--line-soft); background: #0c0a08; }
.author-section--credentials { background: linear-gradient(180deg, #12100c, #0e0c09); }
.author-title {
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.author-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 26px;
  background: linear-gradient(90deg, var(--accent), rgba(201, 163, 107, 0.08));
}
.author-heading { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.62fr); gap: 80px; align-items: end; margin-bottom: 64px; }
.author-heading--wide { grid-template-columns: minmax(0, 1fr) minmax(420px, 0.7fr); }
.author-heading p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.credentials-grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr); gap: 66px; align-items: center; }
.credential-list { margin: 34px 0 0; border-top: 1px solid var(--author-rule); }
.credential-list div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 19px 0; border-bottom: 1px solid var(--line-soft); }
.credential-list dt { color: var(--muted); font-size: 13px; }
.credential-list dd { margin: 0; color: var(--cream); font-size: 17px; line-height: 1.5; }
.document-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 54px;
  margin-top: 24px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent-2);
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.document-link:hover { background: var(--accent); color: #171109; }
.document-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.diploma-frame { position: relative; display: block; padding: 14px; border: 1px solid var(--author-rule); border-radius: 16px; background: #19150f; box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36); }
.diploma-frame img { width: 100%; height: auto; border-radius: 8px; }
.diploma-frame > span { position: absolute; right: 26px; top: 26px; padding: 9px 12px; border-radius: 8px; background: rgba(12, 10, 8, 0.92); color: var(--accent-2); font-size: 12px; }

.author-timeline { list-style: none; margin: 0; padding: 0; }
.author-timeline li { position: relative; display: grid; grid-template-columns: 210px 1fr; gap: 50px; padding: 28px 0 28px 34px; border-top: 1px solid var(--line-soft); }
.author-timeline li:last-child { border-bottom: 1px solid var(--line-soft); }
.author-timeline li::before { content: ""; position: absolute; left: 2px; top: 39px; width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; background: #0c0a08; }
.author-timeline li::after { content: ""; position: absolute; left: 7px; top: 52px; bottom: -40px; width: 1px; background: var(--author-rule); }
.author-timeline li:last-child::after { display: none; }
.author-timeline time { color: var(--accent-2); font-family: var(--serif); font-size: 23px; }
.author-timeline h3 { margin: 0; font-family: var(--serif); color: var(--cream); font-size: 24px; font-weight: 600; }
.author-timeline p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.author-timeline .author-timeline__org { color: var(--accent-2); font-size: 13px; }
.author-timeline .is-current::before { background: var(--accent); box-shadow: 0 0 0 6px rgba(201, 163, 107, 0.12); }

.author-section--cases { background: #090806; }
.case-flagship {
  display: grid;
  grid-template-columns: minmax(235px, 0.58fr) minmax(0, 1.42fr);
  border: 1px solid var(--accent);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #211a12, #15110d);
}
.case-flagship__header { padding: 34px 30px; border-right: 1px solid var(--author-rule); }
.case-label { display: block; color: var(--accent-2); font-size: 12px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; }
.case-flagship h3, .case-file h3 { margin: 17px 0 0; color: var(--accent-2); font-family: var(--serif); font-size: 30px; font-weight: 600; white-space: nowrap; }
.case-flagship .case-path { margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.case-details { margin: 0; }
.case-details div { padding: 22px 0; border-top: 1px solid var(--author-rule); }
.case-details div:first-child { border-top: 0; }
.case-details dt { margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.4; letter-spacing: 0.09em; text-transform: uppercase; }
.case-details dd { margin: 0; color: var(--cream); font-size: 14px; line-height: 1.7; }
.case-details strong { color: var(--accent-2); font-weight: 600; }
.case-flagship > .case-details { padding: 12px 32px; }
.case-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.case-file { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--author-rule); border-radius: 14px; background: linear-gradient(145deg, rgba(31, 25, 18, 0.72), rgba(17, 14, 11, 0.92)); }
.case-file--owner-verified { border-color: rgba(201, 163, 107, 0.58); }
.case-file__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; min-height: 86px; padding-bottom: 22px; border-bottom: 1px solid var(--author-rule); }
.case-file h3 { font-size: 25px; }
.case-outcome { flex: 0 0 auto; max-width: 170px; padding: 7px 10px; border: 1px solid rgba(201, 163, 107, 0.36); border-radius: 999px; color: var(--accent-2); font-size: 11px; line-height: 1.35; text-align: center; }
.case-file .case-details { flex: 1; }
.case-source { margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--author-rule); color: var(--muted); font-size: 12px; line-height: 1.65; }
.case-source strong { color: var(--accent-2); font-weight: 500; }
.case-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 56px; margin-top: 34px; }
.case-footer p { max-width: 700px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.case-footer a { flex: 0 0 auto; padding-bottom: 7px; border-bottom: 1px solid var(--accent); color: var(--accent-2); font-size: 14px; }

.publication-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.52fr); gap: 70px; }
.publication-list { list-style: none; margin: 38px 0 0; padding: 0; }
.publication-list li { border-bottom: 1px solid var(--author-rule); }
.publication-list a { display: grid; grid-template-columns: 64px 1fr 28px; gap: 20px; align-items: center; min-height: 92px; padding: 10px 0; transition: color 0.2s, padding-left 0.2s; }
.publication-list a:hover { padding-left: 10px; color: var(--accent-2); }
.publication-list span { color: var(--accent-2); font-family: var(--serif); font-size: 24px; }
.publication-list strong { font-size: 18px; line-height: 1.45; font-weight: 500; }
.publication-list i { color: var(--accent-2); font-style: normal; font-size: 24px; }
.publication-policy { margin: 30px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.publication-nav { align-self: center; border-left: 1px solid var(--author-rule); padding-left: 36px; }
.publication-nav a { display: flex; justify-content: space-between; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--author-rule); color: var(--accent-2); font-family: var(--serif); font-size: 21px; }

.author-section--ai { background: linear-gradient(180deg, #100d0a, #0c0a08); }
.ai-balance { display: grid; grid-template-columns: 1fr 1fr; margin-top: 42px; border-top: 1px solid var(--author-rule); border-bottom: 1px solid var(--author-rule); }
.ai-balance > div { padding: 36px 8% 36px 0; }
.ai-balance > div + div { padding-left: 8%; border-left: 1px solid var(--author-rule); }
.ai-balance h3 { margin: 0; color: var(--accent-2); font-family: var(--serif); font-size: 26px; font-weight: 600; }
.ai-balance ul { margin: 22px 0 0; padding-left: 22px; color: var(--cream); }
.ai-balance li { margin: 13px 0; padding-left: 6px; font-size: 16px; line-height: 1.55; }
.ai-balance li::marker { color: var(--accent); }
.ai-note { margin: 28px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

.author-contact { padding: 70px 0; background: #070605; }
.author-contact__inner { padding: 48px; border: 1px solid var(--accent); border-radius: 16px; background: linear-gradient(135deg, #17120d, #0d0b08); }
.author-contact h2 { margin: 0; max-width: 950px; font-family: var(--serif); font-size: clamp(38px, 4.5vw, 62px); line-height: 1.08; font-weight: 600; }
.author-contact__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.author-contact__actions .btn { justify-content: center; }
.author-services { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 1px solid var(--author-rule); border-bottom: 1px solid var(--author-rule); }
.author-services a { display: flex; justify-content: space-between; gap: 18px; padding: 22px; color: var(--accent-2); border-left: 1px solid var(--author-rule); font-size: 13px; line-height: 1.45; }
.author-services a:first-child { border-left: 0; }
.author-disclaimer { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

@media (max-width: 1100px) {
  .author-page .menu { gap: 24px; }
  .author-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr); gap: 36px; }
  .author-portrait img { height: 560px; }
  .credentials-grid { grid-template-columns: 1fr; }
  .diploma-frame { max-width: 840px; }
  .case-ledger { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .author-page .menu { gap: 0; }
  .author-page .nav-toggle:checked ~ .menu { max-height: 430px; }
  .author-hero__grid { grid-template-columns: 1fr; min-height: auto; padding-top: 64px; }
  .author-portrait { max-width: 720px; justify-self: stretch; }
  .author-portrait img { height: 660px; }
  .author-heading, .author-heading--wide { grid-template-columns: 1fr; gap: 26px; }
  .publication-grid { grid-template-columns: 1fr; }
  .publication-nav { border-left: 0; border-top: 1px solid var(--author-rule); padding: 10px 0 0; }
}

@media (max-width: 760px) {
  .author-breadcrumbs { padding-top: 18px; }
  .author-hero__grid { gap: 34px; padding-top: 44px; }
  .author-hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .author-hero__lead { font-size: 17px; }
  .author-proof { grid-template-columns: 1fr; gap: 18px; }
  .author-proof div, .author-proof div:first-child { min-height: auto; padding: 0 0 18px; border-left: 0; border-bottom: 1px solid var(--line-soft); }
  .author-portrait img { height: min(124vw, 590px); }
  .author-focus { padding: 22px 0; }
  .author-section { padding: 72px 0; }
  .author-title { font-size: 40px; }
  .credential-list div { grid-template-columns: 1fr; gap: 7px; }
  .document-link { width: 100%; }
  .diploma-frame { padding: 8px; border-radius: 10px; }
  .diploma-frame > span { right: 16px; top: 16px; }
  .author-timeline li { grid-template-columns: 1fr; gap: 14px; padding-left: 28px; }
  .author-timeline time { font-size: 21px; }
  .case-flagship { grid-template-columns: 1fr; }
  .case-flagship__header { padding: 28px 24px; border-right: 0; border-bottom: 1px solid var(--author-rule); }
  .case-flagship > .case-details { padding: 4px 24px; }
  .case-file { padding: 24px; }
  .case-file__header { display: block; min-height: 0; }
  .case-outcome { display: inline-block; max-width: none; margin-top: 18px; }
  .case-footer { flex-direction: column; gap: 24px; }
  .publication-list a { grid-template-columns: 48px 1fr 22px; gap: 12px; min-height: 102px; }
  .publication-list strong { font-size: 16px; }
  .ai-balance { grid-template-columns: 1fr; }
  .ai-balance > div, .ai-balance > div + div { padding: 30px 0; border-left: 0; }
  .ai-balance > div + div { border-top: 1px solid var(--author-rule); }
  .author-contact__inner { padding: 32px 24px; }
  .author-contact__actions, .author-services { grid-template-columns: 1fr; }
  .author-services a, .author-services a:first-child { border-left: 0; border-top: 1px solid var(--author-rule); padding: 18px 0; }
  .author-services a:first-child { border-top: 0; }
}

@media (max-width: 420px) {
  .author-hero h1 { font-size: 39px; }
  .author-title { font-size: 35px; }
  .author-contact h2 { font-size: 35px; }
  .document-link { gap: 14px; padding: 12px 15px; line-height: 1.35; }
  .diploma-frame > span { position: static; display: block; margin-top: 10px; padding: 0; background: none; }
}
