/* ============================================================
   TDK — shared dark design system for subpages (Geist)
   Scoped under .aw wrapper; body tinted only when .aw present
   ============================================================ */

body:has(.aw) {
  background: #0a0a0e;
  overflow-x: hidden;
}

body:has(.aw) .page-content {
  padding-top: 0;
}

body:has(.aw) .site-footer {
  background: #0a0a0e;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ---------------- No-lock-in page primitives ---------------- */
.aw-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82vh;
  overflow: hidden;
  isolation: isolate;
  background: #0a0a0e;
}

.aw-hero-bg,
.aw-hero-wash,
.aw-hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aw-hero-bg {
  z-index: -3;
  background-position: center;
  background-size: cover;
  filter: grayscale(1) contrast(1.15) brightness(0.48);
  opacity: 0.45;
  transform: scale(1.04);
}

.aw-hero-wash {
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(10, 10, 14, 0.2), #0a0a0e 88%),
    linear-gradient(180deg, rgba(10, 10, 14, 0.25), #0a0a0e 95%);
}

.aw-hero-grain {
  z-index: -1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.aw-hero-inner {
  position: relative;
  z-index: 1;
  width: min(80rem, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.aw-hero h1 {
  max-width: 72rem;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5.5vw, 5.75rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.aw-hero h1 .aw-accent {
  background: linear-gradient(100deg, #b79aff 0%, #7c4dff 60%, #4dd0ff 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aw-hero-sub {
  color: rgba(236, 236, 241, 0.68);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 300;
  line-height: 1.65;
}

.aw-hero-sub strong {
  color: #fff;
  font-weight: 600;
}

.aw-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.aw-marquee-section {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0d13;
  padding: 1.1rem 0;
}

.aw-marquee {
  display: flex;
  width: max-content;
  animation: aw-marquee-loop 34s linear infinite;
}

.aw-marquee-track {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.aw-marquee-item {
  color: rgba(236, 236, 241, 0.62);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  white-space: nowrap;
}

.aw-marquee-dot {
  margin: 0 1.5rem;
  color: #9b77ff;
}

@keyframes aw-marquee-loop {
  to {
    transform: translateX(-50%);
  }
}

.aw-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(13rem, auto);
  grid-auto-flow: dense;
  gap: 1rem;
}

.aw-bento .aw-card-a {
  grid-column: span 2;
  grid-row: span 2;
}

.aw-bento .aw-card-b,
.aw-bento .aw-card-c {
  grid-column: span 2;
}

.aw-bento .aw-card-e {
  grid-column: 1 / -1;
}

@media (max-width: 1000px) {
  .aw-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aw-bento .aw-card-a,
  .aw-bento .aw-card-b,
  .aw-bento .aw-card-c,
  .aw-bento .aw-card-e {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .aw-hero {
    min-height: 0;
    padding-top: 9.5rem !important;
    padding-bottom: 5rem !important;
  }

  .aw-hero-inner {
    padding-inline: 1.25rem;
  }

  .aw-hero h1 {
    font-size: clamp(2.65rem, 12vw, 4.25rem);
    text-wrap: pretty;
  }

  .aw-hero-ctas,
  .aw-hero-ctas .aw-btn {
    width: 100%;
  }

  .aw-bento {
    grid-template-columns: 1fr;
  }

  .aw-bento .aw-card-a,
  .aw-bento .aw-card-b,
  .aw-bento .aw-card-c,
  .aw-bento .aw-card-e {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aw-marquee {
    animation: none;
  }
}

.aw {
  font-family: 'Satoshi', 'Geist', 'Space Grotesk', sans-serif;
  color: #ececf1;
  background: #0a0a0e;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.aw * {
  box-sizing: border-box;
}

.aw-section {
  position: relative;
  padding: clamp(6rem, 10vw, 10rem) 1.5rem;
  scroll-margin-top: 5.5rem;
}

.aw-wrap {
  width: min(80rem, 100%);
  margin: 0 auto;
}

.aw-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ---------------- Subpage hero (Editorial Split) ---------------- */
.aw-subhero {
  position: relative;
  padding: 12rem 1.5rem clamp(5rem, 8vw, 8rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 20% 20%, rgba(124, 77, 255, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 90%, rgba(77, 208, 255, 0.07) 0%, transparent 70%),
    #0a0a0e;
}

.aw-subhero-grid {
  width: min(80rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.aw-subhero h1 {
  max-width: 72rem;
  font-size: clamp(2.75rem, 5vw, 5rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0;
}

.aw-subhero h1 .aw-accent {
  background: linear-gradient(100deg, #b79aff 0%, #7c4dff 60%, #4dd0ff 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aw-subhero-sub {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: rgba(236, 236, 241, 0.65);
  font-weight: 300;
  margin: 0;
}

.aw-subhero-sub strong {
  color: #fff;
  font-weight: 600;
}

/* ---------------- Buttons ---------------- */
.aw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.aw-btn-solid {
  background: #fff;
  color: #0a0a0e;
}

.aw-btn-solid:hover {
  color: #0a0a0e;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.16);
}

.aw-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.aw-btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* ---------------- Section headers ---------------- */
.aw-head {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  scroll-margin-top: 6rem;
}

.aw-head h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: #fff;
  margin: 0 0 1rem;
  max-width: 48rem;
}

.aw-head p {
  font-size: 1.0625rem;
  color: rgba(236, 236, 241, 0.55);
  max-width: 42rem;
  margin: 0;
  font-weight: 300;
}

/* ---------------- Cards & rows ---------------- */
.aw-card {
  position: relative;
  border-radius: 1.25rem;
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.5s ease;
}

.aw-card:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 154, 255, 0.35);
}

.aw-card h3,
.aw-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 0.5rem;
}

.aw-card p {
  color: rgba(236, 236, 241, 0.55);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Feature index number */
.aw-idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(183, 154, 255, 0.65);
  display: block;
  margin-bottom: 0.875rem;
}

/* Category band on features page */
.aw-cat {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.aw-cat-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: baseline;
  margin-bottom: 2.75rem;
}

.aw-cat-head h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
}

.aw-cat-head p {
  color: rgba(236, 236, 241, 0.55);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.aw-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Varied spans: asymmetric rhythm, mathematically gapless with dense flow.
   7 items: rows [2+1] [1+2] [1+1+1]. 9 items: dense backfill closes every row. */
.aw-grid-varied {
  grid-auto-flow: dense;
}

.aw-grid-varied> :nth-child(6n+1):not(:last-child) {
  grid-column: span 2;
}

.aw-grid-varied> :nth-child(6n+4) {
  grid-column: span 2;
}

/* ---------------- Blocked-devs story (pinned split) ---------------- */
.aw-story {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 6rem);
  /* breathing room so the pinned title never collides with the next heading */
}

.aw-story-left h2 {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 1.5rem;
}

.aw-story-left p {
  color: rgba(236, 236, 241, 0.55);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 26rem;
}

.aw-story-step {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding: 0 0 3rem 2rem;
  position: relative;
}

.aw-story-step::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #121218;
  border: 2px solid rgba(183, 154, 255, 0.6);
}

.aw-story-step.aw-story-win {
  border-left-color: rgba(110, 231, 183, 0.4);
}

.aw-story-step.aw-story-win::before {
  background: #6ee7b7;
  border-color: #6ee7b7;
}

.aw-story-step h4 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.625rem;
  letter-spacing: -0.02em;
}

.aw-story-step p {
  color: rgba(236, 236, 241, 0.6);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 34rem;
}

.aw-story-step .aw-story-cost {
  display: inline-block;
  margin-top: 0.875rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: #f0abfc;
}

.aw-story-step.aw-story-win .aw-story-cost {
  color: #6ee7b7;
}

/* ---------------- Code blocks ---------------- */
.aw-codeblock {
  background: #0d0d13;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  overflow: hidden;
  margin: 0 0 2rem;
}

.aw-codeblock-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.aw-codeblock-head i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.aw-codeblock-head i:nth-child(1) {
  background: #ff5f56;
}

.aw-codeblock-head i:nth-child(2) {
  background: #ffbd2e;
}

.aw-codeblock-head i:nth-child(3) {
  background: #27c93f;
}

.aw-codeblock-head span {
  margin-left: 0.625rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(236, 236, 241, 0.45);
}

.aw-codeblock pre {
  margin: 0;
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: rgba(236, 236, 241, 0.85);
  overflow-x: auto;
  background: transparent;
}

.aw-codeblock .k {
  color: #7ee787;
}

.aw-codeblock .s {
  color: #a5d6ff;
}

.aw-codeblock .n {
  color: #79c0ff;
}

.aw-codeblock .c {
  color: #6a737d;
}

/* ---------------- Compare matrix (dark) ---------------- */
.aw-matrix {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.25rem;
  overflow: hidden;
  overflow-x: auto;
}

.aw-matrix table {
  width: 100%;
  border-collapse: collapse;
  min-width: 46rem;
}

.aw-matrix th,
.aw-matrix td {
  padding: 1.125rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9375rem;
}

.aw-matrix thead th {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(236, 236, 241, 0.55);
  background: #0d0d13;
}

.aw-matrix thead th.aw-tdk-col {
  color: #b79aff;
  background: rgba(124, 77, 255, 0.1);
}

.aw-matrix td.aw-tdk-col {
  background: rgba(124, 77, 255, 0.06);
  color: #fff;
  font-weight: 600;
}

.aw-matrix td {
  color: rgba(236, 236, 241, 0.65);
}

.aw-matrix td:first-child {
  color: #fff;
  font-weight: 600;
}

.aw-matrix tbody tr:last-child td {
  border-bottom: none;
}

.aw-matrix tbody tr {
  transition: background 0.25s ease;
}

.aw-matrix tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.aw-matrix tbody tr:hover td.aw-tdk-col {
  background: rgba(124, 77, 255, 0.1);
}

.aw-yes {
  color: #6ee7b7;
}

.aw-no {
  color: #f0abfc;
}

.aw-warn {
  color: #fcd34d;
}

/* ---------------- Docs layout ---------------- */
.aw-docs {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.aw-docs-side {
  position: sticky;
  top: 7.5rem;
}

.aw-docs-side nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.aw-docs-side a {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  color: rgba(236, 236, 241, 0.55);
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}

.aw-docs-side a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.aw-docs-side a.is-active {
  color: #b79aff;
  background: rgba(124, 77, 255, 0.12);
  font-weight: 600;
}

.aw-docs-body h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1.25rem;
}

.aw-docs-body>.aw-lead {
  font-size: 1.1875rem;
  color: rgba(236, 236, 241, 0.6);
  font-weight: 300;
  line-height: 1.65;
  margin: 0 0 3rem;
  max-width: 44rem;
}

.aw-docs-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 3.5rem 0 1.25rem;
}

.aw-docs-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 2.5rem 0 0.875rem;
}

.aw-docs-body p,
.aw-docs-body li {
  color: rgba(236, 236, 241, 0.65);
  font-size: 1rem;
  line-height: 1.7;
}

.aw-docs-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.aw-docs-body li {
  margin-bottom: 0.5rem;
}

.aw-docs-body a {
  color: #b79aff;
}

.aw-docs-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
  background: rgba(124, 77, 255, 0.12);
  color: #d6c6ff;
  padding: 0.15em 0.45em;
  border-radius: 0.375rem;
}

.aw-docs-body .aw-codeblock code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.aw-callout {
  border: 1px solid rgba(110, 231, 183, 0.3);
  background: rgba(110, 231, 183, 0.06);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.aw-callout h4 {
  color: #6ee7b7;
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

.aw-callout p {
  margin: 0;
}

.aw-doc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.aw-doc-cards .aw-card {
  text-decoration: none;
  display: block;
}

.aw-doc-cards .aw-card span {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b79aff;
}

/* ---------------- Blog article ---------------- */
.aw-blog .aw-subhero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
}

.aw-blog-kicker {
  align-self: end;
  border: 1px solid rgba(183, 154, 255, 0.18);
  border-radius: 1.5rem;
  background:
    linear-gradient(140deg, rgba(124, 77, 255, 0.14), rgba(18, 18, 24, 0.92) 42%),
    #121218;
  padding: 1.5rem;
}

.aw-blog-kicker p {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: rgba(236, 236, 241, 0.72);
}

.aw-blog-kicker strong {
  display: block;
  margin-bottom: 0.75rem;
  font-family: 'Satoshi', 'Geist', 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.015em;
}

.aw-article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.42fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.aw-article-card {
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18rem),
    #121218;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(2rem, 4vw, 3.5rem);
}

.aw-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.aw-article-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(236, 236, 241, 0.58);
}

.aw-article-card h2 {
  max-width: 48rem;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #fff;
}

.aw-article-intro {
  max-width: 45rem;
  margin: 0 0 3rem;
  color: rgba(236, 236, 241, 0.68);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.aw-article-body {
  max-width: 46rem;
}

.aw-article-body section {
  padding-top: 2.25rem;
  margin-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.aw-article-body section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.aw-article-body h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
}

.aw-article-body p {
  margin: 0 0 1.25rem;
  color: rgba(236, 236, 241, 0.66);
  font-size: 1.02rem;
  line-height: 1.82;
}

.aw-article-body p:last-child {
  margin-bottom: 0;
}

.aw-article-body strong {
  color: #fff;
  font-weight: 600;
}

.aw-article-note {
  margin: 2.25rem 0;
  border-radius: 1rem;
  border: 1px solid rgba(183, 154, 255, 0.25);
  background: rgba(124, 77, 255, 0.08);
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(236, 236, 241, 0.75);
  font-size: 0.875rem;
  line-height: 1.75;
}

.aw-blog-side {
  position: sticky;
  top: 7.5rem;
  display: grid;
  gap: 1rem;
}

.aw-blog-side-card {
  border-radius: 1.25rem;
  background: #0d0d13;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
}

.aw-blog-side-card h4 {
  margin: 0 0 0.875rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.aw-blog-side-card p,
.aw-blog-side-card li {
  color: rgba(236, 236, 241, 0.58);
  font-size: 0.9rem;
  line-height: 1.65;
}

.aw-blog-side-card p,
.aw-blog-side-card ul {
  margin: 0;
}

.aw-blog-side-card ul {
  padding-left: 1.1rem;
}

.aw-blog-side-card li+li {
  margin-top: 0.55rem;
}

.aw-blog-side-card code {
  font-family: 'JetBrains Mono', monospace;
  color: #d6c6ff;
}

.aw-matters-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.aw-matter {
  min-height: 11rem;
  border-radius: 1.25rem;
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem;
}

.aw-matter:nth-child(1),
.aw-matter:nth-child(4) {
  grid-column: span 2;
  background:
    radial-gradient(ellipse 90% 80% at 20% 0%, rgba(124, 77, 255, 0.18), transparent 60%),
    #121218;
}

.aw-matter:nth-child(2),
.aw-matter:nth-child(3),
.aw-matter:nth-child(5),
.aw-matter:nth-child(6) {
  grid-column: span 1;
}

.aw-matter strong {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.015em;
}

.aw-matter span {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  color: #b79aff;
  font-size: 0.82rem;
  line-height: 1.55;
}

.aw-matter p {
  margin: 0.75rem 0 0;
  color: rgba(236, 236, 241, 0.56);
  font-size: 0.9rem;
  line-height: 1.6;
}

.aw-blog-cta-actions {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.aw-blog-library-section .aw-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.aw-blog-library-section .aw-head p {
  max-width: 28rem;
}

.aw-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.aw-library-card {
  min-height: 15rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 55%),
    #121218;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.aw-library-card:hover {
  transform: translateY(-3px);
  border-color: rgba(183, 154, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(124, 77, 255, 0.12), transparent 62%),
    #121218;
}

.aw-library-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: rgba(236, 236, 241, 0.44);
  font-size: 0.72rem;
}

.aw-library-meta span:last-child {
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.3rem 0.55rem;
  white-space: nowrap;
}

.aw-library-card h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.22;
  letter-spacing: -0.018em;
}

.aw-library-card p {
  margin: 0;
  color: rgba(236, 236, 241, 0.56);
  font-size: 0.9rem;
  line-height: 1.6;
}

.aw-library-card:focus-visible {
  outline: 2px solid #b79aff;
  outline-offset: 4px;
}

/* ---------------- Blog index ---------------- */
.aw-blog-index {
  font-family: 'Geist', 'Space Grotesk', sans-serif;
}

.aw-blog-hero {
  position: relative;
  min-height: min(58rem, 100dvh);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 10rem 1.5rem 5rem;
  background: #09090c;
}

.aw-blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 9, 12, 0.38), rgba(9, 9, 12, 0.78) 72%, #09090c),
    radial-gradient(circle at 50% 38%, transparent 0, rgba(9, 9, 12, 0.18) 44%, rgba(9, 9, 12, 0.86) 100%);
}

