/* ==========================================================================
   LIGHT MODE (generated from styles.css by build_light_theme.py)
   Activated by html[data-theme="light"] — open any page with ?theme=light
   (persists across pages); ?theme=dark switches back.
   ========================================================================== */
html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="light"] {
  --bg-obsidian: #f3f1ec;
  --surface-elevated: #fbfaf7;
  --surface-glass: rgba(251, 250, 247, 0.82);
  --text-primary: #141414;
  --text-secondary: rgba(20, 20, 20, 0.7);
  --text-muted: rgba(20, 20, 20, 0.6);
  --text-subtle: rgba(20, 20, 20, 0.42);
  --hairline-idle: rgba(20, 20, 20, 0.14);
  --hairline-active: #141414;
}

html[data-theme="light"] {
  selection-background-color: #141414;
  selection-color: #f3f1ec;
}

html[data-theme="light"] ::selection {
  background: rgba(20, 20, 20, 0.92);
  color: #f3f1ec;
}

html[data-theme="light"] .ambient-grid {
  background-image: linear-gradient(to right, rgba(20, 20, 20, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 20, 0.022) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #f3f1ec 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #f3f1ec 20%, transparent 80%);
}

html[data-theme="light"] .hud-nav-link::after {
  background: #141414;
}

html[data-theme="light"] .hud-nav-link:hover {
  color: #141414;
}

html[data-theme="light"] .hud-resume-btn:hover {
  color: #141414;
}

html[data-theme="light"] .hud-indicator__track {
  background: rgba(20, 20, 20, 0.22);
}

html[data-theme="light"] .hud-indicator.is-active .hud-indicator__track {
  background: rgba(20, 20, 20, 0.36);
}

html[data-theme="light"] .hud-indicator:hover .hud-indicator__track {
  background: rgba(20, 20, 20, 0.55);
}

html[data-theme="light"] .hud-indicator__fill {
  background: #141414;
}

html[data-theme="light"] .index-section {
  background: #f3f1ec;
}

html[data-theme="light"] .index-eyebrow {
  color: #8a5812;
}

html[data-theme="light"] .index-title {
  color: #141414;
}

html[data-theme="light"] .project-row:hover,
html[data-theme="light"] .project-row:focus-visible {
  background-color: rgba(20, 20, 20, 0.02);
}

html[data-theme="light"] .project-row__num {
  color: rgba(20, 20, 20, 0.44);
}

html[data-theme="light"] .project-row:hover .project-row__num {
  color: #141414;
}

html[data-theme="light"] .project-row__title {
  color: #141414;
}

html[data-theme="light"] .project-row:hover .project-row__title {
  color: #141414;
}

html[data-theme="light"] .project-row__desc {
  color: rgba(20, 20, 20, 0.62);
}

html[data-theme="light"] .project-row:hover .project-row__desc {
  color: rgba(20, 20, 20, 0.85);
}

html[data-theme="light"] .project-row__year {
  color: rgba(20, 20, 20, 0.48);
}

html[data-theme="light"] .project-row__arrow {
  color: #141414;
}

html[data-theme="light"] .project-row:hover .project-row__arrow {
  background-color: rgba(20, 20, 20, 0.08);
  color: #141414;
}

html[data-theme="light"] .floating-preview__inner {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.262);
  background: #fbfaf7;
}

html[data-theme="light"] .editorial-bio__headline {
  color: #141414;
}

html[data-theme="light"] .editorial-bio__copy {
  color: rgba(20, 20, 20, 0.68);
}

html[data-theme="light"] .editorial-bio__cta {
  color: #141414;
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: rgba(20, 20, 20, 0.05);
}

html[data-theme="light"] .editorial-bio__cta:hover {
  background-color: #141414;
  color: #f3f1ec;
  border-color: #141414;
}

html[data-theme="light"] .metric-card {
  background: rgba(20, 20, 20, 0.03);
}

html[data-theme="light"] .metric-card:hover {
  background: rgba(20, 20, 20, 0.05);
  border-color: rgba(20, 20, 20, 0.1);
}

html[data-theme="light"] .metric-card__label {
  color: rgba(20, 20, 20, 0.46);
}

html[data-theme="light"] .metric-card__value {
  color: #141414;
}

html[data-theme="light"] .index-footer {
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  color: rgba(20, 20, 20, 0.45);
}

html[data-theme="light"] .case-modal__backdrop {
  background: rgba(243, 241, 236, 0.52);
}

html[data-theme="light"] .case-modal__sheet {
  background: rgba(251, 250, 247, 0.88);
  border: 1px solid rgba(20, 20, 20, 0.11);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.273);
}

html[data-theme="light"] .case-modal__topbar {
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  background: rgba(251, 250, 247, 0.86);
}

