/* ==========================================================================
   DANIELLE AMORR BEAUTY — shared stylesheet
   ========================================================================== */

:root {
  --cream:      #F7F3EE;
  --cream-deep: #EFE7DE;
  --blush:      #E9D8CE;
  --white:      #FFFFFF;
  --ink:        #2B2422;
  --ink-soft:   #6B5C52;
  --taupe:      #A08979;
  --line:       rgba(43, 36, 34, 0.12);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: 24px;
  --maxw:   1240px;
  --pad:    clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--taupe); outline-offset: 4px; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--taupe);
}
.lede { font-size: 1.0625rem; color: var(--ink-soft); }
.center { text-align: center; }

.rule {
  width: 44px;
  height: 1px;
  background: var(--taupe);
  margin: 1.75rem auto;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 1rem 2.75rem;
  border: 1px solid var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 400;
  background: transparent;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn--light { border-color: rgba(255,255,255,0.8); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,0.16); color: #fff; }
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--taupe); border-color: var(--taupe); }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--cream-deep);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.utility .wrap { display: flex; justify-content: flex-end; gap: 1.5rem; padding-block: 0.55rem; }
.utility a { color: var(--ink-soft); }
.utility a:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header { padding: 1.55rem 0 1.3rem; text-align: center; }
.site-header__logo img { width: 154px; margin: 0 auto 1.45rem; }
.nav { display: flex; justify-content: center; gap: 3.1rem; flex-wrap: wrap; row-gap: 1rem; }
.nav a {
  font-size: 0.71rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav a:hover, .nav a.is-active { border-bottom-color: var(--taupe); }

.nav-toggle {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: var(--gutter);
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}
.site-header { position: relative; }

@media (max-width: 1200px) { .nav { gap: 2.4rem; } }
@media (max-width: 1040px) { .nav { gap: 1.9rem; } }

@media (max-width: 900px) {
  .site-header { padding: 1.2rem 0; }
  .site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .site-header__logo { flex: 1; text-align: left; }
  .site-header__logo img { width: 152px; margin: 0; }
  .nav-toggle { display: block; position: static; transform: none; flex: 0 0 auto; }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    padding-top: 1.4rem;
    margin-top: 1.2rem;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 0.78rem; display: inline-block; }
}

/* ---------- Hero banner ---------- */
/* Homepage: utility bar + header + hero occupy exactly one screen */
.viewport-top {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.viewport-top .hero { flex: 1 1 0%; min-height: 0; position: relative; }
.viewport-top .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero { position: relative; }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.5rem;
  animation: heroNudge 2.4s ease-in-out infinite;
}
.hero__scroll:hover { color: #fff; }
@keyframes heroNudge {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) { .hero__scroll { animation: none; } }
.hero img { width: 100%; height: clamp(520px, 84vh, 900px); object-fit: cover; object-position: center 30%; }
@media (max-width: 640px) { .hero img { height: clamp(440px, 72vh, 620px); } }
.hero__caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  padding: 0 var(--gutter);
  color: #fff;
  background: linear-gradient(180deg, rgba(30,22,18,0.28), rgba(30,22,18,0.48));
}
.hero__caption .eyebrow { color: rgba(255,255,255,0.85); }

/* ---------- Sections ---------- */
.section { padding: var(--pad) 0; }
.section--tight { padding: calc(var(--pad) * 0.6) 0; }
.page-head + .section--tight { padding-top: calc(var(--pad) * 0.3); }
.section--white { background: var(--white); }
.section--deep { background: var(--cream-deep); }
.section__head { text-align: center; margin-bottom: 3.5rem; }
.section__head p { max-width: 62ch; margin: 1.25rem auto 0; }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.split--flip .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__body .eyebrow { display: block; margin-bottom: 1rem; }
.split__body p + p { margin-top: 1.1rem; }
.split__body .btn { margin-top: 2.2rem; }
.signature { width: 210px; margin-top: 2rem; opacity: 0.85; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split__body { text-align: center; }
}

/* ---------- Tile grid ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tile { display: block; text-align: center; }
.tile__frame { overflow: hidden; background: var(--cream-deep); }
.tile img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tiles--2 img { aspect-ratio: 4 / 3; }
.tile:hover img { transform: scale(1.045); }
.tile__label {
  margin-top: 1.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.tile__note { font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.04em; }
@media (max-width: 900px) { .tiles, .tiles--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles, .tiles--3, .tiles--2 { grid-template-columns: 1fr; } }

/* ---------- Letter block ---------- */
.letter { text-align: center; }
.letter__mark { width: 74px; margin: 0 auto 2rem; opacity: 0.7; }
.letter p { max-width: 60ch; margin: 0 auto; }
.letter p + p { margin-top: 1.2rem; }

