/* =========================================================
   Lune Rosée — Wedding Planner HTML Template
   Version 1.0
   ---------------------------------------------------------
   1.  Fonts & design tokens
   2.  Base
   3.  Layout helpers & type
   4.  Buttons & links
   5.  Header & menu
   6.  Hero
   7.  Home sections
   8.  Inner pages
   9.  Portfolio & journal
   10. Contact & forms
   11. Call to action & footer
   12. Motion
   13. Responsive
   ========================================================= */

/* 1. Fonts & design tokens
   Change the look of the whole template here. */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Pinyon Script"; src: url("../fonts/pinyon-script.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --color-ivory: #f8f5f0;      /* page background */
  --color-linen: #f0eae2;      /* cards and bands */
  --color-sand: #e7dfd4;       /* stronger bands */
  --color-ink: #433a34;        /* headings */
  --color-text: #5b524b;       /* body text */
  --color-muted: #6f645b;      /* secondary text */
  --color-taupe: #7d6c5f;      /* filled buttons, script accents */
  --color-taupe-dark: #66574b; /* hover */
  --color-white: #fffdfa;
  --line: rgba(67, 58, 52, .16);
  --line-strong: rgba(67, 58, 52, .4);
  --shade: rgba(47, 41, 37, .55);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-script: "Pinyon Script", "Snell Roundhand", cursive;
  --font-body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  --section: clamp(72px, 8.5vw, 124px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-ivory);
  color: var(--color-text);
  font: 400 1rem/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--color-ink); margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--color-taupe); outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--color-ink); color: var(--color-white); text-decoration: none; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.muted { color: var(--color-muted); }

/* 3. Layout helpers & type */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.section--linen { background: var(--color-linen); }

.display { font-size: clamp(2.5rem, 4.6vw, 4.1rem); line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; color: var(--color-white); }
.title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.2; letter-spacing: .07em; text-transform: uppercase; }
.title--page { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.script { font: 400 clamp(1.5rem, 2vw, 1.85rem)/1.25 var(--font-script); color: var(--color-taupe); margin-bottom: .35em; }
.script--lg { font-size: clamp(2.1rem, 3.4vw, 3rem); margin-bottom: .5em; }
.label { font: 600 .72rem/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 1rem; }
.rule { display: block; width: 48px; height: 1px; margin: 1.6rem auto 0; background: var(--line-strong); }
.rule--light { background: rgba(255, 253, 250, .7); margin: 1.8rem 0 1.6rem; }
.section-head { text-align: center; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head .title { margin: 0; }
.sprig { display: block; margin: 1.6rem auto 0; color: var(--color-taupe); }

/* 4. Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 13px 28px;
  background: transparent; color: var(--color-ink);
  border: 1px solid var(--line-strong); border-radius: 0;
  font: 600 .72rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { background: var(--color-taupe); border-color: var(--color-taupe); color: var(--color-white); transform: translateY(-2px); box-shadow: 0 14px 26px -18px rgba(67, 58, 52, .9); }
.btn:active { transform: translateY(0); }
.btn--small { min-height: 42px; padding: 10px 20px; font-size: .68rem; }
.btn--solid { background: var(--color-taupe); border-color: var(--color-taupe); color: var(--color-white); }
.btn--solid:hover { background: var(--color-taupe-dark); border-color: var(--color-taupe-dark); }
.btn--light { border-color: rgba(255, 253, 250, .75); color: var(--color-white); }
.btn--light:hover { background: var(--color-white); border-color: var(--color-white); color: var(--color-ink); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 2rem; }

.text-link {
  display: inline-block; padding-bottom: 6px;
  font: 600 .72rem/1.3 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: letter-spacing .35s var(--ease), color .25s var(--ease);
}
.text-link:hover { letter-spacing: .26em; color: var(--color-taupe); }
.text-link--light { color: var(--color-white); }
.text-link--light:hover { color: var(--color-white); }

/* 5. Header & menu */
.site-header { position: relative; z-index: 60; background: var(--color-ivory); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-block: 18px 16px; }
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: var(--color-ink); text-decoration: none; line-height: 1; }
.logo .monogram { color: var(--color-taupe); transition: transform .6s var(--ease); }
.logo:hover .monogram { transform: rotateY(180deg); }
.logo__name { font: 600 1.15rem/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; margin-right: -.2em; white-space: nowrap; }
.logo__tag { font: 600 .55rem/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--color-muted); margin-right: -.3em; }

