/* Suppress transitions on initial load to prevent flash */
.dp-no-transition,
.dp-no-transition *,
.dp-no-transition *::before,
.dp-no-transition *::after {
  transition: none !important;
}

/* ============================================
   DEV PROJECTS — Styles
   Atoms → Molecules → Page layout
   ============================================ */

/* --------------------------------------------
   RESET (scoped to this page)
   -------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: clip;
  font-family: var(--dp-font-body);
  font-weight: var(--dp-weight-normal);
  font-size: var(--dp-text-base);
  line-height: var(--dp-leading-normal);
  color: var(--dp-text-primary);
  background-color: var(--dp-bg-base);
  transition: background-color var(--dp-duration-slow) var(--dp-ease-out),
              color var(--dp-duration-slow) var(--dp-ease-out);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --------------------------------------------
   ATOMS — Utility classes
   -------------------------------------------- */

/* Hero heading — flat text per line */
.dp-hero-heading .dp-hero-line {
  display: block;
  text-wrap: balance;
  color: var(--dp-text-primary);
}
.dp-hero-heading .dp-hero-line.dp-hero-accent {
  color: var(--dp-brand-text);
}

/* Overline label */
.dp-overline {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-xs);
  font-weight: var(--dp-weight-semibold);
  line-height: var(--dp-leading-snug);
  letter-spacing: var(--dp-tracking-wider);
  text-transform: uppercase;
  color: var(--dp-text-secondary);
}

/* --------------------------------------------
   MOLECULES — Button
   -------------------------------------------- */
.dp-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  min-height: var(--dp-btn-min-height);
  border-radius: var(--dp-btn-radius);
  padding: var(--dp-btn-padding);
  font-size: var(--dp-btn-font-size);
  font-weight: var(--dp-btn-font-weight);
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.dp-btn-primary:hover {
  background: var(--dp-btn-hover-bg-primary);
}

.dp-btn-primary:focus-visible {
  outline: 2px solid var(--dp-btn-focus-ring);
  outline-offset: 2px;
}

.dp-btn-secondary {
  background: transparent;
  color: var(--dp-text-primary);
  border: 1px solid var(--dp-border-default);
}

.dp-btn-secondary:hover {
  background: var(--dp-bg-card-hover);
  border-color: var(--dp-border-hover);
}

.dp-btn-secondary:focus-visible {
  outline: 2px solid var(--dp-btn-focus-ring);
  outline-offset: 2px;
}

.dp-btn-primary-on-dark {
  background: var(--dp-btn-bg-primary-on-dark);
  color: var(--dp-btn-text-primary-on-dark);
}

.dp-btn-primary-on-dark:hover {
  background: var(--dp-btn-hover-bg-primary-on-dark);
}

.dp-btn-primary-on-dark:focus-visible {
  outline: 2px solid var(--dp-btn-focus-ring-on-dark);
  outline-offset: 2px;
}

.dp-btn-secondary-on-dark {
  background: transparent;
  color: var(--dp-btn-secondary-on-dark-text);
  border: 1px solid var(--dp-btn-secondary-on-dark-border);
}

.dp-btn-secondary-on-dark:hover {
  background: var(--dp-btn-secondary-on-dark-hover-bg);
}

.dp-btn-secondary-on-dark:focus-visible {
  outline: 2px solid var(--dp-btn-secondary-on-dark-focus-ring);
  outline-offset: 2px;
}

.dp-btn-secondary-on-light {
  background: transparent;
  color: var(--dp-btn-secondary-on-light-text);
  border: 1px solid var(--dp-btn-secondary-on-light-border);
}

.dp-btn-secondary-on-light:hover {
  background: var(--dp-btn-secondary-on-light-hover-bg);
}

.dp-btn-secondary-on-light:focus-visible {
  outline: 2px solid var(--dp-btn-secondary-on-light-focus-ring);
  outline-offset: 2px;
}

.dp-btn .dp-btn-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* --------------------------------------------
   ATOMS — Banner ticker
   -------------------------------------------- */
.dp-banner-ticker {
  width: 100%;
  height: var(--dp-space-10);
  background: var(--dp-banner-bg);
  overflow: hidden;
  position: relative;
  z-index: 101;
}

.dp-banner-ticker__track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  animation: dp-ticker-scroll var(--dp-banner-speed) linear infinite;
}

.dp-banner-ticker__content {
  display: flex;
  align-items: center;
  gap: var(--dp-space-10);
  white-space: nowrap;
  padding-right: var(--dp-space-10);
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-sm);
  font-weight: var(--dp-weight-semibold);
  color: var(--dp-banner-text);
  letter-spacing: var(--dp-tracking-wide);
  text-transform: uppercase;
}

.dp-banner-ticker__separator {
  opacity: 0.5;
}

@keyframes dp-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .dp-banner-ticker {
    height: var(--dp-space-8);
  }
  .dp-banner-ticker__content {
    font-size: var(--dp-text-xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dp-banner-ticker__track {
    animation: none;
    justify-content: center;
  }
  .dp-banner-ticker__content:not(:first-child) {
    display: none;
  }
}

/* ============================================
   Navigation Bar
   ============================================ */
.dp-nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--dp-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dp-border-default);
}

/* Light theme: --dp-glass-bg (0.65 opacity) is too transparent for a sticky
   bar on light backgrounds; bump to 0.80 so scrolled content stays readable */
[data-theme="light"] .dp-nav {
  background: rgba(255, 255, 255, 0.80);
}

.dp-nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--dp-space-3) var(--dp-space-6);
  height: 64px;
}

.dp-nav-brand {
  display: flex;
  align-items: center;
  gap: var(--dp-space-3);
  min-width: 0;
  flex: 1;
  text-decoration: none;
  color: var(--dp-text-primary);
  transition: opacity var(--dp-duration-base) var(--dp-ease-out);
}

.dp-nav-brand:hover {
  opacity: 0.8;
}

.dp-nav-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
}

.dp-nav-logo {
  box-shadow: 0 0 0 1px var(--dp-nav-logo-ring);
}

.dp-nav-logo-bg { fill: var(--dp-nav-logo-bg); }
.dp-nav-logo-swirl { fill: var(--dp-nav-logo-swirl); }
.dp-nav-logo-grad-start { stop-color: var(--dp-nav-logo-gradient-from); }
.dp-nav-logo-grad-end { stop-color: var(--dp-nav-logo-gradient-to); }

.dp-nav-name {
  font-family: var(--dp-font-display);
  font-size: var(--dp-text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--dp-space-4);
  flex: 1;
  justify-content: flex-end;
}

/* Toggles inside nav — reset fixed positioning */
.dp-nav-actions .dp-theme-toggle,
.dp-nav-actions .dp-snake-toggle {
  position: static;
  z-index: auto;
}

.dp-nav-actions .dp-theme-toggle {
  order: 1;
}

.dp-nav-actions .dp-nav-hamburger {
  order: 10;
}

/* Nav links (between brand and actions) */
.dp-nav-links {
  display: flex;
  align-items: center;
  gap: var(--dp-space-4);
}

.dp-nav-link {
  display: flex;
  align-items: center;
  min-height: var(--dp-nav-action-height);
  border-radius: var(--dp-btn-radius);
  padding: var(--dp-space-2) var(--dp-space-4);
  color: var(--dp-text-primary);
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
}

.dp-nav-link:hover {
  background: var(--dp-toggle-bg-hover);
}

.dp-nav-link:focus-visible {
  outline: 2px solid var(--dp-accent);
  outline-offset: 2px;
}

.dp-nav-link[aria-current="page"] {
  background: var(--dp-toggle-bg-hover);
  font-weight: 600;
}

/* --- Shared dropdown menu --- */
.dp-dropdown-menu {
  position: absolute;
  z-index: 200;
  min-width: 180px;
  /* Elevated over token value for dropdown legibility */
  background: var(--dp-dropdown-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dp-border-default);
  border-radius: var(--dp-radius-sm);
  padding: var(--dp-space-2);
  box-shadow: var(--dp-dropdown-shadow);
}

.dp-dropdown-menu[hidden] {
  display: none;
}

.dp-dropdown-menu a,
.dp-dropdown-menu button {
  display: flex;
  align-items: center;
  gap: var(--dp-space-3);
  width: 100%;
  padding: var(--dp-space-2) var(--dp-space-3);
  color: var(--dp-text-primary);
  text-decoration: none;
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-sm);
  font-weight: 500;
  border: none;
  border-radius: var(--dp-btn-radius);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.dp-dropdown-menu a:hover,
.dp-dropdown-menu button:hover {
  background: var(--dp-toggle-bg-hover);
}

.dp-dropdown-menu a:focus-visible,
.dp-dropdown-menu button:focus-visible {
  outline: 2px solid var(--dp-accent);
  outline-offset: 2px;
}

/* Nav dropdown */
.dp-nav-dropdown {
  position: relative;
}

.dp-nav-dropdown-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--dp-space-1);
}

.dp-nav-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.dp-nav-dropdown-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.dp-nav-dropdown-menu {
  top: calc(100% + var(--dp-space-2));
  left: 50%;
  transform: translateX(-50%);
}

