/* ============================================
   Tracy Lindstrom Portfolio
   ============================================ */

/* --- Tokens --- */
:root {
  --color-bg: #160D26;
  --color-surface: #1E1535;
  --color-border: rgba(255, 255, 255, 0.10);
  --color-accent: #C4A0B8;
  --color-accent-text: #D4B8CC;
  --color-text: #EDE8F2;
  --color-text-muted: #B0A0C0;
  --color-dark-accent: #0D0820;

  /* Warm off-white for cards, nav, and light sections */
  --color-cloud-dancer: #F0EEE9;

  /* Light section backgrounds — warm desert sand and pale dusk mauve */
  --color-ivory: #F4EFE3;
  --color-pale-mauve: #EDE4EC;
  --color-teal-deep: #0C2630;   /* midnight pool — for accents */

  /* Preserved light values for elements that stay on white/light surfaces */
  --color-text-on-light: #1A1128;
  --color-muted-on-light: #60527A;
  --color-accent-on-light: #7A4E6E;

  /* White opacity scale — use these instead of inline rgba(255,255,255,x) */
  --white-hairline: rgba(255, 255, 255, 0.08);
  --white-subtle: rgba(255, 255, 255, 0.28);
  --white-muted: rgba(255, 255, 255, 0.55);
  --white-secondary: rgba(255, 255, 255, 0.85);
  --white-primary: rgba(255, 255, 255, 0.90);

  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  --max-width: 720px;
  --max-width-wide: 1140px;
  --text-measure: 65ch;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.30);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.55), 0 16px 40px rgba(0, 0, 0, 0.40);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Skip navigation --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-text);
  color: #fff;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-md); }

/* --- Focus styles --- */
:focus { outline: none; }
:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.work-card:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 238, 233, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122, 78, 110, 0.12);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent-on-light);
  letter-spacing: -0.01em;
}

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

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted-on-light);
  transition: color var(--transition);
}

.nav__links a:hover { color: var(--color-text-on-light); }

.nav__links .btn-contact {
  background: var(--color-text-on-light);
  color: var(--color-cloud-dancer);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.nav__links .btn-contact:hover { background: var(--color-accent-on-light); color: var(--color-cloud-dancer); }

/* --- Hero --- */
#hero {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

/* Image lives on its own element so the mask applies only to it, not the text */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle, rgba(196, 160, 184, 0.22) 1.5px, transparent 1.5px) 0 0 / 22px 22px,
    url('../assets/images/hero-bg.webp') center top / cover no-repeat;
  /* Gradient mask: image fades to zero before the text column; bottom fades into page bg.
     The existing Ben-Day dots in the art naturally create a halftone dissolution at the edge. */
  -webkit-mask-image:
    linear-gradient(to right, transparent 6%, black 46%),
    linear-gradient(to bottom, black 58%, transparent 94%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 6%, black 46%),
    linear-gradient(to bottom, black 58%, transparent 94%);
  mask-composite: intersect;
}

/* Solid dark scrim across the full text column — guarantees WCAG AA (≥4.5:1) for all text sizes.
   On a 1440px viewport, 48% ≈ 690px which covers the text column plus breathing room. */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(26, 17, 40, 0.82) 0%,
    rgba(26, 17, 40, 0.78) 38%,
    rgba(26, 17, 40, 0.40) 62%,
    rgba(26, 17, 40, 0.18) 100%
  );
  pointer-events: none;
}

/* Bottom fade into page background — sits above image and scrim, below text */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  z-index: 2;
  background: linear-gradient(to bottom, transparent 0%, var(--color-bg) 100%);
  pointer-events: none;
}

.hero__dots { display: none; }

.hero {
  position: relative;
  z-index: 3;
  min-height: calc(100svh - 53px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4xl) var(--space-xl) var(--space-3xl);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white-secondary);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.hero__identity {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.25vw, 1.75rem);
  font-weight: 600;
  font-style: italic;
  color: #EDD8E6;
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: var(--space-lg);
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 7.5vw, 6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: var(--space-lg);
  max-width: 16ch;
}

