/* ===================================================================
   yancygarcia.com — Founder landing page design system
   Charcoal + Bone + Yellow accent. Inter throughout.
   =================================================================== */

:root {
  /* Palette */
  --charcoal:    #0F1419;
  --surface:     #151B21;
  --surface-hi:  #1A2027;
  --bone:        #F8F6F1;
  --yellow:      #E8FF00;
  --teal:        #0D6E6E;
  --muted:       #A8ADB3;
  --muted-soft:  #C8CDD3;
  --hairline:    #2A2F36;

  /* Type */
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;

  /* Rhythm */
  --maxw:        1120px;
  --textw:       640px;
  --gap-section: 120px;

  /* Transitions */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* -------------------------------------------------------------------
   Reset + base
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--charcoal);
  color: var(--bone);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;

  /* Subtle grain for texture */
  background-image:
    radial-gradient(ellipse at top, rgba(232, 255, 0, 0.015) 0%, transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.03 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Selection */
::selection { background: var(--yellow); color: var(--charcoal); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* -------------------------------------------------------------------
   Typography utilities
------------------------------------------------------------------- */
.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-yellow { color: var(--yellow); }

.display {
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: var(--bone);
}

/* -------------------------------------------------------------------
   Reveal-on-scroll
------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------------------------------------------
   Layout helpers
------------------------------------------------------------------- */
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
}

.section-divider {
  display: block;
  width: 80px;
  height: 1px;
  margin: 0 auto;
  background: var(--yellow);
  opacity: 0.6;
  border: 0;
}

.section-header {
  margin-bottom: 72px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--bone);
  margin-bottom: 16px;
}

.section-rule {
  display: block;
  width: 80px;
  height: 1px;
  background: var(--yellow);
}

/* -------------------------------------------------------------------
   Buttons
------------------------------------------------------------------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-row-center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 200ms var(--ease),
              color 200ms var(--ease),
              border-color 200ms var(--ease),
              transform 200ms var(--ease);
  will-change: transform;
}

.btn-primary {
  background: var(--bone);
  color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--yellow);
  color: var(--charcoal);
}

.btn-secondary {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone);
}
.btn-secondary:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* -------------------------------------------------------------------
   HERO — single-column, left-aligned, editorial
------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px 48px 160px;
  overflow: hidden;
}

/* Yellow square mark — floats top-right, visible anchor */
.hero-mark {
  position: absolute;
  top: 96px;
  right: 48px;
  width: 56px;
  height: 56px;
  background: var(--yellow);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.hero-inner .label {
  margin-bottom: 40px;
}

.hero .display {
  margin-bottom: 32px;
  font-size: clamp(72px, 14vw, 168px);
}

.hero .display-line {
  display: block;
  line-height: 0.9;
}
.hero .display-line + .display-line {
  margin-top: -0.02em;
}

.hero-sub {
  font-size: 20px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 48px;
  letter-spacing: -0.005em;
}

.hero-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-soft);
  max-width: 520px;
  margin-bottom: 24px;
}

.bilingual {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 48px;
}

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  transition: opacity 200ms var(--ease);
}
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator-line {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--bone);
  opacity: 0.4;
}
.scroll-indicator-dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--yellow);
  animation: scroll-pulse 2s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(6px); opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator-dot { animation: none; }
}

/* -------------------------------------------------------------------
   BACKGROUND — 2x2 card grid
------------------------------------------------------------------- */
.background {
  padding: var(--gap-section) 0;
}

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

.card {
  position: relative;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  transition: border-color 200ms var(--ease),
              background 200ms var(--ease),
              transform 200ms var(--ease);
}
.card:hover {
  border-color: rgba(232, 255, 0, 0.4);
  background: var(--surface-hi);
  transform: translateY(-2px);
}

.card-label {
  margin-bottom: 24px;
}

.card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--bone);
  margin-bottom: 16px;
}

.card-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-soft);
}

/* -------------------------------------------------------------------
   FOUNDER PHOTO — Jackson, Wyoming (between hero and experience)
------------------------------------------------------------------- */
.founder-photo {
  padding: 96px 24px 48px;
  text-align: center;
}

