:root {
  --cream: #f7f0e8;
  --cream-deep: #ede0d0;
  --paper: #fffcf8;
  --ink: #2a1f14;
  --ink-soft: #5a4a38;
  --plum: #7a5c3a;
  --plum-deep: #3d2510;
  --rose: #9b4a28;
  --rose-soft: #c47a56;
  --apricot: #c9864e;

  --shadow-soft: 0 24px 48px rgba(61, 37, 16, 0.16);
  --shadow-card: 0 14px 30px rgba(61, 37, 16, 0.09);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: "Inter", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
}

img { display: block; width: 100%; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: min(var(--container), calc(100% - 2.5rem)); margin: 0 auto; }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rose);
}
.eyebrow.dark { color: var(--plum-deep); }

h1, h2, h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(248, 241, 235, 0.82);
  border-bottom: 1px solid rgba(44, 32, 41, 0.08);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 82px; }

.brand { display: inline-flex; align-items: center; gap: 0.8rem; }

.brand-mark {
  width: 40px; height: 40px;
  color: var(--plum-deep);
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark.small { width: 34px; height: 34px; color: var(--rose-soft); }

.brand-text { font-family: "Fraunces", serif; font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.brand-text em { font-style: normal; font-weight: 400; color: var(--ink-soft); margin-left: 0.3rem; }

.nav { display: flex; align-items: center; gap: 2.1rem; font-size: 0.94rem; font-weight: 600; color: var(--ink); }

.nav a { position: relative; transition: color 0.2s ease; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -8px;
  width: 0; height: 2px; border-radius: 999px; background: var(--rose);
  transition: width 0.25s ease;
}
.nav a:not(.nav-cta):hover::after, .nav a:not(.nav-cta):focus-visible::after { width: 100%; }
.nav a:not(.nav-cta):hover { color: var(--plum-deep); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.75rem 1.15rem; border-radius: 999px;
  background: var(--plum-deep); color: var(--paper) !important;
  box-shadow: var(--shadow-card);
}

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid rgba(44, 32, 41, 0.14); background: transparent; cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 999px; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  padding: 1rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 2px solid var(--plum-deep); outline-offset: 3px; }

.button.primary {
  background: var(--plum-deep); color: var(--paper);
  box-shadow: 0 14px 28px rgba(60, 36, 54, 0.28);
}
.button.secondary {
  background: transparent; border: 1.5px solid rgba(44, 32, 41, 0.2); color: var(--ink);
}
.button.large { padding: 1.1rem 1.8rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 3.5rem 0 4rem; }

.hero-field {
  position: absolute; inset: -20% -10% auto -10%; height: 140%;
  background:
    radial-gradient(38% 55% at 12% 15%, rgba(184, 66, 90, 0.16), transparent 70%),
    radial-gradient(46% 60% at 90% 30%, rgba(138, 79, 104, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 3.5rem;
}

.hero-copy h1 { max-width: 560px; margin-bottom: 1.1rem; }

.lead { max-width: 500px; font-size: 1.14rem; margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.hero-facts div { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rose); font-weight: 700; }
.hero-facts dd { font-family: "Fraunces", serif; font-size: 1.15rem; color: var(--ink); }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }

.portrait-arch {
  position: relative; width: min(420px, 88%);
  aspect-ratio: 3 / 4;
  border-radius: 210px 210px 26px 26px;
  overflow: hidden;
  border: 1px solid rgba(138, 79, 104, 0.35);
  box-shadow: var(--shadow-soft);
}
.portrait-arch img { width: 100%; height: 100%; object-fit: cover; }

.hero-visual-caption {
  max-width: 320px; text-align: center; font-family: "Fraunces", serif;
  font-style: italic; font-size: 1.05rem; color: var(--plum-deep);
}

/* ---------- Sections ---------- */

.section { padding: 6.5rem 0; }

.section-heading { margin-bottom: 2.5rem; }
.section-heading.centered { text-align: center; }
.section-heading.centered h2 { margin-inline: auto; max-width: 640px; }
.section-lead { max-width: 560px; margin: 1rem auto 0; }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: center; }

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(44, 32, 41, 0.06);
}
.about-media img { height: 560px; object-fit: cover; object-position: top; }

.about-lead { font-family: "Fraunces", serif; font-size: 1.3rem; color: var(--plum-deep); margin-bottom: 1.1rem; }
.about-copy p + p { margin-top: 1rem; }

