:root {
  --ink: #0b1f26;
  --ink-soft: #143039;
  --sea: #1a6b6a;
  --sea-bright: #1f8a7d;
  --foam: #f4f8f7;
  --mist: #e7f0ee;
  --sand: #b8894a;
  --sand-deep: #946c35;
  --text: #1a2c32;
  --text-muted: #4f646b;
  --text-on-dark: #eef5f3;
  --text-muted-dark: #a9bfbc;
  --ok: #2f7d62;
  --danger: #b04a4a;
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--mist) 0%, var(--foam) 28%, #f7faf9 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--sea);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--sand-deep);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sand);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 1rem 0;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s, color 0.35s;
  border-bottom: 1px solid transparent;
  color: var(--text-on-dark);
}

.nav.is-scrolled {
  background: rgba(244, 248, 247, 0.9);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(11, 31, 38, 0.08);
  color: var(--text);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}

.nav__brand span {
  color: var(--sand);
}

.nav.is-scrolled .nav__brand span {
  color: var(--sand-deep);
}

.nav__links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: inherit;
  opacity: 0.78;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: opacity 0.2s, color 0.2s;
}

.nav__links a:hover {
  opacity: 1;
  color: inherit;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(238, 245, 243, 0.35);
  color: inherit;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.nav.is-scrolled .nav__toggle {
  border-color: rgba(11, 31, 38, 0.18);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: var(--text-on-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 18%;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
    filter: saturate(0.9) brightness(0.72);
  }
  to {
    transform: scale(1.02);
    filter: saturate(1) brightness(0.8);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 19, 24, 0.94) 0%, rgba(7, 19, 24, 0.78) 42%, rgba(7, 19, 24, 0.32) 68%, rgba(7, 19, 24, 0.5) 100%),
    linear-gradient(0deg, rgba(7, 19, 24, 0.9) 0%, transparent 42%);
}

.hero__content {
  padding: 7.5rem 0 4.5rem;
  max-width: 36rem;
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--text-on-dark);
}

.hero__brand em {
  font-style: normal;
  color: var(--sand);
}

.hero__headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.02em;
  color: #e4efed;
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted-dark);
  max-width: 32rem;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--sand);
  color: var(--ink);
}

.btn--primary:hover {
  background: #c99a55;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(238, 245, 243, 0.35);
  color: var(--text-on-dark);
}

.btn--ghost:hover {
  border-color: var(--sand);
  color: var(--sand);
}

.btn--block {
  width: 100%;
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sea-bright);
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.section__lead {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  color: var(--text-muted);
}

.section--alt {
  background:
    linear-gradient(180deg, rgba(26, 107, 106, 0.06), transparent 40%),
    #e2ecea;
  border-block: 1px solid rgba(11, 31, 38, 0.06);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.meta-list li {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(11, 31, 38, 0.1);
}

.meta-list strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 650;
  margin-bottom: 0.2rem;
}

.meta-list a {
  text-decoration: none;
  color: var(--ink);
}

.meta-list a:hover {
  color: var(--sand-deep);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-left: 1px solid rgba(11, 31, 38, 0.14);
}

.timeline__item {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 0 0 0 4px rgba(184, 137, 74, 0.18);
}

.timeline__role {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.timeline__org {
  margin: 0.15rem 0 0.35rem;
  color: var(--sea);
  font-weight: 600;
}


.timeline__desc {
  margin: 0;
  color: var(--text-muted);
  max-width: 48rem;
}

.projects {
  display: grid;
}

.project {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(11, 31, 38, 0.1);
}

.project:first-child {
  border-top: 1px solid rgba(11, 31, 38, 0.1);
}

.project__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.project__role {
  margin: 0.25rem 0 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project__url {
  margin: 0;
  font-size: 0.88rem;
}

.project__url a {
  color: var(--sea);
  text-decoration: none;
}

.project__url a:hover {
  color: var(--sand-deep);
  text-decoration: underline;
}

.project.is-offline .project__url a {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.badge--active {
  color: #1f6b52;
  background: rgba(47, 125, 98, 0.1);
  border-color: rgba(47, 125, 98, 0.22);
}

.badge--offline {
  color: #8f3d3d;
  background: rgba(176, 74, 74, 0.1);
  border-color: rgba(176, 74, 74, 0.22);
}

.badge--checking {
  color: #5a6f76;
  background: rgba(11, 31, 38, 0.06);
  border-color: rgba(11, 31, 38, 0.12);
}

.badge--checking::before {
  animation: pulseDot 1s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.project-note {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(11, 31, 38, 0.12);
  color: var(--ink-soft);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.55);
}

.creds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.creds li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(11, 31, 38, 0.08);
}

.creds__mark {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--sea-bright);
}

.creds__title {
  margin: 0;
  font-weight: 650;
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.creds__meta {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.creds-disclaimer {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.support {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.support__panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 31, 38, 0.1);
  padding: 1.5rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(11, 31, 38, 0.16);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--sea-bright);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  min-height: 1.3em;
}

.form-status.is-ok {
  color: var(--ok);
}

.form-status.is-err {
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.support__aside p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.support__email {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}

.support__email:hover {
  color: var(--sand-deep);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.socials a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.socials a:hover {
  color: var(--sea);
}

.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(11, 31, 38, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
  background: #e2ecea;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer strong {
  color: var(--ink);
  font-family: var(--font-display);
}

@media (max-width: 860px) {
  .about-grid,
  .support {
    grid-template-columns: 1fr;
  }

  .hero__media img {
    object-position: 72% 12%;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(7, 19, 24, 0.55) 0%, rgba(7, 19, 24, 0.72) 45%, rgba(7, 19, 24, 0.96) 100%),
      linear-gradient(90deg, rgba(7, 19, 24, 0.7), transparent 70%);
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    gap: 0;
    background: rgba(244, 248, 247, 0.98);
    color: var(--text);
    border: 1px solid rgba(11, 31, 38, 0.1);
    padding: 0.5rem;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    padding: 0.75rem 0.85rem;
    opacity: 1;
  }

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

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

  .hero__media img,
  .hero__content,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .badge--checking::before {
    animation: none;
  }
}