.founder-photo-frame {
  display: inline-block;
  margin: 0;
  padding: 0;
  max-width: 640px;
  width: 100%;
  position: relative;
}

.founder-photo-frame picture,
.founder-photo-frame picture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* Subtle bottom shadow grounding the image on the charcoal */
.founder-photo-frame picture {
  box-shadow:
    0 32px 64px -24px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(248, 246, 241, 0.04);
}

.founder-photo-caption {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-top: 28px;
}

@media (max-width: 768px) {
  .founder-photo {
    padding: 64px 24px 32px;
  }
  .founder-photo-frame {
    max-width: 100%;
  }
  .founder-photo-caption {
    font-size: 11px;
    margin-top: 20px;
  }
}

/* -------------------------------------------------------------------
   EXPERIENCE TIMELINE (HORIZONTAL) — interactive bar chart
------------------------------------------------------------------- */
.exp-timeline {
  padding: var(--gap-section) 0 48px;
}

.exp-timeline-inner {
  max-width: 1040px;
  padding: 0 48px;
  text-align: center;
}

.exp-timeline-header {
  margin-bottom: 56px;
}
.exp-timeline-header .label { display: block; margin-bottom: 12px; }

.exp-timeline-subhead {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--bone);
  margin: 0 auto 24px;
  max-width: 620px;
}

.exp-chart {
  position: relative;
  width: 100%;
  padding: 16px 0 0;
}

.exp-chart-bars {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0 16px;

  /* Year tick guides — faint vertical lines at each 12.5% step */
  background-image: linear-gradient(
    to right,
    rgba(248, 246, 241, 0.08) 1px,
    transparent 1px
  );
  background-size: 12.5% 100%;
  background-position: 0 0;
  background-repeat: repeat-y;
}

.exp-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 18px;
}

.exp-row-label {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 246, 241, 0.6);
  text-align: right;
}

.exp-row-track {
  position: relative;
  height: 18px;
  width: 100%;
}

.exp-bar {
  position: absolute;
  top: 0;
  left: var(--start);
  width: calc(var(--end) - var(--start));
  height: 18px;
  background: var(--teal);
  opacity: 0.4;
  border: 0;
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  transition: background 200ms var(--ease),
              opacity 200ms var(--ease),
              box-shadow 200ms var(--ease),
              transform 200ms var(--ease);
  will-change: opacity, background, box-shadow;
}

.exp-bar:hover,
.exp-bar:focus-visible,
.exp-bar.is-active {
  background: var(--yellow);
  opacity: 1;
  box-shadow: 0 0 24px rgba(232, 255, 0, 0.3);
}

/* Dim siblings when one bar is hovered/focused/active */
.exp-chart-bars:hover .exp-bar:not(:hover):not(:focus-visible):not(.is-active) {
  opacity: 0.2;
}
.exp-chart-bars:has(.exp-bar.is-active) .exp-bar:not(.is-active):not(:hover):not(:focus-visible) {
  opacity: 0.2;
}

/* Year axis */
.exp-axis {
  position: relative;
  height: 24px;
  width: 100%;
  margin-left: 116px;   /* align with .exp-row-track (label col 96 + gap 20) */
  margin-right: 0;
  margin-top: 8px;
  width: calc(100% - 116px);
}
.exp-tick {
  position: absolute;
  top: 0;
  left: var(--at);
  transform: translateX(-50%);
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 246, 241, 0.6);
  white-space: nowrap;
}
.exp-tick-present { color: var(--yellow); }

@media (prefers-reduced-motion: reduce) {
  .exp-bar { transition: background 200ms linear, opacity 0ms; box-shadow: none !important; }
  .exp-bar:hover, .exp-bar:focus-visible, .exp-bar.is-active {
    box-shadow: none;
  }
  .exp-chart-bars:hover .exp-bar:not(:hover):not(:focus-visible):not(.is-active),
  .exp-chart-bars:has(.exp-bar.is-active) .exp-bar:not(.is-active):not(:hover):not(:focus-visible) {
    opacity: 0.4;
  }
}

