/* ============ Yael Dotan — styles ============ */

@font-face { font-family: 'Plinko'; src: url('../fonts/plinko-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plinko'; src: url('../fonts/plinko-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plinko'; src: url('../fonts/plinko-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Aurora'; src: url('../fonts/aurora.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'Yael Leibushor'; src: url('../fonts/yael-leibushor.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Echo Soul'; src: url('../fonts/echo-soul.otf') format('opentype'); font-display: swap; }

:root {
  --sec: clamp(100px, 11vw, 170px);   /* one vertical rhythm between sections */
  --bg: #f4efe8;
  --bg-2: #ebe3d8;
  --ink: #2a221c;
  --muted: #7a6c60;
  --text: #4a3f36;   /* every running paragraph */
  --accent: #9c5b3b;
  --line: rgba(42, 34, 28, .16);
  --white: #fffaf4;

  --he: 'Plinko', 'Assistant', system-ui, sans-serif;
  --display: 'Plinko', 'Assistant', system-ui, sans-serif;
  --en: 'Aurora', 'Cormorant Garamond', Georgia, serif;
  --script: 'Echo Soul', cursive;

  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --hdr: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--he); font-weight: 400; font-size: 18.5px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-variant-ligatures: no-common-ligatures;   /* Aurora joins letters like i–l */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
p, h1, h2, h3, blockquote { text-wrap: pretty; }   /* no lonely last words */
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -100px; right: 16px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 18px; }
.skip:focus { top: 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* soft paper grain over everything */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
.h1, .h2, .h3, .fc__t, .j-row__title, .pkg__name, .next__title, .menu nav a, .prose h2 { font-family: var(--display); }
.kicker { font-family: var(--en); font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.kicker a { border-bottom: 1px solid currentColor; }
.h1 { font-weight: 700; font-size: clamp(38px, 4.4vw, 70px); line-height: 1.1; letter-spacing: -.01em; }
.h2 { font-weight: 700; font-size: clamp(36px, 4.8vw, 72px); line-height: 1.12; letter-spacing: -.005em; }
.h3 { font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; }
.lead { font-size: clamp(18.5px, 1.5vw, 22px); line-height: 1.8; color: var(--text); max-width: 38em; }
.en { font-family: var(--en); }
.script { font-family: var(--script); }

/* ---------- buttons ---------- */
/* a link to another page: underlined text with an arrow */
.go { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; padding-bottom: 6px; border-bottom: 1px solid currentColor; transition: color .3s, gap .4s var(--ease); }
.go svg { width: 20px; height: 20px; fill: none; }
.go:hover { color: var(--accent); gap: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden; isolation: isolate;
  height: 54px; padding: 0 26px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 16px; transition: color .5s var(--ease);
}
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover { color: var(--white); }
.btn:hover::before { transform: none; }
.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid::before { background: var(--accent); }
.btn--line svg { fill: none; transition: transform .5s var(--ease); }
.btn--line:hover svg { transform: translateX(-6px); }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr);
  display: flex; align-items: center; gap: 40px; padding: 0 var(--gut);
  color: var(--ink); transition: transform .6s var(--ease), background .4s, color .4s;
}
.page-home .hdr:not(.is-solid) { color: var(--white); }
.hdr.is-solid {
  height: calc(var(--hdr) - 14px); background: rgba(244, 239, 232, .97);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(42, 34, 28, .07);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hdr { transition: height .5s var(--ease), background .4s, color .4s, box-shadow .4s; }
.logo__mk { transition: height .5s var(--ease); }
.hdr.is-solid .logo__mk { height: 42px; }
.logo { display: block; line-height: 0; direction: ltr; --fr: var(--accent); }
.logo__mk { display: block; width: auto; height: 50px; overflow: visible; }
.logo__mk text, .ld__mk text { font-family: var(--en); fill: currentColor; }
.logo__fr { fill: none; stroke: var(--fr); stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.page-home .hdr:not(.is-solid) .logo { --fr: #e4b393; }
.nav { display: flex; gap: 36px; margin-inline-start: auto; font-size: 17.5px; font-weight: 500; }
.nav a { position: relative; display: block; overflow: hidden; height: 1.6em; }
.nav a span { display: block; transition: transform .55s var(--ease); }
.nav a span::after { content: attr(data-hover); position: absolute; top: 100%; right: 0; font-style: normal; }
.nav a:hover span { transform: translateY(-100%); }
.nav a[aria-current] { border-bottom: 1px solid currentColor; }
.hdr__wa { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 1.5px solid currentColor; border-radius: 999px; font-size: 16.5px; font-weight: 500; transition: background .4s, color .4s; }
.hdr__wa svg { width: 17px; height: 17px; fill: currentColor; }
.hdr__wa:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; margin-inline-start: auto; position: relative; z-index: 2; }
.burger span { position: absolute; right: 10px; width: 24px; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--hdr) + 30px) var(--gut) 30px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-in-out);
}
.menu.is-open { clip-path: inset(0); }
.menu nav { display: flex; flex-direction: column; gap: 10px; }
.menu nav a { font-size: 26px; font-weight: 700; line-height: 1.35; }
.menu nav a.menu__sub { font-size: 17px; color: var(--muted); padding-inline-start: 18px; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; color: var(--muted); }
body.menu-open .hdr { color: var(--ink) !important; background: transparent; backdrop-filter: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--ink); overflow: hidden; }
.hero { --hg: clamp(10px, 1.25vw, 20px); }
.hero__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--hg); padding: 0 var(--hg); }
/* each column starts at a different height, so the tiles never line up */
.hero__col { position: relative; will-change: translate; }
.hero__col:nth-child(1) { --top: -7%; }
.hero__col:nth-child(2) { --top: -36%; }
.hero__col:nth-child(3) { --top: -17%; }
.hero__col:nth-child(4) { --top: -44%; }
.hero__track { position: absolute; inset: var(--top) 0 auto 0; display: flex; flex-direction: column; gap: var(--hg); }
.hero__tile { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #3a2f27; }
.hero__col:nth-child(even) .hero__tile { aspect-ratio: 2 / 3; }
.hero__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes cellIn { to { clip-path: inset(0); } }
/* hero waits for the opening screen */
.js .hero:not(.is-ready) *, .js .hero:not(.is-ready)::after { animation-play-state: paused !important; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20,14,10,.4) 0%, rgba(20,14,10,0) 20%); }
/* light panel in the middle of the mosaic: opening line and calls to action */
.hero__panel {
  position: absolute; z-index: 3; top: 50%; left: 50%; translate: -50% -50%;
  width: min(64%, 900px);
  padding: clamp(28px, 2.8vw, 46px) clamp(28px, 4.5vw, 76px); background: var(--bg); color: var(--ink); text-align: center;
  display: flex; flex-direction: column; align-items: center;
  clip-path: inset(100% 0 0 0); animation: cellIn 1.3s var(--ease-in-out) .5s forwards;   /* the photos come first, the panel rises after */
}
.hero__panel > * { opacity: 0; animation: fadeUp 1s var(--ease) forwards; animation-delay: calc(1.05s + var(--d, 0s)); }
.hero__name { white-space: nowrap; font-family: var(--en); font-size: clamp(26px, 2.6vw, 44px); line-height: .9; direction: ltr; margin-bottom: clamp(16px, 1.8vw, 26px); }
.hero__name span { display: block; font-size: clamp(10px, .8vw, 13px); letter-spacing: .6em; margin-right: -.6em; text-transform: uppercase; color: var(--accent); margin-top: 10px; }
.hero__h { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.3vw, 38px); line-height: 1.2; max-width: 22em; --d: .1s; }
.hero__intro { margin-top: 14px; color: var(--text); font-size: clamp(16.5px, 1.2vw, 19px); line-height: 1.6; --d: .2s; }
.hero__panel .cta-row { justify-content: center; margin-top: clamp(22px, 2.4vw, 34px); --d: .3s; }
@keyframes titleIn { to { clip-path: inset(-10% 0 -10% 0); transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__scroll { position: absolute; z-index: 4; right: var(--gut); bottom: clamp(26px, 3.4vw, 44px); width: 1px; height: 64px; background: rgba(255,250,244,.3); overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: var(--white); animation: scrollCue 2.4s var(--ease-in-out) infinite; }
@keyframes scrollCue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- sections ---------- */
section { position: relative; }
.sec-head { padding: 0 var(--gut); margin-bottom: clamp(40px, 6vw, 90px); max-width: 1100px; }
.sec-head__text { margin-top: 22px; font-size: 20px; color: var(--text); max-width: 46em; }

/* about */
.about {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 120px); align-items: center;
  padding: var(--sec) var(--gut) calc(var(--sec) - var(--hdr) - 30px);   /* the journeys heading below carries the header's height on top */
}
/* one portrait; while the section scrolls by, the camera "focuses" on Yael:
   the photo pushes in slowly and the focus corners close from the frame onto her face */
.about__media { position: relative; width: min(100%, 520px); margin-inline: auto; aspect-ratio: 4 / 5; --p: 0; }
.about__frame { position: absolute; inset: 0; overflow: hidden; background: var(--bg-2); }
.about__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transform-origin: 41% 30%; scale: calc(1 + var(--p) * .22); }
.about__af { position: absolute; inset: -18px; pointer-events: none; }
.about__af i { position: absolute; width: clamp(22px, 2.6vw, 36px); aspect-ratio: 1; border: 0 solid color-mix(in srgb, var(--white) calc(var(--p) * 100%), var(--accent)); filter: drop-shadow(0 0 3px rgba(0, 0, 0, calc(var(--p) * .35))); }
.about__af i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.about__af i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.about__af i:nth-child(3) { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.about__af i:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
/* round badge with YD and a slowly turning ring of text, in small letters */
.about__mark { position: absolute; left: -9%; bottom: 7%; width: clamp(108px, 10vw, 146px); aspect-ratio: 1; padding: 6px; border-radius: 50%; background: var(--bg); direction: ltr; }
.about__mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.about__mark text { font-family: var(--en); fill: var(--ink); }
.about__ring { transform-origin: 60px 60px; animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.js [data-reveal="clip"] > svg { clip-path: inset(100% 0 0 0); transform: scale(1.2); transition: clip-path 1.3s var(--ease-in-out) .2s, transform 1.8s var(--ease) .2s; }
.js [data-reveal="clip"].is-in > svg { clip-path: inset(0); transform: none; }
.about__af span { position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; font-family: var(--en); font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--white); text-shadow: 0 1px 6px rgba(0,0,0,.35); opacity: var(--lock, 0); transition: opacity .5s; }
.about__text .h2 { margin-bottom: 36px; }
.about { overflow: hidden; isolation: isolate; }
.about__ghost {
  position: absolute; top: clamp(70px, 9vw, 160px); left: 0; right: 0; z-index: -1; pointer-events: none;
  font-family: var(--en); font-size: clamp(56px, 15vw, 300px); line-height: 1; white-space: nowrap; text-align: center;
  direction: ltr; color: var(--ink); opacity: .035;
}
.about__text .lead + .lead { margin-top: 18px; }
.about__bridge strong { font-weight: 700; color: var(--accent); }
.quote { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); max-width: 34em; }
.quote p { font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; line-height: 1.55; }

