:root[data-theme="dark"] {
  --ct-bg-0: #0d0f10;
  --ct-bg-1: #121517;
  --ct-bg-2: #161a1d;
  --ct-bd-1: #242a2e;
  --ct-tx-1: #e8ecee;
  --ct-tx-2: #b7c3c8;
  --ct-tx-3: #8e9aa0;
  --ct-ac-gold-500: #b79f7a;
  --ct-ac-gold-600: #ad9876;
  --ct-ac-steel-600: #748597;
  --ct-ac-river-300: #b7cede;
  --ct-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --fs-xl: clamp(28px, 2.6vw + 0.5rem, 42px);
  --fs-xxl: clamp(36px, 4vw + 1rem, 64px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, rgba(183, 206, 222, 0.08), transparent 45%), var(--ct-bg-0);
  color: var(--ct-tx-1);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: var(--ct-ac-steel-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  padding-top: 4rem;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
  padding: 4rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(13, 15, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ct-bd-1);
  z-index: 10;
  transition: transform 0.28s ease;
  will-change: transform;
}

.site-header--hidden {
  transform: translateY(-110%);
}

.portal-shell main {
  padding-top: 5rem;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 12, 13, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ct-bd-1);
}

.portal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.portal-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.portal-nav a {
  color: var(--ct-tx-2);
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.3rem;
}

.portal-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ct-ac-river-300);
}

.portal-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ct-tx-2);
  font-size: 0.9rem;
}

.portal-user__name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.portal-footer {
  border-top: 1px solid var(--ct-bd-1);
  padding: 2rem 0;
  background: rgba(10, 12, 13, 0.6);
}

.portal-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--ct-tx-3);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .portal-header__inner {
    flex-wrap: wrap;
  }
  .portal-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .portal-footer__inner {
    flex-direction: column;
  }
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo nav toggle";
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--ct-tx-1);
  grid-area: logo;
}

.logo img {
  width: 36px;
  height: 36px;
}

.primary-nav-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  grid-area: nav;
}

.primary-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.primary-nav a {
  color: var(--ct-tx-2);
  font-size: 0.95rem;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--ct-bd-1);
  background: rgba(18, 21, 23, 0.6);
  color: var(--ct-tx-2);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  grid-area: toggle;
}

.nav-toggle__icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--ct-tx-2);
  transition: background 0.2s ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ct-tx-2);
  transition: transform 0.2s ease;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.site-header.nav-open .nav-toggle__icon {
  background: transparent;
}

.site-header.nav-open .nav-toggle__icon::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle__icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.cta {
  background: linear-gradient(120deg, var(--ct-ac-gold-500), var(--ct-ac-gold-600));
  color: #0b0d0e;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
}

.ghost {
  color: var(--ct-ac-river-300);
  font-size: 0.9rem;
}

.ghost.danger {
  color: #d4564a;
}

.ghost.danger:hover {
  color: #e66a5e;
}

.hero {
  position: relative;
  padding: 7rem 0 5rem;
  background-size: cover;
  background-position: center;
}

.hero--immersive {
  padding: 0;
}

.hero--slim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 16, 0.75), rgba(13, 15, 16, 0.95));
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  padding: 6rem 0;
}

.hero__panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--ct-tx-3);
}

.hero h1 {
  font-size: var(--fs-xxl);
  max-width: 820px;
  margin-bottom: 1rem;
}

.hero .lede {
  color: var(--ct-tx-2);
  max-width: 650px;
}

.hero__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.4rem;
  color: var(--ct-tx-2);
}

.hero__list--inline {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem 1.5rem;
}

.hero--slim {
  min-height: 40vh;
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: stretch;
}

.split__panel {
  background: var(--ct-bg-2);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--ct-shadow);
}