/* -------------------------------------------------------------------
   EXPERIENCE TIMELINE — centered, vertically-connected ventures
------------------------------------------------------------------- */
.experience {
  padding: 48px 0 calc(var(--gap-section) + 24px);
}

.experience-inner {
  max-width: 720px;
  padding: 0 24px;
  text-align: center;
}

.experience-header {
  margin-bottom: 72px;
}

.experience-header .label {
  display: block;
  margin-bottom: 12px;
}

.experience-subhead {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 32px;
}

.experience-rule {
  display: block;
  width: 80px;
  height: 1px;
  margin: 0 auto;
  background: var(--yellow);
  opacity: 0.6;
}

/* Timeline list */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.t-venture {
  position: relative;
  padding: 96px 0;
  text-align: center;
}
.t-venture:first-child { padding-top: 0; }

/* Logo / wordmark container */
.t-wordmark {
  display: inline-block;
  min-height: 120px;
  max-width: 360px;
  padding: 0 16px;
  line-height: 120px;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: 0.08em;
  color: var(--bone);
  margin-bottom: 32px;
}
.t-wordmark-brevmont {
  letter-spacing: 0.18em;
  font-size: clamp(34px, 4.2vw, 46px);
}

/* Image badge logo (for ventures that have a real logo) */
.t-badge {
  display: block;
  height: auto;
  width: auto;
  max-width: 320px;
  max-height: 160px;
  margin: 0 auto 32px;
  object-fit: contain;
}

/* RADM-specific: wider aspect ratio, flatter */
.t-badge-radm {
  max-width: 380px;
  max-height: 190px;
  margin-bottom: 24px;
}

/* Yellow geometric mark (interlude venture) */
.t-mark {
  display: block;
  width: 24px;
  height: 24px;
  background: var(--yellow);
  margin: 48px auto 64px;
}

/* Meta line: dates · role */
.t-meta {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.t-meta .t-dates { color: var(--yellow); }
.t-meta .t-role { color: var(--yellow); opacity: 0.85; }

/* Company name */
.t-company {
  font-family: var(--f-sans);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--bone);
  margin: 0 auto 28px;
  max-width: 560px;
}

/* Copy paragraph */
.t-copy {
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted-soft);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.t-copy + .t-copy { margin-top: 20px; }

/* Vertical connector line + terminal dot */
.t-connector {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  width: 1px;
  height: 60px;
  background: var(--yellow);
  opacity: 0.6;
  transition: transform 600ms var(--ease) 100ms;
}
.t-venture.is-visible .t-connector {
  transform: translateX(-50%) scaleY(1);
}
.t-connector::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

@media (prefers-reduced-motion: reduce) {
  .t-connector {
    transform: translateX(-50%) scaleY(1);
    transition: none;
  }
}

/* -------------------------------------------------------------------
   WHAT I BUILD — services (reuses .cap-grid)
------------------------------------------------------------------- */
.what-i-build {
  padding: var(--gap-section) 0;
}

/* -------------------------------------------------------------------
   SELECTED WORK
------------------------------------------------------------------- */
.selected-work {
  padding: var(--gap-section) 0;
}

.work-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}

.work-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}

.work-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--bone);
}

.work-name a {
  color: inherit;
  transition: color 200ms var(--ease);
}

.work-name a:hover {
  color: var(--yellow);
}

.work-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-soft);
  max-width: 42ch;
}

.work-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--bone);
  margin-top: 4px;
  transition: color 200ms var(--ease);
}

.work-link:hover {
  color: var(--yellow);
}

.work-link-muted {
  color: var(--muted);
  font-weight: 500;
  cursor: default;
}

.work-item-placeholder {
  opacity: 0.55;
}

/* -------------------------------------------------------------------
   WHAT I DO — numbered 2-column grid
------------------------------------------------------------------- */
.what-i-do {
  padding: var(--gap-section) 0;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 64px;
  row-gap: 56px;
}

.cap {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 4px 24px;
  align-items: start;
}