.aw-blog-hero-media {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background: url('https://picsum.photos/seed/tdk-service-topology/1920/1080') center / cover no-repeat;
  filter: grayscale(1) contrast(1.3) brightness(0.54);
  opacity: 0.72;
  transform: scale(1.04);
}

.aw-blog-hero-inner {
  width: min(82rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.aw-blog-hero h1 {
  max-width: 16ch;
  margin: 0 auto;
  font-size: clamp(3.4rem, 7vw, 7.4rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: 0;
  color: #fff;
  text-wrap: balance;
}

.aw-inline-image {
  display: inline-block;
  width: 1.35em;
  height: 0.52em;
  margin: 0 0.05em;
  vertical-align: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: url('https://picsum.photos/seed/tdk-runtime-console/480/180') center / cover no-repeat;
  filter: grayscale(1) contrast(1.25);
}

.aw-blog-hero p {
  max-width: 42rem;
  margin: 2rem auto 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.aw-blog-hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.aw-blog-hero .aw-btn-ghost {
  background: rgba(9, 9, 12, 0.5);
  backdrop-filter: blur(12px);
}

.aw-topic-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0d12;
  padding: 1.15rem 0;
}

.aw-topic-track {
  display: flex;
  width: max-content;
  animation: aw-topic-loop 32s linear infinite;
}

.aw-topic-track span {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.62);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  white-space: nowrap;
}

.aw-topic-track span::after {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  margin: 0 2rem;
  border-radius: 50%;
  background: #9b77ff;
}

@keyframes aw-topic-loop {
  to {
    transform: translateX(-50%);
  }
}

.aw-blog-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.aw-blog-section-head h2,
.aw-library-intro h2,
.aw-quote-stage h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

.aw-blog-section-head p {
  margin: 0;
  color: rgba(236, 236, 241, 0.58);
  font-size: 1rem;
  line-height: 1.7;
}

.aw-featured-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(17rem, 1fr));
  grid-auto-flow: dense;
  gap: 1rem;
  min-height: 42rem;
}

