/* ============ RESET & TOKENS ============ */

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

:root {
  --ivory: #F5F2EC;
  --near-white: #FAF8F4;
  --ink: #171715;
  --grey: #6E6A63;
  --olive: #68705D;
  --stone: #A38D73;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --gap: clamp(1rem, 3vw, 2.5rem);
  --section-pad: clamp(4rem, 10vw, 7rem);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--ivory);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

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

/* ============ HEADER / NAV ============ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled,
.site-header.solid {
  background-color: rgba(245, 242, 236, 0.94);
  box-shadow: 0 1px 0 rgba(23, 23, 21, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
}

.nav-brand {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: #fff;
  transition: color 0.35s ease;
  white-space: nowrap;
}

.site-header.scrolled .nav-brand,
.site-header.menu-open .nav-brand,
.site-header.solid .nav-brand {
  color: var(--ink);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}

.nav-menu a:not(.btn) {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding-bottom: 3px;
  transition: color 0.35s ease;
}

.site-header.scrolled .nav-menu a:not(.btn),
.site-header.solid .nav-menu a:not(.btn) {
  color: var(--ink);
}

.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-menu a:not(.btn):hover::after,
.nav-menu a:not(.btn):focus-visible::after,
.nav-menu .is-active a:not(.btn)::after {
  transform: scaleX(1);
}

.nav-menu .btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.76rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 1.5px;
  margin: 0 auto;
  background-color: #fff;
  transition: transform 0.3s ease, background-color 0.35s ease;
}

.site-header.scrolled .nav-toggle-bar,
.site-header.menu-open .nav-toggle-bar,
.site-header.solid .nav-toggle-bar {
  background-color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--ivory);
    border-top: 1px solid rgba(23, 23, 21, 0.07);
    box-shadow: 0 12px 24px rgba(23, 23, 21, 0.08);
    display: none;
  }

  .site-header.menu-open .nav-menu {
    display: flex;
  }

  .site-header.menu-open {
    background-color: var(--ivory);
  }

  .nav-menu a:not(.btn) {
    display: block;
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    color: var(--ink);
  }

  .nav-menu a:not(.btn)::after {
    display: none;
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(23, 23, 21, 0.06);
  }

  .nav-menu .btn {
    margin: 1rem clamp(1.25rem, 4vw, 3rem) 1.25rem;
    text-align: center;
  }

  .site-header.menu-open .nav-toggle-bar:first-child {
    transform: translateY(4.25px) rotate(45deg);
  }

  .site-header.menu-open .nav-toggle-bar:last-child {
    transform: translateY(-4.25px) rotate(-45deg);
  }
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--olive);
  border-color: var(--olive);
}

.btn-ghost {
  background-color: transparent;
  color: inherit;
}

.btn-ghost:hover {
  background-color: rgba(23, 23, 21, 0.06);
}

.btn-on-dark {
  background-color: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn-on-dark:hover {
  background-color: transparent;
  color: #fff;
}

.btn-ghost-on-dark {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-ghost-on-dark:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.text-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.3s ease;
}

.text-link:hover {
  opacity: 0.6;
}

/* ============ HERO (full) ============ */

.hero {
  position: relative;
  height: 92vh;
  height: 92svh;
  min-height: 560px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 23, 21, 0.72), rgba(23, 23, 21, 0.32) 48%, rgba(23, 23, 21, 0.1) 100%);
  pointer-events: none;
}

.hero-text {
  position: absolute;
  left: clamp(1.25rem, 6vw, 5rem);
  right: clamp(1.25rem, 6vw, 5rem);
  bottom: clamp(3rem, 9vh, 6rem);
  max-width: 42rem;
  color: #fff;
  z-index: 1;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  margin-bottom: 1rem;
}

.hero-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  margin-bottom: 2.1rem;
  max-width: 34rem;
}

/* ============ PAGE HEADER (sub-pages) ============ */

.page-header {
  position: relative;
  height: 58vh;
  min-height: 380px;
  overflow: hidden;
}

