:root {
  --paper: #f4f0e8;
  --paper-bright: #fffdf8;
  --ink: #102a43;
  --muted: #5b6875;
  --line: #d8d1c5;
  --blue: #155eef;
  --blue-dark: #0d3fa8;
  --orange: #ff5a1f;
  --green: #1a9c76;
  --radius: 26px;
  --shell: min(1180px, calc(100% - 48px));
  --shadow: 0 22px 60px rgba(16, 42, 67, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 42, 67, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 67, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; transform: translateY(-160%); padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.scroll-progress { position: fixed; z-index: 120; top: 0; left: 0; width: 100%; height: 3px; }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--orange); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  width: min(1240px, calc(100% - 32px));
  min-height: 68px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(216, 209, 197, 0.9);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(16, 42, 67, 0.08);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: white; background: var(--ink); font: 800 15px/1 "Manrope", sans-serif; letter-spacing: -0.04em; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font: 700 14px/1.2 "Manrope", sans-serif; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 11px 14px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 700; transition: 180ms ease; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.active { color: var(--blue); background: #edf3ff; }
.site-nav .nav-cta { margin-left: 6px; color: white; background: var(--blue); }
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible, .site-nav .nav-cta.active { color: white; background: var(--blue-dark); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 11px; background: var(--ink); cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 4px 0; background: white; transition: 180ms ease; }

.section-shell { width: var(--shell); margin-inline: auto; }
.hero { min-height: 800px; display: grid; grid-template-columns: 1.06fr 0.94fr; align-items: center; gap: clamp(42px, 7vw, 90px); padding-top: 130px; padding-bottom: 80px; }
.eyebrow, .section-number { margin: 0 0 20px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(26, 156, 118, 0.12); }
.hero h1 { max-width: 760px; margin: 0; font: 800 clamp(55px, 6.2vw, 92px)/0.95 "Manrope", sans-serif; letter-spacing: -0.065em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-intro { max-width: 650px; margin: 32px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 54px; padding: 0 21px; border: 1px solid var(--ink); border-radius: 13px; font-weight: 800; transition: 180ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16, 42, 67, 0.14); }
.button-primary { color: white; border-color: var(--blue); background: var(--blue); }
.button-secondary { background: var(--paper-bright); }
.text-link { display: inline-flex; align-items: center; gap: 9px; padding: 0 8px; color: var(--blue); font-size: 13px; font-weight: 800; border-bottom: 1px solid transparent; }
.text-link:hover, .text-link:focus-visible { border-color: var(--blue); }
.hero-visual { position: relative; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 34px; background: rgba(255, 253, 248, 0.72); box-shadow: var(--shadow); transform: rotate(1deg); }
.visual-label { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 5px 6px 18px; border-bottom: 1px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.visual-label span { color: var(--muted); }
.network-map { display: block; width: 100%; height: auto; }
.site-node text { fill: var(--ink); font: 800 13px "Manrope", sans-serif; letter-spacing: 0.08em; }
.site-node .node-small { fill: var(--muted); font-size: 9px; }
.hub-node text { fill: white; font: 700 12px "Manrope", sans-serif; letter-spacing: 0.18em; }
.hub-node .hub-large { font-size: 21px; letter-spacing: 0.03em; }
.hub-node .hub-small { font-size: 8px; opacity: 0.75; }
.map-lines path { animation: dash 12s linear infinite; }
.visual-status { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 18px; border-top: 1px solid var(--line); }
.visual-status span, .tag-row span { padding: 7px 10px; border-radius: 999px; background: #edf3ff; color: var(--blue-dark); font-size: 10px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }

.scope-band { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--ink); background: var(--ink); color: white; }
.scope-band div { min-height: 150px; display: flex; flex-direction: column; justify-content: center; padding: 24px clamp(18px, 3vw, 42px); border-right: 1px solid rgba(255,255,255,.16); }
.scope-band div:last-child { border-right: 0; }
.scope-band strong { color: #7cb0ff; font: 800 clamp(34px, 4vw, 54px)/1 "Manrope", sans-serif; letter-spacing: -0.05em; }
.scope-band span { margin-top: 10px; color: rgba(255,255,255,.7); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.about, .impact, .projects, .experience, .stack, .credentials, .contact { padding-top: 120px; padding-bottom: 120px; }
.section-heading { max-width: 880px; margin-bottom: 58px; }
.section-heading h2, .contact h2, .credential-card h2 { margin: 0; font: 750 clamp(40px, 5vw, 68px)/1.03 "Manrope", sans-serif; letter-spacing: -0.055em; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1fr .45fr; gap: 90px; align-items: end; }
.split-heading > p { margin: 0 0 8px; color: var(--muted); font-size: 17px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle-card { min-height: 430px; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-bright); }
.principle-card.featured { color: white; border-color: var(--blue); background: var(--blue); transform: translateY(28px); }
.card-index { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 50%; font-weight: 800; }
.principle-card h3 { margin: auto 0 18px; font: 750 30px/1.08 "Manrope", sans-serif; letter-spacing: -0.04em; }
.principle-card p { margin: 0 0 24px; color: var(--muted); }
.principle-card.featured p { color: rgba(255,255,255,.75); }
.principle-card ul { margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.principle-card.featured ul { border-color: rgba(255,255,255,.24); }
.principle-card li { padding: 5px 0; font-size: 13px; font-weight: 700; }
.principle-card li::before { content: "↳"; margin-right: 9px; color: var(--orange); }

.impact { width: min(1280px, calc(100% - 32px)); }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-card { min-height: 420px; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 46px); border-radius: 30px; overflow: hidden; }
.case-blue { color: white; background: var(--blue); }
.case-orange { color: var(--ink); background: #ffb08f; }
.case-ink { color: white; background: var(--ink); }
.case-paper { border: 1px solid var(--line); background: var(--paper-bright); }
.case-top { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.case-card h3 { max-width: 560px; margin: auto 0 22px; font: 750 clamp(34px, 4vw, 52px)/1 "Manrope", sans-serif; letter-spacing: -.05em; }
.case-card p { max-width: 650px; margin: 0 0 26px; opacity: .78; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.case-blue .tag-row span, .case-ink .tag-row span { color: white; background: rgba(255,255,255,.12); }
.case-orange .tag-row span { color: var(--ink); background: rgba(255,255,255,.4); }

.projects { border-top: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-bright); }
.project-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.project-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 26px;
  color: white;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.08) 48% 52%, transparent 52%),
    var(--blue);
}
.project-preview::before {
  content: "";
  position: absolute;
  inset: 22px 22px auto auto;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
}
.project-preview-orange { color: var(--ink); background-color: #ffb08f; }
.project-preview-orange::before { border-color: rgba(16,42,67,.3); }
.project-preview-ink { background-color: var(--ink); }
.project-preview > span { position: relative; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.project-preview > strong { position: relative; font: 750 clamp(23px, 2.4vw, 32px)/1.05 Manrope, sans-serif; letter-spacing: -.04em; }
.project-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-preview-image { min-height: 310px; padding: 0; background: #eef2f7; }
.project-preview-image::before { display: none; }
.project-preview-image img { object-position: center; }
.privacy-note {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  color: white;
  background: rgba(16,42,67,.8);
  box-shadow: 0 8px 24px rgba(16,42,67,.16);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.project-card-featured .project-copy { align-self: center; }
.project-copy { padding: 26px; }
.project-copy > span { color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-copy h3 { margin: 16px 0 10px; font: 750 23px/1.12 Manrope, sans-serif; letter-spacing: -.035em; }
.project-copy p { margin: 0; color: var(--muted); font-size: 14px; }

.experience { border-top: 1px solid var(--line); }
.timeline { position: relative; }
.timeline-item { display: grid; grid-template-columns: 190px 48px 1fr; gap: 26px; min-height: 250px; }
.timeline-date { padding-top: 9px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.timeline-marker { position: relative; display: flex; justify-content: center; }
.timeline-marker::after { content: ""; position: absolute; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline-item:last-child .timeline-marker::after { display: none; }
.timeline-marker span { position: relative; z-index: 1; width: 18px; height: 18px; border: 5px solid var(--paper); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.timeline-content { padding-bottom: 58px; }
.company { margin: 0 0 4px; color: var(--blue); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.timeline-content h3 { max-width: 820px; margin: 0 0 15px; font: 750 clamp(25px, 3vw, 36px)/1.1 "Manrope", sans-serif; letter-spacing: -.035em; }
.timeline-content > p:not(.company) { max-width: 810px; margin: 0; color: var(--muted); font-size: 16px; }
.detail-toggle { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.detail-toggle span { color: var(--orange); font-size: 18px; transition: transform 180ms ease; }
.detail-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.role-details { max-height: 0; margin: 0; padding: 0; list-style: disc; overflow: hidden; color: var(--muted); opacity: 0; transition: max-height 320ms ease, margin 260ms ease, opacity 220ms ease; }
.role-details.open { max-height: 280px; margin-top: 18px; opacity: 1; }
.role-details li { max-width: 760px; margin: 7px 0 7px 20px; }
.role-details li::marker { color: var(--orange); }

.stack { width: min(1280px, calc(100% - 32px)); }
.stack-board { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--ink); border-radius: 28px; overflow: hidden; background: var(--paper-bright); }
.stack-board article { min-height: 240px; padding: 34px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stack-board article:nth-child(2n) { border-right: 0; }
.stack-board article:nth-last-child(-n+2) { border-bottom: 0; }
.stack-board span { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.stack-board h3 { max-width: 530px; margin: 68px 0 0; font: 650 clamp(20px, 2.4vw, 29px)/1.3 "Manrope", sans-serif; letter-spacing: -.025em; }

.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 20px; }
.credential-card { min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-bright); }
.credential-card.accent { color: white; border-color: var(--orange); background: var(--orange); }
.credential-card.accent .section-number { color: white; opacity: .75; }
.credential-card h2 { font-size: clamp(32px, 4vw, 49px); }
.credential-card > p:last-child { margin: 22px 0 0; opacity: .75; }

.contact { width: min(1280px, calc(100% - 32px)); }
.contact-panel { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; padding: clamp(34px, 6vw, 74px); border-radius: 34px; color: white; background: var(--ink); }
.contact h2 { max-width: 620px; }
.contact-panel > div:first-child > p:last-child { max-width: 560px; margin: 28px 0 0; color: rgba(255,255,255,.68); font-size: 17px; }
.contact .section-number { color: #7cb0ff; }
.contact-actions { display: flex; flex-direction: column; justify-content: center; }
.contact-link { width: 100%; display: grid; grid-template-columns: 100px 1fr 30px; align-items: center; gap: 18px; padding: 22px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); color: white; background: transparent; text-align: left; cursor: pointer; }
.contact-link:first-child { border-top: 1px solid rgba(255,255,255,.2); }
.contact-link span { color: rgba(255,255,255,.5); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.contact-link strong { font-size: clamp(14px, 1.6vw, 19px); overflow-wrap: anywhere; }
.contact-link b { color: #7cb0ff; font-size: 21px; transition: transform 180ms ease; }
.contact-link:hover b, .contact-link:focus-visible b { transform: translate(4px, -4px); }

.site-footer { width: var(--shell); min-height: 150px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; margin: auto; border-top: 1px solid var(--line); }
.site-footer div { display: flex; flex-direction: column; }
.site-footer strong { font-family: "Manrope", sans-serif; }
.site-footer span, .site-footer p, .site-footer a { color: var(--muted); font-size: 12px; }
.site-footer a { font-weight: 800; }
.toast { position: fixed; z-index: 200; right: 20px; bottom: 20px; transform: translateY(140%); padding: 14px 18px; border-radius: 12px; color: white; background: var(--green); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; transition: transform 220ms ease; }
.toast.show { transform: translateY(0); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes dash { to { stroke-dashoffset: -180; } }

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 760px); }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-bright); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 14px; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 160px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { max-width: 680px; width: 100%; margin: 20px auto 0; transform: none; }
  .scope-band { grid-template-columns: repeat(2, 1fr); }
  .scope-band div { min-height: 128px; border-bottom: 1px solid rgba(255,255,255,.16); }
  .scope-band div:last-child { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 330px; }
  .principle-card.featured { transform: none; }
  .split-heading { grid-template-columns: 1fr; gap: 22px; }
  .case-grid, .project-grid, .credentials, .contact-panel { grid-template-columns: 1fr; }
  .project-card-featured { grid-template-columns: 1fr; }
  .project-preview-image { min-height: 0; aspect-ratio: 1904 / 825; }
  .contact-panel { gap: 48px; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 28px); }
  .site-header { top: 9px; width: calc(100% - 18px); }
  .brand-copy small { display: none; }
  .hero { gap: 38px; padding-top: 135px; padding-bottom: 58px; }
  .hero h1 { font-size: clamp(44px, 14.6vw, 66px); overflow-wrap: anywhere; }
  .hero-intro { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .text-link { align-self: flex-start; min-height: 44px; padding-inline: 0; }
  .hero-visual { padding: 14px; border-radius: 22px; }
  .visual-label { align-items: flex-start; flex-direction: column; gap: 3px; }
  .network-map { margin-block: 8px; }
  .visual-status span { font-size: 8px; }
  .scope-band { grid-template-columns: 1fr 1fr; }
  .scope-band div { padding: 22px 18px; }
  .scope-band strong { font-size: 37px; }
  .about, .impact, .projects, .experience, .stack, .credentials, .contact { padding-top: 82px; padding-bottom: 82px; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2, .contact h2 { font-size: 39px; }
  .principle-card, .case-card { min-height: 360px; padding: 26px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card h3 { font-size: 36px; }
  .timeline-item { grid-template-columns: 26px 1fr; gap: 14px; }
  .timeline-date { grid-column: 2; padding-top: 0; }
  .timeline-marker { grid-column: 1; grid-row: 1 / span 2; }
  .timeline-content { grid-column: 2; }
  .stack-board { grid-template-columns: 1fr; }
  .stack-board article, .stack-board article:nth-child(2n), .stack-board article:nth-last-child(-n+2) { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .stack-board article:last-child { border-bottom: 0; }
  .stack-board h3 { margin-top: 48px; font-size: 21px; }
  .credential-card { min-height: 290px; padding: 28px; }
  .contact { width: calc(100% - 18px); }
  .contact-panel { padding: 28px 22px; border-radius: 24px; }
  .contact-link { grid-template-columns: 74px 1fr 20px; gap: 10px; }
  .site-footer { grid-template-columns: 1fr; gap: 12px; padding-block: 36px; }
  .site-footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