/* journeys on home */
.journeys { padding: 0 0 calc(var(--sec) * .25); }
/* the film: scrolling down slides the journeys sideways through the logo's focus frame, which stays put at the start of the row */
.film {
  position: relative; height: 320vh; --gap: clamp(18px, 2.4vw, 40px);
  --fw: min(34vw, 460px, (100svh - var(--hdr) - 370px) * .8);   /* card width also fits short screens */
}
.film__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.film__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; padding: calc(var(--hdr) + 10px) var(--gut) clamp(20px, 2.6vw, 34px); }
.film__head .sec-head__text { margin-top: 12px; }
.film__track { display: flex; align-items: flex-start; gap: var(--gap); padding: 0 var(--gut) 0 calc(var(--gut) + var(--fw) + var(--gap)); width: max-content; will-change: transform; }   /* one empty card's width after the closing card */
.fc { flex: none; width: var(--fw); transition: opacity .8s var(--ease); }
.fc:not(.on) { opacity: .7; }
.fc__img { transition: scale 1s var(--ease); transform-origin: 50% 100%; }
.fc:not(.on) .fc__img { scale: .93; }
.fc__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
/* the journey in focus is sharp; the others sit softly out of focus and come into it as they take its place */
.fc__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(.75) brightness(.92); scale: 1.02; transition: filter 1s var(--ease), scale 1s var(--ease); }
.fc.on .fc__img img { filter: none; scale: 1; }
.fc__meta { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; opacity: .45; transition: opacity .8s; }
.fc.on .fc__meta { opacity: 1; }
.fc__t { font-weight: 700; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.1; }
.fc__p { opacity: 0; transition: opacity .8s; }
.fc.on .fc__p { opacity: 1; }
.fc__p { color: var(--text); margin-top: 6px; max-width: 26em; }
/* closing card: a way on to all the journeys */
.fc-end { flex: none; width: var(--fw); align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding-inline: clamp(10px, 2vw, 30px); }
.fc-end__t { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.4; color: var(--text); max-width: 13em; }
.film__ctrl { position: relative; display: flex; align-items: center; gap: 16px; padding-bottom: 14px; }
.film__bar { position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line); }
.film__bar i { position: absolute; inset: 0 0 0 auto; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.film__btn { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; transition: background .3s, color .3s, opacity .3s; }
.film__btn svg { width: 20px; height: 20px; fill: none; }
.film__btn[data-dir="-1"] svg { rotate: 180deg; }
.film__btn:hover { background: var(--ink); color: var(--white); }
.film__btn:disabled { opacity: .3; pointer-events: none; }
.film__count { font-family: var(--en); font-size: 15px; letter-spacing: .2em; color: var(--muted); direction: ltr; }

/* process */
/* the steps as printed photos, slightly askew, each titled in Yael's handwriting */
.process { padding: calc(var(--sec) * .32) 0 0; }   /* same ground as the page; the sections around it give the space */
.pl__kicker { font-family: 'Yael Leibushor', var(--script); font-size: clamp(40px, 3.6vw, 56px); line-height: 1; color: var(--accent); margin-bottom: 6px; }
/* a dotted trail draws itself from step to step as the section scrolls by; each step lands when the trail reaches it */
.process .sec-head { margin-bottom: clamp(16px, 2vw, 30px); }
.pl__wrap { position: relative; padding: clamp(60px, 5vw, 76px) 0 clamp(60px, 5vw, 76px); }   /* room for the trail to start above the first print and end below the last */
.pl__trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pl__path { fill: none; stroke: var(--accent); stroke-width: 6; stroke-dasharray: 0 16; stroke-linecap: round; }
.pl__draw { fill: none; stroke: #fff; stroke-width: 14; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pl__walker { fill: var(--accent); stroke: var(--bg); stroke-width: 3; }   /* walks at the head of the trail */
.pl { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.6vw, 40px); align-items: start; padding: 0 var(--gut); }
.js .pl__card { opacity: 0; translate: 0 34px; }
.js .pl__card.on { opacity: 1; translate: 0 0; }
.pl__card { position: relative; background: var(--white); padding: 12px 12px 24px; box-shadow: 0 12px 34px rgba(42, 34, 28, .1); rotate: var(--r); transition: rotate .7s var(--ease), translate 1s var(--ease), opacity 1s var(--ease), box-shadow .7s; }
.pl__card:nth-child(1) { --r: -2.2deg; }
.pl__card:nth-child(2) { --r: 1.6deg; margin-top: 40px; }
.pl__card:nth-child(3) { --r: -1deg; margin-top: 12px; }
.pl__card:nth-child(4) { --r: 2.2deg; margin-top: 48px; }
.pl__card:hover { rotate: 0deg; translate: 0 -8px; box-shadow: 0 20px 44px rgba(42, 34, 28, .14); }
.pl__img { position: relative; aspect-ratio: 1; background: var(--bg-2); }
.pl__img img { position: relative; }
.pl__img img { width: 100%; height: 100%; object-fit: cover; }
/* each print arrives with its number big over the photo; the number then shrinks into the photo's corner */
.pl__big { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-family: var(--en); font-size: clamp(100px, 9vw, 160px); line-height: 1; color: var(--accent); pointer-events: none; }
.pl__big { color: var(--white); text-shadow: 0 2px 22px rgba(0, 0, 0, .3); }
.js .pl__big { transition: transform 1.3s var(--ease-in-out) .7s; }
.js .pl__card.on .pl__big { transform: translate(var(--nx, 0), var(--ny, 0)) scale(var(--ns, .3)); }
.pl__big { overflow: visible; }
.pl__t { display: flex; align-items: baseline; gap: 10px; margin: 16px 6px 6px; font-family: 'Yael Leibushor', var(--script); font-weight: 400; font-size: clamp(38px, 3.4vw, 50px); line-height: 1; color: var(--accent); }
.pl__card p { margin: 0 6px; font-size: 16px; color: var(--text); }

/* closing: an editorial spread – a wide photo with a light card laid over its edge */
.closing { position: relative; padding: var(--sec) var(--gut) calc(var(--sec) * .6); --mh: min(calc((100vw - var(--gut) * 2) * .8 / 1.5), 76svh); }   /* photo: 80% of the row wide, never taller than two thirds of the screen */
.closing__media { width: 80%; height: var(--mh); overflow: hidden; margin-inline-end: auto; }   /* photo on the right, the card on its empty left side */
.closing__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.closing__card { position: absolute; top: calc(var(--sec) + var(--mh) / 2); left: var(--gut); translate: 0 -50%; width: min(40%, 540px); background: var(--ink); color: var(--bg); padding: clamp(30px, 4vw, 64px); box-shadow: 0 24px 60px rgba(42, 34, 28, .18); }
/* dark card: light text, buttons turned inside out */
.closing__card .lead { color: rgba(244, 239, 232, .78); }
.closing__card .btn { border-color: rgba(244, 239, 232, .7); }
.closing__card .btn::before { background: var(--bg); }
.closing__card .btn:hover { color: var(--ink); }
.closing__card .btn--solid { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.closing__card .btn--solid::before { background: #d9a17f; }
.closing__card .closing__social > span { color: rgba(244, 239, 232, .6); }
.closing__card .closing__social a:hover { color: #d9a17f; }
.closing__card .h2 { font-size: clamp(32px, 3.6vw, 56px); margin-bottom: 16px; }
.closing__card .lead { margin-bottom: 30px; }

/* ---------- footer ---------- */
/* thin footer: rights, legal pages, credit */
.ftr { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 22px var(--gut) 22px calc(var(--gut) + 56px); background: var(--ink); color: rgba(255, 250, 244, .82); font-size: 14px; }
.ftr__copy { direction: ltr; }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ftr__legal a:hover, .ftr__credit a:hover { color: var(--white); }
.ftr__credit { display: inline-flex; align-items: center; gap: 5px; }
.ftr__credit a { border-bottom: 1px solid currentColor; }
.ftr__heart { width: 13px; height: 13px; fill: var(--white); }
/* follow links: in line with the buttons above them */
.closing__social { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; font-size: 17px; }
.closing__social > span { color: var(--muted); }
.closing__social a { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; transition: color .3s; }
.closing__social a:hover { color: var(--accent); }
.closing__social svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- page heads ---------- */
.page-head { padding: calc(var(--hdr) + clamp(60px, 9vw, 140px)) var(--gut) clamp(50px, 6vw, 90px); }
.page-head__text { margin-top: 28px; font-size: clamp(18px, 1.5vw, 22px); max-width: 46em; color: var(--text); }
.page-head--legal { padding-bottom: 30px; }

/* journeys archive: a contact sheet, one row per journey */
.cs { margin: 0 var(--gut) var(--sec); border-top: 1px solid var(--line); }
.cs__row { display: grid; grid-template-columns: minmax(240px, 1fr) 2.4fr; gap: clamp(30px, 4vw, 70px); align-items: center; padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); }
.cs__t { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 2.6vw, 42px); line-height: 1.1; }
.cs__en { font-family: var(--en); font-style: italic; color: var(--muted); font-size: 20px; direction: ltr; text-align: right; margin-top: 4px; }
.cs__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin-top: 22px; color: var(--text); }
.cs__row:hover .go { color: var(--accent); gap: 18px; }   /* the whole row is the link */
.cs__strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cs__strip span { aspect-ratio: 2 / 3; overflow: hidden; }
.cs__strip img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); opacity: .82; transition: transform 1.2s var(--ease), filter .8s, opacity .8s; }
.cs__strip span:nth-child(odd) img { transform: translateY(8px); }
.cs__row:hover .cs__strip img { filter: none; opacity: 1; transform: none; }

