:root {
  --ink: #18231e;
  --paper: #f5f6f2;
  --white: #ffffff;
  --line: #cbd0ca;
  --muted: #5f6964;
  --acid: #d8ff68;
  --blue: #2f5cff;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: 16px; line-height: 1.6; letter-spacing: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-150%); background: var(--acid); padding: 10px 16px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 68px; padding: 10px clamp(22px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(245, 246, 242, 0.94); backdrop-filter: blur(14px); }
.brand { font-size: 1rem; font-weight: 700; }
.site-header nav { display: flex; gap: clamp(24px, 3vw, 44px); }
.site-header nav a, .header-link { font-size: 0.88rem; font-weight: 600; }
.header-link { justify-self: end; }
.site-header a:hover, .site-header a:focus-visible { color: var(--blue); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(50px, 10vw, 150px); align-items: center; max-width: var(--max); min-height: 620px; margin: 0 auto; padding: 90px clamp(24px, 5vw, 70px); }
.kicker, .section-label, .micro-label, .project-meta, .role-date { margin: 0; font-size: 0.76rem; font-weight: 700; line-height: 1.4; text-transform: uppercase; }
.kicker { color: var(--blue); }
.hero h1 { margin: 14px 0 24px; font-size: clamp(3rem, 5vw, 5rem); font-weight: 700; line-height: 0.98; letter-spacing: 0; }
.hero-statement { max-width: 780px; margin: 0 0 22px; font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 500; line-height: 1.12; }
.hero-detail { max-width: 700px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px; padding: 11px 20px; border: 1px solid transparent; font-size: 0.9rem; font-weight: 700; }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover, .button-primary:focus-visible { background: var(--blue); }
.text-link, .card-link { display: inline-flex; align-items: center; gap: 9px; border-bottom: 1px solid currentColor; font-size: 0.9rem; font-weight: 700; }
.hero-side { align-self: center; }
.hero-side img { width: 142px; height: 142px; margin-left: auto; object-fit: cover; object-position: 50% 18%; border: 6px solid #e6e6e3; border-radius: 50%; transform: scaleX(-1); }
.current-focus { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ink); }
.current-focus .micro-label { color: var(--blue); }
.current-focus p:not(.micro-label) { margin: 15px 0 0; font-size: 0.9rem; line-height: 1.45; }

.focus-band { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.focus-band > div { min-height: 195px; padding: 24px; border-right: 1px solid var(--line); }
.focus-band > div:last-child { border-right: 0; }
.focus-band span { display: block; color: var(--blue); font-size: 0.72rem; font-weight: 700; }
.focus-band strong { display: block; margin-top: 32px; font-size: 1.08rem; }
.focus-band p { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }

.section { max-width: var(--max); margin: 0 auto; padding: 110px clamp(24px, 5vw, 70px); }
.section-label { color: var(--blue); }
.section-heading { display: grid; grid-template-columns: 0.4fr 1.6fr; gap: 50px; margin-bottom: 72px; }
.section-heading h2, .about-grid h2, .contact-section h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 600; line-height: 1; letter-spacing: 0; }

.timeline { border-top: 1px solid var(--ink); }
.role { display: grid; grid-template-columns: 0.42fr 0.78fr 1.2fr; gap: clamp(26px, 5vw, 70px); padding: 46px 0; border-bottom: 1px solid var(--line); }
.role-current { background: linear-gradient(90deg, transparent 0, rgba(216,255,104,0.16) 100%); }
.role-date { color: var(--muted); }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #35a567; }
.role-title p { margin: 0 0 8px; color: var(--blue); font-size: 0.88rem; font-weight: 700; }
.role-title h3 { margin: 0; font-size: 1.45rem; line-height: 1.2; }
.role-copy > p { margin: 0 0 15px; }
.role-copy ul { margin: 0; padding-left: 18px; color: var(--muted); }
.role-copy li + li { margin-top: 7px; }
.earlier-roles { border-bottom: 1px solid var(--ink); }
.earlier-roles summary { display: flex; justify-content: space-between; padding: 22px 0; cursor: pointer; font-weight: 700; list-style: none; }
.earlier-roles summary::-webkit-details-marker { display: none; }
.earlier-roles[open] summary span { transform: rotate(45deg); }
.earlier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 16px 0 42px; }
.earlier-grid p { margin: 0; color: var(--blue); font-size: 0.8rem; font-weight: 700; }
.earlier-grid h3 { margin: 8px 0; font-size: 1.15rem; }
.earlier-grid span { color: var(--muted); }

