:root{
  --paper: #ffffff;
  --ink: #1c1b18;
  --muted: #5a5852;
  --brown: #6b4f3a;
  --gold: #b6924a;
  --blue: #7aa6c6;
  --blue-2: #cfe4f2;
  --sand: #f7f4ee;
  --shadow: 0 18px 45px rgba(30, 24, 16, .12);
  --shadow-soft: 0 12px 30px rgba(30, 24, 16, .10);
  --radius: 18px;
  /* Use % instead of vw to avoid occasional horizontal overflow on mobile/scrollbar widths */
  --wrap: min(1120px, calc(100% - 48px));
}

*{ box-sizing: border-box; }
html, body {
  height: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
@supports (overflow: clip){
  html, body { overflow-x: clip; }
}
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  /* Prevent sideways “rubber-band” panning on touch devices */
  touch-action: pan-y;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 14% 12%, rgba(122,166,198,.18), transparent 55%),
    radial-gradient(900px 500px at 78% 28%, rgba(182,146,74,.14), transparent 60%),
    radial-gradient(1200px 700px at 55% 78%, rgba(107,79,58,.10), transparent 55%),
    linear-gradient(180deg, var(--paper), var(--sand));
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

img{ max-width: 100%; display: block; height: auto; }
a{ color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.wrap{ width: var(--wrap); margin-inline: auto; }

.skip-link{
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-220%);
  padding: 10px 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 12px;
  z-index: 999;
}
.skip-link:focus{ transform: translateY(0); }

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,.64);
  border-bottom: 1px solid rgba(107,79,58,.12);
}
.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 14px;
}
.topbar__left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.home-button{
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(107,79,58,.16);
  background:
    radial-gradient(18px 18px at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,244,238,.86));
  box-shadow: 0 10px 22px rgba(30, 24, 16, .10);
  color: rgba(107,79,58,.88);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.home-button:hover{
  border-color: rgba(182,146,74,.45);
  box-shadow: 0 14px 30px rgba(30, 24, 16, .12);
}
.home-button:active{
  transform: translateY(1px);
}
.home-button:focus-visible{
  outline: 3px solid rgba(122,166,198,.55);
  outline-offset: 4px;
}
.home-button__icon{
  width: 20px;
  height: 20px;
}
.mark{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: .9;
}
.mark__dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--gold));
  box-shadow: 0 3px 10px rgba(182,146,74,.35);
}
.mark__line{
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107,79,58,.55), transparent);
}
.topnav{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.topnav a{
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(28,27,24,.85);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.topnav a:hover{
  border-color: rgba(107,79,58,.18);
  background: rgba(255,255,255,.6);
}

.hero{
  padding: 72px 0 18px;
  position: relative;
  overflow: clip;
}
.hero__inner{
  padding: 36px 0 28px;
}
.kicker{
  margin: 0 0 12px;
  color: rgba(107,79,58,.88);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.headline{
  margin: 0 0 16px;
  font-family: Fraunces, ui-serif, Georgia, Cambria, Times New Roman, Times, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(38px, 5.3vw, 74px);
  line-height: 1.04;
}
.headline__accent{
  background: linear-gradient(90deg, rgba(182,146,74,.22), rgba(122,166,198,.22));
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: .04em .14em;
  border-radius: 14px;
}
.subhead{
  margin: 0;
  max-width: 56ch;
  color: rgba(28,27,24,.78);
  font-size: 16px;
}
.hero__meta{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.meta-card{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(107,79,58,.12);
  border-radius: 16px;
  padding: 14px 14px 13px;
  box-shadow: 0 10px 25px rgba(30, 24, 16, .08);
}
.meta-card__label{
  color: rgba(107,79,58,.78);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.meta-card__value{
  font-weight: 500;
}
.muted{ color: rgba(28,27,24,.62); font-weight: 400; }

.scroll-cue{
  width: 18px;
  height: 58px;
  margin-top: 26px;
  position: relative;
  opacity: .8;
}
.scroll-cue__line{
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(107,79,58,.5), transparent);
}
.scroll-cue__dot{
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--blue));
  box-shadow: 0 8px 22px rgba(122,166,198,.28);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue{
  0%{ transform: translate(-50%, 0); opacity: .4; }
  45%{ transform: translate(-50%, 22px); opacity: .95; }
  100%{ transform: translate(-50%, 0); opacity: .4; }
}

.gallery{
  padding: 36px 0 26px;
}
.gallery__grid{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.photo{
  grid-column: span 4;
  margin: 0;
  background: rgba(255,255,255,.92);
  border-radius: var(--radius);
  border: 1px solid rgba(107,79,58,.12);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-origin: 50% 60%;
  perspective: 1200px;
}

.photo__button{
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.photo__button:focus-visible{
  outline: 3px solid rgba(122,166,198,.55);
  outline-offset: 4px;
  border-radius: calc(var(--radius) + 6px);
}
.photo__inner{
  display: block;
  position: relative;
  width: 100%;
  /* Portrait photos: keep a portrait frame so images don't feel "squeezed" */
  aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  transition:
    transform 780ms cubic-bezier(.2, .8, .2, 1);
}
.photo__face{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}
.photo__front{
  display: grid;
  grid-template-rows: 1fr auto;
  background: rgba(255,255,255,.92);
  transform: rotateY(0deg) translateZ(1px);
  opacity: 1;
  transition: opacity 240ms ease;
}
.photo__front img{
  width: 100%;
  height: 100%;
  /* Show the full portrait image (no cropping) */
  object-fit: contain;
  object-position: center;
  background: rgba(255,255,255,.92);
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.photo__title{
  padding: 12px 14px 14px;
  font-family: Fraunces, ui-serif, Georgia, Cambria, Times New Roman, Times, serif;
  color: rgba(28,27,24,.88);
  font-size: 16px;
}
.photo__back{
  transform: rotateY(180deg) translateZ(1px);
  background:
    radial-gradient(800px 240px at 30% 18%, rgba(207,228,242,.85), transparent 60%),
    radial-gradient(700px 240px at 70% 58%, rgba(182,146,74,.16), transparent 60%),
    rgba(255,255,255,.95);
  padding: 16px 16px 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.photo__back-title{
  font-family: Fraunces, ui-serif, Georgia, Cambria, Times New Roman, Times, serif;
  font-size: 18px;
  color: rgba(28,27,24,.88);
}
.photo__desc{
  margin: 0;
  color: rgba(28,27,24,.76);
  font-size: 14px;
}
.photo__hint{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(107,79,58,.72);
}

.photo.is-flipped .photo__inner{
  transform: rotateY(180deg);
}
.photo.is-flipped .photo__front{
  opacity: 0;
  pointer-events: none;
}
.photo.is-flipped .photo__back{
  opacity: 1;
  pointer-events: auto;
}

@media (hover: hover){
  .photo:hover{
    box-shadow: 0 24px 62px rgba(30, 24, 16, .16);
  }
  .photo:hover .photo__inner{
    transform: translateY(-7px) rotateZ(1.1deg);
  }
  .photo.is-flipped:hover .photo__inner{
    transform: rotateY(180deg) translateY(-7px) rotateZ(-1.1deg);
  }
}

.section{
  padding: 64px 0;
}
.section--alt{
  background:
    radial-gradient(900px 400px at 25% 30%, rgba(207,228,242,.75), transparent 65%),
    radial-gradient(800px 420px at 75% 55%, rgba(182,146,74,.12), transparent 60%);
  border-top: 1px solid rgba(107,79,58,.08);
  border-bottom: 1px solid rgba(107,79,58,.08);
}
.section__inner{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 26px;
  align-items: start;
}
.section__inner--reverse{
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}
.section__copy h2{
  margin: 0 0 10px;
  font-family: Fraunces, ui-serif, Georgia, Cambria, Times New Roman, Times, serif;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.015em;
}
.section__copy p{
  margin: 0 0 12px;
  color: rgba(28,27,24,.78);
  max-width: 62ch;
}
.list{
  margin: 12px 0 14px;
  padding-left: 18px;
  color: rgba(28,27,24,.76);
}
.list li{ margin: 8px 0; }
.note{
  border-left: 2px solid rgba(182,146,74,.55);
  padding-left: 12px;
  color: rgba(28,27,24,.72);
}

.paper-card{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(107,79,58,.12);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.paper-card__top{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(107,79,58,.10);
  background: linear-gradient(90deg, rgba(247,244,238,.9), rgba(255,255,255,.5));
}
.paper-stamp{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(182,146,74,.40)),
    linear-gradient(180deg, rgba(122,166,198,.18), rgba(107,79,58,.08));
  border: 1px solid rgba(182,146,74,.25);
  box-shadow: 0 10px 18px rgba(182,146,74,.16);
}
.paper-card__title{
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(107,79,58,.82);
}
.paper-card__body{
  padding: 14px 16px 16px;
}

.timeline{
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid rgba(107,79,58,.18);
}
.timeline li{
  padding: 12px 0 12px 14px;
  position: relative;
}
.timeline li::before{
  content: "";
  position: absolute;
  left: -6px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--gold));
  box-shadow: 0 10px 18px rgba(182,146,74,.22);
}
.timeline__time{
  font-weight: 600;
  color: rgba(28,27,24,.86);
}
.timeline__desc{
  color: rgba(28,27,24,.74);
  margin-top: 2px;
}

.frame{
  border-radius: 24px;
  border: 1px solid rgba(107,79,58,.14);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: rgba(255,255,255,.82);
}
.frame__sky{
  height: 260px;
  background:
    radial-gradient(240px 200px at 22% 28%, rgba(255,255,255,.95), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(207,228,242,.9), rgba(122,166,198,.22));
  position: relative;
}
.frame__sky img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame__sky::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(182,146,74,.06), rgba(107,79,58,.10));
  opacity: .75;
}
.frame__caption{
  padding: 12px 14px 14px;
  font-family: Fraunces, ui-serif, Georgia, Cambria, Times New Roman, Times, serif;
  color: rgba(28,27,24,.82);
}

.mini-gallery{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(107,79,58,.12);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}
.mini-gallery__tile{
  height: 120px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(122,166,198,.26), rgba(182,146,74,.12));
  border: 1px solid rgba(107,79,58,.10);
}
.mini-gallery__tile--alt{
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(182,146,74,.20), rgba(122,166,198,.12));
}

.section--cta{
  padding: 74px 0 84px;
}
.cta{
  padding: 28px 24px;
  border-radius: 26px;
  background:
    radial-gradient(900px 360px at 20% 15%, rgba(207,228,242,.9), transparent 60%),
    radial-gradient(900px 360px at 70% 35%, rgba(182,146,74,.18), transparent 60%),
    rgba(255,255,255,.72);
  border: 1px solid rgba(107,79,58,.14);
  box-shadow: var(--shadow);
}
.cta h2{
  margin: 0 0 8px;
  font-family: Fraunces, ui-serif, Georgia, Cambria, Times New Roman, Times, serif;
  font-weight: 500;
  font-size: 34px;
}
.cta p{
  margin: 0 0 12px;
  color: rgba(28,27,24,.78);
  max-width: 64ch;
}
.cta__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(107,79,58,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,244,238,.9));
  box-shadow: 0 12px 26px rgba(30, 24, 16, .10);
  text-decoration: none;
  font-weight: 600;
}
.button:hover{
  border-color: rgba(182,146,74,.40);
  box-shadow: 0 16px 35px rgba(30, 24, 16, .13);
}
.button--ghost{
  background: rgba(255,255,255,.52);
}
.cta__fineprint{ margin-top: 6px; }