.glow-card {
  background: rgba(18, 21, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.glow-card h3 {
  margin: 0.4rem 0 0.8rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.checklist li::before {
  content: "•";
  margin-right: 0.5rem;
  color: var(--ct-ac-river-300);
}

.stat-grid,
.services-grid,
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.services-grid article,
.highlight-grid article {
  background: var(--ct-bg-1);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 1.75rem;
  min-height: 240px;
}

.resume {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
}

.resume__intro .pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.resume__intro .pill-list li {
  border: 1px solid var(--ct-bd-1);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  color: var(--ct-tx-2);
}

.list-dot {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--ct-tx-2);
}

.list-dot li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.list-dot li::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--ct-ac-river-300);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips span {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  color: var(--ct-tx-2);
}

.resume__timeline {
  display: grid;
  gap: 2rem;
}

.resume__timeline article {
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 1.5rem;
  background: rgba(18, 21, 23, 0.75);
  box-shadow: var(--ct-shadow);
}

.resume__footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.cta-card {
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 2rem;
  background: var(--ct-bg-2);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--ct-tx-3);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.case-card {
  background: var(--ct-bg-2);
  border: 1px solid var(--ct-bd-1);
  padding: 1.75rem;
  border-radius: 1rem;
  box-shadow: var(--ct-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card__logo {
  width: 140px;
  height: auto;
}

.project-card__shot {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid var(--ct-bd-1);
  box-shadow: var(--ct-shadow);
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.process__steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.process__steps li {
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 1.5rem;
  background: var(--ct-bg-1);
  box-shadow: var(--ct-shadow);
}

.stack span {
  display: inline-block;
  margin: 0.2rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(183, 206, 222, 0.08);
  color: var(--ct-ac-river-300);
  font-size: 0.85rem;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.story-card figure {
  margin: 0;
  text-align: center;
}

.story-card img {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid var(--ct-bd-1);
}

.attachments,
.notes {
  margin-top: 2.5rem;
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 2rem;
  background: var(--ct-bg-1);
  box-shadow: var(--ct-shadow);
}

.attachment-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.6rem;
}

.attachment-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.attachment-form input[type="file"] {
  padding: 0.4rem;
  background: transparent;
  border: 1px dashed var(--ct-bd-1);
  border-radius: 0.5rem;
  color: var(--ct-tx-2);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.5rem;
}

.profile-card {
  background: var(--ct-bg-2);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  overflow: hidden;
}

.profile-card img {
  width: 100%;
  display: block;
}

.profile-card > div {
  padding: 1.5rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.5rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.principles > div {
  background: var(--ct-bg-1);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 1.75rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.contact--single {
  grid-template-columns: 1fr;
}

.contact--single .contact__intro,
.contact--single .contact__form {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.contact__details {
  display: grid;
  gap: 1.25rem;
}

.contact__details .glow-card {
  height: 100%;
}

.contact__form {
  background: var(--ct-bg-1);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--ct-shadow);
}

.contact__intro ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.message-detail {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.case-showcase {
  padding-top: 2rem;
}

.project-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.project-modal[hidden] {
  display: none;
}

.project-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 15, 22, 0.7);
  backdrop-filter: blur(12px);
}

.project-modal__content {
  position: relative;
  background: var(--ct-bg-1);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: min(1000px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--ct-shadow);
  display: grid;
  gap: 1.5rem;
}

.project-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  color: var(--ct-tx-1);
  font-size: 1.5rem;
}

.project-modal__header {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.project-modal__logo {
  width: 120px;
  height: auto;
}

.project-modal__media {
  display: grid;
  gap: 1rem;
}

.project-modal__hero {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--ct-bd-1);
}

.project-modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.project-modal__gallery img {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--ct-bd-1);
}

.project-detail__hero img {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--ct-bd-1);
}

.project-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.project-detail__gallery img {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--ct-bd-1);
}

.project-detail header {
  margin-bottom: 1rem;
}

.form-row,
form .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-form {
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 1.5rem;
  background: var(--ct-bg-1);
  display: grid;
  gap: 1rem;
}

.gallery-form__row {
  border-bottom: 1px solid var(--ct-bd-1);
  padding-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.gallery-form__row:last-child {
  border-bottom: none;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.modal-open {
  overflow: hidden;
}

/* Honeypot field - hidden via positioning (not display:none for better bot detection) */
.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
}

.honeypot-label {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.captcha {
  margin-top: 0.5rem;
}

/* hCaptcha dark theme styling */
.h-captcha {
  display: flex;
  justify-content: center;
}

.h-captcha iframe {
  border-radius: 0.5rem;
}

input,
textarea,
select {
  width: 100%;
  background: var(--ct-bg-2);
  border: 1px solid var(--ct-bd-1);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--ct-tx-1);
}

button {
  border: none;
  cursor: pointer;
}

.messages {
  background: rgba(183, 206, 222, 0.08);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  width: min(800px, 90vw);
  margin: 4.5rem auto 1rem;
  padding: 1rem 1.5rem;
}

.portal .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portal .project-grid article {
  background: var(--ct-bg-1);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--ct-bd-1);
}

.portal-detail .notes ol {
  list-style: none;
  padding: 0;
}

.portal-detail .notes li {
  border-bottom: 1px solid var(--ct-bd-1);
  padding: 1rem 0;
}

.site-footer {
  margin-top: 5rem;
  padding: 3rem 0 0;
  background: radial-gradient(120% 120% at 10% 0%, rgba(128, 186, 209, 0.12), transparent 45%),
    radial-gradient(90% 120% at 90% 10%, rgba(255, 212, 152, 0.08), transparent 40%),
    var(--ct-bg-0);
  border-top: 1px solid var(--ct-bd-1);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.footer-brand h3 {
  margin: 0;
  font-size: 1.4rem;
}

.footer-brand p {
  margin: 0.2rem 0;
}

.footer-mark {
  width: 64px;
  height: 64px;
  background: rgba(183, 206, 222, 0.12);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  display: grid;
  place-items: center;
  padding: 0.35rem;
}

.footer-mark img {
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-links h4,
.footer-contact h4,
.footer-cta h4 {
  margin-bottom: 0.6rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--ct-tx-1);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ct-accent);
}

.footer-contact p {
  margin: 0.35rem 0;
  color: var(--ct-tx-2);
}

.footer-contact a {
  color: var(--ct-tx-1);
}

.footer-cta {
  background: linear-gradient(140deg, rgba(183, 206, 222, 0.12), rgba(53, 74, 87, 0.12)),
    rgba(12, 14, 15, 0.8);
  border: 1px solid rgba(183, 206, 222, 0.3);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.footer-cta .cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--ct-bd-1);
  margin-top: 2.5rem;
  padding: 1rem 0;
  color: var(--ct-tx-3);
  font-size: 0.9rem;
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-cta .cta {
  box-shadow: 0 10px 30px rgba(255, 212, 152, 0.25);
  padding-inline: 1.6rem;
}

.footer-cta .ghost {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(183, 206, 222, 0.35);
  color: var(--ct-tx-1);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
}

.footer-cta .ghost:hover {
  border-color: var(--ct-ac-river-300);
  color: var(--ct-ac-river-300);
}

.auth {
  padding: 6rem 0 4rem;
  background: radial-gradient(90% 120% at 10% 10%, rgba(183, 206, 222, 0.12), transparent 45%),
    radial-gradient(80% 80% at 90% 20%, rgba(173, 152, 118, 0.16), transparent 40%),
    var(--ct-bg-0);
}

.auth__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.auth__intro h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(28px, 4vw, 38px);
}