/* ---------- Testimonials ---------- */
.quote { max-width: 74ch; margin: 0 auto; text-align: center; }
.quote__text { font-family: var(--serif); font-size: clamp(1.15rem, 2.1vw, 1.5rem); line-height: 1.6; font-weight: 300; }
.quote__author { margin-top: 1.75rem; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--taupe); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.quotes .quote { text-align: left; }
.quotes .quote__text { font-size: 1.05rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Clients strip ---------- */
.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem clamp(2rem, 5vw, 4rem);
  padding-top: 0.5rem;
}
.clients li {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Galleries ---------- */
.page-head { padding: calc(var(--pad) * 0.28) 0 0; text-align: center; }
.page-head .eyebrow { display: block; margin-bottom: 1rem; }
.page-head p { max-width: 56ch; margin: 0.85rem auto 0; line-height: 1.65; }

.gallery-label {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 2.5rem;
}
.masonry { columns: 3 290px; column-gap: 1.1rem; }
.masonry img { width: 100%; margin-bottom: 1.1rem; break-inside: avoid; }
.grid { display: grid; gap: 1.1rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--uniform img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.stills { display: grid; gap: 1.4rem; max-width: 1000px; margin: 0 auto; }
.stills img { width: 100%; }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.pager { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; padding-top: 3.5rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.4rem; max-width: 640px; margin: 0 auto; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  border-radius: 0;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 1px solid var(--taupe); }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Service list ---------- */
.services { max-width: 900px; margin: 0 auto; }
.service {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.service:first-child { border-top: 1px solid var(--line); }
.service__name { font-family: var(--serif); font-size: 1.35rem; }
.service__desc { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.3rem; }
.service__meta { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--taupe); white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-deep); padding: calc(var(--pad) * 0.7) 0 2rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.site-footer img.mark { width: 240px; margin-bottom: 1.4rem; }
.site-footer h4 { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 400; }
.site-footer li + li { margin-top: 0.55rem; }
.site-footer a:hover { color: var(--taupe); }
.site-footer p { color: var(--ink-soft); font-size: 0.92rem; }
.newsletter { display: flex; gap: 0.6rem; margin-top: 1rem; }
.newsletter input { flex: 1; border: 1px solid var(--line); background: var(--white); padding: 0.75rem 0.9rem; font-family: var(--sans); font-weight: 300; }
.newsletter button { border: 0; background: var(--ink); color: var(--cream); padding: 0 1.4rem; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; }
.newsletter button:hover { background: var(--taupe); }
.site-footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-footer__bottom ul { display: flex; gap: 1.6rem; flex-wrap: wrap; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; text-align: center; } .site-footer img.mark { margin-inline: auto; } .site-footer__bottom { justify-content: center; text-align: center; } .site-footer__bottom ul { justify-content: center; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE REFINEMENTS
   ========================================================================== */

/* Tablet */
@media (max-width: 900px) {
  :root { --gutter: 20px; --pad: clamp(3rem, 8vw, 4.5rem); }
  .hero__caption { gap: 1.1rem; }
  .section__head { margin-bottom: 2.5rem; }
  .masonry { columns: 2 220px; column-gap: 0.75rem; }
  .masonry img { margin-bottom: 0.75rem; }
  .grid { gap: 0.75rem; }
  .split { gap: 2.2rem; }
  .split__media img { aspect-ratio: 3 / 4; }
}

/* Phone */
@media (max-width: 620px) {
  :root { --gutter: 18px; --pad: clamp(2.6rem, 11vw, 3.6rem); }
  body { font-size: 15px; line-height: 1.75; }

  .utility { font-size: 0.58rem; letter-spacing: 0.16em; }
  .utility .wrap { justify-content: center; gap: 1rem; }

  .h1 { font-size: clamp(1.95rem, 9vw, 2.5rem); }
  .h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .h3 { font-size: 1.25rem; }
  .eyebrow { font-size: 0.62rem; letter-spacing: 0.3em; }
  .lede { font-size: 1rem; }

  .btn { padding: 0.9rem 1.9rem; font-size: 0.66rem; letter-spacing: 0.22em; }
  .pager { flex-direction: column; align-items: center; gap: 0.7rem; }
  .pager .btn { width: 100%; max-width: 320px; }

  .hero__caption { gap: 0.9rem; padding-inline: 1.2rem; }

  /* single-column galleries read better than cramped 2-up on a phone */
  .masonry { columns: 1; }
  .masonry img { margin-bottom: 0.7rem; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; gap: 0.7rem; }
  .stills { gap: 0.9rem; }

  .tiles, .tiles--3, .tiles--2 { grid-template-columns: 1fr; gap: 1.6rem; }
  .tile img { aspect-ratio: 4 / 5; }

  .split { gap: 1.8rem; }
  .split__body { text-align: center; }
  .signature { margin-inline: auto; width: 170px; }

  .quote__text { font-size: 1.05rem; }
  .quotes { gap: 2.2rem; }
  .quotes .quote { text-align: center; }
  .clients { gap: 0.9rem 1.6rem; }
  .clients li { font-size: 0.95rem; letter-spacing: 0.1em; }

  .service { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.3rem 0; }
  .service__name { font-size: 1.2rem; }

  .form__row { grid-template-columns: 1fr; gap: 1.1rem; }
  .field input, .field select, .field textarea { font-size: 16px; } /* stops iOS zoom-on-focus */
  .form .btn { width: 100%; }

  .newsletter { flex-direction: column; }
  .newsletter button { padding: 0.85rem; }
  .site-footer__bottom { margin-top: 2.4rem; }
}

/* Very small phones */
@media (max-width: 380px) {
  .site-header__logo img { width: 134px; }
  .h1 { font-size: 1.8rem; }
}

/* Landscape phone — don't let a tall hero swallow the screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero img { height: 100vh; }
}

/* Never allow horizontal scroll */
html, body { overflow-x: hidden; }
img, video { max-width: 100%; }

/* ---------- Homepage viewport hero, small screens ---------- */
@media (max-width: 900px) {
  .hero__scroll { bottom: 1.1rem; }
}
@media (max-width: 620px) {
  /* on phones the mobile header is a single short row, so the hero still fills */
  .viewport-top { min-height: 100svh; }
  .hero__scroll { bottom: 0.9rem; font-size: 1rem; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .viewport-top { min-height: 0; }
  .viewport-top .hero { flex: 0 0 auto; position: relative; }
  .viewport-top .hero img { position: static; height: 68vh; }
  .hero__scroll { display: none; }
}

/* ---------- Pillar cards (numbered feature blocks) ---------- */
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.6rem;
  text-align: center;
}
.pillar .eyebrow { display: block; margin-bottom: 0.9rem; }
.pillar h3 { margin-bottom: 0.7rem; }
.pillar p { color: var(--ink-soft); font-size: 0.93rem; }
.section--white .pillar { background: var(--cream); }

/* ==========================================================================
   PORTFOLIO — category nav + preview sections + lightbox
   ========================================================================== */
.portfolio-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 2.2rem;
  padding-top: 1.15rem;
}
.portfolio-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.portfolio-nav a:hover { border-bottom-color: var(--taupe); color: var(--taupe); }

.cat-section { padding: calc(var(--pad) * 0.5) 0; scroll-margin-top: 1.5rem; }
.cat-section:first-of-type { padding-top: calc(var(--pad) * 0.16); }
.cat-section + .cat-section { border-top: 1px solid var(--line); }
.cat-section__title {
  text-align: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}
.cat-section__note { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 1.4rem; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat-grid button {
  padding: 0; border: 0; background: none; cursor: zoom-in; display: block; overflow: hidden;
}
.cat-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cat-grid button:hover img { transform: scale(1.045); }
.cat-more { text-align: center; margin-top: 2rem; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; } }
@media (max-width: 620px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(28, 22, 19, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; width: auto; object-fit: contain; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: none;
  border: 0;
  color: #FFFCF7;
  cursor: pointer;
  line-height: 1;
  padding: 0.6rem 0.9rem;
  font-size: 1.6rem;
}
.lightbox__close { top: 1rem; right: 1.2rem; font-size: 1.5rem; }
.lightbox__nav--prev { left: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 2.2rem; }
.lightbox__nav--next { right: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 2.2rem; }
.lightbox__count {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 252, 247, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
}
@media (max-width: 620px) {
  .lightbox__nav--prev { left: 0; }
  .lightbox__nav--next { right: 0; }
}

/* ==========================================================================
   LAYERED FEATURE BLOCK (offset panel + overlapping image)
   ========================================================================== */
.layered { position: relative; padding: calc(var(--pad) * 0.85) 0; }
.layered__panel {
  position: absolute;
  inset: 0 22% 8% 0;
  background: var(--white);
  z-index: 0;
}
.layered__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.layered__body { text-align: center; }
.layered__kicker {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}
.layered__body .eyebrow { display: block; margin-bottom: 0.9rem; }
.layered__label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 1.4rem 0 2.2rem;
}
.layered__body p { max-width: 46ch; margin-inline: auto; }
.layered__body p + p { margin-top: 1.2rem; }
.layered__body .btn { margin-top: 2.4rem; min-width: 280px; }
.layered__media { position: relative; }
.layered__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 900px) {
  .layered__panel { inset: 0 0 12% 0; }
  .layered__inner { grid-template-columns: 1fr; }
  .layered__media { max-width: 460px; margin: 0 auto; }
  .layered__body .btn { min-width: 0; width: 100%; max-width: 340px; }
}

/* ==========================================================================
   SERVICE EXPLORER — filter tabs, accordion rows, enquiry builder
   ========================================================================== */
.svc-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
.svc-tab {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.85rem 1.7rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.svc-tab:hover { border-color: var(--taupe); color: var(--ink); }
.svc-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.svc-group { margin-bottom: 3.2rem; }
.svc-group[hidden] { display: none; }
.svc-group__label {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--taupe);
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.svc-item { border-bottom: 1px solid var(--line); }
.svc-head {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: padding-left 0.35s ease;
}
.svc-head:hover { padding-left: 0.6rem; }
.svc-head__name { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 300; }
.svc-head__meta {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  white-space: nowrap;
}
.svc-head__icon {
  width: 22px; height: 22px;
  position: relative;
  flex: 0 0 auto;
}
.svc-head__icon::before, .svc-head__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.svc-head__icon::before { top: 50%; left: 0; width: 100%; height: 1px; margin-top: -0.5px; }
.svc-head__icon::after  { left: 50%; top: 0; height: 100%; width: 1px; margin-left: -0.5px; }
.svc-head[aria-expanded="true"] .svc-head__icon::after { transform: scaleY(0); opacity: 0; }

.svc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.svc-panel__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 0 0 2.2rem;
}
.svc-panel p { color: var(--ink-soft); }
.svc-panel ul { margin-top: 1.1rem; display: grid; gap: 0.5rem; }
.svc-panel li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.svc-panel li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 12px; height: 1px;
  background: var(--taupe);
}
.svc-panel__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.svc-add {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}
.svc-add input { position: absolute; opacity: 0; pointer-events: none; }
.svc-add__box {
  width: 18px; height: 18px;
  border: 1px solid var(--taupe);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.svc-add__box::after { content: "\2713"; color: var(--cream); font-size: 0.7rem; opacity: 0; transition: opacity 0.2s ease; }
.svc-add input:checked + .svc-add__box { background: var(--ink); border-color: var(--ink); }
.svc-add input:checked + .svc-add__box::after { opacity: 1; }
.svc-add input:focus-visible + .svc-add__box { outline: 1px solid var(--taupe); outline-offset: 3px; }

@media (max-width: 760px) {
  .svc-head { grid-template-columns: 1fr auto; gap: 0.8rem; }
  .svc-head__meta { grid-column: 1 / -1; grid-row: 2; }
  .svc-panel__inner { grid-template-columns: 1fr; }
  .svc-panel__media { max-width: 320px; }
}

/* Enquiry tray */
.svc-tray {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--cream);
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.svc-tray.is-open { transform: none; }
.svc-tray__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.svc-tray__count { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; }
.svc-tray__list { font-size: 0.86rem; color: rgba(247, 243, 238, 0.7); margin-top: 0.2rem; }
.svc-tray__actions { display: flex; align-items: center; gap: 1rem; }
.svc-tray .btn { border-color: var(--cream); color: var(--cream); padding: 0.85rem 2rem; }
.svc-tray .btn:hover { background: var(--cream); color: var(--ink); }
.svc-tray__clear {
  background: none; border: 0; cursor: pointer;
  color: rgba(247, 243, 238, 0.6);
  font-family: inherit; font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.svc-tray__clear:hover { color: var(--cream); }
@media (max-width: 620px) {
  .svc-tray__inner { flex-direction: column; align-items: stretch; text-align: center; gap: 0.8rem; padding-block: 1rem; }
  .svc-tray__actions { justify-content: center; }
  .svc-tray .btn { flex: 1; }
}

/* ==========================================================================
   MARQUEE — scrolling client ticker
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: 0 0 auto; }
.marquee__item {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 clamp(1.6rem, 3.5vw, 3rem);
  white-space: nowrap;
}
.marquee__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--taupe); flex: 0 0 auto; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ==========================================================================
   INDEX LIST — editorial hover-reveal category list
   ========================================================================== */
.index-list { position: relative; max-width: 1000px; margin: 0 auto; }
.index-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.9rem 0.4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  transition: padding-left 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.35s ease;
}
.index-row:first-child { border-top: 1px solid var(--line); }
.index-row:hover { padding-left: 0.9rem; }
.index-row__num {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--taupe);
  min-width: 2ch;
}
.index-row__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.1;
  position: relative;
  z-index: 3;
  transition: opacity 0.35s ease;
}
.index-row__meta {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
}
.index-list:hover .index-row__name { opacity: 0.55; }
.index-list .index-row:hover .index-row__name { opacity: 1; }

