@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap");

:root {
  --ecru: var(--mf-ivory, #f7f0e4);
  --ecru-ink: #e7d6bb;
  --paper: #fffdf8;
  --forest: var(--mf-forest, #123f31);
  --navy: #314b5e;
  --terra: #b85e43;
  --mustard: var(--mf-gold, #e7bf72);
  --ink: #1f2d31;
  --display: "Cormorant Garamond", Garamond, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--ecru); font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; z-index: 100; top: -100px; left: 16px; padding: 12px 18px; background: var(--paper); color: var(--forest); }
.skip-link:focus { top: 16px; }
.eyebrow, .nav-link, .breadcrumbs, .journey-number, .gallery-index, .gallery-label, .gallery-count, .back-link, .footer-credits, .footer-link, .contact-link {
  font-size: 0.73rem; letter-spacing: 0.19em; text-transform: uppercase;
}

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr); align-items: center; min-height: 96px; padding: 15px clamp(20px, 4vw, 64px); color: var(--ecru-ink); border-bottom: 1px solid transparent; transition: min-height 450ms ease, background 450ms ease, box-shadow 450ms ease, color 300ms ease; }
.site-header.is-scrolled { min-height: 76px; color: var(--forest); background: rgba(247, 240, 228, 0.97); border-color: rgba(18, 63, 49, 0.15); box-shadow: 0 8px 24px rgba(18, 63, 49, 0.08); backdrop-filter: blur(10px); }
.brand { display: inline-flex; grid-column: 2; justify-self: center; align-items: center; width: 64px; height: 64px; background: var(--ecru-ink); -webkit-mask: url("../assets/mf-mark.png") center / 140% no-repeat; mask: url("../assets/mf-mark.png") center / 140% no-repeat; transition: width 300ms ease, height 300ms ease, background 300ms ease, transform 300ms ease; }
.brand img { width: 64px; height: 64px; object-fit: contain; opacity: 0; }
.site-header.is-scrolled .brand { width: 52px; height: 52px; background: var(--forest); }
.site-header.is-scrolled .brand img { width: 52px; height: 52px; }
.brand:hover { transform: scale(1.04); }
.primary-nav { display: flex; align-self: stretch; align-items: center; }
.primary-nav--left { grid-column: 1; justify-self: start; }
.primary-nav--right { grid-column: 3; justify-self: end; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(12px, 1.55vw, 27px); margin: 0; padding: 0; list-style: none; }
.nav-link { position: relative; display: inline-block; padding: 8px 0; font-size: 0.81rem; white-space: nowrap; }
.nav-link::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: right; transition: transform 350ms ease; }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle, .mobile-nav { display: none; }

