/* ============================
   AMBER LAIDMAN — PORTFOLIO
   Shared stylesheet
   ============================ */

:root {
  --teal: #3D6B7A;
  --teal-deep: #2E5461;
  --white: #FFFFFF;
  --black: #000000;
  --cream: #F5F1E8;
  --mint: #C7E0D0;
  --grey-body: #333333;
  --grid-max: 1200px;
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
button:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

/* ============ ACCESSIBILITY UTILITIES ============ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--teal);
  color: var(--cream);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  z-index: 1000;
  transition: top 200ms ease-in-out;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

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

/* ============ NAV ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-nav .wordmark {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--black);
}
.site-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}
.site-nav a { position: relative; color: var(--black); font-weight: 400; }
.site-nav a:hover { color: var(--teal); }
.site-nav a.current { color: var(--teal); font-weight: 500; }
.site-nav a.current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--teal);
}

/* ============ HERO (HOME) ============ */
.hero {
  background: var(--teal);
  color: var(--cream);
  padding: 120px 40px 100px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.hero .meta {
  font-size: 14px;
  font-weight: 500;
  color: #E2F1E9;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 40px 0;
}
.hero .intro {
  font-size: clamp(18px, 2vw, 22px);
  max-width: 720px;
  line-height: 1.55;
  font-weight: 300;
  margin: 0 0 48px 0;
}
.hero-cta {
  display: inline-block;
  color: var(--cream);
  border-bottom: 2px solid var(--cream);
  padding-bottom: 4px;
  font-weight: 500;
  font-size: 17px;
  transition: color 200ms, border-color 200ms;
}
.hero-cta:hover { color: var(--mint); border-color: var(--mint); }

/* ============ SHARED SECTION ============ */
.section-inner {
  max-width: var(--grid-max);
  margin: 0 auto;
}
.section-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-label.light { color: #E2F1E9; }
h2.credit-band-heading {
  font-family: inherit;
  font-weight: 500;
  margin: 0 0 16px 0;
  padding: 0;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 800px;
  line-height: 1.1;
}
.section-title-alt {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 24px 0;
  line-height: 1.1;
}

.link-underline {
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 3px;
  color: var(--black);
}
.link-underline:hover { color: var(--teal); }

.link-underline-light {
  display: inline-block;
  color: var(--cream);
  border-bottom: 2px solid var(--cream);
  padding-bottom: 3px;
  font-weight: 500;
  font-size: 17px;
  transition: color 200ms, border-color 200ms;
}
.link-underline-light:hover { color: var(--mint); border-color: var(--mint); }

/* ============ TEASER WORK (HOME) ============ */
.teaser-work {
  padding: 120px 40px;
  background: var(--white);
}
.teaser-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 24px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.featured-item {
  display: block;
  padding: 32px 0 0 0;
  border-top: 1px solid var(--black);
  transition: border-top-width 200ms, border-top-color 200ms, padding-top 200ms;
}
.featured-item:hover {
  padding-top: 24px;
  border-top-color: var(--teal);
  border-top-width: 8px;
}
.featured-tag {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal-deep);
  background: var(--mint);
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 20px;
}
.featured-item h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
  line-height: 1.2;
}
.featured-item p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: var(--grey-body);
}

/* ============ VOICES (HOME) ============ */
.teaser-voices {
  padding: 120px 40px;
  background: var(--cream);
}
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.voice {
  margin: 0;
  padding: 32px 0 0 0;
  border-top: 1px solid var(--black);
  display: flex;
  flex-direction: column;
}
.voice::before {
  content: "\201C" / "";
  display: block;
  font-size: 64px;
  line-height: 0.6;
  height: 28px;
  color: var(--teal);
  margin-bottom: 12px;
}
.voice blockquote { margin: 0 0 24px 0; }
.voice blockquote p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  color: var(--black);
}
.voice figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.voice-name { font-size: 15px; font-weight: 500; color: var(--teal-deep); }
.voice-role { font-size: 14px; color: var(--grey-body); }

