:root {
  --ink: #0b0d10;
  --ink-soft: #101419;
  --panel: #151a20;
  --panel-raised: #1b2128;
  --line: rgba(244, 241, 234, 0.14);
  --line-strong: rgba(244, 241, 234, 0.28);
  --paper: #f4f1ea;
  --muted: #a7adb5;
  --accent: #f0a261;
  --accent-deep: #c8763b;
  --accent-soft: rgba(240, 162, 97, 0.12);
  --max: 1240px;
  --header-height: 82px;
  --radius: 24px;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Manrope", "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    radial-gradient(circle at 76% 10%, rgba(240, 162, 97, 0.08), transparent 29rem),
    var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  color: var(--ink);
  background: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.section-block {
  padding-block: 128px;
  scroll-margin-top: var(--header-height);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(11, 13, 16, 0.74);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(11, 13, 16, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 0.93rem;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
}

.site-nav a {
  position: relative;
  color: #c8cbd0;
  font-size: 0.87rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.site-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--paper);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  padding: 10px 16px;
  color: var(--ink) !important;
  background: var(--paper);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: 72px 96px;
}

.eyebrow,
.section-index {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.hero-role {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.hero-intro {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.contact-mail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

.button-primary:hover {
  background: #ffb271;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
}

.button-secondary:hover {
  border-color: var(--paper);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 46px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-facts li {
  display: grid;
  gap: 2px;
}

.hero-facts strong {
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.05rem;
}

.hero-facts span {
  color: var(--muted);
  font-size: 0.78rem;
}

.portrait-stage {
  position: relative;
  display: grid;
  min-height: 590px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(150deg, rgba(240, 162, 97, 0.11), transparent 40%),
    var(--ink-soft);
}

.portrait-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 48%, black 5%, transparent 70%);
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: min(72%, 390px);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 8px solid rgba(244, 241, 234, 0.92);
  border-radius: 50%;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.38);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(11, 13, 16, 0.2);
}

.portrait-ring {
  position: absolute;
  border: 1px solid rgba(240, 162, 97, 0.38);
  border-radius: 50%;
}

.portrait-ring::before,
.portrait-ring::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(240, 162, 97, 0.1);
}

.portrait-ring-one {
  width: 78%;
  aspect-ratio: 1;
  animation: orbit 28s linear infinite;
}

.portrait-ring-one::before {
  top: 17%;
  left: 2%;
}

.portrait-ring-one::after {
  right: 6%;
  bottom: 18%;
}

.portrait-ring-two {
  width: 94%;
  aspect-ratio: 1;
  border-color: rgba(244, 241, 234, 0.12);
  animation: orbit-reverse 42s linear infinite;
}

.portrait-ring-two::before {
  top: 6%;
  right: 20%;
}

.portrait-ring-two::after {
  bottom: 8%;
  left: 22%;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes orbit-reverse {
  to { transform: rotate(-360deg); }
}

.portrait-label {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(10px);
  color: #d8d9da;
  font-size: 0.75rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #75d39b;
  box-shadow: 0 0 0 4px rgba(117, 211, 155, 0.1);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

.section-heading .section-index {
  padding-top: 12px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.section-note {
  grid-column: 2;
  max-width: 680px;
  margin: -24px 0 0;
  color: var(--muted);
}

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

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 48px;
}

.profile-lead p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.32;
}

.profile-details {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.04rem;
}

.profile-details p:first-child {
  margin-top: 0;
}

.profile-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.profile-principles span,
.tag-list li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d6d8dc;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.78rem;
}

.projects,
.journey {
  background: var(--ink-soft);
  border-block: 1px solid var(--line);
}

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

.project-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.project-card:hover {
  border-color: rgba(240, 162, 97, 0.45);
  background: var(--panel-raised);
  transform: translateY(-4px);
}

.project-card-featured {
  grid-column: 1 / -1;
  min-height: 480px;
  background:
    radial-gradient(circle at 88% 16%, rgba(240, 162, 97, 0.16), transparent 22rem),
    var(--panel);
}

.project-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 {
  max-width: 760px;
  margin: 38px 0 20px;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.2vw, 3.45rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.project-card:not(.project-card-featured) h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
}

.project-card p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 800px;
  margin: 42px 0 0;
}

