:root {
  --academy-bg: #0a0b0d;
  --academy-surface: #111317;
  --academy-surface-raised: #171a1f;
  --academy-paper: #f2f0ea;
  --academy-ink: #f7f7f4;
  --academy-muted: #9ea4ad;
  --academy-line: rgba(255, 255, 255, 0.11);
  --academy-orange: #ff6a00;
  --academy-orange-soft: #ff9a5c;
  --academy-max: 1560px;
  --academy-reading: 760px;
  --academy-radius: 18px;
  color-scheme: dark;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  background: var(--academy-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 76% -10%, rgba(255, 104, 29, 0.08), transparent 30rem),
    var(--academy-bg);
  color: var(--academy-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 8px;
  content: "";
  pointer-events: none;
}

a { color: inherit; }
button, input { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--academy-orange);
  outline-offset: 4px;
}

.academy-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--academy-paper);
  color: #111317;
}

.academy-skip:focus { transform: translateY(0); }

.academy-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  min-height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid var(--academy-line);
  padding-right: max(clamp(18px, 2.4vw, 42px), env(safe-area-inset-right));
  padding-left: max(clamp(18px, 2.4vw, 42px), env(safe-area-inset-left));
  background: rgba(10, 11, 13, 0.88);
  backdrop-filter: blur(18px) saturate(130%);
}

.academy-brand {
  display: inline-flex;
  align-items: baseline;
  width: max-content;
  gap: 13px;
  color: var(--academy-ink);
  text-decoration: none;
}

.academy-wordmark {
  font-size: 1.62rem;
  font-weight: 900;
  letter-spacing: -0.075em;
}

.academy-wordmark span { color: var(--academy-orange); }

.academy-brand-label {
  color: var(--academy-orange-soft);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.academy-primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--academy-line);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.035);
}

.academy-primary-nav a {
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--academy-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.academy-primary-nav a:hover,
.academy-primary-nav a[aria-current="page"] {
  background: rgba(255, 106, 0, 0.12);
  color: var(--academy-orange-soft);
}

.academy-primary-nav a[aria-current="page"] {
  background: var(--academy-orange);
  color: #111214;
}

.academy-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.academy-gallery-link {
  border: 1px solid var(--academy-line);
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: var(--academy-ink);
  font-size: 0.78rem;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.academy-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: rgba(255, 104, 29, 0.36);
  background: rgba(255, 106, 0, 0.08);
  color: var(--academy-orange-soft);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.academy-gallery-link:hover,
.academy-gallery-link:focus-visible {
  border-color: var(--academy-orange);
  background: var(--academy-orange);
  color: #111214;
  outline: none;
  transform: translateY(-1px);
}

.academy-arrow-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: inherit;
}

.academy-empty a {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--academy-orange);
  color: #160b06;
  font-weight: 820;
  text-decoration: none;
}

.academy-root {
  width: min(calc(100% - clamp(30px, 4vw, 72px)), var(--academy-max));
  min-height: 65vh;
  margin: 0 auto;
}

.academy-loading {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  padding: 60px 0;
}

.academy-loading span {
  min-height: 430px;
  border-radius: var(--academy-radius);
  background: linear-gradient(100deg, #111317 20%, #1b1e24 40%, #111317 60%);
  background-size: 200% 100%;
  animation: academy-shimmer 1.4s linear infinite;
}

.academy-loading span:nth-child(n+2) { min-height: 280px; }

@keyframes academy-shimmer { to { background-position-x: -200%; } }

.academy-landing-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  align-items: end;
  gap: 40px;
  padding: clamp(56px, 7vw, 112px) 0 clamp(38px, 5vw, 76px);
}

.academy-kicker {
  margin: 0 0 18px;
  color: var(--academy-orange);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.academy-landing-head h1 {
  max-width: 960px;
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3.1rem, 7vw, 7.8rem);
  font-stretch: condensed;
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.87;
  text-wrap: balance;
}