.cap-num {
  grid-row: 1 / span 2;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.cap-content {
  grid-column: 2;
}

.cap-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--bone);
  margin-bottom: 8px;
}

.cap-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-soft);
}

/* -------------------------------------------------------------------
   NOW
------------------------------------------------------------------- */
.now {
  padding: var(--gap-section) 0;
}

.now-inner {
  max-width: 720px;
  text-align: center;
}

.now-inner .label {
  margin-bottom: 40px;
}

.now-statement {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--bone);
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.contact-divider {
  display: block;
  width: 80px;
  height: 1px;
  margin: 64px auto 40px;
  background: var(--hairline);
  border: 0;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  color: var(--muted);
}
.contact a {
  color: var(--bone);
  position: relative;
  transition: color 200ms var(--ease);
}
.contact a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}
.contact a:hover { color: var(--yellow); }
.contact a:hover::after { transform: scaleX(1); }

/* -------------------------------------------------------------------
   SITE NAV
------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 48px;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-nav-brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bone);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 200ms var(--ease);
}

.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] {
  color: var(--yellow);
}

/* -------------------------------------------------------------------
   PORTFOLIO PAGE
------------------------------------------------------------------- */
.portfolio-page {
  padding-bottom: var(--gap-section);
}

.portfolio-hero {
  padding: 72px 48px 48px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.portfolio-hero .label {
  margin-bottom: 24px;
}

.portfolio-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--bone);
  margin-bottom: 12px;
  max-width: 18ch;
}

.portfolio-role {
  font-size: 16px;
  font-weight: 500;
  color: var(--yellow);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.portfolio-lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted-soft);
  max-width: 52ch;
  margin-bottom: 14px;
}

.portfolio-contact {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.portfolio-contact-primary {
  font-size: 18px;
  font-weight: 600;
  color: var(--bone);
  letter-spacing: -0.01em;
  transition: color 200ms var(--ease);
}

.portfolio-contact-primary:hover {
  color: var(--yellow);
}

.portfolio-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 8px;
}

.portfolio-social a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 200ms var(--ease);
}

.portfolio-social a:hover {
  color: var(--yellow);
}

.portfolio-social-footer {
  margin-top: 28px;
}

.portfolio-work-head {
  margin-bottom: 40px;
}

.portfolio-work-head h2 {
  font-size: 28px;
}

.portfolio-grid-wrap {
  padding-top: 24px;
  padding-bottom: 48px;
}

.portfolio-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.portfolio-card-featured {
  grid-column: 1 / -1;
}

.portfolio-card-link {
  display: block;
  height: 100%;
  border: 1px solid var(--hairline);
  background: var(--surface);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.portfolio-card-link:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #12171c;
}

.portfolio-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 400ms var(--ease);
}

.portfolio-card-link:hover .portfolio-cover {
  transform: scale(1.04);
}

.portfolio-logo-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  max-width: 42%;
  height: 48px;
  padding: 8px 12px;
  background: rgba(15, 20, 25, 0.88);
  border: 1px solid rgba(245, 243, 238, 0.14);
  backdrop-filter: blur(8px);
}

.portfolio-logo-badge img {
  width: auto;
  max-width: 100%;
  max-height: 32px;
  height: auto;
  object-fit: contain;
  display: block;
}

.portfolio-thumb-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: #0A0C0E;
  border-bottom: 1px solid var(--hairline);
}

.portfolio-thumb-brand img {
  width: auto;
  max-width: 58%;
  max-height: 88px;
  height: auto;
  object-fit: contain;
  display: block;
}

.portfolio-thumb-placeholder {
  display: none;
}

.portfolio-card-body {
  padding: 24px 28px 28px;
}

.portfolio-trade {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.portfolio-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--bone);
  margin-bottom: 12px;
}

.portfolio-card-featured .portfolio-name {
  font-size: clamp(24px, 3vw, 32px);
}

.portfolio-card-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-soft);
  transition: color 200ms var(--ease);
}

.portfolio-card-link:hover .portfolio-card-cta {
  color: var(--yellow);
}

