/* ========================================
   TTT BLOG THEME: DESIGN SYSTEM
   Ported from index.html landing page
   ======================================== */

/* ========================================
   PART A: CSS Custom Properties
   ======================================== */
/* Self-hosted fonts (no third-party CDN, GDPR-compliant) */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/Assets/fonts/ubuntu-400.woff2') format('woff2'),
       url('../fonts/ubuntu-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('/Assets/fonts/ubuntu-400-italic.woff2') format('woff2'),
       url('../fonts/ubuntu-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('/Assets/fonts/ubuntu-700.woff2') format('woff2'),
       url('../fonts/ubuntu-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 700;
  font-display: block;
  src: url('/Assets/fonts/figtree-variable.woff2') format('woff2'),
       url('../fonts/figtree-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 300;
  font-display: block;
  src: url('/Assets/fonts/figtree-italic.woff2') format('woff2'),
       url('../fonts/figtree-italic.woff2') format('woff2');
}

:root {
  --bg-primary: #161616;
  --bg-card: #242424;
  --bg-card-gradient: linear-gradient(150deg, rgba(36, 36, 36, 0.98), rgba(22, 22, 22, 0.98));
  --border-card-gradient: linear-gradient(145deg, rgba(255, 237, 201, 0.4), rgba(255, 237, 201, 0.08) 35%, rgba(235, 87, 87, 0.22) 70%, rgba(91, 140, 90, 0.16));
  --accent: #EB5757;
  --success: #5B8C5A;
  --highlight: #BF9A58;
  --accent-text: #FF8E8E;
  --success-text: #8FCF8D;
  --highlight-text: #E6C87E;
  --conversion-text: #EBA18F;
  --text-primary: #FFEDC9;
  --text-secondary: #B3A08A;
  --text-tertiary: #D6C4A8;
  --border: #2D2D2D;
  --border-card: #474747;
  --link-underline-thickness: 1px;
  --link-underline-offset: 3px;
  --link-underline-color-rest: rgba(255, 142, 142, 0.4);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --font-weight-figtree-thin: 300;
  --ttt-font-heading: var(--gh-font-heading, 'Ubuntu', sans-serif);
  --ttt-font-body: var(--gh-font-body, 'Figtree', sans-serif);
}

/* ========================================
   PART B: Reset & Base
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-padding-top: 128px;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: fixed;
  left: 24px;
  top: 16px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 2px solid var(--accent);
  border-radius: 0;
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(calc(-100% - 32px));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.skip-link:focus-visible {
  opacity: 1;
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

main:focus {
  outline: none;
}

body {
  font-family: var(--ttt-font-body);
  font-weight: var(--font-weight-figtree-thin);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ttt-font-heading);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  display: block;
}

/* ========================================
   PART C: Utilities
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.kicker,
.hero__kicker,
.service-feature__kicker {
  font-family: var(--ttt-font-body);
  font-weight: var(--font-weight-figtree-thin);
  font-size: 13px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.kicker {
  margin-bottom: 8px;
  text-align: center;
}

.section-heading {
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 24px;
  text-align: center;
}

.section-divider {
  width: 160px;
  height: 8px;
  background: var(--accent);
  margin: 0 auto 40px;
  flex-shrink: 0;
}

.section-sub {
  font-family: var(--ttt-font-body);
  font-weight: var(--font-weight-figtree-thin);
  color: var(--text-primary);
  max-width: 560px;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.7;
  text-align: center;
}

/* ========================================
   PART D: Button Styles
   ======================================== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  box-sizing: border-box;
  padding: 15px 28px 17px 28px;
  border-radius: 0;
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border: 2px solid transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: visible;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.35s ease, transform 0.25s ease;
}

.btn__content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.btn--with-icon {
  padding-right: 20px;
}

.btn--with-fast-forward {
  padding-right: 24px;
}

.btn__icon,
.link-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
}

.btn-primary:not(.btn--with-icon) .btn__content,
.btn-secondary:not(.btn--with-icon) .btn__content {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}

.btn-primary:hover,
.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 28px 8px rgba(235, 87, 87, 0.34);
  transform: translateY(-1px);
}

.btn-secondary:hover {
  background-color: var(--bg-primary);
}

.page--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: 160px 32px 96px;
  text-align: center;
}

.page--center p {
  margin-bottom: 16px;
}

.error-card {
  max-width: 560px;
}

.error-card .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.tally-popup,
.tally-popup [class*="_popupContainer_"],
.tally-popup iframe {
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: var(--text-secondary) var(--bg-card);
}

.tally-popup::-webkit-scrollbar,
.tally-popup [class*="_popupContainer_"]::-webkit-scrollbar,
.tally-popup iframe::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.tally-popup::-webkit-scrollbar-track,
.tally-popup [class*="_popupContainer_"]::-webkit-scrollbar-track,
.tally-popup iframe::-webkit-scrollbar-track {
  background: var(--bg-card);
}

.tally-popup::-webkit-scrollbar-thumb,
.tally-popup [class*="_popupContainer_"]::-webkit-scrollbar-thumb,
.tally-popup iframe::-webkit-scrollbar-thumb {
  background-color: var(--text-secondary);
  border: 3px solid var(--bg-card);
  border-radius: 999px;
}

.tally-popup::-webkit-scrollbar-thumb:hover,
.tally-popup [class*="_popupContainer_"]::-webkit-scrollbar-thumb:hover,
.tally-popup iframe::-webkit-scrollbar-thumb:hover {
  background-color: var(--highlight);
}

.tally-popup [class*="_popupContainer_"] {
  max-height: 95vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tally-popup [class*="_popupContainer_"] iframe {
  max-height: none !important;
}

@media (max-height: 1000px) {
  .tally-popup [class*="_popupContainer_"] {
    max-height: 85vh;
  }
}

@media (max-width: 576px) {
  .tally-popup [class*="_popupContainer_"] {
    max-height: 70vh;
  }
}

/* ========================================
   PART E: Reading-optimised Post Content
   ======================================== */

/* ========================================
   POST CONTENT: long-form reading
   ======================================== */
.post-content {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.post-content p {
  margin-bottom: 23px; /* 1.25em at 18px = 22.5px → rounded to integer */
  line-height: 29px;   /* 1.6 × 18px = 28.8px → rounded to integer */
}

.post-content h2 {
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
}

.post-content a {
  color: var(--accent-text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: var(--link-underline-thickness);
  text-underline-offset: var(--link-underline-offset);
  text-decoration-color: var(--link-underline-color-rest);
  transition: text-decoration-color 0.2s ease;
}

.post-content a:hover {
  text-decoration-color: var(--accent-text);
}

.post-content code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
}

.post-content pre {
  background: var(--bg-card);
  border-left: 3px solid var(--highlight);
  padding: 24px;
  margin: 2rem 0;
  overflow-x: auto;
  border-radius: 8px;
}

.post-content pre code {
  background: transparent;
  padding: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
}

.post-content figcaption,
.post__feature figcaption {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-secondary);
  text-align: center;
}

.post-content figcaption {
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 23px; /* 1.25em at 18px = 22.5px → rounded to integer */
  padding-left: 27px;  /* 1.5em at 18px = 27px (already integer) */
}

.post-content li {
  margin-bottom: 9px;  /* 0.5em at 18px = 9px (already integer) */
  line-height: 29px;   /* matches p line-height */
}

/* ── TL;DR summary block ── */
.post-content .tldr-block {
  background: rgba(235, 87, 87, 0.05);
  border: 1px solid rgba(235, 87, 87, 0.28);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 20px;
}

.post-content .tldr-label {
  font-family: var(--ttt-font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
  margin: 0 0 12px;
}

.post-content .tldr-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.post-content .tldr-bullets li {
  font-family: var(--ttt-font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
  padding-left: 20px;
  margin-bottom: 0;
  position: relative;
}

.post-content .tldr-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc((1.5em - 5px) / 2);
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.post-content .post-faq {
  margin: 3.5rem 0 3rem;
}

.post-content .post-faq__heading {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.post-content .post-faq__intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 32px;
}

.post-content .post-faq__list {
  border-top: 1px solid var(--border);
}

.post-content .post-faq__item {
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.post-content .post-faq__question {
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

.post-content .post-faq__question::-webkit-details-marker {
  display: none;
}

.post-content .post-faq__question::after {
  content: '';
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19'%3E%3Cpath d='M0 9.5H19M9.5 0V19' stroke='black' stroke-width='5' stroke-linecap='butt'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19'%3E%3Cpath d='M0 9.5H19M9.5 0V19' stroke='black' stroke-width='5' stroke-linecap='butt'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform-origin: 50% 50%;
  transition: transform 0.28s var(--ease-premium);
  will-change: transform;
}

.post-content .post-faq__item.is-open > .post-faq__question::after {
  transform: rotate(45deg);
}

.post-content .post-faq__answer {
  box-sizing: border-box;
  overflow: hidden;
  padding-right: 48px;
}

.post-content .post-faq__answer p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  padding-top: 16px;
}

@media (max-width: 600px) {
  .post-content .post-faq {
    margin: 3rem 0 2.5rem;
  }

  .post-content .post-faq__item {
    padding: 18px 0;
  }

  .post-content .post-faq__question {
    font-size: 1.0625rem;
  }

  .post-content .post-faq__answer {
    padding-right: 0;
  }
}

::selection {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  --navbar-edge-space: 32px;
  --navbar-scrolled-edge-space: 20px;
  --navbar-column-gap: clamp(24px, 3vw, 40px);
  --navbar-link-gap: clamp(24px, 2.25vw, 32px);
  position: fixed;
  top: 16px;
  /* logo/CTA flush with frame outer edge: nav box is 1504 wide (frame 1440 + 32px nav padding × 2) */
  left: max(0px, calc(50% - 752px));
  right: max(0px, calc(50% - 752px));
  transform: none;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: var(--navbar-column-gap);
  align-items: center;
  height: 80px;
  padding: 0 var(--navbar-edge-space);
  border-radius: 0;
  transition: top 0.5s ease, left 0.5s ease, right 0.5s ease,
              padding 0.5s ease, border-radius 0.5s ease,
              background-color 0.5s ease, backdrop-filter 0.5s ease,
              border-color 0.5s ease;
  border: 1px solid transparent;
}

.navbar.scrolled,
html.navbar-initial-scrolled .navbar {
  top: 16px;
  left: max(16px, calc(50% - 500px));
  right: max(16px, calc(50% - 500px));
  padding: 0 0 0 var(--navbar-scrolled-edge-space);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  transition: top 0.5s ease, left 0.5s ease, right 0.5s ease,
              padding 0.5s ease, border-radius 0.5s ease,
              background-color 0.5s ease, backdrop-filter 0.5s ease,
              border-color 0.5s ease, box-shadow 0.35s ease;
}

.navbar.navbar--instant,
.navbar.navbar--instant .navbar__cta,
.navbar.navbar--instant .navbar__cta::before,
.navbar.navbar--instant .navbar__cta::after,
.navbar.navbar--instant .navbar__cta-outline {
  transition: none !important;
}

.navbar.scrolled:has(.navbar__cta:hover) {
  box-shadow: inset -120px 0 80px -40px rgba(235, 87, 87, 0.12);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1;
  justify-self: start;
  flex-shrink: 0;
  min-height: 44px;
}

.navbar__logo svg {
  height: 46px;
  width: auto;
  display: block;
}

.navbar__studio-name {
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-left: 0;
  white-space: nowrap;
}

.navbar__links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: var(--navbar-link-gap);
  list-style: none;
  min-width: 0;
}

.navbar__links a {
  position: relative;
  display: inline-block;
  font-family: var(--ttt-font-heading);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--text-secondary);
  white-space: nowrap;
  text-decoration: none;
  padding: 1px 2px 3px;
  transition: none;
}

.navbar__links a::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(44px, calc(100% + 16px));
  height: 44px;
  transform: translate(-50%, -50%);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -1px;
  height: 2px;
  background: transparent;
}

.navbar__links a.active {
  color: var(--text-primary);
}

.navbar__links a.active::after {
  background: var(--accent);
}

.navbar__links a:hover {
  color: var(--text-primary);
}

.navbar__cta {
  background-color: transparent;
  color: var(--text-primary);
  height: 56px;
  min-height: 56px;
  box-sizing: border-box;
  padding: 0 32px;
  border-radius: 0;
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  overflow: visible;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: 3;
  justify-self: end;
  transition: height 0.52s var(--ease-premium),
              padding 0.52s var(--ease-premium) 0.06s,
              border-radius 0.52s var(--ease-premium),
              background-color 0.18s ease 0.34s,
              color 0.18s ease 0.34s,
              border-color 0.2s ease,
              box-shadow 0.35s ease,
              transform 0.25s ease;
  cursor: pointer;
}

.navbar__cta::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 1px;
  background: var(--border);
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  transition: background-color 0.2s ease;
}

.navbar__cta:hover::before {
  background: var(--accent);
}

.navbar__cta::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.navbar__cta-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  position: relative;
  z-index: 2;
}

.navbar__cta-outline {
  display: none;
}

.navbar__cta-text {
  display: block;
  line-height: 1;
}

.navbar__cta-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
  color: var(--accent);
}