.dp-nav-dropdown-menu a[aria-current="page"] {
  font-weight: 600;
  background: var(--dp-toggle-bg);
}

/* Wider dropdown for full-sentence case study titles */
.dp-nav-dropdown-menu:has(.dp-nav-dropdown-item:nth-child(3)) {
  min-width: 400px;
}

/* Nav hamburger (hidden on desktop, shown at ≤768px) — inherits from .dp-nav-link */
.dp-nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.dp-nav-hamburger-label {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-sm);
  font-weight: 500;
}

/* Nav drawer (appended to body, right-side slide-in) */
.dp-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.dp-nav-drawer:not([hidden]) {
  display: block;
}

.dp-nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: var(--dp-drawer-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dp-nav-drawer--open .dp-nav-drawer-backdrop {
  opacity: 1;
}

.dp-nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--dp-drawer-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid var(--dp-drawer-border);
  padding: var(--dp-space-6);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
}

.dp-nav-drawer--open .dp-nav-drawer-panel {
  transform: translateX(0);
}

.dp-nav-drawer-close {
  position: absolute;
  top: var(--dp-space-4);
  right: var(--dp-space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dp-toggle-bg);
  border: none;
  border-radius: var(--dp-btn-radius);
  padding: var(--dp-space-2);
  color: var(--dp-text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
}

.dp-nav-drawer-close:hover {
  background: var(--dp-toggle-bg-hover);
}

.dp-nav-drawer-close:focus-visible {
  outline: 2px solid var(--dp-accent);
  outline-offset: 2px;
}

.dp-nav-drawer-links {
  display: flex;
  flex-direction: column;
  padding-top: var(--dp-space-12);
}

.dp-nav-drawer-heading {
  display: block;
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-xs);
  font-weight: 600;
  color: var(--dp-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--dp-space-2) var(--dp-space-3);
  margin-top: var(--dp-space-4);
}

.dp-nav-drawer-heading:first-child {
  margin-top: 0;
}

.dp-nav-drawer-link {
  display: block;
  padding: var(--dp-space-3) var(--dp-space-3);
  color: var(--dp-text-primary);
  text-decoration: none;
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-base);
  border-radius: var(--dp-btn-radius);
  transition: background 0.15s ease;
}

.dp-nav-drawer-link:hover {
  background: var(--dp-toggle-bg-hover);
}

.dp-nav-drawer-link[aria-current="page"] {
  font-weight: 600;
  background: var(--dp-toggle-bg);
}

.dp-nav-drawer-link:focus-visible {
  outline: 2px solid var(--dp-accent);
  outline-offset: -2px;
}

/* --------------------------------------------
   MOLECULES — Theme toggle
   -------------------------------------------- */
.dp-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--dp-radius-full);
  border: 1px solid var(--dp-border-default);
  background: var(--dp-toggle-bg);
  cursor: pointer;
  transition: background var(--dp-duration-base) var(--dp-ease-out),
              border-color var(--dp-duration-base) var(--dp-ease-out);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dp-theme-toggle:hover {
  background: var(--dp-toggle-bg-hover);
  border-color: var(--dp-border-hover);
}

.dp-theme-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--dp-text-primary);
  transition: color var(--dp-duration-base) var(--dp-ease-out),
              fill var(--dp-duration-base) var(--dp-ease-out),
              stroke var(--dp-duration-base) var(--dp-ease-out);
}

/* Show/hide icons per theme */
[data-theme="dark"] .dp-toggle-sun  { display: block; }
[data-theme="dark"] .dp-toggle-moon { display: none; }
[data-theme="light"] .dp-toggle-sun  { display: none; }
[data-theme="light"] .dp-toggle-moon { display: block; }

/* Theme toggle — sun hover: dark mode, hovering sun (switch to light) */
[data-theme="dark"] .dp-theme-toggle:hover {
  background: var(--dp-theme-sun-bg-hover);
  border-color: rgba(7, 89, 133, 0.6);
}
[data-theme="dark"] .dp-theme-toggle:hover .dp-toggle-sun {
  color: var(--dp-theme-sun-icon-hover);
  stroke: var(--dp-theme-sun-icon-hover);
}
.dp-theme-toggle .dp-toggle-sun circle {
  transition: fill var(--dp-duration-base) var(--dp-ease-out);
}
[data-theme="dark"] .dp-theme-toggle:hover .dp-toggle-sun circle {
  fill: var(--dp-theme-sun-icon-hover);
}

/* Theme toggle — moon hover: light mode, hovering moon (switch to dark) */
[data-theme="light"] .dp-theme-toggle:hover {
  background: var(--dp-theme-moon-bg-hover);
  border-color: rgba(30, 41, 59, 0.6);
}
[data-theme="light"] .dp-theme-toggle:hover .dp-toggle-moon {
  color: var(--dp-theme-moon-icon-hover);
  stroke: var(--dp-theme-moon-icon-hover);
}

/* --------------------------------------------
   MOLECULES — Back to top
   -------------------------------------------- */
.dp-back-to-top {
  position: fixed;
  bottom: var(--dp-space-6);
  right: var(--dp-space-6);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--dp-radius-full);
  border: 1px solid var(--dp-border-default);
  background: var(--dp-toggle-bg);
  cursor: pointer;
  transition: background var(--dp-duration-base) var(--dp-ease-out),
              border-color var(--dp-duration-base) var(--dp-ease-out),
              opacity var(--dp-duration-slow) var(--dp-ease-out);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--dp-text-secondary);
}

.dp-back-to-top:hover {
  background: var(--dp-toggle-bg-hover);
  border-color: var(--dp-border-hover);
  color: var(--dp-text-primary);
}

.dp-back-to-top svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------
   MOLECULES — Snake game toggle
   -------------------------------------------- */
.dp-snake-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--dp-radius-full);
  border: 1px solid var(--dp-border-default);
  background: var(--dp-toggle-bg);
  cursor: pointer;
  transition: background var(--dp-duration-fast) var(--dp-ease-out),
              border-color var(--dp-duration-fast) var(--dp-ease-out);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dp-snake-toggle:hover {
  background: var(--dp-toggle-bg-hover);
  border-color: var(--dp-border-hover);
}

.dp-snake-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--dp-text-primary);
  transition: color var(--dp-duration-fast) var(--dp-ease-out),
              filter var(--dp-duration-fast) var(--dp-ease-out);
}

.dp-snake-toggle .dp-snake-icon {
  width: auto;
  height: 18px;
}

.dp-snake-toggle:hover .dp-snake-icon {
  color: var(--dp-snake-icon-hover);
  filter: drop-shadow(0 0 6px var(--dp-snake-icon-glow));
}

/* Snake overlay */
.dp-snake-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: var(--dp-bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-snake-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dp-snake-toggle--in-overlay {
  position: absolute;
  top: var(--dp-space-6);
  right: var(--dp-space-6);
  z-index: 10002;
}

/* --------------------------------------------
   PAGE LAYOUT — Foundation
   -------------------------------------------- */
.dp-page {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--dp-space-6);
}

/* Content below sticky nav — decorative breathing room only */
.dp-page-content {
  padding-top: var(--dp-space-24);
}

/* h3 after paragraph — breathing room when h3 + p + h3 + p pattern */
.dp-page section p + h3 {
  margin-top: var(--dp-space-12);
}

.dp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--dp-space-6);
  padding-top: var(--dp-space-20);
  padding-bottom: var(--dp-section-gap);
  position: relative;
  overflow: visible;
}

.dp-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--dp-space-6);
}

/* Split variant: two-column hero with card (index only) */
.dp-hero--split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  text-align: left;
  gap: var(--dp-space-12);
}

.dp-hero--split .dp-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--dp-space-6);
}

.dp-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--dp-radius-full);
  object-fit: cover;
  display: block;
}

/* Avatar wrapper specifics */
.dp-avatar-wrap {
  position: relative;
  border-radius: var(--dp-radius-full);
  cursor: pointer;
  overflow: visible;
}

/* Avatar easter egg animations */
@keyframes dp-avatar-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-5deg); }
  50%      { transform: rotate(5deg); }
  75%      { transform: rotate(-3deg); }
}

.dp-avatar-wiggle {
  animation: dp-avatar-wiggle 300ms var(--dp-ease-in-out) forwards;
}

.dp-avatar-wrap canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  pointer-events: none;
  z-index: 10;
}

.dp-hero-heading {
  font-family: var(--dp-font-display);
  font-size: var(--dp-text-4xl);
  font-weight: var(--dp-weight-bold);
  line-height: var(--dp-leading-tight);
  letter-spacing: var(--dp-tracking-normal);
}

.dp-hero-body {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-lg);
  font-weight: var(--dp-weight-normal);
  line-height: var(--dp-leading-relaxed);
  color: var(--dp-text-secondary);
  max-width: 540px;
}

/* Hero case study card */
.dp-hero-card {
  background: var(--dp-glass-bg);
  border: 1px solid var(--dp-border-default);
  border-radius: var(--dp-radius-lg);
  padding: var(--dp-space-8);
  display: flex;
  flex-direction: column;
  gap: var(--dp-space-6);
  min-width: 360px;
  max-width: 440px;
}

