/* =========================================================================
   EVENT CASA — shared site stylesheet
   Design canvas: 1920px. Desktop sizes are written as  calc(N * var(--u))
   where N is the pixel value from the 1920 design (--u is set by site.js).
   ========================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-standard-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-standard-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Noto Serif Display";
  src: url("../fonts/noto-serif-display-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62.5% 100%; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --u: calc(100vw / 1920);            /* overwritten by JS with the exact px value */
  --cream: #EFEDE4;
  --ink: #42210B;
  --tan: #C6A786;
  --olive: #827A4D;
  --gold: #B8893F;

  --f-body: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --f-display: "Noto Serif Display", "Didot", Georgia, serif;
  --f-garamond: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --ink-deep: #2A0602;
  --ink-title: #471F05;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --header-h: calc(120 * var(--u));
}
@media (max-width: 1099px) {
  :root { --header-h: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--ink); color: var(--cream); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ---------- Content protection (see site.js) ---------- */
/* no long-press "Save image" sheet on iOS, no image dragging */
img, picture, canvas { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }.ec-shield {
  position: fixed; inset: 0; z-index: 2147483647;
  background: var(--cream);
  opacity: 0; visibility: hidden; pointer-events: none;
}
.is-shielded .ec-shield { opacity: 1; visibility: visible; }
/* printing gives a blank page */
@media print {
  body > * { display: none !important; }
  body::after { content: "© Event Casa. Printing of this site is not permitted."; display: block; padding: 40px; font: 16px Georgia, serif; }
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================================
   LOADER
   ========================================================================= */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  background: var(--cream);
  will-change: clip-path;
}
.js .loader { display: grid; }
.loader__inner { display: grid; justify-items: center; gap: 34px; }
.loader__mark {
  width: clamp(96px, calc(150 * var(--u)), 150px); height: auto; overflow: visible;
}
.loader__mark path {
  fill: var(--ink); fill-opacity: 0;
  stroke: var(--ink); stroke-width: .6; stroke-linecap: round; stroke-linejoin: round;
}
.loader__bar {
  position: relative; width: clamp(96px, calc(150 * var(--u)), 150px); height: 1px;
  background: rgba(66, 33, 11, .14); overflow: hidden;
}
.loader__bar span {
  position: absolute; inset: 0; background: var(--ink);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--cream);
  transition: transform .7s var(--ease-io), box-shadow .5s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(66, 33, 11, .08); }
.site-header__inner { position: relative; height: 100%; }

/* Desktop nav — each link sits at its exact x from the 1920 design */
.nav__item {
  position: absolute;
  top: calc(44.4 * var(--u));      /* caps centred on the header's midline */
  font-size: calc(24 * var(--u));
  line-height: 1.3333;          /* 32px box at 24px = design text box */
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__item--1 { left: calc(88.3 * var(--u)); }
.nav__item--2 { left: calc(468.3 * var(--u)); }
.nav__item--3 { left: calc(1147.8 * var(--u)); }
.nav__item--4 { left: calc(1316.0 * var(--u)); }
.nav__item--5 { left: calc(1603.0 * var(--u)); }

.nav__link { display: inline-block; }
.nav__link[aria-current="page"] { color: var(--tan); }

/* Text-roll hover */
.roll {
  position: relative; display: inline-block; overflow: hidden; vertical-align: top;
}
.roll > span { display: block; transition: transform .65s var(--ease-io); }
.roll::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 100%;
  color: var(--tan);
  transition: transform .65s var(--ease-io);
}
@media (hover: hover) {
  .nav__link:hover .roll > span,
  .nav__link:hover .roll::after { transform: translateY(-100%); }
}

/* Centre elephant — 62.5px tall mark, equal space above and below */
.brand {
  position: absolute;
  left: calc(929.4 * var(--u));
  top: calc(26.2 * var(--u));
  width: calc(72 * var(--u));
  color: var(--ink);
}
.brand__mark { width: 100%; height: auto; transform-origin: 50% 60%; transition: transform .8s var(--ease-out); }
@media (hover: hover) { .brand:hover .brand__mark { transform: rotate(-4deg) scale(1.04); } }