.auth__intro .lede {
  font-size: 1.05rem;
  color: var(--ct-tx-2);
  margin: 0 0 0.75rem;
}

.auth__intro .muted {
  color: var(--ct-tx-3);
  margin: 0.25rem 0 0;
}

.auth__card {
  background: rgba(18, 21, 23, 0.9);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--ct-shadow);
  backdrop-filter: blur(6px);
}

.auth__card form {
  display: grid;
  gap: 1rem;
}

.auth__card .field {
  display: grid;
  gap: 0.35rem;
}

.auth__card label {
  font-weight: 600;
  color: var(--ct-tx-2);
}

.auth__card input {
  width: 100%;
  background: var(--ct-bg-2);
  border: 1px solid var(--ct-bd-1);
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  color: var(--ct-tx-1);
  font-size: 1rem;
}

.auth__card input:focus {
  outline: 2px solid rgba(183, 206, 222, 0.45);
  border-color: rgba(183, 206, 222, 0.35);
}

.auth__card .cta.full {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

.auth__card .small {
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo toggle"
      "nav nav";
    gap: 0.75rem 1rem;
    padding: 0.75rem 0;
  }
  .js-enabled .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }
  .js-enabled .primary-nav-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-6px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
  }
  .js-enabled .site-header.nav-open .primary-nav-panel {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    padding-top: 0.75rem;
    transform: translateY(0);
  }
  .primary-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .header-actions .cta,
  .header-actions .ghost {
    width: 100%;
    text-align: center;
  }
  .split,
  .about-grid,
  .contact,
  .resume,
  .resume__footer,
  .hero__grid,
  .story-card {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    order: -1;
  }
}

.documents .document-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.documents .document-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ct-bd-1);
  display: grid;
  gap: 0.35rem;
}

.table-actions {
  display: grid;
  gap: 1.5rem;
}

.table-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.table-filters__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ct-tx-2);
}

.table-filters input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.table-filters .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--ct-bd-1);
  min-height: 44px;
}

.table-actions__row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.table-wrap {
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  overflow-x: auto;
  background: var(--ct-bg-1);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.data-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ct-bd-1);
  vertical-align: top;
}

.data-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ct-tx-3);
}

.data-table td span.muted {
  display: block;
  font-size: 0.8rem;
}