.hero__tagline {
  font-size: 1.0625rem;
  color: var(--white-secondary);
  max-width: 560px;
  line-height: 1.65;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero__tagline em {
  font-style: normal;
  color: #fff;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.hero__actions .btn-secondary {
  border: none;
  padding: 12px 4px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero__actions .btn-secondary:hover {
  color: #fff;
  text-decoration: none;
  border: none;
  transform: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-accent);
  color: var(--color-text-on-light);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: #fff;
  color: var(--color-text-on-light);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white-primary);
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1.5px solid var(--white-subtle);
  transition: border-color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  border-color: var(--white-muted);
  transform: translateY(-1px);
}

/* btn-secondary outside the hero (case study nav etc) */
.cs-nav .btn-secondary,
.cs-body .btn-secondary {
  color: var(--color-text);
  border-color: var(--color-border);
}

.cs-nav .btn-secondary:hover,
.cs-body .btn-secondary:hover {
  border-color: var(--color-accent);
}

.hero__stats {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.hero__stats > div {
  background: var(--color-cloud-dancer);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22), 0 6px 20px rgba(0, 0, 0, 0.14);
  flex: 1;
  min-width: 150px;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text-on-light);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: 0.75rem;
  color: var(--color-muted-on-light);
  margin-top: 5px;
  line-height: 1.4;
  max-width: 18ch;
}

/* --- Section layout --- */
.section {
  padding: var(--space-3xl) 0;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-2xl);
}

.section__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
  white-space: nowrap;
}

.section__link:hover { gap: 8px; }

/* --- Work Cards --- */
#work .container {
  max-width: var(--max-width-wide);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.work-card {
  background: var(--color-cloud-dancer);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 0 2px rgba(196, 160, 184, 0.45);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text-on-light);
}

.work-card:hover {
  box-shadow: var(--shadow-card-hover), 0 0 0 2px rgba(196, 160, 184, 0.65);
  transform: translateY(-3px);
}

/* All cards: image on top, full width, content below */
.work-card--featured,
.work-card--secondary,
.work-card--half,
.work-card--third {
  flex-direction: column;
}

.work-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-cloud-dancer);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.work-card:hover .work-card__image img { transform: scale(1.03); }

.work-card__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-accent);
  opacity: 0.4;
  padding: var(--space-xl);
  text-align: center;
  font-size: 0.75rem;
  font-family: var(--font-body);
}

.work-card__body {
  padding: var(--space-lg) var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--color-cloud-dancer);
  border-top: 1px solid rgba(122, 78, 110, 0.08);
}


.work-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text-on-light);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-md);
}

.work-card--featured .work-card__title {
  font-size: 1.375rem;
}

.work-card__desc {
  font-size: 0.875rem;
  color: var(--color-muted-on-light);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.work-card--secondary .work-card__desc,
.work-card--half .work-card__desc,
.work-card--third .work-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card__metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  gap: 5px;
  padding: 12px var(--space-lg);
  background: var(--color-text-on-light);
  border-radius: var(--radius-md);
  margin-top: auto;
  margin-bottom: var(--space-md);
  max-width: 100%;
}

.metric__value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric__label {
  font-size: 0.8125rem;
  color: var(--white-muted);
  line-height: 1.3;
}

.work-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent-on-light);
  margin-top: auto;
  transition: gap var(--transition);
}

/* When a metric precedes the CTA, let metric handle the auto-margin */
.work-card__metric ~ .work-card__cta {
  margin-top: var(--space-md);
}

.work-card:hover .work-card__cta { gap: 8px; }

/* --- Process strip --- */
.process-strip {
  background: #0D0820;
  padding: var(--space-3xl) 0;
}

.process-strip .container {
  max-width: var(--max-width);
  padding: 0 var(--space-xl);
  margin: 0 auto;
}

.process-strip .section__eyebrow { color: rgba(160,124,150,0.85); }
.process-strip .section__title { color: #fff; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl) var(--space-xl);
  margin-top: var(--space-2xl);
  list-style: none;
  padding: 0;
}

.process-step__number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 5vw, 5rem);
  font-weight: 700;
  font-style: italic;
  color: #EDD8E6;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-sm);
}

.process-step__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.process-step__desc {
  font-size: 0.875rem;
  color: var(--white-secondary);
  line-height: 1.65;
}

/* --- About --- */
.about-layout {
  display: block;
  margin-bottom: var(--space-2xl);
}

.about__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto var(--space-xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.about__content .section__eyebrow {
  margin-bottom: var(--space-sm);
}

.about__content .section__title {
  margin-bottom: var(--space-lg);
}

.about__content p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  max-width: var(--text-measure);
}

