/* =========================================================
   Jasmine DiCara Portfolio
   Editorial / minimalist design for Marketing, Advertising,
   and Public Relations review.
   ========================================================= */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #fff8fb;
  --bg-alt: #fff0f7;
  --bg-hot: #f7bed5;
  --ink: #17131a;
  --ink-soft: #4f4650;
  --ink-muted: #8a7784;
  --line: #f2c7dc;
  --accent: #e8a3bf;
  --accent-soft: #f8d7e5;
  --accent-deep: #8f4d67;
  --accent-warm: #f0afa8;
  --accent-cool: #00a6a6;
  --max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shadow-sm: 0 10px 24px rgba(232, 163, 191, 0.12);
  --shadow-md: 0 18px 44px rgba(102, 55, 75, 0.13);
  --shadow-lg: 0 30px 70px rgba(102, 55, 75, 0.18);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(232, 163, 191, 0.08) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, rgba(0, 166, 166, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }

h1 { font-size: clamp(2.8rem, 6.5vw, 5.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-block;
}

.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; line-height: 1.7; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(4rem, 9vw, 7rem) 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 215, 229, 0.9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(232, 163, 191, 0.34);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(232, 163, 191, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .dot { color: var(--accent); }

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 1rem;
  margin-right: auto;
}
.nav-social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(232, 163, 191, 0.34);
  border-radius: 50%;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-social a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
  transform: translateY(-1px);
}
.nav-social svg {
  width: 15px;
  height: 15px;
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  background: var(--accent-soft);
  color: var(--accent-deep) !important;
  border: 1px solid var(--accent);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem !important;
  letter-spacing: 0.06em !important;
  transition: background 0.3s var(--ease);
}
.nav-cta:hover { background: var(--accent-deep); color: var(--bg) !important; }
.nav-cta::after { display: none !important; }

.menu-toggle { display: none; }

@media (max-width: 800px) {
  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    background: rgba(248, 215, 229, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav {
    gap: 0.7rem;
  }

  .nav-social {
    gap: 0.35rem;
    margin-left: 0.35rem;
  }

  .nav-social a {
    width: 30px;
    height: 30px;
  }

  .nav-social svg {
    width: 13px;
    height: 13px;
  }

  .menu-toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 110;
    flex-shrink: 0;
    pointer-events: auto;
    touch-action: manipulation;
  }
  .menu-toggle span {
    width: 26px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background:
      linear-gradient(135deg, rgba(232, 163, 191, 0.12), transparent 45%),
      var(--bg);
    gap: 2rem;
    opacity: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), opacity 0.3s var(--ease), visibility 0s linear 0.45s;
    pointer-events: none;
    z-index: 1000;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
    pointer-events: auto;
  }
  .nav-links a { font-size: 1.4rem; font-family: var(--serif); }
}

@media (max-width: 800px) {
  body {
    padding-top: 72px;
  }

  .menu-toggle {
    z-index: 1001;
  }
}

@media (max-width: 480px) {
  .nav {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    gap: 0.45rem;
  }

  .brand {
    font-size: 1.12rem;
  }

  .nav-social {
    margin-left: 0.15rem;
    gap: 0.25rem;
  }

  .nav-social a {
    width: 26px;
    height: 26px;
  }

  .nav-social svg {
    width: 12px;
    height: 12px;
  }

  .menu-toggle {
    padding: 0.35rem;
  }

  .menu-toggle span {
    width: 24px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(232, 163, 191, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(0, 166, 166, 0.10), transparent 30%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero-text .eyebrow { margin-bottom: 1.4rem; }
.hero-text h1 {
  font-style: italic;
  margin-bottom: 1.6rem;
}
.hero-text h1 .accent {
  color: inherit;
  text-shadow: none;
}
.hero-text .lede { margin-bottom: 2.2rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--line);
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.hero-meta-item .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  font-weight: 600;
}
.hero-meta-item .value {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
}

.hero-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  outline: 8px solid rgba(255, 183, 220, 0.32);
  outline-offset: -16px;
}
.hero-photo picture,
.about-image picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 58%, rgba(23, 19, 26, 0.20)),
    linear-gradient(135deg, rgba(232, 163, 191, 0.18), transparent 40%);
  pointer-events: none;
}