.aw-featured-story {
  position: relative;
  grid-column: span 5;
  display: flex;
  align-items: end;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.aw-featured-story-main {
  grid-column: span 7;
  grid-row: span 2;
}

.aw-featured-story::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(8, 8, 11, 0.95) 88%);
}

.aw-featured-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: grayscale(1) contrast(1.15);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
}

.aw-featured-image-map {
  background-image: url('https://picsum.photos/seed/tdk-map-terrain/1400/1200');
}

.aw-featured-image-signal {
  background-image: url('https://picsum.photos/seed/tdk-system-signal/1000/700');
}

.aw-featured-image-runtime {
  background-image: url('https://picsum.photos/seed/tdk-runtime-proof/1000/700');
}

.aw-featured-story:hover .aw-featured-image {
  transform: scale(1.06);
  filter: grayscale(0.65) contrast(1.2);
}

.aw-featured-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.aw-featured-category {
  margin-bottom: 0.75rem;
  color: #c8b5ff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.aw-featured-content strong {
  max-width: 18ch;
  font-size: clamp(1.6rem, 3vw, 3.5rem);
  font-weight: 600;
  line-height: 1.02;
}

.aw-featured-story:not(.aw-featured-story-main) .aw-featured-content strong {
  font-size: clamp(1.35rem, 2vw, 2.1rem);
}

