/* ==========================================================================
   Faithless Beauty Studio
   Brand: "Mocha & Latte" - see /Branding/README.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Palette */
  --ivory: #F2EBE0;
  --latte: #D9CCBB;
  --bronze: #A98F6E;
  --mocha: #7E6A50;
  --dark-roast: #3E352E;
  --gold: #B99A5F;

  /* Tints used for rules, overlays and hovers */
  --rule: rgba(169, 143, 110, 0.35);
  --rule-soft: rgba(169, 143, 110, 0.18);
  --veil: rgba(62, 53, 46, 0.45);

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Tenor Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;

  /* Spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;

  /* Shape */
  --radius: 0;
  --shadow-card: 0 2px 24px rgba(62, 53, 46, 0.08);
  --shadow-card-hover: 0 6px 36px rgba(62, 53, 46, 0.14);

  /* Layout */
  --measure: 1180px;
  --measure-narrow: 720px;
  --header-h: 96px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 240ms;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

/* Component rules below set an explicit display, which would otherwise beat
   the browser default for [hidden] and leave hidden elements on screen. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--dark-roast);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--mocha);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--bronze); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--dark-roast);
  margin: 0 0 var(--s3);
  line-height: 1.15;
}

h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4.4vw, 44px); }
h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: var(--s2); }
h4 { font-size: 20px; margin-bottom: var(--s1); }

p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

::selection {
  background: var(--bronze);
  color: var(--ivory);
}

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

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--s3);
}

.wrap--narrow { max-width: var(--measure-narrow); }

.section {
  padding-block: clamp(var(--s5), 9vw, var(--s6));
}

.section--tight { padding-block: clamp(var(--s4), 6vw, var(--s5)); }
.section--latte { background: var(--latte); }
.section--roast { background: var(--dark-roast); color: var(--ivory); }
.section--roast h2,
.section--roast h3 { color: var(--ivory); }

.center { text-align: center; }
.narrow-copy { max-width: 62ch; }
.center .narrow-copy { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 var(--s2);
  display: block;
}

.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
  color: var(--mocha);
}

.rule {
  width: 64px;
  height: 1px;
  background: var(--bronze);
  border: 0;
  margin: var(--s3) 0;
}
.center .rule { margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark-roast);
  color: var(--ivory);
  padding: var(--s2) var(--s3);
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.1em;
  z-index: 200;
}
.skip-link:focus {
  left: var(--s2);
  top: var(--s2);
  color: var(--ivory);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid var(--dark-roast);
  background: var(--dark-roast);
  color: var(--ivory);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn:hover,
.btn:focus-visible {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--ivory);
}

.btn--ghost {
  background: transparent;
  border-color: var(--bronze);
  color: var(--dark-roast);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--bronze);
  color: var(--ivory);
}

.btn--light {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--dark-roast);
}
.btn--light:hover,
.btn--light:focus-visible {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--ivory);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}
.center .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   5. Logo lockup (set live in type, per brand guidance)
   -------------------------------------------------------------------------- */

.lockup {
  display: inline-block;
  text-align: center;
  line-height: 1;
  color: inherit;
}

.lockup__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  /* letter-spacing adds trailing space, nudge back to keep it optically centred */
  text-indent: 0.2em;
}

.lockup__tag {
  display: block;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  color: var(--bronze);
}

/* Header scale */
.lockup--sm .lockup__name { font-size: 24px; }
.lockup--sm .lockup__tag { font-size: 8.5px; margin-top: 7px; }

/* Footer scale */
.lockup--md .lockup__name { font-size: 34px; }
.lockup--md .lockup__tag { font-size: 11px; margin-top: 10px; }

/* Hero scale, embossed */
.lockup--hero .lockup__name { font-size: clamp(46px, 11vw, 132px); }
.lockup--hero .lockup__tag {
  font-size: clamp(11px, 1.9vw, 22px);
  margin-top: clamp(14px, 2.4vw, 26px);
}

/* Embossed treatment, only ever on a flat Latte or Ivory field */
.lockup--emboss .lockup__name {
  color: #CCBDA9;
  text-shadow: -0.018em -0.018em 0.02em rgba(255, 255, 255, 0.95),
                0.035em 0.035em 0.05em rgba(76, 60, 44, 0.45);
}
.lockup--emboss .lockup__tag {
  color: #C2B09A;
  text-shadow: -0.04em -0.04em 0.04em rgba(255, 255, 255, 0.9),
                0.06em 0.06em 0.1em rgba(76, 60, 44, 0.4);
}

