/* Molade Events — self-hosted typefaces (latin subset, woff2)
   Only the weights the design actually renders are shipped:
   Cormorant Garamond 500 + 600 (headings), Jost 400 + 500 + 600 (body + UI).
   Adding a weight here costs every visitor ~26-37 KB, so check usage first. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-500-normal.woff2?v=d80df8ff') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-600-normal.woff2?v=d80df8ff') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jost-400-normal.woff2?v=7726a5cd') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jost-500-normal.woff2?v=7726a5cd') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/jost-600-normal.woff2?v=7726a5cd') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   MOLADE EVENTS — website concept
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Layout helpers
   4.  Typography
   5.  Buttons, links, lists
   6.  Header & navigation
   7.  Hero (home)
   8.  Page headers (inner pages)
   9.  About / prose blocks
   10. Services
   11. Gallery
   12. Process & values
   13. Contact
   14. Footer
   15. Lightbox
   16. Motion
   17. Responsive
   ========================================================================== */

/* 1. DESIGN TOKENS ======================================================= */
:root {
  /* colour — warm neutral, high contrast */
  --ivory:        #F8F5EF;
  --ivory-deep:   #F0EADE;
  --cream:        #E5DCCB;
  --sand:         #D6C9B2;

  --ink:          #12100D;
  --charcoal:     #1A1714;
  --charcoal-soft:#282320;

  --body:         #2E2A25;   /* primary body text — 13.5:1 on ivory */
  --body-soft:    #4A443C;   /* secondary text — 8.6:1 on ivory */

  --gold:         #A88247;   /* decorative only: rules, marks, glows */
  --gold-ink:     #7A5B2B;   /* gold for text on light — 5.6:1 on ivory */
  --gold-light:   #D9BC84;   /* gold for text on dark — 9.6:1 on charcoal */

  --line:         rgba(18, 16, 13, .16);
  --line-strong:  rgba(18, 16, 13, .3);
  --line-light:   rgba(248, 245, 239, .22);

  /* type */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* metrics */
  --shell: 1180px;
  --shell-wide: 1320px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 9vw, 132px);
  --radius: 2px;

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. RESET & BASE ======================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (min-width: 700px) { body { font-size: 17.5px; } }
@media (min-width: 1100px) { body { font-size: 18px; } }

img, svg, video { display: block; max-width: 100%; }
picture { display: block; width: 100%; height: 100%; }
img { height: auto; background-color: var(--cream); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold); color: #fff; }

:focus-visible {
  outline: 3px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: 1px;
}
.site-footer :focus-visible,
.contact :focus-visible,
.hero :focus-visible,
.page-head :focus-visible,
.not-found :focus-visible { outline-color: var(--gold-light); }

/* buttons: an inset ring in the button's own text colour, so it stays visible
   on every variant (gold-on-gold was 1:1 before) where an outer ring would
   merge with the button or the page background */
.btn:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: -7px;
}
.skip-link:focus-visible { outline-color: var(--gold-light); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 999;
  background: var(--ink);
  color: var(--ivory);
  padding: 14px 24px;
  font-size: 14px;
  letter-spacing: .06em;
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* 3. LAYOUT HELPERS ====================================================== */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--cream { background: var(--ivory-deep); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

.section-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.section-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  row-gap: 0;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.section-head--center .h2 { margin-bottom: .35em; }
.section-head__aside {
  font-size: 1.02em;
  color: var(--body-soft);
  max-width: 44ch;
  padding-bottom: .3em;
}
.section-head--center .section-head__aside { max-width: 50ch; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* 4. TYPOGRAPHY ========================================================= */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 1.1em;
  display: flex;
  align-items: center;
  gap: .8em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  opacity: .55;
  flex: none;
}
.section-head--center .eyebrow { justify-content: center; }
.eyebrow--light { color: var(--gold-light); }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0 0 .5em;
}
.h2--light { color: var(--ivory); }

.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.16;
  color: var(--ink);
  margin: 0 0 .6em;
}
.h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1em;
}

.lede {
  font-size: clamp(18px, 1.5vw, 20.5px);
  line-height: 1.66;
  color: var(--body);
  font-weight: 400;
  max-width: 58ch;
}
.lede--light { color: rgba(248, 245, 239, .9); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  gap: .55em;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 5px;
  border-bottom: 2px solid var(--line-strong);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--gold-ink); border-color: var(--gold-ink); }