/* ============ TEASER ABOUT (HOME) ============ */
.teaser-about {
  padding: 120px 40px;
  background: var(--teal);
  color: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-teaser-body {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 480px;
}

/* ============ PAGE HEADER (WORK, ABOUT, CASE STUDIES) ============ */
.page-header {
  padding: 80px 40px 60px;
  max-width: var(--grid-max);
  margin: 0 auto;
}
.page-header h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 40px 0;
}
.page-header .lead {
  font-size: 20px;
  max-width: 700px;
  line-height: 1.55;
  margin: 0;
  font-weight: 300;
  color: var(--grey-body);
}

/* ============ WORK LIST ============ */
.work-list-section {
  padding: 40px 40px 120px;
  max-width: var(--grid-max);
  margin: 0 auto;
}
.work-list { border-top: 1px solid var(--black); }
.work-note {
  font-size: 16px;
  max-width: 700px;
  line-height: 1.55;
  margin: 40px 0 0 0;
  font-weight: 300;
  color: var(--grey-body);
}

.work-item {
  border-bottom: 1px solid var(--black);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: baseline;
  transition: background 200ms ease, padding-left 200ms ease, padding-right 200ms ease, color 200ms;
}
.work-item:hover {
  background: var(--teal);
  color: var(--cream);
  padding-left: 24px;
  padding-right: 24px;
}
.work-item:hover .work-tag { background: var(--cream); color: var(--teal); }
.work-year { font-size: 14px; font-weight: 400; }
.work-info h3 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  line-height: 1.1;
}
.work-info p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 52ch;
}
.work-tag {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal-deep);
  background: var(--mint);
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ============ ABOUT PAGE ============ */
.about-content {
  padding: 20px 40px 100px;
  max-width: var(--grid-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-body p {
  font-size: 19px;
  line-height: 1.65;
  margin: 0 0 28px 0;
  max-width: 640px;
}
.about-body p.lead {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--teal);
  margin-bottom: 40px;
}
.about-sidebar {
  padding: 32px;
  background: var(--teal);
  color: var(--cream);
  border-radius: 4px;
}
.about-sidebar dl { margin: 0; }
.about-sidebar dt {
  font-size: 14px;
  color: var(--mint);
  margin-bottom: 6px;
  font-weight: 500;
}
.about-sidebar dd {
  margin: 0 0 24px 0;
  font-size: 16px;
  line-height: 1.5;
}
.about-sidebar dd:last-child { margin-bottom: 0; }

/* ============ SELECTED EXPERIENCE (ABOUT PAGE) ============ */
.selected-experience {
  background: var(--cream);
  padding: 80px 40px;
}
.selected-inner {
  max-width: var(--grid-max);
  margin: 0 auto;
}
.selected-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0 0;
  display: grid;
  gap: 32px;
}
.selected-list li {
  padding: 24px 0 24px 24px;
  border-left: 3px solid var(--teal);
}
.selected-list strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.selected-list span {
  font-size: 16px;
  line-height: 1.55;
  color: var(--grey-body);
}

/* ============ QUOTE BAND ============ */
.credit-band {
  background: var(--teal);
  color: var(--cream);
  padding: 100px 40px;
}
.credit-inner { max-width: var(--grid-max); margin: 0 auto; }
.credit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.credit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(199,224,208,0.15);
  padding: 32px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.credit-card blockquote {
  margin: 0 0 24px 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.credit-card .attribution {
  margin: 0;
  font-size: 14px;
  color: var(--mint);
  line-height: 1.4;
}
.credit-card .attribution span {
  color: rgba(199,224,208,0.7);
  font-size: 14px;
}
.credit-band blockquote {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 900px;
}
.credit-band .attribution {
  margin-top: 24px;
  font-size: 15px;
  color: var(--mint);
}

/* ============ FEATURED FLAGSHIP TILE (HOME) ============ */
.featured-item-flagship {
  border-top: 6px solid var(--teal);
  padding-top: 26px;
}

/* ============ CASE STUDY HERO IMAGE ============ */
.cs-hero-image {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.cs-hero-image-inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 40px;
}
.cs-hero-image img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 4px;
  margin: 32px 0;
}