@media (max-width: 800px) {
  .hero {
    padding-top: clamp(2rem, 8vw, 3rem);
  }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; margin: 0 auto; }
  .hero-meta { gap: 1.6rem; }
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 22px rgba(232, 163, 191, 0);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border: 1px solid transparent;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(232, 163, 191, 0.18);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: var(--accent-deep);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-deep), var(--ink));
  color: var(--bg);
}
.btn-outline {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.56);
}
.btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- About ---------- */
.about {
  background:
    linear-gradient(90deg, rgba(232, 163, 191, 0.08), transparent 34%),
    var(--bg-alt);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-image {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  outline: 1px solid rgba(232, 163, 191, 0.24);
  position: sticky;
  top: 100px;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-text h2 { margin: 0.8rem 0 1.6rem; }
.about-text p { color: var(--ink-soft); margin-bottom: 1.3rem; font-size: 1.05rem; }
.about-text p:last-of-type { margin-bottom: 2rem; }

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}
.pill {
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(232, 163, 191, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-deep);
  letter-spacing: 0.02em;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { position: static; max-width: 380px; }
}

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.section-head .right { color: var(--ink-muted); justify-self: end; text-align: right; max-width: 40ch; }
@media (max-width: 700px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .right { justify-self: start; text-align: left; }
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.2vw, 1.8rem);
}
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }

.work-card {
  position: relative;
  display: block;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 240, 247, 0.94)),
    var(--bg-alt);
  border: 1px solid rgba(232, 163, 191, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  padding: clamp(2rem, 3.5vw, 2.6rem);
  min-height: clamp(220px, 22vw, 280px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease), color 0.5s var(--ease);
}
.work-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent), #f7bed5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.work-card:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(248, 215, 229, 0.9)),
    var(--bg-alt);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 163, 191, 0.34);
}
.work-card:hover::before { transform: scaleX(1); }

.work-card .work-index {
  position: absolute;
  top: clamp(1.4rem, 2.5vw, 2rem);
  right: clamp(1.6rem, 3vw, 2.4rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(232, 163, 191, 0.42);
  letter-spacing: 0.04em;
  transition: color 0.5s var(--ease);
}

.work-card .work-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
  height: 100%;
  min-height: inherit;
}
.work-meta-text { flex: 1; max-width: 38ch; }
.work-meta-text .category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 0.7rem;
  display: block;
  transition: color 0.5s var(--ease);
}
.work-meta-text h3 {
  font-size: clamp(1.55rem, 2.2vw, 1.95rem);
  margin-bottom: 0.7rem;
}
.work-meta-text .work-blurb {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-soft);
  transition: color 0.5s var(--ease);
}
.work-arrow {
  width: 46px; height: 46px;
  border: 1px solid rgba(232, 163, 191, 0.28);
  color: var(--accent-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.4s var(--ease);
}
.work-card:hover .work-arrow {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: var(--accent);
  transform: rotate(-45deg);
}

.work-card:hover .work-index { color: var(--accent); }

/* ---------- Resume / Skills ---------- */
.resume {
  background:
    linear-gradient(135deg, rgba(232, 163, 191, 0.26), transparent 42%),
    linear-gradient(315deg, rgba(143, 77, 103, 0.26), transparent 38%),
    #17101a;
  color: var(--bg);
}
.resume h2, .resume h3, .resume .eyebrow { color: var(--bg); }
.resume .eyebrow {
  color: var(--accent-soft);
}
.resume .lede { color: rgba(250, 248, 245, 0.75); }

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem;
}
@media (max-width: 800px) {
  .resume {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .resume-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2.4rem;
  }
}

