/* =========================================================
   Jarad Hull — Portfolio
   Refined neutral palette, executive type scale
   ========================================================= */

:root {
  /* Brand palette
     ─────────────
     Slate     #4D5C60   muted blue-gray (muted text)
     Amethyst  #525266   muted purple-gray (portrait column, accent)
     Charcoal  #383838   near-black (sidebar bg, body text)
     Mist      #D1E0DE   pale teal (page bg, hero center)
     Keylime   #EEF4CE   pale yellow-green (featured chapter, accents)
  */

  /* Surfaces */
  --bg: #D1E0DE;
  --bg-alt: #E5EDEB;
  --bg-elevated: #FFFFFF;
  --bg-pop: #EEF4CE;
  --bg-dark: #383838;
  --bg-portrait: #525266;

  /* Text */
  --text: #383838;
  --text-muted: #4D5C60;
  --text-faint: #7A848A;
  --text-on-dark: #D1E0DE;
  --text-label: #EEF4CE;

  /* Accents */
  --accent: #525266;
  --accent-soft: #D1E0DE;
  --accent-pop: #EEF4CE;
  --accent-text: #383838;
  --success: #3A6B5B;

  /* Borders */
  --border: rgba(56, 56, 56, 0.10);
  --border-strong: rgba(56, 56, 56, 0.20);
  --border-on-dark: rgba(209, 224, 222, 0.18);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container-max: 1080px;
  --container-pad: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

/* =========================================================
   Header / Nav
   ========================================================= */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(209, 224, 222, 0.85);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid var(--text);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.brand-name {
  font-size: 15px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.15s ease;
}

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

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--text-muted);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

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

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(2px);
}

/* =========================================================
   Section primitives
   ========================================================= */

section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.marker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0 0 18px;
  letter-spacing: 0;
}

.marker-accent {
  color: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 56px;
  max-width: 720px;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  padding: 4px 10px;
  background: var(--bg-alt);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  letter-spacing: 0;
  text-transform: lowercase;
}

.section-alt .tag {
  background: var(--bg);
}

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

.hero {
  display: grid;
  grid-template-columns: 200px 1fr 1.2fr;
  min-height: 88vh;
  padding: 0;
}

/* ── Hero left sidebar (Charcoal) ───────────────────────── */

.hero-sidebar {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 40px 28px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.chapter-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 64px;
}

.chapter-current {
  color: var(--accent-pop);
  font-weight: 500;
}

.chapter-line {
  width: 32px;
  height: 1px;
  background: var(--border-on-dark);
}

.chapter-total {
  color: rgba(209, 224, 222, 0.5);
}

.hero-info {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-block dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-pop);
  margin-bottom: 6px;
}

.info-block dd {
  font-size: 13px;
  color: var(--text-on-dark);
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
}

.info-block a {
  color: inherit;
  transition: color 0.15s ease;
}

.info-block a:hover {
  color: var(--accent-pop);
}

.hero-sidebar-signature {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  font-weight: 500;
  color: rgba(238, 244, 206, 0.85);
  line-height: 1;
  margin-top: 32px;
}

.hero-sidebar-chapter {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.chapter-big {
  font-size: 88px;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--accent-pop);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.chapter-mark {
  font-size: 14px;
  color: var(--accent-pop);
  font-weight: 500;
}

/* ── Hero center (Mist) ─────────────────────────────────── */

.hero-center {
  background: var(--bg);
  padding: 96px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-greeting {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 20px;
}

.hero-name {
  font-size: clamp(40px, 5.2vw, 84px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  white-space: nowrap;
}

.hero-name-first,
.hero-name-last {
  display: inline;
}

.hero-bio {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 440px;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-socials a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.15s ease;
}

.hero-socials a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.2s ease;
}

.hero-socials a:hover::after {
  width: 100%;
}

/* ── Hero right portrait column (Amethyst) ──────────────── */

.hero-portrait-column {
  margin: 0;
  background: var(--bg-portrait);
  overflow: hidden;
  position: relative;
}

.hero-portrait-column img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

/* ── Metrics band (between hero and About) ──────────────── */

.metrics-band {
  background: var(--bg-alt);
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text);
  margin-bottom: 32px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.25;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.4); opacity: 0; }
}

.hero-headline {
  font-size: 64px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  max-width: 920px;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 40px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  margin: 0;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 8px;
}