html[data-theme="light"] .case-modal__divider {
  background: rgba(20, 20, 20, 0.45);
}

html[data-theme="light"] .case-modal__code {
  color: rgba(20, 20, 20, 0.72);
}

html[data-theme="light"] .case-modal__close {
  color: rgba(20, 20, 20, 0.78);
  border: 1px solid rgba(20, 20, 20, 0.18);
}

html[data-theme="light"] .case-modal__close:hover {
  background-color: #141414;
  color: #f3f1ec;
}

html[data-theme="light"] .case-hero__title {
  color: #141414;
}

html[data-theme="light"] .case-hero__subtitle {
  color: rgba(20, 20, 20, 0.68);
}

html[data-theme="light"] .case-watch-stage__video {
  background: #f3f1ec;
}

html[data-theme="light"] .case-body-grid {
  border-top: 1px solid rgba(20, 20, 20, 0.12);
}

html[data-theme="light"] .case-meta-block {
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

html[data-theme="light"] .case-meta-block__label {
  color: rgba(20, 20, 20, 0.45);
}

html[data-theme="light"] .case-meta-block__val {
  color: #141414;
}

html[data-theme="light"] .case-meta-block__note {
  color: rgba(20, 20, 20, 0.65);
}

html[data-theme="light"] .inline-token {
  color: #8a5812;
}

html[data-theme="light"] .case-section-tag {
  color: #8a5812;
}

html[data-theme="light"] .case-narrative__heading {
  color: #141414;
}

html[data-theme="light"] .case-narrative__p {
  color: rgba(20, 20, 20, 0.72);
}

html[data-theme="light"] .case-pillar {
  background: rgba(20, 20, 20, 0.03);
  border: 1px solid rgba(20, 20, 20, 0.1);
}

html[data-theme="light"] .case-pillar__tag {
  color: rgba(20, 20, 20, 0.5);
}

html[data-theme="light"] .case-pillar__title {
  color: #141414;
}

html[data-theme="light"] .case-pillar__desc {
  color: rgba(20, 20, 20, 0.65);
}

html[data-theme="light"] .case-figure__img-wrap {
  border: 1px solid rgba(20, 20, 20, 0.12);
}

html[data-theme="light"] .case-figure__caption {
  color: rgba(20, 20, 20, 0.48);
}

html[data-theme="light"] .case-next-footer {
  border-top: 1px solid rgba(20, 20, 20, 0.14);
}

html[data-theme="light"] .case-next-footer__label {
  color: rgba(20, 20, 20, 0.5);
}

html[data-theme="light"] .case-next-footer__btn {
  color: #141414;
}

html[data-theme="light"] .case-next-footer__btn:hover {
  color: #8a5812;
}

html[data-theme="light"] .resume-experience-section {
  border-top: 1px solid rgba(20, 20, 20, 0.1);
}

html[data-theme="light"] .resume-case-item {
  background: rgba(20, 20, 20, 0.03);
  border: 1px solid rgba(20, 20, 20, 0.1);
}

html[data-theme="light"] .resume-case-item:hover {
  background: rgba(20, 20, 20, 0.045);
  border-color: rgba(20, 20, 20, 0.18);
}

html[data-theme="light"] .resume-case-item__company {
  color: #141414;
}

html[data-theme="light"] .resume-case-item__role {
  color: #8a5812;
}

html[data-theme="light"] .resume-case-item__bullets {
  color: rgba(20, 20, 20, 0.72);
}

html[data-theme="light"] .resume-tag {
  background: rgba(20, 20, 20, 0.04);
  border: 1px solid rgba(20, 20, 20, 0.11);
  color: rgba(20, 20, 20, 0.82);
}

html[data-theme="light"] .resume-contact-box__btn {
  background: #141414;
  color: #f3f1ec;
}

html[data-theme="light"] .resume-media-link:hover,
html[data-theme="light"] .resume-media-link:focus-visible {
  color: #141414;
}

html[data-theme="light"] .site-hud::before {
  background: linear-gradient(
    180deg,
    rgba(243, 241, 236, 0.9) 0%,
    rgba(243, 241, 236, 0.6) 55%,
    rgba(243, 241, 236, 0) 100%
  );
}

html[data-theme="light"] .site-hud__home:hover .hud-label {
  color: #141414;
}

html[data-theme="light"] .site-hud .hud-nav-link:hover {
  color: #141414;
}

html[data-theme="light"] .site-hud .is-current {
  color: #141414;
}

html[data-theme="light"] .site-footer {
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  color: rgba(20, 20, 20, 0.45);
}

/* ==========================================================================
   DARKROOM WINDOW ON GALLERY PAPER (art-director brief, 2026-11-16)
   Paper + opaque ink steps; media stay dark "darkroom windows";
   one expressive color: safelight amber.
   ========================================================================== */
html[data-theme="light"] {
  --bg-obsidian: #f3f1ec;          /* paper */
  --text-primary: #141414;         /* ink    16.3:1 */
  --text-secondary: #3d3b37;       /* ink-2   9.9:1 body */
  --text-muted: #66625b;           /* ink-3   5.4:1 labels, dates, footer */
  --text-subtle: #66625b;
  --hairline-idle: #d8d4cb;
  --amber-text: #8a5812;           /* safelight text 5.3:1 */
  --amber-mark: #d9962e;           /* dots / handles only */
  --accent-indigo: #d9962e;
}

/* Remove paper noise: grid tiles + colored glows */
html[data-theme="light"] .ambient-grid,
html[data-theme="light"] .ambient-orb {
  display: none;
}

/* Outlines, not fills */
html[data-theme="light"] .metric-card,
html[data-theme="light"] .resume-case-item,
html[data-theme="light"] .resume-tag,
html[data-theme="light"] .case-pillar,
html[data-theme="light"] .editorial-bio__cta {
  background: transparent;
  border: 1px solid var(--hairline-idle);
  box-shadow: none;
}

html[data-theme="light"] .metric-card:hover,
html[data-theme="light"] .resume-case-item:hover {
  background: transparent;
  border-color: #141414;
}

html[data-theme="light"] .editorial-bio__cta:hover {
  background: #141414;
  border-color: #141414;
  color: #f3f1ec;
}

/* Safelight amber: the only saturated color on paper */
html[data-theme="light"] .case-section-tag,
html[data-theme="light"] .index-eyebrow,
html[data-theme="light"] .resume-case-item__role {
  color: var(--amber-text);
}

html[data-theme="light"] .site-hud .is-current::before {
  background-color: var(--amber-mark);
  box-shadow: none;
}

html[data-theme="light"] .resume-media-link__icon {
  color: var(--amber-text);
}

html[data-theme="light"] .resume-media-link:hover,
html[data-theme="light"] .resume-media-link:focus-visible {
  border-color: var(--amber-text);
  background-color: transparent;
  color: #141414;
}

/* Live I / R / N grab handles glow safelight amber on the dark hero */
html[data-theme="light"] .i-corner-point::after {
  background: var(--amber-mark);
}

/* Opaque ink steps instead of alpha grays (all >= 4.5:1) */
html[data-theme="light"] .case-meta-block__label,
html[data-theme="light"] .case-pillar__tag,
html[data-theme="light"] .metric-card__label,
html[data-theme="light"] .project-row__year,
html[data-theme="light"] .project-row__num,
html[data-theme="light"] .case-next-footer__label,
html[data-theme="light"] .case-figure__caption,
html[data-theme="light"] .index-footer,
html[data-theme="light"] .site-footer,
html[data-theme="light"] .hud-label {
  color: var(--text-muted);
}

html[data-theme="light"] .case-meta-block__note,
html[data-theme="light"] .case-hero__subtitle,
html[data-theme="light"] .case-narrative__p,
html[data-theme="light"] .resume-case-item__bullets,
html[data-theme="light"] .project-row__desc,
html[data-theme="light"] .editorial-bio__copy,
html[data-theme="light"] .case-pillar__desc,
html[data-theme="light"] .resume-tag,
html[data-theme="light"] .resume-media-link {
  color: var(--text-secondary);
}

html[data-theme="light"] .project-row:hover .project-row__num,
html[data-theme="light"] .project-row:hover .project-row__year {
  color: #141414;
}

/* Flat paper: no drop shadows outside the dark media windows */
html[data-theme="light"] .floating-preview__inner,
html[data-theme="light"] .resume-contact-box__btn {
  box-shadow: none;
}

/* ---- "Develop the print" (hero-shadow brief, 2026-11-17) ----
   On paper (before the photo window opens) KIM TRAN fades in as ink with no
   shadow; as the window opens it develops to white and the shadow arrives
   with the photo. Timing mirrors .morph-mask (260ms delay, ease-cinema). */
html[data-theme="light"] body.is-intro-loading .hero-title {
  color: #141414;
  filter: drop-shadow(0 8px 34px rgba(0, 0, 0, 0));
}

html[data-theme="light"] body.is-intro-loading .interactive-i__bar,
html[data-theme="light"] body.is-intro-loading .interactive-i__stem {
  background-color: #141414;
}

html[data-theme="light"] .hero-title {
  transition:
    scale 1850ms var(--ease-morph),
    color 1200ms var(--ease-cinema) 260ms,
    filter 1200ms var(--ease-cinema) 260ms;
}

html[data-theme="light"] .interactive-i__bar,
html[data-theme="light"] .interactive-i__stem {
  transition: background-color 1200ms var(--ease-cinema) 260ms;
}
