/* ─────────────────────────────────────────────────────────────
   m. mixedmedia — styles
   Palette: Pearl #FCF9D8 · Black Olive #3D402F · Lilac #C99FCD
   Type:    Cormorant Garamond (display + body) + JetBrains Mono (labels)
   ───────────────────────────────────────────────────────────── */

:root {
  /* Palette */
  --pearl:        #ECE6EA;   /* soft grey with a whisper of lilac */
  --pearl-warm:   #E6DFE5;   /* derived in about section via color-mix below */
  --pearl-cool:   #E2DDE6;
  --olive:        #3D402F;
  --olive-soft:   #565a45;
  --lilac:        #C99FCD;
  --lilac-soft:   #E2C7E4;
  --lilac-deep:   #A87BAE;

  /* Type */
  --font-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;
  --font-sans:  'Futura', 'Futura PT', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Deep gray for section headings (per client) */
  --deep-gray:  #2E2E33;

  /* Layout */
  --gutter: clamp(20px, 4vw, 64px);
  --max:    1240px;

  /* Lilac frame width — gallery matting */
  --frame: clamp(14px, 1.6vw, 24px);
}

/* ───────── Reset ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--olive);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--lilac-deep); }
::selection { background: var(--lilac); color: var(--olive); }


/* ───────── Type primitives ───────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-soft);
  margin: 0 0 1.2rem;
  font-weight: 500;
}


/* ─────────────────────────────────────────────────────────────
   NAV
   ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--pearl) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--olive) 12%, transparent);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
}
.nav__logo {
  height: 44px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--lilac);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--olive);
  transition: transform .25s ease, opacity .2s ease;
}


/* ─────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 76px);
  padding: clamp(40px, 8vh, 90px) var(--gutter) 60px;
  position: relative;
  display: flex;
  align-items: center;
}
.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.hero__left { display: flex; flex-direction: column; }
.hero__logo {
  width: clamp(72px, 8vw, 110px);
  height: auto;
  margin-bottom: 28px;
}
.hero__name {
  margin: 0 0 28px;
  line-height: 0;
}
.hero__wordmark {
  display: block;
  width: clamp(260px, 38vw, 520px);
  height: auto;
}
.hero__tagline {
  font-size: clamp(18px, 1.4vw, 22px);
  font-style: italic;
  color: var(--olive-soft);
  margin: 0;
  max-width: 36ch;
  line-height: 1.45;
}

.hero__contact {
  border-left: 1px solid color-mix(in srgb, var(--olive) 20%, transparent);
  padding-left: clamp(20px, 3vw, 40px);
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-soft);
}
.contact-list a, .contact-list li > span:last-child {
  font-size: 20px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
}
.contact-list a:hover {
  border-bottom-color: var(--lilac);
  color: var(--olive);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--lilac);
  color: var(--olive);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .2s ease, transform .2s ease;
  align-self: flex-start;
}
.hero__cta:hover {
  background: var(--lilac-deep);
  color: var(--pearl);
  transform: translateY(-2px);
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--olive-soft);
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: .7; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}


/* ─────────────────────────────────────────────────────────────
   SECTION SCAFFOLD
   ───────────────────────────────────────────────────────────── */
.section {
  padding: clamp(70px, 11vh, 130px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  scroll-margin-top: 80px;
}
.section__head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.section__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--deep-gray);
  margin: 0 0 1rem;
  font-style: italic;
}
.section__lede {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--olive-soft);
  max-width: 56ch;
  margin: 0;
  line-height: 1.5;
}