.resume-block h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: var(--sans);
  font-weight: 600;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(250, 248, 245, 0.15);
  margin-bottom: 1.6rem;
}
.timeline-item { margin-bottom: 2rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item .role { font-family: var(--serif); font-size: 1.5rem; color: var(--bg); margin-bottom: 0.2rem; }
.timeline-item .org {
  font-size: 0.95rem; color: var(--accent-soft); margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}
.timeline-item .when {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(250, 248, 245, 0.55);
  margin-bottom: 0.9rem;
}
.timeline-item ul { list-style: none; padding-left: 0; }
.timeline-item li {
  color: rgba(250, 248, 245, 0.78);
  font-size: 0.96rem;
  line-height: 1.65;
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.55rem;
}
.timeline-item li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 8px; height: 1px;
  background: var(--accent-soft);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.5rem;
}
.skills-grid .skill {
  font-size: 0.95rem;
  padding: 0.55rem 0;
  color: rgba(250, 248, 245, 0.85);
  border-bottom: 1px solid rgba(250, 248, 245, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.skills-grid .skill .level {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

@media (max-width: 700px) {
  .resume-block h3 {
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    margin-bottom: 1rem;
  }

  .timeline-item {
    margin-bottom: 1.8rem;
  }

  .timeline-item .role {
    font-size: 1.35rem;
  }

  .timeline-item li {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .skills-grid .skill {
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.95rem 0;
    font-size: 1rem;
    line-height: 1.35;
  }

  .skills-grid .skill > span:first-child {
    max-width: 18ch;
  }

  .skills-grid .skill .level {
    flex: 0 0 auto;
    padding-top: 0.18rem;
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-align: right;
  }
}

@media (max-width: 420px) {
  .skills-grid .skill {
    flex-direction: column;
    gap: 0.25rem;
  }

  .skills-grid .skill > span:first-child {
    max-width: none;
  }

  .skills-grid .skill .level {
    text-align: left;
  }
}

.resume-cta { margin-top: 3rem; }
.resume-cta .btn-outline {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}
.resume-cta .btn-outline:hover {
  background: var(--bg);
  border-color: var(--accent-soft);
  color: var(--accent-deep);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { padding-right: 1rem; }
.contact-info h2 { margin: 0.8rem 0 1.4rem; }
.contact-info .lede { margin-bottom: 2.5rem; }

.contact-list { list-style: none; padding: 0; }
.contact-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact-list .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  font-weight: 600;
}
.contact-list .value { font-family: var(--serif); font-size: 1.3rem; }
.contact-list a:hover { color: var(--accent); }

.contact-form {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 240, 247, 0.95)),
    var(--bg-alt);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: var(--radius);
  border: 1px solid rgba(232, 163, 191, 0.18);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(232, 163, 191, 0.22);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 163, 191, 0.12);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent-deep);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.site-footer {
  background:
    linear-gradient(135deg, rgba(232, 163, 191, 0.22), transparent 38%),
    var(--ink);
  color: rgba(250, 248, 245, 0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 248, 245, 0.1);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand .brand { color: var(--bg); font-size: 1.6rem; }
.footer-brand p { margin-top: 0.8rem; max-width: 32ch; line-height: 1.6; font-size: 0.95rem; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bg);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; font-size: 0.94rem; }
.footer-col a:hover { color: var(--accent-soft); }

.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.5);
}

.social-row { display: flex; gap: 0.7rem; margin-top: 1rem; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid rgba(250, 248, 245, 0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.social-row a:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.social-row svg { width: 16px; height: 16px; }

/* ---------- Project pages ---------- */
.project-hero {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    linear-gradient(135deg, rgba(232, 163, 191, 0.12), transparent 36%),
    transparent;
}
.project-hero .eyebrow { margin-bottom: 1rem; }
.project-hero h1 { margin-bottom: 1.4rem; max-width: 18ch; }
.project-hero .lede { max-width: 60ch; }
.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.project-meta-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}
.project-meta-item .value { font-family: var(--serif); font-size: 1.1rem; }

.project-gallery {
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.project-gallery-grid {
  display: grid;
  gap: clamp(1.25rem, 2.2vw, 1.8rem);
  grid-auto-rows: 1fr;
}
.project-gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.project-gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.project-gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.project-gallery-grid.cols-1 { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }

@media (max-width: 980px) {
  .project-gallery-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .project-gallery-grid.cols-2,
  .project-gallery-grid.cols-3,
  .project-gallery-grid.cols-4 { grid-template-columns: 1fr; }
}

.gallery-figure {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 247, 0.92));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(232, 163, 191, 0.14);
  cursor: zoom-in;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  height: clamp(320px, 42vh, 460px);
}
.gallery-figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 163, 191, 0.32);
}
.gallery-figure img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  display: block;
}
.gallery-figure picture {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}
.gallery-figure picture img {
  flex: 1 1 auto;
}
.gallery-figure figcaption {
  flex: 0 0 auto;
  padding: 0.7rem 1.1rem 0.95rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  text-align: center;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.project-nav a {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}
.project-nav .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}
.project-nav .title { font-family: var(--serif); font-size: 1.3rem; }
.project-nav .right { text-align: right; }
.project-nav a:hover .label,
.project-nav a:hover .title { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 11, 7, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1.5rem;
  color: var(--bg);
  background: rgba(250, 248, 245, 0.1);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Visually hidden ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