.link-arrow:hover span { transform: translateX(5px); }

.note-block {
  margin-top: clamp(28px, 3.4vw, 44px);
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(168, 130, 71, .08);
  font-size: .96em;
  color: var(--body-soft);
  max-width: 78ch;
}
.note-block strong { color: var(--ink); font-weight: 600; }

/* 5. BUTTONS, LINKS, LISTS ============================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: 17px 32px;
  min-height: 52px;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.1;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  transition: color .35s var(--ease), border-color .35s var(--ease),
              background-color .35s var(--ease), transform .35s var(--ease);
  cursor: pointer;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-ink);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: #fff; }
.btn:active { transform: translateY(1px); }

.btn--gold { background: var(--gold-ink); color: #fff; }
.btn--gold::after { background: var(--ink); }

.btn--dark { background: var(--ink); color: var(--ivory); }

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(248, 245, 239, .55);
}
.btn--ghost:hover { border-color: var(--gold-light); color: #fff; }

.btn--ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost-dark:hover { color: #fff; border-color: var(--gold-ink); }

.btn--sm { padding: 13px 24px; min-height: 46px; font-size: 14px; }
.btn--lg { padding: 19px 38px; min-height: 58px; font-size: 16px; }
.btn--whatsapp svg { flex: none; }

.check-list { display: grid; gap: 12px; margin-top: 4px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: .98em;
  color: var(--body-soft);
  line-height: 1.6;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 12px;
  height: 2px;
  background: var(--gold-ink);
}
.check-list--roomy { gap: 14px; }
.check-list--roomy li { font-size: 1em; }

/* 6. HEADER & NAVIGATION ================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  isolation: auto;
  padding-block: 14px;
  transition: background-color .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  position: relative;
  z-index: 3;
  isolation: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;   /* the mark is short; the link must still be tappable */
  gap: 12px;
}
.brand__mark {
  /* the supplied artwork is a 1.9:1 ME ligature, so it gets width, not height.
     It sits beside the wordmark, which is why the type can stay small. */
  width: clamp(46px, 5.2vw, 62px);
  height: auto;
  background: none;
  transition: transform .5s var(--ease);
}
.brand:hover .brand__mark { transform: translateY(-2px) scale(1.05); }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif);
  /* "MOLADE" sits in a narrower slot than the old wordmark did,
     so the size is fluid and the tracking is dialled back to keep it on one line */
  font-size: clamp(15px, 1.55vw, 21px);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ivory);
  transition: color .4s var(--ease);
}
.brand__sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 5px;
  transition: color .4s var(--ease);
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav ul a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, .95);
  padding-block: 8px;
  transition: color .3s var(--ease);
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav ul a:hover::after,
.nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav ul a[aria-current="page"] { color: #fff; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  position: relative;
  z-index: 3;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ivory);
  transition: transform .35s var(--ease), opacity .25s var(--ease), background-color .35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { bottom: 19px; }

/* header when scrolled / on inner pages
   NOTE: no backdrop-filter here. A filtered ancestor becomes the containing block
   for position:fixed descendants, which broke the mobile drawer (it collapsed into
   the header's height). The solid background below gives the same look safely. */
.site-header.is-scrolled,
body:not(.page-home) .site-header {
  background: rgba(248, 245, 239, .98);
  box-shadow: 0 1px 28px rgba(18, 16, 13, .1);
  padding-block: 10px;
}
.site-header.is-scrolled::after,
body:not(.page-home) .site-header::after { opacity: 1; }
.site-header.is-scrolled .brand__name,
body:not(.page-home) .site-header .brand__name { color: var(--ink); }
.site-header.is-scrolled .brand__sub,
body:not(.page-home) .site-header .brand__sub { color: var(--gold-ink); }
.site-header.is-scrolled .nav ul a,
body:not(.page-home) .site-header .nav ul a { color: var(--body); }
.site-header.is-scrolled .nav ul a:hover,
.site-header.is-scrolled .nav ul a[aria-current="page"],
body:not(.page-home) .site-header .nav ul a:hover,
body:not(.page-home) .site-header .nav ul a[aria-current="page"] { color: var(--ink); }
.site-header.is-scrolled .nav ul a::after,
body:not(.page-home) .site-header .nav ul a::after { background: var(--gold-ink); }
.site-header.is-scrolled .nav-toggle span,
body:not(.page-home) .site-header .nav-toggle span { background: var(--ink); }

