@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --paper: #f6f5f0;
  --paper-alt: #eeede7;
  --ink: #19221f;
  --ink-soft: #555f59;
  --muted: #8a928b;
  --line: #d9dbd2;
  --accent: #c7472b;
  --accent-dark: #9c311d;
  --green: #587d68;
  --card: #fffefa;
  --night: #19221f;
  --night-soft: #222c27;
  --light-ink: #f6f5f0;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Manrope", var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171d1a;
  --paper-alt: #202723;
  --ink: #f3f1e9;
  --ink-soft: #b6beb7;
  --muted: #929b93;
  --line: #39433d;
  --accent: #e27a5e;
  --accent-dark: #ff9a7e;
  --green: #9db8a4;
  --card: #202723;
  --night: #101512;
  --night-soft: #202723;
  --light-ink: #f6f5f0;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: #fff; background: var(--accent); }
.skip-link { position: absolute; z-index: 20; top: -60px; left: 16px; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
.section-shell { width: min(1152px, calc(100% - 96px)); margin-inline: auto; }
.section-pad { padding-block: 120px; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(48px, calc((100vw - 1152px) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.brand-icon { display: block; width: 40px; height: 40px; flex: 0 0 auto; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.7vw, 36px); }
.primary-nav > a:not(.nav-contact) { color: var(--ink-soft); font-size: 12px; transition: color .2s ease; }
.primary-nav > a:hover { color: var(--accent); }
.nav-contact { padding: 9px 13px; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; font-weight: 600; }
.nav-contact span, .contact-links span { margin-left: 5px; color: var(--accent); }
.theme-toggle, .menu-toggle { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.moon-icon, [data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }
.menu-toggle { display: none; }

.hero { position: relative; display: grid; min-height: 690px; grid-template-columns: 1.04fr .96fr; align-items: center; padding-top: 45px; padding-bottom: 102px; }
.hero-copy { position: relative; z-index: 2; max-width: 590px; padding-bottom: 12px; }
.eyebrow { margin: 0 0 19px; color: var(--green); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #71a179; box-shadow: 0 0 0 4px color-mix(in srgb, #71a179 15%, transparent); }
.eyebrow-divider { color: var(--line); }
h1, h2, h3, h4, p { margin-top: 0; }
.hero h1 { max-width: 660px; margin-bottom: 22px; font-family: var(--display); font-size: clamp(48px, 6vw, 76px); font-weight: 600; letter-spacing: -.075em; line-height: 1.08; }
.text-accent { color: var(--accent); }
.hero-summary { max-width: 480px; margin-bottom: 31px; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 20px; padding: 0 18px; border: 1px solid transparent; border-radius: 2px; font-size: 12px; font-weight: 600; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--accent-dark); }
.button-primary span { font-size: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; font-weight: 600; }
.text-link span { color: var(--accent); font-size: 15px; }
.hero-note { display: flex; align-items: flex-start; gap: 13px; margin-top: 64px; }
.note-line { width: 27px; height: 1px; margin-top: 11px; background: var(--accent); }
.hero-note p { color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.hero-note strong { color: var(--ink); font-weight: 600; }
.hero-art { position: relative; width: min(100%, 480px); aspect-ratio: 1; justify-self: end; overflow: hidden; background: var(--paper-alt); }
.hero-art picture, .hero-robot { display: block; width: 100%; }
.hero-robot { height: auto; }
.animation-toggle { position: absolute; right: 12px; bottom: 12px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 12px; }
.animation-toggle[hidden] { display: none; }
.scroll-cue { position: absolute; bottom: 35px; left: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.scroll-cue span { width: 28px; height: 1px; background: var(--line); }

.section-heading { margin-bottom: 51px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading > .eyebrow, .section-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
}
.section-index {
  display: inline-grid;
  width: 28px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}
.section-heading h2 { margin-bottom: 0; font-family: var(--display); font-size: clamp(35px, 4vw, 51px); font-weight: 600; letter-spacing: -.065em; line-height: 1.16; }
.text-muted { color: var(--muted); }
.heading-inline { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.heading-aside { max-width: 300px; margin-bottom: 5px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.about { display: grid; grid-template-columns: .92fr 1.08fr; gap: 8.3%; padding-top: 112px; padding-bottom: 116px; border-top: 1px solid var(--line); }
.about .section-heading { margin-bottom: 0; }
.about-photo { display: block; width: 200px; height: 200px; margin-top: 36px; border: 1px solid var(--line); border-radius: 4px; object-fit: cover; }
.about-content { max-width: 550px; padding-top: 38px; }
.about-content p { margin-bottom: 17px; color: var(--ink-soft); font-size: 13px; line-height: 1.9; }
.about-content .about-lead { color: var(--ink); font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -.04em; line-height: 1.55; }
.about-meta { display: flex; flex-wrap: wrap; gap: 12px 25px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.about-meta span { color: var(--ink); font-size: 11px; font-weight: 600; }
.about-meta i { display: block; margin-bottom: 3px; color: var(--muted); font-family: var(--mono); font-size: 9px; font-style: normal; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }

.experience { background: var(--paper-alt); }
.experience .section-shell { max-width: 1010px; }
.experience .section-heading { margin-bottom: 64px; }
.timeline { position: relative; }
.timeline::before { position: absolute; top: 7px; bottom: 22px; left: 164px; width: 1px; background: var(--line); content: ""; }
.timeline-item { display: grid; grid-template-columns: 165px 1fr; gap: 39px; padding-bottom: 23px; }
.timeline-date { position: relative; padding-top: 26px; color: var(--ink-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.timeline-date i { position: absolute; top: 30px; right: -5px; width: 10px; height: 10px; border: 2px solid var(--paper-alt); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.timeline-card { padding: 24px 29px 21px; border: 1px solid var(--line); background: var(--card); transition: border-color .2s ease, box-shadow .2s ease; }
.timeline-item.is-open .timeline-card { border-color: color-mix(in srgb, var(--green) 48%, var(--line)); }
.timeline-topline { display: flex; justify-content: space-between; gap: 12px; }
.company-kicker, .timeline-location { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.map-pin::before {
  display: inline-block;
  width: .95em;
  height: .95em;
  margin-right: .3em;
  background: var(--accent);
  content: "";
  vertical-align: -.1em;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7Zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7Zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.timeline-card h3 { margin: 13px 0 2px; font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.05em; }
.role-summary { margin: 0; color: var(--ink-soft); font-size: 12px; }
.role-years { color: var(--muted); font-size: 10px; }
.details-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 20px; padding: 13px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 600; text-align: left; }
.toggle-icon { color: var(--accent); font-size: 17px; font-weight: 400; }
.timeline-details { padding-top: 20px; }
.timeline-details[hidden] { display: none; }
.timeline-details > p { max-width: 620px; margin-bottom: 14px; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.role-entry { display: grid; grid-template-columns: 145px 1fr; gap: 18px; padding-bottom: 18px; }
.role-entry + .role-entry { padding-top: 16px; border-top: 1px solid var(--line); }
.role-entry .role-years { padding-top: 3px; font-family: var(--mono); font-size: 9px; }
.role-entry h4 { margin: 0 0 5px; font-size: 12px; font-weight: 600; }
.role-entry p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 4px; }
.tech-tags span { padding: 4px 8px; border: 1px solid var(--line); color: var(--ink-soft); font-family: var(--mono); font-size: 8px; letter-spacing: .04em; }

.expertise { padding-top: 119px; padding-bottom: 120px; }
.expertise .section-heading { margin-bottom: 39px; }
.skill-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 35px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 10px; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.filter-chip span { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.filter-chip.is-active span { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: skill; }
.skill-card { position: relative; min-height: 225px; padding: 23px; border: 1px solid var(--line); background: var(--card); counter-increment: skill; transition: transform .2s ease, border-color .2s ease, opacity .2s ease; }
.skill-card:hover { transform: translateY(-3px); border-color: var(--green); }
.skill-card[hidden] { display: none; }
.skill-number { position: absolute; top: 23px; left: 23px; color: var(--muted); font-family: var(--mono); font-size: 9px; }
/* Hidden (filtered-out) cards do not advance the counter, so visible cards always read 01, 02, ... */
.skill-number::before { content: counter(skill, decimal-leading-zero); }
.skill-symbol { display: grid; width: 37px; height: 37px; margin: 0 0 20px auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-family: var(--mono); font-size: 16px; }
/* Skill icons: set data-icon on .skill-symbol (architecture, security, backend, web, database, search, content, edge, delivery, team). */
.skill-symbol:empty::before { width: 18px; height: 18px; background: currentColor; content: ""; -webkit-mask: var(--skill-icon) center / contain no-repeat; mask: var(--skill-icon) center / contain no-repeat; }
.skill-symbol { --skill-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M4 12h16M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E"); }
.skill-symbol[data-icon="architecture"] { --skill-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='5' rx='1'/%3E%3Crect x='3' y='16' width='6' height='5' rx='1'/%3E%3Crect x='15' y='16' width='6' height='5' rx='1'/%3E%3Cpath d='M12 8v4M6 16v-4h12v4'/%3E%3C/svg%3E"); }
.skill-symbol[data-icon="security"] { --skill-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8-7 10-4-2-7-5.5-7-10V6z'/%3E%3Cpath d='M9 12l2.2 2.2 4-4.2'/%3E%3C/svg%3E"); }
.skill-symbol[data-icon="backend"] { --skill-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='6' rx='1.5'/%3E%3Crect x='4' y='14' width='16' height='6' rx='1.5'/%3E%3Cpath d='M8 7h.01M8 17h.01M12 10v4'/%3E%3C/svg%3E"); }
.skill-symbol[data-icon="web"] { --skill-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18M10 12.5l-2 2 2 2M14 12.5l2 2-2 2'/%3E%3C/svg%3E"); }
.skill-symbol[data-icon="database"] { --skill-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='6' rx='7' ry='3'/%3E%3Cpath d='M5 6v12c0 1.7 3.1 3 7 3s7-1.3 7-3V6M5 12c0 1.7 3.1 3 7 3s7-1.3 7-3'/%3E%3C/svg%3E"); }
.skill-symbol[data-icon="search"] { --skill-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5'/%3E%3C/svg%3E"); }
.skill-symbol[data-icon="content"] { --skill-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M15 3v4h4M9 12h7M9 16h7'/%3E%3C/svg%3E"); }
.skill-symbol[data-icon="edge"] { --skill-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='3.8' ry='9'/%3E%3Cpath d='M3 12h18'/%3E%3C/svg%3E"); }
.skill-symbol[data-icon="delivery"] { --skill-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 0 1 14.3-4.93M20 12a8 8 0 0 1-14.3 4.93'/%3E%3Cpath d='M18.5 3.2v4h-4M5.5 20.8v-4h4'/%3E%3C/svg%3E"); }
.skill-symbol[data-icon="team"] { --skill-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M6.5 20a5.5 5.5 0 0 1 11 0'/%3E%3Ccircle cx='5' cy='10.5' r='2'/%3E%3Cpath d='M2 18a3.5 3.5 0 0 1 3.5-3.5'/%3E%3Ccircle cx='19' cy='10.5' r='2'/%3E%3Cpath d='M22 18a3.5 3.5 0 0 0-3.5-3.5'/%3E%3C/svg%3E"); }
.skill-card h3 { margin-bottom: 7px; font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.035em; }
.skill-card p { margin-bottom: 19px; color: var(--ink-soft); font-size: 11px; line-height: 1.75; }
.skill-card p:not(:last-of-type) { margin-bottom: 8px; }
.skill-card p strong { color: var(--ink); font-weight: 600; }
.skill-category { color: var(--green); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.skills-footnote { margin: 18px 0 0; color: var(--muted); font-size: 10px; }

.credentials { background: var(--paper-alt); }
.credentials .section-heading { margin-bottom: 46px; }
.credentials-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; }
.subheading { margin: 0 0 14px; font-family: var(--display); font-size: 15px; font-weight: 600; }
.credential-row { display: grid; min-height: 67px; grid-template-columns: 62px 1fr 20px; align-items: center; gap: 10px; border-top: 1px solid var(--line); transition: color .2s ease; }
.credential-row:last-child { border-bottom: 1px solid var(--line); }
.credential-row:hover { color: var(--accent); }
.credential-year { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.credential-row strong, .credential-row small { display: block; }
.credential-row strong { font-size: 11px; font-weight: 600; }
.credential-row small { margin-top: 3px; color: var(--ink-soft); font-size: 10px; }
.credential-arrow { color: var(--accent); font-size: 15px; }
.education-card { position: relative; align-self: start; padding: 25px 24px; border: 1px solid var(--line); background: var(--card); }
.education-mark { position: absolute; top: 20px; right: 20px; color: var(--line); font-family: var(--display); font-size: 34px; font-weight: 700; }
.education-card .eyebrow { margin-bottom: 8px; font-size: 8px; }
.education-brand { display: flex; align-items: center; gap: 12px; }
.education-brand img { display: block; width: 56px; height: 56px; flex: 0 0 auto; padding: 4px; border: 1px solid var(--line); border-radius: 4px; background: #fff; object-fit: contain; }
.education-brand span { min-width: 0; }
.prayas-brand { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 4px; font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.04em; }
.prayas-brand img { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; object-fit: cover; }
.prayas-full-name { max-width: 220px; }
.education-card h3 { max-width: 250px; margin-bottom: 5px; font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.04em; line-height: 1.45; }
.education-card p:not(.eyebrow) { margin-bottom: 16px; color: var(--ink-soft); font-size: 10px; line-height: 1.75; }
.card-rule { height: 1px; margin: 22px 0; background: var(--line); }
.volunteer-years { display: inline-block; padding: 5px 8px; background: var(--paper-alt); color: var(--green); font-family: var(--mono); font-size: 8px; letter-spacing: .05em; }
.recommendations { display: grid; grid-template-columns: 160px 1fr; align-items: start; gap: 14px 35px; margin-top: 96px; padding-top: 28px; border-top: 1px solid var(--line); }
.recommendations > .eyebrow { margin: 5px 0 0; }
.recommendation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.recommendation-grid blockquote { margin: 0; }
.recommendation-grid blockquote p { max-width: 390px; margin-bottom: 12px; font-family: var(--display); font-size: 16px; font-weight: 500; letter-spacing: -.035em; line-height: 1.6; }
.recommendation-grid cite { color: var(--muted); font-family: var(--mono); font-size: 8px; font-style: normal; letter-spacing: .07em; text-transform: uppercase; }
.recommendations > .text-link { grid-column: 2; margin-top: 7px; font-size: 10px; }

.contact { position: relative; isolation: isolate; display: flex; min-height: 420px; align-items: center; justify-content: space-between; overflow: hidden; padding-block: 78px; color: var(--light-ink); }
.contact::before { position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; background: var(--night); content: ""; transform: translateX(-50%); }
.contact-orb { position: absolute; z-index: -1; top: 50%; right: -23px; width: 360px; aspect-ratio: 1; border: 1px solid #3c4941; border-radius: 50%; transform: translateY(-50%); }
.contact-orb::before, .contact-orb::after { position: absolute; inset: 35px; border: 1px solid #3c4941; border-radius: 50%; content: ""; }
.contact-orb::after { inset: 80px; border-color: #9d4534; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent), transparent 68%); }
.contact-content { position: relative; z-index: 1; max-width: 590px; }
.contact .eyebrow { color: #a9b5aa; }
.contact h2 { margin-bottom: 16px; font-family: var(--display); font-size: clamp(42px, 5vw, 61px); font-weight: 600; letter-spacing: -.07em; line-height: 1.1; }
.contact h2 span { color: #e27a5e; }
.contact-content > p:not(.eyebrow) { max-width: 440px; margin-bottom: 22px; color: #c1c8c0; font-size: 12px; line-height: 1.8; }
.button-light { background: var(--paper); color: var(--night); }
.button-light:hover { background: #fff; }
.contact-links { position: relative; z-index: 1; display: grid; min-width: 135px; gap: 16px; padding-right: 17px; }
.contact-links a { display: flex; justify-content: space-between; border-bottom: 1px solid #465048; padding-bottom: 9px; color: #d5d9d4; font-size: 10px; }
.contact-links a:hover { color: #fff; }
.contact-links span { color: #e27a5e; }
.site-footer { display: flex; min-height: 90px; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer p, .site-footer > span { margin: 0; color: var(--muted); font-size: 9px; }
.site-footer .brand { font-size: 11px; }
.site-footer .brand-icon { width: 36px; height: 36px; }
.visitor-counter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.visitor-counter a { display: flex; align-items: center; }
.visitor-counter img { display: block; width: 108px; height: 22px; object-fit: contain; }
.back-top { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }

.js-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js-ready .reveal.is-visible { opacity: 1; padding: 30px; transform: translateY(0); }

@media (max-width: 900px) {
  .section-shell { width: min(100% - 56px, 740px); }
  .site-header { padding-inline: 28px; }
  .primary-nav { gap: 17px; }
  .primary-nav > a:not(.nav-contact) { font-size: 12px; }
  .hero { min-height: 610px; grid-template-columns: 1.05fr .95fr; }
  .hero-art { width: 100%; }
  .hero h1 { font-size: clamp(48px, 7vw, 66px); }
  .timeline::before { left: 122px; }
  .timeline-item { grid-template-columns: 123px 1fr; gap: 27px; }
  .credentials-layout { gap: 35px; }
  .recommendations { grid-template-columns: 120px 1fr; gap: 14px 25px; }
  .contact { align-items: flex-start; flex-direction: column; justify-content: center; gap: 30px; min-height: 400px; padding-block: 60px; }
  .contact-links { width: min(100%, 430px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding-right: 0; }
  .contact-orb { right: -180px; }
  .section-heading h2 { letter-spacing: -.04em; line-height: 1.25; }
  .section-heading .text-muted { color: var(--ink-soft); }
  .eyebrow, .section-heading .eyebrow, .section-index,
  .about-meta i, .timeline-date, .company-kicker, .timeline-location,
  .role-years, .role-entry .role-years, .tech-tags span, .filter-chip span,
  .skill-number, .skill-category, .credential-year, .education-card .eyebrow,
  .volunteer-years, .recommendation-grid cite, .visitor-counter,
  .site-footer p, .site-footer > span { font-size: 12px; letter-spacing: .04em; }
  .about-meta i, .timeline-date, .company-kicker, .timeline-location,
  .role-years, .role-entry .role-years, .skill-number, .credential-year,
  .recommendation-grid cite, .visitor-counter, .site-footer p,
  .site-footer > span { color: var(--ink-soft); }
  .section-index { width: 32px; height: 29px; }
  .hero-summary, .heading-aside, .about-content p, .role-summary,
  .role-entry p, .timeline-details > p, .skill-card p,
  .education-card p:not(.eyebrow), .contact-content > p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.8;
  }
  .button, .text-link, .nav-contact, .details-toggle, .filter-chip,
  .about-meta span, .credential-row small, .recommendations > .text-link,
  .contact-links a { font-size: 14px; }
  .role-entry h4, .skill-card h3, .credential-row strong, .subheading { font-size: 16px; line-height: 1.5; }
  .filter-chip { min-height: 42px; }
  .skills-footnote { color: var(--ink-soft); font-size: 13px; }
  .credential-row { padding-block: 12px; }
  .role-entry { grid-template-columns: 1fr; gap: 7px; }
  .site-footer { flex-wrap: wrap; padding-block: 20px; }
  .site-footer .brand { font-size: 13px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 72px; }
  .section-shell { width: calc(100% - 40px); }
  .section-pad { padding-block: 78px; }
  .site-header { min-height: 66px; padding-inline: 20px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand-icon { width: 38px; height: 38px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; }
  .menu-toggle span { display: block; width: 14px; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .primary-nav { position: absolute; top: 65px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 20px 19px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .primary-nav.is-open { display: flex; flex-direction: column; }
  .primary-nav > a:not(.nav-contact) { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .primary-nav .nav-contact { align-self: flex-start; margin-top: 13px; }
  .theme-toggle { position: absolute; right: 20px; bottom: 19px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 42px; padding-top: 72px; padding-bottom: 80px; }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: 530px; font-size: clamp(47px, 12.5vw, 70px); }
  .hero-note { margin-top: 37px; }
  .hero-art { width: min(100%, 420px); justify-self: center; }
  .scroll-cue { bottom: 22px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: clamp(35px, 9vw, 47px); }
  .heading-inline { align-items: flex-start; flex-direction: column; gap: 16px; }
  .heading-aside { max-width: 410px; margin: 0; }
  .about { grid-template-columns: 1fr; gap: 12px; padding-top: 76px; padding-bottom: 78px; }
  .about-content { padding-top: 0; }
  .about-photo { width: 168px; height: 168px; margin: 26px 0 18px; }
  .about-content .about-lead { font-size: 19px; }
  .about-meta { gap: 15px 20px; }
  .experience .section-heading { margin-bottom: 35px; }
  .timeline::before { left: 5px; }
  .timeline-item { grid-template-columns: 1fr; gap: 7px; padding-left: 24px; padding-bottom: 24px; }
  .timeline-date { padding-top: 0; }
  .timeline-date i { top: 3px; right: auto; left: -23px; }
  .timeline-card { padding: 19px 16px 16px; }
  .timeline-topline { align-items: flex-start; flex-direction: column; gap: 4px; }
  .timeline-card h3 { margin-top: 10px; }
  .role-entry { grid-template-columns: 1fr; gap: 5px; padding-bottom: 13px; }
  .role-entry + .role-entry { padding-top: 13px; }
  .role-entry .role-years { padding: 0; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .skill-card { min-height: 210px; padding: 17px; }
  .skill-number { top: 17px; left: 17px; }
  .credentials-layout { grid-template-columns: 1fr; gap: 34px; }
  .education-card { max-width: none; }
  .recommendations { grid-template-columns: 1fr; gap: 19px; margin-top: 65px; }
  .recommendation-grid { grid-template-columns: 1fr; gap: 22px; }
  .recommendation-grid blockquote p { font-size: 15px; }
  .recommendations > .text-link { grid-column: auto; }
  .contact { min-height: 480px; gap: 34px; padding-block: 64px; }
  .contact-orb { width: 320px; opacity: .65; }
  .contact h2 { font-size: clamp(43px, 11vw, 59px); }
  .contact-links { width: min(100%, 350px); grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; }
  .site-footer { min-height: 125px; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 20px; }
  .site-footer p { order: 3; width: calc(100% - 50px); }
  .site-footer > span { order: 4; }
  .back-top { order: 5; }
  .visitor-counter { order: 2; }
}
@media (max-width: 520px) {
  .skills-grid { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: 180px; }
  .credential-row { grid-template-columns: 48px 1fr 16px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js-ready .reveal { opacity: 1; transform: none; }
}