.page-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 23, 21, 0.68), rgba(23, 23, 21, 0.28) 55%, rgba(23, 23, 21, 0.15) 100%);
}

.page-header-text {
  position: absolute;
  left: clamp(1.25rem, 6vw, 5rem);
  right: clamp(1.25rem, 6vw, 5rem);
  bottom: clamp(2.5rem, 7vh, 4rem);
  color: #fff;
  z-index: 1;
  max-width: 44rem;
}

.page-header-text h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

.page-header-text p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-top: 0.9rem;
  max-width: 34rem;
}

/* ============ INTRO ============ */

.intro {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--section-pad) clamp(1.25rem, 5vw, 3rem);
  text-align: center;
}

.intro h2 {
  margin-bottom: 1.4rem;
}

.intro p {
  color: var(--grey);
  max-width: 38rem;
  margin: 0 auto 1.1rem;
}

/* ============ SECTIONS ============ */

.section {
  padding: var(--section-pad) clamp(1.25rem, 5vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

.section-narrow {
  max-width: 760px;
}

.section-alt {
  max-width: none;
  background-color: var(--near-white);
  padding-left: calc(max((100% - 1200px) / 2, 0px) + clamp(1.25rem, 5vw, 3rem));
  padding-right: calc(max((100% - 1200px) / 2, 0px) + clamp(1.25rem, 5vw, 3rem));
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.25rem, 6vw, 3.75rem);
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.25rem, 6vw, 3.75rem);
}

.label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1rem;
}

.section-head h2 {
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--grey);
}

.section-body {
  color: var(--grey);
  margin-top: 1rem;
}

/* ============ GALLERY ============ */

.gallery {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

figure {
  position: relative;
}

.frame {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

@media (hover: hover) {
  .frame:hover img {
    transform: scale(1.015);
  }
}

.g-wide .frame {
  aspect-ratio: 3 / 2;
}

.g-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.g-pair .frame {
  aspect-ratio: 3 / 4;
}

.g-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.g-trio .frame {
  aspect-ratio: 3 / 4;
}

.g-asym {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--gap);
  align-items: stretch;
}

.g-asym-small .frame {
  aspect-ratio: 3 / 4.6;
}

.g-asym-large {
  display: flex;
}

.g-asym-large .frame {
  height: 100%;
  aspect-ratio: auto;
}

.g-asym-large .frame img {
  height: 100%;
}

@media (max-width: 700px) {
  .g-pair,
  .g-trio,
  .g-asym {
    grid-template-columns: 1fr;
  }

  .g-asym-small .frame,
  .g-asym-large .frame {
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .g-wide .frame {
    aspect-ratio: 4 / 3;
  }
}

/* ============ SPLIT ============ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split-rev .split-img {
  order: 2;
}

.split-img .frame {
  aspect-ratio: 4 / 5;
}

.split-text h2 {
  margin-bottom: 0.9rem;
}

.split-text .section-body {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

@media (max-width: 760px) {
  .split,
  .split-rev {
    grid-template-columns: 1fr;
  }

  .split-rev .split-img {
    order: 0;
  }
}

/* ============ TEASER (home) ============ */

.teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.teaser-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.teaser-media .frame {
  aspect-ratio: 3 / 4;
}

.teaser-media .frame:first-child {
  grid-row: span 2;
  aspect-ratio: 3 / 4.3;
}

.teaser-single .frame {
  aspect-ratio: 4 / 3;
}

.teaser-text .label {
  margin-bottom: 0.9rem;
}

.teaser-text h2 {
  margin-bottom: 1rem;
}

.teaser-text .section-body {
  margin: 0 0 1.6rem;
}

@media (max-width: 820px) {
  .teaser {
    grid-template-columns: 1fr;
  }

  .teaser-media {
    order: -1;
  }
}

/* ============ SERVICES LIST / GRID ============ */

.services-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 900px;
}

.services-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(23, 23, 21, 0.1);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.3;
}