/* ============ CASE STUDY RESULTS CALLOUT ============ */
.cs-results {
  background: var(--teal);
  color: var(--cream);
  padding: 60px 40px;
}
.cs-results-inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}
.cs-result {
  text-align: left;
}
.cs-result-number {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--cream);
}
.cs-result-label {
  font-size: 14px;
  color: #E2F1E9;
  line-height: 1.4;
  font-weight: 400;
}

/* ============ PROGRAM HIGHLIGHTS / SNAPSHOTS ============ */
.snapshots-intro {
  font-size: 17px;
  color: #E2F1E9;
  margin: 8px 0 32px 0;
  max-width: 720px;
  line-height: 1.5;
}
.snapshot-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
/* Line up the title, dates, result box and paragraph across the three cards */
@supports (grid-template-rows: subgrid) {
  .snapshot-card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}
.snapshot-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin: 0 0 6px 0;
  line-height: 1.25;
  font-family: inherit;
}
.snapshot-meta {
  font-size: 14px;
  color: #E2F1E9;
  margin-bottom: 20px;
  font-weight: 400;
}
.snapshot-result {
  font-size: 15px;
  color: var(--cream);
  font-weight: 500;
  padding: 12px 16px;
  background: rgba(0,0,0,0.12);
  border-left: 3px solid var(--mint);
  border-radius: 0 4px 4px 0;
  margin-bottom: 20px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.snapshot-body {
  font-size: 14px;
  color: var(--cream);
  line-height: 1.5;
  margin: 0;
  font-weight: 300;
}

/* ============ CASE STUDY PAGE ============ */
.cs-back-link {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 24px 40px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
}
.cs-back-link a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 200ms;
}
.cs-back-link a:hover { border-bottom-color: var(--teal); }

.cs-hero {
  background: var(--teal);
  color: var(--cream);
  padding: 100px 40px 80px;
}
.cs-hero-inner { max-width: var(--grid-max); margin: 0 auto; }
.cs-hero .cs-tag {
  display: inline-block;
  background: var(--mint);
  color: var(--teal-deep);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.cs-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 24px 0;
  max-width: 900px;
}
.cs-hero .cs-subhead {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  line-height: 1.5;
  max-width: 720px;
  margin: 0;
}

.cs-quickfacts {
  background: var(--white);
  border-bottom: 1px solid var(--black);
  padding: 40px 40px;
}
.cs-quickfacts-inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.cs-fact dt {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 8px;
}
.cs-fact dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

/* ============ TABS ============ */
.cs-tabs {
  padding: 80px 40px 60px;
  background: var(--white);
}
.cs-tabs-inner {
  max-width: 900px;
  margin: 0 auto;
}
.cs-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--black);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.cs-tab-btn {
  background: none;
  border: none;
  padding: 16px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--grey-body);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 200ms, border-color 200ms;
  position: relative;
}
.cs-tab-btn:hover { color: var(--teal); }
.cs-tab-btn.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.cs-tab-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.cs-tab-panel {
  animation: fadeIn 300ms ease;
}
.cs-tab-panel p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 20px 0;
  max-width: 52ch;
}
.cs-tab-panel p:last-child { margin-bottom: 0; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-tab-panel { animation: none; }
}

/* ============ KIRKPATRICK MEASUREMENT BLOCK ============ */
.cs-kirkpatrick {
  margin-top: 32px;
  display: grid;
  gap: 20px;
}
.cs-kp-item {
  padding: 24px 28px;
  background: var(--cream);
  border-left: 4px solid var(--teal);
  border-radius: 0 4px 4px 0;
}
.cs-kp-level {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.cs-kp-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* ============ WIDGETS SECTION ============ */
.cs-widgets-section {
  background: var(--cream);
  padding: 80px 40px 100px;
}
.cs-widgets-inner {
  max-width: 900px;
  margin: 0 auto;
}
.cs-widgets-heading {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin: 0 0 16px 0;
  line-height: 1.1;
}
.cs-widgets-lead {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 40px 0;
  max-width: 54ch;
  color: var(--grey-body);
}

.cs-embed {
  margin: 0 0 40px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
}
.cs-embed iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
  background: var(--white);
}
.cs-embed-caption {
  font-size: 14px;
  color: var(--grey-body);
  padding: 16px 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
  background: var(--white);
}
.cs-embed-caption a { border-bottom: 1px solid var(--teal); color: var(--teal); }