.main-nav ul { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.main-nav--right { justify-self: end; }
.main-nav a {
  position: relative; display: inline-block; padding: 8px 0;
  font: 600 .7rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-ink); text-decoration: none;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transition: transform .35s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 46px; height: 46px; margin-right: -10px;
  background: none; border: 0; color: var(--color-ink); cursor: pointer; padding: 0; justify-self: end;
}
.menu-toggle svg line { transition: transform .35s var(--ease); }
.menu-toggle:hover svg line:nth-child(2) { transform: translateX(6px); }

.menu-panel { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.menu-panel.is-open { visibility: visible; pointer-events: auto; }
.menu-panel__inner {
  position: absolute; inset: 0; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 18px var(--gutter) 40px;
  background: var(--color-ivory); text-align: center;
  opacity: 0; transform: translateY(-12px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.menu-panel.is-open .menu-panel__inner { opacity: 1; transform: none; }
.menu-panel__top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.menu-close {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; margin-right: -12px;
  background: none; border: 0; color: var(--color-ink); cursor: pointer; transition: transform .35s var(--ease);
}
.menu-close:hover { transform: rotate(90deg); }
.menu-panel nav a {
  display: inline-block; padding: 9px 0;
  font: 600 1.45rem/1.2 var(--font-display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-ink); text-decoration: none; transition: color .25s var(--ease);
}
.menu-panel nav a:hover, .menu-panel nav a[aria-current="page"] { color: var(--color-taupe); }
.menu-panel__script { margin: 0; }
.menu-panel__meta { margin-top: auto; display: grid; justify-items: center; gap: 16px; font-size: .95rem; }
.menu-panel__meta a { text-decoration: none; }
body.is-locked { overflow: hidden; }

/* Small horizontal logo in the menu panel */
.logo--small { flex-direction: row; gap: 12px; }
.logo--small .monogram { width: 26px; height: 36px; }
.logo--small .logo__tag { display: none; }

.socials { display: flex; gap: 6px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center; color: var(--color-ink);
  border: 1px solid transparent; border-radius: 50%; transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.socials a:hover { border-color: var(--line-strong); transform: translateY(-2px); }

/* 6. Hero */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(520px, 72vh, 720px); overflow: hidden; background: var(--color-sand); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 60% 40%); }
.hero::before { /* keeps white text readable on any photo */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(47, 41, 37, .58) 0%, rgba(47, 41, 37, .32) 38%, rgba(47, 41, 37, 0) 64%);
}
.hero__inner { position: relative; z-index: 2; padding-block: 72px; }
.hero__content { max-width: 32rem; text-align: center; }
.hero__content .script { color: var(--color-white); }
.hero__text { color: var(--color-white); margin: 1.4rem auto 2rem; max-width: 26rem; }
.hero--center .hero__content { text-align: left; max-width: 36rem; }
.hero__script { font-size: clamp(1.9rem, 2.8vw, 2.5rem); margin-top: .6rem; }

/* 7. Home sections */
.card-grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.service-card { display: flex; flex-direction: column; background: var(--color-linen); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -30px rgba(67, 58, 52, .8); }
.service-card__media { overflow: hidden; aspect-ratio: 4 / 3.6; background: var(--color-sand); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 22px 30px; }
.service-card__title { font-size: 1.3rem; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8rem; }
.service-card__body p { flex: 1; font-size: .95rem; margin-bottom: 1.4rem; }

.about-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--color-sand); }
.about-band__text { align-self: center; padding: clamp(56px, 6vw, 96px) clamp(32px, 5vw, 80px) clamp(56px, 6vw, 96px) var(--edge); }
.about-band__text .title { margin-bottom: 1.2rem; }
.about-band__text > p { max-width: 30rem; }
.about-band__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; max-width: 30rem; margin-top: 2rem; }
.signature { display: grid; justify-items: center; gap: 2px; margin: 0; }
.signature .script { margin: 0; font-size: 2rem; }
.signature__role { font: 600 .62rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); }
.about-band__media { position: relative; min-height: 460px; overflow: hidden; }
.about-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }

.press-row { padding-block: clamp(44px, 5vw, 64px); }
.press-row__title { font: 600 .68rem/1.4 var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--color-muted); text-align: center; margin-bottom: 1.6rem; }
.press-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; color: var(--color-muted); }
.press { display: block; white-space: nowrap; transition: color .3s var(--ease); }
.press:hover { color: var(--color-ink); }
.press--serif { font: 600 1.35rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.press--script { font: 400 1.9rem/1 var(--font-script); }
.press--caps { font: 600 .9rem/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase; }

/* Home 2 */
.intro__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.intro__text .title { max-width: 22ch; margin-bottom: .2rem; }
.intro__script { font-size: clamp(1.9rem, 2.6vw, 2.4rem); margin-bottom: 1.2rem; }
.intro__text > p:not(.script):not(.label) { max-width: 28rem; margin-bottom: 1.8rem; }
.intro__media { overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--color-sand); }
.intro__media img { width: 100%; height: 100%; object-fit: cover; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3.3; color: var(--color-white); text-decoration: none; background: var(--color-sand); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(47, 41, 37, .62) 0%, rgba(47, 41, 37, .08) 55%); transition: opacity .4s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile__text { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 1; display: grid; justify-items: center; text-align: center; }
.tile__caps { font: 600 1.35rem/1.1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.tile__script { font: 400 1.9rem/1.1 var(--font-script); transition: transform .4s var(--ease); }
.tile:hover .tile__script { transform: translateY(-3px); }

.quote-band { position: relative; overflow: hidden; padding-block: clamp(72px, 9vw, 120px); text-align: center; }
.quote-band__mark { position: absolute; left: 50%; top: 50%; width: auto; height: 88%; transform: translate(-50%, -50%); color: var(--color-taupe); opacity: .08; pointer-events: none; }
.quote-band__text { position: relative; margin: 0 auto; max-width: 30ch; font: 600 clamp(1.4rem, 2.4vw, 2rem)/1.35 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--color-ink); text-wrap: balance; }

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--color-linen); }
.split__media { position: relative; min-height: clamp(380px, 38vw, 560px); overflow: hidden; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__text { align-self: center; padding: clamp(48px, 6vw, 96px) var(--edge) clamp(48px, 6vw, 96px) clamp(32px, 5vw, 80px); }
.split__text .title { margin-bottom: 1.2rem; }
.split__text p { max-width: 26rem; margin-bottom: 2rem; }

/* 8. Inner pages */
.page-split__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.page-split__text > p:not(.script):not(.breadcrumb) { max-width: 30rem; }
.page-split__text .btn { margin-top: 1rem; }
.page-split__media { overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--color-sand); }
.page-split__media img { width: 100%; height: 100%; object-fit: cover; }
.title--page { margin-bottom: .3rem; }
.breadcrumb { font: 600 .68rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 1.2rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 4px; }