.dp-hero-card__heading {
  font-family: var(--dp-font-display);
  font-size: var(--dp-text-xl);
  font-weight: var(--dp-weight-semibold);
  line-height: var(--dp-leading-snug);
  color: var(--dp-text-primary);
}

.dp-hero-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--dp-space-4);
}

.dp-hero-card__link {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-lg);
  font-weight: var(--dp-weight-normal);
  line-height: var(--dp-leading-normal);
  color: var(--dp-text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dp-space-3);
  padding: var(--dp-space-3) 0;
  border-bottom: 1px solid var(--dp-border-divider);
  transition: color var(--dp-duration-fast) var(--dp-ease-out);
}

.dp-hero-card__link:hover,
.dp-hero-card__link:focus-visible {
  color: var(--dp-text-primary);
}

.dp-hero-card__link:focus-visible {
  outline: 2px solid var(--dp-btn-focus-ring);
  outline-offset: 2px;
  border-radius: var(--dp-radius-sm);
}

.dp-hero-card__link::after {
  content: '\2192';
  color: var(--dp-text-tertiary);
  transition: transform var(--dp-duration-fast) var(--dp-ease-out),
              color var(--dp-duration-fast) var(--dp-ease-out);
  flex-shrink: 0;
}

.dp-hero-card__link:hover::after {
  transform: translateX(4px);
  color: var(--dp-text-primary);
}

.dp-hero-card__list li:last-child .dp-hero-card__link {
  border-bottom: none;
}

.dp-hero-card__cta {
  display: flex;
  flex-direction: column;
  gap: var(--dp-space-3);
  padding-top: var(--dp-space-6);
  border-top: 1px solid var(--dp-border-divider);
}

.dp-hero-card__cta-text {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-base);
  font-weight: var(--dp-weight-normal);
  line-height: var(--dp-leading-normal);
  color: var(--dp-text-tertiary);
  margin: 0;
}

.dp-hero-card__cta-btn {
  align-self: flex-start;
}

/* Hero card section — standalone card below hero (index) */
.dp-hero-card-section {
  max-width: var(--dp-prose-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--dp-space-6);
}

.dp-hero-card-section .dp-hero-card {
  min-width: unset;
  max-width: none;
}

/* Section label (slim overline above a group of content) */
.dp-section-label {
  text-align: center;
  margin-top: var(--dp-space-10);
  margin-bottom: var(--dp-space-6);
}

/* First strip after a section label — tighter gap (override default --dp-section-gap) */
.dp-section-label + .dp-strip {
  margin-top: var(--dp-space-6);
}

/* ============ ATOMS (reusable utilities) ============ */

/* Flat text (was gradient text) */
.dp-gradient-text {
  color: var(--dp-text-primary);
}

/* Noise overlay (fixed full-screen) */
.dp-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--dp-noise-opacity);
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Glass panel (blur + border) */
.dp-glass {
  background: var(--dp-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dp-border-default);
  border-radius: var(--dp-radius-md);
}

/* Aurora glow pseudo-element; customise via --dp-glow-color, --dp-glow-x, --dp-glow-y, --dp-glow-opacity */
/* Note: default opacity 0.6 compensates for low-alpha glow tokens. Effective opacity ≈ token-alpha × 0.6 */
.dp-glow {
  position: relative;
}

/* Section with blurred glow ::before */
.dp-glow-section {
  position: relative;
}
.dp-glow::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
  opacity: 0;
  transition: opacity 1.2s var(--dp-ease-out);
  pointer-events: none;
  z-index: -1;
  background: var(--dp-glow-color, var(--dp-accent-glow));
  left: var(--dp-glow-x, 50%);
  top: var(--dp-glow-y, 30%);
  translate: -50% -50%;
}
.dp-glow.is-visible::before {
  opacity: var(--dp-glow-opacity, 0.6);
}

/* Shimmer sweep on ::after; element needs position: relative; overflow: hidden */
.dp-shimmer {
  position: relative;
  overflow: hidden;
}
.dp-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: dp-shimmer-sweep 3s var(--dp-ease-out) infinite;
  pointer-events: none;
  border-radius: inherit;
}
@keyframes dp-shimmer-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Fade content into base background; height via --dp-fade-height */
.dp-fade-edge {
  position: relative;
}
.dp-fade-edge::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--dp-fade-height, 40%);
  background: linear-gradient(to bottom, transparent, var(--dp-bg-base));
  pointer-events: none;
  border-radius: inherit;
}

/* --------------------------------------------
   MOLECULES — Project card (glass treatment)
   -------------------------------------------- */
.dp-card {
  position: relative;
  display: block;
  border-radius: var(--dp-radius-lg);
  text-decoration: none;
  color: inherit;
  outline: none;
  padding: 1px;
  background: var(--dp-border-default);
  transform: translateY(0);
  opacity: 0;
  transition: background var(--dp-duration-base) var(--dp-ease-out),
              transform var(--dp-duration-base) var(--dp-ease-out);
}

.dp-card.dp-revealed {
  opacity: 1;
}

.dp-card:hover {
  background: var(--dp-border-hover);
  transform: translateY(-2px);
}

.dp-card:focus-visible {
  background: var(--dp-border-hover);
}

.dp-card-inner {
  position: relative;
  z-index: 2;
  background: var(--dp-bg-card);
  border-radius: calc(var(--dp-radius-lg) - 1px);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--dp-duration-base) var(--dp-ease-out);
}

.dp-card:hover .dp-card-inner,
.dp-card:focus-visible .dp-card-inner {
  background: var(--dp-bg-card-hover);
}

/* Card media (1:1 slot — image or placeholder) */
.dp-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.dp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dp-card-media-placeholder {
  width: 100%;
  height: 100%;
  background: var(--dp-bg-card-hover);
}

.dp-card-media-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: auto;
}

/* Fade edge — image fades into card background */
.dp-card-media-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--dp-bg-card) 0%, transparent 100%);
  pointer-events: none;
}

/* Card content */
.dp-card-content {
  padding: var(--dp-space-6) var(--dp-space-6) var(--dp-space-8);
  display: flex;
  flex-direction: column;
  gap: var(--dp-space-3);
  flex: 1;
}

.dp-card-title {
  font-family: var(--dp-font-display);
  font-size: var(--dp-text-lg);
  font-weight: var(--dp-weight-semibold);
  line-height: var(--dp-leading-snug);
  letter-spacing: var(--dp-tracking-tight);
  color: var(--dp-card-text-primary);
  transition: color var(--dp-duration-fast) var(--dp-ease-out);
}

.dp-card-description {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-base);
  font-weight: var(--dp-weight-medium);
  line-height: var(--dp-leading-relaxed);
  color: var(--dp-card-text-secondary);
}

/* ── Toolbox ────────────────────────────── */

.dp-toolbox {
  margin-top: var(--dp-space-16);
}

.dp-toolbox__heading {
  font-family: var(--dp-font-display);
  font-size: var(--dp-text-xl);
  font-weight: var(--dp-weight-semibold);
  color: var(--dp-text-primary);
  text-align: center;
  margin-bottom: var(--dp-space-8);
}

.dp-toolbox__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--dp-space-6);
}

/* Row 1: each card spans 2 of 6 columns (3 equal cards) */
.dp-toolbox__card:nth-child(-n+3) {
  grid-column: span 2;
}

/* Row 2: each card spans 3 of 6 columns (2 centered cards) */
.dp-toolbox__card:nth-child(n+4) {
  grid-column: span 3;
}

.dp-toolbox__card {
  padding: var(--dp-space-6);
  border-radius: var(--dp-radius-lg);
  background: var(--dp-glass-bg-elevated);
  transition: border-color var(--dp-duration-base) var(--dp-ease-out),
              background var(--dp-duration-base) var(--dp-ease-out);
}

.dp-toolbox__card:hover {
  border-color: var(--dp-border-hover);
  background: var(--dp-bg-card-hover);
}

.dp-toolbox__card-title {
  font-family: var(--dp-font-display);
  font-size: var(--dp-text-base);
  font-weight: var(--dp-weight-semibold);
  color: var(--dp-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--dp-tracking-wider);
  margin-bottom: var(--dp-space-4);
}

.dp-toolbox__list {
  list-style: disc;
  padding-left: var(--dp-space-5);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--dp-space-2);
}

.dp-toolbox__list li {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-base);
  line-height: var(--dp-leading-normal);
  color: var(--dp-text-primary);
}

@media (max-width: 768px) {
  .dp-toolbox {
    padding: 0 var(--dp-space-4);
  }

  .dp-toolbox__grid {
    grid-template-columns: 1fr;
  }

  .dp-toolbox__card:nth-child(-n+3),
  .dp-toolbox__card:nth-child(n+4) {
    grid-column: auto;
  }
}

/* --------------------------------------------
   ORGANISMS — Product strip
   -------------------------------------------- */
@keyframes dp-orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18%, -12%); }
}

