/* Quiet Light Editorial — Mara Vale portfolio */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #242321;
  background: #f3f0ea;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  opacity: 0.72;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid #242321;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  background: #242321;
  color: #f3f0ea;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 240, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: #d4cec4;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.brand {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
}

.brand:hover {
  opacity: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  border-bottom: 1px solid #242321;
  padding-bottom: 2px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: #242321;
  margin: 6px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #242321;
  background: transparent;
  color: #242321;
  padding: 12px 18px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  line-height: 1.2;
}

.btn:hover {
  opacity: 1;
  background: #242321;
  color: #f3f0ea;
}

.btn-dark {
  background: #242321;
  color: #f3f0ea;
  border-color: #242321;
}

.btn-dark:hover {
  background: transparent;
  color: #242321;
}

.btn-light {
  background: #f3f0ea;
  color: #242321;
  border-color: #f3f0ea;
}

.btn-light:hover {
  background: transparent;
  color: #f3f0ea;
  border-color: #f3f0ea;
}

.btn-ghost-light {
  border-color: rgba(243, 240, 234, 0.7);
  color: #f3f0ea;
}

.btn-ghost-light:hover {
  background: #f3f0ea;
  color: #242321;
  border-color: #f3f0ea;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.text-link {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid #242321;
  padding-bottom: 2px;
}

.text-link:hover {
  opacity: 0.55;
}

/* Typography helpers */
.kicker,
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: #68635c;
}

.section-title,
.page-title,
.ql-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
  color: #242321;
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
}

.page-title {
  font-size: clamp(34px, 6vw, 48px);
  margin-bottom: 16px;
}

.section-intro,
.lede {
  margin: 0;
  color: #68635c;
  font-size: 14px;
  line-height: 1.65;
  max-width: 42ch;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #4f514c;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(36, 35, 33, 0.55) 0%, rgba(36, 35, 33, 0.18) 48%, rgba(36, 35, 33, 0.42) 100%),
    linear-gradient(to top, rgba(36, 35, 33, 0.62) 0%, transparent 48%);
}

.hero-tag {
  position: absolute;
  right: 24px;
  top: 22px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 48px 0 56px;
  width: min(1120px, calc(100% - 40px));
}

.hero-copy .kicker {
  color: rgba(245, 241, 235, 0.78);
}

.hero-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  max-width: 14ch;
  color: #fff;
}

.hero-copy .lede {
  color: #f5f1eb;
  max-width: 38ch;
  margin-bottom: 28px;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 40px;
  margin-bottom: 36px;
}

.section-head-center {
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
}

.section-head .section-intro {
  margin-top: 4px;
}

/* Work grid */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  border: 1px solid #d4cec4;
  background: transparent;
  padding: 8px 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #68635c;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.filter:hover {
  border-color: #242321;
  color: #242321;
}

.filter.is-active {
  background: #242321;
  border-color: #242321;
  color: #f3f0ea;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.work-card {
  position: relative;
  border: 0;
  padding: 0;
  background: #d4cec4;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-align: left;
  isolation: isolate;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.35s ease;
}

.work-card:hover img,
.work-card:focus-visible img {
  transform: scale(1.035);
}

.work-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 12px 12px;
  background: linear-gradient(to top, rgba(36, 35, 33, 0.72), transparent);
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

.work-card.is-hidden {
  display: none;
}

.work-card.is-fading {
  opacity: 0.35;
}

/* About */
.about-section {
  background: #ebe6dc;
  border-block: 1px solid #d4cec4;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px 56px;
  align-items: center;
}

.about-media {
  background: #d4cec4;
  overflow: hidden;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-copy p {
  margin: 0 0 14px;
  color: #4a4640;
  font-size: 14px;
  line-height: 1.7;
  max-width: 48ch;
}

.about-copy .section-title {
  margin-bottom: 18px;
}

.about-facts {
  display: grid;
  gap: 14px;
  margin: 28px 0 28px;
  padding: 0;
}

.about-facts div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  border-top: 1px solid #d4cec4;
  padding-top: 12px;
}

.about-facts dt {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #68635c;
  margin: 0;
}

.about-facts dd {
  margin: 0;
  font-size: 13px;
  color: #242321;
}

.about-facts.compact {
  margin-top: 28px;
}

/* Rates */
.rates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rate-card {
  background: #faf8f4;
  border: 1px solid #d4cec4;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.rate-card.featured {
  background: #242321;
  border-color: #242321;
  color: #f3f0ea;
}

.rate-card.featured .rate-desc,
.rate-card.featured .rate-list,
.rate-card.featured .rate-label,
.rate-card.featured .rate-price {
  color: rgba(243, 240, 234, 0.78);
}

.rate-card.featured h3 {
  color: #f3f0ea;
}

.rate-card.featured .text-link {
  color: #f3f0ea;
  border-bottom-color: rgba(243, 240, 234, 0.55);
}

.rate-media {
  overflow: hidden;
  background: #cfc7ba;
}

.rate-media img {
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rate-card:hover .rate-media img {
  transform: scale(1.03);
}

.rate-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rate-label {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #68635c;
}

.rate-body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.2;
}

.rate-price {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #242321;
}

.rate-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #68635c;
  flex: 0 0 auto;
}

.rate-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #68635c;
  line-height: 1.55;
}

.rate-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}

.rate-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 1px;
  background: currentColor;
}