body.nav-open { overflow: hidden; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
body.nav-open .site-header,
body.nav-open .site-header.is-scrolled,
body.nav-open:not(.page-home) .site-header,
body.nav-open:not(.page-home) .site-header.is-scrolled {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  filter: none;
  transform: none;
  overflow: visible;
}
body.nav-open .site-header::after { opacity: 0; }
body.nav-open .site-header .brand__name { color: var(--ivory); }
body.nav-open .site-header .brand__sub { color: var(--gold-light); }
body.nav-open .nav-toggle span { background: var(--ivory) !important; }

/* 7. HERO (home) ======================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--charcoal);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 9, 7, .94) 0%, rgba(10, 9, 7, .66) 42%, rgba(10, 9, 7, .3) 72%, rgba(10, 9, 7, .62) 100%),
    linear-gradient(to right, rgba(10, 9, 7, .62) 0%, rgba(10, 9, 7, 0) 68%);
}
.hero__inner {
  padding-block: clamp(120px, 18vh, 200px) clamp(64px, 10vh, 112px);
  position: relative;
  z-index: 1;
  max-width: calc(var(--shell) + 2 * var(--gutter));
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 82px);
  line-height: 1.04;
  letter-spacing: -.018em;
  color: #FDFBF7;
  margin: 0 0 clamp(22px, 2.4vw, 30px);
  max-width: 18ch;
  text-wrap: balance;
}
.hero__lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.65;
  color: rgba(248, 245, 239, .94);
  max-width: 44ch;
  margin-bottom: clamp(30px, 3.2vw, 42px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 8. PAGE HEADERS (inner pages) ========================================= */
.page-head {
  position: relative;
  min-height: clamp(420px, 58vh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--charcoal);
  padding-top: 96px;
}
.page-head--short { min-height: clamp(380px, 50vh, 480px); }
.page-head__media { position: absolute; inset: 0; z-index: -2; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 9, 7, .95) 0%, rgba(10, 9, 7, .72) 45%, rgba(10, 9, 7, .34) 100%);
}
.page-head__inner {
  padding-block: clamp(48px, 7vw, 84px);
  position: relative;
  z-index: 1;
  max-width: calc(var(--shell) + 2 * var(--gutter));
}
.page-head__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1.05;
  letter-spacing: -.016em;
  color: #FDFBF7;
  margin: 0 0 1.1em;
  max-width: 20ch;
}
.page-head__lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.62;
  color: rgba(248, 245, 239, .94);
  max-width: 48ch;
  margin: 0;
}

/* 9. ABOUT / PROSE ====================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.about__media { position: relative; }
.frame { position: relative; overflow: hidden; background: var(--cream); }

/* Images fade up as they decode. The box is already reserved by width/height,
   so nothing shifts — this only hides the hard pop when a file lands. */
.frame img, .g-link img, .hero__media img, .split__media img, .page-head__media img {
  opacity: 0;
  transition: opacity .7s var(--ease), transform 1.1s var(--ease);
}
.frame img.is-loaded, .g-link img.is-loaded, .hero__media img.is-loaded,
.split__media img.is-loaded, .page-head__media img.is-loaded {
  opacity: 1;
}
/* If JS never runs, never leave an image invisible. */
.no-js .frame img, .no-js .g-link img, .no-js .hero__media img,
.no-js .split__media img, .no-js .page-head__media img { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .frame img, .g-link img, .hero__media img, .split__media img, .page-head__media img {
    transition: none;
  }
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--tall:hover img { transform: scale(1.03); }
.frame figcaption {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  padding: 18px 20px 32px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to bottom, rgba(10, 9, 7, .72), transparent);
  pointer-events: none;
}
.about__inset {
  position: absolute;
  right: -16px;
  bottom: -24px;
  width: clamp(130px, 15vw, 190px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 6px solid var(--ivory);
  box-shadow: 0 24px 56px -28px rgba(18, 16, 13, .5);
}
.about__inset img { width: 100%; height: 100%; object-fit: cover; }
.about__copy p { max-width: 54ch; }

.about__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: clamp(26px, 3.2vw, 40px) 0 clamp(24px, 3vw, 34px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
}
.about__pillars li {
  display: flex;
  align-items: baseline;
  gap: .5em;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.pillar__num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-ink);
}