.dp-strip {
  position: relative;
  overflow: hidden;
  border-radius: var(--dp-radius-xl);
  border: var(--dp-strip-border);
  margin-top: var(--dp-section-gap);
  padding: var(--dp-strip-padding);
  background: var(--dp-strip-bg);
  color-scheme: dark;
}

.dp-strip::before,
.dp-strip::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--dp-strip-orb-opacity, 0.35);
  pointer-events: none;
  animation: dp-orb-drift 20s ease-in-out alternate infinite;
}

.dp-strip--interactive.dp-strip::before {
  animation: none;
  transform: translate(var(--dp-orb-x-1, 0), var(--dp-orb-y-1, 0));
  opacity: var(--dp-orb-pulse-1, var(--dp-strip-orb-opacity, 0.35));
}

.dp-strip--interactive.dp-strip::after {
  animation: none;
  transform: translate(var(--dp-orb-x-2, 0), var(--dp-orb-y-2, 0));
  opacity: var(--dp-orb-pulse-2, var(--dp-strip-orb-opacity, 0.35));
}

.dp-strip::before {
  top: 10%;
  left: 5%;
  background: var(--dp-strip-orb-2);
}

.dp-strip::after {
  bottom: 10%;
  right: 5%;
  background: var(--dp-strip-orb-1);
  animation-delay: -10s;
}

.dp-strip-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.dp-strip-orb-dark {
  position: absolute;
  width: 45%;
  height: 45%;
  border-radius: 50%;
  background: var(--dp-strip-orb-dark);
  filter: blur(70px);
}

.dp-strip-orb-dark--1 {
  top: 25%;
  right: 15%;
}

.dp-strip-orb-dark--2 {
  bottom: 20%;
  left: 10%;
}

.dp-strip-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--dp-strip-gap);
  align-items: start;
}

.dp-strip-media {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  border-radius: var(--dp-device-radius);
  border: var(--dp-device-border);
  box-shadow: var(--dp-device-shadow);
  overflow: hidden;
  background: var(--dp-strip-bg);
}

.dp-strip-skeleton {
  width: 100%;
  height: 100%;
  padding: var(--dp-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--dp-space-3);
  justify-content: center;
}

.dp-strip-skeleton__title {
  height: 14px;
  width: 70%;
  max-width: 140px;
  border-radius: var(--dp-radius-sm);
  background: rgba(255, 255, 255, 0.12);
}

.dp-strip-skeleton__row {
  height: 32px;
  width: 100%;
  border-radius: var(--dp-radius-sm);
  background: rgba(255, 255, 255, 0.08);
}

.dp-strip-skeleton__row--short {
  width: 60%;
}

.dp-strip-skeleton__btn {
  margin-top: var(--dp-space-2);
  height: 40px;
  width: 100%;
  max-width: 120px;
  border-radius: var(--dp-btn-radius);
  background: rgba(255, 255, 255, 0.18);
}

.dp-strip-content {
  display: flex;
  flex-direction: column;
  gap: var(--dp-space-4);
}

.dp-strip-overline {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-xs);
  font-weight: var(--dp-weight-semibold);
  line-height: var(--dp-leading-snug);
  letter-spacing: var(--dp-tracking-wider);
  text-transform: uppercase;
  color: var(--dp-strip-text-color);
  opacity: 0.9;
}

.dp-strip-emoji {
  font-size: 36px;
  line-height: 1;
  display: block;
  margin-bottom: var(--dp-space-2);
}

/* Strip logo (img) — same slot as emoji; SCP strip uses white filter on dark background */
.dp-strip-logo {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: var(--dp-space-2);
}
.dp-strip--scp .dp-strip-logo {
  filter: brightness(0) invert(1);
}

.dp-strip-title {
  background: linear-gradient(180deg, var(--dp-strip-title-from) 0%, var(--dp-strip-title-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--dp-font-display);
  line-height: var(--dp-leading-tight);
  margin: 0;
}

.dp-strip-description {
  color: var(--dp-strip-text-color);
  font-size: 1rem;
  line-height: 1.6;
  font-family: var(--dp-font-body);
  margin: 0;
}

.dp-strip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dp-space-2);
}

.dp-strip-badge {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-xs);
  font-weight: var(--dp-weight-medium);
  line-height: 1;
  padding: var(--dp-space-1) var(--dp-space-3);
  border-radius: var(--dp-radius-full);
  background: var(--dp-strip-badge-bg);
  color: var(--dp-strip-badge-text);
}

.dp-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dp-space-3);
  align-items: center;
}

.dp-strip-inner > .dp-strip-actions {
  margin-top: var(--dp-space-2);
}

/* Strip layout — flipped (content left, media right) */
.dp-strip--flipped .dp-strip-media {
  grid-column: 2;
  grid-row: 1 / -1;
}
.dp-strip--flipped .dp-strip-content {
  grid-column: 1;
}
.dp-strip--flipped .dp-strip-actions {
  grid-column: 1;
}

/* Strip theme — Kaomoji (dark monochrome) */
.dp-strip--kaomoji {
  --dp-strip-bg: #141414;
  --dp-strip-orb-1: #3a3a3a;
  --dp-strip-orb-2: #2a2a2a;
  --dp-strip-orb-dark: rgba(0, 0, 0, 0.12);
  --dp-strip-orb-opacity: 0.3;
  --dp-strip-title-color: #f0f0f0;
  --dp-strip-text-color: rgba(240, 240, 240, 0.8);
  --dp-strip-badge-bg: rgba(255, 255, 255, 0.1);
  --dp-strip-badge-text: rgba(240, 240, 240, 0.9);
  --dp-device-border: 1px solid rgba(255, 255, 255, 0.08);
  --dp-device-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.dp-strip--kaomoji::before,
.dp-strip--kaomoji::after {
  display: none;
}
.dp-strip--kaomoji .dp-strip-emoji {
  color: var(--dp-strip-title-color);
}
.dp-strip--kaomoji .dp-strip-media {
  align-self: stretch;
  justify-self: center;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 400px;
  background: #141414;
  border: 1px solid #5a5a5a;
  box-shadow: none;
}

/* Split row — side-by-side strips (e.g. 2/3 + 1/3) */
.dp-split-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--dp-space-6);
  margin-top: var(--dp-section-gap);
  align-items: stretch;
}

.dp-split-row > .dp-strip {
  margin-top: 0;
}

/* Flipped split-row — testimonial on left, strip on right */
.dp-split-row--flipped {
  grid-template-columns: 1fr 2fr;
}

.dp-strip--compact .dp-strip-inner {
  grid-template-columns: 1fr;
  max-width: none;
}

.dp-strip--compact .dp-strip-content {
  text-align: left;
}

.dp-strip--compact .dp-strip-actions {
  grid-column: 1;
}

.dp-strip--scp {
  --dp-strip-bg: var(--dp-strip-scp-bg);
  --dp-strip-orb-1: var(--dp-strip-scp-orb-1);
  --dp-strip-orb-2: var(--dp-strip-scp-orb-2);
  --dp-strip-orb-dark: var(--dp-strip-scp-orb-dark);
  --dp-strip-orb-opacity: var(--dp-strip-scp-orb-opacity);
  --dp-strip-title-color: var(--dp-strip-scp-title-color);
  --dp-strip-text-color: var(--dp-strip-scp-text-color);
  --dp-strip-badge-bg: var(--dp-strip-scp-badge-bg);
  --dp-strip-badge-text: var(--dp-strip-scp-badge-text);
  --dp-device-border: var(--dp-strip-scp-device-border);
  --dp-device-shadow: var(--dp-strip-scp-device-shadow);
}

/* Strip theme — Flip 7 (full-width with media, tall card; orbs visible) */
.dp-strip--flip7 {
  --dp-strip-bg: var(--dp-strip-flip7-bg);
  --dp-strip-title-from: var(--dp-strip-flip7-title-from);
  --dp-strip-title-to: var(--dp-strip-flip7-title-to);
  --dp-strip-border: var(--dp-strip-flip7-border);
  --dp-strip-orb-1: var(--dp-strip-flip7-orb-1);
  --dp-strip-orb-2: var(--dp-strip-flip7-orb-2);
  --dp-strip-orb-dark: var(--dp-strip-flip7-orb-dark);
  --dp-strip-orb-opacity: var(--dp-strip-flip7-orb-opacity);
  --dp-strip-title-color: var(--dp-strip-flip7-title-color);
  --dp-strip-text-color: var(--dp-strip-flip7-text-color);
  --dp-strip-badge-bg: var(--dp-strip-flip7-badge-bg);
  --dp-strip-badge-text: var(--dp-strip-flip7-badge-text);
  --dp-device-border: var(--dp-strip-flip7-device-border);
  --dp-device-shadow: var(--dp-strip-flip7-device-shadow);
}
.dp-strip--flip7 .dp-strip-media {
  aspect-ratio: 9 / 16;
  max-height: 400px;
  border-radius: var(--dp-device-radius);
  overflow: hidden;
}

/* Testimonial card (split-row 1/3 slot) */
.dp-testimonial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: var(--dp-glass-bg);
  backdrop-filter: blur(var(--dp-glass-blur));
  -webkit-backdrop-filter: blur(var(--dp-glass-blur));
  border: 1px solid var(--dp-border-default);
  border-radius: var(--dp-radius-xl);
  padding: var(--dp-space-8) var(--dp-space-6);
  margin: 0;
  overflow: hidden;
  min-height: 0;
}