.values-band { background: var(--color-linen); padding-block: clamp(48px, 5vw, 72px); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value { text-align: center; padding: 8px clamp(20px, 3vw, 44px); }
.value + .value { border-left: 1px solid var(--line); }
.value__icon { display: inline-block; color: var(--color-taupe); margin-bottom: 14px; }
.value h3 { font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem; }
.value p { font-size: .95rem; max-width: 22rem; margin-inline: auto; }

.approach { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.approach .title { margin-bottom: .3rem; }
.steps { margin-top: 1.4rem; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step:first-child { border-top: 1px solid var(--line); }
.step__nr { font: 600 1.5rem/1.2 var(--font-display); color: var(--color-taupe); }
.step h3 { font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .2rem; }
.step p { font-size: .95rem; }
.approach__media { overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--color-sand); }
.approach__media img { width: 100%; height: 100%; object-fit: cover; }

.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; scroll-margin-top: 40px; }
.feature + .feature { margin-top: var(--section); }
.feature--reverse .feature__media { order: 2; }
.feature__media { overflow: hidden; aspect-ratio: 16 / 11; background: var(--color-sand); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__text .title { margin-bottom: 1rem; }
.feature__text > p { max-width: 28rem; }

.checklist { display: grid; gap: 10px; margin: 1.6rem 0; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--color-ink); }
.checklist svg { margin-top: 6px; color: var(--color-taupe); }
.facts { margin: 2rem 0 0; border-top: 1px solid var(--line); max-width: 30rem; }
.facts div { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 .66rem/1.9 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); }
.facts dd { margin: 0; color: var(--color-ink); }

/* 9. Portfolio & journal */
.page-intro .wrap > .title--page, .page-intro .wrap > .script, .page-intro .wrap > .label { text-align: center; }
.page-intro .wrap > p:not(.script):not(.label):not(.button-row) { text-align: center; max-width: 34rem; margin-inline: auto; }
.page-intro .button-row { justify-content: center; }
.filters { display: flex; justify-content: center; gap: 4px 30px; margin: 1.2rem 0 clamp(28px, 3vw, 44px); overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; padding: 10px 0; background: none; border: 0; cursor: pointer; color: var(--color-muted);
  font: 600 .7rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  background-image: linear-gradient(var(--color-ink), var(--color-ink)); background-repeat: no-repeat; background-position: center bottom; background-size: 0 1px;
  transition: color .25s var(--ease), background-size .35s var(--ease);
}
.filter:hover, .filter[aria-pressed="true"] { color: var(--color-ink); background-size: 100% 1px; }
[data-category].is-hidden { display: none; }

.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 17vw, 230px); grid-auto-flow: dense; gap: 10px; }
.shot { position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--color-sand); }
.shot--tall { grid-row: span 2; }
.shot--wide { grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.shot__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; text-align: left;
  font: 600 .66rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-white);
  background: linear-gradient(0deg, rgba(47, 41, 37, .7), rgba(47, 41, 37, 0));
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); }
.shot:hover .shot__caption, .shot:focus-visible .shot__caption { opacity: 1; transform: none; }

.lightbox { width: min(1100px, 92vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(36, 31, 28, .95); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox__caption { margin-top: 14px; text-align: center; font: 600 .7rem/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--color-white); }
.arrow { width: 52px; height: 44px; display: inline-grid; place-items: center; padding: 0; background: none; border: 0; color: var(--color-white); cursor: pointer; transition: transform .3s var(--ease); }
.lightbox .arrow { position: absolute; bottom: -14px; }
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }
.lightbox__prev:hover { transform: translateX(-5px); }
.lightbox__next:hover { transform: translateX(5px); }
.lightbox__close { position: absolute; top: -54px; right: -6px; margin: 0; color: var(--color-white); }