@media (min-width: 901px) {
  .navbar__logo {
    transform: translateY(-1px);
  }

  .navbar__links {
    transform: translate(-50%, calc(-50% - 1px));
  }

  .navbar__cta-text {
    transform: translateY(-1px);
  }
}

@media (min-width: 901px) and (max-height: 780px) {
  .navbar {
    --navbar-edge-space: 24px;
    top: 12px;
  }

  .navbar.scrolled,
  html.navbar-anchor-start .navbar,
  html.navbar-initial-scrolled .navbar {
    top: 12px;
  }
}

.navbar__cta:hover {
  border-color: transparent;
  box-shadow: 0 0 28px 8px rgba(235, 87, 87, 0.34);
  transform: translateY(-1px);
}

.navbar__cta:hover::after {
  opacity: 1;
}

.navbar__cta.btn--with-fast-forward {
  padding-right: 24px;
}

.navbar.scrolled .navbar__cta,
html.navbar-initial-scrolled .navbar__cta {
  align-self: center;
  height: 80px;
  min-height: 0;
  padding: 0 44px;
  margin-top: -1px;
  margin-right: -0.5px;
  margin-bottom: -1px;
  margin-left: 0;
  background-color: transparent;
  color: var(--text-primary);
  border-color: transparent;
  box-shadow: 0 0 0 0 rgba(235, 87, 87, 0);
  border-radius: 0 999px 999px 0;
  transition: height 0.52s var(--ease-premium),
              padding 0.52s var(--ease-premium),
              border-radius 0.52s var(--ease-premium),
              background-color 0.18s ease,
              color 0.18s ease,
              border-color 0.2s ease,
              box-shadow 0.5s ease,
              transform 0.25s ease;
}