/* Burger (mobile/tablet) */
.burger { display: none; }

@media (max-width: 1099px) {
  .nav { display: none; }
  .brand { left: 50%; top: 50%; width: 42px; transform: translate(-50%, -50%); }
  .burger {
    position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    display: grid; align-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 0 8px;
  }
  .burger span {
    display: block; height: 1px; background: var(--ink);
    transition: transform .6s var(--ease-io);
  }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }
}

/* Mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: grid; align-content: center; justify-items: center; gap: 40px;
  padding: calc(var(--header-h) + 24px) 24px 48px;
  background: var(--cream);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}
.menu__nav { display: grid; justify-items: center; gap: 6px; text-align: center; }
.menu__link {
  display: block; overflow: hidden;
  /* same face as the page titles (.ptitle__text) */
  font-family: var(--f-body); font-weight: 600;
  /* longest line "Bringing the Magic to You" ≈ 13em wide → 6.4vw fits 360px with the 24px gutters */
  font-size: clamp(18px, 6.4vw, 44px); line-height: 1.5;
  text-transform: uppercase; letter-spacing: .01em; white-space: nowrap;
  color: var(--ink-title);
}
.menu__link span { display: block; }
.menu__link[aria-current="page"] { color: var(--tan); }
.menu__mark { width: 44px; color: var(--tan); }
@media (min-width: 1100px) { .menu { display: none; } }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  /* same proportions as the painting (2880×1861, i.e. 1920×1241) so the whole
     illustration shows, nothing cropped top or bottom */
  aspect-ratio: 2880 / 1861;
  overflow: hidden;
  background: #9fa3a6;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; transform-origin: 50% 100%; will-change: transform; }
.hero__frame { position: absolute; inset: 0; will-change: transform; }
.hero__img,
.hero__brush {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* desktop box matches the painting, so cover crops nothing (mobile crops to centre) */
  object-fit: cover; object-position: 50% 50%;
}
.hero__brush {
  opacity: 0; pointer-events: none;
  transition: opacity .45s ease;
}
.hero.is-brushing .hero__brush { opacity: 1; }
.hero__brush.is-overlay { mix-blend-mode: soft-light; }

/* Wordmark — design placement x 626.3, 674 wide; kept on the same spot of the painting
   as before (y 355.2 in the old 994 crop = y 416.9 of the full 1241-tall painting) */
.hero__wordmark {
  position: absolute; z-index: 2;
  left: 32.620%; top: 33.601%; width: 35.104%;
  margin: 0; pointer-events: none;
}
.hero__wordmark svg { width: 100%; height: auto; overflow: visible; }

/* Scroll cue — design triangle at x 947, 28×13, 101.5px above the bottom of the hero.
   The taller hero can run past the fold, so it sits 101.5px above whichever comes first:
   the hero bottom or the bottom of the screen. */
.hero__cue {
  position: absolute; z-index: 3;
  left: 49.323%; width: 1.4583%;
  top: calc(min(100%, 100svh - var(--header-h)) - 101.5 * var(--u));
  color: var(--cream);
}
.hero__cue::before { content: ""; position: absolute; inset: -18px; }   /* larger hit area */
.hero__cue svg { width: 100%; height: auto; }

/* Brush cursor (fine pointers only, enabled by JS) */
.hero__cursor {
  position: absolute; left: 0; top: 0; z-index: 4;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, .85); border-radius: 50%;
  pointer-events: none; opacity: 0;
  transition: opacity .35s ease, width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out);
}
.hero__cursor::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%;
  background: rgba(255, 255, 255, .95);
}
.hero.has-brush, .hero.has-brush a { cursor: none; }
.hero.has-brush.is-inside .hero__cursor { opacity: 1; }
.hero.is-on-cue .hero__cursor { width: 58px; height: 58px; margin: -29px 0 0 -29px; }

