:root {
  --color-bg: #ffffff;
  --color-bg-layer: #f9fafb;
  --color-bg-dark: #171717;
  --color-bg-dark-raised: #262626;

  --color-text-primary: #171717;
  --color-text-secondary: #525252;
  --color-text-tertiary: #737373;
  --color-text-inverse: #ffffff;
  --color-text-inverse-secondary: #a3a3a3;

  --color-accent: #146ef5;
  --color-accent-hover: #0055d4;
  --color-accent-subtle: #eff6ff;
  --color-accent-border: #bfdbfe;

  --color-border: #e5e5e5;
  --color-border-strong: #d4d4d4;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 10px 20px rgba(0, 0, 0, 0.05);

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-section: 120px;

  --header-height: 72px;
  --container-max: 1100px;
  --container-margin: 24px;

  --transition-base: 200ms ease;
  --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

a { color: var(--color-text-primary); text-decoration: none; }
a:hover { color: var(--color-text-secondary); }

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .reveal { opacity: 0; transform: translateY(20px); }
.no-js .reveal, .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* CONTAINER */
.profile__container {
  width: min(100% - calc(var(--container-margin) * 2), var(--container-max));
  margin: 0 auto;
}

/* MASTHEAD */
.profile__masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.profile__masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: var(--header-height);
}
.profile__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-text-primary);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background var(--transition-base);
}
.profile__brand:hover { background: var(--color-accent); color: var(--color-bg); }
.profile__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-left: auto;
}
.profile__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-base);
  position: relative;
}
.profile__nav a:hover, .profile__nav a.is-active { color: var(--color-accent); }
.profile__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}
.profile__nav a:hover::after, .profile__nav a.is-active::after { transform: scaleX(1); }
.profile__nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-md);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
}
.profile__nav-cta:hover { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }

/* HERO */
.profile__hero { padding: 80px 0 var(--space-2xl); overflow: hidden; }
.profile__hero-grid {
  display: block;
  max-width: 80ch;
}
.profile__eyebrow {
  margin: 0 0 var(--space-md);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.profile__hero-name {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-text-primary);
}
.profile__hero-value {
  max-width: 55ch;
  margin: 0 0 var(--space-xl);
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.profile__hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.profile__metric-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}
.profile__metric-number--text { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.profile__metric-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  font-weight: 600;
}
.profile__button-row { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.profile__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  transition: all var(--transition-base);
}
.profile__button--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}
.profile__button--primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-bg); }
.profile__button--ghost { border-color: var(--color-border-strong); color: var(--color-text-primary); }
.profile__button--ghost:hover { border-color: var(--color-text-primary); }
.profile__hero-visual { display: flex; align-items: center; justify-content: center; min-height: 340px; }
.profile__avatar { width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; }
.profile__avatar-initials {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 600;
  color: var(--color-text-primary);
  background: var(--color-bg-layer);
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

/* CREDIBILITY RAIL */
.profile__credibility { padding: var(--space-xl) 0; background: var(--color-bg-layer); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.profile__credibility-label {
  margin: 0 0 var(--space-md);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}
.profile__credibility-list { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.profile__credibility-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* SECTIONS */
.profile__section { padding: var(--space-section) 0; }
.profile__section--layer { background: var(--color-bg-layer); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.profile__section--dark { background: var(--color-bg-dark); color: var(--color-text-inverse); }
.profile__section-head { margin-bottom: var(--space-xl); max-width: 60ch; }
.profile__section-head h2 { margin: var(--space-sm) 0 0; font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 600; line-height: 1.1; }
.profile__section-head--inverse h2, .profile__section-head--inverse .profile__section-index { color: var(--color-text-inverse); }
.profile__section-index, .profile__card-kicker, .profile__stat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-md);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}
.profile__section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  border-radius: 2px;
}
.profile__section-index--inverse { color: var(--color-text-inverse-secondary); }
.profile__section-index--inverse .profile__section-num { background: rgba(255,255,255,0.15); color: var(--color-text-inverse); }

/* POSITIONING */
.profile__positioning-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); gap: var(--space-2xl); align-items: start; }
.profile__editorial-block, .profile__mandate-card, .profile__proof-feature, .profile__proof-card { background: var(--color-bg); border: 1px solid var(--color-border); box-shadow: var(--shadow-card); }
.profile__editorial-block { padding: var(--space-2xl); display: grid; gap: var(--space-lg); border-top: 4px solid var(--color-text-primary); }
.profile__editorial-mark { margin: 0; font-family: var(--font-display); font-size: 24px; color: var(--color-text-tertiary); }
.profile__editorial-block h3, .profile__mandate-card h3, .profile__proof-card h3, .profile__timeline-content h3 { margin: 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.2; color: var(--color-text-primary); }
.profile__editorial-block p, .profile__mandate-card p, .profile__proof-intro p, .profile__proof-card p, .profile__proof-outcome p, .profile__timeline-content p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--color-text-secondary); }
.profile__mandate-card { padding: var(--space-2xl); }
.profile__definition-list { display: grid; gap: var(--space-md); margin: var(--space-lg) 0 0; }
.profile__definition-list div { padding-top: var(--space-sm); border-top: 1px solid var(--color-border); }
.profile__definition-list dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; color: var(--color-text-primary); }