.data-table td.actions {
  text-align: right;
  white-space: nowrap;
}

.data-table td.actions form {
  display: inline;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid transparent;
  margin-right: 0.35rem;
}

.status--ok {
  background: rgba(183, 206, 222, 0.15);
  border-color: rgba(183, 206, 222, 0.4);
  color: var(--ct-tx-1);
}

.status--warn {
  background: rgba(183, 159, 122, 0.12);
  border-color: rgba(183, 159, 122, 0.4);
  color: var(--ct-ac-gold-500);
}

.status--muted {
  background: rgba(183, 206, 222, 0.08);
  border-color: rgba(183, 206, 222, 0.2);
  color: var(--ct-tx-3);
}

.status-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.info-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
}

.info-card {
  background: var(--ct-bg-1);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 1.5rem;
}

.info-card h3 {
  margin-top: 0;
}

.info-card p {
  margin: 0.4rem 0;
  color: var(--ct-tx-2);
}

.info-card__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.doc-section {
  margin-top: 2.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin: 0;
}

.tree-block {
  background: var(--ct-bg-2);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 1rem;
  white-space: pre-wrap;
}

.history-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.history-list li {
  background: var(--ct-bg-1);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.history-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.portal-doc .doc-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.doc-meta {
  color: var(--ct-tx-3);
  margin: 0.4rem 0;
  font-size: 0.9rem;
}

.doc-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-menu {
  position: relative;
}

.share-menu summary {
  list-style: none;
  cursor: pointer;
}

.share-menu summary::-webkit-details-marker {
  display: none;
}

.share-menu__panel {
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  width: min(340px, 90vw);
  border: 1px solid var(--ct-bd-1);
  border-radius: 0.9rem;
  background: var(--ct-bg-1);
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.share-menu:not([open]) .share-menu__panel {
  display: none;
}

.share-menu__link {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.share-menu__link .token-input {
  min-width: 0;
}

.share-menu__panel form {
  margin: 0;
}

.doc-actions .ghost,
.doc-actions .cta,
.doc-actions button.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

@media (max-width: 800px) {
  .share-menu__panel {
    left: 0;
    right: auto;
  }
}

.doc-actions .ghost,
.doc-actions button.ghost {
  border: 1px solid var(--ct-bd-1);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  background: transparent;
}

/* Smooth scrolling with offset for sticky header */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .site-header,
  .primary-nav-panel,
  .nav-toggle__icon,
  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    transition: none;
  }
}

.doc-toc-toggle {
  display: none;
}

.doc-panel {
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 1.5rem;
  background: var(--ct-bg-1);
  margin-bottom: 2rem;
  display: grid;
  gap: 0.75rem;
}

.callout {
  border: 1px solid rgba(183, 206, 222, 0.4);
  background: rgba(183, 206, 222, 0.08);
  border-radius: 1rem;
  padding: 1rem;
}

.callout--warning {
  border-color: rgba(255, 193, 7, 0.5);
  background: rgba(255, 193, 7, 0.1);
}

.token-copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0.5rem 0;
}

.token-input {
  flex: 1;
  font-family: monospace;
  font-size: 0.875rem;
  padding: 0.5rem;
  border: 1px solid rgba(183, 206, 222, 0.3);
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-search {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(183, 206, 222, 0.2);
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.15);
  color: inherit;
  margin-bottom: 0.25rem;
}

.filter-search::placeholder {
  color: rgba(183, 206, 222, 0.5);
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2rem;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: 1.25rem;
}

.doc-body {
  background: var(--ct-bg-1);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1.25rem;
  padding: 2.5rem 3rem;
  box-shadow: var(--ct-shadow);
  line-height: 1.8;
}

.doc-body p {
  margin-bottom: 1.25rem;
}

.doc-body h1,
.doc-body h2,
.doc-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.doc-body h1 {
  font-size: 2rem;
  color: var(--ct-tx-1);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc-body h2 {
  font-size: 1.5rem;
  color: var(--ct-tx-1);
  font-weight: 600;
}

.doc-body h3 {
  font-size: 1.2rem;
  color: var(--ct-ac-river-300);
  font-weight: 600;
}

.doc-body h4 {
  font-size: 1.05rem;
  color: var(--ct-tx-2);
  font-weight: 600;
  margin-top: 1.5rem;
}

.doc-body h1:first-child,
.doc-body h2:first-child,
.doc-body h3:first-child {
  margin-top: 0;
}

.doc-body pre {
  background: var(--ct-bg-2);
  border-radius: 0.75rem;
  padding: 1rem;
  overflow-x: auto;
}

.doc-body code {
  background: rgba(183, 206, 222, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 0.4rem;
}

.doc-body ul,
.doc-body ol {
  padding-left: 1.5rem;
}

.doc-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.doc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}

.doc-tiles__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.doc-tiles__item img {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--ct-bd-1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.doc-tiles__caption {
  font-size: 0.85rem;
  color: var(--ct-tx-3);
}

/* Markdown table styling */
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.doc-body th,
.doc-body td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ct-bd-1);
}