.dp-testimonial-mark {
  position: absolute;
  top: var(--dp-space-4);
  left: var(--dp-space-4);
  font-family: var(--dp-font-serif);
  font-size: 0;
  font-weight: var(--dp-weight-bold);
  line-height: 1;
  color: var(--dp-text-primary);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

.dp-testimonial-mark::before {
  content: '\201C';
  font-family: var(--dp-font-serif);
  font-size: 10rem;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
}

.dp-testimonial-quote {
  font-family: var(--dp-font-serif);
  font-size: var(--dp-text-base);
  font-style: italic;
  font-weight: normal;
  line-height: var(--dp-leading-relaxed);
  color: var(--dp-text-primary);
  margin: 0 0 var(--dp-space-6) 0;
  position: relative;
  z-index: 1;
}

.dp-testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: var(--dp-space-1);
  position: relative;
  z-index: 1;
}

.dp-testimonial-name {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-sm);
  font-weight: var(--dp-weight-semibold);
  line-height: var(--dp-leading-normal);
  color: var(--dp-text-primary);
  font-style: normal;
}

.dp-testimonial-role {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-sm);
  font-weight: var(--dp-weight-normal);
  line-height: var(--dp-leading-normal);
  color: var(--dp-text-secondary);
}

/* ── Testimonials container / track ── */
.dp-testimonials {
  --dp-testimonial-min-width: 280px;
  --dp-testimonial-min-width-lg: 300px;
  --dp-testimonial-track-max-width: 960px;
  padding-top: 0;
  padding-bottom: var(--dp-space-16);
}

.dp-testimonials-track {
  display: flex;
  flex-direction: row;
  gap: var(--dp-space-6);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dp-testimonials-track::-webkit-scrollbar {
  display: none;
}

.dp-testimonials .dp-testimonial {
  min-width: var(--dp-testimonial-min-width);
  flex: 1;
}

@media (max-width: 767px) {
  .dp-testimonials {
    position: relative;
  }
  .dp-testimonials::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--dp-space-10);
    background: linear-gradient(to right, transparent, var(--dp-bg-base));
    pointer-events: none;
    z-index: 1;
  }
}

@media (min-width: 768px) {
  .dp-testimonials {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .dp-testimonials-track {
    max-width: var(--dp-testimonial-track-max-width);
    margin-left: auto;
    margin-right: auto;
  }
  .dp-testimonials .dp-testimonial {
    min-width: var(--dp-testimonial-min-width-lg);
  }
}

/* ── Testimonials section (3-col grid, homepage) ── */
.dp-testimonials-section {
  max-width: var(--dp-testimonial-track-max-width);
  margin: var(--dp-section-gap) auto 0;
}

.dp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dp-space-6);
}

@media (max-width: 768px) {
  .dp-testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--dp-space-5);
  }
}

/* ── Contact CTA ── */
.dp-contact-cta {
  text-align: center;
  padding: var(--dp-space-16) var(--dp-space-6);
}

.dp-contact-cta__heading {
  font-family: var(--dp-font-display);
  font-size: var(--dp-text-2xl);
  font-weight: var(--dp-weight-semibold);
  line-height: var(--dp-leading-snug);
  color: var(--dp-text-primary);
  margin: 0 0 var(--dp-space-3) 0;
}

.dp-contact-cta__body {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-lg);
  line-height: var(--dp-leading-relaxed);
  color: var(--dp-text-secondary);
  margin: 0 0 var(--dp-space-8) 0;
}

.dp-contact-cta__actions {
  display: flex;
  gap: var(--dp-space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Star rating ── */
.dp-star-rating {
  --dp-star-rating-icon-size: 28px;
  padding-top: 0;
  padding-bottom: var(--dp-space-16);
}

.dp-star-rating-card {
  --dp-star-rating-max-width: 400px;
  background: var(--dp-glass-bg);
  backdrop-filter: blur(var(--dp-glass-blur));
  -webkit-backdrop-filter: blur(var(--dp-glass-blur));
  border: 1px solid var(--dp-border-default);
  border-radius: var(--dp-radius-md);
  padding: var(--dp-space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--dp-space-2);
  max-width: var(--dp-star-rating-max-width);
  margin-left: auto;
  margin-right: auto;
}

.dp-star-rating-stars {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--dp-space-2);
  color: var(--dp-accent);
}

.dp-star-rating-stars svg {
  width: var(--dp-star-rating-icon-size);
  height: var(--dp-star-rating-icon-size);
  flex-shrink: 0;
}

.dp-star-rating-value {
  font-size: var(--dp-text-3xl);
  font-weight: var(--dp-weight-bold);
  color: var(--dp-accent);
}

.dp-star-rating-label {
  font-size: var(--dp-text-sm);
  color: var(--dp-text-secondary);
}

/* ── Growth chart ── */
.dp-growth-chart {
  --dp-growth-chart-max-height: 320px;
  background: var(--dp-glass-bg);
  backdrop-filter: blur(var(--dp-glass-blur));
  -webkit-backdrop-filter: blur(var(--dp-glass-blur));
  border: 1px solid var(--dp-border-default);
  border-radius: var(--dp-radius-md);
  padding: var(--dp-space-6);
  margin-top: var(--dp-space-8);
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  max-height: var(--dp-growth-chart-max-height);
}

.dp-growth-chart canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ── Pull Quote ── */
.dp-pullquote {
  margin-block: var(--dp-prose-section-gap);
  padding-block: var(--dp-space-6);
  border-top: 1px solid var(--dp-border-divider);
  border-bottom: 1px solid var(--dp-border-divider);
  border-left: none;
  border-right: none;
  background: none;
}

.dp-pullquote p {
  font-family: var(--dp-font-serif);
  font-style: italic;
  font-size: var(--dp-text-xl);
  line-height: var(--dp-leading-normal);
  color: var(--dp-text-primary);
  font-weight: var(--dp-weight-normal);
  margin: 0;
  text-align: left;
}

@media (min-width: 768px) {
  .dp-pullquote p {
    font-size: var(--dp-text-4xl);
  }
}

/* --------------------------------------------
   ORGANISMS — Card grid
   -------------------------------------------- */
.dp-grid-section {
  padding-top: var(--dp-section-gap);
  padding-bottom: var(--dp-space-30);
}

/* --------------------------------------------
   PROSE
   -------------------------------------------- */
.dp-prose {
  max-width: var(--dp-prose-max-width);
  margin-inline: auto;
  padding-inline: var(--dp-space-5);
}

.dp-prose-section {
  display: flex;
  flex-direction: column;
  gap: var(--dp-prose-gap);
}

.dp-prose-section + .dp-prose-section {
  margin-top: var(--dp-prose-section-gap);
}

.dp-prose h2 {
  font-size: var(--dp-prose-heading-size);
  font-weight: var(--dp-weight-semibold);
  line-height: var(--dp-leading-tight);
  letter-spacing: var(--dp-tracking-tight);
  color: var(--dp-text-primary);
}

.dp-prose h3 {
  font-size: var(--dp-prose-subheading-size);
  font-weight: var(--dp-weight-semibold);
  line-height: var(--dp-leading-snug);
  color: var(--dp-text-primary);
}

.dp-prose p {
  font-size: var(--dp-prose-body-size);
  line-height: var(--dp-prose-body-leading);
  color: var(--dp-text-secondary);
}

.dp-prose strong {
  font-weight: var(--dp-weight-semibold);
  color: var(--dp-text-primary);
}

.dp-prose ul,
.dp-prose ol {
  padding-left: var(--dp-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--dp-space-2);
}

.dp-prose li {
  font-size: var(--dp-prose-body-size);
  line-height: var(--dp-prose-body-leading);
  color: var(--dp-text-secondary);
}

.dp-prose-image {
  width: 100%;
  border-radius: var(--dp-radius-lg);
  border: 1px solid var(--dp-border-default);
  margin-block: var(--dp-space-4);
}

/* --------------------------------------------
   Impact Metrics Banner
   -------------------------------------------- */
.dp-impact-banner {
  display: flex;
  justify-content: center;
  gap: var(--dp-space-10);
  max-width: var(--dp-prose-max-width);
  margin: 0 auto;
  padding: 0 var(--dp-space-6) var(--dp-space-12);
}

.dp-impact-banner__item {
  text-align: center;
}

.dp-impact-banner__value {
  display: block;
  font-family: var(--dp-font-display);
  font-size: var(--dp-text-3xl);
  font-weight: var(--dp-weight-bold);
  line-height: var(--dp-leading-tight);
  color: var(--dp-text-primary);
  margin-bottom: var(--dp-space-2);
}

.dp-impact-banner__label {
  display: block;
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-sm);
  font-weight: var(--dp-weight-normal);
  line-height: var(--dp-leading-normal);
  color: var(--dp-text-secondary);
}

/* --------------------------------------------
   TLDR Card
   -------------------------------------------- */
