:root {
  --white: #ffffff;
  --ink: #111111;
  --ink-2: #3f3f3f;
  --ink-3: #6b6b6b;
  --ink-4: #9a9a9a;
  --rule: #e6e3de;
  --wash: #f5f3ef;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --script: "Great Vibes", "Pinyon Script", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------------------------------------------------------------- masthead */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: clamp(16px, 3.4vh, 32px) clamp(18px, 5vw, 90px);
  background: var(--white);
}
.nav {
  display: flex; gap: clamp(16px, 2.6vw, 44px);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-2);
}
.nav-left, .nav-right { justify-content: center; }
.nav a { opacity: .85; transition: opacity .2s; }
.nav a:hover { opacity: 1; }

.logo { text-align: center; display: block; line-height: 1; }
.logo-script {
  display: block; font-family: var(--script);
  font-size: clamp(30px, 3.9vw, 46px); color: var(--ink);
}
.logo-tag {
  display: block; margin-top: 6px;
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3);
}

/* ----------------------------------------------------- equal-height strips */
/* Every photo keeps its own proportions; JS sizes the row so heights match and
   the strip fills the page width. Nothing is cropped. */
.strip {
  display: flex;
  gap: 6px;
  padding: 0;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  background: var(--white);
}
/* Each photo sits inside its own white mat. */
.strip figure {
  margin: 0;
  flex: 0 0 auto;
  padding: 0;
  background: #fff;
  overflow: hidden;
}
.strip + .strip { margin-top: var(--gap, 6px); }   /* row gap = column gap */

.strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* exact ratio is set in px, so this crops nothing */
  background: var(--wash);
}

/* ------------------------------------------------------------------ intro */
.intro {
  padding: clamp(34px, 6vw, 84px) clamp(20px, 6vw, 110px) clamp(22px, 4vw, 48px);
  max-width: 980px; margin: 0 auto; text-align: center;
}
.eyebrow {
  font-size: 10px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 22px;
}
.statement {
  font-size: clamp(20px, 2.4vw, 29px); line-height: 1.5;
  font-weight: 300; margin: 0; color: var(--ink);
}
.intro-actions { margin: 22px 0 0; }

/* ---------------------------------------------------------------- headings */
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  margin: 0; color: var(--ink);
}
.rule-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 15px; margin-bottom: clamp(14px, 2.4vw, 26px);
}
.rule-note { margin: 0; font-size: 12.5px; letter-spacing: .1em; color: var(--ink-3); }
.quiet-link { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.quiet-link:hover { color: var(--ink); }

/* --------------------------------------------------------------- weddings */
.weddings {
  padding: clamp(30px, 5vw, 68px) 0 clamp(24px, 4vw, 48px);
  max-width: none; margin: 0;
}
.weddings .rule-head { padding-left: clamp(6px, 3vw, 76px); padding-right: clamp(6px, 3vw, 76px); }

.wednote {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 60px);
  margin: clamp(22px, 3.4vw, 38px) clamp(6px, 3vw, 76px) 0;
}
.wednote p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ------------------------------------------------------------------- also */
.also {
  padding: clamp(30px, 5vw, 68px) 0;
  max-width: none; margin: 0;
  border-top: 1px solid var(--rule);
}
.also > h2, .also > .rule-head, .also > .alsocopy, .also > .alsorow,
.weddings > .rule-head, .weddings > .wednote {
  padding-left: clamp(20px, 6vw, 110px);
  padding-right: clamp(20px, 6vw, 110px);
}
.alsorow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(16px, 3vw, 36px); margin-top: 20px;
}
.alsorow h3 {
  font-family: var(--serif); font-weight: 400; font-size: 19px;
  margin: 0 0 6px; letter-spacing: .01em;
}
.alsorow p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-3); }
.also--small { padding-top: clamp(20px, 3vw, 40px); }
.alsocopy {
  margin: clamp(16px, 2.4vw, 26px) 0 0;
  max-width: 62ch; color: var(--ink-2); font-size: 15.5px;
}
.strip--family { margin-top: clamp(14px, 2vw, 24px); }