/* ─────────────────────────────────────────────────────────────
   GALLERY — asymmetric editorial grid + lilac mat frames
   ───────────────────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: row dense;
  gap: clamp(24px, 3.2vw, 56px) clamp(20px, 2.6vw, 40px);
}

.art { margin: 0; cursor: zoom-in; }
.art--span-3 { grid-column: span 3; }
.art--span-4 { grid-column: span 4; }
.art--span-5 { grid-column: span 5; }
.art--span-7 { grid-column: span 7; }
.art--span-8 { grid-column: span 8; }

/* The lilac mat — thick frame with subtle inner shadow */
.art__frame {
  background: var(--lilac);
  padding: var(--frame);
  position: relative;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s ease;
  box-shadow: 0 1px 0 rgba(61,64,47,0.1), 0 12px 30px -18px rgba(61,64,47,0.4);
}
.art__frame::before {
  /* inner hairline so the artwork has a hard edge against the mat */
  content: "";
  position: absolute;
  inset: calc(var(--frame) - 4px);
  border: 1px solid color-mix(in srgb, var(--olive) 25%, transparent);
  pointer-events: none;
}
.art__frame img {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
}
.art:hover .art__frame {
  transform: translateY(-4px);
  background: var(--lilac-deep);
}

/* Aspect ratios */
.art--tall   .art__frame img { aspect-ratio: 4 / 5; object-fit: cover; }
.art--wide   .art__frame img { aspect-ratio: 5 / 3; object-fit: cover; }
.art--square .art__frame img { aspect-ratio: 1 / 1; object-fit: cover; }

.art figcaption {
  padding: 20px 4px 0;
  max-width: 46ch;
}
.art figcaption h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.art__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-soft);
  margin: 0 0 10px;
}
.art figcaption p:last-child {
  font-size: 16px;
  line-height: 1.55;
  color: var(--olive-soft);
  margin: 0;
  font-style: italic;
}


/* ─────────────────────────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────────────────────────── */
.section--about {
  /* Derived from current --pearl + --lilac so it always sits a hair warmer than the page bg. */
  background: color-mix(in srgb, var(--pearl) 88%, var(--lilac) 12%);
  max-width: none;
}
.section--about > .section__head,
.section--about > .about { max-width: var(--max); margin-inline: auto; }

.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about__portrait { position: sticky; top: 96px; }
.art__frame--portrait { max-width: 360px; }
.art__frame--portrait img { aspect-ratio: 3 / 4; object-fit: cover; }

.about__copy p {
  margin: 0 0 1.2em;
  font-size: 19px;
  line-height: 1.65;
  max-width: 60ch;
}
.about__pull {
  font-size: clamp(24px, 2.4vw, 34px) !important;
  line-height: 1.3 !important;
  color: var(--olive);
  font-weight: 400;
  font-style: italic;
  border-left: 3px solid var(--lilac);
  padding-left: 24px;
  margin-bottom: 2rem !important;
}
.about__pull em { font-style: italic; }

.facts {
  margin: 2.4rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2rem;
  border-top: 1px solid color-mix(in srgb, var(--olive) 20%, transparent);
  padding-top: 1.8rem;
}
.facts > div { display: flex; flex-direction: column; gap: 4px; }
.facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-soft);
}
.facts dd { margin: 0; font-size: 18px; }


/* ─────────────────────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────────────────────── */
.section--contact { padding-bottom: clamp(90px, 13vh, 160px); }

.contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-list--stacked { gap: 1.3rem; margin-bottom: 1.6rem; }
.contact__note {
  font-size: 15px;
  font-style: italic;
  color: var(--olive-soft);
  line-height: 1.55;
  border-top: 1px solid color-mix(in srgb, var(--olive) 15%, transparent);
  padding-top: 1rem;
  margin: 0;
  max-width: 36ch;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-soft);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 18px;
  color: var(--olive);
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--olive) 30%, transparent);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color .2s ease;
  outline: none;
  font-family: var(--font-serif);
}
.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}
.field select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--olive) 50%), linear-gradient(135deg, var(--olive) 50%, transparent 50%); background-position: calc(100% - 12px) 18px, calc(100% - 6px) 18px; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--lilac-deep); }
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--olive) 40%, transparent); font-style: italic; }

