/* ============================================================
   CHIC COCOON — inner-page components (loaded after style.css)
   ============================================================ */

/* active nav + subpage header */
.header-nav a.is-active { color: var(--hdr); }
.header-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta.is-active { background: var(--hdr); border-color: var(--hdr); color: var(--hdr-inv); }
.subpage .site-header {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 var(--line);
  --hdr: var(--ink); --hdr-inv: #ffffff; --hdr-soft: var(--ink-soft); --hdr-line: var(--line-strong);
}
.subpage .site-header.is-scrolled {
  background: #ffffff;
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(0, 0, 0, 0.22);
}
.subpage .scroll-rail { display: none !important; }

/* page hero — editorial title band */
.page-hero {
  padding: calc(88px + clamp(2.6rem, 6vw, 5rem)) 0 clamp(2.2rem, 4.5vw, 3.6rem);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--rose-deep); margin-bottom: 1.5rem;
}
.page-hero .eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: var(--rose); }
.page-hero h1 {
  font-family: var(--serif); font-weight: 360;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--ink); text-wrap: balance; max-width: 22ch;
}
.page-hero h1 em { font-style: italic; color: var(--rose-deep); }
.page-hero .lead {
  font-family: var(--serif); font-style: italic; font-weight: 340;
  font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.5; color: var(--ink-soft);
  margin-top: 1.6rem; max-width: 46rem;
}

.prose p { color: var(--ink-soft); margin-bottom: 1.25rem; max-width: 44rem; }
.prose p.big { font-size: 1.1rem; }

.intro-split {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.intro-split .intro-aside .note { display: block; margin-bottom: 1rem; }
.intro-split figure { overflow: hidden; aspect-ratio: 4/5; background: var(--canvas-2); }
.intro-split figure img { width: 100%; height: 100%; object-fit: cover; }

/* services list */
.svc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line-strong); margin-top: 1.2rem;
}
.svc-item {
  display: flex; align-items: baseline; gap: 1.1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.svc-item .n { font-family: var(--serif); font-style: italic; font-size: 0.92rem; color: var(--rose-deep); min-width: 2.2rem; }
.svc-item h3 { font-family: var(--serif); font-weight: 430; font-size: 1.3rem; color: var(--ink); }

/* feature cards */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.feat {
  border: 1px solid var(--line); border-radius: 20px; padding: 2rem 1.9rem;
  background: rgba(255, 255, 255, 0.5);
}
.feat h3 { font-family: var(--serif); font-weight: 430; font-size: 1.35rem; color: var(--ink); margin-bottom: 0.6rem; }
.feat p { color: var(--ink-soft); font-size: 0.97rem; }

/* showcase filter chips */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.chip {
  padding: 0.6rem 1.3rem; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); background: transparent; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover { color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.work[hidden] { display: none; }
.work-cat { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose-deep); margin-bottom: 0.4rem; }

/* testimonials — editorial list, image + quote, alternating sides */
.t-card {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  border-top: 1px solid var(--line);
}
.t-card:last-child { border-bottom: 1px solid var(--line); }
.t-card-fig { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--canvas-2); }
.t-card-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* alternate the image side, but the QUOTE always keeps the wide column
   (swapping only the order left the quote in the narrow column → justified rivers) */
