:root {
  --bg-light: #F5F5F5;
  --bg-dark: #2F4F4F;
  --text-dark: #2F4F4F;
  --text-light: #F5F5F5;
  --border-radius-lg: 1.5rem;
  --border-radius-sm: 0.75rem;
  --shadow-soft: 0 10px 25px rgba(0,0,0,0.08);
  --transition-fast: 0.2s ease-in-out;
}

/* Base */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

/* Skip link */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  z-index: 999;
}

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

/* Header + navigation */

.site-header {
  background: var(--bg-light);
  border-bottom: 1px solid rgba(47,79,79,0.15);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  gap: 0.75rem;
}

.brand-logo {
  height: 80px;
  width: auto;
  border-radius: 0;
  border: none;
  background: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.3rem;   /* <<< was 0.10rem */
}

.brand-tagline {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Nav */

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: var(--bg-dark);
  transition: width var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a.active::after {
  width: 100%;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--bg-dark);
  display: block;
  margin: 4px 0;
}

/* Hero section */

.hero {
  background: linear-gradient(120deg, var(--bg-dark) 55%, var(--bg-light) 55%);
  color: var(--text-light);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 3rem;
  align-items: center;   /* NEW */
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero-text p {
  max-width: 34rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Call-to-action buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
  background: var(--bg-light);
  color: var(--bg-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(245,245,245,0.7);
  margin-left: 0.75rem;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--bg-light);
  color: var(--bg-dark);
}

/* ================================
   HERO BANNER — clean replacement
   ================================ */

.hero-banner {
  background: linear-gradient(135deg, #2F4F4F 0%, #3C6E6E 100%);
  color: #F5F5F5;
  padding: 6rem 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  border-bottom: 8px solid #F5F5F5;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-banner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(245, 245, 245, 0.9);
  margin-bottom: 2rem;
}

.hero-buttons .btn {
  margin: 0.5rem;
}
/* Hero visual block */
/* Image variant of the hero block */
.hero-block.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.hero-block.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}
.hero-block {
  background: var(--bg-light);
  color: var(--text-dark);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-block-title {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  opacity: 0.7;
}

.hero-block-items {
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
}

/* Layout utility */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  opacity: 0.7;
}

.section-title {
  font-size: 1.4rem;
  margin: 0;
}

/* Color-blocked strip */

.section-strip {
  background: var(--bg-dark);
  color: var(--text-light);
}

/* Section-strip refinement for dark block sections */
.section-strip {
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.section-strip .section-header .section-kicker,
.section-strip .section-header .section-title {
  color: var(--text-light);
}

/* Cards inside a dark section */
.section-strip .card {
  background: var(--bg-light);
  color: var(--text-dark);
  box-shadow: var(--shadow-soft);
  border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.section-strip .card:hover,
.section-strip .card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.section-strip .card-label {
  color: var(--bg-dark);
  opacity: 0.7;
}

.section-strip .card-title {
  color: var(--text-dark);
}

.section-strip .card-meta {
  color: rgba(47, 79, 79, 0.85);
}

/* Cards */

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

.card {
  background: #ffffff;
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

.card-title {
  font-size: 1.05rem;
  margin: 0;
}

.card-meta {
  font-size: 0.85rem;
  opacity: 0.8;
}

.card-link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg-dark);
  text-decoration: none;
}

.card-link:focus-visible,
.card-link:hover {
  text-decoration: underline;
}

/* Projects embed area */

.embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-soft);
  background: #000;
}

.embed-wrapper iframe {
  position: absolute;
  border: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Contact form */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 2rem;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(47,79,79,0.4);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(47,79,79,0.15);
  background: var(--bg-light);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  font-size: 0.85rem;
  color: rgba(47,79,79,0.8);
}

.footer-meta {
  margin-top: 0.3rem;
}

/* Focus outlines */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bg-dark);
  outline-offset: 2px;
}

/* Responsive tweaks */