/* Portrait tablets & phones: give the painting real height and crop to the centre */
@media (max-width: 767px), (max-width: 1099px) and (orientation: portrait) {
  .hero {
    aspect-ratio: auto;
    height: min(calc(100svh - var(--header-h)), 128vw);
    min-height: 64.62vw;          /* never shorter than the full painting */
  }
  .hero__img, .hero__brush { object-position: 50% 50%; }
  /* sits in the open sky between the pillars, below the dove */
  .hero__wordmark { left: 15%; width: 70%; top: 38%; }
  .hero__cue { left: 50%; top: auto; bottom: 7%; width: 22px; margin-left: -11px; }
}


/* =========================================================================
   THE STORYTELLERS
   All desktop values are px on the 1920 design (× var(--u)).
   ========================================================================= */
.story {
  position: relative;
  padding: calc(137 * var(--u)) 0 calc(61.5 * var(--u));
  color: var(--ink-deep);
  overflow: hidden;
}

/* ---- Title block ---- */
.story__head { position: relative; height: calc(161 * var(--u)); }
.story__orn {
  position: absolute; top: calc(-2.4 * var(--u));
  width: calc(68.6 * var(--u)); height: auto;
}
.story__orn--l { left: calc(415.6 * var(--u)); }
.story__orn--r { left: calc(1435.2 * var(--u)); }

.story__title { margin: 0; font-weight: inherit; }
.story__title-main {
  position: absolute; left: calc(-6 * var(--u)); right: 0; top: calc(4 * var(--u));
  font-family: var(--f-body);
  font-weight: 600;
  font-size: calc(102.8 * var(--u));
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-title);
  white-space: nowrap;
}
/* Bickham script artwork (SVG) — exact design position: x 758, y 199 from the section top */
.story__title-script {
  position: absolute; z-index: 1;
  left: calc(758 * var(--u)); top: calc(62 * var(--u));
  width: calc(409.8 * var(--u));
  color: var(--ink-title);
  line-height: 0; pointer-events: none;
}
.story__title-script svg,
.ptitle__script svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---- Marquee ---- */
.marquee {
  position: relative;
  margin-top: calc(98 * var(--u));
  height: calc(645 * var(--u));
  overflow: hidden;
}
.marquee__track {
  position: absolute; left: 0; top: 0; height: 100%;
  display: flex; gap: calc(42.5 * var(--u));
  will-change: transform;
}
.marquee__card {
  position: relative; flex: 0 0 auto; margin: 0;
  width: calc(868 * var(--u)); height: 100%;
  border-radius: calc(46 * var(--u));
  overflow: hidden;
  background: var(--tan);
  transform: translateZ(0);
}
.marquee__media { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.marquee__media img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .marquee__card:hover .marquee__media { transform: scale(1.04); } }

/* ---- Two columns ---- */
.story__cols {
  display: grid;
  grid-template-columns: calc(610 * var(--u)) calc(624 * var(--u));
  column-gap: calc(101 * var(--u));
  padding-left: calc(300 * var(--u));
  margin-top: calc(54 * var(--u));
}
.story__col,
.story__statement p {
  margin: 0;
  font-family: var(--f-garamond);
  font-weight: 500;
  font-size: calc(28 * var(--u));
  line-height: 1.2;
  hyphens: manual; -webkit-hyphens: manual;
  font-kerning: normal;
}
.story__col--l { text-align: justify; text-align-last: left; }
.story__col--r { text-align: left; margin-top: calc(4 * var(--u)); }

/* ---- Statement ---- */
.story__statement {
  width: calc(1004 * var(--u));
  margin: calc(48 * var(--u)) auto 0;
  text-align: center;
}
.story__statement p + p { margin-top: calc(33.6 * var(--u)); }
.story__statement .story__lead {
  font-style: italic;
  font-size: calc(35 * var(--u));
  line-height: 1.2;
  max-width: calc(940 * var(--u));
  margin-left: auto; margin-right: auto;
}
.story__statement .story__lead + .story__lead { margin-top: calc(42 * var(--u)); }
.story__statement .story__lead + p:not(.story__lead) { margin-top: calc(41.6 * var(--u)); }
.story__statement .story__quote { margin-top: calc(34 * var(--u)); }

