/* =========================================================
   Trusted Organised — Design Tokens
   source: ~/.claude/design-systems/trusted-organised/tokens.css
   ========================================================= */

/* ── Primitive Ramps ── */
:root {
  /* Brand — slate-blue indigo */
  --brand-50:  #f0f3ff;
  --brand-100: #e0e8ff;
  --brand-200: #c3d0ff;
  --brand-300: #97aeff;
  --brand-400: #6884fd;
  --brand-500: #4461f5;
  --brand-600: #2e45d6;
  --brand-700: #2233b0;
  --brand-800: #1a278a;
  --brand-900: #111966;
  --brand-950: #080e42;

  /* Neutral — cool zinc */
  --neutral-50:  #fafafa;
  --neutral-100: #f4f4f5;
  --neutral-200: #e4e4e7;
  --neutral-300: #d1d1d6;
  --neutral-400: #a1a1aa;
  --neutral-500: #71717a;
  --neutral-600: #52525b;
  --neutral-700: #3f3f46;
  --neutral-800: #27272a;
  --neutral-900: #18181b;
  --neutral-950: #09090b;

  /* Status primitives */
  --red-50:    #fef2f2;
  --red-600:   #dc2626;
  --red-700:   #b91c1c;
  --amber-50:  #fffbeb;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --green-50:  #f0fdf4;
  --green-600: #16a34a;
  --green-700: #15803d;
}

/* ── Semantic Layer — Light ── */
:root {
  --surface:         var(--neutral-50);
  --surface-raised:  #ffffff;
  --surface-muted:   var(--neutral-100);
  --surface-overlay: var(--neutral-200);

  --border:        var(--neutral-200);
  --border-strong: var(--neutral-300);
  --border-focus:  var(--brand-500);

  --text:         var(--neutral-900);
  --text-muted:   var(--neutral-500);
  --text-subtle:  var(--neutral-400);
  --text-inverse: #ffffff;
  --text-on-brand: #ffffff;

  --primary:        var(--brand-500);
  --primary-hover:  var(--brand-600);
  --primary-muted:  var(--brand-50);
  --primary-border: var(--brand-200);
  --primary-overlay: color-mix(in srgb, var(--brand-500) 82%, transparent);

  --danger:         var(--red-600);
  --danger-subtle:  var(--red-50);
  --warning:        var(--amber-700);
  --warning-subtle: var(--amber-50);
  --success:        var(--green-700);
  --success-subtle: var(--green-50);

  --focus-ring: var(--brand-500);
}

/* ── Typography ── */
:root {
  --font-sans:    'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, 'Cascadia Code', monospace;
  --font-display: var(--font-sans);

  --text-xs:   0.6875rem;
  --text-sm:   0.75rem;
  --text-base: 0.875rem;
  --text-md:   0.9375rem;
  --text-lg:   1.0625rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  --leading-none:    1;
  --leading-tight:   1.25;
  --leading-snug:    1.375;
  --leading-normal:  1.5;
  --leading-relaxed: 1.625;

  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  --tracking-tighter: -0.04em;
  --tracking-tight:   -0.02em;
  --tracking-normal:  0em;
  --tracking-wide:    0.025em;
  --tracking-wider:   0.05em;
  --tracking-widest:  0.1em;
}

/* ── Spacing (4px base) ── */
:root {
  --space-0_5: 0.125rem;
  --space-1:   0.25rem;
  --space-1_5: 0.375rem;
  --space-2:   0.5rem;
  --space-2_5: 0.625rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;
}

/* ── Radius ── */
:root {
  --radius-none: 0;
  --radius-xs:   2px;
  --radius-sm:   3px;
  --radius-md:   4px;
  --radius-lg:   6px;
  --radius-xl:   8px;
  --radius-2xl:  12px;
  --radius-full: 9999px;
}

/* ── Shadows ── */
:root {
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.04);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
}

/* ── Motion ── */
:root {
  --duration-instant: 80ms;
  --duration-fast:    120ms;
  --duration-normal:  180ms;
  --duration-slow:    280ms;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Layout ── */
:root {
  --container-max:    1200px;
  --content-max:      720px;
  --tap-target-min:   44px;
  --nav-height:       52px;
  --section-padding:  var(--space-20);

  --z-base:    0;
  --z-raised:  10;
  --z-sticky:  200;
}

/* =========================================================
   Reset + Base
   ========================================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

p {
  margin: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
   Navigation
   ========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--nav-height);
  background-color: color-mix(in srgb, var(--surface-raised) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  gap: var(--space-6);
}

.nav__brand {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--primary);
  letter-spacing: var(--tracking-wide);
  flex-shrink: 0;
}

.nav__brand:hover {
  color: var(--primary-hover);
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  padding: var(--space-1_5) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.nav__link:hover {
  color: var(--text);
  background-color: var(--surface-muted);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}

.nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-target-min);
  height: 36px;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.nav__icon:hover {
  color: var(--text);
  background-color: var(--surface-muted);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  background-color: var(--brand-950);
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-20);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Hero text — dark-surface overrides ── */
.hero .hero__eyebrow {
  color: rgba(255, 255, 255, 0.32);
}

.hero .hero__name {
  color: #eef0f8;
}

.hero .hero__role {
  color: #7b97fe;
}

.hero .hero__tagline {
  color: rgba(255, 255, 255, 0.48);
}

.hero .badge {
  background-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.13);
}

.hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.hero__name {
  font-size: clamp(2.5rem, 6vw, var(--text-6xl));
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text);
  margin-bottom: var(--space-3);
}

.hero__role {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: var(--weight-normal);
  color: var(--primary);
  margin-bottom: var(--space-6);
}

.hero__tagline {
  font-size: var(--text-lg);
  font-weight: var(--weight-normal);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  max-width: 560px;
  margin-bottom: var(--space-10);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
  margin-bottom: var(--space-8);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--text);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-none);
}

.hero__stat-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-normal);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ── Badge / Pill ── */
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 var(--space-2_5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  background-color: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}

/* =========================================================
   Section Layout
   ========================================================= */

.section {
  padding: var(--section-padding) 0;
  border-bottom: 1px solid var(--border);
}

.section--muted {
  background-color: var(--surface-muted);
}

.section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section__header {
  margin-bottom: var(--space-12);
}

.section__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--primary);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.section__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text);
}

/* =========================================================
   Work Grid
   source: case-study-card-hover (trusted-organised harvest)
   ========================================================= */

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

/* ── Portfolio Card ── */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--surface-muted);
  border: 1px solid var(--border);
  transition: box-shadow var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.portfolio-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

/* ── Card image + hover overlay ── */
.case-study-card-hover__link {
  display: block;
  position: relative;
  text-decoration: none;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.case-study-card-hover__link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.case-study-card-hover__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.case-study-card-hover__link:hover .case-study-card-hover__image {
  transform: scale(1.04);
}

.case-study-card-hover__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--primary-overlay);
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.case-study-card-hover__link:hover .case-study-card-hover__overlay {
  opacity: 1;
}

.case-study-card-hover__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
}

.case-study-card-hover__category {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  color: var(--text-on-brand);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin: 0;
  opacity: 0.8;
}

.case-study-card-hover__cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.case-study-card-hover__cta-label {
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  color: var(--text-on-brand);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.case-study-card-hover__cta-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-on-brand);
  transition: transform var(--duration-fast) var(--ease-out);
}

.case-study-card-hover__link:hover .case-study-card-hover__cta-arrow {
  transform: translateX(3px);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background-color: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease-out);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: min(960px, 90vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 180ms var(--ease-out);
  user-select: none;
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  color: #fff;
  cursor: pointer;
  transition: background 150ms var(--ease-out);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.drawer__hero-img,
.drawer__gallery-img {
  cursor: zoom-in;
  transition: opacity 150ms var(--ease-out);
}

.drawer__hero-img:hover,
.drawer__gallery-img:hover {
  opacity: 0.88;
}

/* ── Work sort controls ── */
.work-sort {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.work-sort__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-subtle);
  letter-spacing: var(--tracking-wide);
  margin-right: var(--space-1);
}

.work-sort__btn {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.work-sort__btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.work-sort__btn.is-active {
  color: var(--primary);
  border-color: var(--primary);
  background-color: var(--primary-subtle);
}

/* ── Visual card (no photo — branded gradient) ── */
.portfolio-card__visual {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  background: linear-gradient(145deg, var(--brand-950) 0%, var(--brand-800) 55%, var(--brand-600) 100%);
}

.portfolio-card__visual-stack {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-on-brand);
  opacity: 0.4;
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-relaxed);
  position: relative;
  z-index: 1;
  transition: opacity var(--duration-fast) var(--ease-out);
  margin: 0;
}

.portfolio-card:hover .portfolio-card__visual-stack {
  opacity: 0;
}

.portfolio-card__visual-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--primary-overlay);
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.portfolio-card:hover .portfolio-card__visual-overlay {
  opacity: 1;
}

/* ── Card footer (always-visible metadata) ── */
.portfolio-card__footer {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1_5);
  background-color: var(--surface-raised);
  border-top: 1px solid var(--border);
}

.portfolio-card__tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: var(--weight-medium);
  border-radius: var(--radius-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  width: fit-content;
}

.portfolio-card__tag--product {
  background-color: var(--brand-100);
  color: var(--brand-700);
}

.portfolio-card__tag--project {
  background-color: var(--green-50);
  color: var(--green-700);
}

.portfolio-card__tag--research {
  background-color: var(--amber-50);
  color: var(--amber-700);
}

.portfolio-card__tag--creative {
  background-color: #fdf4ff;
  color: #86198f;
}

.portfolio-card__title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.portfolio-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* =========================================================
   Achievement Spotlight
   source: testimonial-full-bleed (trusted-organised harvest)
   ========================================================= */