.metric-label {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 72px;
  align-items: start;
}

.about .section-title {
  margin-bottom: 32px;
  font-size: 32px;
  max-width: 580px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.about-body p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  color: var(--text);
}

.about-signature {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.signature {
  font-family: 'Caveat', cursive;
  font-size: 44px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.signature-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.about-cta {
  display: flex;
  gap: 12px;
}

.about-facts {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 100px;
}

.about-facts dl {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.about-facts .fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.about-facts .fact:first-child {
  padding-top: 0;
}

.about-facts .fact:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.about-facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0;
}

.about-facts dd {
  font-size: 15px;
  color: var(--text);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* =========================================================
   Outcomes (What I'm hired to do)
   ========================================================= */

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.outcome-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s ease;
  position: relative;
}

.outcome-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.outcome-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
}

.outcome-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.outcome-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* =========================================================
   Featured (AI work)
   ========================================================= */

.featured {
  background: var(--bg-pop);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.featured .marker-accent {
  color: var(--text);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
}

.featured-tag svg {
  width: 14px;
  height: 14px;
}

.featured-title {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 24px;
}

.featured-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.featured-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.featured-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.featured-points .check {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Featured visual — Ava product mockup inside a browser frame */
.featured-visual {
  width: 100%;
}

.device-frame {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(56, 56, 56, 0.18), 0 4px 12px -6px rgba(56, 56, 56, 0.08);
}

.device-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.device-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(56, 56, 56, 0.18);
}

.device-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-left: 12px;
  letter-spacing: 0;
}

.device-content {
  padding: 28px;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
}

.ava-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ava-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ava-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}

.ava-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ava-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.ava-status {
  font-size: 11px;
  color: var(--text-faint);
}

.ava-time {
  font-size: 11px;
  color: var(--text-faint);
  margin-left: auto;
  font-family: var(--font-mono);
}

.ava-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ava-bubble {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  max-width: 92%;
  align-self: flex-start;
}

.ava-bubble.ava-user {
  background: var(--accent);
  color: white;
  align-self: flex-end;
}

.ava-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ava-chip {
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-muted);
}

.ava-chip.ava-chip-primary {
  background: var(--bg-elevated);
  border-color: transparent;
  color: var(--text);
  font-weight: 500;
}

/* =========================================================
   Work grid
   ========================================================= */

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.work-header .section-title {
  margin: 0;
}

.work-range {
  font-size: 14px;
  color: var(--text-muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s ease;
}

.work-card:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.work-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.work-year {
  color: var(--text-muted);
}

.work-role {
  color: var(--text-muted);
  position: relative;
  padding-left: 14px;
}

.work-role::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 1px;
  background: var(--text-faint);
}

