/* Portfolio stylesheet (index.html). Was inline until Dec 2026; as a file it
   needs no CSP hash and is cached by the browser. */
/* ═══════════════════════════════════════════════════
   Ahmad Khattab - Portfolio Stylesheet
   ═══════════════════════════════════════════════════ */
/* ══ Icons: inline SVGs (Tabler outline, MIT) replaced the 840 KB Tabler icon
   webfont from jsDelivr in Dec 2026. They size with font-size like the font
   glyphs did and take their colour from the text. Kept first so any
   icon-specific rule below can override it. ══ */
.ti {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}
:root {
  --ink: #0F0F0E;
  --ink-secondary: #4A4A46;
  --ink-tertiary: #6E6E68;
  --surface: #FAFAF8;
  --surface-2: #F2F1EE;
  --rule: rgba(15,15,14,0.1);
  --accent: #1A1A18;
  --gold: #B07B2A;
  --gold-text: #8A5E1C;
  --gold-light: #F5EDD8;
  --ink-2: #4A4A46;
  --ink-3: #6E6E68;
  --blue: #177CCC;
  --blue-light: #EBF4FB;
  --red: #EF0107;
  /* motion + rule tokens (refinement pass) */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-base: 260ms;
  --t-slow: 420ms;
  --rule-strong: rgba(15,15,14,0.18);
}
/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
@keyframes countUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
@keyframes scroll-tools{
    from{transform:translateX(0)}
    to{transform:translateX(-50%)}
  }
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
/* ── Base styles ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8vw;
  height: 64px;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--rule);
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-secondary);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--ink);
}
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  padding-top: 64px;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8vw 6vw 8vw 8vw;
  border-right: 0.5px solid var(--rule);
}
.hero-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(52px, 6vw, 80px);
  line-height: 1.0;
  color: var(--ink);
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.2s;
}
.hero-name em {
  font-style: italic;
  color: var(--ink-secondary);
}
.hero-title {
  text-transform: uppercase;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.3s;
}
.hero-positioning {
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 300;
  color: var(--ink-secondary);
  max-width: 480px;
  border-left: 2px solid var(--gold);
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.4s;
}
.hero-positioning strong {
  font-weight: 500;
  color: var(--ink);
}
.hero-cta-row {
  /* every button on the site shares one width (14rem); here they sit side by side, stacking below 540px */
  display: grid;
  grid-template-columns: repeat(2, 14rem);
  gap: 1.5rem;
  width: max-content;
  max-width: 100%;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.5s;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--ink);
  color: var(--surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 14rem;
  max-width: 100%;
  justify-content: center;
}
.btn-primary:hover {
  background: #2A2A28;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0.5px solid var(--ink);
  transition: background 0.2s;
  width: 14rem;
  max-width: 100%;
  justify-content: center;
}
.arrow-icon {
  font-size: 15px;
  transition: transform 0.2s;
}
.btn-primary:hover .arrow-icon {
  transform: translateX(3px);
}
.hero-right {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.photo-frame {
  position: absolute;
  inset: 0;
  animation: fadeIn 1s ease both;
  animation-delay: 0.2s;
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: contrast(1.02);
}
.section-header {
  display: flex;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  align-items: flex-start;
  flex-direction: column;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  color: var(--ink-2);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.phil-section {
  padding: 5rem 8vw;
  margin: 0 auto;
}
.principles {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  border: 0.5px solid var(--rule);
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.1s;
}
.principle {
  padding: 2.5rem 2rem;
  border-right: 0.5px solid var(--rule);
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
  cursor: default;
}
.principle:last-child {
  border-right: none;
}
.principle:hover {
  background: var(--ink);
}
.p-num {
  font-family: 'DM Serif Display',serif;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  transition: color 0.25s;
}
.principle:hover .p-num {
  color: rgba(250,250,248,0.3);
}
.p-icon {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
  transition: color 0.25s;
}
.principle:hover .p-icon {
  color: var(--gold);
}
.p-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: color 0.25s;
}
.principle:hover .p-title {
  color: #FAFAF8;
}
.p-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-3);
  line-height: 1.65;
  transition: color 0.25s;
  margin-bottom: 0;
}
.principle:hover .p-desc {
  color: rgba(250,250,248,0.6);
}
.tools-wrap {
  margin-top: 3rem;
  padding-top: 0;
}
.tools-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.tools-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tools-track-outer {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right,transparent 0%,black 8%,black 92%,transparent 100%);
  mask-image: linear-gradient(to right,transparent 0%,black 8%,black 92%,transparent 100%);
}
.tools-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: scroll-tools 32s linear infinite;
}
.tools-track:hover {
  animation-play-state: paused;
}
.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2rem;
  border-right: 0.5px solid var(--rule);
  flex-shrink: 0;
  transition: background 0.2s;
  cursor: default;
  min-width: 110px;
}
.tool-item:hover {
  background: var(--surface-2);
}
.tool-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.tool-name {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s;
}
.tool-item:hover .tool-name {
  color: var(--ink);
}
.cs-section {
  padding: 5rem 8vw;
}
.eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.cs-card {
  border: 0.5px solid var(--rule);
  margin-bottom: -0.5px;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.4s ease forwards;
}
.cs-header {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 0;
  cursor: pointer;
  align-items: stretch;
  transition: background 0.2s;
}
.cs-number {
  display: flex;
  justify-content: center;
  border-right: 0.5px solid var(--rule);
  font-family: 'DM Serif Display', serif;
  padding: 2rem 0;
}
.cs-company {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cs-title {
  font-weight: 500;
  color: var(--ink);
}
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cs-tag {
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 0.5px solid var(--rule);
}
.cs-tag.gold {
  background: var(--gold-light);
  border-color: rgba(176,123,42,0.2);
}
.cs-toggle {
  display: flex;
  align-items: center;
  padding: 2rem 2rem;
  border-left: 0.5px solid var(--rule);
}
.toggle-icon {
  width: 32px;
  height: 32px;
  border: 0.5px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink-3);
  flex-shrink: 0;
}
.cs-card.open .toggle-icon {
  background: var(--ink);
  color: #FAFAF8;
  border-color: var(--ink);
  transform: rotate(45deg);
}
/* Collapsed only when JavaScript runs (html.js, set in <head>); without it
   every case study and role detail shows expanded. */