.credential-row { list-style: none; display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.credential-row li {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1rem; border-radius: 999px;
  background: var(--paper); border: 1px solid rgba(44, 32, 41, 0.08);
  font-size: 0.86rem; font-weight: 600; color: var(--plum-deep);
}
.credential-row i { color: var(--rose); }

/* ---------- Phases (signature arc) ---------- */

.phases { background: var(--plum-deep); color: var(--paper); border-radius: var(--radius-lg); }
.phases .eyebrow.dark { color: var(--rose-soft); }
.phases h2 { color: var(--paper); }
.phases .section-lead { color: rgba(255, 255, 255, 0.72); }

.phase-arc { position: relative; margin-top: 3rem; padding-top: 1rem; }

.phase-arc-line {
  position: absolute; top: 0; left: 0; width: 100%; height: 120px; z-index: 0;
}
.phase-arc-line path { fill: none; stroke: rgba(221, 125, 132, 0.35); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }

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

.phase-stop {
  position: relative; z-index: 1;
  padding-top: calc(60px - (60px * var(--pos, 0.5)) * 0.001);
}

.phase-icon {
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; margin-bottom: 1.1rem;
  background: rgba(221, 125, 132, 0.14); border: 1px solid rgba(221, 125, 132, 0.4);
  color: var(--rose-soft); font-size: 1.15rem;
  transform: translateY(calc((0.5 - var(--pos, 0.5)) * -34px));
}

.phase-stop h3 { color: var(--paper); font-size: 1.2rem; margin-bottom: 0.5rem; }
.phase-stop p { color: rgba(255, 255, 255, 0.68); font-size: 0.94rem; }

/* ---------- Projects ---------- */

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

.project-card {
  background: var(--paper); border: 1px solid rgba(44, 32, 41, 0.08);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.project-card:focus-visible { outline: 2px solid var(--plum-deep); outline-offset: 3px; }

.project-image { position: relative; overflow: hidden; }
.project-image img { height: 300px; object-fit: cover; transition: transform 0.35s ease; }
.project-card:hover .project-image img { transform: scale(1.04); }

.project-tag {
  position: absolute; top: 1rem; right: 1rem; padding: 0.4rem 0.85rem;
  border-radius: 999px; background: rgba(248, 241, 235, 0.92); color: var(--plum-deep);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
}

.project-body { padding: 1.4rem 1.3rem 1.6rem; }
.project-meta { display: block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.6rem; }
.project-body h3 { margin-bottom: 0.6rem; }

/* ---------- Modal ---------- */

body.no-scroll { overflow: hidden; }

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 1.2rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal.active { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(44, 32, 41, 0.72);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative; z-index: 1;
  width: min(920px, 94vw);
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal.active .modal-card { transform: translateY(0) scale(1); }

.modal-media { min-height: 100%; background: var(--cream-deep); }
.modal-media img { height: 100%; min-height: 340px; object-fit: cover; }

.modal-body { padding: 2.4rem 2.2rem; align-self: center; }

.modal-tag {
  display: inline-flex; align-items: center; padding: 0.4rem 0.85rem; margin-bottom: 0.9rem;
  border-radius: 999px; background: rgba(184, 66, 90, 0.12); color: var(--rose);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.modal-tag[hidden] { display: none; }

.modal-meta {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.6rem;
}

.modal-body h3 { font-size: 1.7rem; margin-bottom: 0.9rem; }
.modal-body p { color: var(--ink-soft); }

.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 42px; height: 42px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85); color: var(--plum-deep);
  cursor: pointer; transition: background 0.2s ease;
}
.modal-close:hover { background: var(--paper); }
.modal-close:focus-visible { outline: 2px solid var(--plum-deep); outline-offset: 2px; }

/* ---------- CTA ---------- */

.CTA { padding-top: 0; }

.cta-box {
  display: grid; grid-template-columns: 0.55fr 1fr; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft);
  background: var(--paper);
}

.cta-media { min-height: 100%; }
.cta-media img { height: 100%; min-height: 340px; object-fit: cover; object-position: top; }

.cta-copy { padding: 3rem 3rem 3rem 2.6rem; align-self: center; }
.cta-copy .eyebrow { color: var(--rose); }
.cta-copy h2 { max-width: 460px; margin-bottom: 0.9rem; }
.cta-copy p { max-width: 420px; margin-bottom: 1.7rem; }

/* ---------- Footer ---------- */

.footer { padding: 1.4rem 0 2.6rem; }
.footer-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(44, 32, 41, 0.1); padding-top: 1.4rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand strong { display: block; font-family: "Fraunces", serif; font-size: 1rem; color: var(--ink); }
.footer-brand span { font-size: 0.82rem; color: var(--ink-soft); }
.footer-wrap > p { font-size: 0.85rem; color: var(--ink-soft); }

.footer-social {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.86rem; font-weight: 700; color: var(--rose);
  transition: color 0.2s ease;
}
.footer-social:hover, .footer-social:focus-visible { color: var(--plum-deep); }
.footer-social i { font-size: 1.05rem; }

.nav a[aria-label*="Instagram"] {
  font-size: 1.15rem; color: var(--ink); display: inline-flex; align-items: center;
}
.nav a[aria-label*="Instagram"]:hover { color: var(--rose); }
.nav a[aria-label*="Instagram"]::after { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .about-grid, .projects-grid, .cta-box, .modal-card { grid-template-columns: 1fr; }
  .modal-media img { min-height: 240px; }
  .phase-arc { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
  .phase-arc-line { display: none; }
  .phase-icon { transform: none; }
  .phase-stop { padding-top: 0; }

  .hero-copy { text-align: center; }
  .hero-copy h1, .lead { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }

  .about-media img { height: 420px; }
  .about-copy { text-align: left; }

  .cta-media img { min-height: 260px; }
  .cta-copy { padding: 2.4rem; text-align: center; }
  .cta-copy h2, .cta-copy p { margin-inline: auto; }
}

@media (max-width: 760px) {
  .nav {
    position: absolute; top: 100%; left: 1.25rem; right: 1.25rem; display: none;
    flex-direction: column; align-items: flex-start; gap: 1.1rem;
    padding: 1.3rem; border-radius: 18px; background: var(--paper);
    border: 1px solid rgba(44, 32, 41, 0.08); box-shadow: var(--shadow-card);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }

  .brand-text em { display: none; }

  .phase-arc { grid-template-columns: 1fr; }

  .footer-wrap { flex-direction: column; text-align: center; }
  .footer-brand, .footer-social { justify-content: center; }
}