.project-metrics div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.project-metrics dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.project-metrics dd {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
}

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

.expertise-list {
  border-top: 1px solid var(--line-strong);
}

.expertise-row {
  display: grid;
  grid-template-columns: 70px minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.expertise-number {
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.8rem;
}

.expertise-row h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.expertise-row p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 48px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.timeline-item h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.7vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.timeline-item p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
}

.certification-panel {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 48px;
  margin-top: 72px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(240, 162, 97, 0.34);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.certification-panel h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.certification-panel ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.certification-panel li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(240, 162, 97, 0.24);
}

.certification-panel li:last-child {
  border-bottom: 0;
}

.certification-panel li span {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}

.certification-panel li small {
  color: var(--muted);
  text-align: right;
}

.contact {
  padding-bottom: 72px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(48px, 8vw, 110px);
  padding: clamp(34px, 6vw, 76px);
  border-radius: 32px;
  background: var(--paper);
  color: var(--ink);
}

.contact-card .section-index {
  color: var(--accent-deep);
}

.contact-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.contact-card p {
  max-width: 650px;
  margin: 26px 0 0;
  color: #535860;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact-mail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 2px solid var(--ink);
  font-family: var(--display);
  font-size: clamp(1rem, 1.65vw, 1.3rem);
  font-weight: 700;
}

.contact-mail span:last-child {
  font-size: 1.8rem;
  transition: transform 160ms ease;
}

.contact-mail:hover span:last-child {
  transform: translate(4px, -4px);
}

.contact-actions p {
  font-size: 0.82rem;
}

.personal-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.personal-note p {
  max-width: 780px;
  margin: 0;
}

.personal-note span {
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding-block: 26px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a:hover {
  color: var(--paper);
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal-delay {
  transition-delay: 120ms;
}

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

@media (max-width: 980px) {
  :root {
    --header-height: 72px;
  }

  .section-block {
    padding-block: 96px;
  }

  .site-header {
    min-height: var(--header-height);
  }

  .nav-toggle {
    position: relative;
    z-index: 3;
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: inherit;
    background: var(--panel);
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    width: min(86vw, 390px);
    height: 100svh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    padding: 88px 34px 34px;
    border-left: 1px solid var(--line);
    background: rgba(15, 18, 22, 0.98);
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 14px 0;
    font-family: var(--display);
    font-size: 1.25rem;
  }

  .nav-contact {
    margin-top: 14px;
    padding: 13px 18px !important;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-block: 70px 90px;
  }

  .portrait-stage {
    min-height: 560px;
  }

  .section-heading,
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading .section-index {
    padding-top: 0;
  }

  .section-note {
    grid-column: 1;
    margin-top: -10px;
  }

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

  .project-card-featured {
    grid-column: auto;
  }

  .expertise-row {
    grid-template-columns: 48px 0.8fr 1.2fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .section-shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .section-block {
    padding-block: 78px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-block: 50px 74px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 18vw, 5.5rem);
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .hero-facts li {
    grid-template-columns: 90px 1fr;
    align-items: baseline;
  }

  .portrait-stage {
    min-height: 450px;
    border-radius: 24px;
  }

  .portrait-frame {
    width: min(70%, 300px);
    border-width: 6px;
  }

  .portrait-label {
    right: 16px;
    bottom: 16px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .project-card {
    min-height: 390px;
  }

  .project-metrics {
    grid-template-columns: 1fr;
  }

  .expertise-row {
    grid-template-columns: 38px 1fr;
    gap: 14px;
  }

  .expertise-row p {
    grid-column: 2;
  }

  .timeline-item,
  .certification-panel {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .certification-panel li {
    display: grid;
    gap: 2px;
  }

  .certification-panel li small {
    text-align: left;
  }

  .contact-card {
    padding: 34px 26px;
    border-radius: 24px;
  }

  .contact-mail {
    align-items: flex-end;
    overflow-wrap: anywhere;
  }

  .personal-note,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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