.lockup--light .lockup__name { color: var(--ivory); }

/* --------------------------------------------------------------------------
   6. Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 235, 224, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.site-header__brand { color: var(--dark-roast); }
.site-header__brand:hover { color: var(--dark-roast); }

.nav { display: flex; align-items: center; gap: var(--s3); }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s3);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Six nav items plus the button is a squeeze on smaller laptops */
@media (max-width: 1080px) and (min-width: 901px) {
  .nav { gap: var(--s2); }
  .nav__list { gap: var(--s2); }
  .nav__link { font-size: 11px; letter-spacing: 0.14em; }
  .nav__cta { padding: 12px 18px; }
}

.nav__link {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dark-roast);
  padding-block: var(--s1);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--bronze); }
.nav__link:hover::after,
.nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: var(--bronze); }

.nav__cta { padding: 13px 26px; font-size: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--dark-roast);
  margin-inline: auto;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 76px; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule-soft);
    padding: var(--s2) var(--s3) var(--s4);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
  }
  .nav[data-open='true'] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--rule-soft); }
  .nav__link { display: block; padding: var(--s3) 0; font-size: 13px; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: var(--s3); text-align: center; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  background: var(--latte);
  text-align: center;
  padding-block: clamp(var(--s5), 12vw, 150px);
  border-bottom: 1px solid var(--rule-soft);
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--mocha);
  margin: var(--s4) 0 0;
}

.hero__meta {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--mocha);
  margin-top: var(--s3);
}

/* Compact hero for interior pages */
.page-head {
  background: var(--latte);
  text-align: center;
  padding-block: clamp(var(--s5), 8vw, 110px);
  border-bottom: 1px solid var(--rule-soft);
}
.page-head h1 { margin-bottom: var(--s2); }
.page-head .lede { max-width: 58ch; margin-inline: auto; }

/* --------------------------------------------------------------------------
   8. Grids and cards
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--s4);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--ivory);
  border: 1px solid var(--rule-soft);
  padding: var(--s4);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.card__num {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--bronze);
  display: block;
  margin-bottom: var(--s2);
}
.card p { color: var(--mocha); margin-bottom: 0; }
.card__link {
  display: inline-block;
  margin-top: var(--s3);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bronze);
}

.section--latte .card { background: var(--ivory); }

/* Two column feature row */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(var(--s4), 6vw, var(--s6));
  align-items: center;
}

.frame {
  position: relative;
  background: var(--latte);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-soft);
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

.find-us {
  font-style: normal;
  font-family: var(--font-body);
  color: var(--mocha);
  line-height: 1.9;
  padding-left: var(--s3);
  border-left: 1px solid var(--bronze);
  margin-top: var(--s3);
}

/* --------------------------------------------------------------------------
   9. Service list
   -------------------------------------------------------------------------- */

.service-group + .service-group { margin-top: var(--s6); }

.service-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--bronze);
  margin-bottom: var(--s4);
}
.service-group__head h2 { margin: 0; }
.service-group__note {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
}

@media (max-width: 620px) {
  .service-group__head {
    display: block;
  }
  .service-group__note {
    display: block;
    margin-top: var(--s1);
  }
}

.service-list { list-style: none; margin: 0; padding: 0; }

.service {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s1) var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.service:last-child { border-bottom: 0; }

.service__name {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0;
}
.service__price {
  font-family: var(--font-ui);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--dark-roast);
  white-space: nowrap;
  align-self: center;
}
.service__desc {
  grid-column: 1 / -1;
  color: var(--mocha);
  font-size: 16px;
  margin: 0;
  max-width: 62ch;
}
.service__meta {
  grid-column: 1 / -1;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: var(--s1);
}

/* --------------------------------------------------------------------------
   9. Price table
   -------------------------------------------------------------------------- */

.price-table {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 460px;
  border-collapse: collapse;
  margin: var(--s3) 0 var(--s1);
  font-size: 15px;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 11px var(--s2) 11px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.price-table thead th {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 400;
  border-bottom-color: var(--bronze);
  padding-bottom: var(--s1);
}

.price-table tbody th {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark-roast);
}

.price-table td {
  font-family: var(--font-ui);
  color: var(--dark-roast);
  white-space: nowrap;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: 0; }

/* The two price columns stay narrow so the set names keep the space */
.price-table thead th:not(:first-child),
.price-table td { width: 26%; }

@media (max-width: 420px) {
  .price-table { font-size: 14px; }
  .price-table th,
  .price-table td { padding-right: var(--s1); }
}