.portfolio-footer-cta {
  padding-top: 48px;
  max-width: 720px;
}

/* -------------------------------------------------------------------
   FOOTER
------------------------------------------------------------------- */
.footer {
  padding: 40px 48px 48px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------------
   EXPERIENCE — accordion toggle + expanded body
------------------------------------------------------------------- */
.t-venture { scroll-margin-top: 24px; }

.t-toggle {
  display: block;
  width: 100%;
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background 200ms var(--ease);
}
.t-toggle:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 8px;
}
.t-toggle .t-toggle-head {
  display: block;
}

/* Hover glow on the chapter's logo / mark / wordmark */
.t-toggle:hover .t-badge,
.t-toggle:hover .t-mark,
.t-toggle:hover .t-wordmark {
  transform: scale(1.02);
  box-shadow: 0 0 32px rgba(232, 255, 0, 0.2);
}
.t-badge, .t-mark, .t-wordmark {
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .t-toggle:hover .t-badge,
  .t-toggle:hover .t-mark,
  .t-toggle:hover .t-wordmark {
    transform: none;
    box-shadow: none;
  }
  .t-badge, .t-mark, .t-wordmark { transition: none; }
}

/* Expand caret — subtle chevron that flips when open */
.t-caret {
  display: block;
  width: 18px;
  height: 18px;
  margin: 24px auto 0;
  border-right: 1.5px solid var(--yellow);
  border-bottom: 1.5px solid var(--yellow);
  transform: rotate(45deg);
  transition: transform 300ms var(--ease), opacity 200ms var(--ease);
  opacity: 0.7;
}
.t-toggle[aria-expanded="true"] .t-caret {
  transform: rotate(225deg);
  opacity: 1;
}

/* Expanded body — reveals under the head */
.t-body {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: left;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 200ms var(--ease), max-height 400ms var(--ease);
}
.t-venture.is-expanded .t-body {
  opacity: 1;
  max-height: 1400px;  /* generous cap; content rarely exceeds */
}
.t-body[hidden] { display: none; }
.t-venture.is-expanded .t-body { display: block; }

.t-artifact {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 24px;
  background: var(--teal);
  border-radius: 4px;
  overflow: hidden;
}
.t-artifact-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px dashed rgba(248, 246, 241, 0.2);
  border-radius: 4px;
}
.t-artifact-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t-insight {
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bone);
  padding: 12px 0 12px 16px;
  border-left: 3px solid var(--teal);
  margin: 0 0 20px;
}

.t-artifact-meta {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 246, 241, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .t-body { transition: none; }
  .t-caret { transition: none; }
}

/* Arrow divider pulse: apply the existing connector dot to feel alive on scroll-in */
@keyframes connector-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
.t-venture.is-visible .t-connector {
  animation: connector-pulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .t-venture.is-visible .t-connector { animation: none; }
}

/* CTA underline — animate from 0 to full width on hover */
.btn-secondary {
  position: relative;
  overflow: hidden;
}
.btn-secondary::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 10px;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms var(--ease);
}
.btn-secondary:hover::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .btn-secondary::before { transition: none; }
}

