:root {
  --serif: "Times New Roman", Times, serif;
  --sans: "Trebuchet MS", Verdana, sans-serif;
  --dark: #0d0f14;
  --teal: #2f5755;
  --light: #efefef;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--light);
  color: #1c1c1c;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(13, 15, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-brand,
.site-nav-links a {
  color: var(--white);
  text-decoration: none;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--serif);
  line-height: 1;
}

.site-brand-name {
  font-size: 18px;
  letter-spacing: 0.8px;
}

.site-brand-role {
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(220, 233, 232, 0.88);
}

.site-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
  flex-wrap: wrap;
}

.site-nav-links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav-link {
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}

.nav-link:hover {
  color: #dce9e8;
  border-bottom-color: rgba(220, 233, 232, 0.7);
}

.nav-link.is-active {
  color: #9fd1cb;
  border-bottom-color: #9fd1cb;
}

.nav-resume {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f1114 !important;
}

/* HERO */
.hero {
  text-align: center;
  color: var(--white);
  padding: 14px 20px 60px;
  background:
    radial-gradient(130% 100% at 50% 10%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #7f858b 0%, #747980 44%, #6f8f9e 78%, #7ec5d2 100%);
}

.phone {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.hero h1 {
  margin: 14px auto 8px;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.03;
  max-width: 620px;
}

.hero hr {
  width: min(520px, 90%);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  margin: 10px auto;
}

.subtitle {
  margin: 1px auto 14px;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.35;
  font-style: italic;
}

.buttons {
  margin: 12px auto 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
  width: min(520px, 69%);
}

.btn {
  display: inline-block;
  padding: 8px 18px;
  margin: 5px;
  min-width: 108px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--white);
  color: #0f1114;
  cursor: pointer;
}

.btn.outline {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
  color: #0f1114;
}

.hero .btn,
.hero .btn.outline {
  background: var(--white);
  color: #0f1114;
  border-color: var(--white);
  border-radius: 6px;
  flex: 1;
  text-align: center;
  transition: box-shadow 250ms ease, background 250ms ease;
}

.hero .btn:hover,
.hero .btn.outline:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 18px 6px rgba(159, 209, 203, 0.6), 0 0 40px 12px rgba(47, 87, 85, 0.3);
}

.hero-img {
  width: min(520px, 69%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: block;
  margin: 0 auto;
}

/* ABOUT */
.about {
  background: var(--dark);
  color: var(--white);
  padding: 170px 20px;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.profile {
  width: min(260px, 72vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.92);
}

.about-text {
  max-width: 430px;
  text-align: center;
}

.about-text h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 60px;
  line-height: 1;
}

.about-text p {
  margin: 0 auto 12px;
  max-width: 380px;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

/* ABOUT MORE PAGE */
.about-more-hero {
  padding: 56px 20px 24px;
  color: var(--white);
  background:
    radial-gradient(130% 100% at 50% 10%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #2f5755 0%, #234745 100%);
}

.about-more-wrap {
  width: min(100%, 980px);
  margin: 0 auto;
}

.about-more-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.about-more-hero h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 400;
  line-height: 1.03;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.75);
}

.about-more-intro {
  margin: 0;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.about-more-content {
  padding: 30px 20px 22px;
  background: var(--light);
}

.about-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.about-more-card {
  background: #ffffff;
  border: 1px solid #d9dfdf;
  padding: 26px 24px;
  box-shadow: 0 14px 30px rgba(9, 18, 22, 0.28);
}

.about-more-card h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.12;
  color: #111111;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.about-more-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  justify-items: center;
}

.about-more-photo {
  width: 100%;
  max-width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border: 1px solid #d7dede;
}

.about-more-card > .about-more-photo {
  margin: 0 0 12px;
}

.about-more-card p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.6;
  color: #383f42;
}

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

.about-more-actions {
  background: var(--light);
  padding: 0 20px 38px;
}

.about-more-actions .btn {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 6px;
  transition: background 200ms ease, color 200ms ease, box-shadow 250ms ease;
}

.about-more-actions .btn:hover {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 0 24px 10px rgba(159, 209, 203, 0.8), 0 0 60px 20px rgba(47, 87, 85, 0.5);
}

.about .btn {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 6px;
  transition: box-shadow 250ms ease, background 250ms ease;
}

.about .btn:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 18px 6px rgba(159, 209, 203, 0.6), 0 0 40px 12px rgba(47, 87, 85, 0.3);
}

/* PROJECTS */
.projects {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 20px 20px 90px;
}

.projects h2 {
  margin: 0 auto 7px;
  max-width: 760px;
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  margin-bottom: 100px;
}

.grid {
  margin: 14px auto 0;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 50px;
}

.card {
  background: transparent;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 250ms ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.35);
  transition: box-shadow 250ms ease;
}

.card:hover img {
  box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.55);
}

.card h3 {
  margin: 14px 0 10px;
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 7px 2px rgba(0, 0, 0, 0.45);
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card:hover h3 {
  text-decoration: underline;
}

.card p {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.86);
}

