:root {
  color-scheme: light;
  --bg: #f6f0e7;
  --bg-alt: #e7f2ff;
  --ink: #0a0f14;
  --muted: #4b5563;
  --accent: #f97316;
  --accent-dark: #c2410c;
  --teal: #0f766e;
  --card: #fff8f0;
  --border: rgba(10, 15, 20, 0.12);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
  --radius: 24px;
  --max-width: 1120px;
  --header-offset: 84px;
  --title-font: "Fraunces", "Times New Roman", serif;
  --body-font: "Space Grotesk", "Trebuchet MS", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--body-font);
  background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.16), transparent 45%),
    linear-gradient(120deg, var(--bg), var(--bg-alt));
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.page {
  position: relative;
}

.page::before,
/* .page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.4;
  pointer-events: none;
} */

.page::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3), transparent 70%);
  top: -160px;
  right: -120px;
}

.page::after {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.25), transparent 70%);
  bottom: -220px;
  left: -180px;
}

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

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

.section {
  padding: clamp(60px, 8vw, 110px) 20px;
}

main#top,
section[id] {
  scroll-margin-top: var(--header-offset);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-copy {
  margin-top: 14px;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  font-family: var(--title-font);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.3rem);
  line-height: 1.05;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  color: var(--ink);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 240, 231, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 15, 20, 0.08);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 140px) 20px 40px;
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 28px 0 32px;
  flex-wrap: wrap;
}

.button {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 10px 20px rgba(194, 65, 12, 0.3);
}

.button.ghost {
  border-color: var(--border);
  background: white;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.metric {
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}

.label {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 20px;
}

.img-placeholder {
  border: 2px dashed rgba(10, 15, 20, 0.35);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  min-height: 260px;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--muted);
}

.floating-card {
  background: white;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  position: absolute;
  right: 8%;
  bottom: -30px;
  max-width: 240px;
  animation: float 5s ease-in-out infinite;
}

.card-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.card-text {
  color: var(--muted);
  font-size: 0.95rem;
}

.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.about-highlight {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.highlight-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.about-highlight ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.about-highlight li::before {
  content: "+";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 700;
}

.card-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card p {
  color: var(--muted);
  margin-top: 12px;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--accent-dark);
}

.drupal-profile-cta {
  max-width: var(--max-width);
  margin: 28px auto 0;
  display: flex;
  justify-content: center;
}

.timeline {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.2);
}

.timeline-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 4px 0 10px;
}

.project-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  gap: 0;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.2);
}

.project-card:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.5);
  outline-offset: 3px;
}

.project-card .img-placeholder {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  min-height: 200px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(249, 115, 22, 0.12));
}

.project-body {
  padding: 24px;
}

.project-body p {
  color: var(--muted);
  margin: 12px 0 16px;
}

.chip {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.85rem;
}

.contact {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(10, 15, 20, 0.08);
  border-bottom: 1px solid rgba(10, 15, 20, 0.08);
}

.contact-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.contact-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.contact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 12px;
}

.socials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 600;
}

.site-footer {
  padding: 24px 20px 40px;
  text-align: center;
  color: var(--muted);
}

.page-main {
  min-height: calc(100vh - 220px);
}

.single-page-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.single-page-title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: 12px;
}

.single-page-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
}

.detail-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.detail-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 38px);
}

.project-icon {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.18), rgba(249, 115, 22, 0.24));
  display: inline-grid;
  place-items: center;
  font-family: var(--title-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.detail-card p + p {
  margin-top: 12px;
}

.detail-list {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.detail-list li {
  color: var(--muted);
}

.detail-list li::before {
  content: "+";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 700;
}

.detail-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.placeholder-note {
  margin-top: 18px;
  color: var(--muted);
  font-style: italic;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 960px) {
  .floating-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 20px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

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

  .hero {
    padding-top: 90px;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .floating-card {
    max-width: none;
  }
}