/* full-width prose rows on inner pages */
.prose-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.prose-grid__label { position: sticky; top: 120px; }
.prose-grid__body { max-width: 68ch; }
.prose-grid__body p { font-size: 1.04em; }
.prose-grid__body .h2 { margin-bottom: .5em; }

.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--charcoal);
  color: var(--ivory);
}
.split-band__media { min-height: 340px; overflow: hidden; }
.split-band__media img { width: 100%; height: 100%; object-fit: cover; }
.split-band__copy { padding: clamp(40px, 6vw, 96px); align-self: center; }
.split-band__copy .h2 { color: var(--ivory); }
.split-band__copy p { color: rgba(248, 245, 239, .88); max-width: 48ch; font-size: 1.02em; }
.split-band__copy .eyebrow { color: var(--gold-light); }
.split-band__copy .link-arrow { color: var(--ivory); border-color: var(--line-light); }
.split-band__copy .link-arrow:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* 10. SERVICES ========================================================== */
.services--tight { padding-block: var(--section-y); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}
.service {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(18, 16, 13, .12);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .4s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 130, 71, .45);
  box-shadow: 0 28px 56px -40px rgba(18, 16, 13, .5);
}
.service__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service:hover .service__media img { transform: scale(1.04); }
.service__body { padding: clamp(22px, 2.2vw, 30px); display: flex; flex-direction: column; flex: 1; }
.service__index {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold-ink);
  margin-bottom: .8em;
}
.service__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(23px, 2vw, 28px);
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .5em;
}
.service__text { font-size: 1em; color: var(--body-soft); margin: 0; }
.services__foot { margin-top: clamp(28px, 3.4vw, 44px); }

/* service rows (services page) */
.service-list { display: grid; gap: clamp(48px, 6vw, 92px); }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4.5vw, 68px);
  align-items: center;
}
.service-row--flip .service-row__media { order: 2; }
.service-row__media { overflow: hidden; aspect-ratio: 5 / 4; background: var(--cream); }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service-row:hover .service-row__media img { transform: scale(1.03); }
.service-row__body { max-width: 54ch; }
.service-row__body p { font-size: 1.02em; color: var(--body-soft); }
.service-row__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
}
.service-row__body .check-list { margin: 1.3em 0 1.6em; }

/* 11. GALLERY =========================================================== */
.gallery__grid { columns: 2; column-gap: clamp(10px, 1.2vw, 18px); }
.g-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: clamp(10px, 1.2vw, 18px);
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ar, 4 / 3);
  background: var(--cream);
  display: block;
}
.g-item--wide   { --ar: 16 / 10; }
.g-item--tall   { --ar: 4 / 5; }
.g-item--square { --ar: 1 / 1; }

.g-link { display: block; width: 100%; height: 100%; position: relative; overflow: hidden; }
.g-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.g-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 7, .82) 0%, rgba(10, 9, 7, .2) 44%, rgba(10, 9, 7, 0) 72%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.g-link figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(14px, 1.5vw, 22px);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.g-link:hover img, .g-link:focus-visible img { transform: scale(1.04); }
.g-link:hover::after, .g-link:focus-visible::after { opacity: 1; }
.g-link:hover figcaption, .g-link:focus-visible figcaption { transform: translateY(0); opacity: 1; }
.gallery__foot { margin-top: clamp(28px, 3.4vw, 44px); }

/* 12. PROCESS & VALUES ================================================== */
.process__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.process__intro .lede { max-width: 32ch; }
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(12px, 2vw, 24px);
  padding-block: clamp(22px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
}
.step__num {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold-ink);
  padding-top: .2em;
}
.step__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 1.9vw, 26px);
  color: var(--ink);
  margin: 0 0 .35em;
}
.step p { font-size: 1em; color: var(--body-soft); margin: 0; max-width: 46ch; }
.steps--roomy .step { padding-block: clamp(26px, 3vw, 36px); }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.value {
  background: #fff;
  padding: clamp(26px, 3vw, 40px);
  border-top: 3px solid var(--gold);
}
.value__num {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold-ink);
  margin-bottom: 1.2em;
}
.value__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(23px, 2vw, 28px);
  color: var(--ink);
  margin: 0 0 .5em;
}
.value__text { font-size: 1em; color: var(--body-soft); margin: 0; }

