/* ==========================================================================
   Rafique Muzhaffar — Photography Portfolio
   Custom Grav theme migrated from WordPress/Elementor.
   Fonts: Oswald (display/nav), Roboto (body), Roboto Slab (page titles)
   ========================================================================== */

:root {
  --ink:        #1b1b1b;
  --ink-soft:   #333333;
  --muted:      #7c7c7c;
  --line:       #e8e8e8;
  --bg:         #ffffff;
  --bg-alt:     #fafafa;
  --yellow:     #ffe000;
  --yellow-ink: #1b1b1b;
  --dark-btn:   #3a3a3a;
  --dark-btn-h: #1b1b1b;
  --accent-pink:      #d6336c;
  --accent-pink-dark: #b02a59;

  --header-h:   84px;
  --maxw:       1400px;
  --gutter:     clamp(20px, 5vw, 60px);

  --ff-display: 'Oswald', 'Arial Narrow', sans-serif;
  --ff-title:   'Roboto Slab', Georgia, serif;
  --ff-body:    'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

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

* { box-sizing: border-box; }

/* ---------- Blur-up / fade-in on load ---------- */
.lazyfade { opacity: 0; transition: opacity .7s var(--ease); }
.lazyfade.loaded { opacity: 1; }
.no-js .lazyfade { opacity: 1; }
picture { display: contents; }

/* ---------- Image download protection ---------- */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  font-family: var(--ff-body);
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
h1,h2,h3,h4 { margin: 0; font-weight: 400; color: var(--ink); }
p { margin: 0 0 1.1em; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 900px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 110px); }
.section-alt { background: var(--bg-alt); }

/* ---------- Section heading (Roboto Slab thin) ---------- */
.page-title,
.section-title {
  font-family: var(--ff-title);
  font-weight: 200;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: .5px;
}
.page-title { font-size: clamp(2.6rem, 6vw, 4.6rem); text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.eyebrow {
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted);
}
.lead { color: var(--muted); font-size: 1.05rem; }
.center { text-align: center; }

/* Display heading used inside content sections (Oswald condensed caps) */
.display-heading {
  font-family: var(--ff-display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.15;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 500;
  padding: 16px 34px;
  background: var(--dark-btn);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--dark-btn-h); transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--yellow-ink); }
.btn-yellow:hover { background: #ffd400; }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 30px rgba(0,0,0,.07); }
.header-inner {
  display: flex; align-items: stretch;
  max-width: var(--maxw); margin: 0 auto;
  min-height: var(--header-h);
  padding-left: var(--gutter);
}
.brand {
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 12px; margin-right: auto;
}
.brand-name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1;
}
.brand-tagline {
  font-family: var(--ff-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .56rem;
  color: var(--muted);
  margin-top: 5px;
}

/* Nav */
.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a {
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .76rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: 6px;
}
.nav-list a:hover { color: var(--muted); }
.caret {
  display: inline-block; width: 0; height: 0; margin-left: 5px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; vertical-align: middle;
}
.nav-book-mobile { display: none; }

/* Dropdown */
.has-dropdown .dropdown {
  position: absolute; top: 100%; left: -18px;
  min-width: 220px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.09);
  list-style: none; margin: 0; padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s var(--ease);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { display: block; }
.dropdown a {
  display: block; padding: 10px 24px; letter-spacing: .12em; font-size: .74rem;
}
.dropdown a:hover { background: var(--bg-alt); color: var(--ink); }

/* Yellow CTA block */
.book-cta {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--yellow); color: var(--yellow-ink);
  padding: 0 32px; margin-left: 28px;
  transition: background .25s var(--ease);
}
.book-cta:hover { background: #ffd400; }
.book-cta-top {
  font-family: var(--ff-display); text-transform: uppercase;
  letter-spacing: .15em; font-size: .56rem; font-weight: 400; opacity: .8;
}
.book-cta-main {
  font-family: var(--ff-display); text-transform: uppercase;
  font-weight: 700; font-size: clamp(.95rem, 1.3vw, 1.2rem); letter-spacing: .02em; margin-top: 2px;
}

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  padding: 14px var(--gutter); margin-left: auto;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; width: 100%;
  height: min(78vh, 760px); min-height: 420px;
  overflow: hidden; background: #111;
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 1.2s var(--ease), visibility 1.2s var(--ease);
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.34)); }
.hero-title {
  position: relative; z-index: 2; color: #fff; text-align: center;
  font-family: var(--ff-title); font-weight: 200;
  text-transform: uppercase; letter-spacing: .5em;
  font-size: clamp(1.6rem, 4vw, 3rem);
  text-indent: .5em;
  text-shadow: 0 2px 30px rgba(0,0,0,.45);
}
.hero-slide.is-active .hero-title { animation: heroFade 1.6s var(--ease) both; }
@keyframes heroFade { from { opacity: 0; letter-spacing: .78em; } to { opacity: 1; letter-spacing: .5em; } }
/* single-slide (no JS / one image) still shows */
.hero-slideshow .hero-slide:only-child { opacity: 1; visibility: visible; }
.no-js .hero-slide:first-child { opacity: 1; visibility: visible; }

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro { text-align: center; padding-block: clamp(48px, 7vw, 92px); }
.intro .display-heading { margin-bottom: 22px; }
.intro p { color: var(--muted); max-width: 680px; margin-inline: auto; }