.story__flourish {
  display: block;
  width: calc(151.6 * var(--u)); height: auto;
  margin: calc(86 * var(--u)) auto 0;
}

/* Wipe reveal helper (driven by --r from 0 → 1) */
.is-wiping {
  -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--r, 1) * 135% - 35%), transparent calc(var(--r, 1) * 135%));
          mask-image: linear-gradient(180deg, #000 calc(var(--r, 1) * 135% - 35%), transparent calc(var(--r, 1) * 135%));
}

/* ---- Tablet & mobile ---- */
@media (max-width: 1099px) {
  .story { padding: 72px 0 56px; }
  .story__head {
    height: auto; display: grid; grid-template-columns: auto auto auto;
    justify-content: center; align-items: start; column-gap: 10px;
    padding: 0 16px;
  }
  .story__orn { position: static; width: clamp(24px, 5.6vw, 52px); }
  /* script keeps its design relationship to the title, scaled with the title size */
  .story__title { --tfs: clamp(30px, 8.1vw, 78px); position: relative; padding-bottom: calc(56 * var(--tfs) / 102.8); }
  .story__title-main { position: relative; display: block; font-size: var(--tfs); padding-top: .12em; }
  .story__title-script {
    left: calc(50% - 199 * var(--tfs) / 102.8);
    top: calc(.12 * var(--tfs) + 58 * var(--tfs) / 102.8);
    width: calc(409.8 * var(--tfs) / 102.8);
  }

  .marquee { margin-top: 40px; height: calc(min(74vw, 560px) * .743); }
  .marquee__track { gap: 14px; }
  .marquee__card { width: min(74vw, 560px); border-radius: clamp(18px, 4vw, 34px); }

  .story__cols {
    grid-template-columns: 1fr; row-gap: 1.2em;
    max-width: 640px; margin: 40px auto 0; padding: 0 24px;
  }
  .story__col, .story__statement p { font-size: 19px; line-height: 1.42; }
  .story__col--l { text-align: left; }
  .story__col--r { margin-top: 0; }
  .story__statement { width: auto; max-width: 640px; margin-top: 48px; padding: 0 24px; }
  .story__statement p + p { margin-top: 1.2em; }
  .story__statement .story__lead { font-size: 23px; line-height: 1.3; max-width: none; }
  .br-d { display: none; }
  .story__statement .story__lead + .story__lead { margin-top: 1em; }
  .story__statement .story__quote { margin-top: 1.4em; }
  .story__statement .story__lead + p:not(.story__lead) { margin-top: 1.4em; }
  .story__flourish { width: 104px; margin-top: 52px; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .story__col, .story__statement p { font-size: 21px; }
  .story__statement .story__lead { font-size: 26px; }
}

/* =========================================================================
   PAGE TITLE (shared by inner pages)
   ========================================================================= */
/* Reusable page title: ornament · TITLE · ornament + script ----------
   Ornaments hang off the title's own edges, so any title length works. */
.ptitle {
  position: relative;
  height: calc(337 * var(--u));
  padding-top: calc(116 * var(--u));
  text-align: center;
}
.ptitle__h { margin: 0; font-weight: inherit; }
.ptitle__main {
  position: relative; display: inline-block;
  margin-left: calc(2 * var(--u));
}
.ptitle__text {
  display: block;
  font-family: var(--f-body); font-weight: 600;
  font-size: var(--tfs); line-height: 1;
  letter-spacing: calc(.85 * var(--u));
  text-transform: uppercase; white-space: nowrap;
  color: var(--ink-title);
}
.ptitle {
  --orn-top: -9.4; --gap-l: 23.6; --gap-r: 31.2;      /* per-title tuning (design px) */
  --tfs: calc(102.8 * var(--u));                      /* title size; the script scales with it */
}
.ptitle__orn {
  position: absolute; top: calc(var(--orn-top) * var(--u));
  width: calc(68.6 * var(--u)); height: auto;
}
.ptitle__orn--l { right: calc(100% + var(--gap-l) * var(--u)); }
.ptitle__orn--r { left: calc(100% + var(--gap-r) * var(--u)); }
/* Bickham script artwork (SVG). Placement comes from the design, as an offset from the
   title's centre/top in design px (--dx, --dy) and its width (--sw), scaled by the title size. */
.ptitle__script {
  position: absolute; z-index: 1;
  left: calc(50% + var(--dx) * var(--tfs) / 102.8);
  top: calc(var(--dy) * var(--tfs) / 102.8);
  width: calc(var(--sw) * var(--tfs) / 102.8);
  color: var(--ink-title);
  line-height: 0; pointer-events: none;
}

@media (max-width: 1099px) {
  .ptitle {
    --tfs: clamp(27px, 7.3vw, 76px);
    height: auto; padding: 64px 16px calc(var(--sbm, 76) * var(--tfs) / 102.8);
  }
  .ptitle__main { margin-left: 0; }
  .ptitle__text { padding-top: .12em; }
  .ptitle__orn { width: clamp(20px, 5vw, 50px); top: 0; }
  .ptitle__orn--l { right: calc(100% + 8px); }
  .ptitle__orn--r { left: calc(100% + 8px); }
  .ptitle__script { top: calc(.12 * var(--tfs) + var(--dy) * var(--tfs) / 102.8); }
}

/* =========================================================================
   INSTAGRAM STRIP
   ========================================================================= */
.insta { padding: calc(10 * var(--u)) 0 calc(35.5 * var(--u)); }
.insta__viewport { position: relative; height: calc(409.5 * var(--u)); overflow: hidden; }
.insta__track {
  position: absolute; left: 0; top: 0; height: 100%;
  display: flex; gap: calc(10.5 * var(--u));
  will-change: transform;
}
.insta__tile {
  position: relative; flex: 0 0 auto; display: block;
  width: calc(407.5 * var(--u)); height: 100%;
  overflow: hidden; background: var(--tan);
}
.insta__tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter .8s ease;
}
.insta__glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(66, 33, 11, .28);
  opacity: 0; transition: opacity .6s ease;
}
.insta__glyph svg {
  width: clamp(28px, calc(44 * var(--u)), 44px);
  fill: none; stroke: var(--cream); stroke-width: 1.3;
  transform: scale(.85); transition: transform .8s var(--ease-out);
}
@media (hover: hover) {
  .insta__tile:hover img { transform: scale(1.06); }
  .insta__tile:hover .insta__glyph { opacity: 1; }
  .insta__tile:hover .insta__glyph svg { transform: scale(1); }
}