@media (max-width: 800px) {
  .hero {
    background: var(--bg-dark);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-block.hero-image {
    margin-top: 2rem;
  }

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

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open {
    display: block;
    margin-top: 0.75rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: block;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.form-feedback {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

.form-feedback.success {
  background: #e0f5e4;
  color: #205c2b;
}

.form-feedback.error {
  background: #fceaea;
  color: #7f1414;
}
/* Image variant of hero block */
.hero-block.hero-image {
  padding: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-block.hero-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ===================================
   BUTTON SYSTEM — CLEAN FINAL VERSION
   =================================== */

.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

/* Solid button */
.btn-primary {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--bg-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: transparent;
  color: var(--bg-dark);
  border-color: var(--bg-dark);
}

/* Outline button (Back to Projects) */
.btn-outline {
  background-color: transparent;
  color: var(--bg-dark);
  border: 2px solid var(--bg-dark);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Automatic inversion on dark sections */
.section-strip .btn-outline {
  color: var(--text-light);
  border-color: var(--text-light);
}

.section-strip .btn-outline:hover,
.section-strip .btn-outline:focus-visible {
  background-color: var(--text-light);
  color: var(--bg-dark);
}

/* Focus accessibility */
.btn:focus-visible {
  outline: 3px solid #1E90FF;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(30,144,255,0.25);
}

/* Center helper */
.text-center {
  text-align: center;
}
/* FORCE VISIBLE BACK-TO-PROJECTS BUTTONS */
a.btn,
.btn {
  display:inline-block;
  padding:0.75rem 1.5rem;
  font-size:1rem;
  font-weight:600;
  text-decoration:none;
  border:2px solid #2F4F4F !important;
  background-color:transparent !important;
  color:#2F4F4F !important;
  border-radius:999px;
  text-align:center;
  transition:all .25s ease;
}

a.btn:hover,
.btn:hover,
a.btn:focus-visible,
.btn:focus-visible {
  background-color:#2F4F4F !important;
  color:#F5F5F5 !important;
  border-color:#2F4F4F !important;
}

.section-strip a.btn,
.section-strip .btn {
  color:#F5F5F5 !important;
  border-color:#F5F5F5 !important;
}

.section-strip a.btn:hover,
.section-strip .btn:hover,
.section-strip a.btn:focus-visible,
.section-strip .btn:focus-visible {
  background-color:#F5F5F5 !important;
  color:#2F4F4F !important;
}
/* ================================
   HERO BANNER — clean replacement
   ================================ */

.hero-banner {
  background-color: #2F4F4F;       /* solid slate color */
  color: #F5F5F5;                  /* off-white text */
  padding: 6rem 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  border-bottom: 8px solid #F5F5F5;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-banner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(245, 245, 245, 0.9);
  margin-bottom: 2rem;
}

.hero-buttons .btn {
  margin: 0.5rem;
}
/* === Brand name fix === */
.brand-name {
  font-size: 1.2rem !important;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  background: none !important;
}
/* === Section rhythm and theme === */
.section {
  padding: 4rem 2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.section-light {
  background-color: #F5F5F5;
  color: #2F4F4F;
}

.section-dark {
  background-color: #2F4F4F;
  color: #F5F5F5;
}

/* === Headers and text alignment === */
.section-header,
.section p {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* === Card Grid Layout === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* === Card Styling === */
.card {
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-light .card {
  background-color: #FFFFFF;
  color: #2F4F4F;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-dark .card {
  background-color: #3A5F5F;
  color: #F5F5F5;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* === Card Elements === */
.card-label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-block;
  font-weight: 600;
  color: inherit;
  border-bottom: 2px solid currentColor;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.card-link:hover {
  color: #D9D9D9;
  border-color: #D9D9D9;
}
/* === Profile Photo Styling === */
.profile-photo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #E0EBEB; /* Soft tint matching your palette */
  border-radius: 50%;
  width: 280px;
  height: 280px;
  margin: 0 auto; /* Center on smaller screens */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.profile-photo {
  width: 90%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #F5F5F5; /* subtle border for separation */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-photo.round {
  border-radius: 50%;
}

/* Responsive scaling */
@media (max-width: 768px) {
  .profile-photo-wrapper {
    width: 220px;
    height: 220px;
  }
}
/* Essay anatomy activity */
.activity-container {
  max-width: 900px;
  margin: 0 auto;
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.essay-image-wrapper {
  position: relative;
  max-width: 800px;
  margin: 1.5rem auto 0;
}

.essay-image {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Hotspot buttons */
.hotspot {
  position: absolute;
  background: rgba(47,79,79,0.9);
  color: #F5F5F5;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  border: none;
  z-index: 999; /* ← REQUIRED to stay above image */
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hotspot:hover,
.hotspot:focus {
  background: #2F4F4F;
  transform: translateY(-2px);
}

/* Modal */
.modal {
  display: none; /* toggled via JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #F5F5F5;
  color: #2F4F4F;
  padding: 1.75rem;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.modal-close {
  margin-top: 1rem;
  background: #2F4F4F;
  color: #F5F5F5;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
