/* ============ RESET & BASE ============ */
:root {
  --font-display: "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", monospace;
  --type-h1: clamp(34px, 4.8vw, 52px);
  --type-h1-line: 1.1;
  --type-h2: clamp(25px, 2.8vw, 36px);
  --type-h2-line: 1.14;
  --type-h3: 22px;
  --type-h3-line: 1.16;
  --type-lead: 17px;
  --type-lead-line: 29px;
  --type-body: 16px;
  --type-body-line: 28px;
  --type-body-sm: 15px;
  --type-body-sm-line: 26px;
  --type-caption: 13px;
  --type-title-weight: 600;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  background: #F8F7F4;
  color: #111827;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 767px) {
  body {
    margin-inline-start: 8px;
    margin-inline-end: 8px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}
a { color: inherit; text-decoration: none; }
a,
button {
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400 600;
  font-display: block;
  src: url('/assets/fonts/material-symbols-outlined-subset.woff2') format('woff2');
}
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 450, 'GRAD' 0, 'opsz' 24;
  flex-shrink: 0;
}

/* ============ CONSTRUCTION GATE ============ */
.construction-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #F8F7F4;
  color: #111827;
}
.site-locked {
  min-height: 100vh;
  overflow: hidden;
}
.site-locked .construction-gate { display: flex; }
.site-locked .nav,
.site-locked .mobile-app-nav,
.site-locked #app,
.site-locked .footer {
  visibility: hidden;
  pointer-events: none;
}
.construction-gate__content {
  max-width: 620px;
  text-align: center;
}
.construction-gate__eyebrow {
  color: #6B7280;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.construction-gate h1 {
  font-size: clamp(28px, 4.4vw, 38px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.025em;
  max-width: 440px;
  margin: 0 auto 22px;
  text-align: left;
}
.construction-gate p {
  color: #4B5563;
  font-size: 17px;
}
.construction-gate__quote {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 0 32px;
  text-align: left;
}
.construction-gate__quote p {
  color: #111827;
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.construction-gate__quote p::before { content: "“"; }
.construction-gate__quote p::after { content: "”"; }
.construction-gate__quote,
.construction-gate__quote p {
  quotes: none;
}
.construction-gate__status {
  max-width: 56ch;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid #E5E7EB;
  color: #6B7280;
  font-size: 15px;
  line-height: 25px;
}
.construction-gate__contact {
  margin-top: 22px;
  color: #4B5563;
  font-size: 15px;
  line-height: 26px;
}
.construction-gate__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.construction-gate__actions .btn {
  min-height: 42px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 14px;
}
.construction-gate__actions .btn:hover {
  background: #F3F4F6;
}
.construction-gate__footer {
  position: fixed;
  right: 24px;
  bottom: 20px;
  text-align: right;
}
.construction-gate .construction-gate__updated {
  color: #80848A;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 14px;
}
.construction-gate .construction-gate__preview-hint {
  margin-top: 4px;
  color: #80848A;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 14px;
}
.construction-gate .construction-gate__preview-link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #80848A;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.construction-gate .construction-gate__preview-link:hover {
  color: #111827;
}
@media (max-width: 520px) {
  .construction-gate__footer {
    right: 16px;
    bottom: 14px;
  }
  .construction-gate .construction-gate__updated,
  .construction-gate .construction-gate__preview-hint {
    font-size: 12px;
  }
}
.email-copy-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: baseline;
}
.email-copy-link:hover .email-copy-link__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-14px);
}
.email-copy-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.email-copy-link:hover .email-copy-link__icon {
  opacity: 1;
}
.email-copy-link__tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
.email-copy-link:hover .email-copy-link__tooltip,
.email-copy-link.copied .email-copy-link__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-14px);
}
.email-copy-link.copied .email-copy-link__tooltip {
  background: #5B4BFF;
}

/* ============ LAYOUT ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

.section { padding: 32px 0; }
@media (min-width: 768px) { .section { padding: 48px 0; } }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 247, 244, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E5E7EB;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav__links { display: none; align-items: center; gap: 32px; }
@media (min-width: 768px) { .nav__links { display: flex; } }
.theme-toggle.nav__theme-mobile { display: inline-flex; margin-left: auto; }
.nav__links a[data-link] {
  font-size: 14px;
  font-weight: 500;
  color: #4B5563;
  display: inline-flex;
  align-items: center;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, font-weight 0.2s;
}
.nav__links a[data-link]:hover,
.nav__links a[data-link].active {
  color: #111827;
  font-weight: 700;
  border-color: #111827;
}
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #111827;
}
@media (min-width: 768px) { .nav__toggle { display: none; } }
.nav__mobile {
  display: flex; flex-direction: column; gap: 16px;
  padding: 0 20px;
  border-top: 1px solid transparent;
  background: #F8F7F4;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.18s ease, opacity 0.16s ease, transform 0.16s ease, padding 0.18s ease, border-color 0.16s ease;
}
.nav__mobile[hidden] { display: none; }
.nav__mobile.is-open {
  padding: 16px 20px 24px;
  border-top-color: #E5E7EB;
  max-height: 280px;
  opacity: 1;
  transform: translateY(0);
}
.nav__mobile a[data-link] { color: #111827; font-size: 16px; font-weight: 500; }
.nav__mobile a[data-link].active { color: #5B4BFF; }
.nav__mobile-theme { align-self: flex-start; }
.nav__toggle .material-symbols-outlined { font-size: 28px; }
@media (prefers-reduced-motion: reduce) {
  .nav__mobile { transition: none; }
}
.theme-toggle {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  outline-offset: 4px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: #F3F4F6;
}
@media (min-width: 768px) {
  .theme-toggle.nav__theme-mobile { display: none; }
}
.theme-toggle__icon {
  position: relative;
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.theme-toggle__sun,
.theme-toggle__contrast,
.theme-toggle__moon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  font-size: 18px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.theme-toggle__contrast,
.theme-toggle__moon {
  opacity: 0;
  transform: translateY(12px) scale(0.9);
}
html[data-theme="dark"] .theme-toggle__sun {
  opacity: 0;
  transform: translateY(-12px) scale(0.9);
}
html[data-theme="dark"] .theme-toggle__contrast {
  opacity: 1;
  transform: translateY(0) scale(1);
}
html[data-theme="night"] .theme-toggle__sun,
html[data-theme="night"] .theme-toggle__contrast {
  opacity: 0;
  transform: translateY(-12px) scale(0.9);
}
html[data-theme="night"] .theme-toggle__moon {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.theme-toggle__tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 5;
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 10px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.theme-toggle__tooltip-message {
  font-weight: 600;
  white-space: nowrap;
}
.theme-toggle__states {
  display: grid;
  gap: 4px;
}
.theme-toggle__state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}
.theme-toggle__state::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.theme-toggle__state.is-active {
  color: #fff;
}
.theme-toggle__state.is-active::after {
  background: currentColor;
  box-shadow: none;
}
.theme-toggle__state.is-next {
  color: rgba(255, 255, 255, 0.92);
}
.theme-toggle--notice .theme-toggle__tooltip {
  min-width: max-content;
  border-radius: 999px;
  padding: 7px 10px;
}
.theme-toggle--notice .theme-toggle__states {
  display: none;
}
.theme-toggle:hover .theme-toggle__tooltip,
.theme-toggle:focus-visible .theme-toggle__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.theme-toggle.theme-toggle--tooltip-hidden .theme-toggle__tooltip {
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
}
.theme-toggle.theme-toggle--tooltip-shown .theme-toggle__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.mobile-app-nav {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  min-height: 72px;
  padding: 8px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.16);
  backdrop-filter: blur(14px);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.mobile-app-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
}
.mobile-app-nav a,
.mobile-app-nav button {
  display: flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border-radius: 16px;
  color: #4B5563;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  outline-offset: 3px;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.mobile-app-nav a:hover,
.mobile-app-nav button:hover,
.mobile-app-nav button:focus-visible,
.mobile-app-nav a.active {
  background: #F3F4F6;
  color: #111827;
}
.mobile-app-nav a:active,
.mobile-app-nav button:active {
  background: #E5E7EB;
  border-radius: 16px;
  transform: scale(0.97);
}
.mobile-app-nav a.active .mobile-app-nav__icon {
  color: #111827;
  font-variation-settings: 'FILL' 0, 'wght' 520, 'GRAD' 0, 'opsz' 24;
}
.mobile-app-nav__icon {
  font-size: 24px;
}
.mobile-app-nav__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav__theme-mobile .theme-toggle__tooltip {
  left: auto;
  right: 0;
  transform: translateY(4px);
}
.nav__theme-mobile:hover .theme-toggle__tooltip,
.nav__theme-mobile:focus-visible .theme-toggle__tooltip {
  transform: translateY(0);
}
.nav__theme-mobile.theme-toggle--tooltip-hidden .theme-toggle__tooltip {
  transform: translateY(4px);
}
.nav__theme-mobile.theme-toggle--tooltip-shown .theme-toggle__tooltip {
  transform: translateY(0);
}
@media (hover: none), (pointer: coarse) {
  .theme-toggle:hover .theme-toggle__tooltip,
  .theme-toggle:focus-visible .theme-toggle__tooltip {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }
  .theme-toggle.theme-toggle--tooltip-shown .theme-toggle__tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .nav__theme-mobile:hover .theme-toggle__tooltip,
  .nav__theme-mobile:focus-visible .theme-toggle__tooltip {
    transform: translateY(4px);
  }
  .nav__theme-mobile.theme-toggle--tooltip-shown .theme-toggle__tooltip {
    transform: translateY(0);
  }
}
@media (min-width: 768px) {
  .mobile-app-nav { display: none; }
}
@media (max-width: 767px) {
  .nav__mobile { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-app-nav,
  .theme-toggle,
  .theme-toggle__sun,
  .theme-toggle__contrast,
  .theme-toggle__moon,
  .theme-toggle__tooltip { transition: none; }
}

/* ============ PAGE TRANSITIONS ============ */
.reveal-item {
  opacity: 0;
  transform: translateY(-8px);
  animation: revealDown 0.24s ease forwards;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes revealDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#app.is-exiting > section {
  opacity: 0;
  transform: translateY(-8px);
  animation: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    animation: none;
  }
  #app.is-exiting > section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--sm { padding: 8px 16px; font-size: 14px; font-weight: 500; }