/* --------------------------------------------------------------------------
   9a. Custom set panel
   -------------------------------------------------------------------------- */

.custom-panel {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: clamp(var(--s3), 4vw, var(--s5));
  align-items: center;
  background: var(--latte);
  border: 1px solid var(--rule-soft);
  padding: clamp(var(--s3), 4vw, var(--s5));
}

.custom-panel__price {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 76px);
  line-height: 1;
  color: var(--dark-roast);
  text-align: center;
  border-left: 1px solid var(--bronze);
  padding-left: var(--s4);
}

.custom-panel__price span {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: var(--s2);
}

.custom-list {
  list-style: none;
  margin: var(--s3) 0 0;
  padding: 0;
}

.custom-list li {
  position: relative;
  padding-left: var(--s3);
  margin-bottom: var(--s2);
  color: var(--mocha);
  font-size: 16px;
}
.custom-list li:last-child { margin-bottom: 0; }

/* A short bronze rule instead of a bullet, in keeping with the thin rules
   used elsewhere on the site */
.custom-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 12px;
  height: 1px;
  background: var(--bronze);
}

@media (max-width: 760px) {
  .custom-panel { grid-template-columns: 1fr; }
  .custom-panel__price {
    text-align: left;
    border-left: 0;
    border-top: 1px solid var(--bronze);
    padding-left: 0;
    padding-top: var(--s3);
  }
}

/* --------------------------------------------------------------------------
   9b. Lash style list
   -------------------------------------------------------------------------- */

/* Text only cards. Photography can be added back later, at which point
   this becomes a two column card with the image alongside again. */
.style-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s3);
}

.style {
  background: var(--ivory);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-card);
  padding: clamp(var(--s3), 3vw, var(--s4));
  transition: box-shadow var(--dur) var(--ease);
}

.style:hover { box-shadow: var(--shadow-card-hover); }

.style h3 { margin-bottom: var(--s2); }
.style p { color: var(--mocha); font-size: 16px; }

.style__suits {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule-soft);
  font-size: 15px;
}

.style__suits strong {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 400;
  display: block;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   9c. Curl and length
   -------------------------------------------------------------------------- */

.detail-list {
  list-style: none;
  margin: var(--s3) 0 0;
  padding: 0;
}

.detail-list li {
  padding: var(--s3) 0;
  border-top: 1px solid var(--rule-soft);
}
.detail-list li:last-child { border-bottom: 1px solid var(--rule-soft); }

.detail-list strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 400;
  margin-bottom: var(--s1);
}
.detail-list span { color: var(--mocha); font-size: 16px; }

/* The chart is a document rather than a photograph, so it must never be
   cropped or squashed. Unlike .frame, which crops photos to a fixed shape,
   this lets the image keep its own proportions. */
.frame--chart {
  aspect-ratio: auto;
  display: block;
  /* .frame centres its child as a grid item, which shrink wraps the link.
     Until the image loads that collapses it to the width of its borders and
     the section jumps when the file arrives. Reset it. */
  place-items: initial;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.frame--chart .frame__link {
  display: block;
  width: 100%;
  border: 1px solid var(--rule-soft);
  background: var(--ivory);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur) var(--ease);
}
.frame--chart .frame__link:hover { box-shadow: var(--shadow-card-hover); }

.frame--chart img {
  width: 100%;
  height: auto;
  object-fit: fill;
}

.frame__caption {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  text-align: center;
  margin-top: var(--s2);
}

/* --------------------------------------------------------------------------
   10. Gallery
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s2);
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--latte);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
}
.gallery-item--tall { aspect-ratio: 3 / 4; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: var(--s1);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--mocha);
  padding: var(--s3);
}
/* Category filter buttons above the gallery grid */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s1);
  margin-bottom: var(--s4);
}

.filter {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: transparent;
  color: var(--mocha);
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.filter:hover { border-color: var(--bronze); color: var(--dark-roast); }

.filter[aria-pressed='true'] {
  background: var(--dark-roast);
  border-color: var(--dark-roast);
  color: var(--ivory);
}

/* Photos are buttons so they can be enlarged from the keyboard too */
.gallery-item__button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery-item__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  background: linear-gradient(to top, rgba(62, 53, 46, 0.78), transparent);
  padding: var(--s3) var(--s2) var(--s2);
  text-align: center;
  pointer-events: none;
}

/* Enlarged view */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1000px);
  max-height: 92vh;
  overflow: visible;
}

.lightbox::backdrop { background: rgba(62, 53, 46, 0.88); }

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}