/* 13. CONTACT =========================================================== */
.contact {
  background: var(--charcoal);
  color: rgba(248, 245, 239, .9);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 130, 71, .2), transparent 66%);
  pointer-events: none;
}
.contact .h2, .contact .h3, .contact .h4 { color: var(--ivory); }
.contact p { color: rgba(248, 245, 239, .88); }

.cta-band {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  position: relative;
}
.cta-band--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}
.cta-band--center .eyebrow { justify-content: center; }
.cta-band--center .lede { margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band--center .cta-band__actions { justify-content: center; margin-top: 1.6em; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.contact-layout__main h2 { margin-bottom: .6em; }
.contact-layout__main > p { font-size: 1.04em; max-width: 52ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: clamp(26px, 3vw, 40px) 0 clamp(34px, 4vw, 48px); }
.contact-layout__main .h4 { margin-top: clamp(28px, 3vw, 40px); }

.detail-card {
  background: #fff;
  border: 1px solid rgba(18, 16, 13, .12);
  padding: clamp(26px, 3vw, 36px);
}
.detail-list { display: grid; gap: 20px; margin: 0; }
.detail-list dt {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: .4em;
}
.detail-list dd { margin: 0; font-size: 1.02em; color: var(--body); word-break: break-word; }
.detail-list dd a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.detail-list dd a:hover { color: var(--gold-ink); border-color: var(--gold-ink); }
.detail-list em { font-style: normal; font-size: .82em; color: var(--body-soft); }

.frame--aside { aspect-ratio: 4 / 3; margin-top: clamp(20px, 2.4vw, 30px); }
.aside-note {
  margin-top: clamp(20px, 2.4vw, 30px);
  padding: 22px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(168, 130, 71, .1);
  font-size: .96em;
  color: var(--body-soft);
}
.aside-note strong { color: var(--ink); font-weight: 600; }

/* 14. FOOTER ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(248, 245, 239, .8);
  padding-block: clamp(48px, 6vw, 78px) clamp(24px, 3vw, 34px);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1.1fr;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(32px, 4vw, 50px);
  border-bottom: 1px solid var(--line-light);
}
.brand--footer { margin-bottom: 1.2em; }
.footer__tagline { font-size: 1em; max-width: 28ch; color: rgba(248, 245, 239, .82); }
.footer__meta { font-size: .94em; color: var(--gold-light); margin-top: .7em; }
.footer__heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.3em;
}
.footer__nav ul, .footer__social ul { display: grid; gap: 4px; }
.footer__nav a, .footer__social a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding-right: 6px;
  font-size: 1em;
  color: rgba(248, 245, 239, .86);
  transition: color .3s var(--ease);
}
.footer__nav a:hover, .footer__social a:hover { color: var(--gold-light); }
.footer__enquire-text { font-size: 1em; margin-bottom: 1.3em; color: rgba(248, 245, 239, .82); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: clamp(20px, 2.4vw, 30px);
  font-size: .86em;
  color: rgba(248, 245, 239, .72);
}
.footer__note { max-width: 48ch; }

/* 15. LIGHTBOX ========================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 9, 7, .985);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s var(--ease);
  padding: clamp(16px, 5vw, 64px);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure {
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: none;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.lightbox__figure figcaption {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, .92);
  text-align: center;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  color: var(--ivory);
  background: rgba(248, 245, 239, .1);
  border: 1px solid rgba(248, 245, 239, .32);
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 26px;
  line-height: 1;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold-ink); color: #fff; border-color: var(--gold-ink); }
.lightbox__close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(10px, 2.5vw, 26px); }
.lightbox__nav--next { right: clamp(10px, 2.5vw, 26px); }

/* 16. MOTION ============================================================ */
/* Above-the-fold content animates on its own, driven purely by CSS, so first
   paint never waits for JavaScript. Everything below the fold still uses the
   IntersectionObserver reveal in main.js. */
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero .reveal {
  opacity: 1;
  transform: none;
  animation: hero-enter .8s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .hero .reveal { animation: none; opacity: 1; transform: none; }
}

.reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms);
}

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