.t-card:nth-child(even) { grid-template-columns: 2fr 0.8fr; }
.t-card:nth-child(even) .t-card-fig { order: 2; }
.t-card blockquote p {
  font-family: var(--serif); font-weight: 350; font-size: clamp(1.12rem, 1.9vw, 1.48rem);
  line-height: 1.55; color: var(--ink-soft); text-align: justify;
}
@media (max-width: 720px) {
  /* both selectors listed: `.t-card:nth-child(even)` above is more specific than
     a bare `.t-card`, and a media query adds no specificity — so the single-column
     rule must match it or even-numbered cards keep the 2-col desktop layout and
     crush the photo into a ~110px sliver. */
  .t-card,
  .t-card:nth-child(even) { grid-template-columns: 1fr; gap: 1.3rem; }
  .t-card:nth-child(even) .t-card-fig { order: 0; }
  .t-card-fig { aspect-ratio: 3 / 2; }
  .t-card blockquote p { text-align: left; }
}
.t-card blockquote p::before { content: "\201C"; color: var(--rose); }
.t-card blockquote p::after { content: "\201D"; color: var(--rose); }
.t-card .t-by { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.t-card .t-by::before { content: ""; width: 2.4rem; height: 1px; background: var(--rose-deep); }
.t-card .t-by strong { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.t-card .t-by span { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
/* Every photograph we hold for the client's project: the cover fills the figure,
   the remainder sit as a thumbnail strip beneath the quote. Both link through to
   the project page. Projects with a single photo simply show no strip. */
/* Every photograph we hold for the client's project, cross-dissolved in place
   through the shared .fslide page-lay engine (style.css) — no thumbnail grid.
   A project with a single photo simply rests as a still frame. */
.t-stage { position: absolute; inset: 0; }
.t-stage img { object-position: center 46%; transform: scale(1.03); }
.t-fig-link { position: absolute; inset: 0; z-index: 3; }
.t-count {
  position: absolute; z-index: 4; right: 0.7rem; bottom: 0.65rem;
  padding: 0.32rem 0.6rem; border-radius: 2px;
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--canvas); background: rgba(22, 19, 15, 0.4);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  pointer-events: none;
}
.t-proj-link { margin-top: 1.3rem; }

/* journal article */
.article { max-width: 46rem; margin-inline: auto; }
.article .a-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.article .a-meta .cat { color: var(--rose-deep); }
.article h1 { font-family: var(--serif); font-weight: 380; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.08; color: var(--ink); margin-bottom: 1.8rem; text-wrap: balance; }
.article figure.a-hero { aspect-ratio: 16/9; overflow: hidden; background: var(--canvas-2); margin-bottom: 2.4rem; border-radius: 4px; }
.article figure.a-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-body p { color: var(--ink-soft); margin-bottom: 1.3rem; }
.article-body h2 { font-family: var(--serif); font-weight: 430; font-size: 1.5rem; color: var(--ink); margin: 2rem 0 0.8rem; }
.article-nav { max-width: 46rem; margin: 3rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-info .ci-row { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.contact-info .ci-row span { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rose-deep); margin-bottom: 0.5rem; }
.contact-info .ci-row a, .contact-info .ci-row p { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.95rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 4px;
  background: rgba(255, 255, 255, 0.7); font-family: var(--sans); font-size: 1rem; color: var(--ink); transition: border-color 0.25s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--rose-deep); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.8rem; }
.form-alert { padding: 1rem 1.2rem; border-radius: 4px; margin-bottom: 1.5rem; font-size: 0.95rem; }
.form-alert.ok { background: rgba(150, 111, 93, 0.1); color: var(--brown); border: 1px solid var(--rose); }
.form-alert.err { background: rgba(180, 60, 40, 0.08); color: #a23; border: 1px solid #d99; }

/* legal pages */
.legal { max-width: 46rem; margin-inline: auto; }
.legal h2 { font-family: var(--serif); font-weight: 430; font-size: 1.4rem; color: var(--ink); margin: 1.8rem 0 0.7rem; }
.legal p { color: var(--ink-soft); margin-bottom: 1rem; }

@media (max-width: 860px) {
  .intro-split, .contact-grid { grid-template-columns: 1fr; }
  .svc-grid, .feat-grid { grid-template-columns: 1fr; }
  .intro-split figure { max-width: 460px; }
}

/* project detail (case study) — used by project.php */
/* ---- Premium project case study ---- */
.project-hero { border-bottom: none; padding-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
.project-cover {
  width: min(1500px, 100% - 3rem);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;
  background: var(--canvas-2);
}
.project-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; display: block; }
/* facts / credits strip */
.project-facts-band { padding: clamp(1.8rem, 3.5vw, 2.9rem) 0; }
.project-facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 2.5vw, 2.6rem);
  margin: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.3rem, 2.6vw, 1.9rem) 0;
}
.project-facts > div { display: flex; flex-direction: column; gap: 0.5rem; }
.project-facts dt {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.project-facts dd {
  margin: 0; font-family: var(--serif);
  font-size: clamp(0.96rem, 1.15vw, 1.1rem); line-height: 1.3; color: var(--ink);
}
/* ---- Room navigator: large page-lay stage + hover room index ---- */
.room-reel {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
}
.room-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 5px;
  background: var(--canvas-2);
}
.room-stage img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 48%;
  display: block; transform: scale(1.03);
}
.room-panel { display: flex; flex-direction: column; }
.room-copy { display: grid; margin-bottom: clamp(1.2rem, 2.6vw, 2.2rem); }
.room-copy-item {
  grid-area: 1 / 1;
  margin: 0;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink-soft);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
}
.room-copy-item.is-active { opacity: 1; transform: none; }
.room-list { list-style: none; margin: 0; padding: 0; }
.room-name {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 1rem;
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit;
  padding: clamp(0.8rem, 1.6vw, 1.15rem) 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.35s var(--ease-out), padding-left 0.4s var(--ease-out);
}
.room-list li:last-child .room-name { border-bottom: 1px solid var(--line); }
.room-n { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--muted); transition: color 0.35s; }
.room-t { font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.2; color: inherit; }
.room-c { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; align-self: center; }
.room-name:hover { color: var(--ink); }
.room-name.is-active { color: var(--ink); padding-left: 0.95rem; }
.room-name.is-active::before {
  content: ""; position: absolute; left: 0; top: 0.85rem; bottom: 0.85rem;
  width: 2px; background: var(--rose-deep);
}
.room-name.is-active .room-n { color: var(--rose-deep); }
@media (max-width: 860px) {
  .room-reel { grid-template-columns: 1fr; gap: 1.4rem; }
  .room-stage { aspect-ratio: 4 / 3; }
}

/* chaptered sections (retained for any project without the reel) */
.project-section { margin-top: clamp(2.8rem, 6vw, 5rem); }
.project-section:first-child { margin-top: 0; }
.project-section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}
.project-section-no {
  font-family: var(--serif); font-style: italic; line-height: 1;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem); color: var(--rose-deep);
}
.project-section-intro h2 {
  font-family: var(--serif); font-weight: 430;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem); color: var(--ink); margin: 0 0 0.6rem;
}
.project-section-intro p { color: var(--ink-soft); max-width: 46rem; margin: 0; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.8rem, 1.8vw, 1.3rem); }
.project-gallery.gallery-count-3 { grid-template-columns: repeat(3, 1fr); }
.project-gallery.gallery-count-1 { grid-template-columns: 1fr; }
.project-gallery figure { overflow: hidden; background: var(--canvas-2); border-radius: 4px; aspect-ratio: 4 / 5; }
.project-gallery.gallery-count-1 figure { aspect-ratio: 16 / 10; }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .project-facts { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2rem; }
  .project-gallery.gallery-count-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .project-cover { aspect-ratio: 4 / 3; }
  .project-section-head { grid-template-columns: 1fr; gap: 0.4rem; }
  .project-gallery, .project-gallery.gallery-count-3 { grid-template-columns: 1fr; }
  .project-gallery figure, .project-gallery.gallery-count-1 figure { aspect-ratio: 4 / 3; }
}