.js .cs-body {
  display: none;
}
.cs-body {
  border-top: 0.5px solid var(--rule);
}
.cs-card.open .cs-body {
  display: block;
}
.outcome-bar {
  background: var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.outcome-item {
  border-right: 0.5px solid rgba(255,255,255,0.07);
}
.outcome-item:last-child {
  border-right: none;
}
.outcome-num {
  font-family: 'DM Serif Display', serif;
  color: #FAFAF8;
  letter-spacing: -0.02em;
  line-height: 1;
}
.outcome-num span {
  font-size: 0.6em;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}
.outcome-label {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}
.story-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.story-label .ti {
  font-size: 14px;
}
.story-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-2);
}
.story-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.story-bullet {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.story-bullet::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
}
.cs-card:nth-child(1) {
  animation-delay: 0.05s;
}
.cs-card:nth-child(2) {
  animation-delay: 0.15s;
}
.cs-card:nth-child(3) {
  animation-delay: 0.25s;
}
.projects-section {
  padding: 5rem 8vw;
  margin: 0 auto;
}
.p-card {
  border: 0.5px solid var(--rule);
  margin-bottom: -0.5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  animation: fadeUp 0.45s ease forwards;
}
.p-left {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  overflow: hidden;
}
.p-left.dark {
  background: #0F172A;
  border-right: 0.5px solid rgba(255,255,255,0.07);
}
.p-left.dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.p-left.blue::before {
  background: var(--blue);
}
.p-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0;
}
.p-name {
  font-family: 'DM Serif Display',serif;
  font-size: clamp(24px,2.5vw,34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.dark .p-name {
  color: #FAFAF8;
}
.stat-row {
  display: flex;
  border-top: 0.5px solid rgba(255,255,255,0.07);
  margin-top: auto;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-num {
  font-family: 'DM Serif Display', serif;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #FAFAF8;
  flex-shrink: 0;
}
.dark .stat-num {
  color: #FAFAF8;
}
.stat-num span {
  font-size: 0.6em;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--gold);
}
.stat-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 300;
}
.p-right {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background: var(--surface);
}
.detail-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-label .ti {
  font-size: 14px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.feature-item {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.feature-item::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
  font-weight: 400;
}
.p-card:nth-child(2) {
  animation-delay: 0.15s;
}
.t-section {
  padding: 5rem 8vw;
  margin: 0 auto;
}
.t-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  border: 0.5px solid var(--rule);
  margin-bottom: -0.5px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
  opacity: 0;
  animation: fadeUp 0.4s ease forwards;
}
.t-card:hover {
  background: var(--surface-2);
}
.t-card::after {
  content: '“';
  position: absolute;
  right: 2rem;
  top: -0.5rem;
  font-family: 'DM Serif Display',serif;
  font-size: 220px;
  line-height: 1;
  color: var(--rule);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.t-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.5rem 1.5rem 2.5rem 2rem;
  border-right: 0.5px solid var(--rule);
  z-index: 1;
}
.t-photo-link {
  display: block;
  text-decoration: none;
}
.t-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%);
  border: 2px solid var(--rule);
  display: block;
  transition: filter 0.2s,border-color 0.2s;
}
.t-photo-link:hover .t-photo {
  filter: grayscale(0%);
  border-color: var(--gold);
}
.t-quote-col {
  padding: 2.5rem 5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}