.lightbox__caption {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  text-align: center;
  margin: var(--s2) 0 0;
}

.lightbox__close {
  position: absolute;
  top: calc(var(--s4) * -1);
  right: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  background: transparent;
  border: 1px solid rgba(242, 235, 224, 0.5);
  padding: 8px 16px;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.lightbox__close:hover {
  background: var(--ivory);
  color: var(--dark-roast);
}

.gallery-item__placeholder .mark {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 0;
  color: var(--bronze);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */

.quote {
  margin: 0;
  padding: var(--s4);
  border-left: 1px solid var(--bronze);
}
/* Browsers indent blockquote by default, which would knock the quote
   off centre inside the figure. */
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.5;
  color: var(--dark-roast);
}
.section--roast .quote p { color: var(--ivory); }
.quote figcaption {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: var(--s2);
}

/* --------------------------------------------------------------------------
   12. Call to action band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--dark-roast);
  color: var(--ivory);
  text-align: center;
  padding-block: clamp(var(--s5), 9vw, var(--s6));
}
.cta-band h2 { color: var(--ivory); }
.cta-band p { color: rgba(242, 235, 224, 0.78); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--dark-roast);
  color: rgba(242, 235, 224, 0.78);
  padding-block: var(--s6) var(--s4);
  border-top: 1px solid rgba(169, 143, 110, 0.3);
}

.site-footer a { color: rgba(242, 235, 224, 0.78); }
.site-footer a:hover { color: var(--bronze); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  gap: var(--s5);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
}

.footer__brand .lockup { text-align: left; }
.footer__brand p {
  margin-top: var(--s3);
  max-width: 34ch;
  font-size: 15px;
}

.footer__title {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 var(--s3);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}
.footer__list li + li { margin-top: var(--s1); }

/* The areas list is long, so it runs in two columns */
.footer__list--areas {
  columns: 2;
  column-gap: var(--s3);
  font-size: 14px;
}
.footer__list--areas li { break-inside: avoid; }
.footer__list--areas li + li { margin-top: 6px; }

.footer__bottom {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid rgba(169, 143, 110, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   14. Scroll reveal
   -------------------------------------------------------------------------- */

/* The hidden state only applies once JS has confirmed it can reveal again.
   Without this guard, a JS failure would leave the page permanently blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   15. Mobile refinements
   --------------------------------------------------------------------------
   Findings from auditing every page at 375px. Buttons were already fine at
   48px tall; the problems were bare text links sitting at around 20px, and a
   few pieces of real copy set at label size.
   -------------------------------------------------------------------------- */

@media (max-width: 620px) {

  /* Text links need a finger sized target, not just a legible one. Padding
     rather than min-height so the link box grows around the text and the
     surrounding rhythm stays even. */
  .footer__list a,
  .card__link,
  .find-us a,
  .service__desc a,
  .lede a,
  .narrow-copy a {
    display: inline-block;
    padding-block: 13px;
  }

  /* The padding above now provides the separation these margins were for */
  .footer__list li + li,
  .footer__list--areas li + li { margin-top: 0; }

  /* Two columns keeps the areas list from running to half a screen */
  .footer__list--areas { columns: 2; font-size: 15px; }

  /* Copy carrying actual information should not sit at label size */
  .hero__meta {
    font-size: 12px;
    letter-spacing: 0.26em;
  }

  .footer__bottom {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .gallery-item__caption {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  /* Long letterspaced labels waste a lot of a narrow screen */
  .eyebrow { letter-spacing: 0.3em; }
  .service__meta { letter-spacing: 0.2em; }
  .service-group__note { letter-spacing: 0.2em; }

  /* Tightening the tracking lets the wordmark sit comfortably in the bar.
     The padding costs nothing visually, the header already has the room,
     and it takes the home link from a 36px target to 48px. */
  .site-header__brand { padding-block: 6px; }
  .site-header__brand.lockup--sm .lockup__name { font-size: 21px; }
  .site-header__brand.lockup--sm .lockup__tag {
    font-size: 8px;
    letter-spacing: 0.45em;
    text-indent: 0.45em;
  }

  /* Stacked buttons read better than two cramped ones side by side */
  .btn-row .btn { flex: 1 1 auto; text-align: center; }

  /* Gallery category filters were about 35px tall */
  .filter { padding: 14px 18px; }
}

/* Very narrow phones, roughly iPhone SE and below */
@media (max-width: 380px) {
  .btn { padding: 15px 24px; }
  .btn-row { gap: var(--s1); }
  .footer__list--areas { font-size: 14px; }
}