/* PROOF */
.profile__proof-feature { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); gap: 0; margin-bottom: var(--space-xl); }
.profile__proof-intro { padding: var(--space-2xl); display: grid; gap: var(--space-lg); align-content: start; border-right: 1px solid var(--color-border); }
.profile__proof-intro h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.1; margin: 0; }
.profile__proof-sidebar { background: var(--color-bg-layer); display: grid; gap: 0; }
.profile__proof-detail { padding: var(--space-xl); border-bottom: 1px solid var(--color-border); }
.profile__proof-list { display: grid; gap: 12px; margin: 0; padding-left: 20px; color: var(--color-text-secondary); }
.profile__proof-outcomes { display: grid; gap: 0; }
.profile__proof-outcome { padding: var(--space-xl); border-bottom: 1px solid var(--color-border); }
.profile__proof-outcome:last-child { border-bottom: none; }
.profile__proof-outcome strong { display: block; margin-bottom: var(--space-xs); font-family: var(--font-display); font-size: 1.5rem; }
.profile__proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.profile__proof-card { padding: var(--space-xl); display: grid; gap: var(--space-md); align-content: start; transition: transform var(--transition-base), box-shadow var(--transition-base); }
.profile__proof-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(20,110,245,0.1); border-color: var(--color-accent-border); }
.profile__proof-tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.profile__proof-tags span {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-bg-layer);
  border: 1px solid var(--color-border);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}

/* EXPERIENCE / TIMELINE */
.profile__timeline { position: relative; padding-left: 48px; border-left: 1px solid rgba(255,255,255,0.1); margin-left: 24px; }
.profile__timeline-item { position: relative; padding: var(--space-lg) 0; }
.profile__timeline-marker { position: absolute; left: -55.5px; top: var(--space-lg); }
.profile__timeline-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--color-text-inverse); border: 3px solid var(--color-bg-dark); transition: all 0.3s; }
.profile__timeline-dot--active { background: var(--color-accent); }
.profile__timeline-year { display:none; }
.profile__timeline-content { padding: var(--space-xl); background: var(--color-bg-dark-raised); display: grid; gap: var(--space-sm); border: 1px solid rgba(255,255,255,0.05); }
.profile__timeline-content--featured { border-left: 3px solid var(--color-text-inverse); }
.profile__timeline-period { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-inverse-secondary); }
.profile__timeline-content h3 { color: var(--color-text-inverse); }
.profile__timeline-company { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-inverse-secondary); }
.profile__timeline-content p { color: #d4d4d4; }
.profile__timeline-content:hover { border-color: rgba(255,255,255,0.2); }

/* TESTIMONIALS */
.profile__testimonials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.profile__testimonial { padding: var(--space-xl); background: var(--color-bg-layer); border: 1px solid var(--color-border); }
.profile__testimonial-mark { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--color-text-tertiary); margin-bottom: -10px; }
.profile__testimonial blockquote { margin: 0 0 var(--space-lg); font-size: 16px; line-height: 1.6; font-style: italic; color: var(--color-text-secondary); }
.profile__testimonial-author strong { display: block; font-weight: 600; color: var(--color-text-primary); }
.profile__testimonial-author span { font-size: 13px; color: var(--color-text-tertiary); }

