@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/Raleway-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Raleway-400-normal.woff2') format('woff2');
}
/* ============================================================
   TARA M. EVENTS: design system
   Ivory ground, espresso ink, antique gold accent.
   Bodoni Moda for display, Jost for labels and body.
   ============================================================ */

@import url("../assets/fonts/fonts.css");

:root {
  --ivory:      #f6f2ea;
  --ivory-deep: #efe9dd;
  --ink:        #29211b;
  --ink-soft:   #57493d;
  --gold:       #9e8258; /* matches Tara's proposal/brand gold */
  --gold-soft:  #c3ab84;
  --line:       rgba(41, 33, 27, 0.16);

  --serif: "Bodoni Moda", "Didot", "Playfair Display", serif;
  --sans:  "Raleway", "Jost", "Futura", "Century Gothic", sans-serif;

  --track-wide: 0.32em;
  --track-mid:  0.18em;

  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --measure: 34em;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

::selection { background: var(--gold-soft); color: var(--ink); }

/* Visible only to keyboard users: lets them bypass the fixed navigation. */
.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.72rem;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

/* ---------- type scale ---------- */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--gold);
}

.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.85; }

p { max-width: var(--measure); }

em { font-family: var(--serif); font-style: italic; letter-spacing: 0.02em; }

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--pad-x);
  transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.9rem;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark span { color: var(--gold); }

.site-nav { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); }

.site-nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  padding-block: 0.35rem;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { right: 0; }

/* header over hero imagery */
.header-on-image:not(.scrolled) { color: #fff; }
.header-on-image:not(.scrolled) .wordmark span { color: #fff; }

/* mobile nav */
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--ivory);
    color: var(--ink);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.55s;
  }
  .site-nav.open { transform: translateY(0); visibility: visible; transition-delay: 0s; }
  .site-nav a { font-size: 0.95rem; }
  .nav-toggle {
    display: block;
    z-index: 60;
    background: none;
    border: 0;
    color: inherit;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: var(--track-mid);
    text-transform: uppercase;
    cursor: pointer;
  }
  .site-nav.open ~ .nav-toggle,
  .site-header:has(.site-nav.open) { color: var(--ink); }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
}

.hero img, .hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 15, 11, 0.38) 0%,
    rgba(20, 15, 11, 0.12) 38%,
    rgba(20, 15, 11, 0.60) 100%
  );
}

.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding-bottom: clamp(3rem, 9vh, 6rem);
}

.hero .eyebrow { color: rgba(255, 255, 255, 0.94); text-shadow: 0 1px 14px rgba(20, 15, 11, 0.55); }

.hero h1 {
  max-width: 16em;
  padding-inline: var(--pad-x);
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(20, 15, 11, 0.45);
}

.scroll-cue {
  margin-top: 2.2rem;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.55);
  position: relative;
  overflow: hidden;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: #fff;
  animation: cue 2.6s ease-in-out infinite;
}

@keyframes cue { to { top: 110%; } }

/* ---------- sections ---------- */

.section { padding: clamp(4.5rem, 11vh, 8.5rem) var(--pad-x); }

.section-narrow {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  border: 0;
}

/* ---------- portfolio grid ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
  max-width: 90rem;
  margin-inline: auto;
}

.work-card { position: relative; }

.work-card figure {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ivory-deep);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.work-card:hover img { transform: scale(1.05); }

.work-card figcaption { padding-top: 1.1rem; text-align: center; }

.work-card .title {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
}

.work-card .sub {
  font-size: 0.7rem;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

/* ---------- gallery pages ---------- */

.gallery-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
  max-width: 68rem;
  margin-inline: auto;
}

.about-portrait,
.about-copy { max-width: 38rem; }

.about-copy p { max-width: none; }

/* Full-width frames show whole, always */
.g-full img {
  width: 100%;
  height: auto;
}

/* Vertical photos in full-width slots show WHOLE — centered, never cropped */
.g-full.is-portrait { display: flex; justify-content: center; }

.g-full.is-portrait img {
  width: auto;
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
}

/* Pairs sit two-up; flex ratios equalize heights so both show whole, never cropped */
.g-pair {
  display: flex;
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
  align-items: stretch;
}

.g-pair figure { min-width: 0; flex: 1 1 0; }

.g-pair img {
  width: 100%;
  height: auto;
  display: block;
}

/* Pairs stay two-up down to phone width; only true phones stack */
@media (max-width: 480px) {
  .g-pair { grid-template-columns: 1fr; }
  .g-full img, .g-pair img { max-height: none; height: auto; }
}

/* a pair left with a single image spans the full row */
.g-pair:has(> figure:only-child) { grid-template-columns: 1fr; }

/* ---------- service pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.8rem 3rem;
  max-width: 72rem;
  margin-inline: auto;
  text-align: left;
}

.pillar h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.pillar ul { list-style: none; }

.pillar li {
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.pillar li:last-child { border-bottom: 0; }

/* ---------- pull quote ---------- */

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.5;
  max-width: 30em;
  text-wrap: balance;
}

.pullquote-attr {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  padding: 1.05rem 2.6rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: background 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

.btn:hover { background: var(--gold); color: var(--ivory); border-color: var(--gold); }

.hero .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- forms ---------- */

.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 2rem;
  text-align: left;
  width: 100%;
  max-width: 44rem;
}

.inquiry-form .full { grid-column: 1 / -1; }

@media (max-width: 640px) { .inquiry-form { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.45rem; }

.field label {
  font-size: 0.68rem;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.1rem;
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.field select { appearance: none; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem var(--pad-x) 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
}

.footer-links { display: flex; gap: 2.2rem; flex-wrap: wrap; justify-content: center; }

.footer-links a {
  font-size: 0.7rem;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
}

.footer-links a:hover { color: var(--gold); }

.credits {
  font-size: 0.78rem;
  color: var(--ink-soft);
  max-width: 52em;
  line-height: 1.9;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .work-card img { transition: none; }
  .scroll-cue::after { animation: none; }
}

@media (min-width: 1180px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

.hero-inner h1, .hero-inner .eyebrow { text-shadow: 0 1px 18px rgba(20,15,11,0.55), 0 0 2px rgba(20,15,11,0.35); }

/* Fix: header backdrop-filter traps the fixed nav panel; disable it while menu is open */
@media (max-width: 720px) {
  .site-header:has(.site-nav.open) { backdrop-filter: none; background: var(--ivory); }
  body:has(.site-nav.open) { overflow: hidden; }
}
@media (max-width: 720px) {
  .site-nav.open { height: 100svh; justify-content: center; padding: 0; margin: 0; }
}

@media (max-width: 600px) {
  .footer-links { flex-direction: column; align-items: center; gap: 0.9rem; }
}

/* Form refinements: visible message area, dropdown chevron */
.field textarea {
  background: rgba(41, 33, 27, 0.035);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
}
.field textarea:focus { border-color: var(--gold); }
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%239e8258' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  padding-right: 1.6rem;
}
/* About page: smaller portrait, tighter rhythm */
.about-portrait { padding-inline: var(--pad-x); }
.about-portrait figure { max-width: 34rem; margin-inline: auto; }
@media (max-width: 600px) { .about-portrait figure { max-width: 78vw; } }