/* ==========================================================================
   PORTFOLIO GRID (categories + cover tiles)
   ========================================================================== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 0;
}
.tile {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 1 / 1; background: #ececec;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.6));
  opacity: 0; transition: opacity .4s var(--ease);
}
.tile:hover img { transform: scale(1.07); }
.tile:hover::after { opacity: 1; }
.tile-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 24px; color: #fff;
  font-family: var(--ff-display); text-transform: uppercase;
  letter-spacing: .14em; font-weight: 500; font-size: 1rem;
  transform: translateY(12px); opacity: 0;
  transition: all .4s var(--ease);
}
.tile:hover .tile-label { transform: translateY(0); opacity: 1; }
.tile-count { display: block; font-size: .64rem; letter-spacing: .2em; opacity: .8; margin-top: 4px; font-weight: 400; }

/* ==========================================================================
   CLIENTS
   ========================================================================== */
.clients { text-align: center; }
.clients-mark { width: 1px; height: 92px; background: var(--ink); margin: 0 auto 34px; }

/* Auto-scrolling clientele marquee */
.client-carousel {
  margin-top: clamp(44px, 6vw, 68px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.client-track {
  display: flex; align-items: center; width: max-content;
  animation: clientScroll 34s linear infinite;
}
.client-carousel:hover .client-track { animation-play-state: paused; }
.client-slide {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: clamp(160px, 20vw, 240px);
  padding-inline: clamp(24px, 4vw, 56px);
}
.client-slide img {
  max-height: 62px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .55;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.client-slide img:hover { filter: grayscale(0); opacity: 1; }
@keyframes clientScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .client-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* ==========================================================================
   CATEGORY PAGE
   ========================================================================== */
.cat-header { text-align: center; padding-block: clamp(50px, 7vw, 90px) clamp(30px,4vw,46px); }
.cat-header .lead { margin-top: 14px; }

/* ==========================================================================
   PROJECT / GALLERY
   ========================================================================== */
.project-header { text-align: center; padding-block: clamp(46px,6vw,80px) clamp(24px,3vw,40px); }
.project-header .page-title { margin-bottom: .3em; }
.project-desc { max-width: 720px; margin: 0 auto; color: var(--muted); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; color: var(--muted); margin-top: 26px;
}
.back-link:hover { color: var(--ink); }

/* Masonry-ish gallery */
.gallery {
  columns: 3 320px;
  column-gap: 14px;
  padding-block: 20px 10px;
}
.gallery .g-item {
  break-inside: avoid; margin-bottom: 14px; display: block;
  overflow: hidden; background: #ececec; cursor: zoom-in;
  position: relative;
}
.gallery .g-item img { width: 100%; height: auto; transition: transform .7s var(--ease), opacity .6s var(--ease); }
.gallery .g-item:hover img { transform: scale(1.04); }

/* ==========================================================================
   CONTENT PAGES (About / Pricing / Printing / FAQ / Terms / Book)
   ========================================================================== */
.content-body { font-size: 1.02rem; color: var(--ink-soft); }
.content-body h2 { font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.4rem,2.6vw,2rem); margin: 1.6em 0 .5em; }
.content-body h3 { font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.15rem; margin: 1.4em 0 .4em; }
.content-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.content-body img { margin: 1.5em 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split.reverse .split-media { order: 2; }

/* Feature blocks (About) */
.feature-block { margin-bottom: clamp(40px,6vw,74px); }

/* FAQ accordion */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 26px 44px 26px 0; position: relative;
  font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .04em;
  font-size: 1rem; font-weight: 500; color: var(--ink);
}
.faq-q::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 300; color: var(--muted); transition: transform .3s var(--ease);
}
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 0 26px; color: var(--muted); }

/* Contact / Book */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px,5vw,70px); }
.contact-details { display: flex; flex-direction: column; gap: 26px; }
.contact-item .eyebrow { display: block; margin-bottom: 5px; }
.contact-item p { margin: 0; font-size: 1.05rem; color: var(--ink); }
.contact-item a { color: var(--ink); }

