:root {
  --bg: #f2eee5;
  --bg-strong: #0d3c33;
  --bg-deep: #082820;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --text: #102019;
  --text-soft: rgba(16, 32, 25, 0.72);
  --line: rgba(16, 32, 25, 0.14);
  --accent: #b8ff73;
  --paper: #f7f4ec;
  --font-sans: "Space Grotesk", sans-serif;
  --font-serif: "Fraunces", serif;
  --shadow: 0 24px 80px rgba(8, 40, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(13, 60, 51, 0.08), transparent 26rem),
    radial-gradient(circle at bottom right, rgba(184, 255, 115, 0.16), transparent 24rem),
    var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

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

button {
  font: inherit;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 92%);
  z-index: 0;
}

.site-header,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem clamp(1.2rem, 3vw, 2.5rem);
  backdrop-filter: blur(18px);
  background: rgba(242, 238, 229, 0.72);
  border-bottom: 1px solid rgba(16, 32, 25, 0.08);
}

.brand,
.site-nav a,
.header-link {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.brand {
  font-weight: 700;
  white-space: nowrap;
}

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

.site-nav a,
.header-link {
  color: var(--text-soft);
}

.site-nav a:hover,
.header-link:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.language-switch {
  display: inline-flex;
  padding: 0.22rem;
  border: 1px solid rgba(16, 32, 25, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.lang-button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-button.is-active {
  background: var(--bg-strong);
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 4vw, 3rem) clamp(3rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  background:
    radial-gradient(circle at 20% 15%, rgba(184, 255, 115, 0.24), transparent 20rem),
    linear-gradient(135deg, rgba(7, 33, 27, 0.92), rgba(13, 60, 51, 0.92)),
    var(--bg-strong);
  color: var(--paper);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: 0.24;
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow,
.section-kicker,
.mini-label {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow {
  color: rgba(247, 244, 236, 0.76);
}

.mini-label {
  color: rgba(16, 32, 25, 0.6);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.9rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-lead {
  margin: 1.6rem 0 0;
  max-width: 40rem;
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
  color: rgba(247, 244, 236, 0.92);
}

.hero-text {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: rgba(247, 244, 236, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #081f1a;
  font-weight: 700;
}

.button-secondary {
  border: 1px solid rgba(247, 244, 236, 0.2);
  color: var(--paper);
  background: rgba(247, 244, 236, 0.05);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(247, 244, 236, 0.82);
  font-size: 0.95rem;
}

.hero-facts li {
  position: relative;
  padding-left: 1rem;
}

.hero-facts li::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual {
  display: grid;
  place-items: center;
}

.orbital-surface {
  position: relative;
  width: min(42rem, 100%);
  aspect-ratio: 1 / 1.08;
  isolation: isolate;
}

.orbital-surface::before,
.orbital-surface::after {
  content: "";
  position: absolute;
  inset: 14% 10%;
  border-radius: 50%;
}

.orbital-surface::before {
  background:
    radial-gradient(circle at center, rgba(184, 255, 115, 0.2), transparent 32%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 52%);
  filter: blur(18px);
}

.orbital-surface::after {
  border: 1px solid rgba(247, 244, 236, 0.16);
  transform: rotate(-16deg);
}

.orbital-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(247, 244, 236, 0.18);
  border-radius: 50%;
  transform-origin: center;
}

.ring-one {
  inset: 8% 6%;
  animation: spin 20s linear infinite;
}

.ring-two {
  inset: 20% 18%;
  border-style: dashed;
  animation: spin-reverse 26s linear infinite;
}

.ring-three {
  inset: 28% 24%;
  opacity: 0.8;
  animation: float 7s ease-in-out infinite;
}

.grid-core {
  position: absolute;
  inset: 30% 24%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 244, 236, 0.16);
  background:
    linear-gradient(135deg, rgba(247, 244, 236, 0.05), rgba(184, 255, 115, 0.1)),
    rgba(6, 29, 24, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.grid-core::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(247, 244, 236, 0.1);
}

.core-label {
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.92);
}

.core-divider {
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.signal {
  position: absolute;
  padding: 0.8rem 1rem;
  max-width: 12rem;
  border: 1px solid rgba(247, 244, 236, 0.12);
  border-radius: 1.15rem;
  background: rgba(247, 244, 236, 0.05);
  color: rgba(247, 244, 236, 0.88);
  backdrop-filter: blur(12px);
  font-size: 0.88rem;
}

.signal-one {
  top: 9%;
  right: 6%;
}

.signal-two {
  left: 0;
  top: 48%;
}

.signal-three {
  right: 11%;
  bottom: 10%;
}

.vertical-note {
  position: absolute;
  top: 16%;
  left: 10%;
  display: grid;
  gap: 1rem;
  padding-left: 1.1rem;
  color: rgba(247, 244, 236, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vertical-note::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(247, 244, 236, 0.6), transparent);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 4vw, 3rem);
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  max-width: 56rem;
  margin-bottom: 2.8rem;
}

.section-heading.narrow {
  max-width: 45rem;
}

.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.section-heading p,
.contact-panel p {
  margin: 0;
  color: var(--text-soft);
  max-width: 48rem;
}

.intro,
.education,
.detail-band,
.skills {
  border-top: 1px solid var(--line);
}

.pillar-grid,
.recruiter-grid,
.detail-grid {
  display: grid;
  gap: 2rem;
}

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

.pillar {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.pillar-index {
  display: inline-block;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.pillar h3,
.education-entry h3,
.timeline-body h3,
.skill-copy h3,
.recruiter-card h3,
.detail-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.pillar p,
.education-entry p,
.timeline-body p,
.recruiter-card p,
.detail-card p {
  margin: 0.8rem 0 0;
  color: var(--text-soft);
}

.recruiter {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent),
    linear-gradient(135deg, rgba(13, 60, 51, 0.03), rgba(184, 255, 115, 0.06));
}

.recruiter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.recruiter-card,
.education-entry,
.fit-panel,
.detail-card {
  padding: 1.6rem;
  background: var(--surface-strong);
  border: 1px solid rgba(16, 32, 25, 0.08);
  box-shadow: 0 20px 40px rgba(13, 60, 51, 0.08);
}

.recruiter-card.accent {
  background:
    linear-gradient(145deg, rgba(184, 255, 115, 0.22), rgba(255, 255, 255, 0.84)),
    var(--surface-strong);
}

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

.fit-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.education {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent);
}

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

.entry-date,
.entry-place,
.timeline-year {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.entry-place {
  margin-top: 0.55rem;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 2rem;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11rem;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(11rem - 0.37rem);
  top: 0.55rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(184, 255, 115, 0.14);
}

.timeline-body {
  padding: 1.5rem 0 0.3rem 1.5rem;
}

.timeline-body h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  align-items: baseline;
}

.timeline-body h3 span:last-child {
  font-size: 0.98rem;
  color: var(--text-soft);
  font-weight: 500;
}

.timeline-body ul {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

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

.skills {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2rem;
}

.skill-list {
  display: grid;
  gap: 1rem;
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 28%);
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.skill-copy p {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
}

.skill-meter {
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(16, 32, 25, 0.08);
  overflow: hidden;
}

.skill-meter span {
  display: block;
  height: 100%;
  width: var(--level);
  background: linear-gradient(90deg, #0f4a3d, #a6ff5b);
  border-radius: inherit;
}

.skills-side {
  display: grid;
  gap: 1.2rem;
}

.side-block {
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(16, 32, 25, 0.08);
}

.language-list {
  display: grid;
  gap: 1rem;
}

.language-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.language-list div:last-child {
  border-bottom: 0;
}

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

.tag-list li {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(13, 60, 51, 0.08);
  color: var(--text);
  font-size: 0.9rem;
}

.tag-list.muted li {
  background: rgba(16, 32, 25, 0.06);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
  background:
    radial-gradient(circle at bottom right, rgba(184, 255, 115, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(13, 60, 51, 0.08), rgba(255, 255, 255, 0.5));
}

.contact-panel {
  max-width: 38rem;
}

.contact-links {
  display: grid;
  gap: 1rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.3rem 1.4rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  transition: transform 180ms ease, background-color 180ms ease;
}

.contact-link:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.8);
}

.contact-link span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.contact-link strong {
  font-size: 1.06rem;
}

.contact-link.static:hover {
  transform: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1.2rem, 4vw, 3rem) 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.92rem;
}

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

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

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

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

  .recruiter-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orbital-surface {
    width: min(34rem, 92vw);
  }

  .timeline-list::before {
    left: 0.35rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding-left: 2rem;
  }

  .timeline-item::before {
    left: 0;
  }

  .timeline-body {
    padding: 0;
  }
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .pillar-grid,
  .education-grid,
  .fit-grid,
  .recruiter-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .skill-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-nav {
    font-size: 0.88rem;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
  }

  .header-link {
    font-size: 0.84rem;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .signal {
    position: static;
    max-width: none;
  }

  .orbital-surface {
    display: grid;
    gap: 0.8rem;
    aspect-ratio: auto;
  }

  .orbital-ring,
  .vertical-note {
    display: none;
  }

  .grid-core {
    position: relative;
    inset: auto;
    min-height: 18rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
