:root {
  --bg: #000000;
  --bg-soft: #080808;
  --panel: #111214;
  --panel-2: #17181a;
  --text: #ffffff;
  --muted: #c8c8c8;
  --subtle: #8f8f8f;
  --border: rgba(255, 255, 255, 0.18);
  --border-strong: rgba(255, 255, 255, 0.8);
  --accent: #ff6b2b;
  --accent-2: #ff8b4a;
  --max: 1120px;
  --radius: 8px;
  --radius-lg: 18px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  min-width: 320px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 86px 86px,
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 86px 86px;
  opacity: 0.26;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  width: 0;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 107, 43, 0.5);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 14px;
  background: linear-gradient(to bottom, #000 72%, rgba(0, 0, 0, 0));
}

.topic-rail {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 50px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(18px);
}

.rail-link {
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.45rem);
  line-height: 1;
  font-weight: 300;
}

.rail-brand {
  justify-self: start;
}

.rail-right {
  justify-self: end;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px 8px 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.brand-wordmark {
  flex: 1 1 230px;
  color: var(--text);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 26px);
}

.nav-links a {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  padding: 0 16px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
  background: var(--accent);
}

.nav-cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.float-action {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 48px;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: var(--text);
  padding: 0 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  transition: width 220ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.float-action::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 220ms ease;
}

.float-action:hover,
.float-action:focus-visible {
  width: 154px;
  border-color: var(--accent);
  color: var(--bg);
  background: rgba(255, 107, 43, 0.14);
  transform: translateY(-2px);
}

.float-action:hover::before,
.float-action:focus-visible::before {
  width: 100%;
}

.float-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.float-action span {
  opacity: 0;
  white-space: nowrap;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: opacity 160ms ease;
}

.float-action:hover span,
.float-action:focus-visible span {
  opacity: 1;
}

main {
  position: relative;
  z-index: 1;
}

.home-hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
  padding: clamp(46px, 8vw, 96px) 0 46px;
}

.blog-library-hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  gap: clamp(42px, 8vw, 112px);
  align-items: end;
  padding: clamp(64px, 8vw, 104px) 0 clamp(28px, 5vw, 58px);
}

.page-hero,
.about-hero,
.about-section,
.about-gallery,
.about-cta {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.58fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: end;
  padding: clamp(62px, 8vw, 108px) 0 40px;
}

.articles-hero {
  grid-template-columns: 1fr;
}

.page-hero h1,
.about-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7.1vw, 6.2rem);
  line-height: 0.92;
  text-transform: uppercase;
  font-weight: 900;
}

.page-hero p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.library-intro h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.8rem, 6.4vw, 5.8rem);
  line-height: 0.94;
  text-transform: uppercase;
  font-weight: 900;
}

.library-intro p {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.75;
}

.library-summary {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.library-summary span {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  text-stroke: 1px var(--accent);
  font-size: clamp(3.5rem, 6vw, 5.6rem);
  line-height: 0.78;
  font-weight: 900;
}

.library-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-copy h1,
.article-hero h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(3.2rem, 9.8vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hero-copy h1 span {
  display: block;
  margin-bottom: 12px;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
  text-stroke: 1px var(--text);
  font-size: clamp(1.9rem, 5.2vw, 5rem);
  line-height: 0.92;
}

.home-hero .hero-copy h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 6.3vw, 5.8rem);
  line-height: 0.94;
  overflow-wrap: normal;
}

.hero-copy p,
.section-heading p,
.workflow-title p,
.domain-note p,
.article-hero-copy > p,
.article-body p,
.site-footer p {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.75;
}