.cs-widget-gallery {
  padding: 32px;
  background: var(--white);
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.06);
}
.cs-widget-gallery h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--teal);
  margin: 0 0 20px 0;
}
.cs-widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.cs-widget-list li { font-size: 15px; }
.cs-widget-list a {
  color: var(--black);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 200ms, border-color 200ms;
}
.cs-widget-list a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* ============ INTERACTIVE WIDGET VIEWER ============ */
.cs-widget-viewer {
  background: var(--white);
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}
.cs-widget-viewer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 16px 20px;
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.cs-widget-viewer-tab {
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-body);
  cursor: pointer;
  border-radius: 100px;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.cs-widget-viewer-tab:hover {
  color: var(--teal);
  background: rgba(61, 107, 122, 0.06);
}
.cs-widget-viewer-tab.active {
  background: var(--teal);
  color: var(--cream);
}
.cs-widget-viewer-tab:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.cs-widget-viewer-frame {
  background: var(--white);
}
.cs-widget-viewer-frame iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
  background: var(--white);
}
.cs-widget-viewer-caption {
  font-size: 14px;
  color: var(--grey-body);
  padding: 16px 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
  background: var(--white);
}
.cs-widget-viewer-caption a {
  border-bottom: 1px solid var(--teal);
  color: var(--teal);
  padding-bottom: 1px;
}
.cs-widget-viewer-caption a:hover {
  opacity: 0.75;
}

/* ============ EXTERNAL COURSE CTA ============ */
.cs-external-cta {
  background: var(--white);
  padding: 48px 40px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}
.cs-platform-choice {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cs-external-btn {
  display: inline-block;
  background: var(--teal);
  color: var(--cream);
  padding: 18px 36px;
  font-size: 17px;
  font-weight: 500;
  border-radius: 4px;
  transition: background 200ms;
}
.cs-external-btn:hover { background: var(--teal-deep); color: var(--cream); }
.cs-external-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}
.cs-external-note {
  font-size: 14px;
  color: var(--grey-body);
  margin: 20px 0 0 0;
}

/* ============ CASE STUDY CTA + NAV RETURN ============ */
.cs-cta {
  background: var(--cream);
  padding: 40px;
  margin: 40px 0;
  border-radius: 4px;
}
.cs-cta p {
  margin: 0 0 16px 0;
  font-size: 16px;
}
.cs-cta a {
  font-weight: 500;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 3px;
}
.cs-cta a:hover { color: var(--teal); }

