:root {
  --blush: #f7edea;
  --warm: #f4f1ee;
  --midnight: #1a2740;
  --rose: #e6a5a1;
  --border-soft: #e7e3df;
  --white: #ffffff;

  --text-main: #1a2740;
  --text-muted: #7b7680;
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--warm);
}

/* Layout */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--blush);
}

/* Typography */

h1,
h2,
h3 {
  font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0 0 0.7rem;
  color: var(--text-main);
}

h1 {
  font-size: 2.2rem;
  line-height: 1.15;
}

h2 {
  font-size: 1.7rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  max-width: 32rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Links and buttons */

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.primary-btn {
  background: var(--rose);
  color: var(--midnight);
  box-shadow: 0 14px 32px rgba(230, 165, 161, 0.55);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(230, 165, 161, 0.7);
}

.secondary-btn {
  background: var(--white);
  color: var(--text-main);
  border-color: var(--border-soft);
}

.secondary-btn:hover {
  border-color: var(--rose);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.ghost-btn {
  border-color: var(--border-soft);
  background: transparent;
  color: var(--text-main);
}

.ghost-btn:hover {
  border-color: var(--rose);
  background: rgba(230, 165, 161, 0.08);
}

/* Chips */

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(230, 165, 161, 0.12);
  border: 1px solid rgba(231, 227, 223, 0.9);
  font-size: 0.8rem;
  color: var(--text-main);
}

/* Header and nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 238, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 227, 223, 0.95);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
}

.logo {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--midnight);
}

.logo span {
  color: var(--rose);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  background: rgba(230, 165, 161, 0.16);
  color: var(--midnight);
}

.nav-link.active {
  background: var(--rose);
  color: var(--midnight);
}

.nav-cta {
  border: 1px solid rgba(231, 227, 223, 0.9);
  background: var(--white);
}

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--midnight);
  border-radius: 999px;
  margin-bottom: 4px;
}

/* Hero */

.hero {
  padding-top: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Hero side card */

.hero-card {
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.hero-photo-circle {
  width: 170px;
  height: 170px;
  border-radius: 999px;
  padding: 0.3rem;
  background: radial-gradient(circle at 30% 0%, rgba(230, 165, 161, 0.7), rgba(247, 237, 234, 1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-circle img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.hero-card-text {
  text-align: center;
}

.hero-name {
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.hero-role {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.hero-mini {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section header */

.section-header {
  max-width: 620px;
}

/* Project grid */

.project-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.project-grid-page {
  margin-bottom: 3rem;
}

.project-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

.project-image-wrap {
  background: var(--warm);
  overflow: hidden;
}

.project-image-wrap img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.project-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  background: radial-gradient(circle at 15% 0%, rgba(230, 165, 161, 0.4), rgba(247, 237, 234, 1));
}

.project-soon {
  text-align: center;
}

.soon-label {
  font-family: "Quicksand", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 0.3rem;
}

.soon-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.project-pill {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.project-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-link {
  font-size: 0.9rem;
  color: var(--midnight);
  margin-top: 0.4rem;
  display: inline-flex;
}

/* CTA card */

.cta-card {
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  padding: 1.8rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.1);
}

.cta-text {
  font-size: 0.96rem;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* About */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 2.4rem;
  align-items: center;
}

.about-photo {
  display: flex;
  justify-content: center;
}

.about-photo-circle {
  width: 200px;
  height: 200px;
  border-radius: 999px;
  padding: 0.4rem;
  background: radial-gradient(circle at 30% 0%, rgba(230, 165, 161, 0.7), rgba(247, 237, 234, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
}

.about-photo-circle img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--white);
}

.about-text p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-main);
}

.about-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

.about-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.about-card ul {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}

.about-card li {
  margin-bottom: 0.4rem;
}

/* Resume */

.resume-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.resume-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 1.3rem 1.4rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
}

.resume-card ul {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
}

.resume-card li {
  margin-bottom: 0.4rem;
}

/* Case blocks */

.case-block {
  margin-top: 3.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(231, 227, 223, 0.9);
}

.case-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.case-intro {
  max-width: 32rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.8rem 0 1.1rem;
}

.case-body {
  max-width: 32rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.case-image-full {
  margin: 1.4rem 0;
}

.case-image-full img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(231, 227, 223, 0.9);
  display: block;
}

.case-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.case-image-row {
  margin-top: 1.2rem;
}

.case-image-row figure {
  margin: 0;
}

.case-image-row img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(231, 227, 223, 0.9);
  display: block;
}

.case-image-row.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.case-link-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.3rem;
  align-items: flex-start;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
  margin-bottom: 1rem;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-card-wrap {
  display: flex;
  justify-content: flex-end;
}

.contact-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0.7rem;
  font-size: 0.9rem;
}

.contact-card li {
  margin-bottom: 0.4rem;
}

.contact-mini {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(231, 227, 223, 0.95);
  background: var(--warm);
  padding: 1.8rem 0 1.4rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo {
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.1rem;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

/* Reveal animation */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    max-width: 360px;
    margin: 0 auto;
  }

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

  .contact-card-wrap {
    justify-content: flex-start;
  }

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

  .case-image-row.two {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 3.1rem;
    right: 1.5rem;
    background: var(--warm);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    padding: 0.6rem 0.7rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .section {
    padding: 3.5rem 0;
  }

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

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Override portrait size */
.hero-photo-circle {
  width: 190px !important;
  height: 190px !important;
}
.hero-photo-circle img {
  width: 100% !important;
  height: 100% !important;
}

/* Override project card image height */
.project-image-wrap img {
  height: 140px !important;
  object-fit: cover !important;
}

/* Softer card shadow */
.project-card {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06) !important;
}

/* Correct project image final sizing */
.project-image-wrap {
  height: 150px !important;
  overflow: hidden !important;
}

.project-image-wrap img {
  height: 150px !important;
  width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.site-footer {
  margin-top: 4rem;
  padding: 3rem 1rem;
  background: var(--white);
  border-top: 1px solid rgba(231, 227, 223, 0.7);
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-name {
  font-family: Quicksand, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: var(--midnight);
  text-decoration: none;
  font-size: 0.95rem;
  font-family: Inter, sans-serif;
}

.footer-links a:hover {
  opacity: 0.65;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3.2rem 1rem;
  background: var(--white);
  border-top: 1px solid rgba(231, 227, 223, 0.7);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-name {
  font-family: Quicksand, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 0.4rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin: 0.8rem 0 1rem;
}

.footer-icon {
  width: 22px;
  height: 22px;
  fill: var(--midnight);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-icon:hover {
  opacity: 0.5;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Fade animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