.btn-send {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--olive);
  color: var(--pearl);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .2s ease, transform .2s ease, gap .2s ease;
  margin-top: 0.5rem;
}
.btn-send:hover {
  background: var(--lilac-deep);
  gap: 18px;
}
.btn-send:disabled { opacity: 0.5; cursor: wait; }

.form__status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  margin: 0;
  min-height: 1.4em;
}
.form__status.is-ok    { color: var(--lilac-deep); }
.form__status.is-error { color: #a4392b; }


/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.footer {
  background: var(--olive);
  color: var(--pearl);
  padding: 56px var(--gutter) 32px;
  margin-top: 40px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.footer__brand img { width: auto; height: 64px; filter: invert(1) brightness(1.05); }
.footer__brand p { margin: 0; font-size: 15px; line-height: 1.5; color: color-mix(in srgb, var(--pearl) 88%, transparent); }
.footer__brand strong { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--pearl); }

.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--pearl) 80%, transparent);
}
.footer__nav a:hover { color: var(--lilac); }

.footer__legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: color-mix(in srgb, var(--pearl) 70%, transparent);
  text-align: right;
}
.footer__legal p { margin: 0; }
.footer__site { color: var(--lilac); margin-top: 8px !important; }


/* ─────────────────────────────────────────────────────────────
   LIGHTBOX
   ───────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--olive) 94%, black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-height: 90vh;
}
.art__frame--lightbox { max-width: min(80vw, 900px); max-height: 70vh; }
.art__frame--lightbox img { max-height: calc(70vh - var(--frame) * 2); width: auto; max-width: 100%; }
.lightbox figcaption {
  text-align: center;
  color: var(--pearl);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  max-width: 50ch;
}
.lightbox figcaption strong { display: block; font-style: normal; font-weight: 500; font-size: 22px; margin-bottom: 4px; }
.lightbox figcaption .art__meta {
  color: color-mix(in srgb, var(--pearl) 60%, transparent);
  margin-top: 6px;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  color: var(--pearl);
  font-family: var(--font-serif);
  font-size: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--pearl) 30%, transparent);
  border-radius: 50%;
  transition: background .2s ease, border-color .2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--lilac-deep); border-color: var(--lilac-deep); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }


/* ─────────────────────────────────────────────────────────────
   REVEAL ON SCROLL
   ───────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__contact { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--olive) 20%, transparent); padding-left: 0; padding-top: 32px; }
  .hero__scroll { display: none; }

  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__portrait { position: static; }
  .art__frame--portrait { max-width: 280px; }

  .contact { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__legal { text-align: left; }

  /* Gallery — collapse to a simpler 6-col grid on tablet */
  .gallery { grid-template-columns: repeat(6, 1fr); gap: 36px 24px; }
  .art--span-3, .art--span-4 { grid-column: span 3; }
  .art--span-5 { grid-column: span 3; }
  .art--span-7, .art--span-8 { grid-column: span 6; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }

  .nav__links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--pearl);
    border-bottom: 1px solid color-mix(in srgb, var(--olive) 12%, transparent);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--olive) 10%, transparent); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav.is-open .nav__links {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .gallery { grid-template-columns: 1fr; gap: 40px; }
  .art--span-3, .art--span-4, .art--span-5, .art--span-7, .art--span-8 { grid-column: span 1; }

  .facts { grid-template-columns: 1fr; gap: 1rem; }

  .lightbox__nav { display: none; }
}


/* ─────────────────────────────────────────────────────────────
   PRINT — minimal cleanup
   ───────────────────────────────────────────────────────────── */
@media print {
  .nav, .footer, .hero__scroll, .lightbox, .nav__toggle, .btn-send { display: none !important; }
  body { background: white; }
  .art__frame { background: white; box-shadow: none; border: 1px solid #ccc; padding: 8px; }
  .art__frame::before { display: none; }
}