.navbar.scrolled .navbar__cta-content,
html.navbar-initial-scrolled .navbar__cta-content {
  display: flex;
  height: 100%;
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: none;
}

.navbar.scrolled .navbar__cta-text,
html.navbar-initial-scrolled .navbar__cta-text {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -1px;
}

.navbar.scrolled .navbar__cta-outline,
html.navbar-initial-scrolled .navbar__cta-outline {
  display: block;
  position: absolute;
  inset: 1px 1px 1px 0;
  opacity: 0;
  pointer-events: none;
  border: 1px solid transparent;
  border-left: none;
  border-radius: 0 999px 999px 0;
  background: transparent;
  box-shadow: none;
  transition: opacity 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  z-index: 0;
}

.navbar.scrolled .navbar__cta::after,
html.navbar-initial-scrolled .navbar__cta::after {
  display: none;
}

.navbar.scrolled .navbar__cta::before,
html.navbar-initial-scrolled .navbar__cta::before {
  top: 0;
  bottom: 0;
  z-index: 1;
}

.navbar.scrolled .navbar__cta:hover {
  background-color: transparent;
  border-color: var(--accent);
  box-shadow: 0 0 28px 8px rgba(235, 87, 87, 0.34);
  transform: none;
}

.navbar.scrolled .navbar__cta:hover .navbar__cta-outline {
  opacity: 0;
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  width: 44px;
  height: 44px;
  line-height: 0;
}