.stories { margin-top: clamp(28px, 3vw, 44px); row-gap: clamp(40px, 4vw, 56px); }
.story { display: flex; flex-direction: column; align-items: flex-start; }
.story__media { display: block; width: 100%; overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-sand); margin-bottom: 18px; }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.story:hover .story__media img { transform: scale(1.05); }
.story__meta { font: 600 .66rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); margin-bottom: .6rem; }
.story__meta a { text-decoration: none; }
.story__meta a:hover { color: var(--color-ink); }
.story__title { font-size: 1.35rem; line-height: 1.25; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.story__title a { text-decoration: none; }
.story__title a:hover { color: var(--color-taupe); }
.story__text { font-size: .95rem; margin-bottom: 1.1rem; }

.post__head { max-width: calc(44rem + 2 * var(--gutter)); padding-top: clamp(56px, 7vw, 104px); text-align: center; }
.post__hero { margin-block: clamp(28px, 4vw, 48px); }
.post__hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: var(--color-sand); }
.post__body { max-width: 42rem; margin-inline: auto; padding-bottom: var(--section); }
.post__body > p { font-size: 1.06rem; line-height: 1.85; }
.post__body h2 { font-size: clamp(1.4rem, 2vw, 1.7rem); letter-spacing: .08em; text-transform: uppercase; margin: 2.4rem 0 .9rem; }
.post__body figure { margin: 2.6rem 0; }
.post__body figcaption { margin-top: 10px; font-size: .9rem; color: var(--color-muted); text-align: center; }
.post__body--left { margin-inline: 0; padding-bottom: 0; margin-top: 2rem; }
.pullquote { margin: 2.6rem 0; text-align: center; }
.pullquote p { font: 400 clamp(1.7rem, 2.6vw, 2.2rem)/1.35 var(--font-script); color: var(--color-taupe); }
.post__credits { margin-top: 2.4rem; padding-top: 18px; border-top: 1px solid var(--line); font-size: .92rem !important; color: var(--color-muted); }
.notfound { min-height: 56vh; }
.notfound .wrap { text-align: center; }

/* 10. Contact & forms */
.contact__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__intro > p:not(.script) { max-width: 26rem; }
.contact-list { display: grid; gap: 16px; margin: 2.2rem 0 1.6rem; }
.contact-item { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; color: var(--color-ink); }
.contact-item__icon { color: var(--color-taupe); padding-top: 2px; }
.contact-item a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.contact-item a:hover { background-size: 100% 1px; }
.contact .socials { margin-left: -10px; }

