:root {
  --ink: #0f172a;
  --slate: #475569;
  --mist: #f8fafc;
  --line: #dbe4f0;
  --accent: #0f766e;
  --sand: #f5efe4;
  --gold: #d4a44f;
}

/* Global behavior and base polish */
html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(212, 164, 79, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.12), transparent 24%),
    var(--mist);
}

a,
button,
input,
textarea {
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Glass-like navigation for a clean, premium feel. */
.site-header {
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.78), rgba(248, 250, 252, 0.15));
  backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--accent);
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--ink);
}

/* Simple menu icon built with pseudo lines instead of an SVG. */
#menu-button {
  position: relative;
}

.menu-bar,
.menu-bar::before,
.menu-bar::after {
  display: block;
  position: relative;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-bar::before,
.menu-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
}

.menu-bar::before {
  transform: translateY(-6px);
}

.menu-bar::after {
  transform: translateY(6px);
}

#menu-button.is-open .menu-bar {
  background: transparent;
}

#menu-button.is-open .menu-bar::before {
  transform: rotate(45deg);
}

#menu-button.is-open .menu-bar::after {
  transform: rotate(-45deg);
}

/* Decorative hero shapes create depth without clutter. */
.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.65;
  pointer-events: none;
}

.hero-orb-left {
  top: 7rem;
  left: -4rem;
  width: 18rem;
  height: 18rem;
  background: rgba(212, 164, 79, 0.2);
}

.hero-orb-right {
  right: -5rem;
  bottom: 4rem;
  width: 20rem;
  height: 20rem;
  background: rgba(15, 118, 110, 0.16);
}

.section-shell {
  position: relative;
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: 2rem auto auto 50%;
  width: min(92%, 80rem);
  height: calc(100% - 4rem);
  transform: translateX(-50%);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.55);
  z-index: -1;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.99rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.section-tag::before {
  content: "";
  width: 2.75rem;
  height: 1px;
  background: rgba(15, 118, 110, 0.4);
}

/* Timeline layout keeps experience readable on all screen sizes. */
.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 1px;
  background: linear-gradient(to bottom, rgba(15, 118, 110, 0.35), rgba(212, 164, 79, 0.3));
}

.timeline-card {
  position: relative;
  margin-left: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -1.95rem;
  top: 2.25rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 4px solid rgba(248, 250, 252, 1);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.12);
}

.timeline-meta {
  max-width: 28rem;
}

/* Reveal animation is intentionally subtle and calm. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Motion polish for pointer devices only. */
@media (hover: hover) {

  .timeline-card:hover,
  .shadow-panel:hover {
    transform: translateY(-4px);
  }
}

/* Reduced motion support keeps the site comfortable for everyone. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

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

/* Tablet and mobile adjustments for spacing and readability. */
@media (max-width: 1023px) {
  .site-header {
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0.35));
  }

  .section-shell::before {
    width: calc(100% - 1.25rem);
  }
}

@media (max-width: 767px) {
  .hero-orb-left {
    width: 12rem;
    height: 12rem;
    left: -3rem;
  }

  .hero-orb-right {
    width: 14rem;
    height: 14rem;
    right: -4rem;
  }

  .timeline::before {
    left: 0.7rem;
  }

  .timeline-card {
    margin-left: 1.9rem;
    padding: 1.5rem;
  }

  .timeline-card::before {
    left: -1.4rem;
  }
}