.doc-body th {
  background: var(--ct-bg-2);
  font-weight: 600;
  color: var(--ct-tx-2);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.doc-body tr:hover td {
  background: rgba(183, 206, 222, 0.04);
}

/* Heading anchor offset for sticky header */
.doc-body h1[id],
.doc-body h2[id],
.doc-body h3[id],
.doc-body h4[id],
.doc-body h5[id],
.doc-body h6[id] {
  scroll-margin-top: 6rem;
}

.doc-anchor {
  scroll-margin-top: 6rem;
  height: 0;
}

/* Blockquote styling */
.doc-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--ct-ac-river-300);
  background: rgba(183, 206, 222, 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--ct-tx-2);
}

.doc-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Horizontal rule */
.doc-body hr {
  border: none;
  border-top: 1px solid var(--ct-bd-1);
  margin: 2rem 0;
}

.doc-action-bar {
  position: sticky;
  top: 0.5rem;
  z-index: 5;
  background: var(--ct-bg-1);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.doc-action-bar__primary,
.doc-action-bar__secondary {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.doc-action-bar .ghost,
.doc-action-bar .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.doc-action-bar .ghost {
  border: 1px solid var(--ct-bd-1);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  background: transparent;
}

.doc-toc details {
  background: var(--ct-bg-1);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 1rem;
}

.doc-toc summary {
  cursor: pointer;
  font-weight: 600;
}

.doc-toc summary::marker {
  display: none;
}

.doc-toc summary::-webkit-details-marker {
  display: none;
}

.doc-toc .toc-body {
  margin-top: 0.75rem;
  max-height: calc(100vh - 14rem);
  overflow-y: auto;
}

.doc-toc ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.15rem;
}

/* Nested TOC levels - enhanced depth styling */
.doc-toc ul ul {
  padding-left: 0.75rem;
  margin-top: 0.15rem;
  margin-left: 0.5rem;
  border-left: 2px solid var(--ct-bd-1);
}

/* Third level nesting */
.doc-toc ul ul ul {
  border-left-color: rgba(183, 206, 222, 0.15);
}

.doc-toc li {
  position: relative;
}

/* Top-level TOC items (H1/H2) */
.doc-toc > ul > li > a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ct-tx-2);
  padding: 0.5rem 0.65rem;
}

/* Second-level TOC items (H3) */
.doc-toc ul ul > li > a {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ct-tx-3);
  padding: 0.35rem 0.5rem;
}

/* Third-level TOC items (H4) */
.doc-toc ul ul ul > li > a {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ct-tx-3);
  opacity: 0.85;
  padding: 0.25rem 0.5rem;
}

.doc-toc a {
  display: block;
  border-radius: 0.5rem;
  transition: color 0.15s, background 0.15s;
  line-height: 1.4;
}

.doc-toc a:hover {
  color: var(--ct-tx-1);
  background: rgba(183, 206, 222, 0.08);
  text-decoration: none;
}

.doc-toc a.is-active {
  color: var(--ct-ac-river-300);
  background: rgba(183, 206, 222, 0.12);
  font-weight: 600;
}

/* TOC heading type indicators - different sizes for depth */
.doc-toc > ul > li > a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ct-ac-river-300);
  opacity: 0.5;
  margin-right: 0.6rem;
  vertical-align: middle;
}

.doc-toc ul ul > li > a::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.doc-toc ul ul ul > li > a::before {
  content: "–";
  font-size: 0.75em;
  opacity: 0.4;
  margin-right: 0.4rem;
}

.doc-toc a.is-active::before {
  opacity: 1;
  background: var(--ct-ac-river-300);
}

.doc-form {
  display: grid;
  gap: 1.5rem;
}

.doc-form textarea {
  min-height: 320px;
}

