:root {
  --ink: #111b20;
  --ink-soft: #26343a;
  --paper: #f2efe7;
  --paper-bright: #faf8f2;
  --line: #c9c7be;
  --orange: #f05a3e;
  --orange-dark: #cf3f27;
  --blue: #3359c9;
  --yellow: #f0c85a;
  --muted: #6e7474;
  --page: min(1240px, calc(100vw - 48px));
  --radius: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(17, 27, 32, 0.2);
  background: rgba(242, 239, 231, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-self: start;
  text-decoration: none;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--paper-bright);
  background: var(--ink);
  font-family: "Arial Narrow", Inter, sans-serif;
  font-size: 0.84rem;
  letter-spacing: -0.02em;
}

.brand-name {
  font-size: 0.92rem;
}

.desktop-nav {
  display: flex;
  gap: 24px;
  font-size: 0.84rem;
  font-weight: 700;
}

.desktop-nav a,
.top-link {
  position: relative;
  text-decoration: none;
}

.desktop-nav a::after,
.top-link::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.top-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-self: end;
}

.language-switch {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.language-switch button {
  padding: 5px 2px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.language-switch button.active {
  color: var(--orange-dark);
}

.top-link {
  font-size: 0.78rem;
  font-weight: 800;
}

.section-pad {
  width: var(--page);
  margin: 0 auto;
  padding: 116px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-top: 76px;
  padding-bottom: 88px;
}

.eyebrow,
.section-label,
.contact-kicker {
  margin: 0 0 24px;
  font-family: "Arial Narrow", Inter, sans-serif;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 42px;
  height: 3px;
  margin: 0 12px 3px 0;
  content: "";
  background: var(--orange);
}

.hero h1,
.profile-section h2,
.section-heading h2,
.experience-head h2,
.stack-head h2,
.education-title h2,
.contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3.55rem, 6.4vw, 6.15rem);
  line-height: 0.91;
}

.hero h1 span {
  display: block;
}

.hero h1 span:nth-child(2) {
  color: var(--orange-dark);
  font-style: italic;
}

.hero-intro {
  max-width: 670px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: #fff;
  background: var(--ink);
}

.button-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.button-ghost:hover {
  color: #fff;
  background: var(--ink);
}

.profile-visual {
  position: relative;
  min-height: 550px;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 18px 18px 0 var(--yellow);
}