/* -------------------------------------------------------------------
   RESPONSIVE — tablet (<= 1024px)
------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --gap-section: 96px; }

  .section-inner { padding: 0 40px; }
  .hero { padding: 96px 40px 140px; }
  .hero-mark { top: 80px; right: 40px; width: 48px; height: 48px; }

  .cap-grid { column-gap: 48px; row-gap: 48px; }
  .work-list { gap: 40px 48px; }
  .site-nav { padding: 16px 40px; }
  .portfolio-hero { padding: 64px 40px 40px; }
  .portfolio-grid { gap: 24px; }

  .exp-timeline-inner { padding: 0 40px; }
  .exp-row { grid-template-columns: 80px 1fr; gap: 16px; }
  .exp-axis { margin-left: 96px; width: calc(100% - 96px); }
}

/* -------------------------------------------------------------------
   RESPONSIVE — mobile (<= 768px)
------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root { --gap-section: 80px; }

  body { font-size: 15px; }

  .section-inner { padding: 0 24px; }

  /* Mobile hero */
  .hero {
    padding: 80px 24px 120px;
    min-height: auto;
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero-mark { top: 40px; right: 24px; width: 36px; height: 36px; }

  .hero-inner .label { margin-bottom: 32px; }
  .hero .display { font-size: clamp(56px, 18vw, 96px); margin-bottom: 28px; }
  .hero-sub { font-size: 18px; margin-bottom: 40px; }
  .hero-body { font-size: 16px; }

  .scroll-indicator { bottom: 32px; }

  .section-header { margin-bottom: 56px; }
  .section-header h2 { font-size: 26px; }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card { padding: 32px 28px; }
  .card-title { font-size: 20px; }

  .cap-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
  .work-list {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .site-nav {
    padding: 14px 24px;
  }
  .site-nav-links {
    gap: 18px;
  }
  .portfolio-hero {
    padding: 48px 24px 32px;
  }
  .portfolio-card-body {
    padding: 20px 20px 24px;
  }
  .cap {
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
  }
  .cap-num { font-size: 26px; }

  /* Timeline: tighten spacing, scale wordmark */
  .experience-inner { padding: 0 20px; }
  .t-venture { padding: 64px 0; }
  .t-wordmark {
    min-height: 72px;
    line-height: 72px;
    max-width: 280px;
    font-size: clamp(32px, 9vw, 44px);
  }
  .t-wordmark-brevmont { font-size: clamp(28px, 7.5vw, 38px); }
  .t-badge { max-width: 240px; max-height: 120px; margin-bottom: 24px; }
  .t-mark { width: 20px; height: 20px; margin: 24px auto 40px; }
  .t-company { font-size: 22px; }
  .t-copy { font-size: 15px; }
  .t-connector { height: 48px; }

  .now-inner { text-align: left; }
  .cta-row-center { justify-content: flex-start; }
  .now-statement { margin-left: 0; margin-right: 0; }
  .contact { align-items: flex-start; }
  .contact-divider { margin-left: 0; margin-right: 0; }

  .footer { padding: 32px 24px 40px; }

  .btn { padding: 14px 22px; font-size: 13px; }

  /* Horizontal timeline mobile — compress, keep overlaps visible */
  .exp-timeline-inner { padding: 0 20px; }
  .exp-timeline-subhead { font-size: 18px; }
  .exp-row { grid-template-columns: 64px 1fr; gap: 12px; min-height: 14px; }
  .exp-row-label { font-size: 10px; }
  .exp-row-track { height: 14px; }
  .exp-bar { height: 14px; }
  .exp-chart-bars { gap: 12px; }
  .exp-axis { margin-left: 76px; width: calc(100% - 76px); height: 20px; }
  .exp-tick { font-size: 9px; letter-spacing: 0.06em; }
  /* Drop alternating tick labels to reduce crowding on mobile */
  .exp-tick:nth-child(even):not(.exp-tick-present) { display: none; }

  /* Expanded chapter body mobile */
  .t-body { padding: 0 4px; }
  .t-insight { font-size: 16px; }
  .t-caret { margin-top: 20px; }
}

/* -------------------------------------------------------------------
   RESPONSIVE — small mobile (<= 380px)
------------------------------------------------------------------- */
@media (max-width: 380px) {
  .section-inner { padding: 0 20px; }
  .hero { padding: 72px 20px 100px; }
  .card { padding: 28px 24px; }
  .cta-row { flex-direction: column; align-items: flex-start; width: 100%; }
  .btn { width: 100%; text-align: center; padding: 16px 20px; }
  .cta-row-center { align-items: stretch; }

  /* Timeline small-mobile: tightest spacing */
  .t-venture { padding: 48px 0; }
  .t-wordmark { max-width: 240px; font-size: 30px; min-height: 64px; line-height: 64px; }
  .t-wordmark-brevmont { font-size: 26px; }
  .t-badge { max-width: 200px; max-height: 100px; }
  .t-connector { height: 40px; }
}