.academy-landing-head h1 em {
  color: var(--academy-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.academy-landing-intro {
  max-width: 420px;
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--academy-orange);
  color: var(--academy-muted);
  font-size: clamp(0.98rem, 1.3vw, 1.15rem);
}

.academy-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.65fr);
  min-height: min(66vw, 680px);
  border: 1px solid var(--academy-line);
  border-radius: var(--academy-radius);
  background: var(--academy-surface);
  overflow: hidden;
}

.academy-feature-media,
.academy-card-media {
  position: relative;
  overflow: hidden;
  background: #1a1c20;
}

.academy-feature-media img,
.academy-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}

.academy-feature:hover .academy-feature-media img,
.academy-card:hover .academy-card-media img { transform: scale(1.018); }

.academy-feature-media::after,
.academy-card-media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  content: "";
  pointer-events: none;
}

.academy-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 64px);
}

.academy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--academy-muted);
  font-size: 0.71rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.academy-meta strong { color: var(--academy-orange-soft); }

.academy-feature h2 {
  margin: 30px 0 18px;
  font-size: clamp(2.2rem, 4.4vw, 5.4rem);
  font-weight: 820;
  letter-spacing: -0.065em;
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.academy-feature p {
  margin: 0;
  color: var(--academy-muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.academy-read-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  margin-top: 28px;
  border-bottom: 1px solid var(--academy-orange);
  padding: 0 0 5px;
  color: var(--academy-ink);
  font-size: 0.82rem;
  font-weight: 820;
  text-decoration: none;
}

.academy-section {
  padding: clamp(62px, 8vw, 118px) 0 0;
}

.academy-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  border-top: 1px solid var(--academy-line);
  padding-top: 18px;
}

.academy-section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 3rem);
  letter-spacing: -0.04em;
}

.academy-section-head span {
  color: var(--academy-muted);
  font-size: 0.76rem;
}

.academy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.academy-card {
  min-width: 0;
  border-bottom: 1px solid var(--academy-line);
  padding-bottom: 22px;
}

.academy-card-media {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}

.academy-card-body { padding-top: 16px; }

.academy-card h3 {
  margin: 12px 0 10px;
  font-size: clamp(1.18rem, 1.7vw, 1.65rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.academy-card h3 a { text-decoration: none; }
.academy-card h3 a:hover { color: var(--academy-orange-soft); }

.academy-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--academy-muted);
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.academy-topics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border: 1px solid var(--academy-line);
  border-radius: var(--academy-radius);
  background: var(--academy-line);
  overflow: hidden;
}

.academy-topic {
  min-height: 190px;
  padding: 24px;
  background: var(--academy-surface);
  text-decoration: none;
  transition: background 180ms ease;
}

.academy-topic:hover { background: var(--academy-surface-raised); }