.journey-hero { position: relative; display: flex; min-height: min(82svh, 920px); align-items: flex-end; isolation: isolate; overflow: hidden; background: var(--forest); color: var(--ecru-ink); }
.journey-hero::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(6, 29, 24, 0.46) 0%, rgba(6, 29, 24, 0.12) 38%, rgba(6, 29, 24, 0.76) 100%); content: ""; }
.journey-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-position, center); animation: hero-drift 13s ease-out both; }
@keyframes hero-drift { from { transform: scale(1.03); opacity: .45; } to { transform: scale(1.11); opacity: 1; } }
.journey-hero__content { position: relative; z-index: 2; width: min(100%, 1700px); margin: 0 auto; padding: 160px clamp(24px, 8vw, 138px) clamp(68px, 8vw, 124px); }
.breadcrumbs { display: flex; align-items: center; gap: 13px; color: var(--mf-gold, #e7bf72); }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 5px; }
.journey-number { display: block; margin-top: 55px; color: #f3d2ac; }
.journey-hero h1 { margin: 8px 0 4px; font-family: var(--display); font-size: clamp(5.3rem, 13vw, 12rem); font-optical-sizing: auto; font-weight: 300; letter-spacing: .01em; line-height: .9; }
.journey-hero__line { max-width: 30ch; margin: 28px 0 0; font-size: clamp(1.23rem, 2.1vw, 2rem); line-height: 1.25; }

.journey-intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(42px, 9vw, 170px); padding: clamp(85px, 11vw, 170px) clamp(24px, 10vw, 170px); }
.journey-intro__lead { align-self: start; }
.journey-intro .eyebrow { display: block; margin: 0 0 26px; color: var(--terra); }
.journey-intro h2 { max-width: 10ch; margin: 0; color: var(--forest); font-family: var(--display); font-size: clamp(3.15rem, 6vw, 6.3rem); font-optical-sizing: auto; font-weight: 300; letter-spacing: .015em; line-height: .98; }
.journey-intro h2 em { color: var(--terra); font-weight: 300; }
.journey-intro__copy { align-self: end; max-width: 44rem; }
.journey-intro__copy p { margin: 0 0 22px; font-size: clamp(1.12rem, 1.45vw, 1.42rem); line-height: 1.55; }
.journey-intro__copy p:last-child { margin-bottom: 0; }

.gallery-section { padding: clamp(72px, 9vw, 138px) clamp(24px, 7vw, 114px) clamp(90px, 10vw, 150px); background: var(--paper); }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: 1500px; margin: 0 auto 38px; }
.gallery-heading .eyebrow { margin: 0 0 12px; color: var(--terra); }
.gallery-heading h2 { margin: 0; color: var(--forest); font-family: var(--display); font-size: clamp(2.5rem, 4.5vw, 5rem); font-optical-sizing: auto; font-weight: 300; letter-spacing: .015em; line-height: 1; }
.gallery-heading__aside { max-width: 22rem; margin: 0 0 4px; color: var(--navy); font-size: 1.05rem; }
.gallery { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .75fr); width: min(100%, 1500px); min-height: 590px; margin: auto; background: var(--forest); color: var(--ecru-ink); }
.gallery-visual { position: relative; min-height: 590px; overflow: hidden; background: #17392f; }
.gallery-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.35s ease, visibility 1.35s ease; }
.gallery-slide.is-active { opacity: 1; visibility: visible; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, center); }
.gallery-slide.is-active img { animation: photo-drift 8s ease-out both; }
@keyframes photo-drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }
.gallery-arrow { position: absolute; z-index: 3; top: 50%; display: grid; width: 48px; height: 48px; place-items: center; padding: 0; transform: translateY(-50%); border: 1px solid rgba(231,214,187,.8); border-radius: 50%; background: rgba(18,63,49,.5); color: var(--ecru-ink); cursor: pointer; font-size: 1.35rem; transition: background 250ms ease; }
.gallery-arrow:hover, .gallery-arrow:focus-visible { background: var(--forest); }
.gallery-arrow--prev { left: 25px; }
.gallery-arrow--next { right: 25px; }
.gallery-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 590px; padding: clamp(35px, 4vw, 66px); }
.gallery-panel__top { display: flex; justify-content: space-between; gap: 20px; }
.gallery-index { color: var(--mf-gold, #e7bf72); }
.gallery-count { color: #d5e1d8; }
.gallery-captions { position: relative; min-height: 275px; }
.gallery-caption { position: absolute; inset: auto 0 0; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 850ms ease, transform 850ms ease, visibility 850ms ease; }
.gallery-caption.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.gallery-label { color: var(--mf-gold, #e7bf72); }
.gallery-caption h3 { margin: 17px 0 18px; font-family: var(--display); font-size: clamp(2.2rem, 3.1vw, 4rem); font-optical-sizing: auto; font-weight: 300; letter-spacing: .01em; line-height: 1; }
.gallery-caption p { max-width: 28rem; margin: 0; color: var(--ecru-ink); font-size: clamp(1rem, 1.08vw, 1.13rem); line-height: 1.5; }
.gallery-dots { display: flex; gap: 10px; align-items: center; margin-top: 35px; }
.gallery-dot { width: 27px; height: 19px; padding: 0; border: 0; background: none; cursor: pointer; }
.gallery-dot::after { display: block; height: 2px; background: rgba(255,253,248,.45); content: ""; transition: background 400ms ease, transform 400ms ease; }
.gallery-dot.is-active::after { background: var(--mf-gold, #e7bf72); transform: scaleY(1.5); }
.gallery-dot:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

.journey-inquire { display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: end; padding: clamp(80px, 10vw, 155px) clamp(24px, 10vw, 170px); background: var(--terra); color: var(--ecru-ink); }
.journey-inquire .eyebrow { color: var(--mf-gold, #e7bf72); }
.journey-inquire h2 { max-width: 11ch; margin: 15px 0 0; font-family: var(--display); font-size: clamp(3.3rem, 6vw, 6.7rem); font-optical-sizing: auto; font-weight: 300; letter-spacing: .01em; line-height: .98; }
.contact-link { display: inline-block; padding: 14px 0; border-bottom: 1px solid currentColor; color: var(--ecru-ink); white-space: nowrap; }
.contact-link:hover { color: var(--ecru-ink); }
.journey-footer { display: grid; grid-template-columns: 1fr auto; gap: 35px; padding: 44px clamp(24px, 7vw, 114px); background: var(--forest); color: var(--ecru-ink); }
.footer-name { margin: 0 0 10px; font-size: 0.9rem; letter-spacing: .16em; text-transform: uppercase; }
.footer-tagline { margin: 0 0 18px; color: #f4d9bc; font-style: italic; }
.footer-credits { max-width: 47rem; margin: 0; color: #d2d9cf; font-size: .65rem; line-height: 1.75; letter-spacing: .06em; text-transform: none; }
.footer-credits a { text-decoration: underline; text-underline-offset: 3px; }
.footer-links { display: flex; align-items: start; gap: 22px; }
.footer-link { white-space: nowrap; }
.footer-link:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto 1fr; }
  .primary-nav { display: none; }
  .menu-toggle { display: block; grid-column: 3; justify-self: end; padding: 8px 0 8px 14px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: .7rem; letter-spacing: .19em; text-transform: uppercase; }
  .mobile-nav { position: absolute; top: 100%; right: 0; left: 0; display: grid; max-height: 0; overflow: hidden; background: rgba(8,34,29,.96); transition: max-height 480ms ease; }
  .mobile-nav.is-open { max-height: 430px; }
  .mobile-nav ul { display: grid; gap: 0; margin: 0; padding: 10px 24px 22px; list-style: none; }
  .mobile-nav .nav-link { display: block; padding: 11px 0; color: var(--ecru-ink); font-size: .85rem; }
  .site-header.is-scrolled .mobile-nav { background: rgba(247,240,228,.99); }
  .site-header.is-scrolled .mobile-nav .nav-link { color: var(--forest); }
  .gallery { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); }
}
@media (max-width: 760px) {
  .site-header { min-height: 74px; padding: 10px 20px; }
  .site-header.is-scrolled { min-height: 66px; padding-block: 8px; }
  .brand { width: 52px; height: 52px; }
  .brand img { width: 52px; height: 52px; }
  .site-header.is-scrolled .brand { width: 44px; height: 44px; }
  .site-header.is-scrolled .brand img { width: 44px; height: 44px; }
  .journey-hero { min-height: 74svh; }
  .journey-hero--ischia > img { object-position: 32% 30%; }
  .journey-hero__content { padding: 126px 24px 65px; }
  .journey-number { margin-top: 42px; }
  .journey-hero h1 { font-size: clamp(4.6rem, 17vw, 8rem); }
  .journey-hero__line { margin-top: 22px; }
  .journey-intro { grid-template-columns: 1fr; gap: 35px; }
  .journey-intro h2 { max-width: 13ch; }
  .gallery-heading { display: block; margin-bottom: 26px; }
  .gallery-heading__aside { margin-top: 18px; }
  .gallery { display: block; }
  .gallery-visual { min-height: 0; height: min(63svh, 540px); }
  .gallery-panel { min-height: 340px; padding: 34px 28px 32px; }
  .gallery-captions { min-height: 195px; }
  .gallery-caption h3 { margin: 10px 0 13px; }
  .gallery-dots { margin-top: 20px; }
  .gallery-arrow { width: 42px; height: 42px; }
  .gallery-arrow--prev { left: 15px; }
  .gallery-arrow--next { right: 15px; }
  .journey-inquire { grid-template-columns: 1fr; gap: 27px; }
  .journey-footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