.cs-nav-return {
  border-top: 1px solid var(--black);
  padding: 40px;
  max-width: var(--grid-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.cs-nav-return a {
  font-weight: 500;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 3px;
}
.cs-nav-return a:hover { color: var(--teal); }

/* ============ BACK TO TOP ============ */
.back-to-top {
  display: inline-block;
  font-size: 14px;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
  font-weight: 500;
}
.back-to-top:hover { opacity: 0.7; }

/* ============ FOOTER ============ */
.site-footer {
  padding: 32px 40px;
  background: var(--white);
  border-top: 1px solid var(--black);
  font-size: 14px;
}
.footer-inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; gap: 32px; align-items: center; }
.footer-note-wrap { max-width: var(--grid-max); margin: 20px auto 0; }
.footer-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--grey-body); max-width: 70ch; }
.footer-links a { border-bottom: 1px solid transparent; padding-bottom: 2px; }
.footer-links a:hover { border-bottom-color: currentColor; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; gap: 32px; }
  .voices-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .cs-quickfacts-inner { grid-template-columns: 1fr; gap: 24px; }
  .cs-widget-list { grid-template-columns: 1fr; }
  .credit-grid { grid-template-columns: 1fr; gap: 20px; }
  .cs-results-inner { grid-template-columns: 1fr; gap: 32px; }
  .cs-hero-image-inner { padding: 0 24px; }
  .cs-hero-image img { max-height: 240px; margin: 20px 0; }
  .cs-results { padding: 48px 24px; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 16px 24px; }
  .site-nav ul { gap: 20px; font-size: 14px; }
  .hero { padding: 80px 24px 60px; min-height: 70vh; }
  .teaser-work, .teaser-voices, .teaser-about { padding: 80px 24px; }
  .page-header { padding: 60px 24px 40px; }
  .work-list-section { padding: 20px 24px 80px; }
  .about-content { padding: 0 24px 60px; }
  .selected-experience { padding: 60px 24px; }
  .cs-back-link { padding: 20px 24px 0; }
  .cs-hero { padding: 80px 24px 60px; }
  .cs-quickfacts { padding: 32px 24px; }
  .cs-tabs { padding: 60px 24px 40px; }
  .cs-tab-btn { padding: 12px 16px; font-size: 15px; }
  .cs-widgets-section { padding: 60px 24px 80px; }
  .cs-widget-gallery { padding: 24px; }
  .cs-nav-return { padding: 32px 24px; }
  .credit-band { padding: 80px 24px; }
  .site-footer { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { flex-wrap: wrap; gap: 4px 24px; }
  .footer-links a { white-space: nowrap; padding: 8px 0; }
  .work-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .work-item:hover { padding-left: 12px; padding-right: 12px; }
  .work-tag { justify-self: start; }
}

/* ============================================================
   LAB PAGE — WIDGET VIEWER STYLE
   ============================================================ */

/* Lab header */
.lab-header {
  background: var(--white);
  padding: 100px 40px 40px;
  text-align: center;
}
.lab-header-inner {
  max-width: 900px;
  margin: 0 auto;
}
.lab-header .section-label {
  color: var(--teal);
  margin-bottom: 12px;
}
.lab-header h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.lab-header .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--grey-body);
  max-width: 640px;
  margin: 0 auto;
}

/* Lab content wrapper */
.lab-content {
  padding: 40px 40px 100px;
  max-width: var(--grid-max);
  margin: 0 auto;
}

/* Tab bar (widget viewer pattern) */
.lab-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.lab-tab {
  padding: 10px 20px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-body);
  cursor: pointer;
  transition: all 150ms ease;
}
.lab-tab:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.lab-tab.active {
  background: var(--teal);
  color: var(--cream);
  border-color: var(--teal);
}
.lab-tab:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}
.lab-tab.journal-tab {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--teal-deep);
}
.lab-tab.journal-tab.active {
  background: var(--teal-deep);
  color: var(--cream);
}

/* Project panels */
.project-panel,
.journal-panel {
  animation: labFadeIn 250ms ease;
}
@keyframes labFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Project header */
.project-header {
  margin-bottom: 40px;
}
.project-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: #B87259;
  border-radius: 50%;
}
.status-dot.thinking {
  background: var(--grey-body);
}
.status-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--grey-body);
  text-transform: uppercase;
}
.project-title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 16px;
}
.project-description {
  font-size: 17px;
  line-height: 1.55;
  color: var(--grey-body);
  max-width: 52ch;
}

/* Featured preview area */
.project-preview {
  background: var(--cream);
  border-radius: 6px;
  padding: 60px 40px;
  margin: 32px 0 48px;
  text-align: center;
}
.preview-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.preview-placeholder-text {
  font-size: 14px;
  color: var(--grey-body);
  max-width: 480px;
  margin: 0 auto;
}
.preview-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Single full-width "What's on my mind" section (no two-column grid) */
.project-section-single {
  max-width: 720px;
  margin: 48px auto 0;
}

/* CTA link below project content */
.project-cta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.project-cta-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--teal-deep);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.project-cta-link:hover {
  opacity: 0.7;
}
.project-cta-link:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 4px;
}

/* Detail sections */
.project-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.project-section h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}
.project-section p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-body);
}
.project-section ul {
  list-style: none;
  padding: 0;
}
.project-section li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-body);
  padding: 8px 0 8px 20px;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
  position: relative;
}
.project-section li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 500;
}
.project-section li:last-child { border-bottom: none; }