.academy-topic span {
  display: block;
  color: var(--academy-orange);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.academy-topic strong {
  display: block;
  margin-top: 54px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.academy-empty {
  display: grid;
  min-height: 52vh;
  place-items: center;
  padding: 80px 20px;
  text-align: center;
}

.academy-empty div { max-width: 560px; }
.academy-empty h1 { margin: 0 0 16px; font-size: clamp(2.4rem, 6vw, 5.4rem); letter-spacing: -0.06em; line-height: 0.96; }
.academy-empty p { margin: 0 0 28px; color: var(--academy-muted); }

.academy-article-shell { padding: clamp(44px, 7vw, 104px) 0 0; }

.academy-article-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  align-items: end;
  gap: clamp(30px, 6vw, 100px);
  max-width: 1260px;
  margin: 0 auto clamp(34px, 5vw, 70px);
}

.academy-breadcrumbs {
  margin-bottom: 22px;
  color: var(--academy-muted);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.academy-breadcrumbs a { color: var(--academy-orange-soft); text-decoration: none; }

.academy-article-head h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 7.2rem);
  font-weight: 840;
  letter-spacing: -0.075em;
  line-height: 0.91;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.academy-article-deck {
  margin: 0 0 26px;
  color: var(--academy-muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.academy-article-cover {
  max-width: var(--academy-max);
  margin: 0 auto;
  border-radius: var(--academy-radius);
  overflow: hidden;
}

.academy-article-cover img {
  width: 100%;
  max-height: min(72vh, 920px);
  object-fit: cover;
}

.academy-reading-layout {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, var(--academy-reading)) minmax(180px, 260px);
  justify-content: center;
  gap: clamp(28px, 5vw, 82px);
  padding: clamp(54px, 8vw, 120px) 0;
}

.academy-toc {
  position: sticky;
  top: 106px;
  align-self: start;
  border-top: 1px solid var(--academy-line);
  padding-top: 15px;
}

.academy-toc strong,
.academy-article-aside > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--academy-muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.academy-toc a {
  display: block;
  border-left: 1px solid var(--academy-line);
  padding: 7px 0 7px 13px;
  color: var(--academy-muted);
  font-size: 0.76rem;
  text-decoration: none;
}

.academy-toc a.active { border-color: var(--academy-orange); color: var(--academy-ink); }

.academy-article-body {
  min-width: 0;
  color: #dddeda;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
  line-height: 1.82;
}

.academy-article-body > :first-child { margin-top: 0; }

.academy-article-body h2,
.academy-article-body h3 {
  scroll-margin-top: 110px;
  color: var(--academy-ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.academy-article-body h2 { margin: 2.7em 0 0.7em; font-size: clamp(2rem, 3.6vw, 3.5rem); }
.academy-article-body h3 { margin: 2.2em 0 0.65em; font-size: clamp(1.45rem, 2.4vw, 2.15rem); }
.academy-article-body p { margin: 0 0 1.35em; }
.academy-article-body ul { margin: 0 0 1.5em; padding-left: 1.2em; }
.academy-article-body li { margin-bottom: 0.5em; padding-left: 0.3em; }
.academy-article-body a { color: var(--academy-orange-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.academy-article-body img { width: 100%; margin: 2em 0 0.7em; border-radius: 12px; }
.academy-video {
  position: relative;
  width: 100%;
  margin: 2.2em 0;
  border: 1px solid var(--academy-line);
  border-radius: 14px;
  background: #050608;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.academy-video iframe,
.academy-direct-video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.academy-direct-video {
  margin: 2.2em 0;
  border-radius: 14px;
  background: #050608;
  aspect-ratio: 16 / 9;
}

.academy-media-error {
  border-left: 2px solid var(--academy-orange);
  padding-left: 14px;
  color: var(--academy-muted);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.88em;
}
.academy-article-body blockquote { margin: 2em 0; border-left: 2px solid var(--academy-orange); padding: 0.3em 0 0.3em 1.3em; color: var(--academy-ink); font-size: 1.18em; }
.academy-article-body code { border-radius: 5px; padding: 0.12em 0.35em; background: #1c1f24; font-family: Consolas, monospace; font-size: 0.82em; }

.academy-prompt-block {
  position: relative;
  margin: 2.2em 0;
  border: 1px solid rgba(255, 104, 29, 0.35);
  border-radius: 14px;
  padding: 48px 20px 20px;
  background: #111317;
  color: #d9dce2;
  font-family: Consolas, "Cascadia Code", monospace;
  font-size: 0.82em;
  line-height: 1.7;
  white-space: pre-wrap;
}

.academy-prompt-block::before {
  position: absolute;
  top: 16px;
  left: 20px;
  color: var(--academy-orange);
  content: "PROMPT ANATOMY";
  font-family: "Segoe UI", sans-serif;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.academy-copy-prompt {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--academy-line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #1b1e24;
  color: var(--academy-ink);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.66rem;
  font-weight: 780;
  cursor: pointer;
}

.academy-article-aside {
  position: sticky;
  top: 106px;
  align-self: start;
  border-top: 1px solid var(--academy-line);
  padding-top: 15px;
}

.academy-aside-card { display: block; margin-bottom: 20px; text-decoration: none; }
.academy-aside-card img { width: 100%; aspect-ratio: 4 / 3; border-radius: 9px; object-fit: cover; }
.academy-aside-card span { display: block; margin-top: 9px; font-size: 0.78rem; font-weight: 720; line-height: 1.3; }

.academy-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 40px), var(--academy-max));
  min-height: 160px;
  margin: 90px auto 0;
  border-top: 1px solid var(--academy-line);
  gap: 30px;
  color: var(--academy-muted);
  font-size: 0.74rem;
}

.academy-footer p { margin: 0; text-align: center; }
.academy-footer nav { display: flex; justify-content: flex-end; gap: 18px; }
.academy-footer nav a { text-decoration: none; }
.academy-footer nav a:hover { color: var(--academy-ink); }

@media (max-width: 1280px) {
  .academy-reading-layout { grid-template-columns: minmax(150px, 210px) minmax(0, var(--academy-reading)); }
  .academy-article-aside { display: none; }
}

@media (max-width: 1040px) {
  .academy-header { grid-template-columns: 1fr auto; }
  .academy-primary-nav { display: none; }
  .academy-landing-head { grid-template-columns: 1fr; }
  .academy-landing-intro { max-width: 620px; }
  .academy-topics { grid-template-columns: repeat(3, 1fr); }
  .academy-reading-layout { grid-template-columns: minmax(0, var(--academy-reading)); }
  .academy-toc { display: none; }
}

@media (max-width: 760px) {
  .academy-header { min-height: 62px; padding: 0 14px; }
  .academy-brand { gap: 9px; }
  .academy-wordmark { font-size: 1.4rem; }
  .academy-brand-label { font-size: 0.55rem; }
  .academy-gallery-link { padding-inline: 12px; }
  .academy-root { width: min(calc(100% - 28px), var(--academy-max)); }
  .academy-landing-head { gap: 24px; padding-top: 48px; }
  .academy-landing-head h1 { font-size: clamp(3rem, 17vw, 5.2rem); }
  .academy-feature { grid-template-columns: 1fr; min-height: 0; }
  .academy-feature-media { aspect-ratio: 4 / 3; }
  .academy-feature-copy { min-height: 360px; }
  .academy-grid { grid-template-columns: 1fr; gap: 32px; }
  .academy-card { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 14px; }
  .academy-card-media { aspect-ratio: 4 / 3; }
  .academy-card-body { padding-top: 0; }
  .academy-card h3 { margin-top: 8px; }
  .academy-card p { display: none; }
  .academy-topics { grid-template-columns: 1fr 1fr; }
  .academy-topic { min-height: 150px; }
  .academy-topic strong { margin-top: 34px; }
  .academy-article-head { grid-template-columns: 1fr; gap: 24px; }
  .academy-article-head h1 { font-size: clamp(2.8rem, 14vw, 5.2rem); }
  .academy-article-cover { border-radius: 12px; }
  .academy-reading-layout { display: block; padding-top: 50px; }
  .academy-article-aside { position: static; margin-top: 70px; }
  .academy-aside-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .academy-footer { grid-template-columns: 1fr; padding: 38px 0; text-align: center; }
  .academy-brand-footer { margin: auto; }
  .academy-footer nav { justify-content: center; }
}

@media (max-width: 460px) {
  .academy-brand-label { display: none; }
  .academy-gallery-link { font-size: 0.7rem; }
  .academy-topics { grid-template-columns: 1fr; }
  .academy-topic { min-height: 118px; }
  .academy-topic strong { margin-top: 20px; }
  .academy-aside-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