.testimonial-full-bleed {
  width: 100%;
  background-color: var(--primary);
  padding: var(--space-16) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.testimonial-full-bleed__mark {
  font-size: var(--text-5xl);
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  color: var(--text-on-brand);
  line-height: var(--leading-none);
  opacity: 0.3;
  user-select: none;
}

.testimonial-full-bleed__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: var(--content-max);
}

.testimonial-full-bleed__quote {
  margin: 0;
  padding: 0;
}

.testimonial-full-bleed__quote p {
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-on-brand);
  margin: 0;
}

.testimonial-full-bleed__attribution {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-full-bleed__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-0_5);
}

.testimonial-full-bleed__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-on-brand);
}

.testimonial-full-bleed__role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-normal);
  color: var(--text-on-brand);
  opacity: 0.65;
  letter-spacing: var(--tracking-wide);
}

/* =========================================================
   About Section
   ========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-16);
  align-items: start;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  display: block;
}

.about-bio__text {
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.about-bio__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.text-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--primary);
  transition: color var(--duration-fast) var(--ease-out);
}

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

.about-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* =========================================================
   Services Index List
   source: services-index-list (trusted-organised harvest)
   ========================================================= */

.services-index-list {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
}

.services-index-list:first-child {
  border-top: none;
  padding-top: 0;
}

.services-index-list__heading {
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  color: var(--text-subtle);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin: 0;
  padding-top: var(--space-4);
}

.services-index-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-index-list__item {
  display: flex;
  align-items: center;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--text);
}

.services-index-list__item:first-child {
  border-top: none;
  padding-top: 0;
}

/* ── Experience / Publication Items ── */
.exp-item {
  align-items: flex-start;
  cursor: default;
}

.exp-item__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-0_5);
  flex: 1;
  min-width: 0;
}

.exp-item__company {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-item__role {
  font-size: var(--text-sm);
  font-weight: var(--weight-normal);
  color: var(--text-muted);
}

.exp-item__period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-subtle);
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
  padding-left: var(--space-4);
  flex-shrink: 0;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  padding: var(--space-8) 0;
  background-color: var(--surface-raised);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-subtle);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.footer__link {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
  color: var(--text);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: var(--space-16);
  }

  .nav__links {
    display: none;
  }

  .hero__stats {
    gap: var(--space-6);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .services-index-list {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .services-index-list__heading {
    padding-top: 0;
  }

  .testimonial-full-bleed__quote p {
    font-size: var(--text-xl);
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    gap: var(--space-8);
  }

  .hero__stat-value {
    font-size: var(--text-xl);
  }
}

/* =========================================================
   Drawer (side pane)
   ========================================================= */

/* Prevent body scroll when drawer is open */
body.has-drawer {
  overflow: hidden;
}

/* Backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgb(0 0 0 / 0.2);
  z-index: calc(var(--z-sticky) + 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer panel */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  background-color: var(--surface-raised);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: calc(var(--z-sticky) + 2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  overflow: hidden;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  background-color: var(--surface-raised);
}

.drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.drawer__close:hover {
  background-color: var(--surface-muted);
  color: var(--text);
  border-color: var(--border-strong);
}

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

.drawer__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Drawer content ── */
.drawer__hero-visual {
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
  aspect-ratio: 3 / 2;
  background: linear-gradient(145deg, var(--brand-950) 0%, var(--brand-800) 55%, var(--brand-600) 100%);
}

.drawer__hero-stack {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-on-brand);
  opacity: 0.5;
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.drawer__hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background-color: var(--surface-muted);
}

.drawer__content {
  padding: var(--space-5) var(--space-6) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.drawer__title-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.drawer__period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-subtle);
  letter-spacing: var(--tracking-wide);
}

.drawer__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  color: var(--text);
}

.drawer__org {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  margin-top: calc(var(--space-1) * -1);
}

.drawer__summary {
  font-size: var(--text-md);
  color: var(--text);
  line-height: var(--leading-relaxed);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

/* Meta table */
.drawer__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-4);
  margin: 0;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.drawer__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-0_5);
}

.drawer__meta-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-subtle);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.drawer__meta-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text);
}

/* Body paragraphs */
.drawer__body-paras {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.drawer__body-text {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* Screenshot gallery */
.drawer__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.drawer__gallery-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  background-color: var(--surface-muted);
  display: block;
}

/* External link button */
.drawer__ext-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-4);
  background-color: var(--primary);
  color: var(--text-on-brand);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  align-self: flex-start;
  transition: background-color var(--duration-fast) var(--ease-out);
  margin-top: var(--space-2);
  text-decoration: none;
}

.drawer__ext-link:hover {
  background-color: var(--primary-hover);
}

/* Card active state */
.portfolio-card {
  cursor: pointer;
}

.portfolio-card.is-active {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* ── Drawer responsive ── */
@media (max-width: 640px) {
  .drawer {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    top: auto;
    height: 90vh;
    transform: translateY(100%);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  }

  .drawer.is-open {
    transform: translateY(0);
  }

  .drawer__meta {
    grid-template-columns: 1fr;
  }

  .drawer__gallery {
    grid-template-columns: 1fr;
  }
}