.diff-block {
  background: var(--ct-bg-1);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.diff-block--preview {
  max-height: 140px;
  overflow: hidden;
}

.diff-line {
  display: block;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.85rem;
}

.diff-line.add {
  color: #a5d6a7;
  background: rgba(56, 142, 60, 0.15);
}

.diff-line.remove {
  color: #ef9a9a;
  background: rgba(211, 47, 47, 0.12);
}

.diff-line.meta {
  color: var(--ct-tx-3);
}

.EasyMDEContainer {
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--ct-bg-1);
}

.EasyMDEContainer .editor-toolbar {
  border-bottom: 1px solid var(--ct-bd-1);
  background: var(--ct-bg-1);
}

.EasyMDEContainer .editor-toolbar button {
  color: var(--ct-tx-2);
}

.EasyMDEContainer .editor-toolbar button.active {
  background: rgba(183, 206, 222, 0.18);
}

.EasyMDEContainer .CodeMirror,
.EasyMDEContainer .editor-preview {
  background: var(--ct-bg-2);
  color: var(--ct-tx-1);
}

.editor-icon::before {
  display: inline-block;
  font-weight: 600;
}

.editor-icon-bold::before {
  content: "B";
}

.editor-icon-italic::before {
  content: "I";
}

.editor-icon-heading::before {
  content: "H";
}

.editor-icon-unordered::before {
  content: "*";
}

.editor-icon-ordered::before {
  content: "1";
}

.editor-icon-link::before {
  content: "#";
}

@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    position: static;
    order: -1;
  }

  .doc-toc-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .table-actions__row {
    flex-direction: column;
    align-items: stretch;
  }

  .table-actions__row label {
    width: 100%;
  }
}

.staff-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

.staff-sidebar {
  position: sticky;
  top: 6rem;
}

.staff-nav {
  display: grid;
  gap: 0.5rem;
  background: var(--ct-bg-1);
  border: 1px solid var(--ct-bd-1);
  border-radius: 1rem;
  padding: 0.75rem;
}

.staff-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  color: var(--ct-tx-2);
  text-decoration: none;
}

.staff-nav a.is-active,
.staff-nav a:hover {
  background: rgba(183, 206, 222, 0.12);
  color: var(--ct-tx-1);
}

.staff-main {
  min-width: 0;
}

@media (max-width: 980px) {
  .staff-layout {
    grid-template-columns: 1fr;
    padding-bottom: 6rem;
  }

  .staff-sidebar {
    position: static;
  }

  .staff-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    background: var(--ct-bg-0);
  }

  .staff-nav a {
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.85rem;
  }
}

/* ===== Rich Document Experience ===== */

/* Reading progress bar */
.doc-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ct-ac-river-300), var(--ct-ac-gold-500));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 100;
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

/* Document search widget */
.doc-search {
  margin-bottom: 1rem;
}

.doc-search__input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: var(--ct-bg-2);
  border: 1px solid var(--ct-bd-1);
  border-radius: 0.75rem;
  color: var(--ct-tx-1);
  font-size: 0.9rem;
}

.doc-search__input::placeholder {
  color: var(--ct-tx-3);
}

.doc-search__input:focus {
  outline: 2px solid rgba(183, 206, 222, 0.4);
  border-color: var(--ct-ac-river-300);
}

.doc-search__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: var(--ct-bg-2);
  border-radius: 0.5rem;
}

.doc-search__nav[hidden] {
  display: none;
}

.doc-search__count {
  font-size: 0.8rem;
  color: var(--ct-tx-3);
  flex: 1;
}

.doc-search__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--ct-bd-1);
  border-radius: 0.4rem;
  color: var(--ct-tx-2);
  cursor: pointer;
  font-size: 0.9rem;
}

.doc-search__btn:hover {
  background: rgba(183, 206, 222, 0.12);
  color: var(--ct-tx-1);
}

/* Search highlights */
.search-match {
  background: rgba(212, 168, 67, 0.35);
  border-radius: 2px;
  padding: 0 1px;
}

.search-match--current {
  background: rgba(212, 168, 67, 0.6);
  outline: 2px solid var(--ct-ac-gold-500);
}

/* Heading anchor buttons */
.heading-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.5rem;
  opacity: 0;
  color: var(--ct-tx-3);
  text-decoration: none;
  border-radius: 0.25rem;
  transition: opacity 0.15s, background 0.15s;
  vertical-align: middle;
}

.doc-body h1:hover .heading-anchor,
.doc-body h2:hover .heading-anchor,
.doc-body h3:hover .heading-anchor,
.doc-body h4:hover .heading-anchor {
  opacity: 1;
}

.heading-anchor:hover {
  background: rgba(183, 206, 222, 0.15);
  color: var(--ct-ac-river-300);
  text-decoration: none;
}