.t-quote {
  font-family: 'DM Serif Display',serif;
  font-size: clamp(15px,1.4vw,18px);
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.t-quote strong {
  font-style: normal;
  font-weight: 400;
  background: var(--gold-light);
  padding: 0 3px;
}
.t-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 1rem;
  border-top: 0.5px solid var(--rule);
}
.t-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.t-role {
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-3);
  line-height: 1.4;
}
.t-employer {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-light);
  padding: 2px 7px;
  border: 0.5px solid rgba(176,123,42,0.2);
}
.t-card:nth-child(1) {
  animation-delay: 0.05s;
}
.t-card:nth-child(2) {
  animation-delay: 0.13s;
}
.t-card:nth-child(3) {
  animation-delay: 0.21s;
}
.t-card:nth-child(4) {
  animation-delay: 0.29s;
}
.t-card:nth-child(5) {
  animation-delay: 0.37s;
}
.page {
  padding: 5rem 8vw;
  border-top: 1px solid var(--rule);
}
.timeline {
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 220px;
  top: 0;
  bottom: 0;
  width: 0.5px;
  background: var(--rule);
}
.tl-item::after {
  content: '';
  position: absolute;
  left: 216px;
  top: 2.6rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--rule);
  z-index: 1;
  transition: background 0.2s, border-color 0.2s;
}
.tl-item:hover::after {
  background: var(--gold);
  border-color: var(--gold);
}
.tl-item:last-child .date-range {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}
.tl-role {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.tl-company {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tl-loc {
  font-size: 12px;
  color: var(--ink-3);
}
.tl-bullets {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tl-bullet {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.tl-bullet::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
  font-weight: 400;
}
.strip-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid var(--rule);
}
.edu-item {
  transition: background 0.2s;
  padding: 1.75rem 2rem;
  border-right: 0.5px solid var(--rule);
  cursor: default;
}
.edu-item:last-child {
  border-right: none;
}
.edu-school {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.edu-degree {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
.edu-note {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 0.5px solid var(--rule);
  margin-top: 0;
}
.cert-item {
  padding: 1.5rem 1.75rem;
  border-right: 0.5px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.2s;
  cursor: default;
}
.cert-item:last-child {
  border-right: none;
}
.cert-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.cert-body {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 300;
  letter-spacing: 0.03em;
}
.cert-year {
  font-size: 11px;
  color: var(--gold);
  margin-top: auto;
  padding-top: 0.4rem;
}
.tl-logo {
  display: block;
  height: 20px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.edu-logo {
  display: block;
  height: 22px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.about-section {
  padding: 5rem 8vw;
}
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  border: 0.5px solid var(--rule);
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.1s;
}
.about-left {
  padding: 3.5rem 3rem;
  border-right: 0.5px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
}
.bio-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-2);
}
.bio-body strong {
  font-weight: 500;
  color: var(--ink);
}
.about-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.interest-tile {
  padding: 1.5rem 1.75rem;
  border-right: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.2s;
}
.about-right > .interest-tile:nth-child(2n) {
  border-right: none;
}
.about-right > .interest-tile:nth-last-child(-n+2) {
  border-bottom: none;
}
.interest-tile:hover {
  background: var(--surface-2);
}
.tile-icon {
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.tile-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.tile-detail {
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-3);
  line-height: 1.5;
}
.contact-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 2rem;
}
.contact-headline em {
  font-style: italic;
  color: var(--ink-2);
}
.contact-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 420px;
  margin-bottom: 1rem;
}
.contact-body:last-of-type {
  margin-bottom: 1.25rem;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 0.5px solid var(--rule);
  max-width: 380px;
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  border-bottom: 0.5px solid var(--rule);
  transition: background 0.2s;
  gap: 1rem;
}
.contact-link:last-child {
  border-bottom: none;
}
.contact-link:hover {
  background: var(--ink);
}
.contact-link:hover .link-label {
  color: #FAFAF8;
}
.contact-link:hover .link-value {
  color: rgba(250,250,248,0.55);
}
.contact-link:hover .link-icon {
  color: var(--gold);
}
.link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.link-icon {
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
  transition: color 0.2s;
}
.link-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}
.link-value {
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-3);
  transition: color 0.2s;
}
.link-arrow {
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.2s, transform 0.2s;
}
.contact-link:hover .link-arrow {
  color: rgba(250,250,248,0.4);
  transform: translateX(3px);
}
footer {
  padding: 2rem 8vw;
  border-top: 0.5px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.contact-left > * {
  animation: fadeUp 0.5s ease both;
}
.contact-left > *:nth-child(1) {
  animation-delay: 0.05s;
}
section[id],
div[id] {
  scroll-margin-top: 64px;
}
.edu-item,
.cert-item {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}
.section-header > * {
  width: 100%;
}
.vol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 0.5px solid var(--rule);
}
.vol-item {
  padding: 1.75rem 2rem;
  border-right: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: background 0.2s;
  min-width: 0;
}
.vol-item:hover {
  background: var(--surface-2, #F2F1EE);
}
.vol-grid > .vol-item:nth-child(3n) {
  border-right: none;
}
.vol-grid > .vol-item:nth-last-child(-n+3) {
  border-bottom: none;
}
.vol-logo {
  height: 22px;
  width: auto;
  display: block;
  margin-bottom: 0.3rem;
}
.vol-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink, #0F0F0E);
}
.vol-org {
  font-size: 12px;
  font-weight: 300;
  color: var(--gold, var(--gold-text));
}
.vol-dur {
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-3, #8A8A84);
  margin-top: 0.15rem;
}
.section-sub {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 15px;
  font-weight: 300;
  color: #4A4A46;
  align-self: flex-start;
  grid-column: 1 / -1;
}
.edu-item:hover {
  background: var(--surface-2, #F2F1EE);
}
.cert-item:hover {
  background: var(--surface-2, #F2F1EE);
}
.contact-section {
  min-height: auto;
  border-top: 1px solid var(--rule);
}
.contact-left {
  padding: 5rem 8vw;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.phil-section,
.cs-section,
.projects-section,
.t-section,
.about-section {
  border-top: 1px solid var(--rule);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink, #0F0F0E);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ── Responsive ── */
@media (prefers-reduced-motion: reduce) {
  .cs-card,
  .p-card,
  .t-card,
  .tl-item,
  .about-body {
    animation: none !important;
    opacity: 1 !important;
  }
}
@media (max-width: 900px) {
  .principles {
    grid-template-columns: repeat(3,1fr);
  }
  .principle:nth-child(3) {
    border-right: none;
  }
  .principle:nth-child(4),
  .principle:nth-child(5) {
    border-top: 0.5px solid var(--rule);
  }
  .principle:nth-child(4) {
    border-right: 0.5px solid var(--rule);
  }
}
@media (max-width: 560px) {
  .principles {
    grid-template-columns: 1fr 1fr;
  }
  .principle:nth-child(2n) {
    border-right: none;
  }
  .principle {
    border-top: 0.5px solid var(--rule);
  }
  .principles .principle:first-child,
  .principles .principle:nth-child(2) {
    border-top: none;
  }
  .phil-section {
    padding: 5rem 6vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .principles {
    animation: none;
    opacity: 1;
  }
}
@media (max-width: 900px) {
  .outcome-bar {
    grid-template-columns: 1fr;
  }
  .outcome-item {
    border-right: none;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
  }
  .outcome-item:last-child {
    border-bottom: none;
  }
  .cs-header {
    grid-template-columns: 48px 1fr auto;
  }
}
@media (max-width: 600px) {
  .cs-section {
    padding: 5rem 6vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cs-card {
    animation: none;
    opacity: 1;
  }
}
@media (max-width: 900px) {
  .p-card {
    grid-template-columns: 1fr;
  }
  .p-left.dark {
    border-right: none;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
  }
  .section-header {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .projects-section {
    padding: 5rem 6vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-card {
    animation: none;
    opacity: 1;
  }
  .t-card {
    animation: none;
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .t-card {
    grid-template-columns: 80px 1fr;
  }
  .t-photo-col {
    padding: 1.5rem 1rem 1.5rem 1.5rem;
  }
  .t-photo {
    width: 52px;
    height: 52px;
  }
  .t-quote-col {
    padding: 1.5rem 2rem 1.5rem 1.5rem;
  }
  .t-section {
    padding: 5rem 6vw;
  }
  .section-header {
    grid-template-columns: 1fr;
  }
  .t-card::after {
    font-size: 140px;
    right: 0.5rem;
  }
}
@media (max-width: 900px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-item:nth-child(2n) {
    border-right: none;
  }
  .cert-item:nth-child(1),
  .cert-item:nth-child(2) {
    border-bottom: 0.5px solid var(--rule);
  }
  .edu-grid {
    grid-template-columns: 1fr;
  }
  .edu-item {
    transition: background 0.2s;
    border-right: none;
    border-bottom: 0.5px solid var(--rule);
  }
  .edu-item:last-child {
    border-bottom: none;
  }
  .about-body {
    grid-template-columns: 1fr;
  }
  .about-left {
    border-right: none;
    border-bottom: 0.5px solid var(--rule);
  }
  .section-header {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .timeline::before {
    left: 0;
  }
  .tl-item::after {
    left: -4px;
    top: 1.2rem;
  }
  .page {
    padding: 5rem 6vw;
  }
}
@media (max-width: 560px) {
  .about-right {
    grid-template-columns: 1fr;
  }
  .interest-tile {
    border-right: none;
  }
  .about-right > .interest-tile:not(:last-child) {
    border-bottom: 0.5px solid var(--rule);
  }
  .about-section {
    padding: 5rem 6vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-body {
    animation: none;
    opacity: 1;
  }
}
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-title {
    font-size: clamp(28px, 7vw, 40px);
  }
  .section-sub {
    font-size: 14px;
  }
  .hero-name {
    font-size: clamp(48px, 12vw, 80px);
  }
  .hero-positioning {
    font-size: clamp(12px, 3.7vw, 20px);
  }
  .eyebrow {
    font-size: 10px;
  }
  /* Ensure cap cards show proof on tap */
  .tools-track {
    animation-duration: 48s;
  }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }
  .hero-right {
    display: none;
  }
  .hero-left {
    border-right: none;
    padding: 4rem 6vw 3rem;
  }
}
/* ── Logo utility classes ── */
.cert-logo {
  height: 36px;
  width: auto;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}
.edu-logo-link {
  display: block;
  margin-bottom: 0.4rem;
}
.logo-link {
  display: inline-block;
}
/* ── Migrated utility classes ── */
.nav-logo-inner {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
}
.btn-linkedin {
  display: inline-flex;
  align-items: center;
}
.btn-linkedin-icon {
  margin-right: 6px;
  flex-shrink: 0;
}
.arsenal-problem {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-secondary);
  line-height: 1.65;
}
.nudge-up {
  margin-top: -0.5px;
}
.mt-1 {
  margin-top: 1rem;
}
.footer-inner {
  text-align: center;
  padding: 0.75rem 8vw 1rem;
  width: 100%;
}
.footer-legal {
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-tertiary);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}
/* ── Tap targets (mobile ≥44px) ── */
@media (max-width: 768px) {
  .nav-links a {
    line-height: 20px;
  }
  .btn-primary,
  .btn-secondary {
    min-height: 48px;
    padding: 14px 28px;
  }
  .contact-link {
    min-height: 56px;
  }
  .t-photo-link,
  .tool-item {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
/* ── Tools strip mobile ── */
/* ── Mobile navigation ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 0;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: 0 12px 24px rgba(15,15,14,0.06);
    z-index: 90;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 8vw;
    min-height: 48px;
  }
}
/* ── Case study layout variants ── */
.cs-story-stacked {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 0.5px solid var(--rule);
}
.story-block-full {
  padding: 2.5rem 2rem;
  border-right: 0.5px solid var(--rule);
}
.story-block-full:last-child {
  border-right: none;
}
.cs-story-stacked .story-bullets {
  columns: 1;
}
@media (max-width: 768px) {
  .cs-story-stacked .story-bullets {
    columns: 1;
  }
}
/* ── Product 2 single-column card ── */
/* ── Touch-active states (mobile tap = hover) ── */
.principle.touch-active {
  background: var(--ink);
}
.principle.touch-active .p-title {
  color: var(--surface);
}
.principle.touch-active .p-desc {
  color: rgba(250,250,248,0.7);
}
.principle.touch-active .p-num {
  color: rgba(250,250,248,0.4);
}
.principle.touch-active .p-icon {
  color: var(--gold);
}
.tool-item.touch-active {
  background: var(--surface-2);
}
.interest-tile.touch-active {
  background: var(--surface-2);
}
.t-card.touch-active {
  background: var(--surface-2);
}
.vol-item.touch-active {
  background: var(--surface-2);
}
.edu-item.touch-active {
  background: var(--surface-2);
}
.cert-item.touch-active {
  background: var(--surface-2);
}
/* ── Expandable Experience roles ── */
.tl-header {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  cursor: pointer;
  align-items: stretch;
  transition: background 0.2s;
}
.tl-header:hover {
  background: var(--surface-2);
}
.tl-header:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.tl-summary {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 0.2rem;
}
.js .tl-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
}
html:not(.js) .cs-toggle,
html:not(.js) .tl-expand {
  display: none;
}
.tl-item.open .tl-detail {
  max-height: 2000px;
  opacity: 1;
  margin-top: 1rem;
}
.tl-expand {
  display: flex;
  align-items: center;
  padding: 2.5rem 2rem;
  border-bottom: 0.5px solid var(--rule);
}
.tl-item.open .tl-expand .toggle-icon {
  transform: rotate(45deg);
}
.tl-expand .toggle-icon {
  transition: transform 0.3s ease;
}
@media (max-width: 768px) {
  .tl-header .tl-header .tl-expand {
    padding: 1.5rem 8vw;
  }
}
/* ── Experience timeline (clean) ── */
.tl-item {
  position: relative;
  border-bottom: 0.5px solid var(--rule);
}
.tl-item:last-child {
  border-bottom: none;
}
.tl-date {
  padding: 2.5rem 2.5rem 2.5rem 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}
.tl-date .tl-logo {
  margin-bottom: 0;
}
.tl-date .date-range {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.tl-content {
  padding: 2.5rem 0 2.5rem 3rem;
  min-width: 0;
}
@media (max-width: 768px) {
  .tl-date {
    padding: 1.5rem 0 0 8vw;
    text-align: left;
    align-items: flex-start;
  }
  .tl-content {
    padding: 0.5rem 8vw 1.5rem;
  }
}
.vol-spacer {
  height: 3rem;
}
@media (max-width: 768px) {
  .vol-spacer {
    height: 2rem;
  }
}
.edu-top-spacer {
  height: 3rem;
}
@media (max-width: 768px) {
  .edu-top-spacer {
    height: 2rem;
  }
}
.arsenal-problem {
  margin-bottom: 1.75rem;
}
.tl-item.open .tl-summary {
  display: none;
}
@media (max-width: 900px) {
  .cs-story-stacked {
    grid-template-columns: 1fr;
  }
  .story-block-full {
    border-right: none;
    border-bottom: 0.5px solid var(--rule);
  }
  .story-block-full:last-child {
    border-bottom: none;
  }
}
.edu-spacer {
  height: 1.25rem;
}
/* ══ CAREER TRAJECTORY ══ */
.traj-section {
  --surface: #FAFAF8;
  --surface-2: #F2F1EE;
  --ink: #0F0F0E;
  --ink-2: #4A4A46;
  --ink-3: #6E6E68;
  --gold: #B07B2A;
  --gold-deep: #8A5E1C;
  --gold-bright: #D99A1F;
  --gold-light: #F5EDD8;
  --espresso: #241B14;
  --navy: #16202F;
  --rule: rgba(15,15,14,.10);
  --hair: rgba(15,15,14,.07);
  --card-bd: rgba(15,15,14,.11);
  font-family: 'DM Sans',sans-serif;
  color: var(--ink);
  padding: 0 0 3rem;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow: hidden;
}
.traj-section *,
.traj-section *::before,
.traj-section *::after {
  box-sizing: border-box;
}
.traj-inner {
  position: relative;
  z-index: 1;
}
.traj-key {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 2px;
}
.traj-key span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.traj-key i.d {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid var(--gold);
  background: #FAFAF8;
}
.traj-key i.sq {
  width: 16px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
}
.traj-chart-wrap {
  position: relative;
  margin-top: 6px;
}
.traj-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.ax-line {
  stroke: rgba(15,15,14,.16);
  stroke-width: 1;
}
.ax-cap {
  font-family: 'DM Sans';
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  fill: var(--ink-3);
}
.ax-year {
  font-family: 'DM Sans';
  font-size: 12px;
  fill: var(--ink-3);
}
.chapter {
  cursor: pointer;
}
.chapter .band {
  fill: var(--espresso);
  fill-opacity: .05;
  transition: fill .25s,fill-opacity .25s;
}
.chapter:hover .band,
.chapter.touch-active .band {
  fill: var(--navy);
  fill-opacity: 1;
}
.ch-div {
  stroke: var(--rule);
  stroke-width: .5;
}
.ch-co {
  font-family: 'DM Serif Display',serif;
  fill: var(--ink);
  transition: fill .25s;
}
.ch-role {
  font-family: 'DM Sans';
  fill: var(--ink-2);
  font-weight: 400;
  transition: fill .25s,font-weight .12s;
}
.ch-yrs {
  font-family: 'DM Sans';
  fill: var(--gold-deep);
  font-weight: 500;
  letter-spacing: .03em;
  transition: fill .25s;
}
.chapter:hover .ch-co,
.chapter.touch-active .ch-co {
  fill: #FAFAF8;
}
.chapter:hover .ch-role,
.chapter.touch-active .ch-role {
  fill: #FAFAF8;
  font-weight: 500;
}
.chapter:hover .ch-yrs,
.chapter.touch-active .ch-yrs {
  fill: #EFC978;
  font-weight: 600;
  letter-spacing: .06em;
}
.chapter.pending {
  opacity: 0;
}
.spine-base {
  fill: none;
  stroke: rgba(15,15,14,.10);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.spine-lit {
  fill: none;
  stroke: url(#goldGrad);
  stroke-width: 3.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.spine-halo {
  fill: none;
  stroke: var(--gold);
  stroke-width: 8;
  opacity: .13;
  filter: url(#soft);
  stroke-linejoin: round;
}
.tip-arrow {
  fill: url(#arrowGrad);
  transition: opacity .35s;
}
.tip-arrow.glow {
  fill: var(--gold-bright);
}
.ms {
  cursor: pointer;
}
.ms .ring {
  fill: #FAFAF8;
  stroke: var(--gold);
  stroke-width: 2.2;
  transform-box: fill-box;
  transform-origin: center;
  transition: r .16s,stroke-width .16s;
}
.ms .core {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
}
.ms:hover .ring,
.ms:focus-visible .ring {
  stroke-width: 3.4;
}
.ms:hover .core {
  r: 4.4;
}
.ms:focus-visible {
  outline: none;
}
.ms.pending {
  opacity: 0;
  pointer-events: none;
}
.ms.ignited .ring {
  animation: pop .5s cubic-bezier(.34,1.56,.64,1);
}
.ms.ignited .core {
  animation: pop .5s cubic-bezier(.34,1.56,.64,1) .02s;
}
@keyframes pop{0%{transform:scale(.3)}60%{transform:scale(1.4)}100%{transform:scale(1)}}
.ms-lab {
  font-family: 'DM Sans';
  font-size: 10.5px;
  font-weight: 500;
  fill: var(--gold-deep);
  transition: fill .2s;
}
.ms:hover .ms-lab,
.ms.open .ms-lab {
  fill: var(--ink);
}
.mspop {
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(.96);
  transform-origin: center bottom;
  transition: opacity .22s cubic-bezier(.34,1.4,.64,1),transform .22s cubic-bezier(.34,1.4,.64,1);
}
.mspop.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.mspop-bg {
  fill: #fff;
  stroke: rgba(15,15,14,.12);
  stroke-width: 1;
  filter: url(#popShadow);
}
.mspop-accent {
  fill: var(--gold);
}
.mspop-t {
  font-family: 'DM Serif Display',serif;
  font-size: 14px;
  fill: var(--ink);
}
.mspop-m {
  font-family: 'DM Sans';
  font-size: 10.5px;
  fill: var(--gold-deep);
  font-weight: 500;
}
.mspop-n {
  font-family: 'DM Sans';
  font-size: 10.5px;
  fill: var(--ink-2);
}
.ms-leader {
  stroke: var(--gold);
  stroke-width: 1;
  opacity: .42;
}
.sweep {
  stroke: rgba(176,123,42,.3);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.head-orb {
  fill: #FAFAF8;
  stroke: var(--gold);
  stroke-width: 2.5;
  filter: url(#soft);
}
.head-core {
  fill: var(--gold);
}
.traj-foot {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.traj-foot .ti {
  color: var(--gold-deep);
  font-size: 15px;
}
.traj-mobile {
  display: none;
}
/* To restore the mobile fallback list instead, replace the rule above with:
   @media(max-width:900px){.traj-chart-wrap,.traj-key,.traj-foot{display:none;}.traj-mobile{display:block;}} */
@media (prefers-reduced-motion: reduce) {
  .ms.ignited .ring,
  .ms.ignited .core {
    animation: none;
  }
}
/* ── Trajectory → Experience linking ── */
.traj-section .chapter.is-linked {
  cursor: pointer;
}
.traj-section .chapter:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.tl-item.role-flash {
  background: var(--surface-2);
  transition: background .3s ease;
}
.traj-section .traj-key i.sq-phase {
  background: rgba(15,15,14,.09);
  border: .5px solid rgba(15,15,14,.16);
}
/* ══ CONTACT: ambiguity -> system diagram ══ */
.contact-section {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
}
.cv-wrap {
  border-left: 0.5px solid var(--rule);
  padding: 4rem 6vw 4rem 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  overflow: hidden;
}
.cv-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.cv-link {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1;
  opacity: 0;
  transition: stroke .5s ease;
}
.cv-link.cv-on {
  stroke: url(#cvGold);
  stroke-width: 1.4;
}
.cv-node {
  fill: var(--surface);
  stroke: var(--ink-3);
  stroke-width: 1.2;
  opacity: 0;
}
.cv-node.cv-dim {
  stroke: rgba(15,15,14,.18);
}
.cv-node.cv-fixed {
  stroke: var(--gold);
  stroke-width: 1.6;
}
.cv-con {
  stroke: var(--gold);
  stroke-width: 2;
  fill: #FFFDF7;
}
.cv-ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  opacity: 0;
}
.cv-pulse {
  fill: var(--gold);
  opacity: 0;
}
.cv-caption {
  position: relative;
  min-height: 26px;
  text-align: center;
}
.cv-caption span {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-text);
  opacity: 0;
  transition: opacity .45s ease;
  white-space: nowrap;
}
.cv-caption span.cv-show {
  opacity: 1;
}
@media (max-width: 900px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
  .cv-wrap {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cv-ring,
  .cv-pulse {
    display: none;
  }
}
/* ══════════════════════════════════════════════════════════════
   VISUAL REFINEMENT LAYER
   Type, spacing, motion and hierarchy refinements. Applied as a
   trailing layer so each change stays traceable to its reason.
   Tokens live in :root above.
   ══════════════════════════════════════════════════════════════ */
/* ── 1. MOTION SYSTEM ─────────────────────────────────────────
   Was: 18 ad-hoc transitions, none with an explicit curve, so all
   fell back to the browser default `ease`. Two shared curves and
   three durations instead. --ease-out is a soft expo used for
   anything that reveals; --ease for state changes.               */
.cs-header,
.p-card,
.t-card,
.tl-header,
.interest-tile,
.principle,
.vol-item,
.edu-item,
.cert-item,
.tool-item,
.contact-link,
.toggle-icon,
.btn-primary,
.btn-secondary,
.nav-links a,
.arrow-icon,
.link-arrow,
.t-photo,
.tl-logo,
.tool-logo {
  transition-timing-function: var(--ease);
  transition-duration: var(--t-base);
}
.btn-primary,
.btn-secondary {
  transition-property: background, color, border-color, transform;
  transition-duration: var(--t-fast);
}
.arrow-icon,
.link-arrow {
  transition-property: transform;
  transition-duration: var(--t-base);
}
/* ── 2. MICRO-LABEL SYSTEM ────────────────────────────────────
   Was: 17 distinct sizes under 30px (incl. one-offs at 9/10.5/
   12.5/14.5px) and 19 tracking values, some duplicated in two
   notations (0.04em vs .04em). All uppercase micro-labels now
   share one size and one tracking, so they read as a system.    */
.eyebrow,
.p-label,
.cs-company,
.detail-label,
.strip-label,
.stat-lbl,
.outcome-label {
  font-size: 11px;
  letter-spacing: 0.12em;
}
.cs-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
}
.stat-lbl,
.outcome-label {
  line-height: 1.45;
}
/* ── 3. HERO: strengthen the positioning line ─────────────────
   "Operator. Strategist. Builder." is the positioning statement
   but sat at 14px - quieter than a section eyebrow. Given more
   presence and pulled tighter to the name so the two read as one
   unit, with the CTA row given more air below.                  */
.hero-name {
  margin-bottom: 0.85rem;
  letter-spacing: -0.035em;
}
.hero-title {
  font-size: 15px;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--gold-text);
}
.hero-positioning {
  border-left-width: 2px;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
/* ── 4. RECURRING MOTIF ───────────────────────────────────────
   The hero positioning already carries a 2px gold rule. Echoing
   that exact rule above each section eyebrow gives the site one
   quiet signature that marks every "statement of intent" - seven
   instances, same weight, same colour. No new vocabulary.       */
.eyebrow {
  margin-bottom: 1.75rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.1rem;
}
/* ── 5. CASE STUDIES: editorial index numeral ─────────────────
   The 01/02/03 index was a 13px serif glyph - invisible as
   hierarchy. Enlarged into a light editorial numeral, the way a
   magazine numbers features. Adds weight to the section the
   brief calls out as most important, using type not decoration. */
.cs-number {
  font-size: clamp(30px, 3vw, 44px);
  color: rgba(15,15,14,0.16);
  letter-spacing: -0.02em;
  line-height: 1;
  align-items: flex-start;
  padding-top: 1.9rem;
  transition: color var(--t-base) var(--ease);
}
.cs-card.open .cs-number,
.cs-header:hover .cs-number {
  color: rgba(176,123,42,0.5);
}
.cs-meta {
  padding: 2.25rem 2.75rem 2.25rem 2.25rem;
}
.cs-title {
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.cs-company {
  margin-bottom: 0.6rem;
}
/* ── 6. METRIC HIERARCHY ──────────────────────────────────────
   Outcome numbers carry the proof, so they get more scale and
   more room; the label steps further back. Widened padding also
   stops the dark bar feeling dense.                             */
.outcome-item {
  padding: 2.25rem 2rem;
}
.outcome-num {
  font-size: clamp(30px, 3.4vw, 44px);
  margin-bottom: 0.65rem;
}
.stat-num {
  font-size: 30px;
}
.stat-row {
  padding-top: 1.75rem;
  gap: 2.5rem;
}
/* ── 7. HOVER: one restrained treatment ───────────────────────
   Hovers were background-only. Adding a border-colour shift on
   the same shared curve gives tactility with no shadow, lift or
   glow - the card firms up rather than floats.                  */
.cs-card:hover,
.p-card:hover,
.t-card:hover {
  border-color: var(--rule-strong);
}
.cs-header:hover {
  background: var(--surface-2);
}
.toggle-icon {
  transition: border-color var(--t-base) var(--ease), color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.cs-header:hover .toggle-icon,
.tl-header:hover .toggle-icon {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: transparent;
}
/* ── 8. SECTION RHYTHM ───────────────────────────────────────
   Title-to-subtitle gap was 0.4rem while eyebrow-to-title was
   2rem, so the header read as two loose fragments. Rebalanced
   into one tighter block with more air beneath it.              */
.section-title {
  letter-spacing: -0.025em;
}
.section-sub {
  margin-top: 1rem;
  line-height: 1.65;
}
.section-header {
  margin-bottom: 3.25rem;
  padding-bottom: 0;
}
/* ── 9. MOBILE HIERARCHY ─────────────────────────────────────
   The real mobile problem was width, not size: the case-study
   title had only 148px of a 390px viewport because the numeral
   column took 48px and the toggle column 96px (2rem padding
   either side of a 32px icon). Both columns tightened so the
   headline - the thing that actually sells the case study - gets
   the space. Metric bars and header rhythm also compress.       */
@media (max-width: 768px) {
  .cs-title {
    font-size: 18px;
    line-height: 1.35;
  }
  .outcome-item {
    padding: 1.5rem 1.25rem;
  }
  .outcome-num {
    font-size: 28px;
  }
  .hero-title {
    letter-spacing: 0.16em;
  }
  .hero-positioning {
    padding-left: 1.1rem;
    margin-bottom: 1.75rem;
  }
  .section-header {
    margin-bottom: 2.25rem;
  }
  .eyebrow::before {
    width: 22px;
    margin-bottom: 0.9rem;
  }
}
@media (max-width: 600px) {
  .cs-title {
    font-size: 18px;
  }
}
/* ══════════════════════════════════════════════════════════════
   MOBILE-ONLY LAYOUT FIXES
   Three defects, all scoped inside existing breakpoints so the
   desktop cascade is untouched.
   ══════════════════════════════════════════════════════════════ */
/* ── 1. PHILOSOPHY: missing vertical divider between 03 and 04 ──
   Cause: `.principle:nth-child(3){border-right:none}` lives in the
   max-width:900px (3-column) block, where child 3 really is last in
   its row. At <=560px the grid becomes 2 columns, but that rule is
   still in scope, so child 3 - now the FIRST cell of row 2 - loses
   the divider it needs. Restored at the 2-column breakpoint only.
   Child 4 stays borderless via the existing :nth-child(2n) rule, so
   the outer border is unaffected and no horizontal rule is added. */
@media (max-width: 560px) {
  .principle:nth-child(3) {
    border-right: 0.5px solid var(--rule);
  }
}
/* ── 2. CASE STUDIES: number column and divider ────────────────
   Cause: my own refinement pass. To win back title width on mobile
   I set the numeral to `justify-content:flex-start`, zero left
   padding and `border-right:none`, which pushed 01/02/03 against
   the card edge and deleted the column divider.
   Fixed at the structural level: the numeral column gets a real
   width and its divider back, and the numeral is centred within it.
   All three cards inherit this from one rule - no per-card
   positioning - and the divider spans the full header height via
   the base `align-items: stretch` on .cs-header. */
@media (max-width: 768px) {
  .cs-header {
    grid-template-columns: 46px 1fr 42px;
  }
  .cs-number {
    border-right: 0.5px solid var(--rule);
    justify-content: center;
    align-items: flex-start;
    padding: 1.4rem 0 1.4rem 0;
    font-size: 18px;
  }
  .cs-meta {
    padding: 1.35rem 0.6rem 1.5rem 0.9rem;
  }
  .cs-toggle {
    padding: 1.4rem 0.55rem 0 0;
    align-items: flex-start;
    border-left: none;
  }
}
@media (max-width: 600px) {
  .cs-number {
    padding: 1.4rem 0 1.4rem 0;
    font-size: 18px;
  }
  .cs-meta {
    padding: 1.35rem 0.6rem 1.5rem 0.9rem;
  }
}
/* ── 3. EXPERIENCE: excessive gaps between entries ─────────────
   Cause: a malformed selector. The intended mobile override was
   `.tl-header .tl-header .tl-expand` - `.tl-header` nested inside
   itself, which can never match. So .tl-expand kept its desktop
   `padding: 2.5rem 2rem` (40px/32px) on mobile. Because the mobile
   grid is only 2 columns and .tl-expand is the third child, it also
   wrapped onto its own grid row: a 96x113px block of near-empty
   space under every entry, collapsed or expanded.
   Fixed by placing the three children explicitly - date and content
   stacked in column 1, the toggle pinned top-right spanning both
   rows - which removes the phantom row entirely. Applies to every
   entry from one rule; no per-employer values, no negative margins.
   Its border-bottom is dropped because .tl-item already draws the
   row rule, and on mobile the toggle no longer spans the full row. */
@media (max-width: 768px) {
  .tl-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: start;
  }
  .tl-date {
    grid-column: 1;
    grid-row: 1;
  }
  .tl-content {
    grid-column: 1;
    grid-row: 2;
  }
  .tl-expand {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-items: flex-start;
    padding: 1.5rem 8vw 0 0.5rem;
    border-bottom: none;
  }
}
/* ══ WRITING SECTION (homepage)
   Rendered by tools/publish.py only once an article is published, so it is
   never an empty placeholder. Rows mirror the Experience timeline: a 220px
   meta column, then the content. ══ */
.writing-section {
  padding: 5rem 8vw;
  border-top: 1px solid var(--rule);
}
.wrh-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  border-top: 0.5px solid var(--rule);
}
.wrh-item {
  border-bottom: 0.5px solid var(--rule);
}
.wrh-link {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-areas: "meta title" "meta desc" "meta read";
  column-gap: 3rem;
  padding: 2rem 0;
  text-decoration: none;
  color: inherit;
}
.wrh-meta {
  grid-area: meta;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}
.wrh-title {
  grid-area: title;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.25;
  color: var(--ink);
  transition: color var(--t-base) var(--ease);
}
.wrh-desc {
  grid-area: desc;
  margin-top: 0.5rem;
  max-width: 680px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-2);
}
.wrh-read {
  grid-area: read;
  margin-top: 0.75rem;
  font-size: 12px;
  color: var(--ink-3);
}
.wrh-link:hover .wrh-title {
  color: var(--gold-text);
}
.wrh-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
@media (max-width: 768px) {
  .wrh-link {
    grid-template-columns: 1fr;
    grid-template-areas: "meta" "title" "desc" "read";
    padding: 1.6rem 0;
  }
  .wrh-meta {
    margin-bottom: 0.4rem;
  }
}
@media (max-width: 560px) {
  .writing-section {
    padding: 5rem 6vw;
  }
}
/* ══ BATCH 2: accessibility, accordions, contrast, contact, affiliation ══ */
/* hero <picture> must fill the frame like the bare <img> did */
.photo-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}
/* accordion toggles are now real buttons; strip browser button styling */
button.toggle-icon {
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  font-family: inherit;
  line-height: inherit;
}
button.toggle-icon:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.cs-header,
.tl-header {
  cursor: pointer;
}
/* contrast: every text style now meets WCAG AA (4.5:1) */
.cs-company {
  color: var(--gold-text);
}
.cs-tag.gold {
  color: var(--gold-text);
}
.outcome-label {
  color: rgba(250,250,248,0.6);
}
.dark .p-label {
  color: rgba(250,250,248,0.62);
}
.dark .stat-lbl {
  color: rgba(250,250,248,0.62);
}
.edu-note {
  color: var(--gold-text);
}
/* nav logo: 44px tap area on touch screens, layout unchanged (padding offset by margin) */
@media (max-width: 900px) {
  .nav-logo {
    padding-block: 6px;
    margin-block: -6px;
  }
}
/* Affiliations: three tiles across the full width; stacked on phones */
.aff-grid {
  grid-template-columns: repeat(3, 1fr);
}
.aff-grid .cert-item {
  border-right: 0.5px solid var(--rule);
  border-bottom: none;
}
.aff-grid .cert-item:last-child {
  border-right: none;
}
@media (max-width: 900px) {
  .aff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .aff-grid .cert-item {
    border-right: 0.5px solid var(--rule);
    border-bottom: none;
  }
  .aff-grid .cert-item:last-child {
    border-right: none;
  }
}
@media (max-width: 560px) {
  .aff-grid {
    grid-template-columns: 1fr;
  }
  .aff-grid .cert-item {
    border-right: none;
    border-bottom: 0.5px solid var(--rule);
  }
  .aff-grid .cert-item:last-child {
    border-bottom: none;
  }
}
/* "Open to" line: quieter than the paragraphs above, still readable */
.contact-open {
  /* same type as the paragraph above the buttons */
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 420px;
  margin-top: 1.25rem;
}
/* ══ SPACING SYSTEM
   One rhythm for the whole page:
     section to section ........................ 160px (80px padding either side)
     section heading to its content ............ 52px desktop, 36px mobile
     content to the next sub-heading ........... 48px desktop, 32px mobile
     sub-heading (Education, Affiliations,
     Volunteering) to its tiles ................ 20px
   Volunteering previously used its own 2rem top margin. ══ */
.vol-grid {
  margin-top: 1.25rem;
}
.tools-header {
  margin-bottom: 1.25rem;
}
@media (max-width: 768px) {
  .tools-wrap {
    margin-top: 2rem;
  }
}
/* ══ CONTRAST, COMPLETED: four styles a full-page scan found below WCAG AA ══ */
.t-employer {
  color: var(--gold-text);
}
/* 3.15:1 -> 4.86:1 */
.cert-year,
.vol-org {
  color: var(--gold-text);
}
/* 3.52:1 -> 5.43:1 */
.blue .stat-num span {
  color: #2A8BD8;
}
/* 4.07:1 -> 4.92:1 on the navy panel */
/* ══ MOBILE PORTRAIT (the anchor line became the hero credentials strip)
   The anchor line tells a recruiter role, employer and pedigree before they
   read a sentence. It groups with the tagline, so the tagline's large gap
   moves below the pair. Segments never break mid-phrase; on phones they stack.
   The portrait shows only where the desktop photo is hidden, and reuses the
   same file, so there is no extra download. ══ */
.hero-title {
  margin-bottom: 2.75rem;
}
.hero-avatar {
  display: none;
}
@media (max-width: 900px) {
  .hero-avatar {
    /* full-bleed cover portrait: the phone version of the desktop photo */
    display: block;
    position: relative;
    width: calc(100% + 12vw);
    aspect-ratio: 800 / 632;
    max-height: 460px;
    overflow: hidden;
    margin: -64px -6vw 0;
    animation: fadeIn 0.8s ease both;
  }
  .hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    display: block;
  }
  .hero-avatar::after {
    /* fade begins at the bottom of the beard (70% of the portrait); the shadow under the chin melts into it */
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(250,250,248,0) 89%, var(--surface) 100%);
  }
  .hero-name {
    /* the name overlaps only the faded strip */
    position: relative;
    margin-top: -1.75rem;
  }
}
@media (max-width: 768px) {
  .hero-title {
    margin-bottom: 2rem;
  }
}
/* ══ TYPE FLOOR: no text below 12px.
   Uppercase micro-labels move from 11px/0.12em (some tags were 10px) to
   12px/0.10em, which keeps their footprint close to before. ══ */
.eyebrow,
.strip-label,
.tools-label,
.stat-lbl,
.outcome-label,
.detail-label,
.p-label,
.cs-company,
.cs-tag,
.story-label,
.t-employer {
  font-size: 12px;
  letter-spacing: 0.1em;
}
.tool-name,
.cert-body,
.cert-year,
.vol-dur,
.t-role,
.p-num,
.edu-note,
.footer-legal {
  font-size: 12px;
}
/* ══ TRAJECTORY ON PHONES
   Below 900px the chart turns vertical: time runs down the page, the gold
   spine brightens as it goes and ends in an arrow, milestones sit on the
   spine at their real point in time, and each company is a phase band with
   its three headline metrics. Built by script from the same data as the
   desktop chart. Draws in once when scrolled into view. ══ */
@media (max-width: 900px) {
  .traj-chart-wrap,
  .traj-foot {
    display: none;
  }
  .traj-mobile {
    display: block;
    margin-top: 1.25rem;
  }
}
.tm {
  list-style: none;
  margin: 0;
  padding: 0 0 18px;
  position: relative;
}
.tm::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 15px;
  top: 8px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(to bottom, #9A6A22, var(--gold) 55%, #D89A2C);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.4s linear;
}
.tm::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 10px;
  bottom: 4px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 11px solid #D89A2C;
  opacity: 0;
  transition: opacity 0.3s ease 1.35s;
}
.traj-mobile.tm-on .tm::before {
  transform: scaleY(1);
}
.traj-mobile.tm-on .tm::after {
  opacity: 1;
}
.tm-ms {
  position: relative;
  padding: 0.55rem 0 0.55rem 44px;
}
.tm-dot {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 0.8rem;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2.2px solid var(--gold);
  background: var(--surface);
  transform: scale(0);
  transition: transform 0.35s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.tm-dot::after {
  content: '';
  position: absolute;
  inset: 2.2px;
  border-radius: 50%;
  background: var(--gold);
}
.traj-mobile.tm-on .tm-dot {
  transform: scale(1);
}
.tm-ms-t {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.tm-ms-m {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-tertiary);
}
.tm-ch {
  position: relative;
  margin: 0.5rem 0;
  padding: 1.25rem 1rem 1.25rem 44px;
  background: var(--surface-2);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.traj-mobile.tm-on .tm-ch {
  opacity: 1;
}
.tm-ch .tm-ms {
  padding-left: 0;
}
.tm-ch .tm-dot {
  left: -34px;
}
.tm-ch > .tm-ms:first-child {
  margin-bottom: 0.6rem;
}
.tm-ch .tm-case + .tm-ms,
.tm-ch .tm-metrics + .tm-ms {
  margin-top: 0.75rem;
}
.tm-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.tm-co {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
}
.tm-yr {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  white-space: nowrap;
}
.tm-role {
  margin: 0.2rem 0 0.9rem;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-secondary);
}
.tm-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 0.5px solid var(--rule-strong);
}
.tm-v {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  line-height: 1.15;
  color: var(--ink);
}
.tm-l {
  display: block;
  margin-top: 0.3rem;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-tertiary);
}
.tm-case {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 1rem;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  text-decoration: none;
}
.tm-case span {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.tm-case .ti {
  flex: none;
  font-size: 12px;
  color: var(--gold);
}
/* a metric value never breaks mid-figure; very narrow phones get a touch more room */
.tm-v {
  white-space: nowrap;
}
@media (max-width: 360px) {
  .tm-ch {
    padding-right: 0.75rem;
  }
  .tm-metrics {
    gap: 0.5rem;
  }
  .tm-v {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tm::before,
  .tm::after,
  .tm-dot,
  .tm-ch {
    transition: none;
  }
}
/* ══ HERO CREDENTIALS STRIP
   Currently / Previously / Based in, between the statement and the buttons,
   so the tagline and statement stay together. Entries sit on one line where
   the hero is wide enough, wrap on laptops, and stack on phones. ══ */
.hero-strip {
  display: flex;
  margin: 0 0 2.5rem;
  border-top: 0.5px solid var(--rule-strong);
  border-bottom: 0.5px solid var(--rule-strong);
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.45s;
}
.hero-strip > div {
  padding: 0.8rem 1.25rem 0.8rem 0;
  margin-right: 1.25rem;
  border-right: 0.5px solid var(--rule);
}
.hero-strip > div:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.hero-strip > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
/* only the title wraps when space is tight */
.hero-strip > div:not(:first-child) {
  flex: none;
}
.hero-strip > div:not(:first-child) dd {
  white-space: nowrap;
}
.hero-strip dt {
  margin: 0 0 0.3rem;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.hero-strip dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.hero-strip dd strong {
  font-weight: 500;
}
@media (min-width: 1400px) {
  .hero-strip dd {
    white-space: nowrap;
  }
}
@media (max-width: 768px) {
  .hero-strip {
    margin-bottom: 2rem;
  }
}
/* stacked rows on phones, and on narrow laptops where the hero column is tight */
@media (max-width: 560px), (min-width: 901px) and (max-width: 1199px) {
  .hero-strip {
    display: block;
  }
  .hero-strip > div {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.6rem 0;
    margin: 0;
    border-right: none;
    border-bottom: 0.5px solid var(--rule);
  }
  .hero-strip > div:last-child {
    border-bottom: none;
  }
  .hero-strip dt {
    margin: 0;
  }
}
@media (max-width: 340px) {
  /* Galaxy Z Fold cover screen (280px): the name fits without sideways scrolling */
  .hero-name {
    font-size: 44px;
  }
  .hero-strip > div {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .hero-strip > div:not(:first-child) dd {
    white-space: normal;
  }
}
/* visitors who ask for reduced motion get the hero immediately, without the entrance fade */
@media (prefers-reduced-motion: reduce) {
  .hero-left > *,
  .hero-avatar,
  .photo-frame {
    animation: none;
  }
}
@media (max-width: 540px) {
  .hero-cta-row {
    /* phones: both buttons share one line, each half the row */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
    width: 100%;
  }
}
@media (min-width: 561px) and (max-width: 900px) {
  .hero-avatar {
    /* explicit height: on tablets the frame must not size itself from the image */
    height: min(69.5vw, 411px);
    aspect-ratio: auto;
    min-width: 0;
  }
  .hero-avatar img {
    /* tablets: a full-width crop would make the face enormous, so centre it and soften the sides */
    width: auto;
    height: calc(100% / 0.79);
    aspect-ratio: 1;
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
  }
}
@media (max-width: 540px) {
  .btn-primary,
  .btn-secondary {
    /* every homepage button matches the half-row width on phones */
    width: min(14rem, calc((88vw - 0.625rem) / 2));
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }
}
@media (max-width: 339px) {
  .btn-primary .arrow-icon {
    /* only the very narrowest phones drop the arrow; the buttons never stack */
    display: none;
  }
}
/* ══ ONE TIMELINE ON PHONES
   Below 900px the timeline is the single record of degrees, certifications
   and roles: each company band holds its full role details, so the separate
   role list, degree grid and certification grid are hidden here. Only
   affiliations and volunteering follow. Desktop is unchanged. ══ */
@media (max-width: 900px) {
  /* roles, degrees and certifications all live in the timeline above */
  .timeline,
  .edu-top-spacer,
  .strip-edu,
  .strip-edu + .edu-spacer,
  .edu-grid,
  .cert-grid.nudge-up {
    display: none;
  }
  .traj-section {
    padding-bottom: 0;
  }
  /* it used to sit above the role list; now the next heading follows */
}
.tm-ms-n {
  display: block;
  margin-top: 0.15rem;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gold-text);
}
.tm-more {
  margin-top: 1rem;
  border-top: 0.5px solid var(--rule);
}
.tm-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.tm-more summary::-webkit-details-marker {
  display: none;
}
.tm-more summary::after {
  content: '+';
  font-size: 20px;
  line-height: 1;
  transition: transform var(--t-base) var(--ease);
}
.tm-more[open] summary::after {
  transform: rotate(45deg);
}
.tm-more summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.tm-sum {
  margin: 0.1rem 0 0.75rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.tm-bullets {
  list-style: none;
  margin: 0 0 0.25rem;
  padding: 0;
}
.tm-bullets li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-secondary);
}
.tm-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1.5px;
  background: var(--gold);
}
@media (prefers-reduced-motion: reduce) {
  .tm-more summary::after {
    transition: none;
  }
}
/* ══ LOGOS: one treatment everywhere
   Full colour at 75% strength; full strength when its tile is hovered or
   holds keyboard focus. Replaces five separate fades and a greyscale. ══ */
.tl-logo, .edu-logo, .cert-logo, .vol-logo, .tool-logo {
  filter: opacity(0.75);
  transition: filter var(--t-base) var(--ease);
}
.tl-item:hover .tl-logo, .tl-item:focus-within .tl-logo,
.edu-item:hover .edu-logo, .edu-item:focus-within .edu-logo,
.cert-item:hover .cert-logo, .cert-item:focus-within .cert-logo,
.vol-item:hover .vol-logo, .vol-item:focus-within .vol-logo,
.tool-item:hover .tool-logo { filter: opacity(1); }
@media (prefers-reduced-motion: reduce) {
  .tl-logo, .edu-logo, .cert-logo, .vol-logo, .tool-logo { transition: none; }
}
/* ══ TESTIMONIAL PHOTO FALLBACK: initials in a gold circle while a photo is missing ══ */
.t-photo-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-light); color: var(--gold-text);
  font-family: 'DM Serif Display', serif; font-size: 24px; letter-spacing: 0.02em;
}
@media (max-width: 768px) { .t-photo-fallback { font-size: 18px; } }
/* ══ Built Products stat rows: wrap instead of clipping.
   On phones the three stats were wider than the card, and the card hides
   overflow, so the third stat was cut off ("100% AUTOMA..."). ══ */
.stat-row {
  flex-wrap: wrap;
  row-gap: 1.5rem;
}
.stat {
  min-width: 0;
}