.portfolio-section { background: var(--ink); color: var(--white); }
.portfolio-inner { max-width: var(--max); }
.portfolio-heading { grid-template-columns: 0.4fr 1fr 0.6fr; align-items: end; }
.portfolio-heading .section-label { color: var(--acid); }
.portfolio-heading > p:last-child { margin: 0; color: #bcc7c1; }
.featured-project { padding: 38px 42px; border: 1px solid #47554e; background: #202e28; }
.project-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--acid); }
.featured-summary { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 7vw, 90px); align-items: start; margin-top: 30px; }
.featured-summary h3 { max-width: 620px; margin: 0 0 18px; font-size: clamp(2rem, 3.5vw, 3.3rem); line-height: 1.05; }
.featured-summary > div > p { max-width: 620px; margin: 0; color: #c8d1cc; font-size: 1rem; }
.project-facts { border-top: 1px solid #47554e; }
.project-facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid #47554e; }
.project-facts strong { color: var(--acid); font-size: 0.75rem; text-transform: uppercase; }
.project-facts span { color: #c8d1cc; }
.project-status { display: inline-block; margin-top: 24px; padding: 7px 10px; background: var(--acid); color: var(--ink); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.project-card { display: flex; flex-direction: column; min-height: 560px; border: 1px solid #47554e; background: #202e28; transition: transform 180ms ease, border-color 180ms ease; }
.project-card:hover, .project-card:focus-visible { transform: translateY(-4px); border-color: var(--acid); }
.project-image { height: 270px; overflow: hidden; background: var(--white); }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-image.image-contain img { object-fit: contain; padding: 18px; }
.evidence-panel { display: flex; height: 270px; flex-direction: column; justify-content: space-between; padding: 28px; overflow: hidden; background: #f4f5f1; color: var(--ink); }
.evidence-panel > span { color: var(--blue); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.evidence-panel > b, .evidence-panel > strong { font-size: 1rem; }
.mini-bars { display: flex; height: 112px; align-items: end; gap: 14px; padding: 0 8px; border-bottom: 1px solid var(--ink); }
.mini-bars i { width: 100%; height: var(--h); background: var(--blue); }
.mini-bars i:nth-child(even) { background: var(--acid); border: 1px solid var(--ink); }
.funnel-row { display: grid; grid-template-columns: 1fr .78fr .5fr .28fr; align-items: center; gap: 8px; }
.funnel-row i { display: grid; min-height: 52px; place-items: center; border: 1px solid var(--ink); background: var(--white); font-size: 0.68rem; font-style: normal; font-weight: 700; }
.score-list { border-top: 1px solid var(--ink); }
.score-list i { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-style: normal; }
.score-list em { color: var(--muted); font-style: normal; }
.score-list b { color: var(--blue); }
.project-card-copy { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.project-card-copy h3 { margin: 22px 0 12px; font-size: 1.75rem; line-height: 1.15; }
.project-card-copy p { margin: 0 0 30px; color: #bcc7c1; }
.project-card-copy .card-link { margin-top: auto; align-self: flex-start; }
.more-work { margin-top: 90px; border-top: 1px solid #47554e; }
.more-work .section-label { padding: 25px 0; color: var(--acid); }
.more-work a { display: grid; grid-template-columns: 1fr auto; gap: 30px; padding: 24px 0; border-top: 1px solid #47554e; }
.more-work a span:first-child { font-size: 1.25rem; font-weight: 600; }
.more-work a span:last-child { color: #bcc7c1; font-size: 0.9rem; }
.more-work a:hover span:first-child, .more-work a:focus-visible span:first-child { color: var(--acid); }

.writing-section { max-width: var(--max); }
.writing-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(50px, 10vw, 140px); align-items: end; margin-bottom: 60px; }
.writing-heading h2 { margin: 18px 0 0; font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 600; line-height: 1; }
.writing-heading > p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.writing-grid { border-top: 1px solid var(--ink); }
.article-card { display: grid; grid-template-columns: 70px 1fr auto; gap: 34px; align-items: start; padding: 36px 0; border-bottom: 1px solid var(--line); }
.article-number { color: var(--blue); font-size: 0.8rem; font-weight: 700; }
.article-card p { margin: 0 0 10px; color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.article-card h3 { margin: 0 0 10px; font-size: 1.55rem; line-height: 1.2; }
.article-card span { color: var(--muted); }
.article-card > strong { align-self: center; border-bottom: 1px solid currentColor; font-size: 0.85rem; white-space: nowrap; }
.article-card:hover h3, .article-card:focus-visible h3 { color: var(--blue); }

.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(50px, 10vw, 150px); margin-top: 54px; }
.about-grid h2 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.about-grid div { align-self: end; color: var(--muted); font-size: 1.08rem; }
.about-grid p:first-child { margin-top: 0; }
.contact-section { padding: 100px clamp(24px, 6vw, 96px); background: var(--blue); color: var(--white); }
.contact-section .section-label { color: var(--acid); }
.contact-section h2 { max-width: var(--max); margin: 38px 0 58px; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; }
.button-light { background: var(--acid); color: var(--ink); }
.contact-links > a:not(.button) { border-bottom: 1px solid rgba(255,255,255,0.7); }
.contact-links .email-link { font-weight: 700; }
footer { display: flex; justify-content: space-between; padding: 26px clamp(24px, 6vw, 96px); background: var(--ink); color: #bcc7c1; font-size: 0.82rem; }
footer p { margin: 0; }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr 190px; gap: 38px; min-height: auto; }
  .hero-side img { width: 132px; height: 132px; }
  .focus-band { grid-template-columns: 1fr 1fr; }
  .focus-band > div:nth-child(2) { border-right: 0; }
  .focus-band > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading, .portfolio-heading { grid-template-columns: 1fr; gap: 20px; }
  .role { grid-template-columns: 0.45fr 1fr; }
  .role-copy { grid-column: 2; }
  .featured-summary { grid-template-columns: 1fr; }
  .writing-heading { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 60px; }
  .hero { display: flex; flex-direction: column-reverse; align-items: flex-start; padding-top: 52px; padding-bottom: 65px; }
  .hero-side { display: flex; width: 100%; align-items: flex-end; gap: 20px; }
  .hero-side img { width: 92px; height: 92px; margin: 0; }
  .current-focus { flex: 1; margin: 0; padding-top: 12px; }
  .current-focus p:not(.micro-label) { font-size: 0.78rem; }
  .hero h1 { font-size: 2.8rem; }
  .hero-statement { font-size: 1.55rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .focus-band { grid-template-columns: 1fr; margin: 0 24px; }
  .focus-band > div { min-height: auto; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .focus-band > div:last-child { border-bottom: 0; }
  .focus-band strong { margin-top: 12px; }
  .section { padding-top: 78px; padding-bottom: 78px; }
  .role { grid-template-columns: 1fr; gap: 12px; padding: 34px 0; }
  .role-copy { grid-column: auto; }
  .earlier-grid, .project-grid, .about-grid { grid-template-columns: 1fr; }
  .featured-project { padding: 28px 20px; }
  .project-card { min-height: auto; }
  .project-image { height: 210px; }
  .evidence-panel { height: 210px; }
  .more-work a { grid-template-columns: 1fr; gap: 5px; }
  .article-card { grid-template-columns: 42px 1fr; gap: 18px; }
  .article-card > strong { grid-column: 2; justify-self: start; }
  .about-grid { gap: 34px; }
  .contact-section h2 { font-size: 2.8rem; }
  footer { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
