:root {
  color-scheme: dark;
  --paper: #101419;
  --surface: #171d23;
  --surface-raised: #1c242c;
  --ink: #eef0f2;
  --muted: #acb5be;
  --line: #303941;
  --accent: #f3a095;
  --accent-hover: #b53b2c;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --brand: #c74634;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
::selection {
  background: #71392f;
  color: #fff;
}
img {
  display: block;
  width: 100%;
  object-fit: cover;
}
svg {
  display: block;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.13;
  letter-spacing: -1.4px;
  font-weight: 650;
}
h2 {
  font-size: clamp(32px, 3.4vw, 46px);
}
h3 {
  font-size: 23px;
  letter-spacing: -0.5px;
}
em {
  color: var(--brand);
  font-style: normal;
  font-weight: inherit;
}
p {
  color: var(--muted);
}
.container {
  width: min(1200px, calc(100% - 112px));
  margin-inline: auto;
}
.section {
  padding-block: 96px;
}
.eyebrow {
  font: 600 12px/1.5 var(--mono);
  letter-spacing: 1.5px;
  color: var(--muted);
}
.section-number {
  margin-bottom: 24px;
  color: var(--accent);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
}
.text-link:hover {
  color: var(--accent);
}
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 16px 23px;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid transparent;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button.primary,
.contact-button {
  background: var(--brand);
  color: #ffffff;
}
.button.primary:hover,
.contact-button:hover {
  background: var(--accent-hover);
}
.button > span:last-child {
  font-size: 21px;
  line-height: 1;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #101419f2;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 31px;
  letter-spacing: -2px;
  line-height: 1;
  font-weight: 750;
}
.brand-dot {
  color: var(--brand);
}
.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  margin-left: 20px;
}
.nav-wrap nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 14px;
}
.nav-wrap nav a {
  color: #bbc3cb;
  transition: color 0.2s;
}
.nav-wrap nav a:hover {
  color: var(--accent);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.language {
  font: 12px var(--mono);
  white-space: nowrap;
}
.language span {
  margin-left: 5px;
  color: var(--accent);
}
.nav-contact {
  border-bottom: 1px solid #6d777f;
  padding-block: 6px;
  white-space: nowrap;
}
.nav-contact > span + span {
  margin-left: 14px;
  color: var(--accent);
}
.menu-toggle {
  display: none;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 75px;
  padding-block: 78px 76px;
}
.hero-copy > .eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  margin-bottom: 24px;
}
.status-dot {
  flex-shrink: 0;
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--brand);
}
.hero h1 {
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: -3px;
  line-height: 1.05;
}
.hero h1 > span {
  display: block;
}
.hero h1 > .hero-name {
  color: var(--accent);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin-bottom: 20px;
}
.hero-line-muted {
  color: #88949e;
}
.hero-description {
  max-width: 475px;
  margin-top: 25px;
  font-size: 15px;
  line-height: 1.85;
}
.hero-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 29px;
}
.hero-location {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  margin-top: 30px;
}
.hero-location > span:first-child {
  font-size: 17px;
  color: var(--accent);
}
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 425px;
  justify-self: end;
  padding: 0 0 17px 17px;
}
.hero-visual:before {
  content: "";
  position: absolute;
  inset: 22px -17px 0 0;
  border: 1px solid #6f3e35;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 24px,
    #c7463410 24px 25px
  );
}
.portrait-frame {
  position: relative;
  aspect-ratio: 0.99;
  overflow: hidden;
  background: var(--surface);
}
.portrait {
  height: 100%;
  object-position: center 44%;
  filter: saturate(0.65);
}
.photo-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 60px 24px 23px;
  background: linear-gradient(transparent, #0b1118ed);
  display: flex;
  flex-direction: column;
  color: #f5f5f6;
}
.photo-caption > span:first-child {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.photo-caption > span:last-child {
  font-size: 11px;
  color: #c4ccd4;
  margin-top: 4px;
}
.hero-technical {
  position: relative;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  font: 11px/1.7 var(--mono);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #8d9ba8;
}
.hero-technical > span:first-child {
  color: var(--accent);
}
.expertise-strip {
  border-block: 1px solid var(--line);
  background: #141a20;
}
.expertise-strip > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 73px;
  font: 12px/1.7 var(--mono);
  color: #b5bec7;
}
.expertise-strip span {
  display: flex;
  align-items: center;
  gap: 14px;
}
.expertise-strip span:before {
  content: "/";
  color: var(--brand);
}
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.about h2 {
  font-size: 40px;
  line-height: 1.2;
}
.about-copy > p {
  font-size: 15px;
  line-height: 1.85;
}
.about-copy > p + p {
  margin-top: 20px;
}
.about-copy .lead {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.5;
  margin-bottom: 23px;
  letter-spacing: -0.4px;
}
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 31px;
}
.about-facts > div {
  display: flex;
  flex-direction: column;
}
.about-facts strong {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
}
.about-facts span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 65px;
  margin-bottom: 40px;
}
.section-heading > p {
  max-width: 300px;
  font-size: 14px;
  line-height: 1.85;
}
.expertise-section {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.expertise-card {
  padding: 28px;
  border: 1px solid #35404a;
  background: #151b21;
}
.expertise-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 15px;
}
.expertise-index {
  font: 11px/1.6 var(--mono);
  letter-spacing: 0.8px;
  color: var(--accent);
}
.expertise-card svg {
  width: 38px;
  flex-shrink: 0;
  stroke: #a7b6c5;
  stroke-width: 1.3;
}
.expertise-card h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 17px;
}
.expertise-card p {
  font-size: 14px;
  line-height: 1.85;
}
.expertise-stack {
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #8f9eab;
  font: 11px/1.8 var(--mono);
}
.focus-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 40px;
  margin-bottom: 24px;
}
.focus-heading .eyebrow {
  font-size: 11px;
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.focus-grid article {
  display: flex;
  gap: 17px;
}
.focus-code {
  font: 18px/1.3 var(--mono);
  color: var(--accent);
  min-width: 35px;
}
.focus-grid h3 {
  font-size: 17px;
  letter-spacing: -0.2px;
  margin-bottom: 11px;
}
.focus-grid p {
  font-size: 14px;
  line-height: 1.8;
}
.experience {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 110px;
}
.experience-intro > p:not(.eyebrow) {
  max-width: 350px;
  font-size: 14px;
  line-height: 1.85;
  margin-top: 27px;
}
.experience-intro > .text-link {
  margin-top: 23px;
}
.experience-note {
  display: flex;
  gap: 20px;
  margin-top: 65px;
  max-width: 290px;
}
.experience-note > span {
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}
.experience-note p {
  font-size: 16px;
  line-height: 1.65;
}
.timeline {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}
.timeline-entry {
  position: relative;
  margin-bottom: 32px;
  padding-bottom: 29px;
  border-bottom: 1px solid var(--line);
}
.timeline-entry:before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid #6b7b88;
  background: var(--paper);
  position: absolute;
  left: -39px;
  top: 5px;
}
.timeline-entry.current:before {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 5px var(--paper);
}
.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 11px/1.7 var(--mono);
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 15px;
}
.current-badge {
  color: var(--accent);
  border: 1px solid #784a41;
  padding: 2px 7px;
  font-size: 11px;
}
.timeline-entry h3 {
  font-size: 26px;
  margin-bottom: 8px;
}
.timeline-entry .role {
  color: #dae0e5;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.timeline-entry > p:not(.role) {
  font-size: 14px;
  line-height: 1.85;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.tags > span {
  border: 1px solid #3a444e;
  padding: 3px 8px;
  font: 11px/1.6 var(--mono);
  color: #b0bdc7;
}
.earlier-experience {
  margin-top: -10px;
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
  font-weight: 600;
  padding-block: 8px;
}
summary::-webkit-details-marker {
  display: none;
}
.details-plus {
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
}
.earlier-experience[open] .details-plus {
  transform: rotate(45deg);
}
.earlier-list article {
  border-bottom: 1px solid var(--line);
  padding-block: 18px;
}
.earlier-list h3 {
  font-size: 16px;
  letter-spacing: -0.2px;
  margin-top: 7px;
}
.earlier-list time {
  font: 11px var(--mono);
  color: var(--accent);
}
.earlier-list p {
  font-size: 14px;
  margin-top: 8px;
}
.knowledge-section {
  padding-block: 78px;
  background: #1a222a;
  border-block: 1px solid var(--line);
}
.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.knowledge-grid h2 {
  font-size: 38px;
}
.skill-group + .skill-group {
  margin-top: 25px;
}
.skill-group h3 {
  font-size: 15px;
  letter-spacing: -0.2px;
}
.skill-group p {
  font-size: 14px;
  line-height: 2;
  margin-top: 9px;
}
.education {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-block: 28px 23px;
  padding-top: 24px;
  border-top: 1px solid #3d4852;
}
.education .eyebrow {
  font-size: 11px;
}
.education h3 {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 7px;
}
.project-category {
  font: 11px/1.6 var(--mono);
  letter-spacing: 1px;
  color: #9cabb7;
  margin-bottom: 9px;
}
.photo-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 25px;
  align-items: stretch;
}
.photo-grid figure {
  position: relative;
  overflow: hidden;
  height: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.photo-grid img {
  height: 100%;
  filter: saturate(0.7);
  transition: transform 0.5s;
}
.photo-grid figure:hover img {
  transform: scale(1.02);
}
.outside-photo img {
  object-position: 64% center;
}
.racing-photo img {
  object-position: center 25%;
}
.photo-grid figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff;
  padding: 65px 26px 24px;
  background: linear-gradient(transparent, #0d141bea);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.photo-label {
  font: 11px/1.6 var(--mono);
  letter-spacing: 1.5px;
  color: #ffd3cb;
}
.photo-grid figcaption > span:last-child {
  font-size: 20px;
  letter-spacing: -0.4px;
  font-weight: 500;
  line-height: 1.4;
}
.personal-tags {
  display: flex;
  justify-content: center;
  gap: 26px;
  padding-top: 32px;
  font: 11px/1.8 var(--mono);
  color: var(--muted);
}
.personal-tags > span:nth-child(even) {
  color: var(--accent);
}
.contact-section {
  padding-block: 85px;
  border-block: 1px solid #3c4853;
  background: #1c2731;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 90px;
  align-items: center;
}
.contact-section .eyebrow {
  color: var(--accent);
  margin-bottom: 25px;
}
.contact-section h2 {
  font-size: 48px;
}
.contact-section p:not(.eyebrow) {
  font-size: 14px;
  margin-top: 25px;
  max-width: 470px;
}
.contact-button {
  margin-top: 30px;
}
.contact-links {
  display: flex;
  flex-direction: column;
}
.contact-links a {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #49545e;
  padding-block: 20px;
  font-size: 15px;
}
.contact-links a > span {
  color: var(--accent);
}
.contact-links a:hover {
  color: var(--accent);
}
.site-footer {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-block: 30px;
}
.site-footer .brand {
  font-size: 29px;
}
.site-footer p {
  font-size: 11px;
}
.back-top {
  font-size: 11px;
  margin-left: auto;
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 10px 20px;
  background: var(--accent);
  color: #101419;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
@media (min-width: 1500px) {
  .hero {
    padding-block: 94px;
  }
  .hero h1 {
    font-size: 78px;
  }
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 72px);
  }
  .brand-name {
    display: none;
  }
  .nav-wrap nav {
    gap: 24px;
  }
  .hero {
    gap: 50px;
  }
  .hero h1 {
    font-size: 59px;
  }
  .hero-visual {
    max-width: 365px;
  }
  .about,
  .knowledge-grid {
    gap: 55px;
  }
  .about h2 {
    font-size: 36px;
  }
  .expertise-card {
    padding: 22px;
  }
  .expertise-card h3 {
    font-size: 20px;
  }
  .expertise-stack {
    font-size: 11px;
  }
  .focus-grid {
    gap: 25px;
  }
  .focus-grid article {
    gap: 12px;
  }
  .experience {
    gap: 65px;
  }
  .knowledge-grid h2 {
    font-size: 34px;
  }
  .contact-section h2 {
    font-size: 40px;
  }
  .contact-inner {
    gap: 65px;
  }
  .photo-grid figure {
    height: 370px;
  }
}
@media (max-width: 800px) {
  .container {
    width: calc(100% - 48px);
  }
  .nav-wrap {
    height: 72px;
  }
  .nav-wrap nav {
    gap: 18px;
  }
  .nav-wrap nav a {
    font-size: 12px;
  }
  .nav-contact {
    display: none;
  }
  .hero {
    gap: 32px;
    padding-block: 60px;
  }
  .hero h1 {
    font-size: 46px;
    letter-spacing: -2px;
  }
  .hero h1 > .hero-name {
    font-size: 17px;
  }
  .hero-copy > .eyebrow {
    font-size: 11px;
    letter-spacing: 0.8px;
    gap: 7px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-links {
    gap: 20px;
  }
  .hero-links .button {
    font-size: 11px;
    padding: 13px;
    gap: 17px;
  }
  .hero-links .text-link {
    font-size: 11px;
    gap: 7px;
  }
  .hero-visual {
    padding-left: 10px;
    padding-bottom: 10px;
  }
  .hero-visual:before {
    right: -5px;
  }
  .photo-caption {
    padding: 40px 15px 17px;
  }
  .photo-caption > span:first-child {
    font-size: 17px;
  }
  .photo-caption > span:last-child {
    font-size: 11px;
  }
  .hero-technical {
    font-size: 11px;
    margin-top: 14px;
  }
  .hero-location {
    font-size: 11px;
  }
  .expertise-strip > .container {
    font-size: 11px;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding-block: 17px;
    min-height: 70px;
    row-gap: 6px;
  }
  .expertise-strip span {
    gap: 8px;
  }
  .section {
    padding-block: 75px;
  }
  .about {
    gap: 38px;
  }
  .about h2 {
    font-size: 30px;
  }
  .about-copy .lead {
    font-size: 18px;
  }
  .about-copy > p {
    font-size: 14px;
  }
  .about-facts {
    gap: 14px;
  }
  .about-facts strong {
    font-size: 25px;
  }
  .about-facts span {
    font-size: 11px;
  }
  .section-heading {
    gap: 35px;
  }
  .section-heading h2 {
    font-size: 34px;
  }
  .section-heading > p {
    max-width: 220px;
    font-size: 12px;
  }
  .expertise-grid {
    gap: 12px;
  }
  .expertise-card {
    padding: 18px;
  }
  .expertise-card h3 {
    font-size: 18px;
  }
  .expertise-card p {
    font-size: 14px;
  }
  .expertise-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }
  .expertise-index {
    font-size: 11px;
  }
  .expertise-card svg {
    width: 32px;
  }
  .focus-grid {
    gap: 20px;
  }
  .focus-grid article {
    flex-direction: column;
  }
  .focus-grid h3 {
    font-size: 16px;
  }
  .focus-grid p {
    font-size: 12px;
  }
  .experience {
    grid-template-columns: 0.85fr 1fr;
    gap: 40px;
  }
  .experience-intro h2 {
    font-size: 33px;
  }
  .experience-intro > p:not(.eyebrow) {
    font-size: 14px;
  }
  .experience-intro > .text-link {
    font-size: 11px;
  }
  .timeline {
    padding-left: 25px;
  }
  .timeline-entry:before {
    left: -30px;
  }
  .knowledge-grid {
    grid-template-columns: 0.85fr 1fr;
    gap: 38px;
  }
  .knowledge-grid h2 {
    font-size: 29px;
  }
  .education {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .photo-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
  }
  .photo-grid figure {
    height: 340px;
  }
  .photo-grid figcaption {
    padding: 50px 18px 20px;
  }
  .photo-grid figcaption > span:last-child {
    font-size: 18px;
  }
  .personal-tags {
    font-size: 11px;
    gap: 16px;
  }
  .contact-inner {
    grid-template-columns: 1fr 160px;
    gap: 40px;
  }
  .contact-section h2 {
    font-size: 34px;
  }
  .site-footer {
    gap: 20px;
  }
  .site-footer p,
  .back-top {
    font-size: 11px;
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 85px;
  }
  .container {
    width: calc(100% - 40px);
  }
  .nav-wrap {
    height: 68px;
  }
  .brand {
    font-size: 29px;
  }
  .brand-name {
    display: inline;
    font-size: 12px;
    margin-left: 16px;
  }
  .nav-actions {
    gap: 25px;
  }
  .menu-toggle {
    display: flex;
    width: 24px;
    height: 24px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
  }
  .menu-toggle span {
    width: 22px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.2s;
  }
  .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);
  }
  .nav-wrap nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 16px 20px 26px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
  }
  .nav-wrap nav.open {
    display: flex;
  }
  .nav-wrap nav a {
    display: block;
    font-size: 16px;
    padding: 10px 0;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 42px 45px;
    gap: 39px;
  }
  .hero-copy > .eyebrow {
    font-size: 11px;
    letter-spacing: 0.7px;
    margin-bottom: 25px;
  }
  .hero h1 {
    font-size: clamp(41px, 11.6vw, 65px);
    line-height: 1.07;
    letter-spacing: -2.1px;
  }
  .hero h1 > .hero-name {
    font-size: 18px;
    margin-bottom: 18px;
  }
  .hero-description {
    font-size: 14px;
    margin-top: 24px;
  }
  .hero-links {
    gap: 25px;
    margin-top: 24px;
  }
  .hero-links .button {
    font-size: 12px;
    padding: 14px 17px;
    gap: 23px;
  }
  .hero-links .text-link {
    font-size: 12px;
  }
  .hero-location {
    font-size: 11px;
    margin-top: 25px;
  }
  .hero-visual {
    width: 88%;
    max-width: 360px;
    justify-self: center;
    padding-left: 12px;
    padding-bottom: 12px;
    margin-right: 6px;
  }
  .hero-visual:before {
    inset: 18px -12px 0 0;
  }
  .portrait-frame {
    aspect-ratio: 1.12;
  }
  .photo-caption {
    padding: 45px 19px 18px;
  }
  .photo-caption > span:first-child {
    font-size: 19px;
  }
  .photo-caption > span:last-child {
    font-size: 11px;
  }
  .hero-technical {
    font-size: 11px;
    gap: 4px 13px;
  }
  .expertise-strip > .container {
    padding-block: 20px;
    font-size: 11px;
    gap: 10px 18px;
  }
  .section {
    padding-block: 62px;
  }
  .section-number {
    font-size: 11px;
    margin-bottom: 20px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about h2 {
    font-size: 34px;
  }
  .about-copy .lead {
    font-size: 20px;
    margin-bottom: 18px;
  }
  .about-copy > p {
    font-size: 14px;
  }
  .about-facts {
    margin-top: 27px;
    padding-top: 21px;
  }
  .about-facts strong {
    font-size: 28px;
  }
  .about-facts span {
    font-size: 11px;
  }
  .section-heading {
    display: block;
    margin-bottom: 28px;
  }
  .section-heading h2 {
    font-size: 34px;
  }
  .section-heading > p {
    max-width: 340px;
    margin-top: 21px;
    font-size: 14px;
  }
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .expertise-card {
    padding: 24px;
  }
  .expertise-card-top {
    flex-direction: row;
    align-items: center;
    margin-bottom: 21px;
  }
  .expertise-index {
    font-size: 11px;
  }
  .expertise-card svg {
    width: 36px;
  }
  .expertise-card h3 {
    font-size: 23px;
    margin-bottom: 15px;
  }
  .expertise-card p {
    font-size: 14px;
  }
  .expertise-stack {
    font-size: 11px;
    margin-top: 22px;
  }
  .focus-heading {
    margin-top: 30px;
  }
  .focus-heading .eyebrow {
    font-size: 11px;
  }
  .focus-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .focus-grid article {
    flex-direction: row;
    gap: 18px;
  }
  .focus-code {
    min-width: 34px;
  }
  .focus-grid h3 {
    font-size: 18px;
  }
  .focus-grid p {
    font-size: 14px;
  }
  .experience {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .experience-intro h2 {
    font-size: 35px;
  }
  .experience-intro > p:not(.eyebrow) {
    font-size: 14px;
    margin-top: 22px;
  }
  .experience-intro > .text-link {
    font-size: 12px;
    margin-top: 18px;
  }
  .experience-note {
    display: none;
  }
  .timeline {
    margin-left: 4px;
    padding-left: 26px;
  }
  .timeline-entry:before {
    left: -31px;
  }
  .timeline-entry .role {
    font-size: 14px;
  }
  .timeline-entry h3 {
    font-size: 27px;
  }
  .earlier-list p {
    font-size: 14px;
  }
  .knowledge-section {
    padding-block: 58px;
  }
  .knowledge-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .knowledge-grid h2 {
    font-size: 31px;
  }
  .skill-group p {
    font-size: 14px;
  }
  .education {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .education h3 {
    font-size: 14px;
  }
  .tags > span {
    font-size: 11px;
  }
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .photo-grid figure {
    height: 330px;
  }
  .photo-grid .racing-photo {
    height: 390px;
  }
  .racing-photo img {
    object-position: center 28%;
  }
  .photo-grid figcaption {
    padding: 55px 23px 23px;
  }
  .photo-grid figcaption > span:last-child {
    font-size: 20px;
  }
  .personal-tags {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    padding-top: 25px;
  }
  .personal-tags > span:nth-child(6) {
    display: none;
  }
  .contact-section {
    padding-block: 62px;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-section h2 {
    font-size: 34px;
    line-height: 1.2;
  }
  .contact-section p:not(.eyebrow) {
    margin-top: 22px;
  }
  .contact-links {
    flex-direction: row;
    gap: 25px;
  }
  .contact-links a {
    flex: 1;
    font-size: 14px;
    padding-block: 13px;
    gap: 10px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 18px;
    padding-block: 26px;
  }
  .site-footer p {
    flex: 1;
    font-size: 11px;
    min-width: 200px;
  }
  .site-footer .brand {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* Readable labels and comfortable interactive targets at every breakpoint. */
.nav-wrap nav a,
.language,
.nav-contact,
.text-link,
.back-top {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.language {
  font-size: 12px;
}
.nav-wrap nav a {
  font-size: 14px;
}
.nav-contact {
  font-size: 14px;
}
.menu-toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}
.hero-copy > .eyebrow {
  flex-wrap: wrap;
}
.hero-description {
  font-size: 16px;
  line-height: 1.8;
}
.hero-location {
  align-items: flex-start;
}
.hero-location > span:last-child {
  padding-top: 3px;
}
.hero-technical {
  font-size: 11px;
  letter-spacing: 0;
}
.photo-caption > span:last-child {
  font-size: 12px;
  line-height: 1.5;
}
.expertise-strip > .container {
  flex-wrap: wrap;
  row-gap: 8px;
  padding-block: 18px;
}
.eyebrow,
.section-number,
.expertise-index {
  letter-spacing: 1px;
}
.about-facts span {
  font-size: 12px;
}
.section-heading > p,
.experience-intro > p:not(.eyebrow),
.expertise-card p,
.timeline-entry > p:not(.role),
.skill-group p,
.contact-section p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.8;
}
.focus-grid p,
.earlier-list p {
  font-size: 14px;
  line-height: 1.8;
}
.timeline-entry .role {
  font-size: 14px;
  line-height: 1.6;
}
.timeline-meta {
  flex-wrap: wrap;
  gap: 7px;
  font-size: 11px;
}
.tags {
  gap: 7px;
}
.tags > span {
  font-size: 11px;
  line-height: 1.5;
  padding: 5px 9px;
}
.project-category {
  font-size: 11px;
  letter-spacing: 0.6px;
  line-height: 1.7;
}
.photo-label,
.personal-tags,
.site-footer p,
.back-top {
  font-size: 12px;
}
.site-footer {
  flex-wrap: wrap;
}
.site-footer p {
  line-height: 1.7;
}
summary {
  min-height: 44px;
  font-size: 14px;
  align-items: center;
}

.enterprise-projects {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.enterprise-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.enterprise-project-card {
  padding: 30px;
  background: #151b21;
  border: 1px solid #35404a;
}
.enterprise-project-card h3 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 18px;
}
.enterprise-project-card > p:not(.project-category) {
  font-size: 15px;
  line-height: 1.8;
}
.enterprise-project-card .tags {
  margin-top: 24px;
}

@media (min-width: 601px) and (max-width: 950px) {
  .nav-wrap {
    gap: 20px;
  }
  .nav-wrap nav {
    gap: 18px;
  }
  .nav-actions {
    gap: 15px;
  }
  .hero-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .hero-links .button {
    font-size: 14px;
    padding: 14px 18px;
  }
  .hero-links .text-link {
    font-size: 14px;
  }
  .hero {
    gap: 30px;
  }
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .expertise-card-top {
    flex-direction: row;
    align-items: center;
  }
  .expertise-card h3 {
    font-size: 23px;
  }
  .focus-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .focus-grid article {
    flex-direction: row;
  }
  .focus-grid h3 {
    font-size: 18px;
  }
  .experience,
  .knowledge-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .experience-intro > p:not(.eyebrow) {
    max-width: 600px;
  }
  .experience-note {
    display: none;
  }
  .education {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-inner {
    grid-template-columns: 1fr 180px;
  }
  .contact-links a {
    font-size: 15px;
  }
}
@media (max-width: 600px) {
  .brand-name {
    font-size: 12px;
    margin-left: 12px;
  }
  .nav-actions {
    gap: 12px;
  }
  .hero-copy > .eyebrow {
    font-size: 11px;
    letter-spacing: 0.6px;
    gap: 8px;
  }
  .hero-copy > .eyebrow > span:last-child {
    max-width: calc(100% - 16px);
  }
  .hero-description {
    font-size: 16px;
  }
  .hero-links {
    flex-wrap: wrap;
    gap: 12px 22px;
  }
  .hero-links .button,
  .hero-links .text-link {
    font-size: 14px;
  }
  .hero-links .button {
    padding: 14px 17px;
    gap: 20px;
  }
  .hero-location {
    font-size: 12px;
  }
  .hero-visual {
    width: 92%;
  }
  .portrait-frame {
    aspect-ratio: 0.98;
  }
  .photo-caption {
    padding: 60px 18px 20px;
  }
  .photo-caption > span:last-child {
    font-size: 11px;
  }
  .hero-technical {
    font-size: 11px;
    gap: 6px 12px;
  }
  .expertise-strip > .container {
    font-size: 12px;
    justify-content: flex-start;
    gap: 12px 20px;
  }
  .section-number {
    font-size: 11px;
  }
  .about-copy > p {
    font-size: 15px;
  }
  .about-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .about-facts span {
    font-size: 11px;
    line-height: 1.6;
  }
  .expertise-index,
  .expertise-stack,
  .focus-heading .eyebrow,
  .education .eyebrow {
    font-size: 11px;
  }
  .expertise-stack {
    overflow-wrap: anywhere;
  }
  .focus-grid h3 {
    font-size: 19px;
  }
  .experience-intro > .text-link {
    font-size: 14px;
  }
  .timeline-meta {
    font-size: 11px;
  }
  .earlier-list time {
    font-size: 11px;
  }
  .earlier-list h3 {
    font-size: 19px;
  }
  .education h3 {
    font-size: 14px;
  }
  .personal-tags {
    font-size: 11px;
  }
  .site-footer {
    gap: 18px;
  }
  .site-footer p {
    font-size: 12px;
    min-width: 0;
    flex-basis: calc(100% - 70px);
  }
  .back-top {
    font-size: 12px;
  }
  .contact-links {
    gap: 22px;
  }
  .contact-links a {
    font-size: 14px;
  }
  .enterprise-project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .enterprise-project-card {
    padding: 24px;
  }
  .enterprise-project-card h3 {
    font-size: 23px;
  }
}
@media (max-width: 800px) {
  .nav-contact {
    display: none;
  }
}
@media (max-width: 600px) {
  .nav-wrap {
    gap: 12px;
  }
}

/* Project catalogue: application links are limited to the three public entries. */
.projects-section {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.filter {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  transition: border-color 0.2s;
}
.filter.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}
.filter:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
  background: #151b21;
  border: 1px solid #35404a;
}
.project-card-public {
  border-top: 3px solid var(--brand);
  padding-top: 24px;
}
.project-card[hidden] {
  display: none;
}
.project-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 12px;
  margin-bottom: 19px;
}
.project-card-top .project-category {
  margin-bottom: 0;
  color: #aebac5;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.project-status {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 3px 7px;
  border: 1px solid #4a5660;
  color: #bbc5ce;
  font: 11px/1.5 var(--mono);
  letter-spacing: 0.6px;
}
.project-status-public {
  color: var(--accent);
  border-color: #79443d;
}
.project-card h3 {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  overflow-wrap: anywhere;
  margin-bottom: 15px;
}
.project-card h3 a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  margin-top: -7px;
  margin-bottom: -7px;
  transition: color 0.2s;
}
.project-card h3 a:hover {
  color: var(--accent);
}
.project-card h3 a > span {
  color: var(--accent);
  font-size: 21px;
}
.project-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 24px;
}
.project-card .tags {
  margin-top: auto;
  padding-top: 1px;
}
.contact-inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.contact-inner > div {
  max-width: 800px;
}
.contact-button {
  max-width: 100%;
  gap: 22px;
}
.contact-button > span:first-child {
  min-width: 0;
}
@media (max-width: 1100px) {
  .project-card {
    padding: 22px;
  }
  .project-card-public {
    padding-top: 20px;
  }
  .project-grid {
    gap: 18px;
  }
}
@media (max-width: 950px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .project-card {
    padding: 24px;
  }
  .project-card-public {
    padding-top: 22px;
  }
  .project-card h3 {
    font-size: 25px;
  }
  .project-status {
    font-size: 11px;
  }
  .filter {
    padding-inline: 13px;
    font-size: 12px;
  }
  .contact-button {
    font-size: 14px;
    padding: 14px 16px;
    gap: 14px;
    line-height: 1.5;
  }
}

/* Six illustrated projects lead the catalogue; remaining entries stay compact. */
.project-card-featured {
  padding: 0;
  overflow: hidden;
}
.project-card-featured.project-card-public {
  padding-top: 0;
}
.project-illustration {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 7;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
  border-bottom: 1px solid #35404a;
}
.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
}
@media (max-width: 1100px) {
  .project-card-featured,
  .project-card-featured.project-card-public {
    padding: 0;
  }
  .project-card-body {
    padding: 22px;
  }
}
@media (max-width: 600px) {
  .project-card-featured,
  .project-card-featured.project-card-public {
    padding: 0;
  }
  .project-card-body {
    padding: 24px;
  }
}

