/* ————————————————————————————————
   Interiors by Nikhila Nayini
   ———————————————————————————————— */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #241a12;
  --bark: #55432f;
  --caramel: #9c6b3f;
  --paper: #f6f1e9;
  --linen: #ece3d4;
  --card: #fffdf9;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Karla', -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --arch: 999px 999px 0 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: var(--caramel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }

/* ————— Header ————— */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 241, 233, .9);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linen);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 3.6rem; gap: 1rem;
}
.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; letter-spacing: .01em;
  white-space: nowrap;
}
.wordmark em { font-weight: 400; font-style: italic; color: var(--bark); }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  font-size: .95rem; font-weight: 500; color: var(--bark);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .site-nav a:not(:last-child) { display: none; } /* keep only Contact on tiny screens */
}

/* ————— Hero ————— */
.hero { padding: clamp(2.2rem, 6vh, 4.5rem) 0 clamp(2.5rem, 7vh, 5rem); }
.hero .wrap {
  display: grid; gap: clamp(1.8rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.05fr .95fr; }
}
.hero-text h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.7rem, 8vw, 4.6rem);
  line-height: 1.04; letter-spacing: -.015em;
}
.hero-text h1 .line-2 { display: block; font-style: italic; color: var(--caramel); }
.hero-byline {
  margin-top: 1.1rem; font-size: 1.05rem; color: var(--bark); font-weight: 500;
}
.hero-lede {
  margin-top: 1.2rem; max-width: 34ch; color: var(--bark);
}
.hero-cta {
  display: inline-block; margin-top: 1.8rem;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: .98rem; text-decoration: none;
  padding: .85rem 1.7rem; border-radius: 999px;
}
.hero-cta:hover { background: var(--caramel); color: #fff; }
.hero-arch {
  justify-self: center; width: min(100%, 420px);
  border-radius: var(--arch);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(36, 26, 18, .45);
}
.hero-arch img { width: 100%; height: auto; aspect-ratio: 3/4.4; object-fit: cover; }

/* ————— Section headings ————— */
.section { padding: clamp(2.6rem, 8vh, 5.5rem) 0; }
.section-head { margin-bottom: clamp(1.4rem, 4vh, 2.4rem); }
.section-head h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem); letter-spacing: -.01em;
}
.section-head p { color: var(--bark); margin-top: .5rem; max-width: 52ch; }

/* ————— Filters ————— */
.filters {
  position: sticky; top: 3.6rem; z-index: 30;
  background: rgba(246, 241, 233, .93);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: .7rem 0;
  margin-bottom: 1.4rem;
}
.filters-row {
  display: flex; gap: .5rem; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 2px;
}
.filters-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  font-family: var(--sans); font-size: .93rem; font-weight: 500;
  color: var(--bark); background: transparent;
  border: 1px solid var(--linen); border-radius: 999px;
  padding: .5rem 1.05rem; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--caramel); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.chip .count { color: inherit; opacity: .55; font-weight: 400; margin-left: .3rem; }

/* ————— Gallery ————— */
.gallery { columns: 1; column-gap: 1rem; }
@media (min-width: 560px)  { .gallery { columns: 2; } }
@media (min-width: 980px)  { .gallery { columns: 3; } }
.tile {
  break-inside: avoid; margin: 0 0 1rem;
  border: 0; padding: 0; width: 100%;
  background: var(--linen); border-radius: 10px; overflow: hidden;
  cursor: zoom-in; position: relative; display: block;
}
.tile img { width: 100%; height: auto; transition: transform .35s ease; }
.tile:hover img { transform: scale(1.025); }
.tile[hidden] { display: none; }
.gallery-note { margin-top: .6rem; color: var(--bark); font-size: .92rem; }

/* ————— Lightbox ————— */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(22, 15, 9, .94);
  display: none; align-items: center; justify-content: center;
  touch-action: pan-y;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(94vw, 1100px); max-height: 86vh;
  width: auto; height: auto;
  border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
}
.lb-caption {
  position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%);
  color: #e9ded0; font-size: .92rem; letter-spacing: .02em;
}
.lb-btn {
  position: absolute; border: 0; cursor: pointer;
  background: rgba(246, 241, 233, .12); color: #f6f1e9;
  width: 2.9rem; height: 2.9rem; border-radius: 999px;
  font-size: 1.35rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lb-btn:hover { background: rgba(246, 241, 233, .28); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .8rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .8rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { display: none; } /* swipe on touch */
  .lightbox img { max-width: 96vw; max-height: 82vh; }
}

/* ————— Films ————— */
.films { background: var(--ink); color: var(--paper); }
.films .section-head h2 { color: var(--paper); }
.films .section-head p { color: #cbbba7; }
.film-row {
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .film-row { grid-template-columns: repeat(3, 1fr); } }
.film {
  border-radius: 12px; overflow: hidden; background: #170f09;
}
.film video { width: 100%; aspect-ratio: 9/16; object-fit: cover; }

/* ————— About ————— */
.about .wrap {
  display: grid; gap: clamp(1.8rem, 5vw, 4rem); align-items: center;
}
@media (min-width: 860px) { .about .wrap { grid-template-columns: .85fr 1.15fr; } }
.about-photo {
  border-radius: var(--arch); overflow: hidden; width: min(100%, 380px);
  justify-self: center;
}
.about-photo img { aspect-ratio: 3/4.2; object-fit: cover; width: 100%; }
.about-text h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-bottom: 1rem;
}
.about-text p { color: var(--bark); max-width: 58ch; }
.about-text p + p { margin-top: .9rem; }
.about-quote {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem;
  color: var(--caramel); margin-top: 1.4rem;
}

/* ————— Process ————— */
.process ol {
  list-style: none; counter-reset: step;
  display: grid; gap: .1rem; max-width: 640px;
}
.process li {
  counter-increment: step;
  display: grid; grid-template-columns: 3.2rem 1fr; align-items: baseline;
  padding: 1.05rem 0; border-bottom: 1px solid var(--linen);
}
.process li:first-child { border-top: 1px solid var(--linen); }
.process li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.05rem; color: var(--caramel);
}
.process li strong { font-weight: 700; font-size: 1.08rem; }
.process li span { display: block; color: var(--bark); font-size: .97rem; margin-top: .15rem; }

/* ————— Contact ————— */
.contact { background: var(--linen); }
.contact-inner { text-align: left; }
.contact h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.01em;
  max-width: 18ch; line-height: 1.15;
}
.contact h2 em { font-style: italic; color: var(--caramel); }
.contact-links {
  margin-top: 1.8rem; display: grid; gap: .65rem; font-size: 1.1rem;
}
.contact-links a {
  color: var(--ink); text-decoration: none; font-weight: 500;
  display: inline-flex; align-items: center; gap: .6rem; width: fit-content;
}
.contact-links a:hover { color: var(--caramel); }
.contact-links svg { flex: 0 0 auto; color: var(--caramel); }
.footer-note {
  margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid #ddd0bc;
  color: var(--bark); font-size: .9rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between;
}