.aw-featured-content>span:not(.aw-featured-category):not(.aw-story-link) {
  max-width: 38rem;
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  line-height: 1.55;
}

.aw-story-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.aw-story-link i {
  transition: transform 0.3s ease;
}

.aw-featured-story:hover .aw-story-link i {
  transform: translate(0.2rem, -0.2rem);
}

.aw-blog-paths {
  background: #0d0d12;
}

.aw-path-accordion {
  display: flex;
  min-height: 27rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
}

.aw-path {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-width: 0;
  padding: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background: #111117;
  color: #fff;
  text-decoration: none;
  transition: flex 0.65s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease;
}

.aw-path:last-child {
  border-right: 0;
}

.aw-path:hover,
.aw-path.is-open {
  flex: 2.1 1 0;
  background: #181522;
  color: #fff;
}

.aw-path-title {
  max-width: 12ch;
  font-size: clamp(1.4rem, 2.2vw, 2.3rem);
  font-weight: 600;
  line-height: 1.04;
}

.aw-path-copy {
  max-width: 26rem;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  opacity: 0;
  transition: max-height 0.5s ease, margin 0.5s ease, opacity 0.35s ease;
}

.aw-path:hover .aw-path-copy,
.aw-path.is-open .aw-path-copy {
  max-height: 7rem;
  margin-top: 1rem;
  opacity: 1;
}