/* 17. RESPONSIVE ======================================================== */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer__top { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer__enquire { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .about__grid,
  .contact-layout,
  .process__grid,
  .service-row,
  .split-band,
  .prose-grid { grid-template-columns: 1fr; }
  .service-row--flip .service-row__media { order: 0; }
  .prose-grid__label { position: static; }
  .about__media { max-width: 540px; }
  .split-band__media { min-height: 300px; order: 2; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head__aside { padding-bottom: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .g-link figcaption, .g-link::after { opacity: 1; transform: none; }
  .service-row__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 80px; }

  /* mobile navigation drawer */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: max(96px, calc(env(safe-area-inset-top, 0px) + 88px)) var(--gutter) 40px;
    background: #0A0907;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; max-width: 460px; }
  .nav ul li { border-bottom: 1px solid rgba(248, 245, 239, .16); }
  /* the drawer is always dark, so its links must stay ivory even when the
     header is in its scrolled (light) state — those rules are more specific,
     so they are overridden explicitly here */
  .nav ul a,
  body.nav-open .site-header .nav ul a,
  body.nav-open .site-header.is-scrolled .nav ul a,
  body.nav-open:not(.page-home) .site-header .nav ul a,
  body.nav-open:not(.page-home) .site-header.is-scrolled .nav ul a {
    display: block;
    padding-block: 16px;
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--ivory);
  }
  .nav ul a::after,
  body.nav-open .site-header .nav ul a::after { display: none; }
  .nav ul a:hover,
  .nav ul a[aria-current="page"],
  body.nav-open .site-header .nav ul a:hover,
  body.nav-open .site-header .nav ul a[aria-current="page"],
  body.nav-open .site-header.is-scrolled .nav ul a:hover,
  body.nav-open .site-header.is-scrolled .nav ul a[aria-current="page"] {
    color: var(--gold-light);
  }
  .nav__cta { margin-top: 26px; align-self: flex-start; }
  .nav-toggle { display: block; }

  .hero { min-height: 94svh; }
  .hero__title { max-width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .service__media { aspect-ratio: 16 / 10; }
  .about__pillars { grid-template-columns: 1fr; gap: 10px; }
  .about__inset { width: 116px; right: 0; bottom: -20px; border-width: 4px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }
  .lightbox__nav { top: auto; bottom: 18px; transform: none; }
  .btn-row .btn { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .eyebrow { font-size: 12px; letter-spacing: .14em; }
  .gallery__grid { columns: 1; }
  .g-item--wide, .g-item--tall, .g-item { --ar: 4 / 3; }
  .g-item--tall { --ar: 4 / 5; }
  .btn { width: 100%; }
  .hero__actions, .contact-actions, .cta-band__actions { flex-direction: column; align-items: stretch; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .link-arrow { justify-content: center; }
  .step { grid-template-columns: 44px 1fr; }
  .frame figcaption { font-size: 13px; letter-spacing: .06em; }
  .cta-band--center, .section-head--center { text-align: left; justify-items: start; }
  .cta-band--center .eyebrow, .section-head--center .eyebrow { justify-content: flex-start; }
  .cta-band--center .lede, .section-head--center .section-head__aside { margin-inline: 0; }
  .cta-band--center .cta-band__actions { justify-content: flex-start; }
}

/* print */
@media print {
  .site-header, .lightbox, .page-head__media { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .page-head, .hero { min-height: auto; background: none; padding-block: 0; }
  .page-head__title, .hero__title, .page-head__lede, .hero__lede { color: #000; }
}

/* 18. 404 ============================================================== */
.not-found {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(168, 130, 71, .22), transparent 55%),
    var(--charcoal);
  padding-block: 120px;
  position: relative;
  isolation: isolate;
}
.not-found::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* 640px is enough: this sits behind a dark scrim at 22% opacity.
     Declared as image-set so modern browsers take the smaller AVIF. */
  background: url('../img/hero-640.webp?v=1b83b47b') center 40% / cover no-repeat;
  background-image: image-set(url('../img/hero-640.avif?v=5600e534') type("image/avif"),
                              url('../img/hero-640.webp?v=1b83b47b') type("image/webp"));
  opacity: .22;
}
.not-found__inner { max-width: 720px; }
.not-found__actions { margin-top: clamp(28px, 3vw, 40px); }
.not-found__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: clamp(30px, 3.4vw, 44px);
  padding-top: clamp(24px, 2.6vw, 32px);
  border-top: 1px solid var(--line-light);
}
.not-found__links a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, .9);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.not-found__links a:hover { color: var(--gold-light); border-color: var(--gold-light); }
