/* ============ 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, 8rem);
}

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 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
}

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

: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 {
  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;
  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;
}

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

.nav-menu {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

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

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

.nav-menu a::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:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

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

.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 {
  background-color: var(--ink);
}

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

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    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 {
    display: block;
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    color: var(--ink);
  }

  .nav-menu a::after {
    display: none;
  }

  .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);
  }
}

/* ============ HERO ============ */

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

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

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

.hero-text {
  text-shadow: 0 1px 4px rgba(23, 23, 21, 0.35), 0 2px 24px rgba(23, 23, 21, 0.55);
}

/* localised darkening behind the typography only (bottom-left), transparent elsewhere */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 75% at 18% 100%, rgba(23, 23, 21, 0.78), rgba(23, 23, 21, 0.5) 40%, rgba(23, 23, 21, 0) 100%);
  pointer-events: none;
}

.hero-text {
  z-index: 1;
}

@media (max-width: 700px) {
  .hero::after {
    background: linear-gradient(to top, rgba(23, 23, 21, 0.78), rgba(23, 23, 21, 0.5) 40%, rgba(23, 23, 21, 0) 68%);
  }
}

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

.hero-text h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 1rem;
}

.hero-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

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

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

.text-link-quiet {
  opacity: 0.75;
}

/* ============ 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.5rem;
}

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

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

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

.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.5rem, 6vw, 4.5rem);
}

.label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.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;
}

/* wide crops from vertical originals: keep the visually important band */
#work .g-wide:first-child .frame {
  aspect-ratio: 4 / 3;
}

#work .g-wide:first-child .frame img {
  object-position: center 58%;
}

#work .g-wide:nth-child(3) .frame img {
  object-position: center 55%;
}

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

.g-pair .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;
}

.g-asym-large .frame {
  position: absolute;
  inset: 0;
  height: 100%;
}

.g-asym-large .frame img {
  object-position: center 45%;
}

/* keep key subjects framed */
#experience .g-wide:first-child .frame img {
  object-position: center 65%;
}

.g-tall {
  width: min(100%, 640px);
  margin: 0 auto;
}

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

.g-pair figure:first-child .frame img {
  object-position: 45% center;
}

.overlay-caption {
  position: absolute;
  right: 1.4rem;
  bottom: 1.2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(23, 23, 21, 0.45);
  pointer-events: none;
}

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

  .g-asym-large .frame {
    position: static;
    aspect-ratio: 3 / 4;
  }

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

  .g-tall {
    width: 100%;
  }
}

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

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

.g-trio figure:nth-child(2) .frame img {
  object-position: 38% center;
}

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

/* ============ SPLIT (DETAILS) ============ */

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

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

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

.split-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--stone);
}

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

/* ============ FULL-BLEED ============ */

.bleed {
  position: relative;
  height: clamp(460px, 88vh, 860px);
  overflow: hidden;
}

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

.bleed-quote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(2rem, 7vw, 5rem);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.4;
  text-align: center;
  color: #fff;
  background: linear-gradient(to top, rgba(23, 23, 21, 0.45), rgba(23, 23, 21, 0) 45%);
}


/* ============ SERVICES ============ */

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

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

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

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

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

.availability {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--olive);
}

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

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

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

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

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

.contact-heading {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  margin-bottom: 1.2rem;
}

.contact .section-intro {
  max-width: 34rem;
  margin: 0 auto 2.2rem;
}

.contact-email {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 2.4rem;
}

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

.contact-email a:hover {
  opacity: 0.65;
}

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

.site-footer {
  padding: 3.5rem clamp(1.25rem, 5vw, 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-copy {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ============ 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;
  }
}