.index-peek {
  position: absolute;
  top: 0;
  left: 62%;
  width: 132px;
  aspect-ratio: 3 / 4;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.index-peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.index-peek img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .index-peek { display: none; } .index-row:hover { padding-left: 0.4rem; } .index-list:hover .index-row__name { opacity: 1; } }
@media (max-width: 620px) {
  .index-row { grid-template-columns: auto 1fr; padding: 1.4rem 0; }
  .index-row__meta { grid-column: 2; text-align: left; }
}

/* ==========================================================================
   BEFORE / AFTER SLIDER
   ========================================================================== */
.ba {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 252, 247, 0.9);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba__grip {
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.95);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(28, 22, 19, 0.25);
}
.ba__grip::before, .ba__grip::after {
  content: "";
  border: 5px solid transparent;
}
.ba__grip::before { border-right-color: var(--ink); }
.ba__grip::after { border-left-color: var(--ink); }
.ba__tag {
  position: absolute;
  bottom: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #FFFCF7;
  background: rgba(28, 22, 19, 0.5);
  padding: 0.45rem 0.9rem;
  pointer-events: none;
}
.ba__tag--before { left: 1rem; }
.ba__tag--after { right: 1rem; }

/* ==========================================================================
   DUO — split-screen service chooser
   ========================================================================== */