/* Enquiry form (Grav Form plugin markup) */
.contact-form-wrap form { display: flex; flex-direction: column; gap: 20px; }
.contact-form-wrap .form-field { display: flex; flex-direction: column; margin: 0; }
.contact-form-wrap .form-label { margin-bottom: 8px; }
.contact-form-wrap .form-label label {
  font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .16em;
  font-size: .7rem; font-weight: 500; color: var(--muted); display: block;
}
.contact-form-wrap .form-label .required { color: var(--ink); margin-left: 3px; }
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea {
  width: 100%;
  font-family: var(--ff-body); font-size: 1rem; line-height: 1.6; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 0;
  padding: 14px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder { color: #b8b8b8; }
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.045);
}
.contact-form-wrap textarea { min-height: 160px; resize: vertical; }
.contact-form-wrap .buttons { margin-top: 6px; }
.contact-form-wrap .button {
  display: inline-block; font-family: var(--ff-display); text-transform: uppercase;
  letter-spacing: .18em; font-size: .78rem; font-weight: 500;
  padding: 16px 42px; background: var(--yellow); color: var(--yellow-ink);
  border: 0; cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.contact-form-wrap .button:hover { background: #ffd400; transform: translateY(-2px); }
.contact-form-wrap .button-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
}
.contact-form-wrap .button-whatsapp:hover { background: #1ebe5b; }
.contact-form-wrap .button-whatsapp svg { flex: 0 0 auto; }
.wa-note {
  margin: 14px 0 0; font-size: .82rem; color: var(--muted);
  display: flex; align-items: center; gap: 7px;
}
.contact-form-wrap .form-messages { margin-bottom: 18px; }
.contact-form-wrap .form-message {
  padding: 14px 18px; border-left: 3px solid var(--ink); background: var(--bg-alt);
  font-size: .95rem; margin-bottom: 10px;
}
.contact-form-wrap .form-message.error,
.contact-form-wrap .alert.error { border-left-color: #c0392b; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; margin-top: 40px; }
.price-card { border: 1px solid var(--line); padding: 40px 32px; text-align: center; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.price-card:hover { box-shadow: 0 18px 44px rgba(0,0,0,.08); transform: translateY(-4px); }
.price-card h3 { font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; }
.price-amount { font-family: var(--ff-title); font-weight: 300; font-size: 2.6rem; color: var(--ink); margin: 10px 0 4px; }
.price-note { color: var(--muted); font-size: .9rem; }
.price-features { list-style: none; padding: 0; margin: 22px 0 28px; text-align: left; }
.price-features li { padding: 8px 0 8px 26px; position: relative; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: .95rem; }
.price-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--ink); }

/* Steps (Printing) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 30px; margin-top: 46px; }
.step { text-align: center; }
.step-num {
  font-family: var(--ff-title); font-weight: 200; font-size: 3rem; color: var(--yellow);
  -webkit-text-stroke: 1px var(--ink); line-height: 1;
}
.step h3 { font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* Instagram / socials strip */
.insta { text-align: center; }
.insta-handle { font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .1em; font-size: 1.3rem; margin: 6px 0 12px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .clients-mark { margin-bottom: 26px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 3px solid var(--ink);
  padding-block: clamp(46px, 6vw, 74px) clamp(34px, 4vw, 52px);
  background: #fff;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  display: flex; justify-content: space-between; align-items: stretch;
  gap: 40px;
}
.footer-col { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(26px, 4vw, 48px); }
.footer-right { align-items: flex-end; text-align: right; }

.footer-brand { padding: 0; }
.footer-brand .brand-name { font-size: clamp(1.4rem, 2.2vw, 1.95rem); }
.footer-brand .brand-tagline { font-size: .64rem; letter-spacing: .12em; margin-top: 7px; }

.footer-copy {
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .68rem;
  line-height: 2;
  color: var(--muted);
}
.footer-copy a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-copy a:hover { color: var(--ink); }

.footer-social { display: flex; gap: 20px; }
.footer-social a { color: var(--ink); display: inline-flex; transition: opacity .2s var(--ease); }
.footer-social a:hover { opacity: .55; }

.footer-terms {
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: .04em;
  font-size: .82rem;
  color: var(--accent-pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-terms:hover { color: var(--accent-pink-dark); }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .footer-right { align-items: flex-start; text-align: left; }
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lb-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(12,12,12,.94);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s var(--ease);
}
.lb-overlay.active { display: flex; opacity: 1; }
.lb-overlay img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 10px 60px rgba(0,0,0,.5); }
.lb-btn {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 2.4rem; line-height: 1; opacity: .75; transition: opacity .2s; padding: 14px;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 14px; right: 20px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-size: .8rem; letter-spacing: .2em; font-family: var(--ff-display); opacity: .7; }

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .tile-grid { --cols: 3; }
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: flex; order: 3; }
  .book-cta { display: none; }
  .header-inner { padding-right: 0; }
  /* backdrop-filter makes fixed children anchor to the header box, which would
     collapse the off-canvas menu — disable it on mobile so the menu fills the screen. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { position: relative; z-index: 2; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 20px var(--gutter); transform: translateX(100%);
    transition: transform .35s var(--ease); overflow-y: auto;
    border-top: 1px solid var(--line); z-index: 1;
  }
  .site-nav.open { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; height: auto; }
  .nav-list > li { display: block; border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: 18px 0; font-size: 1rem; }
  .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 12px 16px; min-width: 0;
  }
  .caret { display: none; }
  .nav-book-mobile { display: block; }
  .nav-book-mobile a { color: var(--yellow-ink); background: var(--yellow); margin-top: 14px; text-align: center; }
}
@media (max-width: 720px) {
  .tile-grid { --cols: 2; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .hero { height: 60vh; }
}
@media (max-width: 460px) {
  .tile-grid { --cols: 1; }
}