.footer{
  padding: 34px 0 44px;
}
.footer__inner{
  border-top: 1px solid rgba(107,79,58,.10);
  padding-top: 18px;
  color: rgba(28,27,24,.70);
}
.footer__note{
  margin: 0 0 6px;
  font-family: Fraunces, ui-serif, Georgia, Cambria, Times New Roman, Times, serif;
}
.footer__fineprint{
  margin: 0;
  font-size: 13px;
}

/* Reveal animation */
.reveal{
  --delay: 0ms;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(.985) rotate(var(--tilt, 0deg));
  filter: blur(6px);
  transition:
    opacity 820ms cubic-bezier(.2, .8, .2, 1) var(--delay),
    transform 900ms cubic-bezier(.2, .8, .2, 1) var(--delay),
    filter 900ms cubic-bezier(.2, .8, .2, 1) var(--delay);
  will-change: transform, opacity, filter;
}
.reveal[data-reveal="left"]{ transform: translate3d(-28px, 8px, 0) scale(.985) rotate(var(--tilt, 0deg)); }
.reveal[data-reveal="right"]{ transform: translate3d(28px, 8px, 0) scale(.985) rotate(var(--tilt, 0deg)); }
.reveal[data-reveal="up"]{ transform: translate3d(0, 28px, 0) scale(.985) rotate(var(--tilt, 0deg)); }
.reveal.is-visible{
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(var(--tilt, 0deg));
  filter: blur(0);
}
.reveal.is-reset{
  transition: none !important;
}

@media (max-width: 980px){
  .hero__meta{ grid-template-columns: 1fr; }
  .gallery__grid{ gap: 14px; }
  .photo{ grid-column: span 6; }
  .section__inner, .section__inner--reverse{
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px){
  .hero{ padding-top: 54px; }
  .photo{ grid-column: span 12; }
  .topnav{
    gap: 6px;
    flex-wrap: nowrap;
  }
  .topnav a{
    padding: 6px 8px;
    font-size: 12px;
    letter-spacing: .08em;
  }
  /* Mobile header polish */
  .mark{ display: none; }
  .topbar__inner{ padding-block: 10px; }
  .home-button{
    width: 34px;
    height: 34px;
    box-shadow: none;
    background: rgba(255,255,255,.72);
  }
  .home-button__icon{ width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .scroll-cue__dot{ animation: none; }
  .reveal{
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}