.aw-path i {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.aw-path:hover i {
  transform: translateX(0.3rem);
}

.aw-library-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.75fr) minmax(0, 1.65fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.aw-library-intro {
  align-self: start;
  padding-right: 1rem;
}

.aw-library-intro h2 {
  font-size: clamp(2.7rem, 4.5vw, 4.9rem);
}

.aw-library-statement {
  margin: 1.6rem 0 0;
  color: rgba(236, 236, 241, 0.62);
  font-size: 1.02rem;
  line-height: 1.75;
}

.aw-library-count {
  margin-top: 2.2rem;
  color: rgba(236, 236, 241, 0.45);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}

.aw-library-count strong {
  color: #fff;
  font-size: 1.1rem;
}

.aw-library-tools {
  position: sticky;
  top: 6.5rem;
  z-index: 4;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(13, 13, 18, 0.9);
  backdrop-filter: blur(18px);
}

.aw-library-search {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.aw-library-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.aw-library-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.aw-library-search:focus-within {
  color: #c8b5ff;
}

.aw-library-filters {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-top: 0.75rem;
  scrollbar-width: none;
}

.aw-library-filters::-webkit-scrollbar {
  display: none;
}

.aw-library-filters button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: transparent;
  padding: 0.5rem 0.78rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.75rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.aw-library-filters button:hover,
.aw-library-filters button.is-active {
  border-color: #9b77ff;
  background: #9b77ff;
  color: #09090c;
}

.aw-blog-index .aw-library-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.aw-blog-index .aw-library-card {
  min-height: 14rem;
  border-radius: 1rem;
  padding: 1.5rem;
}

.aw-blog-index .aw-library-card:nth-child(3n + 1) {
  min-height: 17rem;
}

.aw-blog-index .aw-library-card[hidden] {
  display: none;
}

.aw-blog-index .aw-library-meta {
  margin-bottom: auto;
  color: #c8b5ff;
  font-family: 'JetBrains Mono', monospace;
}

.aw-blog-index .aw-library-meta span {
  border: 0;
  padding: 0;
}

.aw-blog-index .aw-library-card h3 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
}

.aw-library-empty {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 5rem 1rem;
}

.aw-blog-quotes {
  background: #0d0d12;
}

.aw-quote-stage {
  display: grid;
  grid-template-columns: minmax(13rem, 0.5fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  min-height: 30rem;
  padding-block: 3rem;
}

.aw-quote-stage h2 {
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.aw-quote-slides {
  position: relative;
  min-height: 15rem;
}

.aw-quote-slides blockquote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.aw-quote-slides blockquote.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.aw-quote-controls {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}

.aw-quote-controls button {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
}

.aw-quote-controls button:hover {
  background: #fff;
  color: #09090c;
}

.aw-quote-controls span {
  color: rgba(255, 255, 255, 0.52);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.aw-quote-controls strong {
  color: #fff;
}

.aw-blog-action .aw-band {
  border-radius: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .aw-topic-track {
    animation: none;
  }

  .aw-featured-image,
  .aw-path,
  .aw-path-copy,
  .aw-quote-slides blockquote {
    transition: none;
  }
}

@media (max-width: 900px) {

  .aw-blog-section-head,
  .aw-library-layout,
  .aw-quote-stage {
    grid-template-columns: 1fr;
  }

  .aw-library-intro {
    position: relative !important;
    top: auto !important;
    transform: none !important;
  }

  .aw-quote-controls {
    grid-column: 1;
  }

  .aw-path-accordion {
    min-height: 23rem;
  }

  .aw-path {
    padding: 1.4rem;
  }
}

@media (max-width: 700px) {
  .aw-blog-hero {
    min-height: 100dvh;
    padding: 9rem 1.25rem 3rem;
  }

  .aw-blog-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 13vw, 4.6rem);
    line-height: 0.97;
  }

  .aw-inline-image {
    display: none;
  }

  .aw-blog-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .aw-blog-section-head {
    gap: 1.4rem;
  }

  .aw-featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 27rem 20rem 20rem;
    min-height: 0;
  }

  .aw-featured-story,
  .aw-featured-story-main {
    grid-column: 1;
    grid-row: span 1;
  }

  .aw-path-accordion {
    flex-direction: column;
    min-height: 0;
  }

  .aw-path,
  .aw-path:hover,
  .aw-path.is-open {
    flex: none;
    min-height: 9rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .aw-path:last-child {
    border-bottom: 0;
  }

  .aw-path-copy {
    max-height: 7rem;
    margin-top: 0.75rem;
    opacity: 1;
  }

  .aw-blog-index .aw-library-grid {
    grid-template-columns: 1fr;
  }

  .aw-blog-index .aw-library-card,
  .aw-blog-index .aw-library-card:nth-child(3n + 1) {
    min-height: 13rem;
  }

  .aw-library-tools {
    top: 5.75rem;
  }

  .aw-quote-stage {
    min-height: 36rem;
    padding-block: 0;
  }

  .aw-quote-slides {
    min-height: 21rem;
  }
}

/* ---------------- CTA band ---------------- */
.aw-band {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(124, 77, 255, 0.35) 0%, transparent 65%),
    #121218;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: clamp(3rem, 6vw, 5.5rem);
  text-align: center;
}

.aw-band h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1.25rem;
}