.hero-copy p {
  max-width: 610px;
  margin: 28px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button,
.copy-button,
.lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  padding: 0 18px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button svg,
.text-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover,
.copy-button:hover,
.lightbox-close:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(255, 107, 43, 0.1);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-primary:hover {
  background: var(--accent);
  color: var(--bg);
}

.hero-stage {
  position: relative;
  min-height: 620px;
}

.hero-frame {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.hero-frame:hover img {
  transform: scale(1.04);
}

.hero-frame-main {
  inset: 32px 72px auto auto;
  width: min(78%, 500px);
  aspect-ratio: 4 / 5;
}

.hero-frame-side {
  inset: auto auto 24px 0;
  width: min(52%, 300px);
  aspect-ratio: 4 / 5;
  opacity: 0.78;
}

.frame-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(0, 0, 0, 0.76);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-arrow {
  position: absolute;
  right: 22px;
  top: 18px;
  width: 220px;
  height: 160px;
  transform: rotate(-8deg);
  border-top: 12px solid var(--accent);
  border-right: 12px solid var(--accent);
  border-radius: 0 44px 0 0;
}

.hero-arrow::after {
  content: "";
  position: absolute;
  right: -15px;
  top: -23px;
  width: 58px;
  height: 58px;
  border-top: 12px solid var(--accent);
  border-right: 12px solid var(--accent);
  transform: rotate(45deg);
  border-radius: 5px;
}

.outline-number {
  position: absolute;
  right: -8px;
  bottom: -42px;
  margin: 0;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.72);
  text-stroke: 2px rgba(255, 255, 255, 0.72);
  font-size: clamp(7rem, 18vw, 15rem);
  line-height: 0.8;
  font-weight: 900;
  pointer-events: none;
}

.article-index,
.workflow-band,
.domain-note,
.next-post {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.article-index {
  padding: 44px 0 96px;
}

.section-heading,
.workflow-title {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: end;
  margin-bottom: 42px;
}

.section-heading h2,
.workflow-title h2,
.domain-note h2,
.gallery-heading h2,
.next-post a {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.5rem);
  line-height: 0.96;
  text-transform: uppercase;
  font-weight: 900;
}

.section-heading p,
.workflow-title p,
.domain-note p {
  margin: 0;
}

.section-heading-compact {
  margin-bottom: 32px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  position: relative;
  isolation: isolate;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.filter-button::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0;
  background: var(--accent);
  transition: height 180ms ease;
  z-index: -1;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.filter-button:hover::before,
.filter-button:focus-visible::before,
.filter-button.is-active::before {
  height: 100%;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
  min-height: 390px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014));
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  animation: cardIn 520ms ease both;
}

.blog-card.is-hidden {
  display: none;
}

.reveal-card:nth-child(2) {
  animation-delay: 90ms;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 43, 0.55);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.07), rgba(255, 107, 43, 0.035));
}

.blog-card-media {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px);
  background: var(--panel);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(10px, 2vw, 18px) 6px;
}

.blog-card-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.blog-card-topline span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.blog-card-topline p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card h2,
.blog-card h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
}

.blog-card-body > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.scan-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}

.scan-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.scan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-list {
  display: grid;
  gap: 20px;
}

.post-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: stretch;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
}

.post-feature-alt {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
}

.post-feature-alt .post-media {
  order: 2;
}

.post-media {
  display: block;
  overflow: hidden;
  min-height: 450px;
  border-radius: calc(var(--radius-lg) - 6px);
  background: var(--panel);
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.post-feature:hover .post-media img {
  transform: scale(1.035);
}

.post-copy {
  align-self: center;
  padding: clamp(10px, 3vw, 34px) 0;
}

.post-number {
  margin: 0 0 14px;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  text-stroke: 1px var(--accent);
  font-size: clamp(5rem, 12vw, 12rem);
  line-height: 0.72;
  font-weight: 900;
}

.post-copy h3 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.1rem, 6vw, 5rem);
  line-height: 0.92;
  text-transform: uppercase;
  font-weight: 900;
}

.post-copy p {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.17rem);
  line-height: 1.65;
}

.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.mini-meta li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.text-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-articles .section-heading {
  align-items: center;
}

.featured-articles .section-heading .text-arrow {
  justify-self: end;
}

.article-list-page {
  padding-top: 24px;
}

.article-tools {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-tools p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-tools strong {
  color: var(--accent);
  font-size: 0.95rem;
}

.article-grid-wide {
  grid-template-columns: 1fr;
}

.article-grid-wide .blog-card {
  min-height: 330px;
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(340px, 0.56fr);
  gap: clamp(46px, 9vw, 130px);
  align-items: start;
  padding: clamp(72px, 9vw, 122px) 0 clamp(96px, 12vw, 160px);
}

.about-title-block {
  position: sticky;
  top: 120px;
}

.about-hero h1 {
  max-width: 620px;
  font-size: clamp(3rem, 6vw, 5.1rem);
  line-height: 1.06;
  text-transform: none;
  font-weight: 700;
}

.about-bio {
  display: grid;
  gap: 28px;
}

.about-bio p {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.08rem, 2.15vw, 1.55rem);
  line-height: 1.44;
  font-weight: 700;
}

.about-bio p + p {
  color: var(--muted);
  font-weight: 500;
}

.about-portrait {
  margin: 12px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 52% 44%;
  filter: saturate(0.95) contrast(1.04);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding: 76px 0;
  border-top: 1px solid var(--border);
}

.about-section h2,
.about-gallery h2,
.about-cta h2 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.6rem);
  line-height: 0.92;
  text-transform: uppercase;
  font-weight: 900;
}