.strip { overflow: hidden; padding-bottom: clamp(80px, 10vw, 140px); }
.strip { direction: ltr; }
.strip__track { display: flex; gap: 12px; width: max-content; animation: marquee 120s linear infinite; }
.strip__track img { height: clamp(220px, 26vw, 380px); width: auto; margin-right: 0; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* ---------- category page ---------- */
/* ---------- journey page: title, short text, one price, one gallery ---------- */
.jp-head { display: grid; grid-template-columns: 1.5fr 1fr; column-gap: clamp(30px, 7vw, 140px); align-items: start; padding: calc(var(--hdr) + clamp(50px, 7vw, 110px)) var(--gut) clamp(50px, 6vw, 90px); }
.jp-head__en { font-family: var(--en); font-style: italic; font-size: clamp(20px, 2vw, 28px); color: var(--muted); margin: 10px 0 28px; direction: ltr; text-align: right; }
/* the price starts level with the text, beside it */
.jp-head__title { grid-column: 1; }
.jp-price { grid-column: 2; grid-row: 2; }
.jp-head__intro { grid-column: 1; grid-row: 2; font-size: clamp(18px, 1.45vw, 21px); color: var(--text); max-width: 40em; }
.jp-head__intro p + p { margin-top: 14px; }
.jp-price { border-top: 1px solid var(--line); }
.jp-pkg { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.jp-pkg__name { font-weight: 500; }
.jp-pkg__meta { color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 2px; }
.jp-pkg__price { font-family: var(--en); font-size: clamp(24px, 1.9vw, 30px); line-height: 1; white-space: nowrap; }
.jp-pkg__price small { font-family: var(--he); font-size: 15px; color: var(--text); }
.jp-price__note { color: var(--muted); font-size: 15px; margin-top: 14px; }
.jp-price .btn { margin-top: 26px; }

.jp-filter { position: sticky; top: var(--hdr); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; padding: 14px var(--gut); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.jp-filter button { position: relative; padding: 6px 0; font-size: 17px; color: var(--muted); transition: color .3s; }
.jp-filter button::after { content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .5s var(--ease); }
.jp-filter button:hover, .jp-filter button.is-on { color: var(--ink); }
.jp-filter button.is-on::after { transform: scaleX(1); }

/* every photo the same size; the photos come into focus as they appear */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1vw, 14px); padding: clamp(40px, 5vw, 70px) var(--gut) 0; }
/* the journeys before and after this one, as two quiet links */
.jp-nav { display: flex; justify-content: space-between; gap: 20px; padding: clamp(50px, 6vw, 90px) var(--gut) var(--sec); }
.go--prev svg { transform: scaleX(-1); }
.g-item { aspect-ratio: 2 / 3; margin: 0; }
.g-item--wide { grid-column: span 2; aspect-ratio: auto; }
.g-item[hidden] { display: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.js .g-item img { opacity: 0; filter: blur(14px) saturate(.5); transform: scale(1.12); transition: opacity .9s var(--d, 0s), filter 1.4s var(--ease) var(--d, 0s), transform 1.8s var(--ease) var(--d, 0s); }
.js .g-item.is-in img { opacity: 1; filter: none; transform: none; }
.js .g-item.is-in:hover img { transform: scale(1.035); transition-delay: 0s; }
@media (max-width: 1100px) { .gal { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .jp-head { grid-template-columns: 1fr; }
  .jp-head__intro, .jp-price { grid-column: 1; grid-row: auto; }
  .jp-price { margin-top: 36px; }
  .jp-filter { gap: 4px 18px; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .cs__row { grid-template-columns: 1fr; }
  .cs__strip { grid-template-columns: repeat(3, 1fr); }
  .cs__strip span:nth-child(n + 4) { display: none; }
}

.next { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 70vh; min-height: 420px; overflow: hidden; color: var(--white); text-align: center; }
.next__img { position: absolute; inset: 0; z-index: -1; }
.next__img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); transform: scale(1.06); transition: transform 1.6s var(--ease), filter 1s; }
.next:hover .next__img img { transform: scale(1); filter: brightness(.7); }
.next__label { font-family: var(--en); letter-spacing: .2em; font-size: 14px; }
.next__label { font-family: var(--he); letter-spacing: .1em; }
.next__title { font-weight: 700; font-size: clamp(50px, 9vw, 140px); line-height: 1.1; }

/* legal prose */
.prose { padding: 0 var(--gut) clamp(90px, 10vw, 150px); max-width: 860px; }
.prose h2 { font-weight: 500; font-size: 26px; margin: 46px 0 14px; }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-inline-start: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { border-bottom: 1px solid currentColor; }
.prose .muted { margin-top: 40px; font-size: 15px; }
/* desktop only: a photo held in place on the empty left side while the text scrolls */
.legal__img { display: none; }
@media (min-width: 1101px) {
  .legal { display: grid; grid-template-columns: minmax(0, 860px) 1fr; gap: clamp(40px, 5vw, 90px); padding: 0 0 clamp(60px, 6vw, 100px); padding-inline-end: var(--gut); }
  .legal__img { display: block; position: sticky; top: calc(var(--hdr) + 40px); align-self: start; margin-top: calc(var(--hdr) + 40px); }
  .legal__img img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - var(--hdr) - 80px); margin-inline-start: auto; }   /* whole photo, never cropped */
}

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(28, 22, 18, .96); display: grid; place-items: center; opacity: 0; transition: opacity .5s; }
.lightbox[hidden] { display: none; }   /* closed: out of the way of every click on the page */
.lightbox.on { opacity: 1; }
.lightbox figure { max-width: 88vw; max-height: 88vh; }
.lightbox img { max-width: 88vw; max-height: 88vh; width: auto; object-fit: contain; clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-in-out); }
.lightbox.on img.ready { clip-path: inset(0); }
.lightbox__close { position: absolute; top: 18px; left: 22px; font-size: 40px; font-weight: 300; color: var(--bg); line-height: 1; width: 48px; height: 48px; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 56px; height: 56px; color: var(--bg); }
.lightbox__nav svg { width: 30px; height: 30px; }
.lightbox__prev { right: 18px; transform: scaleX(-1); }
.lightbox__next { left: 18px; }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; font-family: var(--en); color: #b9a898; direction: ltr; }