.contact__form { padding: clamp(28px, 4vw, 48px); background: var(--color-white); border: 1px solid var(--line); }
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font: 600 .66rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); }
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.input, .textarea {
  width: 100%; min-height: 48px; padding: 10px 0;
  background: transparent; color: var(--color-ink);
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color .25s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #8c8178; }
.input:hover, .textarea:hover { border-color: var(--color-muted); }
.input:focus, .textarea:focus { outline: none; border-color: var(--color-taupe); box-shadow: 0 1px 0 var(--color-taupe); }
.textarea { min-height: 130px; resize: vertical; }
.form-note { margin: 0; font-size: .88rem; color: var(--color-muted); }
.form-note a { color: var(--color-ink); }
.form-status { display: none; margin: 0; padding: 14px 16px; border: 1px solid var(--color-taupe); color: var(--color-ink); font-size: .95rem; }
.form-status.is-visible { display: block; }

/* Date fields: Safari on iPhone needs flex + align-items to centre the chosen date */
input[type="date"] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; min-width: 0; max-width: 100%; position: relative; text-align: left; color-scheme: light; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
input[type="date"]:invalid:not(:focus):not(:out-of-range)::-webkit-datetime-edit,
input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit { color: transparent; -webkit-text-fill-color: transparent; }
input[type="date"].is-empty:not(:focus) { color: transparent; -webkit-text-fill-color: transparent; }
input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit-fields-wrapper,
input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit-text,
input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit-day-field,
input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit-month-field,
input[type="date"].is-empty:not(:focus)::-webkit-datetime-edit-year-field { -webkit-text-fill-color: transparent; color: transparent; }
.field--date { position: relative; }
.date-hint { position: absolute; left: 0; bottom: 0; height: 48px; display: none; align-items: center; pointer-events: none; color: #8c8178; }
.field--date input.is-empty:not(:focus) + .date-hint { display: flex; }

.calendar-band { background: var(--color-linen); padding-block: clamp(40px, 5vw, 64px); }
.calendar-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.calendar-band__inner p { margin: .3rem 0 0; }
.image-band { position: relative; display: grid; place-items: center; min-height: clamp(320px, 34vw, 460px); overflow: hidden; }
.image-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-band::after { content: ""; position: absolute; inset: 0; background: rgba(47, 41, 37, .38); }
.image-band__text { position: relative; z-index: 1; margin: 0; padding: 40px var(--gutter); text-align: center; font: 400 clamp(2rem, 4vw, 3.2rem)/1.3 var(--font-script); color: var(--color-white); }

/* 11. Call to action & footer */
.cta-band { background: var(--color-linen); padding-block: clamp(48px, 6vw, 80px); }
.cta-band__inner { text-align: center; }
.cta-band__title { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .2rem; }
.cta-band .script { margin-bottom: 1.4rem; }

.site-footer { border-top: 1px solid var(--line); font-size: .92rem; }
.footer-main { display: grid; grid-template-columns: 1.35fr 1fr 1.15fr 1.25fr; gap: 40px; padding-block: clamp(56px, 6vw, 80px); }
/* Footer logo: monogram beside the name */
.logo--footer { display: grid; grid-template-columns: auto auto; column-gap: 14px; row-gap: 6px; justify-content: start; justify-items: start; margin-bottom: 18px; }
.logo--footer .monogram { grid-row: span 2; }
.logo--footer .logo__name { align-self: end; }
.logo--footer .logo__tag { align-self: start; }
.footer-brand p { max-width: 24ch; margin-bottom: 1rem; }
.footer-brand .socials { margin-left: -10px; }
.footer-title { font: 600 .68rem/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--color-ink); margin-bottom: 1.1rem; }
.footer-list { display: grid; gap: 8px; }
.footer-list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease), color .25s var(--ease); }
.footer-list a:hover { color: var(--color-ink); background-size: 100% 1px; }
.footer-contact li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.footer-contact svg { margin-top: 5px; color: var(--color-taupe); }
.footer-contact + .btn { margin-top: 1.4rem; }
.footer-bottom {
  display: flex; align-items: center; gap: 16px 28px; padding-block: 22px 28px;
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: .82rem; color: var(--color-muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 22px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--color-ink); }
.to-top {
  margin-left: auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--color-taupe); color: var(--color-white); transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.footer-bottom .to-top:hover { background: var(--color-taupe-dark); color: var(--color-white); transform: translateY(-3px); }

/* 12. Motion */
.icon { display: block; overflow: visible; }
.icon .move { transform-box: fill-box; transform-origin: center; }
.monogram { overflow: visible; }

