:root {
  --page: 1180px;
  --radius: 3px;
  --bg: #f3f1ed;
  --surface: #e9e6e0;
  --text: #171717;
  --muted: #66625d;
  --line: #c9c5bf;
  --accent: #e0362b;
  --accent-text: #fff;
  --header: #111;
  --header-text: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; transition: background-color .25s ease, color .25s ease; }
body.theme-builder { --bg: #0e1112; --surface: #151a18; --text: #f4f6f3; --muted: #aeb7b3; --line: #303637; --accent: #69e6a6; --accent-text: #0e1112; --header: #0a0c0d; --header-text: #f4f6f3; }
a { color: inherit; }
button, a { font: inherit; }
.page-width { width: min(var(--page), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 12px 16px; background: #fff; color: #111; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 100; min-height: 72px; background: var(--header); color: var(--header-text); border-bottom: 1px solid #353535; }
.header-inner { width: min(1380px, calc(100% - 36px)); min-height: 72px; margin: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: 13px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius); background: var(--accent); color: var(--accent-text); transition: background-color .25s ease; }
.section-nav { display: flex; justify-content: center; gap: 25px; }
.section-nav a { color: #d5d5d5; text-decoration: none; font-size: 12px; font-weight: 700; }
.section-nav a:hover, .section-nav a:focus-visible { color: #fff; }
.view-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.view-tab { min-height: 42px; padding: 0 14px; border: 1px solid #494949; border-radius: var(--radius); background: transparent; color: #cfcfcf; cursor: pointer; font-size: 12px; font-weight: 700; }
.view-tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.view-tab:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.hero { position: relative; overflow: hidden; }
.hero-grid { min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 58px; align-items: center; padding-block: 58px 46px; }
.eyebrow { margin: 0 0 18px; color: var(--text); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.executive-title, .builder-title { max-width: 800px; margin: 0; font-size: clamp(52px, 6.7vw, 94px); line-height: .94; letter-spacing: 0; }
.executive-title em { color: var(--accent); font-style: normal; }
.builder-title { display: none; }
.hero-summary { max-width: 650px; margin: 28px 0 29px; color: var(--muted); font-size: 18px; line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid var(--text); border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 14px; }
.button-primary { background: var(--text); color: var(--bg); }
.button-secondary { background: transparent; }
.skill-strip { display: none; flex-wrap: wrap; gap: 7px; margin-top: 32px; }
.skill-strip span, .tag-list span { display: inline-flex; align-items: center; min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 11px; font-weight: 700; }
.hero-visual { min-width: 0; }
.executive-portrait { min-height: 530px; display: flex; flex-direction: column; justify-content: space-between; background: #d8d4cd; border: 1px solid var(--line); }
.portrait-monogram { flex: 1; display: grid; place-items: center; color: #bbb6ad; font-size: clamp(90px, 12vw, 170px); font-weight: 900; }
.portrait-caption { display: flex; flex-direction: column; gap: 5px; padding: 20px; background: var(--accent); color: var(--accent-text); }
.portrait-caption span { font-size: 13px; }
.builder-phone { display: none; position: relative; width: 330px; aspect-ratio: .56; margin: auto; padding: 12px; border: 1px solid #525c58; border-radius: 42px; background: #191e1c; box-shadow: 26px 30px 0 var(--accent); }
.phone-speaker { position: absolute; top: 21px; left: 50%; z-index: 2; width: 70px; height: 6px; margin-left: -35px; border-radius: 10px; background: #252b29; }
.phone-screen { height: 100%; overflow: hidden; border-radius: 31px; background: #eef1ed; color: #111; }
.phone-product { height: 59%; padding: 38px 24px 24px; background: #f2ce44; }
.phone-label { font-size: 11px; font-weight: 800; }
.phone-product h2 { margin: 54px 0 14px; font-size: 36px; line-height: .98; }
.phone-product p, .phone-impact p { margin: 0; font-size: 14px; line-height: 1.45; }
.phone-impact { padding: 24px; }
.phone-impact span { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.phone-impact strong { display: block; margin: 16px 0 3px; font-size: 42px; }

.metrics { border-block: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics article { min-height: 130px; padding: 27px 24px; border-right: 1px solid var(--line); }
.metrics article:first-child { padding-left: 0; }
.metrics article:last-child { border: 0; }
.metrics strong { display: block; margin-bottom: 8px; color: var(--accent); font-size: 30px; }
.metrics span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.section { padding: 104px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: end; margin-bottom: 50px; }
.section-heading h2, .expertise-intro h2, .education-grid h2, .contact-grid h2 { max-width: 760px; margin: 0; font-size: clamp(38px, 4.5vw, 64px); line-height: 1.02; }
.section-heading > p, .expertise-intro > p, .education-grid > div > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project { min-height: 315px; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.project-featured { grid-column: 1 / -1; min-height: 390px; grid-template-columns: 48px 1fr 180px; align-items: end; background: var(--accent); color: var(--accent-text); }
.project-index { font-size: 12px; font-weight: 800; }
.project-type { margin: 0 0 20px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.project h3 { margin: 0 0 16px; font-size: 37px; line-height: 1; }
.project p { max-width: 690px; margin-top: 0; color: var(--muted); line-height: 1.65; }
.project-featured p { color: inherit; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.project-featured .tag-list span { border-color: currentColor; }
.project-result { padding-left: 25px; border-left: 1px solid currentColor; }
.project-result strong { display: block; font-size: 48px; }
.project-result span { display: block; margin-top: 5px; font-size: 12px; line-height: 1.4; }
.expertise-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 100px; }
.expertise-intro > p { margin-top: 25px; }
.capability-list { border-top: 1px solid var(--line); }
.capability-list article { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.capability-list article > span { color: var(--accent); font-size: 12px; font-weight: 800; }
.capability-list h3 { margin: 0 0 8px; font-size: 20px; }
.capability-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.timeline { border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: 170px 1fr 1.2fr; gap: 40px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--accent); font-size: 12px; font-weight: 800; }
.timeline h3 { margin: 0 0 6px; font-size: 19px; }
.timeline-role p, .timeline-summary { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.education-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: end; }
.education-grid > div > p { margin-top: 18px; }
.thesis { padding: 27px; border: 1px solid var(--line); }
.thesis span { color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.thesis p { margin: 15px 0 0; color: var(--muted); line-height: 1.65; }
.contact-section { padding: 110px 0; background: var(--accent); color: var(--accent-text); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; }
.contact-grid .eyebrow { color: inherit; }
.contact-details > a { display: inline-block; margin-bottom: 16px; font-size: clamp(21px, 3vw, 34px); font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; }
.contact-details p { margin: 0; }
.social-links { display: flex; gap: 20px; margin-top: 35px; }
.social-links a { font-size: 13px; font-weight: 800; }
.site-footer { background: var(--header); color: #ccc; }
.site-footer > div { min-height: 78px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }

body.theme-builder .hero { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 58px 58px; }
body.theme-builder .hero-grid { grid-template-columns: minmax(0, 1fr) 410px; }
body.theme-builder .executive-title, body.theme-builder .executive-portrait { display: none; }
body.theme-builder .skill-strip { display: flex; }
body.theme-builder .builder-title { display: block; }
body.theme-builder .builder-phone { display: block; }
body.theme-builder .button-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
body.theme-builder .project-featured { background: #f2ce44; color: #111; }
body.theme-builder .project-featured p { color: #292929; }
body.theme-builder .contact-section { color: #101513; }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: auto 1fr; gap: 16px; padding: 10px 0; }
  .section-nav { display: none; }
  .view-tabs { justify-self: end; }
  .hero-grid, body.theme-builder .hero-grid { grid-template-columns: 1fr 330px; gap: 35px; }
  .executive-title, .builder-title { font-size: clamp(50px, 7.5vw, 74px); }
}

@media (max-width: 760px) {
  .page-width { width: min(100% - 32px, 620px); }
  .site-header { position: relative; }
  .header-inner { width: calc(100% - 28px); grid-template-columns: 1fr; padding: 13px 0; }
  .brand { justify-content: center; }
  .view-tabs { width: 100%; justify-self: stretch; }
  .view-tab { min-width: 0; padding: 5px 8px; line-height: 1.25; }
  .hero-grid, body.theme-builder .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 42px; padding: 55px 0 50px; }
  .executive-title, .builder-title { font-size: clamp(45px, 14vw, 68px); }
  .hero-summary { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .executive-portrait { min-height: 430px; }
  .builder-phone { width: min(285px, calc(100% - 30px)); }
  .phone-product h2 { margin-top: 38px; font-size: 31px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metrics article, .metrics article:first-child { min-height: 120px; padding: 22px 16px; border-bottom: 1px solid var(--line); }
  .metrics article:nth-child(2) { border-right: 0; }
  .section { padding: 74px 0; }
  .section-heading, .expertise-grid, .education-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-heading { align-items: start; margin-bottom: 34px; }
  .section-heading h2, .expertise-intro h2, .education-grid h2, .contact-grid h2 { font-size: clamp(36px, 11vw, 52px); }
  .project-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; min-height: 480px; grid-template-columns: 36px 1fr; align-items: start; }
  .project-result { grid-column: 2; padding: 20px 0 0; border-left: 0; border-top: 1px solid currentColor; }
  .project { min-height: 280px; padding: 24px 20px; }
  .timeline article { grid-template-columns: 1fr; gap: 10px; padding: 25px 0; }
  .contact-section { padding: 78px 0; }
  .contact-details > a { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
}