.navbar__toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-primary);
}

@keyframes mobile-nav-content-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobile-nav-content-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

html.navbar-menu-open::before,
html.navbar-menu-closing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: rgba(10, 10, 10, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  transition: opacity 0.42s var(--ease-premium),
              backdrop-filter 0.42s var(--ease-premium),
              background-color 0.42s var(--ease-premium);
}

html.navbar-menu-closing::before {
  opacity: 0;
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

.navbar.navbar--open {
  height: auto;
  min-height: var(--mobile-navbar-row, 80px);
  max-height: min(100svh, 520px);
  grid-template-rows: var(--mobile-navbar-control-size, 44px) auto auto;
  grid-auto-rows: auto;
  align-items: center;
  padding: 0 32px 24px;
  border-radius: 0;
  background: rgba(10, 10, 10, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid transparent !important;
  border-bottom-color: var(--border) !important;
  box-shadow: none;
  overflow: hidden;
}

.navbar.navbar--closing {
  height: auto;
  min-height: var(--mobile-navbar-row, 80px);
  max-height: var(--mobile-navbar-row, 80px);
  grid-template-rows: var(--mobile-navbar-control-size, 44px) auto auto;
  grid-auto-rows: auto;
  align-items: center;
  padding: 0 32px;
  border-radius: 0;
  background: rgba(10, 10, 10, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid transparent !important;
  border-bottom-color: var(--border) !important;
  box-shadow: none;
  overflow: hidden;
}

.navbar--open .navbar__logo,
.navbar--open .navbar__toggle,
.navbar--closing .navbar__logo,
.navbar--closing .navbar__toggle {
  align-self: center;
  display: flex;
  align-items: center;
}

.navbar--open .navbar__links,
.navbar--closing .navbar__links {
  position: static;
  transform: none;
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0;
  margin-top: var(--mobile-navbar-space, 24px);
  padding: var(--mobile-navbar-space, 24px) 0 var(--mobile-navbar-space, 24px);
  border-top: 1px solid var(--border);
}

.navbar--open .navbar__links {
  animation: mobile-nav-content-in 0.36s var(--ease-premium) both;
}

.navbar--closing .navbar__links {
  animation: mobile-nav-content-out 0.22s ease both;
}

.navbar--open .navbar__links li,
.navbar--closing .navbar__links li {
  padding: 10px 0;
}

.navbar--open .navbar__links a,
.navbar--closing .navbar__links a {
  font-size: 1rem;
}

.navbar.navbar--open .navbar__cta,
.navbar.navbar--closing .navbar__cta {
  display: flex !important;
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  justify-self: stretch;
  height: 56px;
  min-height: 56px;
  align-self: auto;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  margin: 0;
  border-radius: 0;
  border-color: var(--text-primary);
  background-color: transparent;
  color: var(--text-primary);
  box-shadow: none;
  transform: none;
}

.navbar.navbar--open .navbar__cta {
  animation: mobile-nav-content-in 0.36s var(--ease-premium) 0.05s both;
}

.navbar.navbar--closing .navbar__cta {
  animation: mobile-nav-content-out 0.2s ease both;
}

.navbar.navbar--open .navbar__cta::before,
.navbar.navbar--open .navbar__cta::after,
.navbar.navbar--open .navbar__cta-outline,
.navbar.navbar--closing .navbar__cta::before,
.navbar.navbar--closing .navbar__cta::after,
.navbar.navbar--closing .navbar__cta-outline {
  display: none;
}

.navbar.navbar--open .navbar__cta-content,
.navbar.navbar--closing .navbar__cta-content {
  height: auto;
  min-height: 0;
  transform: none;
}

.navbar.navbar--open .navbar__cta-text,
.navbar.navbar--closing .navbar__cta-text {
  top: 0;
}

.navbar__toggle svg line {
  transition: transform 0.26s var(--ease-premium), opacity 0.18s ease;
  transform-box: fill-box;
  transform-origin: center center;
}

.navbar__toggle[aria-expanded="true"] .bar-top {
  transform: translateY(6px) rotate(45deg) scaleX(0.9);
}

.navbar__toggle[aria-expanded="true"] .bar-mid {
  opacity: 0;
}

.navbar__toggle[aria-expanded="true"] .bar-bot {
  transform: translateY(-6px) rotate(-45deg) scaleX(0.9);
}

@media (max-width: 900px) {
  .navbar {
    --mobile-navbar-space: 17px;
    --mobile-navbar-space-x: 24px;
    --mobile-navbar-space-top: calc(var(--mobile-navbar-space) - 3px);
    --mobile-navbar-control-size: 44px;
    --mobile-navbar-logo-height: 38px;
    --mobile-navbar-row: calc(var(--mobile-navbar-control-size) + var(--mobile-navbar-space-top) + var(--mobile-navbar-space));
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    min-height: var(--mobile-navbar-row);
    padding: var(--mobile-navbar-space-top) var(--mobile-navbar-space-x) var(--mobile-navbar-space);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-width: 0 0 1px;
    border-color: transparent;
    max-height: var(--mobile-navbar-row);
    overflow: hidden;
    transition: max-height 0.42s var(--ease-premium),
                padding 0.42s var(--ease-premium),
                background-color 0.5s ease,
                border-color 0.5s ease,
                backdrop-filter 0.5s ease,
                box-shadow 0.35s ease;
  }

  .navbar.scrolled,
  html.navbar-initial-scrolled .navbar {
    top: 0;
    left: 0;
    right: 0;
    padding: var(--mobile-navbar-space-top) var(--mobile-navbar-space-x) var(--mobile-navbar-space);
    border-radius: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-width: 0 0 1px;
    border-color: transparent transparent var(--border);
    max-height: var(--mobile-navbar-row);
    overflow: hidden;
    transition: max-height 0.42s var(--ease-premium),
                padding 0.42s var(--ease-premium),
                background-color 0.5s ease,
                border-color 0.5s ease,
                backdrop-filter 0.5s ease,
                box-shadow 0.35s ease;
  }

  .navbar.navbar--open,
  .navbar.scrolled.navbar--open,
  html.navbar-initial-scrolled .navbar.navbar--open,
  html.navbar-initial-scrolled .navbar.navbar--open {
    padding: var(--mobile-navbar-space-top) var(--mobile-navbar-space-x) var(--mobile-navbar-space-x);
    border-radius: 0;
    border-width: 0 0 1px !important;
    max-height: min(100svh, 520px);
  }

  .navbar.navbar--closing,
  .navbar.scrolled.navbar--closing,
  html.navbar-initial-scrolled .navbar.navbar--closing {
    padding: var(--mobile-navbar-space-top) var(--mobile-navbar-space-x) var(--mobile-navbar-space-x);
    border-radius: 0;
    border-width: 0 0 1px !important;
    max-height: var(--mobile-navbar-row);
  }

  .navbar__links,
  .navbar__cta {
    display: none;
  }

  .navbar__links {
    position: static;
    transform: none;
  }

  .navbar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    grid-column: 3;
    justify-self: end;
    margin-right: -12px;
  }

  .navbar__logo svg {
    height: var(--mobile-navbar-logo-height);
  }

  .navbar__logo {
    align-self: center;
  }

  .navbar__studio-name {
    font-size: 1.0625rem;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #0A0A0A;
  padding: 80px 0 24px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr auto 1.6fr;
  gap: 64px;
  align-items: stretch;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer__brand-name svg,
.footer__brand-name img {
  height: 80px;
  width: auto;
  display: block;
}

.footer__brand-tagline {
  font-family: var(--ttt-font-body);
  font-weight: var(--font-weight-figtree-thin);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-top: 20px;
  max-width: 320px;
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.footer__rule {
  width: 8px;
  align-self: stretch;
  min-height: 200px;
  background: var(--accent);
  justify-self: center;
}

.footer__heading {
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  position: relative;
  display: inline-block;
  font-family: var(--ttt-font-body);
  font-weight: var(--font-weight-figtree-thin);
  color: var(--text-primary);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer__links a::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(44px, calc(100% + 16px));
  height: 44px;
  transform: translate(-50%, -50%);
}

.footer__links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer__contact-block > * + * {
  margin-top: 32px;
}

.footer__email a {
  position: relative;
  display: inline-block;
  font-family: var(--ttt-font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.footer__email a::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(44px, calc(100% + 16px));
  height: 44px;
  transform: translate(-50%, -50%);
}

.footer__email a:hover {
  border-bottom-color: var(--accent);
}

.footer__email a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer__socials {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 4px;
}

.footer__socials a {
  position: relative;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer__socials a::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.footer__socials a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.footer__socials a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer__divider {
  border: 0;
  border-top: 1px solid var(--border);
  max-width: 1392px;
  margin: 48px auto 24px;
}

.footer__bottom {
  max-width: 1392px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.footer__bottom a {
  position: relative;
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__bottom a::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(44px, calc(100% + 16px));
  height: 44px;
  transform: translate(-50%, -50%);
}

.footer__bottom a:hover {
  color: var(--text-primary);
}

.footer__bottom a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer__bottom-sep {
  opacity: 0.5;
}

@media (max-width: 900px) {
  .footer {
    padding-top: 48px;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer__rule {
    display: none;
  }
}
@media (min-width: 560px) and (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__inner > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .navbar {
    --navbar-edge-space: 24px;
    --navbar-scrolled-edge-space: 20px;
    --mobile-navbar-space: 13px;
    --mobile-navbar-space-x: 20px;
    --mobile-navbar-logo-height: 36px;
  }

  .navbar.scrolled,
  html.navbar-initial-scrolled .navbar,
  .navbar.navbar--open,
  .navbar.navbar--closing,
  .navbar.scrolled.navbar--open,
    .navbar.scrolled.navbar--closing {
    --mobile-navbar-space: 13px;
    --mobile-navbar-space-x: 20px;
    --mobile-navbar-logo-height: 36px;
  }

  .container,
  .footer__inner,
  .hub .container,
  .hub__posts .container,
  .post__hero .container,
  .post__author-bio .container,
  .author-hero .container,
  .author-posts .container {
    padding-inline: 20px;
  }

}

@media (max-width: 380px) {
  .navbar {
    --mobile-navbar-space: 11px;
    --mobile-navbar-space-x: 20px;
    --mobile-navbar-logo-height: 34px;
  }

  .navbar.scrolled,
  html.navbar-initial-scrolled .navbar,
  .navbar.navbar--open,
  .navbar.navbar--closing,
  .navbar.scrolled.navbar--open,
    .navbar.scrolled.navbar--closing {
    --mobile-navbar-space: 11px;
    --mobile-navbar-space-x: 20px;
    --mobile-navbar-logo-height: 34px;
  }
}

/* ========================================
   BLOG HUB
   ======================================== */
.hub {
  padding: 152px 0 64px;
  text-align: center;
}

.hub .container {
  max-width: 900px;
  margin: 0 auto;
}

.hub__posts {
  padding: 0 0 120px;
}

.hub__posts .container {
  max-width: 1200px;
  margin: 0 auto;
}

.hub__empty {
  text-align: center;
  font-family: var(--ttt-font-body);
  font-weight: 300;
  color: var(--text-primary);
  padding: 80px 0;
}

/* ========================================
   POST CARD GRID
   ======================================== */
.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 24px;
  align-items: stretch;
}

.post-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(85% 58% at 50% 0%, rgba(38, 38, 38, 0.98), rgba(34, 34, 34, 0.98) 48%, rgba(34, 34, 34, 0) 74%) padding-box,
    linear-gradient(180deg, rgba(31, 31, 31, 0.98) 0%, rgba(29, 29, 29, 0.98) 52%, rgba(24, 24, 24, 0.98) 100%) padding-box,
    radial-gradient(80% 70% at 50% 0%, rgba(255, 237, 201, 0.36), rgba(255, 237, 201, 0.12) 44%, rgba(255, 237, 201, 0) 72%) border-box,
    linear-gradient(180deg, rgba(255, 237, 201, 0.08), rgba(255, 237, 201, 0.04) 48%, rgba(235, 87, 87, 0.18) 100%) border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 5px 7px -5px rgba(0, 0, 0, 0.72);
  transform: translateY(0);
  transition: box-shadow 0.35s ease, transform 0.28s var(--ease-premium);
  height: 100%;
  min-height: 0;
  align-self: stretch;
}

.post-card::before,
.post-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.post-card::before {
  z-index: 0;
  background:
    radial-gradient(70% 55% at 50% 105%, rgba(235, 87, 87, 0.38), transparent 62%),
    linear-gradient(180deg, transparent 55%, rgba(235, 87, 87, 0.08) 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-premium);
}

.post-card::after {
  z-index: 2;
  border: 1px solid transparent;
  background:
    radial-gradient(80% 70% at 50% 100%, rgba(235, 87, 87, 1), rgba(235, 87, 87, 0.68) 44%, rgba(235, 87, 87, 0) 76%) border-box,
    linear-gradient(180deg, rgba(235, 87, 87, 0.38), rgba(235, 87, 87, 0.56) 48%, rgba(235, 87, 87, 1)) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.42s ease;
}

.post-card:hover,
.post-card:has(.post-card__link:focus-visible) {
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.2),
    0 16px 34px -12px rgba(235, 87, 87, 0.54),
    0 0 26px 7px rgba(235, 87, 87, 0.26);
  transform: translateY(-3px);
}

.post-card:hover::before,
.post-card:has(.post-card__link:focus-visible)::before {
  opacity: 1;
  transform: translateY(0);
}

.post-card:hover::after,
.post-card:has(.post-card__link:focus-visible)::after {
  opacity: 1;
}

.post-card:has(.post-card__link:focus-visible)::after {
  border-width: 2px;
}

.post-card__link {
  position: relative;
  z-index: 1;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 24px;
  border-radius: inherit;
}

.post-card__link:focus-visible {
  outline: none;
}

.post-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.post-card__tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px 3px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--ttt-font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.post-card__tag--process {
  border-color: rgba(235, 87, 87, 0.35);
  background: rgba(235, 87, 87, 0.08);
  color: #FFA5A5;
}

.post-card__tag--perspective {
  border-color: rgba(191, 154, 88, 0.35);
  background: rgba(191, 154, 88, 0.08);
  color: var(--highlight-text);
}

.post-card__tag--sustainability {
  border-color: rgba(91, 140, 90, 0.35);
  background: rgba(91, 140, 90, 0.08);
  color: var(--success-text);
}

.post-card__title {
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0 0 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(1.25rem * 1.35 * 3);
}

.post-card__excerpt {
  font-family: var(--ttt-font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 16px;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(0.9375rem * 1.6 * 4);
}

.post-card__meta {
  font-family: var(--ttt-font-body);
  font-weight: 300;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: auto 0 0;
}

@media (min-width: 768px) and (max-width: 1020px) {
  .post-grid {
    grid-template-columns: 1fr 1fr;
  }

  .post-grid .post-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 900px) {
  .hub {
    padding: 136px 0 40px;
  }
  .hub__posts {
    padding: 0 0 64px;
  }
}

@media (max-width: 767px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .post-card {
    width: auto;
  }
  .post-card__link {
    padding: 18px;
  }
  .post-card__image {
    margin-bottom: 24px;
  }
  .post-card__tag {
    margin-bottom: 14px;
  }
  .post-card__title {
    margin-bottom: 18px;
  }
  .post-card__excerpt {
    margin-bottom: 24px;
  }
}

/* ========================================
   SINGLE POST
   ======================================== */
.post__hero {
  padding: 152px 24px 48px;
  text-align: center;
}

.post__hero .container {
  max-width: 900px;
  margin: 0 auto;
}


.post__title {
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  color: var(--text-primary);
  max-width: 800px;
  margin: 16px auto;
}

.post__sub {
  font-family: var(--ttt-font-body);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 680px;
  margin: 0 auto 32px;
}

.post__byline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--ttt-font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.post__byline-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 4px;
  box-shadow:
    0 10px 24px -14px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(255, 237, 201, 0.05);
}

.post__byline a {
  color: var(--text-primary);
  text-decoration: none;
}

.post__byline a:hover {
  color: var(--accent-text);
}

.post__byline-dot {
  opacity: 0.5;
}

.post__feature {
  max-width: 1000px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.post__feature-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}

.post__feature figcaption {
  margin-top: 1rem;
  margin-bottom: 0;
}

.post__body {
  padding: 0 24px 80px;
}

.post__author-bio {
  padding: 64px 24px 120px;
}

.post__author-bio .container {
  max-width: 900px;
  margin: 0 auto;
}

.post__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 48px;
}

.author-bio {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.author-bio__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow:
    0 10px 24px -14px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(255, 237, 201, 0.05);
}

.author-bio__text {
  flex: 1;
}

.author-bio__name {
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 29px; /* 1.6 × 18px = 28.8px → rounded to integer */
  color: var(--text-primary);
  margin: 0 0 8px;
}

.author-bio__bio {
  font-family: var(--ttt-font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.author-bio__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--ttt-font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: var(--link-underline-thickness);
  text-underline-offset: var(--link-underline-offset);
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

.author-bio__link:hover {
  text-decoration-color: var(--accent-text);
}

@media (max-width: 900px) {
  .post__hero {
    padding: 112px 16px 32px;
  }
  .post__body {
    padding: 0 20px 64px;
  }
  .author-bio {
    flex-direction: column;
  }
}

/* ========================================
   AUTHOR PAGE
   ======================================== */
.author-hero {
  padding: 152px 24px 48px;
  text-align: center;
}

.author-hero .container {
  max-width: 720px;
  margin: 0 auto;
}

.author-hero__avatar {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 0;
  box-shadow:
    0 10px 24px -14px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(255, 237, 201, 0.05);
  margin: 24px auto;
}

.author-hero__name {
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.author-hero__role {
  font-family: var(--ttt-font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.author-hero__bio {
  font-family: var(--ttt-font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 640px;
  margin: 0 auto 24px;
}

.author-hero__links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.author-hero__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--ttt-font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: var(--link-underline-thickness);
  text-underline-offset: var(--link-underline-offset);
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

.author-hero__link:hover {
  text-decoration-color: var(--accent-text);
}

.author-posts {
  padding: 48px 0 120px;
}

.author-posts .container {
  max-width: 1200px;
  margin: 0 auto;
}

.author-posts__heading {
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 0 0 32px;
  text-align: center;
}

@media (max-width: 900px) {
  .author-hero {
    padding: 112px 20px 32px;
  }
  .author-hero__avatar {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 600px) {
  .author-hero__avatar {
    width: 96px;
    height: 96px;
  }
}

/* ============================================================
   Koenig card width utilities (required by Ghost)
   ============================================================ */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 0 auto;
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ==========================================
   CO-AUTHORED BYLINE
   ========================================== */

.post__byline--multi {
  gap: 12px;
}

.post__byline-avatars {
  display: inline-flex;
  align-items: center;
}

.post__byline-avatars .post__byline-avatar + .post__byline-avatar {
  margin-left: -8px;
  border-radius: 50%;
}

.post__byline-names {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post__byline-amp {
  color: var(--text-secondary);
}

/* ==========================================
   CO-AUTHORED BIO SECTION
   ========================================== */

.post__authors-bio {
  padding: 64px 24px 120px;
}

.post__authors-bio .container {
  max-width: 900px;
  margin: 0 auto;
}

.post__authors-label {
  font-family: var(--ttt-font-body);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.post__authors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.author-bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
}

.author-bio-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow:
    0 10px 24px -14px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(255, 237, 201, 0.05);
}

.author-bio-card__text {
  flex: 1;
}

.author-bio-card__name {
  font-family: var(--ttt-font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.author-bio-card__bio {
  font-family: var(--ttt-font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 0 0 12px;
}

.author-bio-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--ttt-font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: var(--link-underline-thickness);
  text-underline-offset: var(--link-underline-offset);
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

.author-bio-card__link:hover {
  text-decoration-color: var(--accent-text);
}

@media (max-width: 600px) {
  .post__authors-grid {
    grid-template-columns: 1fr;
  }

  .post__authors-bio {
    padding: 48px 16px 80px;
  }
}