.heading-anchor--copied {
  color: #6eb589;
}

/* ===== Document Callouts ===== */
.doc-callout {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--callout-accent, var(--ct-ac-river-300));
  background: var(--callout-bg, rgba(183, 206, 222, 0.08));
  border-radius: 0 0.75rem 0.75rem 0;
}

.doc-callout__icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--callout-accent);
}

.doc-callout__content {
  flex: 1;
  min-width: 0;
}

.doc-callout__content p:first-child {
  margin-top: 0;
}

.doc-callout__content p:last-child {
  margin-bottom: 0;
}

/* Callout variants */
.doc-callout--info {
  --callout-accent: var(--ct-ac-river-300);
  --callout-bg: rgba(183, 206, 222, 0.08);
}

.doc-callout--note {
  --callout-accent: var(--ct-ac-steel-600);
  --callout-bg: rgba(116, 133, 151, 0.08);
}

.doc-callout--tip {
  --callout-accent: #6eb589;
  --callout-bg: rgba(110, 181, 137, 0.08);
}

.doc-callout--warning {
  --callout-accent: #d4a843;
  --callout-bg: rgba(212, 168, 67, 0.08);
}

.doc-callout--danger {
  --callout-accent: #d4564a;
  --callout-bg: rgba(212, 86, 74, 0.08);
}

.doc-callout--success {
  --callout-accent: #7bc96f;
  --callout-bg: rgba(123, 201, 111, 0.08);
}

.doc-callout--example {
  --callout-accent: #9b8cd4;
  --callout-bg: rgba(155, 140, 212, 0.08);
}

/* ===== Task Boxes ===== */
.doc-task {
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--ct-ac-river-400);
  background: rgba(183, 206, 222, 0.06);
  border-radius: 0 0.75rem 0.75rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.doc-task__header {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(183, 206, 222, 0.25);
  color: var(--ct-fg-1);
}

.doc-task__content {
  font-size: 0.95rem;
}

.doc-task__content p {
  margin: 0.5rem 0;
}

.doc-task__content p:first-child {
  margin-top: 0;
}

.doc-task__content p:last-child {
  margin-bottom: 0;
}

