:root {
  --bg-0: #0b0f13;
  --bg-1: #141b23;
  --surface-0: rgba(22, 28, 35, 0.74);
  --surface-1: rgba(31, 39, 49, 0.8);
  --surface-flat: rgba(28, 35, 44, 0.66);
  --line-soft: rgba(173, 186, 201, 0.24);
  --line-strong: rgba(184, 199, 216, 0.44);
  --text-0: #ecf1f6;
  --text-1: #b9c3cf;
  --accent-0: #9b7746;
  --accent-1: #adc6da;
  --accent-2: #6f8196;
  --danger-focus: #ff7f50;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-panel: 0 22px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.25);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text-0);
  background: radial-gradient(circle at 8% -10%, #2c3846 0%, transparent 42%),
    radial-gradient(circle at 84% 4%, #3e3226 0%, transparent 36%),
    linear-gradient(170deg, var(--bg-0), var(--bg-1));
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #ffffff;
  color: #11202e;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(68px);
  opacity: 0.34;
}

.orb-a {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 40px;
  background: #7a8ea3;
}

.orb-b {
  width: 320px;
  height: 320px;
  right: -80px;
  top: 220px;
  background: #8f6e42;
}

.grid-noise {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 90%);
}

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(195, 220, 235, 0.12);
  background: rgba(10, 18, 24, 0.62);
}

.header-inner {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.brand-wrap::before {
  content: none;
}

.brand-wrap::after {
  content: none;
}

.brand-logo {
  display: block;
  height: 112px;
  width: auto;
  max-width: min(460px, 62vw);
  object-fit: contain;
  filter: drop-shadow(0 5px 18px rgba(173, 198, 218, 0.22));
}

.eyebrow,
.section-kicker,
.brand-subtitle,
.chip,
.timeline-year,
.contact-card span {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  font-size: 0.86rem;
  color: var(--accent-1);
  font-weight: 600;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.18rem;
  font-family: "Sora", "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.83rem;
  letter-spacing: 0.09em;
  font-weight: 500;
  color: var(--text-0);
  text-transform: uppercase;
  line-height: 1;
  isolation: isolate;
  font-feature-settings: "ss01" 1;
}

.brand-mark span:first-child {
  color: rgba(236, 244, 248, 0.92);
  letter-spacing: 0.12em;
  font-weight: 400;
}

.brand-mark span:last-child {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #def7ff;
  text-shadow: 0 0 14px rgba(137, 224, 255, 0.22);
}

.brand-mark::before {
  content: "//";
  position: absolute;
  left: -1rem;
  top: 0.03rem;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  color: rgba(137, 224, 255, 0.66);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -1.18rem;
  top: -0.05rem;
  display: none;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-1);
  font-size: 0.94rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--text-0);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-0);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}

main {
  padding-bottom: 2.4rem;
}

.section {
  padding: clamp(4.3rem, 7vw, 5.8rem) 0;
}

.hero {
  padding-top: 6.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(1.6rem, 4vw, 3.8rem);
  align-items: start;
  width: 100%;
  max-width: var(--max-width);
  text-align: left;
}

.hero-copy {
  max-width: 100ch;
}

.chip {
  margin: 0 0 1.2rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem;
  color: var(--accent-1);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  max-width: 17ch;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(95deg, var(--accent-0), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--text-1);
  max-width: 65ch;
  margin: 1.3rem 0 0;
}

.hero-support {
  color: var(--text-1);
  max-width: 68ch;
  margin: 0.95rem 0 0;
}