.about-section > div > p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.focus-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--border);
}

.focus-list article {
  padding: clamp(22px, 3vw, 32px);
  background: #060606;
}

.focus-list span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
}

.focus-list h3 {
  margin: 44px 0 12px;
  font-size: clamp(1.35rem, 2.8vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.focus-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.about-gallery {
  padding: 0 0 112px;
  border-top: 1px solid var(--border);
}

.about-gallery .gallery-heading {
  justify-content: center;
  align-items: center;
  margin: 0 0 70px;
  padding-top: clamp(92px, 12vw, 150px);
  text-align: center;
}

.about-gallery .gallery-heading h2 {
  max-width: 520px;
  font-size: clamp(2.45rem, 4.8vw, 4.2rem);
  line-height: 1.12;
  text-transform: none;
  font-weight: 700;
}

.about-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-image-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.33;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  transition: transform 260ms ease, border-color 260ms ease;
}

.about-image-grid img:nth-child(1),
.about-image-grid img:nth-child(2),
.about-image-grid img:nth-child(4),
.about-image-grid img:nth-child(5) {
  aspect-ratio: 1 / 1.33;
}

.about-image-grid img:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 43, 0.6);
}

.about-cta {
  padding: 80px 0 96px;
  border-top: 1px solid var(--border);
}

.about-cta .hero-actions {
  margin-top: 28px;
}