.rate-body .text-link {
  margin-top: auto;
  align-self: flex-start;
}

.rates-note {
  margin: 28px 0 0;
  font-size: 12px;
  color: #68635c;
  max-width: 62ch;
  line-height: 1.6;
}

/* CTA */
.cta-section {
  padding-top: 24px;
}

.cta-inner {
  border-top: 1px solid #d4cec4;
  padding-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px 40px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cta-meta {
  margin: 0;
  font-size: 11px;
  color: #68635c;
  letter-spacing: 0.04em;
}

/* Footer */
.site-footer {
  border-top: 1px solid #d4cec4;
  padding: 28px 0 36px;
  margin-top: 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 20px;
  align-items: end;
}

.footer-brand p {
  margin: 8px 0 0;
  font-size: 12px;
  color: #68635c;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-copy {
  margin: 0;
  font-size: 11px;
  color: #68635c;
  text-align: right;
}

/* Contact page */
.page-hero {
  padding: 48px 0 8px;
}

.page-hero-inner .section-intro {
  max-width: 48ch;
}

.contact-section {
  padding-top: 28px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px 40px;
  align-items: start;
}

.contact-aside {
  position: sticky;
  top: 88px;
}

.contact-aside-media {
  background: #d4cec4;
  overflow: hidden;
  margin-bottom: 24px;
}

.contact-aside-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.aside-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.help-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #4a4640;
  line-height: 1.55;
}

.help-list li {
  padding: 10px 0;
  border-top: 1px solid #d4cec4;
}

.help-list li:last-child {
  border-bottom: 1px solid #d4cec4;
}

.contact-form-panel {
  background: #faf8f4;
  border: 1px solid #d4cec4;
  padding: 28px 28px 32px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #68635c;
}

.field span em {
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.75;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d4cec4;
  background: #f3f0ea;
  padding: 12px 14px;
  border-radius: 0;
  appearance: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, #68635c 50%),
    linear-gradient(135deg, #68635c 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #b8b0a4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #242321;
  background: #fff;
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #8a3a2a;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  font-size: 12px;
  color: #68635c;
}

.form-status {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid #d4cec4;
}

.form-status.is-success {
  background: #e7efe4;
  border-color: #b7c9ae;
  color: #243222;
}

.form-status.is-error {
  background: #f3e6e2;
  border-color: #d4b0a4;
  color: #5a2c22;
}

/* Lightbox */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 35, 33, 0.88);
  cursor: zoom-out;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 40px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 8px 4px;
  align-items: center;
}

.lightbox-figure {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.lightbox-figure img {
  max-height: calc(100vh - 160px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #1c1b19;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-figure figcaption {
  margin-top: 14px;
  color: rgba(243, 240, 234, 0.78);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.lightbox-close {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: end;
  border: 1px solid rgba(243, 240, 234, 0.4);
  background: transparent;
  color: #f3f0ea;
  padding: 8px 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lightbox-close:hover {
  background: #f3f0ea;
  color: #242321;
}

.lightbox-nav {
  border: 0;
  background: transparent;
  color: #f3f0ea;
  font-size: 42px;
  line-height: 1;
  width: 48px;
  height: 48px;
  padding: 0;
  opacity: 0.75;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-nav.prev {
  grid-column: 1;
  grid-row: 2;
}

.lightbox-nav.next {
  grid-column: 3;
  grid-row: 2;
}

.lightbox-count {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
  text-align: center;
  color: rgba(243, 240, 234, 0.55);
  font-size: 11px;
  letter-spacing: 0.12em;
}

body.lb-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 960px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    position: static;
  }

  .contact-aside-media {
    max-width: 360px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(1120px, calc(100% - 32px));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: #f3f0ea;
    border-bottom: 1px solid #d4cec4;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 20px;
    gap: 0;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid #e2dcd2;
  }

  .hero {
    min-height: min(78vh, 640px);
  }

  .hero-tag {
    right: 16px;
    top: 16px;
  }

  .hero-copy {
    padding: 36px 0 40px;
  }

  .section {
    padding: 56px 0;
  }

  .work-grid {
    gap: 8px;
  }

  .form-row.two {
    grid-template-columns: 1fr;
  }

  .contact-form-panel {
    padding: 22px 18px 26px;
  }

  .lightbox-dialog {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    width: 100%;
  }

  .lightbox-close {
    grid-column: 1;
  }

  .lightbox-figure {
    grid-column: 1;
    grid-row: 2;
  }

  .lightbox-nav.prev,
  .lightbox-nav.next {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
  }

  .lightbox-nav.prev {
    transform: translateX(-48px);
  }

  .lightbox-nav.next {
    transform: translateX(48px);
    grid-row: 3;
  }

  .lightbox-count {
    grid-column: 1;
    grid-row: 4;
  }

  .lightbox-nav {
    position: relative;
  }

  .lightbox-dialog {
    position: relative;
  }

  .lightbox-nav.prev,
  .lightbox-nav.next {
    position: absolute;
    bottom: 36px;
    top: auto;
  }

  .lightbox-nav.prev {
    left: 8px;
    transform: none;
  }

  .lightbox-nav.next {
    right: 8px;
    left: auto;
    transform: none;
  }
}

@media (max-width: 480px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    aspect-ratio: 5 / 6;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .cta-inner {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .work-card img,
  .rate-media img {
    transition: none;
  }
}