.work-company {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

.work-outcome {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  flex-grow: 1;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.work-range {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================================================
   Testimonials
   ========================================================= */

/* =========================================================
   Moments — photo strip
   ========================================================= */

.moments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.moment {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.moment-img {
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.moment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.moment:hover .moment-img img {
  transform: scale(1.03);
}

.moment figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================================================
   Testimonials
   ========================================================= */

.testimonials {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.testimonials .marker {
  color: var(--accent-pop);
}

.testimonials .section-title {
  color: var(--text-on-dark);
}

.testimonials .testimonial {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-on-dark);
}

.testimonials .testimonial p {
  color: var(--text-on-dark);
}

.testimonials .testimonial cite {
  color: var(--text-on-dark);
}

.testimonials .testimonial footer span {
  color: rgba(209, 224, 222, 0.65);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.testimonial {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 0;
}

.testimonial p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 20px;
}

.testimonial footer {
  font-size: 14px;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.testimonial footer span {
  color: var(--text-muted);
  font-size: 13px;
}

/* =========================================================
   Contact
   ========================================================= */

.contact {
  background: var(--bg-alt);
  padding: 96px 0;
  text-align: center;
}

.contact-inner {
  max-width: 640px;
}

.contact-headline {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 18px;
}

.contact .marker {
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.contact-cta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

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

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

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

.footer-social a {
  transition: color 0.15s ease;
}

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

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

@media (max-width: 860px) {
  :root {
    --container-pad: 24px;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
  }

  .hero-portrait-column {
    order: -1;
    aspect-ratio: 4 / 5;
    max-height: 420px;
  }

  .hero-center {
    padding: 48px 24px 32px;
  }

  .hero-name {
    font-size: clamp(48px, 14vw, 76px);
  }

  .hero-sidebar {
    padding: 32px 24px;
  }

  .hero-sidebar-chapter {
    display: none;
  }

  .chapter-indicator {
    margin-bottom: 28px;
  }

  .hero-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px 28px;
  }

  .info-block {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .hero-sidebar-signature {
    margin-top: 20px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .metric-number {
    font-size: 34px;
  }

  .section-title,
  .featured-title,
  .contact-headline {
    font-size: 30px;
    letter-spacing: -0.02em;
  }

  .work-company {
    font-size: 24px;
  }

  .outcome-card h3 {
    font-size: 20px;
  }

  .outcomes-grid,
  .work-grid,
  .testimonials-grid,
  .moments-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-facts {
    position: static;
  }

  .about .section-title {
    font-size: 28px;
  }

  .signature {
    font-size: 36px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav {
    padding: 16px 24px;
  }

  .nav-links {
    gap: 20px;
    font-size: 13px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-meta {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 32px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links li:nth-child(1) {
    display: none;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */

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

/* =========================================================
   About page (about.html)
   ========================================================= */

body.about-body {
  background: var(--bg);
}

.about-main {
  padding-bottom: 96px;
}

.about-hero {
  padding: 64px 0 36px;
}

.about-title {
  font-size: clamp(64px, 10vw, 132px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 16px 0 24px;
  color: var(--text);
}

.about-lede {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.5;
  color: var(--text);
  max-width: 720px;
  margin: 0;
}

.about-photo-row {
  display: grid;
  gap: 16px;
  margin: 56px auto;
  max-width: 1080px;
  padding: 0 var(--container-pad);
}

.about-photo-row-1 {
  grid-template-columns: 1fr 1.6fr 1fr;
  grid-template-rows: clamp(280px, 30vw, 420px);
  align-items: stretch;
}

.about-photo-row-2 {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: clamp(240px, 26vw, 360px);
  align-items: stretch;
}

.about-photo-row-1 .about-photo,
.about-photo-row-2 .about-photo {
  aspect-ratio: auto;
  height: 100%;
}

.about-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-portrait);
  transition: transform 0.3s ease;
}

.about-photo:hover {
  transform: translateY(-2px);
}

.about-photo picture,
.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
}

.about-photo img {
  object-fit: cover;
  object-position: center 22%;
}

.about-photo-portrait {
  aspect-ratio: 3 / 4;
}

.about-photo-landscape {
  aspect-ratio: 5 / 4;
}

.about-photo-square {
  aspect-ratio: 1 / 1;
}

.about-photo-wide {
  aspect-ratio: 4 / 3;
}

.about-photo-headshot-alt img {
  object-position: center 70%;
}

.about-text-section {
  padding: 16px 0 32px;
}

.about-h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--text);
}

.about-prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 18px;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-prose strong {
  color: var(--text);
  font-weight: 500;
}

.about-principles p {
  margin-bottom: 20px;
}

.about-inline-link {
  border-bottom: 1px solid var(--text-faint);
  font-weight: 500;
  transition: border-color 0.15s ease;
}

.about-inline-link:hover {
  border-bottom-color: var(--text);
}

.about-numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 0;
}

.about-fact {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 0;
  border: 1px solid var(--border);
}

.about-fact-accent {
  background: var(--accent-pop);
  border-color: transparent;
}

.about-fact dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.about-fact dd {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.about-fact-text {
  font-size: 18px;
}

.about-fact-aside {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.about-talk-section {
  padding-top: 56px;
}

.about-talk {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.about-talk-text {
  display: flex;
  flex-direction: column;
}

.about-talk-text .marker {
  margin-bottom: 4px;
}

.about-talk-line {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.about-talk-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .about-hero {
    padding: 32px 0 16px;
  }

  .about-photo-row-1,
  .about-photo-row-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }

  .about-photo-row-1 .about-photo,
  .about-photo-row-2 .about-photo {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .about-photo-row-1 figure:nth-child(3),
  .about-photo-row-2 figure:nth-child(3) {
    grid-column: 1 / 3;
    aspect-ratio: 16 / 9;
  }

  .about-numbers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-talk {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-talk-buttons {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .about-numbers-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Case study pages
   ========================================================= */

body.case-study {
  background: var(--bg);
}

.case-hero {
  padding: 56px 0 0;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 40px;
  transition: color 0.15s ease;
}

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

.case-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.case-meta-sep {
  width: 4px;
  height: 1px;
  background: var(--text-faint);
}

.case-title {
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
}

.case-subtitle {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 0 36px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 72px;
}

.case-hero-image {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-portrait);
  overflow: hidden;
}

.case-hero-image picture,
.case-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
}

.case-hero-image img {
  object-fit: cover;
}

.case-section {
  padding: 96px 0;
}

.case-section.section-alt {
  background: var(--bg-alt);
}

.case-section .container.narrow {
  max-width: 760px;
}

.case-section h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  max-width: 760px;
}

.case-section-headline {
  margin-bottom: 24px;
}

.case-section h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 56px 0 16px;
}

.case-section h3:first-child {
  margin-top: 0;
}

.case-prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 20px;
}

.case-prose p:last-child {
  margin-bottom: 0;
}

.case-prose em {
  font-style: italic;
  color: var(--accent);
}

.case-external-link {
  border-bottom: 1px solid var(--text-faint);
  font-weight: 500;
  transition: border-color 0.15s ease;
  white-space: nowrap;
}

.case-external-link:hover {
  border-bottom-color: var(--text);
}

.case-external-link .ext-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.85em;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.case-external-link:hover .ext-arrow {
  transform: translate(2px, -2px);
}

/* Placeholder text on template pages — clearly signals "fill me in" */
.placeholder {
  color: var(--text-faint);
  font-style: italic;
  font-weight: 400;
}

h1 .placeholder,
h2 .placeholder,
h3 .placeholder,
.case-subtitle .placeholder {
  color: var(--text-faint);
}

.metric-number .placeholder {
  font-style: italic;
  color: var(--text-faint);
  font-size: 0.6em;
  font-weight: 400;
  letter-spacing: 0;
}

.case-prose-intro {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 56px;
  max-width: 760px;
}

.case-prose-after {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin: 32px 0 0;
}

.case-image-full {
  margin: 56px auto;
  width: 100%;
  max-width: 1280px;
  padding: 0 var(--container-pad);
}

.case-image-full picture,
.case-image-full img {
  width: 100%;
  height: auto;
  display: block;
}

.case-image-full img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.case-image-full figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 600px;
  line-height: 1.55;
}

.case-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 0 0 48px;
}

.case-split-image {
  margin: 0;
}

.case-split-image picture,
.case-split-image img {
  width: 100%;
  height: auto;
  display: block;
}

.case-split-image img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* Stacked-images variant: two photos in left column, stacked vertically */
.case-split-image-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-split-image-stack figure {
  margin: 0;
}

.case-split:has(.case-split-image-stack) {
  align-items: flex-start;
}

.case-split-text h3 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.case-split-text > :first-child {
  margin-top: 0;
}

.case-split-text p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

.case-split-text .case-prose-intro {
  max-width: none;
  margin: 0;
}

.case-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0 0;
}

.case-image-pair figure {
  margin: 0;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  border: 1px solid var(--border);
}

.case-image-pair img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  display: block;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  margin: 0;
  padding: 0;
}

.case-metrics .metric-number {
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 10px;
  color: var(--text);
}

.case-metrics .metric-label {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.case-signature {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
}

.case-cta {
  padding: 112px 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  text-align: center;
}

.case-cta .marker-on-dark {
  color: var(--accent-pop);
  margin: 0 auto 16px;
}

.case-cta-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 auto 36px;
  max-width: 640px;
}

.case-cta-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-primary-light {
  background: var(--accent-pop);
  color: var(--text);
  border: 1px solid transparent;
}

.btn-primary-light:hover {
  background: #FFFFFF;
}

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

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 860px) {
  .case-hero {
    padding: 32px 0 0;
  }

  .case-section {
    padding: 64px 0;
  }

  .case-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .case-image-pair {
    grid-template-columns: 1fr;
  }

  .case-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .case-image-full {
    margin: 40px auto;
  }

  .case-cta {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .case-metrics {
    grid-template-columns: 1fr;
  }
}