/* ---------- cursor label ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 70; pointer-events: none; }
.cursor span {
  display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent); background: var(--bg);   /* solid, so it reads on dark photos too */
  opacity: 0; transform: scale(.4); transition: transform .5s var(--ease), opacity .4s;
}
.cursor span svg { width: 18px; height: 18px; fill: none; }
.cursor.on span { opacity: 1; transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- accessibility widget ---------- */
.a11y-btn { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.a11y-btn svg { width: 24px; height: 24px; fill: currentColor; }
/* phones: a WhatsApp button that is always at hand, in bottle green, breathing softly */
.wa-float { display: none; }
@media (max-width: 760px) {
  .wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1f4a3a; color: var(--white); box-shadow: 0 8px 22px rgba(31, 74, 58, .35); }
  .wa-float svg { width: 28px; height: 28px; fill: currentColor; position: relative; }
  .wa-float::before, .wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #1f4a3a; animation: waPulse 2.4s var(--ease) infinite; z-index: -1; }
  .wa-float::after { animation-delay: 1.2s; }
  body.menu-open .wa-float { display: none; }
  .ftr { padding-right: calc(var(--gut) + 64px); }
}
@keyframes waPulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.8); opacity: 0; } }
.a11y { position: fixed; left: 16px; bottom: 72px; z-index: 60; width: 220px; padding: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.a11y[hidden] { display: none; }
.a11y__h { font-weight: 500; margin-bottom: 6px; }
.a11y button { text-align: right; padding: 8px 10px; border-radius: 4px; }
.a11y button:hover, .a11y button[aria-pressed="true"] { background: var(--bg-2); }
.a11y a { padding: 8px 10px; text-decoration: underline; }
html.a11y-text { font-size: 120%; }
html.a11y-text body { font-size: 20px; }
html.a11y-contrast { --bg: #fff; --bg-2: #f1f1f1; --ink: #000; --muted: #222; --line: #000; --accent: #6b2e12; }
html.a11y-contrast .lead, html.a11y-contrast p { color: #000 !important; }
html.a11y-contrast .ftr, html.a11y-contrast .ftr a { color: #fff !important; }
html.a11y-links a { text-decoration: underline !important; }

/* ---------- reveal ---------- */
.js [data-reveal]:not([data-reveal="clip"]):not([data-reveal="lines"]) { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1 !important; transform: none !important; }
/* the clip sits on the image, so the observed wrapper keeps its real box */
.js [data-reveal="clip"] img { clip-path: inset(100% 0 0 0); transform: scale(1.2); transition: clip-path 1.3s var(--ease-in-out) var(--d, 0s), transform 1.8s var(--ease) var(--d, 0s); }
.js [data-reveal="clip"].is-in img { clip-path: inset(0); transform: none; }
.js .m-item.is-in:hover img { transform: scale(1.035); }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; }
.js [data-reveal="lines"] .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease-in-out); }
.js [data-reveal="lines"] .line:nth-child(2) > span { transition-delay: .1s; }
.js [data-reveal="lines"] .line:nth-child(3) > span { transition-delay: .2s; }
.js [data-reveal="lines"].is-in .line > span { transform: none; }

/* page transitions (cross-document, where supported) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .5s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vtIn .7s var(--ease) .1s both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-20px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(24px); } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav, .hdr__wa { display: none; }
  .burger { display: block; }
  .pkgs { grid-template-columns: 1fr 1fr; }
  .j-row a { grid-template-columns: 50px 1fr auto; }
  .j-row__price { grid-column: 2 / -1; text-align: right; }
}
/* short laptop screens: the journey cards drop their line of text so photo, title and link all fit */
@media (min-width: 761px) and (max-height: 820px) {
  .film { --fw: min(34vw, 460px, (100svh - var(--hdr) - 300px) * .8); }
  .fc__p { display: none; }
  .fc-end__t { font-size: 20px; }
}
/* tablet: 3 hero columns */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero__grid { grid-template-columns: repeat(3, 1fr); }
  .hero__col:nth-child(4) { display: none; }
  .hero__col:nth-child(3) { --top: -26%; }
  .hero__panel { width: min(78%, 680px); }
}
@media (max-width: 760px) {
  :root { --hdr: 68px; }
  .film { --fw: min(66vw, (100svh - var(--hdr) - 400px) * .8); }
  .film__head .sec-head__text { font-size: 16px; }
  .film__track { padding-left: var(--gut); }
  .film__pin { justify-content: flex-start; }   /* content from the top, so the free space is not doubled above and below */
  .process { padding-top: 0; }   /* phones: no empty card after the last one, so the film ends on the last journey and the link beside it */
  body { font-size: 17.5px; }
  .logo__mk, .hdr.is-solid .logo__mk { height: 40px; }
  .hero { --hg: 10px; }
  .hero__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__col:nth-child(n+3) { display: none; }
  .hero__col:nth-child(1) { --top: -4%; }
  .hero__col:nth-child(2) { --top: -22%; }
  .hero__panel { width: calc(100% - var(--hg) * 4); padding: 28px 20px; }
  .hero__name { font-size: 7vw; }
  .hero__panel .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .hero__scroll { display: none; }
  .about, .cat-hero, .cat-sec { grid-template-columns: 1fr; }
  .closing__media { width: 100%; height: auto; aspect-ratio: 3 / 4; }   /* phones: portrait, trimmed only from the empty sky at the top */
  .closing__media img { object-position: 50% 100%; }
  .closing__card { position: relative; top: 0; left: 0; translate: 0 -110px; width: 92%; margin-inline: auto; margin-bottom: -80px; }   /* rides higher on the photo; the negative margin keeps the gap below the same */
  .closing__social > span { width: 100%; }
  /* phones: title, then the photo, then the text */
  .about { row-gap: 0; }
  .about__text { display: contents; }
  .about__text > * { order: 2; }
  .about__text .h2 { order: 0; margin-bottom: 0; }
  .about__media { order: 1; width: 82%; margin-top: 34px; margin-bottom: 44px; }
  .cat-hero__media { order: -1; }
  .cat-hero { padding-top: calc(var(--hdr) + 16px); }
  .pkgs, .pkgs--2 { grid-template-columns: 1fr; }
  /* phones: the prints zigzag down the screen and the trail winds between them */
  .pl { grid-template-columns: 1fr; row-gap: 46px; }
  .pl__wrap { padding-bottom: 30px; }
  .pl__card { width: 74%; margin-top: 0 !important; padding: 10px 10px 18px; }
  .pl__card:nth-child(odd) { justify-self: start; }
  .pl__card:nth-child(even) { justify-self: end; }
  .masonry { columns: 2; }
  .j-row a { grid-template-columns: 1fr 96px; gap: 6px 16px; align-items: center; }
  .j-row__num, .j-row__en { display: none; }
  .j-row__title { font-size: 40px; grid-column: 1; }
  .j-row__price { grid-column: 1; grid-row: 2; }
  .j-row__img { display: block; grid-column: 2; grid-row: 1 / span 2; aspect-ratio: 3 / 4; overflow: hidden; }
  .j-row__img img { width: 100%; height: 100%; object-fit: cover; }
  .j-preview { display: none; }
  .btn { height: 50px; padding: 0 22px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- opening screen ---------- */
.ld { display: none; }
html.intro .ld {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--bg); color: var(--ink);
  transition: clip-path 1.1s var(--ease-in-out);
  animation: ldFailsafe 0s 9s forwards;   /* never stays up if the script fails */
}
html.intro body { overflow: hidden; }
html.intro-out .ld { clip-path: inset(0 0 100% 0); }
html.intro-out .ld__mk { transform: translateY(-40px); opacity: 0; transition: transform 1.1s var(--ease-in-out), opacity .8s .2s; }
@keyframes ldFailsafe { to { visibility: hidden; } }
.ld__mk { direction: ltr; width: min(78vw, 520px); height: auto; overflow: visible; }
.ld__c path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ld__sub { opacity: 0; }

/* reduced motion: everything visible, nothing moves */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .strip__track { animation: none; }
}
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
html.a11y-motion .strip__track { animation: none; }