.dp-tldr {
  max-width: var(--dp-prose-max-width);
  margin-inline: auto;
  padding: var(--dp-tldr-padding);
  padding-inline: var(--dp-space-5);
  background: var(--dp-tldr-bg);
  border: 1px solid var(--dp-tldr-border);
  border-radius: var(--dp-tldr-radius);
  margin-bottom: var(--dp-prose-section-gap);
}

@media (min-width: 769px) {
  .dp-tldr {
    padding: var(--dp-tldr-padding);
  }
}

.dp-tldr__heading {
  font-size: var(--dp-tldr-heading-size);
  font-weight: var(--dp-weight-semibold);
  letter-spacing: var(--dp-tracking-wide);
  text-transform: uppercase;
  color: var(--dp-text-secondary);
  margin: 0 0 var(--dp-tldr-gap) 0;
}

.dp-tldr__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--dp-tldr-gap);
}

.dp-tldr__item {
  font-size: var(--dp-tldr-bullet-size);
  line-height: var(--dp-tldr-bullet-leading);
  color: var(--dp-text-primary);
  padding-left: var(--dp-space-5);
  position: relative;
}

.dp-tldr__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: var(--dp-radius-full);
  background: var(--dp-accent);
}

/* Prose layout wrapper (Phase 2 grid-ready) */
.dp-prose-layout {
  display: contents;
}

/* --------------------------------------------
   FOOTER
   -------------------------------------------- */
.dp-footer {
  margin-top: var(--dp-space-20);
  padding: var(--dp-space-10) 0 var(--dp-space-20);
  text-align: center;
}

.dp-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--dp-space-6);
}

.dp-footer-text {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-sm);
  font-weight: var(--dp-weight-normal);
  line-height: var(--dp-leading-normal);
  color: var(--dp-text-secondary);
}

.dp-footer-links {
  display: flex;
  gap: var(--dp-space-6);
}

.dp-footer-link {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-sm);
  font-weight: var(--dp-weight-normal);
  line-height: var(--dp-leading-normal);
  color: var(--dp-text-secondary);
  text-decoration: none;
  transition: color var(--dp-duration-fast) var(--dp-ease-out);
}

.dp-footer-link:hover {
  color: var(--dp-text-primary);
}

.dp-footer-link:focus-visible {
  outline: 2px solid var(--dp-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.dp-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dp-space-6);
  width: 100%;
}

/* Empty state */
.dp-empty {
  text-align: center;
  color: var(--dp-text-tertiary);
  font-size: var(--dp-text-sm);
  padding: var(--dp-space-20) 0;
}

/* ===== Resume ===== */
.dp-resume-section {
  padding: var(--dp-space-20) var(--dp-space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Resume layout --- */
.dp-resume-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--dp-space-8);
  max-width: 210mm;
  margin: 0 auto;
}

.dp-resume-heading {
  font-family: var(--dp-font-display);
  font-size: var(--dp-text-3xl);
  font-weight: 700;
  color: var(--dp-text-primary);
  text-align: center;
  margin: 0;
}

.dp-resume-download-row {
  display: flex;
  justify-content: center;
}

/* --- Download widget --- */
.dp-resume-download {
  position: relative;
}

.dp-download-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--dp-space-2);
}

.dp-download-chevron {
  transition: transform var(--dp-duration-fast) var(--dp-ease-out);
  flex-shrink: 0;
}

.dp-download-trigger[aria-expanded="true"] .dp-download-chevron {
  transform: rotate(180deg);
}

.dp-download-menu {
  top: calc(100% + var(--dp-space-2));
  left: 0;
  min-width: 200px;
  animation: dp-menu-enter var(--dp-duration-fast) var(--dp-ease-out);
}

@keyframes dp-menu-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dp-download-menu-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.dp-download-menu-item:hover svg {
  opacity: 1;
}

.dp-resume-container {
  width: 100%;
  max-width: 210mm;
  aspect-ratio: 210 / 297;
  padding: 1px;
  background: var(--dp-paper-border);
  box-shadow: var(--dp-paper-shadow);
  border-radius: var(--dp-radius-sm);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

/* Inner masking layer — solid surface on top of ::before glow so only border shows (matches .dp-card-inner technique) */
.dp-resume-page {
  position: relative;
  z-index: 2;
  background: var(--dp-paper-surface);
  border-radius: calc(var(--dp-radius-sm) - 1px);
  padding: 32px 36px 28px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dp-resume-page::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--dp-paper-surface));
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}
.dp-lightbox-page .dp-resume-page::after {
  display: none;
}

.dp-resume-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--dp-space-6);
  margin-bottom: var(--dp-space-4);
  padding-bottom: var(--dp-space-4);
  border-bottom: 1px solid var(--dp-paper-border);
}

.dp-resume-name {
  font-family: var(--dp-font-display);
  font-size: var(--dp-text-xl);
  font-weight: var(--dp-weight-bold);
  color: var(--dp-paper-text-primary);
  line-height: var(--dp-leading-tight);
  margin: 0;
}

.dp-resume-tagline {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-base);
  color: var(--dp-paper-text-secondary);
  margin: var(--dp-space-1) 0 0;
}

.dp-resume-summary {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-xs);
  color: var(--dp-paper-text-secondary);
  line-height: var(--dp-leading-normal);
  margin: var(--dp-space-2) 0 0;
  max-width: 48ch;
}

.dp-resume-contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--dp-space-1);
  flex-shrink: 0;
}

.dp-resume-contact-item {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-xs);
  color: var(--dp-paper-text-secondary);
  text-decoration: none;
}

a.dp-resume-contact-item:hover {
  color: var(--dp-paper-accent);
}

.dp-resume-body {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  flex: 1;
  min-height: 0;
}

.dp-resume-main {
  min-width: 0;
}

.dp-resume-sidebar {
  min-width: 0;
  padding-left: var(--dp-space-4);
  border-left: 1px solid var(--dp-paper-border);
}

.dp-resume-section-title {
  font-family: var(--dp-font-display);
  font-size: 11px;
  font-weight: var(--dp-weight-semibold);
  color: var(--dp-paper-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--dp-tracking-wider);
  margin: 0 0 var(--dp-space-2);
  margin-top: 20px;
}
.dp-resume-section-title:first-child {
  margin-top: 10px;
}

.dp-resume-role {
  margin-bottom: var(--dp-space-3);
}

.dp-resume-role + .dp-resume-role {
  margin-top: 16px;
}

.dp-resume-role:last-child {
  margin-bottom: 0;
}

.dp-resume-role-title {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-xs);
  font-weight: var(--dp-weight-semibold);
  color: var(--dp-paper-text-primary);
  margin: 0;
}

.dp-resume-role-title em {
  font-weight: var(--dp-weight-normal);
  font-style: italic;
}

.dp-resume-role-meta {
  font-family: var(--dp-font-body);
  font-size: 11px;
  color: var(--dp-paper-text-secondary);
  display: block;
  margin: 2px 0;
}

.dp-resume-role-desc {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-xs);
  color: var(--dp-paper-text-secondary);
  line-height: var(--dp-leading-normal);
  margin: var(--dp-space-1) 0;
}

.dp-resume-role-achievements {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-xs);
  color: var(--dp-paper-text-primary);
  line-height: var(--dp-leading-normal);
  padding-left: var(--dp-space-4);
  margin: var(--dp-space-1) 0 0;
}

.dp-resume-role-achievements li {
  margin-bottom: 2px;
}

.dp-resume-sidebar .dp-resume-section-group {
  margin-bottom: var(--dp-space-4);
}

.dp-resume-skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dp-resume-skill-list li {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-xs);
  color: var(--dp-paper-text-primary);
  line-height: var(--dp-leading-normal);
  padding: 1px 0;
}

.dp-resume-container:hover {
  box-shadow: var(--dp-paper-shadow);
  transition: box-shadow var(--dp-duration-base) var(--dp-ease-out);
}

.dp-resume-page-wrapper {
  width: 100%;
}

/* Cursor-tracking border glow (matches .dp-card::before — glow behind inner so only edge visible) */
.dp-resume-page-wrapper .dp-resume-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--dp-duration-base) var(--dp-ease-out);
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--dp-accent-glow),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
}

.dp-resume-page-wrapper .dp-resume-container:hover::before {
  opacity: 1;
}


/* --- Resume lightbox --- */
body.dp-overlay-active {
  overflow: hidden;
}

.dp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--dp-space-8);
  overflow-y: auto;
}

.dp-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: var(--dp-bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.dp-lightbox-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: var(--dp-space-6);
  width: 100%;
  max-width: calc(210mm + 200px + var(--dp-space-6));
  justify-content: center;
  pointer-events: auto;
}

.dp-lightbox-content {
  width: 100%;
  max-width: 210mm;
}

.dp-lightbox-sidebar {
  position: sticky;
  top: var(--dp-space-8);
  flex-shrink: 0;
}

.dp-lightbox-page {
  background: var(--dp-paper-surface);
  border: 1px solid var(--dp-paper-border);
  border-radius: var(--dp-radius-sm);
  box-shadow: var(--dp-paper-shadow);
  padding: 40px 56px;
  width: 100%;
}