.btn--primary { background: #5B4BFF; color: #fff; }
.btn--primary:hover { background: #4C3EE0; }
.btn--ghost { background: transparent; color: #111827; border: 1px solid #D1D5DB; }
.btn--ghost:hover { background: #F3F4F6; }
.btn[download][href*="CV_Cesar_Cespede_product_designer.pdf"] { min-width: 150px; }
.icon { font-size: 1.15em; vertical-align: -0.2em; }
.cv-download--loading,
.cv-download--feedback {
  gap: 8px;
  min-width: 150px;
}
.cv-download--feedback {
  animation: cvFeedbackPop 0.22s ease;
}
.btn.cv-download--feedback {
  background: #15803D;
  border-color: #15803D;
  color: #fff;
}
.contact-link.cv-download--feedback {
  border-color: #15803D;
  background: #F0FDF4;
  color: #111827;
}
.contact-link.cv-download--feedback .contact-link__icon {
  background: #DCFCE7;
  color: #15803D;
}
.cv-download__spinner {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  animation: cvDownloadSpin 0.55s linear infinite;
  flex-shrink: 0;
}
.contact-link__icon .cv-download__spinner {
  width: 20px;
  height: 20px;
}
.cv-download__face {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(3px) scale(0.88);
  animation: cvFaceIn 0.18s ease forwards;
}
.contact-link__icon .cv-download__face {
  width: 22px;
  height: 22px;
  background: transparent;
  color: #15803D;
}
.cv-download__typed {
  display: inline-block;
  min-width: 82px;
  text-align: left;
}
.contact-link__value .cv-download__typed { min-width: 128px; }
.cv-download--leaving {
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.contact-link .cv-download__face,
.footer__links .cv-download__face {
  background: #DCFCE7;
  color: #15803D;
}

@media (prefers-reduced-motion: reduce) {
  .cv-download__spinner,
  .cv-download__face,
  .cv-download--loading,
  .cv-download--feedback,
  .cv-download--leaving,
  .form__submit--sending .form__submit-icon,
  .form__submit--success .form__submit-icon,
  .form__submit--success .form__submit-old,
  .form__submit--success .form__submit-new,
  .form__submit--success .form__submit-copy,
  .form__submit--error {
    animation: none !important;
    transition: none !important;
  }

  .cv-download__typed,
  .form__submit--success .form__submit-copy {
    opacity: 1 !important;
    transform: none !important;
    width: auto !important;
  }
}
@keyframes cvDownloadSpin {
  to { transform: rotate(360deg); }
}
@keyframes cvFaceIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes cvFeedbackPop {
  0% { transform: scale(0.98); }
  100% { transform: scale(1); }
}
.brand-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}
.brand-icon--linkedin {
  color: #0A66C2;
  fill: currentColor;
}

/* ============ EMAIL MODAL ============ */
.email-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.38);
  backdrop-filter: blur(4px);
  animation: emailModalFade 0.16s ease forwards;
}
.email-modal-backdrop--closing {
  animation: emailModalFadeOut 0.16s ease forwards;
}
.email-modal {
  position: relative;
  width: min(100%, 440px);
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
  text-align: center;
  animation: emailModalIn 0.18s ease forwards;
}
.email-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  border-radius: 999px;
}
.email-modal__close:hover { background: #F3F4F6; color: #111827; }
.email-modal__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #F3F0FF;
  color: #5B4BFF;
}
.email-modal__icon .material-symbols-outlined { font-size: 26px; }
.email-modal h2 {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.email-modal p {
  color: #4B5563;
  font-size: 15px;
  line-height: 24px;
}
.email-modal__actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin-top: 24px;
}
.email-modal__actions .btn {
  width: 100%;
  min-height: 44px;
}
@media (min-width: 520px) {
  .email-modal__actions {
    flex-direction: row;
    justify-content: center;
  }
  .email-modal__actions .btn { width: auto; }
}
@keyframes emailModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes emailModalFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes emailModalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============ HERO ============ */
.hero { padding: 32px 0; }
@media (min-width: 768px) { .hero { padding: 48px 0; } }
.hero__grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1fr 420px; gap: 48px; } }
.eyebrow { color: #5B4BFF; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 18px; text-transform: uppercase; }
.hero__title,
.page-title,
.case-title,
.not-found-title {
  font-size: var(--type-h1);
  line-height: var(--type-h1-line);
  font-weight: var(--type-title-weight);
  letter-spacing: -0.02em;
}
.hero__title { margin-bottom: 20px; }
.hero__lead { color: #4B5563; font-size: var(--type-lead); line-height: var(--type-lead-line); max-width: 58ch; margin-bottom: 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero__note { color: #6B7280; font-size: 14px; line-height: 22px; }

/* ============ METRICS ============ */
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.metric { padding: 18px 0 0; border-top: 1px solid #D1D5DB; }
.metric__value {
  font-family: var(--font-mono);
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.metric__label {
  color: #111827;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 12px;
  text-transform: uppercase;
}
.metric__detail { color: #6B7280; font-size: 12px; line-height: 18px; max-width: 28ch; margin-top: 5px; }

/* ============ HEADINGS ============ */
.h2 { font-size: var(--type-h2); line-height: var(--type-h2-line); font-weight: var(--type-title-weight); letter-spacing: -0.02em; margin-bottom: 14px; }
.lead { color: #4B5563; font-size: var(--type-lead); line-height: var(--type-lead-line); max-width: 62ch; margin-bottom: 40px; }
.h3 { font-size: var(--type-h3); line-height: var(--type-h3-line); font-weight: var(--type-title-weight); letter-spacing: -0.015em; margin-bottom: 24px; }
.body-copy { color: #4B5563; font-size: var(--type-body); line-height: var(--type-body-line); }
.body-copy--spaced { margin-bottom: 20px; }
.body-copy--section-end { margin-bottom: 40px; }

/* ============ CAPABILITIES GRID ============ */
.cap-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }
.cap-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 24px; }
@media (min-width: 768px) { .cap-card { padding: 28px; } }
.cap-card__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 10px;
  background: #F3F0FF;
  color: #5B4BFF;
}
.cap-card__icon .material-symbols-outlined { font-size: 26px; }
.cap-card h3 { font-size: 18px; font-weight: var(--type-title-weight); line-height: 26px; margin-bottom: 12px; }
.cap-card p { color: #4B5563; font-size: var(--type-body-sm); line-height: var(--type-body-sm-line); }

/* ============ CHIPS ============ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip { background: #F3F0FF; color: #5B4BFF; padding: 6px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.chip--gray { background: #F3F4F6; color: #111827; }
.chip--success { background: #F0FDF4; color: #166534; padding: 6px 12px; }
.chip--featured { background: #FEF3C7; color: #92400E; }

/* ============ TIMELINE ============ */
.timeline { border-left: 2px solid #E5E7EB; padding-left: 24px; max-width: 720px; }
.timeline__item { position: relative; padding-bottom: 24px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -31px; top: 4px;
  width: 12px; height: 12px; border-radius: 999px;
  border: 2px solid #D1D5DB; background: #fff;
}
.timeline__item--current .timeline__dot { border-color: #5B4BFF; background: #5B4BFF; }
.timeline__item--active .timeline__dot { border-color: #5B4BFF; }
.timeline__period { color: #111827; font-size: var(--type-body-sm); font-weight: var(--type-title-weight); }
.timeline__period--muted { color: #6B7280; font-weight: 400; }
.timeline__org { color: #4B5563; font-size: 14px; }

/* ============ PLACEHOLDER ============ */
.placeholder,
.image-slot {
  position: relative;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background:
    repeating-linear-gradient(45deg, #EDE9E3 0 12px, #F8F7F4 12px 24px);
  border: 1px dashed #D1D5DB;
  color: #6B7280;
  font-size: 13px; font-weight: 500;
  border-radius: 12px;
  padding: 24px;
  min-height: 200px;
  overflow: hidden;
}
.image-slot {
  flex-direction: column;
  margin: 0;
}
.image-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-slot figcaption {
  position: relative;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 24px;
}
.image-slot--missing figcaption { display: flex; }
.image-slot figcaption span {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}
.image-slot figcaption code {
  max-width: 100%;
  color: #6B7280;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ============ PROJECT CARDS ============ */
.project-list { display: flex; flex-direction: column; gap: 32px; }
.home-projects-cta { display: flex; justify-content: center; margin-top: 32px; }
.project-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; overflow: hidden; position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12); }
a.project-card__action::after { content: ""; position: absolute; inset: 0; }
@media (prefers-reduced-motion: reduce) {
  .project-card { transition: none; }
  .project-card:hover { transform: none; }
}
.project-card__media { min-height: 240px; height: 100%; border-radius: 0; border: 0; padding: 0; }
@media (min-width: 768px) { .project-card__media { min-height: 320px; } }
@media (min-width: 768px) {
  .project-list .project-card { flex-direction: row-reverse; }
  .project-list .project-card__media-wrap {
    flex: 0 0 44%;
    width: 44%;
  }
  .project-list .project-card__body { min-width: 0; }
}
.project-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
@media (min-width: 768px) { .project-card__body { padding: 32px; } }
.project-card__cat { color: #5B4BFF; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 8px; text-transform: uppercase; }
.project-card__title { font-size: var(--type-h3); line-height: var(--type-h3-line); font-weight: var(--type-title-weight); letter-spacing: -0.015em; margin-bottom: 10px; }
.project-card__sub { color: #4B5563; font-size: var(--type-body-sm); line-height: var(--type-body-sm-line); max-width: 62ch; margin-bottom: 16px; }
.project-card__role { color: #6B7280; font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.project-card__highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px transparent;
  color: #5B4BFF;
  font-size: 15px;
  font-weight: 600;
}
.link-arrow:hover { color: #4C3EE0; }

/* ============ STRENGTHS ============ */
.strengths { display: grid; gap: 24px; }
@media (min-width: 768px) { .strengths { grid-template-columns: 1fr 1fr; } }
.strength { border-left: 2px solid #5B4BFF; padding: 4px 0 4px 24px; }
.strength h3 { font-size: 18px; font-weight: var(--type-title-weight); margin-bottom: 8px; }
.strength p { color: #4B5563; font-size: var(--type-body-sm); line-height: var(--type-body-sm-line); }

/* ============ ABOUT PREVIEW ============ */
.about-card {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 14px;
  padding: 24px; display: grid; gap: 24px; align-items: center;
  position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12); }
a.about-card__action::after { content: ""; position: absolute; inset: 0; }
@media (prefers-reduced-motion: reduce) {
  .about-card { transition: none; }
  .about-card:hover { transform: none; }
}
@media (min-width: 768px) { .about-card { padding: 32px; grid-template-columns: 1fr 200px; } }

/* ============ CONTACT CTA ============ */
.cta-center { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-center .h2 { margin-bottom: 16px; }
.cta-center p { color: #4B5563; font-size: var(--type-body); line-height: var(--type-body-line); max-width: 560px; margin: 0 auto 24px; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ============ PROJECTS PAGE ============ */
.page-title { margin-bottom: 14px; }
.page-sub { color: #4B5563; font-size: var(--type-lead); line-height: var(--type-lead-line); max-width: 62ch; margin-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  padding: 8px 16px; border-radius: 999px;
  background: #fff; color: #4B5563; border: 1px solid #D1D5DB;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; transition: all 0.2s;
}
.filter:hover { background: #F3F4F6; }
.filter.active { background: #5B4BFF; color: #fff; border-color: #5B4BFF; }
.proj-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
.proj-grid .project-card { display: flex; flex-direction: column; height: 100%; }
.proj-grid .project-card__body { display: flex; flex: 1; flex-direction: column; }
.project-card__action { align-self: flex-end; min-width: 98px; margin-top: auto; }
.project-card__action--muted { color: #6B7280; font-size: 13px; }
.proj-grid .project-card--featured { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .proj-grid .project-card--featured { flex-direction: row-reverse; }
  .proj-grid .project-card--featured .project-card__media-wrap { flex: 0 0 44%; width: 44%; }
}
.project-card__media-wrap { position: relative; }
.project-card__featured-chip { position: absolute; top: 16px; right: 16px; z-index: 1; }

/* ============ CASE STUDY ============ */
.case-view { position: relative; }
.case-backbar {
  position: sticky;
  top: 64px;
  z-index: 45;
  padding-top: 14px;
  padding-bottom: 12px;
  background: rgba(248, 247, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.78);
}
.case-hero { padding-top: 20px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #4B5563;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}
.back-link:hover {
  color: #111827;
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .case-backbar {
    top: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .case-hero { padding-top: 16px; }
  .back-link {
    font-size: 13px;
  }
}
.case-title { margin-bottom: 18px; }
.case-sub { color: #4B5563; font-size: var(--type-lead); line-height: var(--type-lead-line); max-width: 62ch; margin-bottom: 24px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 24px; }
.case-meta__label { color: #6B7280; font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.case-meta__value { color: #111827; font-size: 14px; font-weight: 500; }
.case-section { padding: 24px 0; }
@media (min-width: 768px) { .case-section { padding: 32px 0; } }
.case-section h2 { font-size: var(--type-h2); line-height: var(--type-h2-line); font-weight: var(--type-title-weight); letter-spacing: -0.015em; margin-bottom: 16px; }
.case-text { color: #4B5563; font-size: var(--type-body); line-height: var(--type-body-line); max-width: 68ch; }
.case-text strong, .about-paras strong, .proves p strong, .decision p strong { color: #111827; font-weight: 600; }

.bullet-grid { display: grid; gap: 12px; max-width: 720px; }
@media (min-width: 640px) { .bullet-grid { grid-template-columns: 1fr 1fr; } }
.bullet {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; padding: 12px 16px;
}
.bullet__dot { width: 6px; height: 6px; border-radius: 999px; background: #5B4BFF; margin-top: 8px; flex-shrink: 0; }
.bullet__text { color: #4B5563; font-size: 14px; line-height: 22px; }

.role-list { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.role-list li { display: flex; align-items: flex-start; gap: 12px; }
.role-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px;
  background: #0F766E; margin-top: 10px; flex-shrink: 0;
}
.role-list li span { color: #4B5563; font-size: var(--type-body-sm); line-height: var(--type-body-sm-line); }

.decisions { display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
.decision { border-left: 2px solid #5B4BFF; padding-left: 24px; }
.decision__num { color: #6B7280; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 4px; }
.decision h3 { font-size: 19px; line-height: var(--type-h3-line); font-weight: var(--type-title-weight); letter-spacing: -0.015em; margin-bottom: 8px; }
.decision p { color: #4B5563; font-size: var(--type-body-sm); line-height: var(--type-body-sm-line); }

.case-impact__hook { color: #4B5563; font-size: var(--type-lead); line-height: var(--type-lead-line); font-weight: 400; margin-bottom: 16px; max-width: 720px; }
.case-impact__hook strong { color: #111827; font-weight: 600; }

.results-grid { display: grid; gap: 12px; max-width: 720px; }
@media (min-width: 640px) { .results-grid { grid-template-columns: 1fr 1fr; } }
.result {
  background: #F0FDF4; border: 1px solid #BBF7D0;
  border-radius: 10px; padding: 12px 16px;
  color: #166534; font-size: 14px; font-weight: 500;
}

.proves {
  background: #F3F0FF; border: 1px solid #DDD6FE;
  border-radius: 14px; padding: 24px; max-width: 720px;
}
@media (min-width: 768px) { .proves { padding: 32px; } }
.proves h2 { font-size: var(--type-h3); line-height: var(--type-h3-line); font-weight: var(--type-title-weight); letter-spacing: -0.015em; margin-bottom: 16px; }
.proves p { color: #4B5563; font-size: var(--type-body); line-height: var(--type-body-line); }

.next-project { padding: 24px 0; border-top: 1px solid #E5E7EB; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.next-project__label { color: #6B7280; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 8px; text-transform: uppercase; }
.next-project__col--end { text-align: right; margin-left: auto; }
.next-project a {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: var(--type-h3); font-weight: var(--type-title-weight); letter-spacing: -0.015em;
  color: #111827; transition: color 0.2s;
}
.next-project a:hover { color: #5B4BFF; }
@media (max-width: 767px) {
  .next-project { flex-direction: column; gap: 20px; }
  .next-project__col--end { text-align: left; margin-left: 0; }
}

.screenshots-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .screenshots-grid { grid-template-columns: 1fr 1fr; } }
.screenshots-grid .placeholder,
.screenshots-grid .image-slot { min-height: 220px; }

.case-diagram__frame--landscape { display: none; }
.case-diagram__group { display: grid; gap: 20px; align-items: start; }
.case-diagram__item { display: grid; gap: 18px; min-width: 0; justify-items: center; }
.case-diagram__copy {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
}
.case-diagram__title {
  width: 100%;
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
  font-weight: var(--type-title-weight);
  letter-spacing: -0.015em;
}
.case-diagram__text {
  width: 100%;
  margin: 0;
  color: #4B5563;
  font-size: var(--type-body-sm);
  line-height: var(--type-body-sm-line);
}
.case-diagram__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 40px;
  margin: 0 auto;
  color: #5B4BFF;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}
.case-diagram__arrow-symbol--right { display: none; }
.case-diagram__arrow-symbol--down { display: inline; }
.case-diagram__frame--standalone { display: block; width: 100%; min-width: 0; }
.case-diagram--dual .case-diagram__frame,
.case-diagram--dual .case-diagram__frame svg {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.case-diagram__frame:focus-visible { outline: 2px solid #5B4BFF; outline-offset: 4px; border-radius: 8px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 1000;
  background: #111827;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }
.case-diagram__frame--mobile svg,
.case-diagram__frame--landscape svg,
.case-diagram__frame--standalone svg { width: 100%; height: auto; display: block; }
.case-diagram__caption { margin-top: 12px; color: #4B5563; font-size: 0.9rem; }
@media (min-width: 768px) {
  .case-diagram__frame--mobile { display: none; }
  .case-diagram__frame--landscape { display: block; }
  .case-diagram--dual .case-diagram__group { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 24px; }
  .case-diagram__title { font-size: 19px; }
  .case-diagram__arrow { margin-top: clamp(240px, calc(150px + 15vw), 300px); }
  .case-diagram__arrow-symbol--right { display: inline; }
  .case-diagram__arrow-symbol--down { display: none; }
}

/* ============ ABOUT PAGE ============ */
.about-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 240px; } }
.about-paras { display: flex; flex-direction: column; gap: 20px; max-width: 68ch; margin-bottom: 48px; }
.about-paras p { color: #4B5563; font-size: var(--type-body); line-height: var(--type-body-line); }
.about-section-title { font-size: var(--type-h3); line-height: var(--type-h3-line); font-weight: var(--type-title-weight); letter-spacing: -0.015em; margin-bottom: 16px; }
.about-section-title--spaced { margin-top: 48px; }
.education-list {
  display: grid;
  gap: 10px;
  max-width: 720px;
}
.education-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
}
.education-item__title {
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}
.education-item__org {
  color: #6B7280;
  font-size: 13px;
  line-height: 20px;
  margin-top: 2px;
}
.education-item__year {
  flex-shrink: 0;
  color: #5B4BFF;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.personal-note {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 68ch;
  padding: 24px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-left: 3px solid #5B4BFF;
  border-radius: 12px;
}
.personal-note p {
  color: #4B5563;
  font-size: var(--type-body);
  line-height: var(--type-body-line);
}
@media (max-width: 520px) {
  .education-item {
    flex-direction: column;
    gap: 6px;
  }
}
.sticky-photo { position: sticky; top: 96px; min-height: 300px; width: 100%; }

/* ============ CONTACT PAGE ============ */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.contact-links { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) {
  .contact-links {
    --contact-input-height: 52px;
    --contact-textarea-height: 136px;
    --contact-label-height: 22px;
    --contact-label-gap: 6px;
    --contact-form-gap: 16px;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: var(--contact-form-gap);
    height: calc(
      var(--contact-label-height) + var(--contact-label-gap) + var(--contact-input-height) +
      var(--contact-label-height) + var(--contact-label-gap) + var(--contact-input-height) +
      (var(--contact-label-height) + var(--contact-label-gap) + var(--contact-textarea-height)) +
      var(--contact-form-gap) + var(--contact-form-gap)
    );
    padding-top: 28px;
  }
}
.contact-link {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  padding: 20px; transition: border-color 0.2s;
}
.contact-link:hover { border-color: #5B4BFF; }
.contact-link__icon {
  width: 40px; height: 40px; border-radius: 999px;
  background: #F3F0FF; color: #5B4BFF;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact-link__label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-link__value { color: #4B5563; font-size: 14px; }

.form { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.form label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; display: block; margin-bottom: 6px; color: #111827; }
.form input, .form textarea {
  width: 100%; padding: 12px 16px;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 10px;
  font-family: inherit; font-size: 15px; color: #111827;
  transition: border-color 0.2s;
}
.form input { height: 52px; }
.form input:focus, .form textarea:focus { outline: none; border-color: #5B4BFF; box-shadow: 0 0 0 3px rgba(91, 75, 255, 0.25); }
.form textarea {
  min-height: 136px;
  resize: vertical;
}
.form button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.form__submit {
  --submit-normal-width: 112px;
  --submit-success-width: min(250px, calc(100vw - 150px));
  width: 100%;
  min-height: 48px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.form__submit-icon {
  position: relative;
  z-index: 2;
  transform-origin: 50% 50%;
}
.form__submit-text {
  min-width: var(--submit-normal-width);
  text-align: center;
}
.form__submit-copy {
  position: relative;
  display: inline-grid;
  align-items: center;
  justify-items: center;
  min-width: var(--submit-normal-width);
  text-align: center;
}
.form__submit-old,
.form__submit-new {
  grid-area: 1 / 1;
}
.form__submit-new {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.form__submit--sending .form__submit-icon {
  animation: paperPlaneRev 0.18s linear infinite;
}
.form__submit--success {
  background: #15803D;
  border-color: #15803D;
  color: #fff;
}
.form__submit--error {
  background: #991B1B;
  border-color: #991B1B;
  color: #fff;
  animation: submitErrorShake 0.28s ease;
}
.form__submit--error:hover {
  background: #7F1D1D;
  border-color: #7F1D1D;
}
.form__submit--success:hover {
  background: #166534;
  border-color: #166534;
}
.form__submit--success .form__submit-icon {
  animation: paperPlaneSweep 0.74s ease forwards;
}
.form__submit--success .form__submit-old {
  animation: submitTextWipe 0.42s ease 0.2s forwards;
}
.form__submit--success .form__submit-new {
  animation: submitTextType 0.48s steps(32, end) 0.68s forwards;
}
.form__submit--success .form__submit-copy {
  animation: submitCopyExpand 0.01s linear 0.68s forwards;
}
@keyframes paperPlaneRev {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(1px, -1px) rotate(-4deg); }
  50% { transform: translate(-1px, 1px) rotate(3deg); }
  75% { transform: translate(1px, 1px) rotate(-2deg); }
}
@keyframes paperPlaneSweep {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  24% { opacity: 1; transform: translate(8px, -3px) rotate(-10deg); }
  72% { opacity: 1; transform: translate(104px, -3px) rotate(-12deg); }
  100% { opacity: 0; transform: translate(138px, -24px) rotate(-22deg); }
}
@keyframes submitTextWipe {
  from {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  to {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
  }
}
@keyframes submitTextType {
  from {
    opacity: 1;
    width: 0;
  }
  to {
    opacity: 1;
    width: var(--submit-success-width);
  }
}
@keyframes submitCopyExpand {
  to { min-width: var(--submit-success-width); }
}
@keyframes submitErrorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__status {
  width: 100%;
  margin-top: 2px;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
}
.form__status--info {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
}
.form__status--success {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}
.form__status--error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ============ FOOTER ============ */
.footer { border-top: 1px solid #E5E7EB; background: #fff; }
.footer__inner {
  display: flex; flex-direction: column; gap: 32px;
  padding-top: 48px;
}
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; align-items: flex-start; justify-content: space-between; padding-top: 64px; }
}
.footer__brand { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.footer__tagline { color: #4B5563; font-size: 14px; margin-top: 8px; }
.footer__links { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .footer__links { flex-direction: row; gap: 24px; } }
.footer__links a { display: inline-flex; align-items: center; gap: 6px; color: #4B5563; font-size: 14px; transition: color 0.2s; }
.footer__links a:hover { color: #111827; }
.footer__links a[download] {
  min-width: 112px;
  justify-content: flex-start;
}
.footer__note {
  color: #6B7280; font-size: 13px;
  text-align: center;
  padding: 32px 0 48px;
  margin-top: 32px;
  border-top: 1px solid #E5E7EB;
}

/* ============ HIGH CONTRAST THEME ============ */
html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .construction-gate {
  background: #050506;
  color: #F9FAFB;
}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] .hero__title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .case-title,
html[data-theme="dark"] .not-found-title,
html[data-theme="dark"] .project-card__title,
html[data-theme="dark"] .metric__label,
html[data-theme="dark"] .timeline__period,
html[data-theme="dark"] .case-meta__value,
html[data-theme="dark"] .education-item__title,
html[data-theme="dark"] .footer__brand,
html[data-theme="dark"] .next-project a,
html[data-theme="dark"] .email-copy-link,
html[data-theme="dark"] .case-diagram__title,
html[data-theme="dark"] .construction-gate__quote p {
  color: #F9FAFB;
}
html[data-theme="dark"] p,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .body-copy,
html[data-theme="dark"] .hero__lead,
html[data-theme="dark"] .hero__note,
html[data-theme="dark"] .project-card__sub,
html[data-theme="dark"] .project-card__role,
html[data-theme="dark"] .timeline__org,
html[data-theme="dark"] .page-sub,
html[data-theme="dark"] .case-sub,
html[data-theme="dark"] .case-text,
html[data-theme="dark"] .case-diagram__caption,
html[data-theme="dark"] .case-diagram__text,
html[data-theme="dark"] .bullet__text,
html[data-theme="dark"] .role-list li span,
html[data-theme="dark"] .decision p,
html[data-theme="dark"] .proves p,
html[data-theme="dark"] .about-paras p,
html[data-theme="dark"] .personal-note p,
html[data-theme="dark"] .education-item__org,
html[data-theme="dark"] .contact-link__value,
html[data-theme="dark"] .footer__tagline,
html[data-theme="dark"] .footer__links a,
html[data-theme="dark"] .footer__note,
html[data-theme="dark"] .construction-gate__status,
html[data-theme="dark"] .construction-gate__contact {
  color: #C7CDD6;
}
html[data-theme="dark"] .case-diagram__arrow {
  color: #FFFFFF;
}
html[data-theme="dark"] .case-text strong,
html[data-theme="dark"] .about-paras strong,
html[data-theme="dark"] .proves p strong,
html[data-theme="dark"] .decision p strong,
html[data-theme="dark"] .case-impact__hook strong {
  color: #F9FAFB;
}
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .project-card__cat,
html[data-theme="dark"] .case-meta__label,
html[data-theme="dark"] .decision__num,
html[data-theme="dark"] .next-project__label,
html[data-theme="dark"] .education-item__year,
html[data-theme="dark"] .contact-link__label,
html[data-theme="dark"] .construction-gate__eyebrow {
  color: #E5E7EB;
}
html[data-theme="dark"] .nav {
  background: rgba(5, 5, 6, 0.92);
  border-bottom-color: #71717A;
}
html[data-theme="dark"] .nav__brand,
html[data-theme="dark"] .nav__toggle,
html[data-theme="dark"] .theme-toggle {
  color: #F9FAFB;
}
html[data-theme="dark"] .nav__links a[data-link] {
  color: #C7CDD6;
}
html[data-theme="dark"] .nav__links a[data-link]:hover,
html[data-theme="dark"] .nav__links a[data-link].active {
  color: #F9FAFB;
  border-color: #F9FAFB;
}
html[data-theme="dark"] .nav__mobile {
  background: #050506;
}
html[data-theme="dark"] .nav__mobile.is-open {
  border-top-color: #71717A;
}
html[data-theme="dark"] .nav__mobile a[data-link] {
  color: #F9FAFB;
}
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible {
  background: #18181B;
}
html[data-theme="dark"] .theme-toggle__tooltip,
html[data-theme="dark"] .email-copy-link__tooltip {
  background: #F9FAFB;
  color: #050506;
}
html[data-theme="dark"] .theme-toggle__state {
  color: rgba(5, 5, 6, 0.68);
}
html[data-theme="dark"] .theme-toggle__state::after {
  box-shadow: inset 0 0 0 1px rgba(5, 5, 6, 0.28);
}
html[data-theme="dark"] .theme-toggle__state.is-active {
  color: #050506;
}
html[data-theme="dark"] .theme-toggle__state.is-next {
  color: rgba(5, 5, 6, 0.88);
}
html[data-theme="dark"] .mobile-app-nav {
  border-color: #71717A;
  background: rgba(10, 10, 12, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}
html[data-theme="dark"] .mobile-app-nav a,
html[data-theme="dark"] .mobile-app-nav button {
  color: #C7CDD6;
  box-shadow: inset 0 0 0 1px #71717A;
}
html[data-theme="dark"] .mobile-app-nav a:hover,
html[data-theme="dark"] .mobile-app-nav button:hover,
html[data-theme="dark"] .mobile-app-nav button:focus-visible,
html[data-theme="dark"] .mobile-app-nav a.active {
  background: #27272A;
  color: #F9FAFB;
}
html[data-theme="dark"] .mobile-app-nav a.active {
  box-shadow: inset 0 0 0 1px #52525B;
}
html[data-theme="dark"] .mobile-app-nav a:active,
html[data-theme="dark"] .mobile-app-nav button:active {
  background: #27272A;
}
html[data-theme="dark"] .mobile-app-nav a.active .mobile-app-nav__icon {
  color: #F9FAFB;
}
html[data-theme="dark"] .mobile-app-nav a.active .mobile-app-nav__label {
  color: #F9FAFB;
}
html[data-theme="dark"] .btn--primary {
  background: #F9FAFB;
  color: #050506;
}
html[data-theme="dark"] .btn--primary:hover {
  background: #E5E7EB;
}
html[data-theme="dark"] .btn--ghost,
html[data-theme="dark"] .construction-gate__actions .btn {
  border-color: #71717A;
  background: transparent;
  color: #F9FAFB;
}
html[data-theme="dark"] .btn--ghost:hover,
html[data-theme="dark"] .construction-gate__actions .btn:hover {
  background: #18181B;
}
html[data-theme="dark"] .construction-gate__status,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer__note,
html[data-theme="dark"] .timeline,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .next-project {
  border-color: #71717A;
}
html[data-theme="dark"] .construction-gate .construction-gate__updated,
html[data-theme="dark"] .construction-gate__preview-hint,
html[data-theme="dark"] .construction-gate__preview-link {
  color: #A1A1AA;
}
html[data-theme="dark"] .construction-gate__preview-link:hover {
  color: #F9FAFB;
}
html[data-theme="dark"] .cap-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .bullet,
html[data-theme="dark"] .education-item,
html[data-theme="dark"] .personal-note,
html[data-theme="dark"] .contact-link,
html[data-theme="dark"] .email-modal,
html[data-theme="dark"] .footer {
  background: #0D0D10;
  border-color: #71717A;
}
html[data-theme="dark"] .cap-card__icon,
html[data-theme="dark"] .email-modal__icon,
html[data-theme="dark"] .contact-link__icon {
  background: #18181B;
  color: #F9FAFB;
}
html[data-theme="dark"] .chip {
  background: #18181B;
  color: #F9FAFB;
}
html[data-theme="dark"] .chip--gray,
html[data-theme="dark"] .filter {
  background: #111113;
  border-color: #71717A;
  color: #E5E7EB;
}
html[data-theme="dark"] .result,
html[data-theme="dark"] .form__status--success {
  background: #F9FAFB;
  border-color: #F9FAFB;
  color: #050506;
}
html[data-theme="dark"] .chip--success {
  background: transparent;
  color: #F9FAFB;
  box-shadow: inset 0 0 0 1px #71717A;
}
html[data-theme="dark"] .chip--featured {
  background: transparent;
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px #FFFFFF;
}
html[data-theme="dark"] .filter:hover,
html[data-theme="dark"] .filter.active {
  background: #F9FAFB;
  border-color: #F9FAFB;
  color: #050506;
}
html[data-theme="dark"] .timeline__dot {
  background: #050506;
  border-color: #52525B;
}
html[data-theme="dark"] .timeline__item--current .timeline__dot,
html[data-theme="dark"] .timeline__item--active .timeline__dot {
  background: #F9FAFB;
  border-color: #F9FAFB;
}
html[data-theme="dark"] .timeline__period--muted {
  color: #A1A1AA;
}
html[data-theme="dark"] .placeholder,
html[data-theme="dark"] .image-slot {
  background:
    repeating-linear-gradient(45deg, #111113 0 12px, #18181B 12px 24px);
  border-color: #71717A;
  color: #A1A1AA;
}
html[data-theme="dark"] .image-slot figcaption span,
html[data-theme="dark"] .image-slot figcaption code {
  color: #E5E7EB;
}
html[data-theme="dark"] .link-arrow,
html[data-theme="dark"] .next-project a:hover,
html[data-theme="dark"] .contact-link:hover {
  color: #F9FAFB;
}
html[data-theme="dark"] .link-arrow {
  background: #F9FAFB;
  box-shadow: inset 0 0 0 1px #F9FAFB;
  color: #050506;
  font-weight: 500;
}
html[data-theme="dark"] .link-arrow:hover {
  background: #E5E7EB;
  box-shadow: inset 0 0 0 1px #E5E7EB;
  color: #050506;
}
html[data-theme="dark"] .contact-link:hover {
  border-color: #F9FAFB;
}
html[data-theme="dark"] .case-backbar {
  background: rgba(5, 5, 6, 0.92);
  border-bottom-color: #71717A;
}
html[data-theme="dark"] .back-link {
  color: #C7CDD6;
}
html[data-theme="dark"] .back-link:hover {
  color: #F9FAFB;
}
html[data-theme="dark"] .bullet__dot,
html[data-theme="dark"] .role-list li::before {
  background: #F9FAFB;
}
html[data-theme="dark"] .decision,
html[data-theme="dark"] .personal-note {
  border-left-color: #F9FAFB;
}
html[data-theme="dark"] .proves {
  background: #111113;
  border-color: #71717A;
}
html[data-theme="dark"] .form label {
  color: #F9FAFB;
}
html[data-theme="dark"] .form input,
html[data-theme="dark"] .form textarea {
  background: #0D0D10;
  border-color: #71717A;
  color: #F9FAFB;
}
html[data-theme="dark"] .form input:focus,
html[data-theme="dark"] .form textarea:focus {
  border-color: #F9FAFB;
  box-shadow: 0 0 0 3px rgba(249, 250, 251, 0.35);
}
html[data-theme="dark"] .form__status--info {
  background: #111113;
  border-color: #71717A;
  color: #E5E7EB;
}
html[data-theme="dark"] .form__status--error {
  background: #450A0A;
  border-color: #7F1D1D;
  color: #FECACA;
}
html[data-theme="dark"] .email-modal-backdrop {
  background: rgba(0, 0, 0, 0.62);
}
html[data-theme="dark"] .email-modal__close {
  color: #C7CDD6;
}
html[data-theme="dark"] .email-modal__close:hover {
  background: #18181B;
  color: #F9FAFB;
}
html[data-theme="dark"] .brand-icon--linkedin {
  color: #F9FAFB;
}

/* ============ NIGHT READING THEME ============ */
html[data-theme="night"] {
  color-scheme: dark;
}
html[data-theme="night"] body,
html[data-theme="night"] .construction-gate {
  background: #111317;
  color: #E7E1D4;
}
html[data-theme="night"] h1,
html[data-theme="night"] h2,
html[data-theme="night"] h3,
html[data-theme="night"] h4,
html[data-theme="night"] .hero__title,
html[data-theme="night"] .page-title,
html[data-theme="night"] .case-title,
html[data-theme="night"] .not-found-title,
html[data-theme="night"] .project-card__title,
html[data-theme="night"] .metric__label,
html[data-theme="night"] .timeline__period,
html[data-theme="night"] .case-meta__value,
html[data-theme="night"] .education-item__title,
html[data-theme="night"] .footer__brand,
html[data-theme="night"] .next-project a,
html[data-theme="night"] .email-copy-link,
html[data-theme="night"] .case-diagram__title,
html[data-theme="night"] .construction-gate__quote p {
  color: #E7E1D4;
}
html[data-theme="night"] p,
html[data-theme="night"] .lead,
html[data-theme="night"] .body-copy,
html[data-theme="night"] .hero__lead,
html[data-theme="night"] .hero__note,
html[data-theme="night"] .project-card__sub,
html[data-theme="night"] .project-card__role,
html[data-theme="night"] .timeline__org,
html[data-theme="night"] .page-sub,
html[data-theme="night"] .case-sub,
html[data-theme="night"] .case-text,
html[data-theme="night"] .case-diagram__caption,
html[data-theme="night"] .case-diagram__text,
html[data-theme="night"] .bullet__text,
html[data-theme="night"] .role-list li span,
html[data-theme="night"] .decision p,
html[data-theme="night"] .proves p,
html[data-theme="night"] .about-paras p,
html[data-theme="night"] .personal-note p,
html[data-theme="night"] .education-item__org,
html[data-theme="night"] .contact-link__value,
html[data-theme="night"] .footer__tagline,
html[data-theme="night"] .footer__links a,
html[data-theme="night"] .footer__note,
html[data-theme="night"] .construction-gate__status,
html[data-theme="night"] .construction-gate__contact {
  color: #B8B0A3;
}
html[data-theme="night"] .case-diagram__arrow {
  color: #D7C78E;
}
html[data-theme="night"] .case-text strong,
html[data-theme="night"] .about-paras strong,
html[data-theme="night"] .proves p strong,
html[data-theme="night"] .decision p strong,
html[data-theme="night"] .case-impact__hook strong {
  color: #E7E1D4;
}
html[data-theme="night"] .eyebrow,
html[data-theme="night"] .project-card__cat,
html[data-theme="night"] .case-meta__label,
html[data-theme="night"] .decision__num,
html[data-theme="night"] .next-project__label,
html[data-theme="night"] .education-item__year,
html[data-theme="night"] .contact-link__label,
html[data-theme="night"] .construction-gate__eyebrow {
  color: #C9B98B;
}
html[data-theme="night"] .nav {
  background: rgba(17, 19, 23, 0.92);
  border-bottom-color: #2D3038;
}
html[data-theme="night"] .nav__brand,
html[data-theme="night"] .nav__toggle,
html[data-theme="night"] .theme-toggle {
  color: #E7E1D4;
}
html[data-theme="night"] .nav__links a[data-link] {
  color: #B8B0A3;
}
html[data-theme="night"] .nav__links a[data-link]:hover,
html[data-theme="night"] .nav__links a[data-link].active {
  color: #E7E1D4;
  border-color: #C9B98B;
}
html[data-theme="night"] .nav__mobile {
  background: #111317;
}
html[data-theme="night"] .nav__mobile.is-open {
  border-top-color: #2D3038;
}
html[data-theme="night"] .nav__mobile a[data-link] {
  color: #E7E1D4;
}
html[data-theme="night"] .theme-toggle:hover,
html[data-theme="night"] .theme-toggle:focus-visible {
  background: #1A1D23;
}
html[data-theme="night"] .theme-toggle__tooltip,
html[data-theme="night"] .email-copy-link__tooltip {
  background: #E7E1D4;
  color: #111317;
}
html[data-theme="night"] .theme-toggle__state {
  color: rgba(17, 19, 23, 0.66);
}
html[data-theme="night"] .theme-toggle__state::after {
  box-shadow: inset 0 0 0 1px rgba(17, 19, 23, 0.28);
}
html[data-theme="night"] .theme-toggle__state.is-active {
  color: #111317;
}
html[data-theme="night"] .theme-toggle__state.is-next {
  color: rgba(17, 19, 23, 0.88);
}
html[data-theme="night"] .mobile-app-nav {
  border-color: #2D3038;
  background: rgba(22, 24, 29, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}
html[data-theme="night"] .mobile-app-nav a,
html[data-theme="night"] .mobile-app-nav button {
  color: #B8B0A3;
  box-shadow: inset 0 0 0 1px #2D3038;
}
html[data-theme="night"] .mobile-app-nav a:hover,
html[data-theme="night"] .mobile-app-nav button:hover,
html[data-theme="night"] .mobile-app-nav button:focus-visible,
html[data-theme="night"] .mobile-app-nav a.active {
  background: #22252D;
  color: #E7E1D4;
}
html[data-theme="night"] .mobile-app-nav a.active {
  box-shadow: inset 0 0 0 1px #48412E;
}
html[data-theme="night"] .mobile-app-nav a:active,
html[data-theme="night"] .mobile-app-nav button:active {
  background: #22252D;
}
html[data-theme="night"] .mobile-app-nav a.active .mobile-app-nav__icon,
html[data-theme="night"] .mobile-app-nav a.active .mobile-app-nav__label {
  color: #E7E1D4;
}
html[data-theme="night"] .btn--primary {
  background: #D7C78E;
  color: #111317;
}
html[data-theme="night"] .btn--primary:hover {
  background: #E2D5A5;
}
html[data-theme="night"] .btn--ghost,
html[data-theme="night"] .construction-gate__actions .btn {
  border-color: #2D3038;
  background: transparent;
  color: #E7E1D4;
}
html[data-theme="night"] .btn--ghost:hover,
html[data-theme="night"] .construction-gate__actions .btn:hover {
  background: #1A1D23;
}
html[data-theme="night"] .construction-gate__status,
html[data-theme="night"] .footer,
html[data-theme="night"] .footer__note,
html[data-theme="night"] .timeline,
html[data-theme="night"] .metric,
html[data-theme="night"] .next-project {
  border-color: #2D3038;
}
html[data-theme="night"] .construction-gate .construction-gate__updated,
html[data-theme="night"] .construction-gate__preview-hint,
html[data-theme="night"] .construction-gate__preview-link {
  color: #7E7A72;
}
html[data-theme="night"] .construction-gate__preview-link:hover {
  color: #E7E1D4;
}
html[data-theme="night"] .cap-card,
html[data-theme="night"] .project-card,
html[data-theme="night"] .about-card,
html[data-theme="night"] .bullet,
html[data-theme="night"] .education-item,
html[data-theme="night"] .personal-note,
html[data-theme="night"] .contact-link,
html[data-theme="night"] .email-modal,
html[data-theme="night"] .footer {
  background: #171A20;
  border-color: #2D3038;
}
html[data-theme="night"] .cap-card__icon,
html[data-theme="night"] .email-modal__icon,
html[data-theme="night"] .contact-link__icon {
  background: #22252D;
  color: #D7C78E;
}
html[data-theme="night"] .chip {
  background: #22252D;
  color: #D7C78E;
}
html[data-theme="night"] .chip--gray,
html[data-theme="night"] .filter {
  background: #1A1D23;
  border-color: #2D3038;
  color: #D8D0C3;
}
html[data-theme="night"] .result,
html[data-theme="night"] .form__status--success {
  background: #28311F;
  border-color: #3D4A2F;
  color: #D8E6C5;
}
html[data-theme="night"] .chip--success {
  background: transparent;
  color: #D8D0C3;
  box-shadow: inset 0 0 0 1px #2D3038;
}
html[data-theme="night"] .chip--featured {
  background: transparent;
  color: #E8C77D;
  box-shadow: inset 0 0 0 1px #2D3038;
}
html[data-theme="night"] .filter:hover,
html[data-theme="night"] .filter.active {
  background: #D7C78E;
  border-color: #D7C78E;
  color: #111317;
}
html[data-theme="night"] .timeline__dot {
  background: #111317;
  border-color: #4A4D57;
}
html[data-theme="night"] .timeline__item--current .timeline__dot,
html[data-theme="night"] .timeline__item--active .timeline__dot {
  background: #D7C78E;
  border-color: #D7C78E;
}
html[data-theme="night"] .timeline__period--muted {
  color: #8F887D;
}
html[data-theme="night"] .placeholder,
html[data-theme="night"] .image-slot {
  background:
    repeating-linear-gradient(45deg, #171A20 0 12px, #1E2128 12px 24px);
  border-color: #2D3038;
  color: #8F887D;
}
html[data-theme="night"] .image-slot figcaption span,
html[data-theme="night"] .image-slot figcaption code {
  color: #D8D0C3;
}
html[data-theme="night"] .link-arrow,
html[data-theme="night"] .next-project a:hover,
html[data-theme="night"] .contact-link:hover {
  color: #D7C78E;
}
html[data-theme="night"] .link-arrow {
  background: #D7C78E;
  box-shadow: inset 0 0 0 1px #D7C78E;
  color: #111317;
  font-weight: 500;
}
html[data-theme="night"] .link-arrow:hover {
  background: #E2D5A5;
  box-shadow: inset 0 0 0 1px #E2D5A5;
  color: #111317;
}
html[data-theme="night"] .contact-link:hover {
  border-color: #D7C78E;
}
html[data-theme="night"] .case-backbar {
  background: rgba(17, 19, 23, 0.92);
  border-bottom-color: #2D3038;
}
html[data-theme="night"] .back-link {
  color: #B8B0A3;
}
html[data-theme="night"] .back-link:hover {
  color: #E7E1D4;
}
html[data-theme="night"] .bullet__dot,
html[data-theme="night"] .role-list li::before {
  background: #C9B98B;
}
html[data-theme="night"] .decision,
html[data-theme="night"] .personal-note {
  border-left-color: #C9B98B;
}
html[data-theme="night"] .proves {
  background: #1A1D23;
  border-color: #2D3038;
}
html[data-theme="night"] .form label {
  color: #D8D0C3;
}
html[data-theme="night"] .form input,
html[data-theme="night"] .form textarea {
  background: #171A20;
  border-color: #2D3038;
  color: #E7E1D4;
}
html[data-theme="night"] .form input:focus,
html[data-theme="night"] .form textarea:focus {
  border-color: #D7C78E;
  box-shadow: 0 0 0 3px rgba(215, 199, 142, 0.3);
}
html[data-theme="night"] .form__status--info {
  background: #1A1D23;
  border-color: #2D3038;
  color: #D8D0C3;
}
html[data-theme="night"] .form__status--error {
  background: #3A1717;
  border-color: #6D2A2A;
  color: #F1C8C8;
}
html[data-theme="night"] .email-modal-backdrop {
  background: rgba(4, 5, 7, 0.58);
}
html[data-theme="night"] .email-modal__close {
  color: #B8B0A3;
}
html[data-theme="night"] .email-modal__close:hover {
  background: #22252D;
  color: #E7E1D4;
}
html[data-theme="night"] .brand-icon--linkedin {
  color: #D8D0C3;
}