.about__content p strong {
  color: var(--color-text);
  font-weight: 600;
}

.about__expertise {
  padding-top: var(--space-2xl);
}

.about__expertise h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.expertise-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-lg) var(--space-lg) 0;
  background: none;
  border-radius: 0;
}

.expertise-item__text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.375rem;
  letter-spacing: -0.015em;
}

.expertise-item__text span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.testimonial-card {
  background: var(--color-cloud-dancer);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  color: var(--color-text-on-light);
}

.testimonial-card__quote {
  font-size: 0.9375rem;
  color: var(--color-text-on-light);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}

.testimonial-card__quote::before {
  content: '\201C';
  color: var(--color-accent-on-light);
  font-size: 1.5em;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 2px;
  font-style: normal;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid #D9D6D0;
}

.testimonial-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(122, 78, 110, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-on-light);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-on-light);
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: var(--color-muted-on-light);
}

/* --- Contact --- */
.contact-block {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.contact-block__sub {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.contact-block__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

.contact-email {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* --- Footer --- */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

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

.footer__left {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__links a {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

/* --- Dark color-break section --- */
.section.section--dark {
  background: var(--color-dark-accent);
  border-top: none;
}

.section--dark .section__eyebrow {
  color: rgba(196, 160, 184, 0.9);
}

.section--dark .contact-block {
  background: transparent;
  border-color: var(--white-hairline);
}

.section--dark .contact-block__title {
  color: #fff;
}

.section--dark .contact-block__sub {
  color: var(--white-muted);
}

.section--dark .contact-email {
  color: var(--white-muted);
}

.section--dark .btn-primary {
  background: #fff;
  color: var(--color-dark-accent);
}

.section--dark .btn-primary:hover {
  background: var(--white-primary);
  transform: translateY(-1px);
}

/* Extend dark theme into the footer when it follows a dark section */
.section--dark ~ .footer {
  background: var(--color-dark-accent);
  border-top-color: var(--color-border);
}

.section--dark ~ .footer .footer__left,
.section--dark ~ .footer .footer__links a {
  color: var(--white-muted);
}

.section--dark ~ .footer .footer__links a:hover {
  color: var(--white-primary);
}

/* --- Warm cloud-dancer section (contact + footer) --- */
.section.section--warm {
  background: url('../assets/images/hero-bg.webp') 68% center / cover no-repeat;
  border-top: none;
}

.section--warm .section__eyebrow {
  color: var(--color-accent-on-light);
}

.section--warm .contact-block {
  background: var(--color-cloud-dancer);
  border-color: rgba(122, 78, 110, 0.18);
  box-shadow: 0 8px 48px rgba(26, 17, 40, 0.28), 0 2px 16px rgba(26, 17, 40, 0.16);
}

.section--warm .contact-block__title {
  color: var(--color-text-on-light);
}

.section--warm .contact-block__sub {
  color: var(--color-muted-on-light);
}

.section--warm .contact-email {
  color: var(--color-muted-on-light);
}

.section--warm .btn-primary {
  background: var(--color-text-on-light);
  color: var(--color-cloud-dancer);
}

.section--warm .btn-primary:hover {
  background: var(--color-accent-on-light);
  color: var(--color-cloud-dancer);
  transform: translateY(-1px);
}

.section--warm ~ .footer {
  background: var(--color-cloud-dancer);
  border-top-color: rgba(122, 78, 110, 0.12);
}

.section--warm ~ .footer .footer__left,
.section--warm ~ .footer .footer__links a {
  color: var(--color-muted-on-light);
}

.section--warm ~ .footer .footer__links a:hover {
  color: var(--color-text-on-light);
}

.footer--warm {
  background: var(--color-cloud-dancer);
  border-top-color: rgba(122, 78, 110, 0.12);
}

.footer--warm .footer__left,
.footer--warm .footer__links a {
  color: var(--color-muted-on-light);
}

.footer--warm .footer__links a:hover {
  color: var(--color-text-on-light);
}

/* --- Light sections (about, optional others) --- */
.section--light {
  background: var(--color-ivory);
  border-top: none;
}

.section--light .section__eyebrow {
  color: var(--color-accent-on-light);
}

.section--light .section__title {
  color: var(--color-text-on-light);
}

.section--light .about__content p {
  color: var(--color-muted-on-light);
}

.section--light .about__content p:first-of-type {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--color-text-on-light);
  line-height: 1.75;
}

.section--light .about__content p strong {
  color: var(--color-text-on-light);
}

.section--light .about__expertise h3 {
  color: var(--color-text-on-light);
}

.section--light .about__expertise {
  border-top-color: rgba(122, 78, 110, 0.12);
}

.section--light .expertise-item {
  border-top-color: rgba(122, 78, 110, 0.10);
}

.section--light .expertise-item__text strong {
  color: var(--color-text-on-light);
}

.section--light .expertise-item__text span {
  color: var(--color-muted-on-light);
}

.section--light .btn-secondary {
  color: var(--color-text-on-light);
  border-color: rgba(122, 78, 110, 0.28);
}

.section--light .btn-secondary:hover {
  border-color: var(--color-accent-on-light);
}

/* Section after light gets a border in a compatible tone */
.section--light + .section {
  border-top-color: var(--color-border);
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

/* Tablet: 2-col cards, side-by-side contact */
@media (min-width: 640px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-card--featured,
  .work-card--secondary {
    grid-column: span 2;
  }

  .testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .contact-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .contact-block__actions {
    flex-shrink: 0;
    align-items: flex-end;
  }
}

/* Desktop: 3-col cards, featured horizontal, full layouts */
@media (min-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .work-card--featured,
  .work-card--secondary {
    grid-column: span 6;
  }

  .work-card--half {
    grid-column: span 3;
  }

  .work-card--third {
    grid-column: span 2;
  }

  /* Featured card: horizontal layout — image left, content right */
  .work-card--featured {
    flex-direction: row;
    min-height: 400px;
  }

  .work-card--featured .work-card__image {
    flex: 0 0 44%;
    width: 44%;
    aspect-ratio: unset;
    align-self: stretch;
  }

  .work-card--featured .work-card__body {
    padding: var(--space-xl);
  }

  .work-card--featured .work-card__title {
    font-size: 1.5rem;
  }

  .work-card--featured .work-card__desc {
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
  }

  /* Secondary card: image shorter on desktop */
  .work-card--secondary .work-card__image {
    aspect-ratio: 16 / 7;
  }

  /* About: float photo left, text wraps around it */
  .about-layout {
    display: block;
  }

  .about__visual {
    float: left;
    width: 240px;
    margin-right: var(--space-3xl);
    margin-bottom: var(--space-lg);
  }

  .about__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    margin: 0;
  }

  .about__expertise {
    clear: left;
  }

  .expertise-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .expertise-item:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
  }

  /* Process: 4-column row */
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Work brief (More work compact cards) --- */
.work-brief-section {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.work-brief-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.025em;
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xl);
  line-height: 1.15;
}

.work-brief-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.work-brief {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.work-brief__thumb {
  flex: 0 0 180px;
  width: 180px;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  min-height: 148px;
}

.work-brief__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
}

.work-brief__body {
  flex: 1;
  min-width: 0;
  padding: var(--space-sm) var(--space-lg);
}

.work-brief:hover {
  border-color: rgba(196, 160, 184, 0.5);
  background: rgba(196, 160, 184, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30);
}

.work-brief:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2px;
}

.work-brief__meta {
  font-size: 0.6875rem;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-sm);
}

.work-brief__title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
  line-height: 1.35;
}

.work-brief__desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-brief__num {
  display: inline-block;
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent-text);
}

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

/* Small mobile */
@media (max-width: 440px) {
  :root {
    --space-xl: 20px;
    --space-2xl: 36px;
    --space-3xl: 56px;
    --space-4xl: 72px;
  }

  .nav__links a:not(.btn-contact) { display: none; }

  #hero::before {
    background: linear-gradient(
      to right,
      rgba(26, 17, 40, 0.94) 0%,
      rgba(26, 17, 40, 0.90) 50%,
      rgba(26, 17, 40, 0.78) 100%
    );
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero__stats > div {
    width: 100%;
    flex: 1 1 100%;
  }

  .stat__label {
    max-width: none;
  }

  .work-brief {
    flex-direction: column;
  }

  .work-brief__thumb {
    flex: none;
    width: 100%;
    height: 110px;
    min-height: unset;
  }

  .footer__inner { flex-direction: column; gap: var(--space-md); text-align: center; }
}