/* ===== Role Boxes ===== */
.doc-role {
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid #9b8cd4;
  background: rgba(155, 140, 212, 0.06);
  border-radius: 0 0.75rem 0.75rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.doc-role__header {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(155, 140, 212, 0.25);
  color: var(--ct-fg-1);
}

.doc-role__content {
  font-size: 0.95rem;
}

.doc-role__content p {
  margin: 0.5rem 0;
}

.doc-role__content p:first-child {
  margin-top: 0;
}

.doc-role__content p:last-child {
  margin-bottom: 0;
}

/* ===== Syntax Highlighting (Monokai-inspired) ===== */
.doc-body pre code {
  background: transparent;
  padding: 0;
}

.highlight {
  background: var(--ct-bg-2);
  border: 1px solid var(--ct-bd-1);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.highlight pre {
  margin: 0;
  padding: 0;
  background: transparent;
}

.highlight code {
  background: transparent;
  padding: 0;
  font-family: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Pygments token colors */
.highlight .hll { background-color: rgba(183, 206, 222, 0.15) }
.highlight .c { color: #75715e } /* Comment */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .err { color: #f92672 } /* Error */
.highlight .k { color: #f92672 } /* Keyword */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .mf { color: #ae81ff } /* Number.Float */
.highlight .mh { color: #ae81ff } /* Number.Hex */
.highlight .mi { color: #ae81ff } /* Number.Integer */
.highlight .mo { color: #ae81ff } /* Number.Oct */
.highlight .mb { color: #ae81ff } /* Number.Bin */
.highlight .il { color: #ae81ff } /* Number.Integer.Long */
.highlight .s { color: #e6db74 } /* String */
.highlight .s1 { color: #e6db74 } /* String.Single */
.highlight .s2 { color: #e6db74 } /* String.Double */
.highlight .sa { color: #e6db74 } /* String.Affix */
.highlight .sb { color: #e6db74 } /* String.Backtick */
.highlight .sc { color: #e6db74 } /* String.Char */
.highlight .sd { color: #e6db74 } /* String.Doc */
.highlight .se { color: #ae81ff } /* String.Escape */
.highlight .sh { color: #e6db74 } /* String.Heredoc */
.highlight .si { color: #e6db74 } /* String.Interpol */
.highlight .sr { color: #e6db74 } /* String.Regex */
.highlight .ss { color: #e6db74 } /* String.Symbol */
.highlight .sx { color: #e6db74 } /* String.Other */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .nl { color: #f8f8f2 } /* Name.Label */
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nt { color: #f92672 } /* Name.Tag */
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #a6e22e } /* Name.Function.Magic */
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */
.highlight .o { color: #f92672 } /* Operator */
.highlight .ow { color: #f92672 } /* Operator.Word */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */

/* ===== Definition Lists ===== */
.doc-body dl {
  margin: 1.5rem 0;
}

.doc-body dt {
  font-weight: 600;
  color: var(--ct-tx-1);
  margin-top: 1rem;
}

.doc-body dt:first-child {
  margin-top: 0;
}

.doc-body dd {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--ct-tx-2);
}

/* ===== Enhanced Typography ===== */
.doc-body h2 {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ct-bd-1);
}

.doc-body ul li {
  position: relative;
}

.doc-body > ul {
  list-style: none;
  padding-left: 1.25rem;
}

.doc-body > ul > li::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ct-ac-river-300);
}

.doc-body > ul ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.doc-body > ul ul > li::before {
  display: none;
}

/* Strong/bold emphasis - larger and more apparent */
.doc-body strong {
  color: var(--ct-tx-1);
  font-weight: 700;
  font-size: 1.02em;
  letter-spacing: 0.01em;
}

/* Emphasized text (italics) */
.doc-body em {
  color: var(--ct-ac-gold-500);
  font-style: italic;
}

/* Lists with better spacing */
.doc-body ul,
.doc-body ol {
  margin-bottom: 1.25rem;
}

.doc-body li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.doc-body li:last-child {
  margin-bottom: 0;
}

/* Nested lists */
.doc-body ul ul,
.doc-body ol ol,
.doc-body ul ol,
.doc-body ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Checkbox lists */
.doc-body li input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.1);
}

/* ===== Print Styles ===== */
@media print {
  .doc-progress,
  .doc-search,
  .doc-toc,
  .doc-action-bar,
  .portal-header,
  .portal-footer,
  .site-header,
  .site-footer,
  .heading-anchor {
    display: none !important;
  }

  .doc-layout {
    display: block;
  }

  .doc-body {
    border: none;
    box-shadow: none;
    padding: 0;
    background: white;
    color: black;
  }

  .doc-body a {
    color: black;
    text-decoration: underline;
  }

  .doc-body pre,
  .highlight {
    border: 1px solid #ccc;
    background: #f5f5f5;
  }

  .doc-callout {
    border-left: 3px solid #666;
    background: #f9f9f9;
  }

  body {
    background: white;
    color: black;
  }
}

/* --- Marketing home refresh --- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: var(--s-8) 0;
}

/* Override .container styles when inside hero - higher specificity (0,2,0) beats .container (0,1,0) */
.hero > .container {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--grad-horizon);
  z-index: -1;
}

.hero__glow {
  position: absolute;
  top: -10%;
  right: 10%;
  width: 60%;
  height: 50%;
  background: radial-gradient(50% 50% at center, rgba(183, 206, 222, 0.15), transparent);
  pointer-events: none;
}

.hero__content {
  text-align: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-xxl);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--ct-tx-1);
  margin-bottom: var(--s-4);
}

.hero__lede {
  font-size: var(--fs-lg);
  color: var(--ct-tx-2);
  margin-bottom: var(--s-6);
}

.hero--slim {
  min-height: 40vh;
  background-size: cover;
  background-position: center;
}

.hero--slim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 16, 0.7), rgba(13, 15, 16, 0.9));
}

.hero--slim .hero__inner {
  position: relative;
  z-index: 1;
}

.proof-grid {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 900px) {
  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.proof-card {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--ct-bd-1);
  background: var(--ct-bg-2);
  box-shadow: var(--elev-1);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.proof-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(174, 200, 218, 0.12);
  color: var(--ct-ac-river-300);
}

.work-grid {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-card .card__title {
  font-size: var(--fs-md);
}

.work-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.work-card__stack span {
  font-size: var(--fs-xs);
  padding: 4px 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--ct-bd-1);
  color: var(--ct-tx-2);
}

.cta-panel {
  background: linear-gradient(135deg, rgba(183, 206, 222, 0.08), rgba(183, 159, 122, 0.12));
  border: 1px solid var(--ct-bd-1);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  text-align: center;
  box-shadow: var(--elev-1);
}

.cta-panel h2 {
  font-family: var(--font-display);
  margin-bottom: var(--s-3);
}

.cta-panel p {
  color: var(--ct-tx-2);
  margin-bottom: var(--s-5);
}
