:root {
  --ink: #12251f;
  --green: #173d34;
  --teal: #0e7485;
  --burgundy: #7f2f3d;
  --line: #dce4e0;
  --muted: #5d6964;
  --body: #42524c;
  --soft: #f7faf9;
  --white: #ffffff;
  --max: 1456px;
  --page-pad: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Source Sans 3", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
p, h1, h2, h3, figure { margin: 0; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 50;
  transform: translateY(-160%); padding: 10px 14px;
  background: var(--ink); color: white;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(calc(100% - (var(--page-pad) * 2)), var(--max)); margin-inline: auto; }
.section-white { background: var(--white); }
.section-soft { background: var(--soft); }

.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 16px; font-weight: 600; letter-spacing: -0.016px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-cv { color: var(--burgundy); font-weight: 600; }
.nav a, .footer a, .text-cta, .hero-anchor { transition: opacity .18s ease; }
.nav a:hover, .footer a:hover, .text-cta:hover, .hero-anchor:hover { opacity: .68; }

.hero { min-height: 728px; padding-top: 34px; padding-bottom: 22px; display: flex; flex-direction: column; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; min-height: 22px; gap: 32px; }
.eyebrow { font-size: 12px; line-height: 1.35; font-weight: 600; letter-spacing: .075em; }
.role-line { display: inline-flex; align-items: center; gap: 10px; color: var(--green); }
.meta-right { color: var(--muted); text-align: right; }
.teal-square { width: 9px; height: 9px; background: var(--teal); flex: 0 0 9px; }
.teal { color: var(--teal); }
.green { color: var(--green); }
.burgundy { color: var(--burgundy); }
.white { color: white; }

.hero h1 {
  margin-top: 34px;
  max-width: 1280px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(76px, 6.75vw, 108px);
  line-height: .945;
  letter-spacing: -.0115em;
  font-weight: 500;
}
.hero h1 em { color: var(--burgundy); font-weight: 500; }
.hero-copy { margin-top: 22px; max-width: 720px; font-size: 20px; line-height: 1.5; color: var(--body); }
.hero-bottom {
  margin-top: auto;
  padding-top: 18px;
  min-height: 63px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.hero-anchor { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }
.accent-bar { width: 54px; height: 3px; background: #9e3849; }
.domains { font-size: 11px; line-height: 1.3; font-weight: 600; letter-spacing: .065em; color: #626e69; }

.section-shell { padding-block: 84px 88px; }
.signature-rule { height: 2px; width: 100%; background: var(--line); position: relative; }
.signature-rule span { display: block; width: 54px; height: 2px; background: var(--burgundy); }
.section-label { margin-top: 18px; }

.split-intro { display: grid; grid-template-columns: 430px minmax(0, 840px); justify-content: space-between; gap: 48px; align-items: start; margin-top: 18px; }
.split-intro h2, .current-copy h2, .about-copy h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  color: var(--ink);
}
.split-intro h2 { font-size: 54px; line-height: 1.04; letter-spacing: -.0095em; }
.small-muted { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.47; }

.work-list { margin-top: 32px; }
.work-row {
  min-height: 131px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 112px 504px minmax(0, 1fr);
  align-items: center;
}
.work-row:last-child { border-bottom: 0; }
.work-number { font-family: "Source Serif 4", Georgia, serif; font-size: 41px; line-height: 1; }
.work-row h3 { font-size: 22px; line-height: 1.27; font-weight: 600; }
.work-row p { font-size: 17.5px; line-height: 1.48; color: var(--muted); }

.currently { padding-block: 92px; }
.current-grid { display: grid; grid-template-columns: 360px minmax(0, 840px); justify-content: space-between; gap: 48px; }
.current-company { margin-top: 10px; font-family: "Source Serif 4", Georgia, serif; font-size: 30px; line-height: 1.13; font-weight: 500; }
.current-role { margin-top: 10px; font-size: 16px; line-height: 1.38; color: var(--green); font-weight: 600; }
.current-copy { display: grid; gap: 18px; }
.current-copy h2 { font-size: 50px; line-height: 1.06; letter-spacing: -.0085em; }
.current-copy p { max-width: 760px; font-size: 18.5px; line-height: 1.52; color: var(--muted); }
.current-copy p.ink { color: var(--ink); font-size: 17.5px; }

.about .section-shell { padding-block: 92px 104px; }
.about-grid { margin-top: 32px; display: grid; grid-template-columns: 544px minmax(0, 840px); gap: 72px; align-items: center; }
.portrait-wrap { height: 680px; overflow: hidden; }
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { display: grid; gap: 20px; }
.about-copy h2 { font-size: 50px; line-height: 1.08; letter-spacing: -.0085em; }
.about-copy p { max-width: 760px; font-size: 18.5px; line-height: 1.52; color: var(--muted); }
.about-copy p.ink { color: var(--ink); font-size: 17.5px; }
.about-copy .aside {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--burgundy);
  font-size: 23px;
  line-height: 1.3;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.01em;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 24, "wght" 500;
}

.experience .section-shell { padding-block: 84px 80px; }
.experience-intro { margin-top: 18px; }
.experience-left > p:last-child { margin-top: 18px; max-width: 430px; font-size: 17.5px; line-height: 1.52; color: var(--muted); }
.experience-list { margin-top: 36px; border-top: 1px solid var(--line); }
.experience-row {
  min-height: 127px;
  display: grid;
  grid-template-columns: 112px 504px minmax(0, 1fr) 250px;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.experience-kicker, .experience-meta { font-size: 10px; line-height: 1.4; font-weight: 600; letter-spacing: .05em; }
.experience-row h3 { font-size: 20px; line-height: 1.4; font-weight: 600; }
.experience-row p { font-size: 17.5px; line-height: 1.45; }
.experience-meta { color: var(--muted); text-align: right; }
.skills { margin-top: 18px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.gentle-shift { background: var(--green); color: white; }
.gs-grid { padding-block: 72px 58px; display: grid; grid-template-columns: 360px minmax(0, 840px); justify-content: space-between; column-gap: 48px; }
.gs-meta { display: grid; align-content: start; gap: 12px; }
.gs-copy { display: grid; align-content: start; }
.gs-copy h2 { font-family: "Source Serif 4", Georgia, serif; font-size: 60px; line-height: 1; font-weight: 400; letter-spacing: -.014em; font-optical-sizing: none; font-variation-settings: "opsz" 48, "wght" 400; }
.gs-copy h2 sup { font-size: .45em; vertical-align: top; position: relative; top: -.1em; }
.gs-copy p { max-width: 840px; font-size: 18.5px; line-height: 1.5; color: #e0e9e5; }
.gs-copy h2 + p { margin-top: 24px; }
.gs-copy p + p { margin-top: 20px; font-size: 17.5px; }
.text-cta { margin-top: 34px; font-size: 16px; line-height: 1.3; font-weight: 600; width: fit-content; }
.gs-bottom { grid-column: 1 / -1; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.35); display: flex; justify-content: space-between; gap: 32px; font-size: 10.5px; line-height: 1.5; font-weight: 600; }
.gs-bottom p:last-child { font-size: 13px; font-weight: 400; color: #d3dfda; }

.footer { background: var(--ink); color: white; }
.footer-inner { padding-block: 58px 44px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; }
.footer h2 { font-family: "Source Serif 4", Georgia, serif; font-size: 50px; line-height: 1; font-weight: 400; letter-spacing: -.008em; font-optical-sizing: none; font-variation-settings: "opsz" 44, "wght" 400; }
.footer-links { display: grid; gap: 14px; min-width: 260px; font-size: 15px; line-height: 1.35; font-weight: 600; }
.footer-links a:nth-child(2) { font-size: 16px; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); display: flex; justify-content: space-between; align-items: end; gap: 30px; color: #c5d1cc; font-size: 15px; }
.legal-links { display: flex; gap: 32px; font-size: 13px; color: white; }

@media (max-width: 1199px) {
  :root { --page-pad: 48px; }
  .site-header { height: 76px; }
  .nav { gap: 22px; font-size: 14px; }
  .hero { min-height: 604px; padding-top: 30px; padding-bottom: 20px; }
  .hero h1 { margin-top: 28px; font-size: clamp(68px, 7.7vw, 78px); line-height: .96; }
  .hero-copy { max-width: 610px; font-size: 18px; line-height: 1.5; }
  .section-shell { padding-block: 72px; }
  .split-intro { grid-template-columns: 300px minmax(0, 540px); gap: 48px; }
  .split-intro h2 { font-size: 46px; }
  .work-row { grid-template-columns: 82px 300px minmax(0,1fr); min-height: 112px; }
  .work-number { font-size: 36px; }
  .work-row h3 { font-size: 19px; }
  .work-row p { font-size: 16px; }
  .currently { padding-block: 78px; }
  .current-grid { grid-template-columns: 300px minmax(0, 540px); gap: 48px; }
  .current-copy h2 { font-size: 43px; }
  .current-copy p { font-size: 17px; }
  .about-grid { grid-template-columns: 390px minmax(0, 540px); gap: 48px; }
  .portrait-wrap { height: 488px; }
  .about-copy h2 { font-size: 42px; }
  .about-copy p { font-size: 17px; }
  .experience-row { grid-template-columns: 82px 300px minmax(0,1fr) 180px; min-height: 110px; }
  .experience-row h3 { font-size: 18px; }
  .experience-row p { font-size: 16px; }
  .gs-grid { grid-template-columns: 300px minmax(0, 540px); padding-block: 64px 50px; }
  .gs-copy h2 { font-size: 52px; }
  .gs-copy p { font-size: 17px; }
  .footer-inner { padding-block: 50px 40px; }
}


/* Compact tablet: bridges the 1024 layout and mobile without the abrupt jump. */
@media (min-width: 700px) and (max-width: 959px) {
  :root { --page-pad: 34px; }
  .site-header { height: 70px; }
  .brand { font-size: 14px; }
  .nav { gap: 16px; font-size: 13px; }
  .nav-desktop { display: none; }

  .hero { min-height: 610px; padding-top: 26px; padding-bottom: 18px; }
  .hero-meta { gap: 20px; }
  .eyebrow { font-size: 10.5px; }
  .hero h1 { margin-top: 24px; font-size: clamp(52px, 7.4vw, 64px); line-height: .96; }
  .hero-copy { margin-top: 20px; max-width: 580px; font-size: 17px; line-height: 1.48; }
  .hero-bottom { min-height: 56px; padding-top: 16px; }
  .domains { font-size: 9.5px; }

  .section-shell { padding-block: 56px 60px; }
  .split-intro { grid-template-columns: minmax(180px, 30%) minmax(0, 1fr); gap: 34px; margin-top: 16px; }
  .split-intro h2 { font-size: clamp(36px, 5vw, 44px); line-height: 1.04; }
  .small-muted { font-size: 13.5px; }

  .work-list { margin-top: 24px; }
  .work-row { grid-template-columns: 60px minmax(190px, .75fr) minmax(0, 1.25fr); min-height: 96px; gap: 12px; }
  .work-number { font-size: 32px; }
  .work-row h3 { font-size: 17px; }
  .work-row p { font-size: 14.5px; line-height: 1.45; }

  .currently { padding-block: 58px; }
  .current-grid { grid-template-columns: minmax(190px, 30%) minmax(0, 1fr); gap: 34px; }
  .current-company { font-size: 25px; }
  .current-role { font-size: 13px; }
  .current-copy { gap: 14px; }
  .current-copy h2 { font-size: clamp(35px, 4.8vw, 42px); }
  .current-copy p, .current-copy p.ink { font-size: 15px; line-height: 1.48; }

  .about .section-shell { padding-block: 58px 62px; }
  .about-grid { margin-top: 24px; grid-template-columns: minmax(250px, 42%) minmax(0, 1fr); gap: 34px; align-items: start; }
  .portrait-wrap { height: auto; aspect-ratio: 4 / 5; }
  .about-copy { gap: 14px; padding-top: 6px; }
  .about-copy h2 { font-size: clamp(33px, 4.5vw, 39px); line-height: 1.07; }
  .about-copy p, .about-copy p.ink { font-size: 14.75px; line-height: 1.46; }
  .about-copy .aside { font-size: 19px; line-height: 1.28; }

  .experience .section-shell { padding-block: 56px 58px; }
  .experience-left > p:last-child { margin-top: 14px; font-size: 14.5px; line-height: 1.48; }
  .experience-list { margin-top: 24px; }
  .experience-row { grid-template-columns: 58px minmax(190px, .9fr) minmax(0, 1.1fr); min-height: 94px; column-gap: 12px; }
  .experience-row h3 { font-size: 16px; }
  .experience-row p { font-size: 14.5px; }
  .experience-meta { grid-column: 2 / -1; text-align: left; margin-top: -18px; font-size: 8.5px; }
  .skills { margin-top: 14px; font-size: 10.5px; }

  .gs-grid { grid-template-columns: minmax(190px, 30%) minmax(0, 1fr); gap: 34px; padding-block: 54px 46px; }
  .gs-copy h2 { font-size: clamp(43px, 5.8vw, 50px); }
  .gs-copy h2 + p { margin-top: 18px; }
  .gs-copy p { font-size: 15.25px; line-height: 1.47; }
  .gs-copy p + p { margin-top: 16px; font-size: 14.75px; }
  .text-cta { margin-top: 28px; font-size: 14.5px; }
  .gs-bottom { margin-top: 28px; padding-top: 16px; font-size: 9px; }
  .gs-bottom p:last-child { font-size: 11px; }

  .footer-inner { padding-block: 48px 40px; }
  .footer h2 { font-size: clamp(38px, 5vw, 46px); }
  .footer-links { min-width: 180px; font-size: 13.5px; gap: 12px; }
  .footer-bottom { margin-top: 28px; padding-top: 16px; font-size: 13px; }
  .legal-links { gap: 24px; font-size: 12px; }
}

@media (max-width: 699px) {
  :root { --page-pad: 24px; }
  .site-header { height: 65px; }
  .brand { font-size: 14px; }
  .nav { gap: 16px; font-size: 13px; }
  .nav-desktop { display: none; }
  .hero { min-height: 520px; padding-top: 22px; padding-bottom: 16px; }
  .hero-meta { display: grid; gap: 13px; align-items: start; }
  .eyebrow { font-size: 10.5px; line-height: 1.38; }
  .meta-right { text-align: left; }
  .hero h1 { margin-top: 18px; max-width: 100%; font-size: clamp(38px, 9.6vw, 46px); line-height: .96; letter-spacing: -.01em; }
  .desktop-only { display: none; }
  .hero-copy { margin-top: 18px; max-width: 100%; font-size: 16px; line-height: 1.5; }
  .hero-bottom { padding-top: 20px; min-height: 57px; }
  .hero-anchor { font-size: 13px; }
  .domains { display: none; }

  .section-shell { padding-block: 38px 44px; }
  .signature-rule span { width: 36px; }
  .split-intro { display: block; margin-top: 12px; }
  .split-intro h2 { margin-top: 20px; font-size: clamp(32px, 8vw, 37px); line-height: 1.05; }
  .small-muted { font-size: 13.5px; }
  .work-list { margin-top: 24px; }
  .work-row { display: block; min-height: auto; padding-block: 18px; }
  .work-number { display: block; margin-bottom: 4px; font-size: 30px; line-height: 1.05; }
  .work-row h3 { font-size: 19px; line-height: 1.26; }
  .work-row p { margin-top: 6px; font-size: 15.5px; line-height: 1.48; }

  .currently { padding-block: 44px 48px; }
  .current-grid { display: block; }
  .current-company { font-size: 26px; line-height: 1.13; }
  .current-role { font-size: 13px; line-height: 1.38; }
  .current-copy { margin-top: 28px; gap: 14px; }
  .current-copy h2 { font-size: clamp(31px, 7.6vw, 35px); line-height: 1.04; }
  .current-copy p, .current-copy p.ink { font-size: 15.5px; line-height: 1.5; }

  .about .section-shell { padding-block: 44px 46px; }
  .about-grid { margin-top: 18px; display: block; }
  .portrait-wrap { height: auto; aspect-ratio: 4 / 5; }
  .about-copy { margin-top: 22px; gap: 15px; }
  .about-copy h2 { font-size: clamp(30px, 7.2vw, 34px); line-height: 1.08; }
  .about-copy p, .about-copy p.ink { font-size: 15.25px; line-height: 1.48; }
  .about-copy .aside { font-size: 20px; line-height: 1.25; }

  .experience .section-shell { padding-block: 44px 48px; }
  .experience-left > p:last-child { margin-top: 16px; font-size: 15px; line-height: 1.5; }
  .experience-intro h2 { margin-top: 20px; font-size: clamp(31px, 7.4vw, 35px); }
  .experience-list { margin-top: 32px; }
  .experience-row { display: block; min-height: auto; padding-block: 14px; }
  .experience-kicker { display: block; margin-bottom: 5px; }
  .experience-row h3 { font-size: 15.5px; line-height: 1.35; }
  .experience-row p { margin-top: 4px; font-size: 14.5px; line-height: 1.4; }
  .experience-meta { display: block; margin-top: 5px; text-align: left; font-size: 9px; }
  .skills { margin-top: 18px; font-size: 10.5px; line-height: 1.45; }

  .gs-grid { display: block; padding-block: 46px 48px; }
  .gs-meta { gap: 10px; }
  .gs-copy { margin-top: 24px; }
  .gs-copy h2 { font-size: clamp(39px, 9.4vw, 44px); }
  .gs-copy h2 + p { margin-top: 16px; }
  .gs-copy p { font-size: 15.5px; line-height: 1.48; }
  .gs-copy p + p { margin-top: 16px; font-size: 15px; }
  .text-cta { margin-top: 28px; font-size: 14px; }
  .gs-bottom { margin-top: 30px; padding-top: 16px; display: block; font-size: 9.5px; line-height: 1.45; }
  .gs-bottom p:last-child { margin-top: 12px; font-size: 11px; }

  .footer-inner { padding-block: 42px 44px; }
  .footer-top { display: block; }
  .footer h2 { font-size: clamp(34px, 8vw, 39px); line-height: 1.05; }
  .footer-links { margin-top: 26px; gap: 12px; min-width: 0; font-size: 14px; }
  .footer-links a:nth-child(2) { font-size: 14px; }
  .footer-bottom { margin-top: 30px; padding-top: 18px; display: block; font-size: 13px; }
  .legal-links { margin-top: 18px; gap: 28px; font-size: 12px; }
}

@media (max-width: 359px) {
  :root { --page-pad: 16px; }
  .brand { font-size: 12.5px; }
  .nav { gap: 10px; font-size: 12px; }
  .hero h1 { font-size: 41px; }
  .hero-copy { font-size: 15.5px; }
  .split-intro h2 { font-size: 34px; }
  .current-copy h2 { font-size: 33px; }
  .about-copy h2 { font-size: 31px; }
  .experience-intro h2 { font-size: 33px; }
  .gs-copy h2 { font-size: 39px; }
  .footer h2 { font-size: 34px; }
}




/* v4 polish: tighter rhythm, stronger editorial motion, clearer interactions */
@media (min-width: 1200px) {
  .hero { min-height: 660px; }
  .section-shell { padding-block: 72px 76px; }
  .currently { padding-block: 76px; }
  .about .section-shell { padding-block: 78px 86px; }
  .experience .section-shell { padding-block: 72px 68px; }
  .skills { font-size: 13.5px; line-height: 1.55; }
  .gs-bottom { margin-top: 46px; }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .hero { min-height: 550px; }
  .section-shell { padding-block: 60px 64px; }
  .currently { padding-block: 64px; }
  .about .section-shell { padding-block: 64px 70px; }
  .experience .section-shell { padding-block: 60px 60px; }
  .experience-intro { grid-template-columns: 300px minmax(0, 500px); gap: 72px; }
  .experience-intro h2 { transform: translateX(18px); }
  .skills { font-size: 12.75px; line-height: 1.55; }
  .gs-bottom { margin-top: 40px; }
}

@media (min-width: 700px) and (max-width: 959px) {
  .hero { min-height: 545px; }
  .section-shell { padding-block: 48px 52px; }
  .currently { padding-block: 50px; }
  .about .section-shell { padding-block: 50px 54px; }
  .experience .section-shell { padding-block: 48px 50px; }
  .experience-intro { grid-template-columns: minmax(190px, 28%) minmax(0, 1fr); gap: 52px; }
  .experience-intro h2 { transform: translateX(12px); }
  .skills { margin-top: 16px; font-size: 12px; line-height: 1.52; }
  .gs-bottom { margin-top: 40px; }
}

@media (max-width: 699px) {
  .hero { min-height: 490px; }
  .section-shell { padding-block: 34px 38px; }
  .currently { padding-block: 40px 42px; }
  .about .section-shell { padding-block: 40px 42px; }
  .experience .section-shell { padding-block: 40px 42px; }
  .skills { font-size: 11.5px; line-height: 1.5; }
  .gs-bottom { margin-top: 38px; }
  .footer-bottom { padding-bottom: 2px; }
}

/* Keep the Gentle Shift mark editorial rather than logo-heavy. */
.gs-copy h2 {
  font-weight: 350;
  letter-spacing: -.01em;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 60, "wght" 350;
}
.footer h2 {
  font-weight: 350;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 52, "wght" 350;
}

/* More room after the project CTA before the micro-copy rule. */
.text-cta { margin-bottom: 2px; }

/* Link interactions: no fading-out; use movement + a deliberate underline. */
.nav a, .footer a, .text-cta, .hero-anchor {
  opacity: 1 !important;
  transition: transform .22s cubic-bezier(.22,.61,.36,1), color .22s ease;
}
@media (hover: hover) {
  .nav a:hover, .footer a:hover, .text-cta:hover, .hero-anchor:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
  }
}
.nav a:focus-visible::after, .footer a:focus-visible::after,
.text-cta:focus-visible::after, .hero-anchor:focus-visible::after,
.nav a:hover::after, .footer a:hover::after,
.text-cta:hover::after, .hero-anchor:hover::after { transform: scaleX(1); }
.text-cta::after { bottom: -6px; height: 2px; }
.footer a::after { bottom: -5px; }
@media (hover: none) {
  .nav a:active, .footer a:active, .text-cta:active, .hero-anchor:active { transform: translateY(-1px); }
  .nav a:active::after, .footer a:active::after, .text-cta:active::after, .hero-anchor:active::after { transform: scaleX(1); }
}

/* Stronger, still restrained, editorial motion. */
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(.992);
  transition: opacity .78s ease, transform .82s cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity;
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-delay { transition-delay: .12s; }
.reveal-stagger { transition-delay: var(--reveal-delay, 0ms); }
.signature-rule span {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal-section.is-visible .signature-rule span { transform: scaleX(1); }
.portrait-wrap { overflow: hidden; }
.portrait-wrap img {
  transform: scale(1.055) translateY(8px);
  transition: transform 1.15s cubic-bezier(.16,1,.3,1), filter .9s ease;
  filter: saturate(.94);
}
.portrait-wrap.is-visible img { transform: scale(1) translateY(0); filter: saturate(1); }

.hero-meta { animation: heroMetaIn .65s .05s both cubic-bezier(.16,1,.3,1); }
.hero h1 { animation: heroTitleIn .9s .12s both cubic-bezier(.16,1,.3,1); }
.hero-copy { animation: heroCopyIn .85s .28s both cubic-bezier(.16,1,.3,1); }
.hero-bottom { animation: heroCopyIn .8s .42s both cubic-bezier(.16,1,.3,1); }
@keyframes heroMetaIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
@keyframes heroTitleIn { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:none; } }
@keyframes heroCopyIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }

/* Footer legal block should read as one intentional secondary line. */
.footer-bottom { align-items: center; }
.legal-links { align-items: center; }
@media (max-width: 699px) {
  .footer-bottom { margin-top: 32px; padding-top: 20px; }
  .legal-links { margin-top: 16px; }
}

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

/* v5 micro typography polish: keep the identity serif quiet and editorial. */
.gs-copy h2 {
  font-weight: 330;
  letter-spacing: .006em;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 56, "wght" 330;
}
.footer h2 {
  font-weight: 340;
  letter-spacing: -.004em;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 48, "wght" 340;
}
@media (min-width: 960px) {
  .gs-copy h2 { font-size: 58px; }
  .footer h2 { font-size: 48px; }
}

/* v6 image delivery: full-resolution source, responsive formats, stable crop. */
.portrait-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}
.portrait-wrap picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

/* v7 search/discoverability support */
.hero-focus {
  max-width: 760px;
  margin-top: 14px;
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  line-height: 1.55;
  color: var(--text-muted, #5f6763);
}
@media (max-width: 699px) {
  .hero-focus { margin-top: 12px; }
}


/* v8 accessibility polish — intentionally preserves the visual design. */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}
a[aria-disabled="true"] {
  cursor: default;
}

/* Keep touch targets comfortably clickable without changing visible geometry. */
.nav a,
.footer a,
.text-cta,
.hero-anchor {
  position: relative;
}
.nav a::before,
.footer a::before,
.text-cta::before,
.hero-anchor::before {
  content: "";
  position: absolute;
  inset: -8px -6px;
}

/* Prevent anchored sections from hiding under browser/UI chrome. */
section[id], footer[id] { scroll-margin-top: 24px; }

/* Print-friendly version: readable, compact and free of decorative UI/motion. */
@media print {
  @page { margin: 14mm; }
  html, body {
    background: #fff !important;
    color: #111 !important;
    font-size: 10.5pt;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
  .site-header,
  .hero-bottom,
  .skip-link,
  .legal-links,
  .domains {
    display: none !important;
  }
  .shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  .hero,
  .work,
  .currently,
  .about,
  .experience,
  .gentle-shift,
  .footer {
    min-height: 0 !important;
    padding: 12mm 0 !important;
    background: #fff !important;
    color: #111 !important;
  }
  .gentle-shift *,
  .footer * {
    color: #111 !important;
  }
  .signature-rule,
  .accent-bar {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .portrait-wrap {
    max-width: 78mm;
    break-inside: avoid;
  }
  .about-grid,
  .current-grid,
  .experience-intro,
  .gs-grid,
  .footer-top {
    break-inside: avoid;
  }
  .work-row,
  .experience-row {
    break-inside: avoid;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    font-weight: 400;
  }
  a[href^="mailto:"]::after { content: ""; }
}



/* v11 final responsive + bilingual polish */
.brand {
  font-weight: 500;
  letter-spacing: -.01em;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .08em;
  color: #7c8782;
  white-space: nowrap;
}
.language-switch a {
  position: relative;
  font-weight: 500;
  color: #7c8782;
}
.language-switch a.is-active {
  color: var(--burgundy);
  font-weight: 650;
}
.language-switch a::before { inset: -10px -5px; }
.language-switch a::after { display: none; }

/* German line lengths need slightly more breathing room than English. */
html[lang="de"] .hero h1 { max-width: 1180px; }
html[lang="de"] .hero-copy { max-width: 760px; }

/* Prevent experience columns from visually colliding at laptop / large-tablet widths. */
@media (min-width: 960px) and (max-width: 1199px) {
  .experience-row {
    grid-template-columns: 72px minmax(255px, 1.18fr) minmax(205px, 1fr) minmax(130px, .66fr);
    column-gap: 22px;
  }
  .experience-row h3,
  .experience-row p,
  .experience-meta { min-width: 0; }
  .experience-row h3 { line-height: 1.32; }
  .experience-meta { font-size: 8.5px; }
  html[lang="de"] .hero h1 { font-size: clamp(60px, 6.6vw, 72px); }
}

/* Tablet: stack each experience item internally so long German labels never touch. */
@media (min-width: 700px) and (max-width: 959px) {
  .experience-row {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "kick title"
      ". role"
      ". meta";
    column-gap: 20px;
    row-gap: 5px;
    min-height: 0;
    padding-block: 18px;
    align-items: start;
  }
  .experience-kicker { grid-area: kick; padding-top: 3px; }
  .experience-row h3 { grid-area: title; font-size: 16.5px; line-height: 1.34; }
  .experience-row p { grid-area: role; margin: 0; font-size: 14.5px; line-height: 1.42; }
  .experience-meta {
    grid-area: meta;
    margin-top: 0;
    text-align: left;
    font-size: 8.5px;
    line-height: 1.35;
  }
  .skills { max-width: 100%; }
  html[lang="de"] .hero h1 { font-size: clamp(50px, 6.7vw, 59px); }
  html[lang="de"] .hero-copy { max-width: 620px; }
  html[lang="de"] .current-grid { grid-template-columns: minmax(180px, 28%) minmax(0, 1fr); gap: 42px; }
}

/* Narrow mobile: give long German labels a little more vertical rhythm. */
@media (max-width: 699px) {
  .language-switch { font-size: 10.5px; gap: 4px; }
  .nav { gap: 14px; }
  html[lang="de"] .hero h1 { font-size: clamp(37px, 9vw, 44px); }
  html[lang="de"] .hero-copy { font-size: 15.5px; }
  html[lang="de"] .section-label { max-width: 90%; }
  .experience-row h3 { overflow-wrap: anywhere; }
}

/* Keep identity typography quiet and elegant on both languages. */
.footer h2 {
  font-weight: 300;
  font-variation-settings: "opsz" 48, "wght" 300;
  letter-spacing: 0;
}
@media (min-width: 960px) { .footer h2 { font-size: 46px; } }


/* v12 final language + DE hero/tablet rhythm polish */
.language-switch { margin-left: 2px; }

.lang-de .de-hero-title .de-line { display: block; }
.lang-de .de-hero-title .de-line-1 { white-space: nowrap; }
.lang-de .hero-copy { margin-bottom: 18px; }

@media (min-width: 1200px) {
  .lang-de .hero { min-height: 630px; }
  .lang-de .de-hero-title { font-size: clamp(70px, 5.85vw, 94px); line-height: .96; }
  .lang-de .hero-copy { max-width: 760px; margin-top: 24px; margin-bottom: 24px; }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .lang-de .hero { min-height: 520px; }
  .lang-de .de-hero-title { font-size: clamp(58px, 6.4vw, 70px); line-height: .97; }
  .lang-de .de-hero-title .de-line-1 { white-space: normal; }
  .lang-de .hero-copy { margin-top: 22px; margin-bottom: 22px; max-width: 650px; }
  .lang-de .hero-bottom { padding-top: 18px; }
}

@media (min-width: 700px) and (max-width: 959px) {
  .lang-de .hero { min-height: auto; padding-top: 24px; padding-bottom: 14px; }
  .lang-de .de-hero-title { margin-top: 22px; font-size: clamp(48px, 6.5vw, 58px); line-height: .98; }
  .lang-de .de-hero-title .de-line-1 { white-space: normal; }
  .lang-de .hero-copy { margin-top: 22px; margin-bottom: 34px; max-width: 600px; }
  .lang-de .hero-bottom { margin-top: 0; min-height: 52px; padding-top: 16px; }
  .lang-de .work .section-shell { padding-top: 42px; }

  /* Give tablet experience rows breathing room instead of forcing title/content together. */
  .lang-de .experience-row {
    grid-template-columns: 52px minmax(210px, .95fr) minmax(0, 1.05fr);
    column-gap: 22px;
    row-gap: 8px;
    padding-block: 18px;
    min-height: 104px;
  }
  .lang-de .experience-row h3 { line-height: 1.32; }
  .lang-de .experience-row p { line-height: 1.46; }
  .lang-de .experience-meta { grid-column: 2 / -1; margin-top: -8px; }
}

@media (max-width: 699px) {
  .lang-de .de-hero-title { font-size: clamp(36px, 9.2vw, 44px); line-height: .98; }
  .lang-de .de-hero-title .de-line,
  .lang-de .de-hero-title .de-line-1 { display: block; white-space: normal; }
  .lang-de .hero-copy { margin-top: 20px; margin-bottom: 28px; }
  .lang-de .hero-bottom { margin-top: 0; }
}


/* v18 — German hero spacing polish */
.lang-de .hero {
  min-height: auto;
}
.lang-de .hero-bottom {
  margin-top: 56px;
}

@media (min-width: 1200px) {
  .lang-de .hero {
    min-height: auto;
    padding-bottom: 26px;
  }
  .lang-de .de-hero-title {
    font-size: clamp(72px, 5.7vw, 92px);
    line-height: .98;
  }
  .lang-de .hero-copy {
    margin-top: 26px;
  }
  .lang-de .hero-bottom {
    margin-top: 58px;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .lang-de .hero {
    min-height: auto;
    padding-bottom: 20px;
  }
  .lang-de .hero-bottom {
    margin-top: 46px;
  }
  .lang-de .work .section-shell {
    padding-top: 50px;
  }
}

@media (min-width: 700px) and (max-width: 959px) {
  .lang-de .hero {
    min-height: auto;
    padding-top: 22px;
    padding-bottom: 14px;
  }
  .lang-de .de-hero-title {
    margin-top: 20px;
    line-height: 1;
  }
  .lang-de .hero-copy {
    margin-top: 20px;
    margin-bottom: 0;
  }
  .lang-de .hero-bottom {
    margin-top: 38px;
    padding-top: 16px;
  }
  .lang-de .work .section-shell {
    padding-top: 38px;
  }
}

@media (max-width: 699px) {
  .lang-de .hero {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 14px;
  }
  .lang-de .de-hero-title {
    margin-top: 18px;
    line-height: 1.01;
  }
  .lang-de .hero-copy {
    margin-top: 18px;
    margin-bottom: 0;
  }
  .lang-de .hero-bottom {
    margin-top: 34px;
    padding-top: 18px;
  }
  .lang-de .work .section-shell {
    padding-top: 34px;
  }
}