.aw-band p {
  color: rgba(236, 236, 241, 0.6);
  font-size: 1.0625rem;
  max-width: 34rem;
  margin: 0 auto 2.5rem;
}

/* ---------------- Scrub statement ---------------- */
.aw-statement {
  text-align: center;
}

.aw-statement h2 {
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 72rem;
  margin: 0 auto;
  color: #fff;
}

.aw-statement .aw-word {
  opacity: 0.12;
}

.aw-statement .aw-hot {
  background: linear-gradient(100deg, #b79aff, #4dd0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------- Orbit: one seat vs a circle of vendors ---------------- */
.aw-orbit {
  position: relative;
  width: min(44rem, 100%);
  aspect-ratio: 16 / 10;
  margin: 2rem auto 1rem;
}

.aw-orbit::before {
  content: "";
  position: absolute;
  inset: 4% 8%;
  border: 1px dashed rgba(183, 154, 255, 0.25);
  border-radius: 50%;
}

.aw-orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 35% 30%, rgba(124, 77, 255, 0.45) 0%, #1a1230 70%);
  border: 1px solid rgba(183, 154, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.aw-orbit-center strong {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.aw-orbit-center span {
  font-size: 0.8125rem;
  color: #b79aff;
  margin-top: 0.25rem;
}

.aw-orbit-chip {
  position: absolute;
  left: calc(50% + var(--ox));
  top: calc(50% + var(--oy));
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(236, 236, 241, 0.75);
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.aw-orbit-chip:hover {
  border-color: #7c4dff;
  color: #b79aff;
  transform: translate(-50%, -50%) scale(1.06);
}

@media (max-width: 700px) {
  .aw-orbit {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    aspect-ratio: auto;
  }

  .aw-orbit::before {
    display: none;
  }

  .aw-orbit-center {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    padding: 1.5rem;
    order: -1;
    animation: none;
  }

  .aw-orbit-chip {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .aw-subhero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .aw-blog .aw-subhero-grid {
    grid-template-columns: 1fr;
  }

  .aw-cat-head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .aw-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aw-grid-varied>* {
    grid-column: span 1;
  }

  .aw-grid-varied> :last-child {
    grid-column: span 2;
  }

  /* odd-count grids close cleanly */
  .aw-story {
    grid-template-columns: 1fr;
  }

  .aw-docs {
    grid-template-columns: 1fr;
  }

  .aw-docs-side {
    position: relative;
    top: 0;
  }

  .aw-docs-side nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .aw-blog-side {
    position: relative;
    top: 0;
    grid-template-columns: repeat(2, 1fr);
  }

  .aw-matters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aw-blog-library-section .aw-head {
    display: block;
  }

  .aw-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aw-matter,
  .aw-matter:nth-child(1),
  .aw-matter:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .aw .aw-bento {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .aw .aw-bento>.aw-card {
    grid-column: 1 !important;
    width: 100%;
  }

  .aw-feature-grid {
    grid-template-columns: 1fr;
  }

  .aw-doc-cards {
    grid-template-columns: 1fr;
  }

  .aw-section {
    padding: 5rem 1.25rem;
  }

  .aw-subhero {
    padding: 10rem 1.25rem 4rem;
  }

  .aw-blog-side,
  .aw-matters-grid {
    grid-template-columns: 1fr;
  }

  .aw-library-grid {
    grid-template-columns: 1fr;
  }

  .aw-article-card {
    padding: 1.5rem;
  }

  .aw-article-meta span {
    width: 100%;
    justify-content: center;
  }

  .aw-blog-cta-actions .aw-btn {
    width: 100%;
  }
}

/* ---------------- Restaurant example showcase ---------------- */
.aw-doc-cards-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aw-card-restaurant {
  background:
    radial-gradient(ellipse 80% 70% at 20% 0%, rgba(238, 146, 78, 0.18), transparent 62%),
    #121218;
  border-color: rgba(238, 146, 78, 0.34);
}

.aw-card-restaurant:hover {
  border-color: rgba(238, 146, 78, 0.72);
}

.aw-restaurant-photo {
  height: 9rem;
  margin: -0.75rem -0.75rem 1.35rem;
  border-radius: 1rem;
  background-image:
    linear-gradient(180deg, rgba(10, 10, 14, 0.12), rgba(10, 10, 14, 0.72)),
    url('https://picsum.photos/seed/tdk-restaurant-service-pass/900/520');
  background-position: center;
  background-size: cover;
  filter: grayscale(0.25) contrast(1.16) saturate(0.88);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
}

.aw-card-restaurant:hover .aw-restaurant-photo {
  transform: scale(1.04);
  filter: grayscale(0.08) contrast(1.2) saturate(0.98);
}

.aw-repo-kicker {
  margin-top: 0 !important;
  color: #ee924e !important;
  letter-spacing: 0.01em;
}

.aw-repo-link {
  margin-top: 1.25rem !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  color: #ee924e !important;
}

.aw-restaurant-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(22rem, 1.08fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin: 4.5rem 0 5.5rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(238, 146, 78, 0.22);
  border-radius: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(238, 146, 78, 0.16), transparent 42%),
    radial-gradient(ellipse 70% 90% at 90% 10%, rgba(238, 146, 78, 0.28), transparent 60%),
    #101015;
}

.aw-restaurant-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('https://picsum.photos/seed/tdk-evening-restaurant-floor/1600/1000');
  background-position: center;
  background-size: cover;
  filter: grayscale(0.72) contrast(1.24);
  opacity: 0.16;
}

.aw-restaurant-copy,
.aw-restaurant-stage {
  position: relative;
  z-index: 1;
}

.aw-restaurant-kicker {
  margin: 0 0 1rem !important;
  color: #ee924e !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem !important;
}

.aw-restaurant-copy h2 {
  margin-top: 0;
  max-width: 38rem;
  font-size: clamp(2.25rem, 4vw, 4.2rem);
  line-height: 1;
}

.aw-restaurant-copy p:not(.aw-restaurant-kicker) {
  max-width: 34rem;
}

.aw-restaurant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 1.75rem;
}

.aw-restaurant-stage {
  min-height: 31rem;
}

.aw-restaurant-panel {
  position: absolute;
  display: grid;
  gap: 0.65rem;
  width: min(22rem, 86%);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  background: rgba(12, 12, 17, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.aw-restaurant-panel strong {
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.aw-restaurant-panel span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: rgba(236, 236, 241, 0.68);
}

.aw-restaurant-panel-main {
  top: 1rem;
  left: 1rem;
}

.aw-restaurant-panel-kitchen {
  top: 11rem;
  right: 0;
  border-color: rgba(238, 146, 78, 0.36);
}

.aw-restaurant-panel-floor {
  bottom: 1rem;
  left: 5rem;
}

.aw-restaurant-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.aw-restaurant-resource-grid a {
  display: grid;
  gap: 0.75rem;
  min-height: 13rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  background: #121218;
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease;
}

.aw-restaurant-resource-grid a:nth-child(1),
.aw-restaurant-resource-grid a:nth-child(4) {
  background:
    radial-gradient(ellipse 90% 90% at 15% 0%, rgba(238, 146, 78, 0.22), transparent 62%),
    #121218;
}

.aw-restaurant-resource-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(238, 146, 78, 0.5);
}

.aw-restaurant-resource-grid i {
  color: #ee924e;
  font-size: 1.65rem;
}

.aw-restaurant-resource-grid strong {
  color: #fff;
  font-size: 1.12rem;
}

.aw-restaurant-resource-grid span {
  color: rgba(236, 236, 241, 0.6);
  font-size: 0.95rem;
  line-height: 1.55;
}

.aw-restaurant-code {
  border-color: rgba(238, 146, 78, 0.26);
}

@media (max-width: 980px) {

  .aw-doc-cards-featured,
  .aw-restaurant-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aw-restaurant-showcase {
    grid-template-columns: 1fr;
  }

  .aw-restaurant-stage {
    min-height: 26rem;
  }
}

@media (max-width: 640px) {

  .aw-doc-cards-featured,
  .aw-restaurant-resource-grid {
    grid-template-columns: 1fr;
  }

  .aw-restaurant-showcase {
    margin-block: 3rem;
    padding: 1.25rem;
  }

  .aw-restaurant-stage {
    min-height: 0;
    display: grid;
    gap: 0.85rem;
  }

  .aw-restaurant-panel {
    position: relative;
    inset: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .aw-restaurant-photo,
  .aw-restaurant-resource-grid a,
  .aw-card {
    transition: none;
  }
}