.duo {
  display: flex;
  gap: 0.6rem;
  height: clamp(420px, 62vh, 620px);
}
.duo__panel {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  display: block;
  transition: flex-grow 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--ink);
}
.duo__panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.65s ease;
  filter: brightness(0.82);
}
.duo__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,18,14,0.10) 35%, rgba(24,18,14,0.72) 100%);
  transition: opacity 0.6s ease;
}
.duo__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  color: #FFFCF7;
}
.duo__num {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  color: rgba(255, 252, 247, 0.65);
  margin-bottom: 0.7rem;
}
.duo__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.05;
}
.duo__sub {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 252, 247, 0.8);
  margin-top: 0.6rem;
}
.duo__reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, margin-top 0.6s ease;
}
.duo__reveal ul { margin-bottom: 1.3rem; }
.duo__reveal li {
  font-size: 0.9rem;
  color: rgba(255, 252, 247, 0.86);
  padding-left: 1.3rem;
  position: relative;
  margin-top: 0.35rem;
}
.duo__reveal li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 11px; height: 1px;
  background: rgba(255, 252, 247, 0.6);
}
.duo__cta {
  display: inline-block;
  border: 1px solid rgba(255, 252, 247, 0.85);
  padding: 0.8rem 2rem;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}
.duo__panel:hover .duo__cta { background: #FFFCF7; color: var(--ink); }

@media (hover: hover) and (min-width: 901px) {
  .duo:hover .duo__panel { flex-grow: 0.72; }
  .duo:hover .duo__panel:hover,
  .duo__panel:focus-within { flex-grow: 1.75; }
  .duo:hover .duo__panel:not(:hover) img { filter: brightness(0.55) saturate(0.6); }
  .duo__panel:hover img, .duo__panel:focus-within img { transform: scale(1.05); filter: brightness(0.88); }
  .duo__panel:hover .duo__reveal,
  .duo__panel:focus-within .duo__reveal { max-height: 300px; opacity: 1; margin-top: 1.4rem; }
}

@media (max-width: 900px) {
  .duo { flex-direction: column; height: auto; gap: 1rem; }
  .duo__panel { min-height: 460px; }
  .duo__panel::after { background: linear-gradient(180deg, rgba(24,18,14,0.55) 0%, rgba(24,18,14,0.78) 100%); }
  .duo__body { top: 0; display: flex; flex-direction: column; justify-content: center; }
  .duo__reveal { max-height: 340px; opacity: 1; margin-top: 1.2rem; }
  .duo__cta { display: block; text-align: center; }
}

/* ==========================================================================
   DUO — resting affordance so the interaction reads before you hover
   ========================================================================== */
.duo__hint {
  position: absolute;
  top: clamp(1.2rem, 2.4vw, 2rem);
  right: clamp(1.2rem, 2.4vw, 2rem);
  z-index: 3;
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 252, 247, 0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.5s ease;
}
.duo__hint::before, .duo__hint::after {
  content: "";
  position: absolute;
  background: #FFFCF7;
  transition: transform 0.45s ease, background 0.4s ease;
}
.duo__hint::before { width: 12px; height: 1px; }
.duo__hint::after  { width: 1px; height: 12px; }
.duo__panel:hover .duo__hint, .duo__panel:focus-within .duo__hint {
  background: #FFFCF7; border-color: #FFFCF7; transform: rotate(90deg);
}
.duo__panel:hover .duo__hint::before, .duo__panel:focus-within .duo__hint::before { background: var(--ink); }
.duo__panel:hover .duo__hint::after, .duo__panel:focus-within .duo__hint::after { transform: scaleY(0); background: var(--ink); }
@media (max-width: 900px) { .duo__hint { display: none; } }

/* ==========================================================================
   REEL SHOWCASE — vertical content in a phone frame
   ========================================================================== */
.reel-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.reel-copy .eyebrow { display: block; margin-bottom: 1rem; }
.reel-copy p + p { margin-top: 1.1rem; }
.reel-copy .btn { margin-top: 2.2rem; }

.reel-formats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 2rem; }
.reel-chip {
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.3s ease;
}
.reel-chip:hover { border-color: var(--taupe); color: var(--ink); }
.reel-chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.phone {
  position: relative;
  width: clamp(240px, 26vw, 300px);
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 26px 60px rgba(43, 36, 34, 0.22);
  flex: 0 0 auto;
}
.phone::before {
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 20px;
  background: var(--ink);
  border-radius: 12px;
  z-index: 4;
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 29px;
  overflow: hidden;
  background: #14100e;
}
.phone__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.phone__slide.is-on { opacity: 1; }
.phone__slide img { width: 100%; height: 100%; object-fit: cover; }
.phone__ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20,14,11,0.34) 0%, transparent 18%, transparent 40%, rgba(20,14,11,0.55) 72%, rgba(20,14,11,0.94) 100%);
}
.phone__label {
  position: absolute;
  left: 16px; right: 16px; bottom: 58px;
  z-index: 4;
  color: #FFFCF7;
  font-size: 0.74rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.phone__label strong { display: block; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.62rem; margin-bottom: 0.35rem; opacity: 0.95; }
.phone__label { text-shadow: 0 1px 6px rgba(20,14,11,0.6); }
.phone__bars { position: absolute; left: 16px; right: 16px; bottom: 30px; z-index: 4; display: flex; gap: 4px; }
.phone__bar { flex: 1; height: 2px; background: rgba(255,252,247,0.35); overflow: hidden; }
.phone__bar span { display: block; height: 100%; width: 0; background: #FFFCF7; }
.phone__bar.is-active span { animation: reelFill 4s linear forwards; }
.phone__bar.is-done span { width: 100%; }
@keyframes reelFill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .phone__bar.is-active span { animation: none; width: 100%; } }

@media (max-width: 900px) {
  .reel-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .reel-copy { order: 2; }
  .reel-formats { justify-content: center; }
  .reel-copy .btn { width: 100%; max-width: 340px; }
  .phone { width: min(270px, 72vw); }
}