/* FOOTER */
.profile__footer { background: var(--color-bg-dark); color: var(--color-text-inverse); padding: var(--space-section) 0; }
.profile__footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: start; }
.profile__footer-copy h2 { margin: var(--space-sm) 0 var(--space-lg); font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.5rem); font-weight: 600; line-height: 1.1; }
.profile__footer-copy p { font-size: 16px; color: var(--color-text-inverse-secondary); max-width: 45ch; }
.profile__contact-block { display: grid; gap: var(--space-sm); }
.profile__contact-block a { display: inline-block; font-size: 18px; font-weight: 500; color: var(--color-text-inverse); border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 2px; width: fit-content; margin-bottom: 8px; transition: border-color var(--transition-base); }
.profile__contact-block a:hover { border-bottom-color: var(--color-text-inverse); }
.profile__contact-block p { margin-top: var(--space-md); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-inverse-secondary); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .profile__positioning-grid, .profile__proof-feature, .profile__proof-grid, .profile__testimonials-grid, .profile__footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .profile__masthead-inner { flex-wrap: wrap; }
  .profile__nav { width: 100%; justify-content: center; gap: var(--space-md); }
  .profile__hero-metrics { gap: var(--space-md); }
  .profile__section { padding: 80px 0; }
  .profile__proof-intro { border-right: none; border-bottom: 1px solid var(--color-border); }
}

/* APPROACH STEPS */
.profile__approach-intro {
  max-width: 65ch;
  margin-bottom: var(--space-3xl);
}
.profile__approach-intro p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-md);
}
.profile__approach-intro p:last-child { margin-bottom: 0; }
.profile__approach-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}
.profile__step {
  padding: var(--space-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.profile__step:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(20,110,245,0.12); }
.profile__step-icon { margin-bottom: var(--space-lg); }
.profile__step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}
.profile__step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-sm);
  line-height: 1.2;
}
.profile__step p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0;
}

/* CARD ICON */
.profile__card-icon { margin-bottom: var(--space-md); }

/* HERO OUTCOMES STRIP */
.profile__hero-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}
.profile__hero-outcome {
  padding: 0 var(--space-xl) 0 0;
}
.profile__hero-outcome + .profile__hero-outcome {
  padding: 0 var(--space-xl);
  border-left: 1px solid var(--color-border);
}
.profile__hero-outcome:last-child {
  padding-right: 0;
}
.profile__hero-outcome-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.profile__hero-outcome p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* CREDIBILITY HOVER */
.profile__credibility-list span { transition: border-color var(--transition-base); cursor: default; }
.profile__credibility-list span:hover { border-color: var(--color-accent-border); }

/* PRINT / PDF */
@media print {
  @page { margin: 15mm 20mm; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .profile__masthead { position: relative; }
  .profile__nav, .profile__nav-cta { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .profile__hero { padding: 40px 0 24px !important; }
  .profile__section { padding: 48px 0; }
  .profile__section--dark { background: #f8f8f8 !important; color: #171717 !important; }
  .profile__timeline { border-left-color: #d4d4d4 !important; }
  .profile__timeline-content { background: #f0f0f0 !important; border-color: #d4d4d4 !important; }
  .profile__timeline-content h3, .profile__timeline-company { color: #171717 !important; }
  .profile__timeline-period, .profile__timeline-content p { color: #525252 !important; }
  .profile__timeline-dot { background: #146ef5 !important; }
  .profile__footer { background: #f8f8f8 !important; color: #171717 !important; }
  .profile__footer-copy h2, .profile__footer-copy p, .profile__section-index--inverse { color: #171717 !important; }
  .profile__contact-block a { color: #146ef5 !important; border-color: #bfdbfe !important; }
  .profile__contact-block p { color: #525252 !important; }
  .profile__step, .profile__proof-card, .profile__timeline-item { break-inside: avoid; }
}

@media (max-width: 768px) {
  .profile__approach-steps { grid-template-columns: 1fr; }
  .profile__proof-grid { grid-template-columns: 1fr 1fr; }
  .profile__outcome-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .profile__outcome-item:last-child { border-bottom: none; }
  .profile__hero-outcomes { grid-template-columns: 1fr; gap: var(--space-lg); }
  .profile__hero-outcome,
  .profile__hero-outcome + .profile__hero-outcome { padding: 0; border-left: none; border-top: 1px solid var(--color-border); padding-top: var(--space-lg); }
  .profile__hero-outcome:first-child { border-top: none; padding-top: 0; }
}
@media (max-width: 600px) {
  .profile__nav { display: none; }
  .profile__masthead-inner { flex-wrap: nowrap; }
}

@media (max-width: 479px) {
  .profile__hero-metrics { grid-template-columns: 1fr; gap: var(--space-lg); }
  .profile__hero-name { font-size: 2.75rem; }
  .profile__proof-grid { grid-template-columns: 1fr; }
}