/* --------------------------------------------------------------- galleries */
.galleries {
  padding: clamp(30px, 5vw, 68px) clamp(20px, 6vw, 110px) clamp(36px, 6vw, 80px);
  max-width: 1320px; margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.workgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.wcard { display: block; }
.wcover { aspect-ratio: 4 / 3; background: var(--wash) center/cover no-repeat; transition: opacity .3s; }
.wcard:hover .wcover { opacity: .88; }
.wmeta { padding: 10px 0 0; }
.wmeta h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0 0 2px; }
.wmeta p { margin: 0; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.empty { color: var(--ink-3); font-size: 15px; }

/* ------------------------------------------------------------------ about */
.about {
  display: grid; grid-template-columns: 120px 1fr 300px;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(34px, 5vw, 76px) clamp(20px, 6vw, 110px);
  border-top: 1px solid var(--rule);
  max-width: 1180px; margin: 0 auto;
}
.about-body p { margin: 0 0 16px; color: var(--ink-2); max-width: 58ch; }
.about-body p:last-child { margin-bottom: 0; }
.about-portrait { margin: 0; align-self: start; }
.about-portrait img { width: 100%; height: auto; }

/* ---------------------------------------------------------------- enquire */
.enquire {
  text-align: center;
  padding: clamp(40px, 6vw, 92px) clamp(20px, 6vw, 110px);
  border-top: 1px solid var(--rule);
}
.enquire h2 { margin-bottom: 18px; }
.enquire p { color: var(--ink-2); max-width: 44ch; margin: 0 auto 18px; }
.mailto {
  display: inline-block; font-size: clamp(19px, 2.3vw, 27px);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
.mailto:hover { color: var(--ink-3); border-color: var(--ink-3); }
.already { font-size: 13px; color: var(--ink-3); margin-top: 30px !important; }

/* ---------------------------------------------------------------- footer */
.colophon {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding: 22px clamp(20px, 6vw, 110px);
  border-top: 1px solid var(--rule);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
}
.footnav { display: flex; gap: clamp(14px, 2.4vw, 28px); flex-wrap: wrap; }
.footnav a:hover { color: var(--ink); }
.admin-link { color: var(--ink-4); letter-spacing: .18em; }
.admin-link:hover { color: var(--ink); }

.skeleton { animation: shimmer 1.5s linear infinite; background: linear-gradient(90deg, #f2f0ec, #e9e6e1, #f2f0ec); background-size: 200% 100%; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr; gap: 12px; padding: 18px 16px 14px; }
  .nav { justify-content: center; font-size: 10px; letter-spacing: .18em; gap: 14px; }
  .logo { order: -1; }
  .strip { gap: 4px; }
  .strip--hero figure:nth-child(n+3),
  .strip--details figure:nth-child(n+3),
  .strip--family figure:nth-child(n+3) { display: none; }
  .strip--hero figure:nth-child(2) { display: none; }
  .wednote, .about { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; }
  .colophon { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------- full-bleed hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 540px;
  max-height: 1000px;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 44%;
}
.scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 85% at 50% 0%, rgba(15,15,12,.66) 0%, rgba(15,15,12,0) 58%),
    linear-gradient(to bottom, rgba(15,15,12,.60) 0%, rgba(15,15,12,.26) 20%, rgba(15,15,12,.04) 42%, rgba(15,15,12,.45) 100%);
}
.overlay {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 24px;
  padding: clamp(18px, 3.2vw, 44px) clamp(18px, 4vw, 64px);
  color: #fff;
}
.side ul {
  display: flex;
  gap: clamp(16px, 2.4vw, 40px);
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.side.right ul { justify-content: flex-end; }
.side a {
  color: #fff; text-decoration: none;
  font-size: clamp(12px, 0.95vw, 13.5px);
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.45);
  transition: opacity .2s;
}
.side a:hover { opacity: .8; }

.wordmark { text-align: center; text-decoration: none; color: #fff; display: block;
  text-shadow: 0 2px 6px rgba(0,0,0,.45), 0 4px 30px rgba(0,0,0,.45); }
.script { display: block; font-family: var(--script); font-size: clamp(34px, 4.6vw, 62px); line-height: .92; }
.rule-arc {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 8px; font-size: clamp(7px, 0.72vw, 9px);
  letter-spacing: .42em; text-transform: uppercase; opacity: .95;
}
.rule-arc i { display: block; width: clamp(28px, 4vw, 54px); height: 1px; background: currentColor; opacity: .65; }

.scrolldown {
  position: absolute; bottom: clamp(18px, 3vw, 34px); left: 50%; transform: translateX(-50%);
  color: #fff; text-decoration: none;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: .95;
  text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 2px 16px rgba(0,0,0,.5);
}
.scrolldown b { font-weight: 400; }

/* sticky bar that appears once the hero is passed */
.stickybar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-105%);
  transition: transform .32s ease;
}
.stickybar.show { transform: none; }
.stickybar nav { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.stickybar a {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
}
.stickybar a:hover { color: var(--ink); }
.stickybar .mark {
  font-family: var(--script); font-size: 24px; color: var(--ink); text-transform: none; letter-spacing: 0;
}

@media (max-width: 900px) {
  .overlay { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .side ul { display: none; }
  .wordmark { grid-row: 1; }
  .stickybar nav { display: none; }
}

/* ------------------------------------------------------------------- logo */
.logo-img {
  display: block;
  width: clamp(230px, 27vw, 460px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .45));
}
.stickybar .mark { display: flex; align-items: center; }
.stickybar .mark img { height: 26px; width: auto; display: block; }

@media (max-width: 900px) {
  .logo-img { width: min(70vw, 340px); }
}

/* ------------------------------------------------ uniform vertical rhythm */
/* Every vertical gap on the page equals the gap between photos. */
.weddings, .also { padding-top: 0; padding-bottom: var(--gap, 6px); }
.rule-head { margin-bottom: var(--gap, 6px); padding-top: 5px; }  /* 5 + 1px rule = 6 */
.strip--family, .wednote, .alsocopy { margin-top: var(--gap, 6px); }
.also--small { padding-top: var(--gap, 6px); }