/* Journal panel */
.journal-panel {
  max-width: 720px;
  margin: 0 auto;
}
.journal-panel h3 {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--black);
}
.journal-intro {
  font-size: 15px;
  color: var(--grey-body);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.journal-entries {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.journal-entry {
  padding-left: 20px;
  border-left: 3px solid var(--teal);
}
.journal-entry-date {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.journal-entry-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 6px;
}
.journal-entry p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--grey-body);
}
.journal-entry p + p {
  margin-top: 14px;
}

/* Journal index: search, topic filter, entries that open in place */
.journal-tools {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: -16px 0 32px;
}
.journal-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  color: var(--black);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 8px;
}
.journal-search input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.journal-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.journal-filter {
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  color: var(--teal-deep);
  background: transparent;
  border: 1px solid var(--teal);
  border-radius: 999px;
  cursor: pointer;
}
.journal-filter:hover { background: rgba(61,107,122,0.08); }
.journal-filter[aria-pressed="true"] { color: #fff; background: var(--teal-deep); border-color: var(--teal-deep); }
.journal-count { font-size: 14px; color: var(--grey-body); margin: 0; }
.journal-empty { font-size: 15px; color: var(--grey-body); margin-bottom: 24px; }
.journal-entry[hidden] { display: none; }
.journal-entry > summary {
  display: block;
  position: relative;
  padding-right: 32px;
  cursor: pointer;
  list-style: none;
}
.journal-entry > summary::-webkit-details-marker { display: none; }
.journal-entry > summary::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
}
.journal-entry[open] > summary::after { top: 10px; transform: rotate(-135deg); }
.journal-entry > summary:hover .journal-entry-title { color: var(--teal-deep); }
.journal-entry > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; }
.journal-entry-summary {
  display: block;
  font-size: 15px;
  line-height: 1.55;
  color: var(--grey-body);
}
.journal-entry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.journal-tag {
  font-size: 14px;
  line-height: 1;
  padding: 6px 10px;
  color: var(--teal-deep);
  background: rgba(61,107,122,0.12);
  border-radius: 999px;
}
.journal-entry-body { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(0,0,0,0.08); }
.journal-entry-body p.journal-entry-link { margin-top: 18px; font-size: 14px; }
.journal-entry-body p.journal-entry-link a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.journal-entry[open] > summary .journal-entry-summary { display: none; }

/* Responsive */
@media (max-width: 700px) {
  .lab-header { padding: 60px 24px 30px; }
  .lab-content { padding: 20px 24px 60px; }
  .project-sections { grid-template-columns: 1fr; gap: 24px; }
  .project-preview { padding: 40px 24px; }
}

/* ============ LARGER TOUCH AREAS (invisible, no layout change) ============ */
.footer-links a, .hero-cta, .link-underline, .link-underline-light, .cs-back-link a, .lab-tab { position: relative; }
.site-nav a::before, .footer-links a::before, .hero-cta::before, .link-underline::before,
.link-underline-light::before, .cs-back-link a::before {
  content: '';
  position: absolute;
  inset: -14px -6px;
}
.lab-tab::before { content: ''; position: absolute; inset: -6px 0; }
@media (max-width: 768px) {
  .footer-links a::before { inset: -2px -6px; }
}

/* ============ HEADING FONT + HERO SPRIG ============ */
@font-face {
  font-family: 'Fraunces';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('fonts/fraunces-latin-500-normal.woff2') format('woff2');
}
.hero h1, .page-header h1, .lab-header h1, .cs-hero h1, .section-title, .section-title-alt {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero { position: relative; }
.hero-inner { position: relative; }
.hero-sprig {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: min(60vh, 420px);
  width: auto;
  pointer-events: none;
}
@media (min-width: 1101px) { .hero h1 { max-width: calc(100% - 260px); } }
@media (max-width: 1100px) { .hero-inner { padding-top: 96px; } .hero-sprig { height: 96px; top: 0; right: 0; transform: none; } }