.hero-highlights {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-highlights li {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.8rem;
  color: var(--accent-1);
  background: rgba(137, 224, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-highlights li:hover,
.hero-highlights li:focus-within {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(137, 224, 255, 0.12);
}

.impact-strip {
  margin: 1rem 0 0;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.impact-strip div {
  padding: 0.4rem 0.45rem;
  border-radius: 10px;
  background: rgba(137, 224, 255, 0.05);
}

.impact-strip dt {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 1rem;
  color: var(--accent-1);
  margin: 0;
}

.impact-strip dd {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: var(--text-1);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-motif {
  margin: 0;
  justify-self: end;
  align-self: start;
  display: grid;
  justify-items: center;
}

.hero-motif-visual {
  --hero-motif-size: min(36vw, 430px);
  position: relative;
  width: var(--hero-motif-size);
  height: var(--hero-motif-size);
}

.hero-motif-visual::before,
.hero-motif-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-motif-visual::before {
  inset: -5% 8% 8% -5%;
  border: 1px solid rgba(173, 198, 218, 0.22);
}

.hero-motif-visual::after {
  width: 28%;
  height: 28%;
  right: -4%;
  top: 10%;
  background: radial-gradient(circle at 35% 35%, rgba(155, 119, 70, 0.66), rgba(155, 119, 70, 0.08) 60%, transparent 70%);
  filter: blur(1px);
}

.hero-motif-ring {
  width: 100%;
  height: 100%;
  padding: clamp(0.8rem, 1.8vw, 1rem);
  border-radius: 50%;
  background:
    linear-gradient(150deg, rgba(155, 119, 70, 0.34), rgba(173, 198, 218, 0.22)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(173, 198, 218, 0.22);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.hero-motif-core {
  width: 100%;
  height: 100%;
  padding: 0.72rem;
  border-radius: 50%;
  background: linear-gradient(165deg, rgba(11, 15, 19, 0.98), rgba(24, 32, 40, 0.9));
  border: 1px solid rgba(173, 198, 218, 0.14);
}

.hero-motif img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 50%;
}

.hero-motif figcaption {
  max-width: 24ch;
  margin: 1rem auto 0;
  text-align: center;
  color: var(--text-1);
  font-size: 0.88rem;
}

.btn {
  border-radius: 12px;
  text-decoration: none;
  padding: 0.66rem 1rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(110deg, #82633b, #7e96ad);
  color: #f1fbff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}


.hero-panel,
.skill-card,
.timeline-card,
.contact-card,
.proof-card {
  border: 1px solid var(--line-soft);
  background: var(--surface-flat);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.hero-panel {
  padding: 1.35rem 1.2rem 1.2rem;
}

.hero-panel h2 {
  font-size: 1.05rem;
}

.hero-panel p {
  margin: 0.6rem 0 0;
  color: var(--text-1);
}

.hero-panel ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-1);
}

.section-heading {
  max-width: 74ch;
}

.section-kicker {
  color: var(--accent-1);
  font-size: 0.74rem;
  margin: 0 0 0.75rem;
}

.section h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  letter-spacing: -0.015em;
  max-width: 24ch;
}

.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: stretch;
}

.timeline-year {
  margin: 0;
  font-size: 0.8rem;
  color: var(--accent-1);
  align-self: center;
}

.timeline-card {
  padding: 1.1rem 1.15rem;
}

.timeline-card h3 {
  font-size: 1.04rem;
}

.timeline-card p {
  color: var(--text-1);
  margin: 0.58rem 0 0;
}

.proof-card {
  margin-top: 1.45rem;
  padding: 0.95rem 0.9rem;
}

.deliver-grid {
  margin-top: 1.45rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.deliver-card {
  border: 1px solid var(--line-soft);
  background: var(--surface-flat);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  box-shadow: none;
}

.deliver-card,
.skill-card,
.timeline-card,
.proof-card,
.contact-card {
  transition: border-color 240ms ease, background 240ms ease;
}

.deliver-card h3 {
  font-size: 0.98rem;
}

.deliver-card p {
  color: var(--text-1);
  margin: 0.6rem 0 0;
}

.deliver-principle {
  margin: 0.78rem 0 0;
  padding: 0;
  color: var(--text-1);
  font-size: 0.84rem;
}

.deliver-principle span {
  display: inline;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
  font-size: 0.67rem;
  margin-right: 0.45rem;
}

.compact-lede {
  margin-top: 0;
  margin-bottom: 0.65rem;
  max-width: 72ch;
}

.skills-grid {
  margin-top: 2rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-card {
  padding: 0.95rem 0.9rem;
  border-radius: var(--radius-md);
}

.skill-card h3 {
  font-size: 0.96rem;
  margin-bottom: 0.2rem;
}

.legacy-groups {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.62rem;
}

.legacy-group {
  border: 1px solid rgba(137, 224, 255, 0.16);
  border-radius: 10px;
  padding: 0.52rem 0.55rem 0.6rem;
  background: rgba(255, 255, 255, 0.015);
}

.legacy-heading {
  margin: 0;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.legacy-group .tag-list {
  margin-top: 0.45rem;
}

.tag-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list li {
  border: 1px solid rgba(137, 224, 255, 0.28);
  border-radius: 999px;
  padding: 0.16rem 0.56rem;
  font-size: 0.78rem;
  color: #d8e8f2;
  background: rgba(255, 255, 255, 0.025);
  transition: all 320ms ease;
}

.tag-list li:hover,
.tag-list li:focus-within {
  transform: translateY(-2px);
  border-color: var(--accent-0);
  background: rgba(77, 214, 198, 0.12);
  color: var(--accent-0);
  box-shadow: 0 4px 12px rgba(77, 214, 198, 0.15);
}

.personal-card:hover .tag-list li {
  animation: pulse-tag 1s ease-in-out infinite;
}

.personal-card:hover .tag-list li:nth-child(odd) {
  animation-delay: 0ms;
}

.personal-card:hover .tag-list li:nth-child(even) {
  animation-delay: 200ms;
}

@keyframes pulse-tag {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.personal-section {
  position: relative;
  padding-top: 6.6rem;
  background: radial-gradient(circle at 15% 20%, rgba(77, 214, 198, 0.06), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(137, 224, 255, 0.06), transparent 45%);
}

.personal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.personal-copy {
  max-width: 70ch;
}

.personal-section h2 {
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  margin: 0 0 1.3rem;
  max-width: 18ch;
  letter-spacing: -0.015em;
}

.personal-motif {
  margin: 0;
  justify-self: end;
  display: grid;
  justify-items: center;
}

.personal-motif-visual {
  --motif-size: min(34vw, 420px);
  position: relative;
  width: var(--motif-size);
  height: var(--motif-size);
}

.personal-motif-visual::before,
.personal-motif-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.personal-motif-visual::before {
  inset: 10% auto auto -6%;
  width: 88%;
  aspect-ratio: 1;
  border: 1px solid rgba(173, 198, 218, 0.22);
}

.personal-motif-visual::after {
  right: -6%;
  bottom: 14%;
  width: 24%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 30% 30%, rgba(173, 198, 218, 0.5), rgba(173, 198, 218, 0.04) 65%, transparent 70%);
  filter: blur(1px);
}

.personal-motif-ring {
  width: 100%;
  height: 100%;
  padding: clamp(0.75rem, 1.8vw, 1rem);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(173, 198, 218, 0.28), rgba(155, 119, 70, 0.18)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(173, 198, 218, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.personal-motif-core {
  width: 100%;
  height: 100%;
  padding: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(10, 18, 24, 0.96), rgba(24, 34, 45, 0.88));
  border: 1px solid rgba(173, 198, 218, 0.14);
}

.personal-motif img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 50%;
  filter: saturate(0.95) contrast(1.03);
}

.personal-motif figcaption {
  max-width: 26ch;
  margin: 1rem auto 0;
  text-align: center;
  color: var(--text-1);
  font-size: 0.88rem;
}

.contact-card {
  padding: 1rem 1.15rem;
}

.contact-card p {
  margin: 0.65rem 0;
  color: var(--text-1);
}

.contact-card span {
  color: var(--accent-1);
  font-size: 0.68rem;
  display: block;
  margin-bottom: 0.2rem;
}

.contact-card a {
  color: var(--text-0);
}

.site-footer {
  border-top: 1px solid rgba(195, 220, 235, 0.12);
  padding: 1.2rem 0;
  background: rgba(8, 14, 19, 0.62);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-1);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms cubic-bezier(0.25, 1, 0.5, 1), transform 650ms cubic-bezier(0.25, 1, 0.5, 1);
}

.section.reveal:nth-of-type(2) { transition-delay: 40ms; }
.section.reveal:nth-of-type(3) { transition-delay: 80ms; }
.section.reveal:nth-of-type(4) { transition-delay: 120ms; }
.section.reveal:nth-of-type(5) { transition-delay: 160ms; }

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

:focus-visible {
  outline: 2px solid var(--danger-focus);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .personal-grid,
  .skills-grid,
  .deliver-grid {
    grid-template-columns: 1fr;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-year {
    margin-top: 0.3rem;
  }

  .hero-motif {
    justify-self: center;
  }

  .hero-motif-visual {
    --hero-motif-size: min(72vw, 360px);
  }

  .personal-motif {
    justify-self: center;
  }

  .personal-motif-visual {
    --motif-size: min(72vw, 360px);
  }

  .personal-motif-ring {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero {
    padding-top: 4.9rem;
  }

  .header-inner {
    min-height: 104px;
  }

  h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.5rem);
    max-width: 16ch;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand-wrap {
    padding: 0;
  }

  .brand-logo {
    height: 76px;
    max-width: min(300px, 66vw);
  }

  .site-nav {
    position: absolute;
    right: 0.8rem;
    top: 84px;
    min-width: 170px;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(9, 16, 22, 0.95);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.45rem;
    border-radius: 8px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .btn,
  .reveal {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