.services-list li:nth-child(odd) {
  padding-right: 2.5rem;
}

@media (max-width: 700px) {
  .services-list {
    grid-template-columns: 1fr;
  }

  .services-list li:nth-child(odd) {
    padding-right: 0;
  }
}

.service-block {
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
  border-top: 1px solid rgba(23, 23, 21, 0.1);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}

.service-block:last-of-type {
  border-bottom: 1px solid rgba(23, 23, 21, 0.1);
}

.service-block h3 {
  color: var(--ink);
}

.service-block-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--stone);
}

.service-block ul {
  list-style: none;
  margin-top: 1rem;
  color: var(--grey);
}

.service-block ul li {
  padding: 0.35rem 0;
  padding-left: 1.1rem;
  position: relative;
}

.service-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 5px;
  height: 1px;
  background-color: var(--stone);
}

@media (max-width: 700px) {
  .service-block {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ============ PROCESS STEPS ============ */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--stone);
  margin-bottom: 0.75rem;
}

.steps h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.steps p {
  color: var(--grey);
  font-size: 0.96rem;
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ============ CTA BAND ============ */

.cta-band {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  color: #fff;
  text-align: center;
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.25rem, 5vw, 3rem);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 34rem;
  margin: 0 auto 2.2rem;
}

.cta-band .btn-row {
  justify-content: center;
}

/* ============ CONTACT ============ */

.contact-hero {
  text-align: center;
  padding-top: calc(var(--section-pad) * 1.3);
  padding-bottom: calc(var(--section-pad) * 0.6);
}

.contact-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-bottom: 1.1rem;
}

.contact-hero p {
  color: var(--grey);
  max-width: 34rem;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  padding-top: clamp(1rem, 4vw, 2rem);
}

.contact-card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background-color: var(--near-white);
  border: 1px solid rgba(23, 23, 21, 0.08);
}

.contact-card h3 {
  margin-bottom: 0.8rem;
}

.contact-card p {
  color: var(--grey);
  margin-bottom: 1.4rem;
}

.contact-email {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
  word-break: break-word;
}

.contact-email a {
  text-decoration: none;
  border-bottom: 1px solid var(--stone);
}

.contact-tips {
  list-style: none;
  color: var(--grey);
  font-size: 0.95rem;
}

.contact-tips li {
  padding: 0.4rem 0;
  padding-left: 1.1rem;
  position: relative;
}

.contact-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 5px;
  height: 1px;
  background-color: var(--stone);
}

@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ ABOUT ============ */

.about-text {
  max-width: 680px;
}

.about-text p {
  color: var(--grey);
  margin-bottom: 1.15rem;
}

/* ============ FOOTER ============ */

.site-footer {
  padding: 3.25rem clamp(1.25rem, 5vw, 3rem) 3rem;
  border-top: 1px solid rgba(23, 23, 21, 0.08);
  text-align: center;
  font-size: 0.9rem;
  color: var(--grey);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.footer-cross {
  margin-top: 1.4rem;
  font-size: 0.85rem;
}

.footer-cross a {
  text-decoration: none;
  border-bottom: 1px solid var(--stone);
}

.footer-legal {
  margin-top: 0.6rem;
  font-size: 0.8rem;
}

.footer-legal a {
  text-decoration: none;
  border-bottom: 1px solid var(--stone);
}

.footer-copy {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ============ LEGAL PAGE ============ */

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--grey);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.legal-content strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============ LIGHTBOX ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(20, 20, 18, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lb-img {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  z-index: 1;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  transition: color 0.25s ease;
}

.lightbox button:hover {
  color: #fff;
}

.lb-close {
  top: 0.8rem;
  right: 1rem;
  font-size: 2.2rem;
}

.lb-prev {
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 700px) {
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 1.2rem;
    transform: none;
  }

  .lb-prev {
    left: 1.5rem;
  }

  .lb-next {
    right: 1.5rem;
  }
}

/* ============ REVEAL ANIMATION ============ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .frame img,
  .frame:hover img {
    transition: none;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