@media (prefers-reduced-motion: no-preference) {
  /* One calm entrance for the opening of each page */
  .hero__media img, .page-split__media img { animation: settle 2.4s var(--ease) backwards; }
  .hero__content > *, .page-split__text > *, .page-intro .wrap > :not(.mosaic):not(.stories):not(.post__body), .post__head > *, .contact__intro > * { animation: rise .9s var(--ease) backwards; }
  .hero__content > :nth-child(2), .page-split__text > :nth-child(2), .page-intro .wrap > :nth-child(2), .post__head > :nth-child(2), .contact__intro > :nth-child(2) { animation-delay: .12s; }
  .hero__content > :nth-child(3), .page-split__text > :nth-child(3), .page-intro .wrap > :nth-child(3), .post__head > :nth-child(3), .contact__intro > :nth-child(3) { animation-delay: .24s; }
  .hero__content > :nth-child(n+4), .page-split__text > :nth-child(n+4), .contact__intro > :nth-child(n+4) { animation-delay: .36s; }

  /* Sections slide in softly (only when JavaScript runs) */
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js .service-card[data-reveal].is-visible { transition: opacity .9s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
  .js .service-card[data-reveal].is-visible:hover { transform: translateY(-4px); }

  /* Each icon moves in its own way on hover, once on phones when it scrolls into view */
  .value:hover .icon-heart .move, .icon-heart.is-played .move { animation: beat .9s var(--ease); }
  .value:hover .icon-ring .move, .icon-ring.is-played .move { animation: sparkle 1s var(--ease); transform-origin: 50% 100%; }
  .value:hover .icon-moon .move, .icon-moon.is-played .move { animation: wane 1.2s var(--ease); }
  .contact-item:hover .icon-phone, .footer-contact li:hover .icon-phone, .icon-phone.is-played { animation: buzz .5s linear; }
  .contact-item:hover .icon-mail .move, .footer-contact li:hover .icon-mail .move, .icon-mail.is-played .move { animation: flap .7s var(--ease); transform-origin: 50% 0%; }
  .contact-item:hover .icon-pin .move, .footer-contact li:hover .icon-pin .move, .icon-pin.is-played .move { animation: drop .7s var(--ease); }
  .checklist li:hover .icon-check path { animation: draw .6s var(--ease); }
  .socials a:hover svg { animation: tilt .5s var(--ease); }
  .to-top:hover svg { animation: lift .7s var(--ease); }
}
@keyframes settle { from { transform: scale(1.05); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.18); } 45% { transform: scale(.96); } 65% { transform: scale(1.1); } }
@keyframes sparkle { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-3px) rotate(-10deg); } 70% { transform: translateY(-1px) rotate(6deg); } }
@keyframes wane { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-24deg) scale(.92); } }
@keyframes buzz { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-2px) rotate(-6deg); } 40%, 80% { transform: translateX(2px) rotate(6deg); } }
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(-1); } }
@keyframes drop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-6px); } 65% { transform: translateY(1px); } }
@keyframes draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes tilt { 50% { transform: rotate(-10deg) scale(1.1); } }
@keyframes lift { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-5px); } }
.icon-check path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.icon-pin .move { transform-origin: 50% 100%; }

/* 13. Responsive */
@media (max-width: 1100px) {
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1000px) {
  .header-inner { grid-template-columns: 1fr auto; padding-block: 14px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .logo { flex-direction: row; gap: 12px; justify-self: start; }
  .site-header .logo .monogram { width: 26px; height: 36px; }
  .site-header .logo .logo__tag { display: none; }
}

@media (max-width: 900px) {
  /* Phones and tablets: full photo with the whole heading on the first screen */
  .hero { align-items: flex-end; min-height: calc(100svh - 64px); }
  .hero::before { background: linear-gradient(0deg, rgba(47, 41, 37, .78) 0%, rgba(47, 41, 37, .45) 45%, rgba(47, 41, 37, .05) 75%); }
  .hero__media img { object-position: var(--focus-mobile, var(--focus, 60% 40%)); }
  .hero__inner { padding-block: 40px 52px; }
  .hero__content, .hero--center .hero__content { text-align: center; margin-inline: auto; }
  .hero--center .rule--light { margin-inline: auto; }
  .about-band, .intro__inner, .split, .page-split__inner, .approach, .feature, .contact__inner { grid-template-columns: 1fr; }
  .about-band__text { padding: 56px var(--gutter); }
  .about-band__media { min-height: 0; aspect-ratio: 4 / 3; }
  .about-band__media img { -webkit-mask-image: none; mask-image: none; }
  .split__media { min-height: 0; aspect-ratio: 4 / 3; }
  .split__text { padding: 48px var(--gutter) 56px; }
  .feature--reverse .feature__media { order: 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 10; }
  .values { grid-template-columns: 1fr; gap: 28px; }
  .value + .value { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 34vw, 240px); }
  .press-list { justify-content: center; }
  .page-split__media, .approach__media { aspect-ratio: 4 / 3.4; }
}

@media (max-width: 640px) {
  body { font-size: .98rem; }
  .display { font-size: clamp(2.2rem, 10vw, 2.7rem); }

  .card-grid--4, .card-grid--3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-brand, .footer-main > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom p { flex-basis: 100%; }
  .facts div { grid-template-columns: 100px 1fr; }
  .calendar-band__inner { flex-direction: column; align-items: flex-start; }
  .lightbox .arrow { bottom: -56px; }
  .lightbox__caption { margin-top: 20px; }
  .shot__caption { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