.dp-lightbox-close {
  position: fixed;
  top: var(--dp-space-3);
  right: var(--dp-space-3);
  z-index: 10001;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--dp-radius-md);
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 150ms ease-out;
  pointer-events: auto;
}

.dp-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.6);
}

.dp-lightbox-close:focus-visible {
  outline: 2px solid var(--dp-paper-accent);
  outline-offset: 2px;
}

[data-theme="light"] .dp-lightbox-close {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.10);
  color: rgba(0, 0, 0, 0.80);
}

[data-theme="light"] .dp-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Print-only lightbox: hidden on screen, visible when printing */
.dp-lightbox--print-only {
  position: fixed;
  left: -9999px;
  visibility: hidden;
}

/* --- Snackbar --- */
.dp-snackbar {
  position: fixed;
  bottom: var(--dp-space-8);
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  z-index: 20000;
  background: var(--dp-glass-bg-mid);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dp-border-default);
  border-radius: var(--dp-radius-sm);
  padding: var(--dp-space-3) var(--dp-space-5);
  color: var(--dp-text-primary);
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-sm);
  font-weight: 500;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dp-snackbar--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .dp-snackbar {
    transition: none;
    transform: translateX(-50%) translateY(0);
  }
}

/* --- Resume responsive --- */
@media (max-width: 1080px) {
  .dp-page-content {
    padding-top: var(--dp-space-12);
  }

  /* Section wrapper — reduce padding */
  .dp-resume-section {
    padding: var(--dp-space-12) var(--dp-space-4);
  }

  /* Drop paper metaphor — no shadow, no border, no aspect-ratio, no bg */
  .dp-resume-container {
    max-width: none;
    aspect-ratio: unset;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    cursor: default;
  }

  /* Remove hover effect on mobile */
  .dp-resume-container:hover {
    box-shadow: none;
  }

  /* Header stacks vertically */
  .dp-resume-header {
    flex-direction: column;
    gap: var(--dp-space-4);
  }

  .dp-resume-contact {
    align-items: flex-start;
  }

  /* Switch text colors to site theme (not paper-white) */
  .dp-resume-name {
    color: var(--dp-text-primary);
    font-size: var(--dp-text-xl);
  }

  .dp-resume-tagline {
    color: var(--dp-text-secondary);
    font-size: var(--dp-text-base);
  }

  .dp-resume-summary {
    color: var(--dp-text-secondary);
    max-width: none;
    font-size: var(--dp-text-base);
    line-height: var(--dp-leading-relaxed);
  }

  .dp-resume-contact-item {
    color: var(--dp-text-secondary);
    font-size: var(--dp-text-sm);
  }

  .dp-resume-header {
    border-bottom-color: var(--dp-border-default);
  }

  /* Body — single column, sidebar below main */
  .dp-resume-body {
    grid-template-columns: 1fr;
    gap: var(--dp-space-8);
  }

  .dp-resume-sidebar {
    padding-left: 0;
    border-left: none;
    padding-top: var(--dp-space-6);
    border-top: 1px solid var(--dp-border-default);
  }

  /* Section titles + roles use site theme colors; font sizes for WCAG AA (body ≥16px, secondary ≥14px) */
  .dp-resume-section-title {
    color: var(--dp-text-secondary);
    font-size: var(--dp-text-sm);
  }

  .dp-resume-role-title {
    color: var(--dp-text-primary);
    font-size: var(--dp-text-base);
  }

  .dp-resume-role-meta {
    color: var(--dp-text-secondary);
    font-size: var(--dp-text-sm);
  }

  .dp-resume-role-desc {
    color: var(--dp-text-secondary);
    font-size: var(--dp-text-base);
    line-height: var(--dp-leading-relaxed);
  }

  .dp-resume-role-achievements {
    color: var(--dp-text-primary);
    font-size: var(--dp-text-base);
    line-height: var(--dp-leading-relaxed);
  }

  .dp-resume-skill-list li {
    color: var(--dp-text-primary);
    font-size: var(--dp-text-sm);
  }

  /* Disable cursor-tracking glow on mobile — no hover, saves rendering */
  .dp-resume-container::before {
    display: none;
  }
}

/* --------------------------------------------
   EFFECTS — Cursor-tracking card glow
   -------------------------------------------- */
.dp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--dp-duration-base) var(--dp-ease-out);
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--dp-accent-glow),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
}

.dp-card:hover::before {
  opacity: 1;
}

/* --------------------------------------------
   EFFECTS — Shimmer border
   -------------------------------------------- */
@keyframes dp-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.dp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 40%,
    var(--dp-border-active) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: dp-shimmer 4s ease-in-out infinite;
  opacity: 0;
  transition: opacity var(--dp-duration-slow) var(--dp-ease-out);
  pointer-events: none;
  z-index: 1;
}

.dp-card:hover::after {
  opacity: 1;
}

/* --------------------------------------------
   EFFECTS — Scroll reveal
   -------------------------------------------- */
.dp-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dp-duration-entrance) var(--dp-ease-out),
              transform var(--dp-duration-entrance) var(--dp-ease-out);
}

.dp-reveal.dp-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------
   EFFECTS — Hero ambient glow
   -------------------------------------------- */
.dp-hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: var(--dp-accent-glow);
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}

/* --------------------------------------------
   ACCESSIBILITY
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  /* Remove all transforms and animations */
  .dp-btn {
    transition: none;
  }

  .dp-back-to-top {
    transition: none;
  }

  .dp-download-menu {
    animation: none;
  }

  .dp-download-chevron {
    transition: none;
  }

  .dp-nav-dropdown-trigger svg {
    transition: none;
  }

  .dp-nav-drawer-backdrop {
    transition: none;
  }

  .dp-nav-drawer-panel {
    transition: none;
  }

  .dp-nav-drawer-link {
    transition: none;
  }

  .dp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .dp-reveal.dp-revealed {
    transform: none;
  }

  .dp-card {
    transition: background var(--dp-duration-base) var(--dp-ease-out);
  }

  .dp-card:hover {
    transform: none;
  }

  .dp-toolbox__card {
    transition: none;
  }

  .dp-card::after {
    animation: none;
  }

  .dp-strip::before,
  .dp-strip::after {
    animation: none;
  }

  body {
    transition: none;
  }

  .dp-hero::before {
    filter: blur(120px);
    /* Keep the glow but don't animate it */
  }

  .dp-avatar-wiggle {
    animation: none;
  }

  .dp-avatar-wrap:hover > * {
    opacity: 0.85;
    transition: opacity var(--dp-duration-base) var(--dp-ease-out);
  }

  .dp-resume-container::before {
    display: none;
  }

  .dp-hero-card__link::after {
    transition: none;
  }

  .dp-hero-card__link:hover::after {
    transform: none;
  }
}

/* Focus visible — high contrast ring for keyboard users */
.dp-card:focus-visible {
  outline: 2px solid var(--dp-accent);
  outline-offset: 2px;
}

/* Skip to content (hidden until focused) */
.dp-skip-link {
  position: absolute;
  top: -100%;
  left: var(--dp-space-4);
  padding: var(--dp-space-3) var(--dp-space-5);
  background: var(--dp-accent);
  color: var(--dp-raw-white);
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-sm);
  font-weight: var(--dp-weight-medium);
  border-radius: var(--dp-radius-sm);
  z-index: 10000;
  text-decoration: none;
}

.dp-skip-link:focus {
  top: var(--dp-space-4);
}

/* --------------------------------------------
   RESPONSIVE — Foundation breakpoints
   -------------------------------------------- */