/* RESUME */
.resume-section {
  background: linear-gradient(135deg, var(--teal) 0%, #1f4544 100%);
  padding: 180px 100px 180px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-panel {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 60px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.resume-eyebrow {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.resume-panel h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
}

.resume-copy {
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* CONTACT */
.contact {
  background: linear-gradient(135deg, #f5f7f7 0%, #ffffff 100%);
  padding: 80px 20px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-layout > div:first-child {
  padding-right: 20px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: center;
  color: var(--teal);
}

.contact h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
  color: #111111;
}

.section-copy {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
}

.social-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-list li {
  margin: 0;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  border-bottom: none;
  transition: color 200ms ease;
}

.social-list a:hover {
  color: #e2725b;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--white);
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecec;
}

.contact-form label {
  display: block;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #333333;
  letter-spacing: 0.3px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d4d8d8;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 16px;
  color: #1c1c1c;
  background: #fafbfb;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(47, 87, 85, 0.08);
}

.contact-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  background: var(--teal);
  color: var(--white);
  cursor: pointer;
  transition: all 200ms ease;
}

.btn-primary:hover {
  background: #1f4544;
  color: #ffd700;
  transform: translateY(-1px);
  box-shadow: 0 0 18px 6px rgba(159, 209, 203, 0.6), 0 0 40px 12px rgba(47, 87, 85, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.form-status {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #666666;
}

.form-status.success {
  color: #22863a;
}

.form-status.error {
  color: #d73a49;
}

.reveal {
  opacity: 1;
  animation: fadeInUp 0.6s ease-out;
}

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

.thank-you-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(130% 100% at 50% 10%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #7f858b 0%, #747980 44%, #6f8f9e 78%, #7ec5d2 100%);
}

.thank-you-panel {
  width: min(100%, 720px);
  padding: 34px 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.thank-you-panel h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 62px;
  font-weight: 400;
  line-height: 1;
  color: #111111;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.thank-you-copy {
  max-width: 470px;
  margin: 0 auto 18px;
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

.thank-you-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn.dark {
  margin-top: 10px;
  padding: 16px 36px;
  font-size: 16px;
  background: #0b0c10;
  color: var(--white);
  border-color: #0b0c10;
  border-radius: 6px;
  transition: box-shadow 250ms ease, background 250ms ease;
}

.btn.dark:hover {
  background: #1a1c22;
  box-shadow: 0 0 18px 6px rgba(159, 209, 203, 0.6), 0 0 40px 12px rgba(47, 87, 85, 0.3);
}

/* BACK TO TOP */
.back-to-top {
  margin-top: 20px;
  padding: 12px 28px;
  font-size: 14px;
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  border-radius: 6px;
  transition: box-shadow 250ms ease, background 250ms ease;
}

.back-to-top:hover {
  background: #1f4544;
  box-shadow: 0 0 18px 6px rgba(159, 209, 203, 0.6), 0 0 40px 12px rgba(47, 87, 85, 0.3);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
}
.lightbox-close:hover { color: #e2725b; }

/* FOOTER */
footer {
  text-align: center;
  padding: 12px 20px;
  font-size: 10px;
  background: var(--light);
  color: #7a7a7a;
}

/* PROJECT PAGES */
.project-page-hero {
  padding: 56px 20px 32px;
  color: var(--white);
  background:
    radial-gradient(130% 100% at 50% 10%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #2f5755 0%, #234745 100%);
}

.project-page-wrap {
  width: min(100%, 980px);
  margin: 0 auto;
}

.project-page-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.project-page-hero h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(36px, 7vw, 62px);
  font-weight: 400;
  line-height: 1.05;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.75);
}

.project-page-intro {
  margin: 0;
  max-width: 680px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.project-page-content {
  padding: 40px 20px 60px;
  background: var(--light);
}

.project-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.project-page-card {
  background: #ffffff;
  border: 1px solid #d9dfdf;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(9, 18, 22, 0.15);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.project-page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(9, 18, 22, 0.25);
}

.project-page-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-page-card-body {
  padding: 20px 22px 24px;
}

.project-page-card-body h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: #111111;
}

.project-page-card-body p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #555555;
}

.project-page-btn {
  padding: 10px 22px;
  font-size: 11px;
  background: var(--teal);
  color: var(--white) !important;
  border-color: var(--teal);
  border-radius: 4px;
  transition: background 200ms ease, box-shadow 250ms ease;
}

.project-page-btn:hover {
  background: #1f4544;
  box-shadow: 0 0 18px 6px rgba(159, 209, 203, 0.6), 0 0 40px 12px rgba(47, 87, 85, 0.3);
}

.project-page-actions {
  margin-top: 40px;
  text-align: center;
}

@media (max-width: 760px) {
  .site-nav {
    padding: 12px 16px;
    justify-content: center;
  }

  .site-brand {
    width: 100%;
    text-align: center;
    align-items: center;
  }

  .site-brand-name {
    font-size: 16px;
  }

  .site-brand-role {
    font-size: 9px;
  }

  .site-nav-links {
    justify-content: center;
    gap: 12px;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .about-text h2,
  .projects h2,
  .resume-panel h2,
  .contact h2 {
    font-size: 34px;
  }

  .about-more-grid {
    grid-template-columns: 1fr;
  }

  .about-more-photo-grid {
    grid-template-columns: 1fr;
  }

  .about-more-card h2 {
    font-size: 31px;
  }

  .resume-panel {
    padding: 36px 24px;
  }

  .resume-copy {
    font-size: 13px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-layout > div:first-child {
    padding-right: 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .thank-you-panel h1 {
    font-size: 38px;
  }

  .grid {
    grid-template-columns: 1fr;
    max-width: 430px;
  }

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

  .project-page-hero h1 {
    font-size: 32px;
  }
}