/* =========================================================================
   FOOTER — positions are px on the 1920 design, measured from the footer top
   ========================================================================= */
.site-footer {
  position: relative;
  background: #827A4C;
  color: var(--ink);
}
.site-footer__inner { position: relative; height: calc(612 * var(--u)); }

.site-footer__logo {
  position: absolute; left: calc(168.1 * var(--u)); top: calc(98.9 * var(--u));
  width: calc(591.11 * var(--u));
}
.site-footer__logo svg { width: 100%; height: auto; fill: var(--ink); overflow: visible; }

.social { position: absolute; left: calc(1509 * var(--u)); top: calc(110.6 * var(--u)); display: flex; gap: calc(10.5 * var(--u)); }
.social__link {
  position: relative; display: grid; place-items: center;
  width: calc(74 * var(--u)); height: calc(74 * var(--u));
  color: var(--ink);
}
.social__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.social__ring circle {
  fill: transparent; stroke: currentColor; stroke-width: 1.5;
  transition: fill .5s var(--ease-out);
}
.social__icon {
  position: relative; height: auto;
  fill: none; stroke: currentColor; stroke-linejoin: round; stroke-linecap: round;
  stroke-width: 1.35px; vector-effect: non-scaling-stroke;
  transition: color .4s ease, transform .6s var(--ease-out);
}
.social__icon * { vector-effect: non-scaling-stroke; }
.social__icon--fb { width: calc(34 * var(--u)); }
.social__icon--li { width: calc(26 * var(--u)); }
.social__icon--ig { width: calc(31 * var(--u)); }
@media (hover: hover) {
  .social__link:hover .social__ring circle { fill: var(--ink); }
  .social__link:hover .social__icon { color: #827A4C; stroke: #827A4C; transform: scale(1.06); }
}

.footer-nav__item {
  position: absolute; top: calc(366.8 * var(--u));
  font-family: var(--f-garamond); font-weight: 500;
  font-size: max(14px, calc(24 * var(--u))); line-height: 1.2;
  text-transform: uppercase; white-space: nowrap;
}
.footer-nav__item--1 { left: calc(133.9 * var(--u)); }
.footer-nav__item--2 { left: calc(470.4 * var(--u)); }
.footer-nav__item--3 { left: calc(888.4 * var(--u)); }
.footer-nav__item--4 { left: calc(1282.4 * var(--u)); }
.footer-nav__item--5 { left: calc(1568.4 * var(--u)); }
.site-footer .roll::after { color: var(--cream); }
@media (hover: hover) {
  .footer-nav a:hover .roll > span,
  .footer-nav a:hover .roll::after { transform: translateY(-100%); }
}

.site-footer__rule {
  position: absolute; left: calc(175 * var(--u)); top: calc(438 * var(--u));
  width: calc(1572 * var(--u)); height: max(1px, calc(2 * var(--u)));
  background: var(--ink); transform-origin: 0 50%;
}

.site-footer__copy,
.site-footer__legal li,
.site-footer__legal a {
  font-family: var(--f-garamond); font-weight: 500;
  font-size: max(11px, calc(14 * var(--u))); line-height: 1.2;
  text-transform: uppercase; white-space: nowrap;
}
.site-footer__copy { position: absolute; left: calc(187.5 * var(--u)); top: calc(514 * var(--u)); margin: 0; }
.site-footer__legal li { position: absolute; top: calc(514 * var(--u)); }
.site-footer__legal-1 { left: calc(1465.6 * var(--u)); }
.site-footer__legal-2 { left: calc(1629.6 * var(--u)); }
.site-footer__legal a { display: inline-block; vertical-align: top; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
@media (hover: hover) { .site-footer__legal a:hover { background-size: 100% 1px; } }

/* ---- Tablet & mobile ---- */
@media (max-width: 1099px) {
  .insta { padding: 10px 0 32px; }
  .insta__viewport { height: min(62vw, 340px); }
  .insta__track { gap: 8px; }
  .insta__tile { width: min(62vw, 340px); }

  .site-footer__inner {
    height: auto; display: flex; flex-direction: column; align-items: center;
    padding: 64px 24px 36px; text-align: center;
  }
  .site-footer__inner > *, .footer-nav__item, .site-footer__legal li { position: static; }
  .site-footer__logo { width: min(78vw, 420px); }
  .social { margin-top: 36px; gap: 12px; }
  .social__link { width: 54px; height: 54px; }
  .social__icon--fb { width: 25px; } .social__icon--li { width: 19px; } .social__icon--ig { width: 22px; }
  .footer-nav { margin-top: 40px; }
  .footer-nav ul { display: grid; gap: 14px; justify-items: center; }
  .footer-nav__item { font-size: 19px; }
  .site-footer__rule { width: 100%; height: 1px; margin-top: 40px; }
  .site-footer__copy { margin-top: 28px; font-size: 13px; }
  .site-footer__legal li { font-size: 13px; }
  .site-footer__legal { display: flex; gap: 28px; margin-top: 12px; }
  .site-footer__legal a { font-size: 13px; }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