.visual-index {
  position: absolute;
  z-index: 3;
  top: -28px;
  right: -1px;
  padding: 6px 10px;
  color: var(--paper-bright);
  background: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.cover-strip {
  height: 182px;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.cover-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-wrap {
  position: absolute;
  top: 102px;
  left: 34px;
  width: 164px;
  height: 194px;
  padding: 9px;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  transform: rotate(-2deg);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04);
}

.current-card {
  position: absolute;
  top: 225px;
  right: 0;
  width: 63%;
  min-height: 210px;
  padding: 30px;
  color: #fff;
  background: var(--ink);
}

.current-card > span {
  display: block;
  margin-bottom: 42px;
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.current-card strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.current-card p {
  margin: 7px 0 18px;
  font-weight: 700;
}

.current-card small {
  color: #a9b4b8;
  font-size: 0.74rem;
}

.tech-stamp {
  position: absolute;
  bottom: 30px;
  left: 34px;
  display: grid;
  grid-template-columns: repeat(2, 66px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tech-stamp span {
  display: grid;
  height: 44px;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 0.72fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-bright);
}

.fact {
  min-height: 138px;
  padding: 31px clamp(22px, 4vw, 68px);
  border-right: 1px solid var(--ink);
}

.fact strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-size: 2.1rem;
  font-weight: 500;
}

.fact span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.fact-signature {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  writing-mode: vertical-rl;
  letter-spacing: 0.14em;
}

.profile-section {
  border-bottom: 1px solid var(--line);
}

.profile-section .section-label {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 9vw;
  padding-top: 48px;
}

.profile-grid h2,
.section-heading h2,
.experience-head h2,
.stack-head h2,
.education-title h2 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.98;
}

.profile-text .lead {
  margin-top: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.42;
}

.profile-text > p:not(.lead) {
  color: var(--ink-soft);
  line-height: 1.75;
}

.principle-list {
  padding: 0;
  margin: 42px 0 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.principle-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 720;
}

.principle-list span {
  color: var(--orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.expertise-section {
  width: 100%;
  padding-right: max(24px, calc((100vw - 1240px) / 2));
  padding-left: max(24px, calc((100vw - 1240px) / 2));
  color: #fff;
  background: var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.5fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}

.section-heading .section-label {
  color: var(--yellow);
}

.section-heading > p {
  margin: 0;
  color: #b5bfc2;
  line-height: 1.65;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #566166;
  border-left: 1px solid #566166;
}

.capability-card {
  min-height: 390px;
  padding: clamp(28px, 4vw, 52px);
  border-right: 1px solid #566166;
  border-bottom: 1px solid #566166;
  transition: background 200ms ease, color 200ms ease;
}

.capability-card:hover {
  color: var(--ink);
  background: var(--yellow);
}

.capability-card:hover p,
.capability-card:hover small {
  color: var(--ink-soft);
}

.capability-top {
  display: flex;
  justify-content: space-between;
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.capability-top small {
  color: #8d999d;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.capability-card h3 {
  margin: 70px 0 18px;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
}

.capability-card > p {
  max-width: 550px;
  min-height: 78px;
  margin: 0;
  color: #b5bfc2;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 36px 0 0;
  list-style: none;
}

.tag-list li,
.experience-tech span {
  padding: 7px 10px;
  border: 1px solid currentColor;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.experience-head {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 0.8fr;
  gap: 52px;
  align-items: end;
  margin-bottom: 64px;
}

.experience-head .section-label {
  align-self: start;
  color: var(--orange-dark);
}

.experience-head > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.timeline {
  position: relative;
  border-top: 1px solid var(--ink);
}

.experience-item {
  border-bottom: 1px solid var(--line);
}

.experience-item summary {
  display: grid;
  grid-template-columns: 16px minmax(140px, 0.5fr) minmax(300px, 1.6fr) minmax(108px, 0.38fr);
  gap: 24px;
  align-items: center;
  min-height: 114px;
  cursor: pointer;
  list-style: none;
}

.experience-item summary::-webkit-details-marker {
  display: none;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.experience-item[open] .timeline-dot {
  border-color: var(--orange-dark);
  background: var(--orange-dark);
}

.period {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.experience-name strong,
.experience-name small {
  display: block;
}

.experience-name strong {
  font-family: Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 500;
}

.experience-name small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

.detail-trigger {
  justify-self: end;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-trigger b {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-left: 12px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  vertical-align: middle;
}

.detail-trigger b::before,
.detail-trigger b::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1px;
  content: "";
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.detail-trigger b::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 180ms ease;
}

.experience-item[open] .detail-trigger b::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.experience-detail {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  padding: 0 12% 52px 22%;
}

.experience-detail > p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.23rem;
  line-height: 1.55;
}

.experience-detail ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.experience-detail li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.experience-detail li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 2px;
  content: "";
  background: var(--orange-dark);
}

.experience-tech {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.personal-section {
  width: 100%;
  padding-right: max(24px, calc((100vw - 1240px) / 2));
  padding-left: max(24px, calc((100vw - 1240px) / 2));
  background: var(--paper-bright);
}

.personal-head {
  display: grid;
  grid-template-columns: 0.6fr 1.15fr 0.8fr;
  gap: 52px;
  align-items: end;
  margin-bottom: 64px;
}

.personal-head .section-label {
  align-self: start;
  color: var(--orange-dark);
}

.personal-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.personal-head > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.personal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.personal-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  min-height: 520px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.personal-card.family {
  background: var(--yellow);
}

.personal-card.dnd {
  color: #fff;
  background: var(--ink);
}

.personal-card.run {
  color: #fff;
  background: var(--orange-dark);
}

.personal-motif {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid currentColor;
}

.family .personal-motif b {
  position: absolute;
  top: 50%;
  left: 28px;
  font-family: Georgia, serif;
  font-size: 8rem;
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.08em;
  transform: translateY(-50%);
}

.family .personal-motif span {
  position: absolute;
  right: 28px;
  padding: 7px 9px;
  color: #fff;
  background: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.family .personal-motif span:first-of-type {
  top: 30px;
}

.family .personal-motif span:last-of-type {
  bottom: 30px;
  background: var(--orange-dark);
}

.dnd .personal-motif b {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: Georgia, serif;
  font-size: 6rem;
  font-weight: 500;
  line-height: 1;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.dnd .personal-motif span {
  position: absolute;
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.dnd .personal-motif span:nth-of-type(1) { top: 24px; left: 26px; }
.dnd .personal-motif span:nth-of-type(2) { top: 24px; right: 26px; }
.dnd .personal-motif span:nth-of-type(3) { right: 26px; bottom: 24px; }
.dnd .personal-motif span:nth-of-type(4) { bottom: 24px; left: 26px; }

.run .personal-motif {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  padding: 14px 0;
}

.run .personal-motif i {
  display: flex;
  align-items: center;
  padding-left: calc(18px + var(--offset, 0px));
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.run .personal-motif i:nth-child(2) { --offset: 34px; }
.run .personal-motif i:nth-child(3) { --offset: 68px; }
.run .personal-motif i:nth-child(4) { --offset: 102px; }

.personal-copy {
  display: flex;
  flex-direction: column;
  padding: 34px;
}

.personal-copy small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dnd .personal-copy small {
  color: var(--yellow);
}

.personal-copy h3 {
  margin: 44px 0 16px;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 2.8vw, 2.55rem);
  font-weight: 500;
  line-height: 1.05;
}

.personal-copy p {
  margin: auto 0 0;
  font-size: 1rem;
  line-height: 1.62;
}

.stack-section {
  width: 100%;
  padding-right: max(24px, calc((100vw - 1240px) / 2));
  padding-left: max(24px, calc((100vw - 1240px) / 2));
  background: var(--yellow);
}

.stack-head {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 70px;
}

.stack-list {
  border-top: 1px solid var(--ink);
}

.stack-row {
  display: grid;
  grid-template-columns: 0.34fr 1.66fr;
  gap: 30px;
  padding: 23px 0;
  border-bottom: 1px solid rgba(17, 27, 32, 0.45);
}

.stack-row > strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.stack-row span {
  font-family: Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.ai-toolbox {
  display: grid;
  grid-template-columns: 0.48fr 1.52fr;
  margin-top: 76px;
  color: #fff;
  background: var(--ink);
}

.ai-wordmark {
  display: grid;
  min-height: 330px;
  place-content: center;
  border-right: 1px solid #556166;
  text-align: center;
}

.ai-wordmark span {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: clamp(6rem, 13vw, 11rem);
  font-style: italic;
  line-height: 0.74;
  letter-spacing: -0.09em;
}

.ai-wordmark small {
  margin-top: 28px;
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.ai-copy {
  padding: clamp(34px, 5vw, 68px);
}

.ai-copy > p {
  margin: 0 0 50px;
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ai-copy h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.ai-description {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 48px;
  margin-top: 28px;
}

.ai-description > p {
  margin: 0;
  color: #b8c1c4;
  font-size: 1rem;
  line-height: 1.7;
}

.ai-description ul {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid #566166;
}

.ai-description li {
  padding: 12px 0;
  border-bottom: 1px solid #566166;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  font-weight: 800;
}

.education-section {
  border-bottom: 1px solid var(--line);
}

.education-title {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 56px;
  margin-bottom: 70px;
}

.education-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
}

.record-list {
  border-top: 1px solid var(--ink);
}

.record-list article {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.record-list article > span {
  color: var(--orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.record-list h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.18rem;
  font-weight: 500;
}

.record-list p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.certificate-proofs {
  padding-top: 28px;
}

.certificate-proofs-label {
  margin: 0 0 10px;
  color: var(--orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.certificate-proofs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease, padding-left 160ms ease;
}

.certificate-proofs a:hover,
.certificate-proofs a:focus-visible {
  padding-left: 8px;
  color: var(--orange-dark);
}

.certificate-proofs span {
  font-family: Georgia, serif;
  font-size: 0.95rem;
}

.certificate-proofs strong {
  flex: 0 0 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.github-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  width: 100%;
  padding-right: max(24px, calc((100vw - 1240px) / 2));
  padding-left: max(24px, calc((100vw - 1240px) / 2));
  color: #fff;
  background: var(--ink);
}

.github-copy h2 {
  max-width: 560px;
  margin: 20px 0 24px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(2.8rem, 5.6vw, 5.8rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.github-copy > p:not(.section-label) {
  max-width: 570px;
  margin: 0;
  color: #c8d0d2;
  font-size: 0.98rem;
  line-height: 1.72;
}

.button-github {
  margin-top: 30px;
  color: var(--ink);
  border-color: var(--yellow);
  background: var(--yellow);
}

.button-github:hover {
  color: #fff;
  border-color: var(--orange);
  background: var(--orange);
}

.github-activity-card {
  min-width: 0;
  padding: clamp(20px, 3.5vw, 38px);
  border: 1px solid #455259;
  background: #17242a;
  box-shadow: 18px 18px 0 var(--orange-dark);
}

.github-card-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.github-handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-indicator {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--yellow);
}

.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(240, 200, 90, 0.12);
}

.github-chart-frame {
  padding: 18px;
  overflow-x: auto;
  border: 1px solid #38474e;
  background: #fff;
}

.github-chart-frame img {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
}

.github-privacy {
  margin: 20px 0 0;
  color: #aeb8bb;
  font-size: 0.73rem;
  line-height: 1.6;
}

.contact-section {
  position: relative;
  width: 100%;
  padding-right: max(24px, calc((100vw - 1240px) / 2));
  padding-left: max(24px, calc((100vw - 1240px) / 2));
  overflow: hidden;
  color: #fff;
  background: var(--orange-dark);
}

.contact-kicker {
  color: var(--yellow);
}

.contact-section h2 {
  max-width: 860px;
  font-size: clamp(3.2rem, 7.2vw, 7.5rem);
  line-height: 0.92;
}

.contact-section > p:not(.contact-kicker) {
  max-width: 650px;
  margin: 32px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.button-light {
  color: var(--ink);
  border-color: #fff;
  background: #fff;
}

.button-light:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.text-link {
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-code {
  position: absolute;
  right: 3vw;
  bottom: -1px;
  display: grid;
  grid-template-columns: repeat(2, 70px);
  color: var(--ink);
  background: var(--yellow);
}

.contact-code span {
  display: grid;
  height: 55px;
  place-items: center;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 26px max(24px, calc((100vw - 1240px) / 2));
  color: #aeb7ba;
  background: var(--ink);
  font-size: 0.7rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  :root {
    --page: min(100% - 36px, 760px);
  }

  .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 72px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .profile-visual {
    width: min(100%, 610px);
    min-height: 520px;
    margin-left: auto;
  }

  .fact-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fact-signature {
    display: none;
  }

  .profile-grid,
  .section-heading,
  .experience-head,
  .personal-head,
  .stack-head,
  .github-section,
  .education-title {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .profile-grid {
    gap: 52px;
  }

  .github-activity-card {
    box-shadow: 12px 12px 0 var(--orange-dark);
  }

  .section-heading > p,
  .experience-head > p:last-child {
    max-width: 550px;
  }

  .experience-head .section-label {
    margin-bottom: -10px;
  }

  .experience-item summary {
    grid-template-columns: 16px 130px 1fr;
  }

  .detail-trigger {
    grid-column: 3;
    justify-self: start;
    margin-top: -14px;
  }

  .experience-detail {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 170px;
  }

  .experience-tech {
    grid-column: 1;
  }

  .personal-grid {
    grid-template-columns: 1fr;
  }

  .personal-card {
    grid-template-columns: 0.72fr 1.28fr;
    grid-template-rows: 1fr;
    min-height: 340px;
  }

  .personal-motif {
    min-height: 340px;
    border-right: 1px solid currentColor;
    border-bottom: 0;
  }

  .ai-description {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .education-columns {
    gap: 40px;
  }
}

@media (max-width: 680px) {
  :root {
    --page: calc(100% - 32px);
  }

  .topbar {
    min-height: 68px;
  }

  .brand-name,
  .top-link {
    display: none;
  }

  .section-pad {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .hero {
    gap: 62px;
    padding-top: 62px;
  }

  .hero h1 {
    font-size: clamp(2.95rem, 14vw, 4.5rem);
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .profile-visual {
    min-height: 480px;
    box-shadow: 10px 10px 0 var(--yellow);
  }

  .cover-strip {
    height: 142px;
  }

  .portrait-wrap {
    top: 84px;
    left: 20px;
    width: 130px;
    height: 154px;
  }

  .current-card {
    top: 190px;
    width: 72%;
    min-height: 195px;
    padding: 24px;
  }

  .current-card > span {
    margin-bottom: 28px;
  }

  .tech-stamp {
    bottom: 20px;
    left: 20px;
  }

  .fact-strip {
    grid-template-columns: 1fr;
  }

  .fact {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: center;
    min-height: 92px;
    padding: 22px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .fact:last-of-type {
    border-bottom: 0;
  }

  .fact strong {
    margin: 0;
    font-size: 1.8rem;
  }

  .profile-grid h2,
  .section-heading h2,
  .experience-head h2,
  .stack-head h2,
  .education-title h2 {
    font-size: clamp(2.45rem, 12vw, 3.8rem);
  }

  .capability-grid,
  .personal-grid,
  .education-columns {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 355px;
  }

  .capability-card h3 {
    margin-top: 48px;
  }

  .personal-head h2 {
    font-size: clamp(2.45rem, 12vw, 3.8rem);
  }

  .personal-card {
    grid-template-columns: 1fr;
    grid-template-rows: 190px 1fr;
    min-height: 500px;
  }

  .personal-motif {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid currentColor;
  }

  .personal-copy h3 {
    margin-top: 38px;
  }

  .experience-item summary {
    grid-template-columns: 16px 1fr;
    gap: 12px 18px;
    min-height: 140px;
    padding: 22px 0;
  }

  .period {
    grid-column: 2;
    grid-row: 1;
  }

  .experience-name {
    grid-column: 2;
  }

  .detail-trigger {
    grid-column: 2;
    margin: 4px 0 0;
  }

  .timeline-dot {
    grid-row: 1 / span 3;
    align-self: start;
    margin-top: 4px;
  }

  .experience-detail {
    padding: 0 0 44px 34px;
  }

  .stack-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .ai-toolbox {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .ai-wordmark {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid #556166;
  }

  .education-columns {
    gap: 42px;
  }

  .contact-section h2 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .text-link {
    align-self: center;
  }

  .contact-code {
    display: none;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .topbar,
  .hero-actions,
  .contact-section,
  footer {
    display: none !important;
  }

  body,
  .expertise-section,
  .stack-section {
    color: #111 !important;
    background: #fff !important;
  }

  .section-pad {
    padding: 36px 0;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Personal dice game showcase */
.hobby-section{display:grid;grid-template-columns:1.12fr .88fr;gap:clamp(35px,6vw,90px);align-items:center;background:#f0ede3;color:#15242b}
.hobby-copy h2{font-size:clamp(2.55rem,5vw,5rem);line-height:1.03;max-width:700px;margin:16px 0 24px}
.hobby-copy>p:not(.section-label){max-width:640px;line-height:1.75;color:#435159}
.hobby-tech{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0 32px}
.hobby-tech span{font-size:.75rem;font-weight:750;letter-spacing:.04em;border:1px solid #a1adb2;padding:8px 11px}
.hobby-link{display:inline-flex;width:auto;text-decoration:none}
.hobby-art{min-height:320px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:30px 20px;background:linear-gradient(145deg,#66a3bf,#3368a0 65%,#183b66);color:#f2efe7;text-align:center;border:4px solid #c8dfdb;box-shadow:16px 16px 0 #192c35;text-decoration:none;transition:transform .2s,box-shadow .2s}
.hobby-art:hover{transform:translate(-4px,-4px);box-shadow:20px 20px 0 #192c35}
.hobby-art-label,.hobby-art-bottom{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.73rem;font-weight:800;letter-spacing:.18em}
.hobby-dice{font-size:4rem;letter-spacing:.16em;line-height:1;text-shadow:0 5px 0 #16375d}
.hobby-art strong{font:900 clamp(3.6rem,8vw,6.7rem)/1 system-ui,sans-serif;letter-spacing:-.08em;color:#f2efe7}
@media(max-width:980px){.hobby-section{grid-template-columns:1fr}.hobby-art{min-height:260px}}
@media(max-width:680px){.hobby-art{min-height:250px;box-shadow:8px 8px 0 #192c35}.hobby-art:hover{box-shadow:10px 10px 0 #192c35}.hobby-dice{font-size:3rem}}
@media(prefers-reduced-motion:reduce){.hobby-art{transition:none}}