/* Compact gallery follows the same left-to-right order as the page content. */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  min-width: 0;
  height: 230px;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.gallery-item img[src*="03-musica"] {
  object-position: center 75%;
}
.gallery-item img[src*="02-retrato"] {
  object-position: center 18%;
}
.gallery-item img[src*="01-encontro"] {
  object-position: center 40%;
}
.gallery-item img[src*="11-montanha"] {
  object-position: center 48%;
}
.gallery-item img[src*="05-oracle-racing"] {
  object-position: center 45%;
}
.gallery-item img[src*="12-praia"] {
  object-position: center 22%;
}
.gallery-item figcaption {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: flex-start;
  padding: 14px;
  pointer-events: none;
}
.gallery-item figcaption > span {
  display: inline-block;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font: 600 12px/1.5 var(--mono);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* All six page sections remain available in the responsive navigation. */
.nav-wrap nav {
  gap: 24px;
}
.contact-inner {
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 80px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-links a {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 17px;
  border-bottom: 1px solid #49545e;
  font-size: 15px;
}
@media (max-width: 1100px) {
  .nav-wrap nav {
    gap: 20px;
  }
  .contact-inner {
    gap: 50px;
  }
}
@media (max-width: 900px) {
  .nav-wrap {
    height: 72px;
    gap: 20px;
  }
  .nav-actions {
    gap: 14px;
  }
  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
  .menu-toggle span {
    width: 22px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.2s;
  }
  .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);
  }
  .nav-wrap nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 14px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    flex-direction: column;
    gap: 0;
  }
  .nav-wrap nav.open {
    display: flex;
  }
  .nav-wrap nav a {
    display: flex;
    min-height: 44px;
    padding: 9px 0;
    font-size: 16px;
  }
  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .gallery-item {
    height: 220px;
  }
  .contact-inner {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 40px;
  }
}
@media (max-width: 700px) {
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .contact-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .contact-links a {
    padding-block: 13px;
    font-size: 14px;
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .nav-wrap {
    height: 68px;
    gap: 12px;
  }
  .nav-wrap nav {
    top: 68px;
    padding-inline: 20px;
  }
}
@media (max-width: 520px) {
  .photo-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .gallery-item {
    height: 210px;
  }
}