.workflow-band {
  padding: 78px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.workflow-step {
  min-height: 280px;
  padding: clamp(22px, 3vw, 34px);
  background: #060606;
}

.workflow-step span,
.step-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-step h3 {
  margin: 80px 0 16px;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.domain-note {
  padding: 76px 0;
}

.domain-note > div {
  max-width: 860px;
}

.domain-note h2 {
  margin-bottom: 18px;
}

.domain-note strong {
  color: var(--text);
  font-weight: 900;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 46px;
  display: flex;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 70px);
  align-items: flex-start;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 900;
  text-transform: uppercase;
}

.footer-main {
  max-width: 420px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 620px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(255, 107, 43, 0.1);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-socials a:first-child svg {
  fill: currentColor;
  stroke: none;
}

.footer-socials .email-link {
  border-color: transparent;
  background: transparent;
  color: var(--accent-2);
  padding: 10px 0;
  font-size: 0.78rem;
  text-transform: none;
}

.footer-socials .email-link:hover,
.footer-socials .email-link:focus-visible {
  border-color: transparent;
  background: transparent;
  color: var(--text);
}

.article-hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  padding: clamp(68px, 9vw, 112px) 0 78px;
}

.article-hero h1 {
  max-width: 720px;
  font-size: clamp(2.2rem, 4.3vw, 3.8rem);
  line-height: 1;
}

.article-hero-copy > p {
  max-width: 760px;
  margin: 26px 0 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-hero-media {
  margin: 0;
  position: relative;
}

.article-hero-media::before {
  content: "";
  position: absolute;
  inset: 20px -18px -18px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.article-hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.article-layout {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 86px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 13px;
  padding: 18px 0;
}

.toc p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.toc a {
  color: var(--subtle);
  font-size: 0.82rem;
  line-height: 1.45;
  transition: color 160ms ease;
}

.toc a:hover {
  color: var(--text);
}

.article-body {
  max-width: 760px;
}

.lede {
  margin: 0 0 62px;
  padding: 0 0 38px;
  border-bottom: 1px solid var(--border);
  color: var(--text) !important;
  font-size: clamp(1.12rem, 2.2vw, 1.55rem) !important;
  line-height: 1.45 !important;
}

.article-section {
  scroll-margin-top: 108px;
  margin-bottom: 82px;
}

.article-section h2 {
  margin: 14px 0 20px;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.article-section p {
  margin: 0 0 18px;
}

.wide-image {
  margin: 34px 0 0;
}

.wide-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: zoom-in;
}

.prompt-card {
  margin: 34px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
}

.prompt-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 18px 0;
}

.prompt-topline h3 {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.copy-button {
  min-height: 36px;
  padding: 0 15px;
  font-size: 0.73rem;
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: var(--muted);
  white-space: pre-wrap;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.6;
}

blockquote {
  margin: 34px 0;
  padding: 24px 0 24px 26px;
  border-left: 4px solid var(--accent);
  color: var(--text);
  font-size: clamp(1.12rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  font-weight: 800;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.checklist label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  line-height: 1.45;
}

.checklist input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.gallery-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.gallery-heading h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
}

.next-post {
  padding: 34px 0 78px;
  border-top: 1px solid var(--border);
}

.next-post span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.next-post a {
  display: inline-block;
  max-width: 880px;
}

.lightbox {
  width: min(92vw, 900px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #050505;
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.86);
}

.lightbox img {
  max-height: 82vh;
  margin: 12px auto 0;
  border-radius: var(--radius);
}

.lightbox-close {
  min-height: 38px;
  padding: 0 16px;
}

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

@media (max-width: 980px) {
  .home-hero,
  .blog-library-hero,
  .page-hero,
  .about-hero,
  .about-section,
  .article-hero,
  .section-heading,
  .workflow-title,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .about-title-block {
    position: static;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: 610px;
  }

  .post-feature,
  .post-feature-alt {
    grid-template-columns: 1fr;
  }

  .post-feature-alt .post-media {
    order: initial;
  }

  .post-media {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .blog-grid,
  .blog-card {
    grid-template-columns: 1fr;
  }

  .article-grid-wide .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card {
    min-height: 0;
  }

  .blog-card-media {
    aspect-ratio: 4 / 3;
  }

  .toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 0 28px;
  }

  .toc p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-header,
  .home-hero,
  .blog-library-hero,
  .page-hero,
  .about-hero,
  .about-section,
  .about-gallery,
  .about-cta,
  .article-index,
  .workflow-band,
  .domain-note,
  .next-post,
  .site-footer,
  .article-hero,
  .article-layout {
    width: min(100% - 26px, var(--max));
  }

  .site-header {
    padding-top: 14px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    border-radius: 24px;
    padding: 12px;
  }

  .brand-wordmark {
    min-width: 0;
    font-size: 0.86rem;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 0;
  }

  .nav-links a {
    flex: 0 0 auto;
    font-size: 0.72rem;
  }

  .nav-cta {
    min-height: 36px;
    padding: 0 12px;
  }

  .topic-rail {
    min-height: 44px;
    padding: 0 14px;
  }

  .rail-link {
    font-size: 0.98rem;
  }

  .home-hero {
    padding-top: 42px;
  }

  .blog-library-hero {
    padding-top: 46px;
  }

  .page-hero {
    padding-top: 46px;
  }

  .library-intro h1,
  .page-hero h1,
  .about-hero h1 {
    font-size: clamp(2.15rem, 11vw, 2.85rem);
    line-height: 1;
  }

  .library-summary {
    padding: 18px;
  }

  .hero-copy h1,
  .article-hero h1 {
    line-height: 0.92;
  }

  .article-hero h1 {
    font-size: clamp(1.9rem, 8.8vw, 2.25rem);
    line-height: 1.05;
  }

  .hero-actions,
  .site-footer,
  .gallery-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .floating-actions {
    right: 13px;
    bottom: 13px;
  }

  .float-action {
    width: 44px;
    min-height: 44px;
    padding: 0 12px;
  }

  .float-action:hover,
  .float-action:focus-visible {
    width: 128px;
  }

  .blog-card {
    padding: 12px;
  }

  .blog-card-media {
    aspect-ratio: 4 / 5;
  }

  .blog-card h3 {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .blog-card h2 {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .article-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-articles .section-heading .text-arrow {
    justify-self: start;
  }

  .about-bio p {
    font-size: clamp(1.05rem, 5.6vw, 1.36rem);
    line-height: 1.48;
  }

  .about-section {
    padding: 58px 0;
  }

  .focus-list h3 {
    margin-top: 34px;
  }

  .about-gallery .gallery-heading {
    align-items: center;
  }

  .about-image-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-image-grid img {
    min-height: 0;
    aspect-ratio: 1 / 1.33;
  }

  .hero-stage {
    min-height: 500px;
  }

  .hero-frame-main {
    inset: 10px 0 auto auto;
    width: 78%;
  }

  .hero-frame-side {
    width: 48%;
    bottom: 8px;
  }

  .hero-arrow {
    width: 132px;
    height: 96px;
    border-top-width: 8px;
    border-right-width: 8px;
  }

  .hero-arrow::after {
    right: -11px;
    top: -17px;
    width: 38px;
    height: 38px;
    border-top-width: 8px;
    border-right-width: 8px;
  }

  .outline-number {
    right: 0;
    bottom: -20px;
    font-size: 7rem;
  }

  .post-feature {
    padding: 12px;
  }

  .post-copy {
    padding: 10px 6px 12px;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .workflow-step {
    min-height: 230px;
  }

  .workflow-step h3 {
    margin-top: 54px;
  }

  .article-hero-media::before {
    inset: 12px -8px -8px 8px;
  }

  .toc {
    grid-template-columns: 1fr;
  }

  .prompt-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

}