@media (max-width: 1024px) {
  .dp-hero--split {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .dp-hero-card {
    min-width: unset;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .dp-footer-inner {
    flex-direction: column;
    gap: var(--dp-space-4);
  }
  .dp-split-row {
    grid-template-columns: 1fr;
  }
  .dp-split-row--flipped {
    grid-template-columns: 1fr;
  }
  .dp-testimonial {
    padding: var(--dp-space-6);
  }
  :root { --dp-section-gap: var(--dp-space-12); }
  .dp-hero {
    padding-top: var(--dp-space-24);
    padding-bottom: var(--dp-section-gap);
  }
  .dp-hero-heading {
    font-size: var(--dp-text-3xl);
  }
  .dp-hero--split .dp-hero-content {
    align-items: flex-start;
  }
  .dp-hero-card__heading {
    font-size: var(--dp-text-lg);
  }
  .dp-hero-card__link {
    font-size: var(--dp-text-base);
  }
  .dp-hero-card-section {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  .dp-strip {
    margin-top: var(--dp-section-gap);
    padding: var(--dp-space-10) var(--dp-space-5);
  }
  .dp-strip-inner {
    grid-template-columns: 1fr;
    gap: var(--dp-space-6);
  }
  .dp-strip--flipped .dp-strip-media,
  .dp-strip--flipped .dp-strip-content,
  .dp-strip--flipped .dp-strip-actions {
    grid-column: auto;
    grid-row: auto;
  }
  /* Strip mobile pattern: copy first (introduce then show), then device; both centered */
  .dp-strip-content {
    order: -1;
    text-align: center;
    align-items: center;
  }
  .dp-strip--compact .dp-strip-content {
    text-align: center;
  }
  .dp-strip-badges {
    justify-content: center;
  }
  .dp-strip-actions {
    order: 1;
    flex-direction: column;
    width: 100%;
    gap: var(--dp-space-4);
    justify-content: center;
  }
  .dp-strip-actions .dp-btn {
    width: 100%;
    box-sizing: border-box;
  }
  .dp-strip-media {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 16;
    max-height: none;
    min-height: 320px;
    justify-self: center;
  }
  .dp-strip--kaomoji .dp-strip-media {
    align-self: center;
    width: 280px;
    height: 280px;
    max-width: 280px;
    max-height: 280px;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  .dp-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--dp-space-5);
  }
  .dp-nav-links {
    display: none;
  }
  .dp-nav-hamburger {
    display: flex;
  }
  .dp-snake-toggle {
    display: none;
  }
  .dp-404-snake-btn {
    display: none;
  }
  .dp-impact-banner {
    gap: var(--dp-space-6);
  }
  .dp-impact-banner__value {
    font-size: var(--dp-text-2xl);
  }
}

@media (max-width: 480px) {
  .dp-page-content {
    padding-top: var(--dp-space-12);
  }
  :root { --dp-section-gap: var(--dp-space-8); }
  .dp-hero {
    padding-top: var(--dp-space-16);
    padding-bottom: var(--dp-section-gap);
    gap: var(--dp-space-4);
  }
  .dp-hero-heading {
    font-size: var(--dp-text-2xl);
    max-width: 20ch;
    margin-inline: auto;
  }
  .dp-hero-body {
    font-size: var(--dp-text-base);
  }
  .dp-impact-banner {
    flex-direction: column;
    align-items: center;
    gap: var(--dp-space-6);
  }
  .dp-impact-banner__value {
    font-size: var(--dp-text-xl);
  }
  .dp-strip {
    margin-top: var(--dp-section-gap);
    padding: var(--dp-space-8) var(--dp-space-4);
  }
  .dp-strip-media {
    max-width: 240px;
    min-height: 280px;
  }
  .dp-strip--kaomoji .dp-strip-media {
    width: 240px;
    height: 240px;
    max-width: 240px;
    max-height: 240px;
    min-height: 0;
  }
  .dp-strip-title {
    font-size: 1.5rem;
  }
  .dp-nav-inner {
    padding: var(--dp-space-2) var(--dp-space-4);
    height: 56px;
  }
  .dp-nav-logo {
    width: 28px;
    height: 28px;
  }
  .dp-nav-name {
    font-size: var(--dp-text-sm);
  }
  .dp-card-grid {
    grid-template-columns: 1fr;
    gap: var(--dp-space-5);
  }
  .dp-card-content {
    padding: var(--dp-space-5) var(--dp-space-5) var(--dp-space-6);
  }
  .dp-hero-card__cta-btn {
    align-self: stretch;
  }
}

/* ============================================
   404 Page
   ============================================ */
.dp-404-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.dp-404-glow {
  position: absolute;
  width: 600px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  pointer-events: none;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--dp-accent, #5E6AD2);
}

.dp-404-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--dp-space-8);
  max-width: 520px;
}

.dp-404-code {
  font-family: var(--dp-font-display);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 var(--dp-space-4);
}

.dp-404-title {
  font-family: var(--dp-font-display);
  font-size: var(--dp-text-xl);
  font-weight: 700;
  color: var(--dp-text-primary);
  margin: 0 0 var(--dp-space-4);
}

.dp-404-body {
  font-family: var(--dp-font-body);
  font-size: var(--dp-text-base);
  line-height: 1.6;
  color: var(--dp-text-secondary);
  margin: 0 0 var(--dp-space-8);
}

.dp-404-actions {
  display: flex;
  justify-content: center;
  gap: var(--dp-space-4);
  flex-wrap: wrap;
}

/* ============================================
   PRINT — Resume lightbox to PDF
   ============================================ */
@media print {
  :root {
    /* Print type scale */
    --dp-print-name: 22px;
    --dp-print-tagline: 12px;
    --dp-print-body: 11px;
    --dp-print-body-sm: 11px;
    --dp-print-role-title: 13px;
    --dp-print-meta: 10px;
    --dp-print-section-title: 11px;

    /* Print rhythm */
    --dp-print-leading: 1.35;
    --dp-print-leading-tight: 1.2;

    /* Print spacing */
    --dp-print-section-gap: 16px;
    --dp-print-role-gap: 12px;
    --dp-print-column-gap: 16px;
    --dp-print-li-gap: 2px;

    /* Page margins (matched in web container) */
    --dp-print-page-v: 15mm;
    --dp-print-page-h: 15mm;
  }

  /* Force light theme for print (values from dev-tokens.css [data-theme="light"] lines 250-263, 352-357) */
  :root {
    color-scheme: light !important;
    --dp-paper-surface: #FFFFFF;
    --dp-paper-text-primary: #111113;
    --dp-paper-text-secondary: #5A6170;
    --dp-paper-border: rgba(0, 0, 0, 0.06);
    --dp-paper-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --dp-paper-accent: #5E6AD2;
    --dp-text-primary: #111113;
    --dp-text-secondary: #4B5060;
    --dp-border-default: rgba(0, 0, 0, 0.08);
  }

  /* Hide everything except resume content */
  .dp-skip-link,
  .dp-banner-ticker,
  .dp-nav,
  .dp-hero,
  .dp-section-label,
  .dp-strip,
  .dp-resume-section,
  .dp-footer,
  .dp-split-row,
  .dp-lightbox-backdrop,
  .dp-lightbox-close,
  .dp-lightbox-sidebar,
  .dp-back-to-top {
    display: none !important;
  }

  /* Reset lightbox to flat page */
  .dp-lightbox {
    display: block !important;
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    padding: 0 !important;
    background: none !important;
  }

  .dp-lightbox-content {
    position: static !important;
    max-height: none !important;
    max-width: none !important;
  }

  .dp-lightbox-page {
    overflow: visible !important;
    aspect-ratio: auto !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
    background: white !important;
    color: black !important;
  }
  .dp-resume-page::after {
    display: none;
  }

  .dp-resume-role {
    break-inside: avoid;
  }

  .dp-lightbox--print-only {
    position: static !important;
    left: auto !important;
    visibility: visible !important;
  }

  /* Force two-column layout (counteract @media (max-width: 1080px) which stacks columns) */
  .dp-resume-body {
    display: grid !important;
    grid-template-columns: 1fr 200px !important;
    gap: var(--dp-print-column-gap) !important;
  }

  .dp-resume-header {
    flex-direction: row !important;
  }

  .dp-resume-sidebar {
    padding-left: var(--dp-space-4) !important;
    border-left: 1px solid var(--dp-paper-border) !important;
    padding-top: 0 !important;
    border-top: none !important;
  }

  /* Print typography — tighten to fit A4 */
  .dp-lightbox-page {
    font-size: var(--dp-print-body) !important;
    line-height: var(--dp-print-leading) !important;
  }

  .dp-resume-header {
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
  }

  .dp-resume-name {
    font-size: var(--dp-print-name) !important;
  }

  .dp-resume-tagline {
    font-size: var(--dp-print-tagline) !important;
  }

  .dp-resume-summary {
    font-size: var(--dp-print-body) !important;
    margin-top: 4px !important;
  }

  .dp-resume-section-title {
    font-size: var(--dp-print-section-title) !important;
    margin-top: var(--dp-print-section-gap) !important;
    margin-bottom: 4px !important;
  }

  .dp-resume-section-title:first-child {
    margin-top: 8px !important;
  }

  .dp-resume-role + .dp-resume-role {
    margin-top: var(--dp-print-role-gap) !important;
  }

  .dp-resume-role-title {
    font-size: var(--dp-print-role-title) !important;
    font-weight: 600 !important;
  }

  .dp-resume-role-meta {
    font-size: var(--dp-print-meta) !important;
    margin-bottom: 2px !important;
  }

  .dp-resume-role-desc {
    font-size: var(--dp-print-body) !important;
    line-height: var(--dp-print-leading) !important;
    margin-bottom: 4px !important;
  }

  .dp-resume-role-achievements {
    font-size: var(--dp-print-body) !important;
    line-height: var(--dp-print-leading) !important;
  }

  .dp-resume-role-achievements li {
    margin-bottom: var(--dp-print-li-gap) !important;
  }

  .dp-resume-body {
    gap: var(--dp-print-column-gap) !important;
  }

  .dp-resume-contact-item {
    font-size: var(--dp-print-meta) !important;
  }

  .dp-resume-skill-list li {
    font-size: var(--dp-print-body-sm) !important;
  }

  /* A4 page setup — tokens --dp-print-page-v 15mm, --dp-print-page-h 15mm; @page does not resolve var() in most browsers */
  @page {
    size: A4;
    margin: 15mm 15mm; /* --dp-print-page-v, --dp-print-page-h */
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.dp-overlay-active {
    overflow: visible !important;
  }

  .dp-snackbar {
    display: none !important;
  }
}
