:root {
  --se-header-h: clamp(78px, 7.2vw, 112px);
  --se-plum: #421a3c;
  --se-copper: #bd8152;
  --se-paper: #eadfcd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #160e19; }
html.se-beret-root,
html.se-beret-root body.se-beret-page { overflow: visible !important; }
body.se-beret-page {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  color: #392334;
  background: var(--se-paper);
  font-family: Georgia, "Times New Roman", serif;
}
html.se-beret-root body.se-beret-page.se-menu-open { overflow: hidden !important; }
.se-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.se-beret-header {
  position: fixed;
  z-index: 2000;
  inset: 0 0 auto;
  height: var(--se-header-h);
  background: #160e19 url("/v25/semper-eadem-header-purple-copper-4096x512.png") center / cover no-repeat;
  border-bottom: 1px solid rgba(184, 126, 74, .52);
  box-shadow: 0 8px 28px rgba(16, 6, 17, .22), inset 0 -1px rgba(226, 169, 99, .14);
  transition: transform .58s cubic-bezier(.22,.74,.18,1), opacity .42s ease;
}
.se-beret-chapter-ready .se-beret-header { opacity: 0; transform: translateY(-108%); }
.se-beret-home {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(29px, 2.75vw, 43px);
  height: clamp(29px, 2.75vw, 43px);
  transform: translate(-50%, -50%);
}
.se-beret-home img { width: 100%; height: 100%; object-fit: contain; }

.se-beret-menu-button {
  position: fixed;
  z-index: 2102;
  top: calc((var(--se-header-h) - 58px) / 2);
  left: clamp(18px, 2.6vw, 48px);
  width: 58px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(205, 142, 92, .88);
  border-radius: 50%;
  background: #1c101d url("/v25/semper-eadem-header-purple-copper-4096x512.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 2px rgba(111, 57, 37, .42), 0 8px 19px rgba(20, 7, 19, .25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(.78);
  transition: opacity .34s ease, visibility 0s linear .34s, transform .48s cubic-bezier(.2,.78,.2,1), border-color .25s ease, box-shadow .25s ease;
}
.se-beret-chapter-ready .se-beret-menu-button,
.se-menu-open .se-beret-menu-button {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}
.se-beret-menu-button::before {
  content: "";
  position: absolute;
  inset: 16%;
  background: url("/v25/semper-eadem-unicorn-purple-copper-transparent.png") center / contain no-repeat;
  filter: brightness(1.13) saturate(.9);
}
.se-beret-menu-button:hover { transform: translateY(0) scale(1.045); border-color: #dc9a66; }
.se-beret-menu-button:focus-visible { outline: 2px solid #d9b17a; outline-offset: 4px; }

.se-beret-menu {
  position: fixed;
  z-index: 2101;
  top: calc((var(--se-header-h) - 58px) / 2);
  left: clamp(18px, 2.6vw, 48px);
  width: min(510px, calc(100vw - clamp(36px, 5.2vw, 96px)));
  max-height: calc(100svh - 36px);
  padding: 84px 24px 24px;
  overflow: auto;
  color: #ead7b6;
  background-color: #170e19;
  background-image: linear-gradient(118deg, transparent 8%, rgba(182, 140, 85, .13) 38%, transparent 64%), url("/v25/assets/semper-menu-purple-metal-portrait-v1.png");
  background-position: center;
  background-size: 100% 100%, cover;
  border: 1px solid rgba(200, 161, 102, .58);
  border-radius: 29px;
  box-shadow: 24px 28px 82px rgba(9, 3, 8, .48), inset 0 0 0 1px rgba(238, 206, 150, .07);
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 91% 88% 0 round 29px);
  transform: scale(.12);
  transform-origin: 29px 29px;
  transition: opacity .2s ease .2s, transform .58s cubic-bezier(.16,.78,.12,1), clip-path .58s cubic-bezier(.16,.78,.12,1), visibility 0s linear .58s;
}
.se-menu-open .se-beret-menu {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 0 0 0 round 29px);
  transform: scale(1);
  transition-delay: 0s;
}
.se-beret-menu nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.se-beret-menu a {
  display: grid;
  align-content: center;
  min-height: 52px;
  padding: 14px 15px;
  color: #d9c6a5;
  background: rgba(20, 10, 21, .42);
  border: 1px solid rgba(200, 161, 102, .2);
  border-radius: 13px;
  font: 400 clamp(13px, 1vw, 17px)/1.18 Georgia, serif;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.se-beret-menu a:hover,
.se-beret-menu a:focus-visible,
.se-beret-menu a[aria-current="page"] { color: #f1cf92; border-color: rgba(213, 164, 96, .66); background: rgba(68, 35, 55, .68); outline: none; }
.se-beret-menu .se-beret-menu-primary {
  grid-column: 1 / -1;
  min-height: 116px;
  margin-bottom: 8px;
  padding: 22px 20px;
  color: #e6bf7c;
  background: linear-gradient(120deg, rgba(110, 58, 80, .54), rgba(30, 14, 28, .62));
  font-size: clamp(34px, 4vw, 54px);
  line-height: .9;
  letter-spacing: -.04em;
}
.se-beret-menu-primary small { display: block; margin-bottom: 12px; color: #cda96b; font: 700 9px/1 Arial, sans-serif; letter-spacing: .3em; }
.se-beret-menu-close { position: absolute; top: 31px; right: 27px; padding: 8px; cursor: pointer; color: #d0a866; background: none; border: 0; font: 700 10px/1 Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; }

.se-beret-master {
  position: relative;
  padding-top: var(--se-header-h);
  overflow: hidden;
  background: var(--se-paper);
}
.se-beret-master-crop {
  position: relative;
  width: 100%;
  aspect-ratio: 864 / 1556;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  background: #e9ddca;
  box-shadow: none;
}
.se-beret-master-art {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto 0;
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}
.se-beret-master-title {
  position: absolute;
  z-index: 4;
  top: 6.05%;
  left: 50%;
  width: auto;
  padding: 0;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.se-beret-master-title span {
  display: block;
  color: #a7753e;
  text-shadow: 0 1px rgba(255,255,255,.54);
  font: 700 clamp(12px, 1.05vw, 18px)/1 Arial, sans-serif;
  letter-spacing: .31em;
  white-space: nowrap;
}
.se-beret-master-title strong {
  display: none;
}
.se-colour-controller {
  --selected-colour: #6d315f;
  --picker-x: 79%;
  position: absolute;
  z-index: 5;
  top: 61.8%;
  left: 12.25%;
  display: grid;
  justify-items: center;
  width: 19.25%;
  min-height: 9.6%;
  padding: 1.25% 1.2% 1.05%;
  color: var(--selected-colour);
  text-align: center;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  background: rgba(235, 222, 202, .98);
  border: 1px solid rgba(126, 83, 57, .66);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.2), 0 4px 10px rgba(72,46,44,.08);
  outline: none;
}
.se-colour-controller::before,
.se-colour-controller::after {
  content: "";
  position: absolute;
  top: 5%;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(126, 83, 57, .7);
  border-radius: 50%;
}
.se-colour-controller::before { left: 5%; }
.se-colour-controller::after { right: 5%; }
.se-colour-controller:focus-visible { box-shadow: inset 0 0 0 4px rgba(255,255,255,.2), 0 0 0 3px rgba(174,120,62,.36); }
.se-colour-controller > strong {
  display: block;
  font: 400 clamp(25px, 3.2vw, 48px)/.9 Didot, "Bodoni 72", Georgia, serif;
  letter-spacing: .03em;
}
.se-colour-controller > span {
  display: block;
  margin-top: 3%;
  white-space: nowrap;
  font: 700 clamp(6px, .62vw, 10px)/1 Arial, sans-serif;
  letter-spacing: .12em;
}
.se-colour-watercolour {
  position: relative;
  display: block;
  width: 88%;
  height: clamp(8px, 1.1vw, 17px);
  margin-top: 10%;
  overflow: visible;
  border-radius: 48% 44% 53% 46%;
  background:
    linear-gradient(90deg, #25141f, #62234a 10%, #a03561 19%, #d24752 28%, #de8355 37%, #d7ad36 46%, #91aa43 55%, #277453 64%, #247b83 72%, #3f62bd 81%, #74519c 89%, #c4518d 96%, #efe4d8);
  filter: saturate(.86);
  box-shadow: 0 3px 7px rgba(76,45,55,.12);
}
.se-colour-watercolour::before,
.se-colour-watercolour::after {
  content: "";
  position: absolute;
  inset: -25% -2%;
  opacity: .42;
  background: repeating-radial-gradient(ellipse at 12% 50%, transparent 0 8%, rgba(255,255,255,.48) 9% 10%, transparent 11% 16%);
  mix-blend-mode: screen;
}
.se-colour-watercolour::after { opacity: .3; filter: blur(2px); transform: translateY(2px); }
.se-colour-watercolour b {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: var(--picker-x);
  width: clamp(13px, 1.25vw, 20px);
  aspect-ratio: 1;
  border: 2px solid #f4e9da;
  border-radius: 50%;
  background: var(--selected-colour);
  box-shadow: 0 2px 7px rgba(45,24,38,.4), inset 0 0 0 1px rgba(41,22,34,.35);
  transform: translate(-50%, -50%);
}

.se-master-meadow {
  position: absolute;
  z-index: 3;
  inset: 72.55% 0 0;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}
.se-lamb-sequence,
.se-lamb-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.se-lamb-sequence {
  z-index: 1;
  background: url("/lamb-run-01-v1.jpg") center / cover no-repeat;
  opacity: var(--lamb-sequence-opacity, 1);
  transition: opacity .16s linear;
}
.se-lamb-frame {
  z-index: 1;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity .09s linear;
}
.se-lamb-frame:first-child { opacity: 1; }
.se-master-meadow::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: none;
}
.se-partnerships-cta {
  position: absolute;
  z-index: 5;
  right: 4.8%;
  bottom: 8%;
  display: grid;
  width: min(32%, 380px);
  min-height: clamp(132px, 17vw, 205px);
  align-content: center;
  padding: clamp(18px, 2.6vw, 42px);
  color: #f5e7cf;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(43, 23, 39, .22), rgba(69, 37, 59, .38));
  border: 1px solid rgba(231, 195, 145, .72);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.04), 0 24px 52px rgba(28, 14, 24, .2);
  -webkit-backdrop-filter: blur(14px) saturate(.85);
  backdrop-filter: blur(14px) saturate(.85);
  transition: color .35s ease, background .35s ease, transform .35s ease, box-shadow .35s ease;
}
.se-partnerships-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #4c1f43; transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.18,.76,.22,1); }
.se-partnerships-cta:hover::after,
.se-partnerships-cta:focus-visible::after { transform: scaleX(1); }
.se-partnerships-cta:hover,
.se-partnerships-cta:focus-visible { color: #f4d59c; transform: translateY(-5px); outline: none; box-shadow: inset 0 0 0 5px rgba(255,255,255,.05), 0 28px 60px rgba(28,14,24,.3); }
.se-partnerships-cta small { font: 700 clamp(7px, .58vw, 10px)/1.3 Arial, sans-serif; letter-spacing: .2em; }
.se-partnerships-cta strong { margin-top: clamp(12px, 1.7vw, 24px); font: 400 clamp(25px, 3vw, 50px)/.92 Didot, Georgia, serif; }
.se-partnerships-cta span { margin-top: clamp(14px, 1.8vw, 25px); font: 700 clamp(7px, .62vw, 11px)/1 Arial, sans-serif; letter-spacing: .2em; }

body.se-beret-page footer.se-metal-footer { margin: 0 !important; }

@media (max-width: 620px) {
  :root { --se-header-h: 78px; }
  .se-beret-menu-button { top: 10px; left: 12px; }
  .se-beret-menu { top: 10px; left: 12px; width: calc(100vw - 24px); padding: 80px 18px 18px; }
  .se-beret-menu nav { grid-template-columns: 1fr; }
  .se-beret-menu .se-beret-menu-primary { grid-column: 1; }
  .se-beret-master-title { top: 6.05%; width: auto; }
  .se-beret-master-title span { font-size: 8px; letter-spacing: .22em; }
  .se-colour-controller { padding-top: 1.4%; }
  .se-colour-controller > strong { font-size: clamp(13px, 5.3vw, 24px); }
  .se-colour-controller > span { font-size: 4px; }
  .se-colour-watercolour { height: 5px; margin-top: 7%; }
  .se-colour-watercolour b { width: 9px; border-width: 1px; }
  .se-partnerships-cta { right: 3%; bottom: 5%; width: 42%; min-height: 86px; padding: 10px; }
  .se-partnerships-cta strong { margin-top: 7px; font-size: clamp(16px, 5vw, 28px); }
  .se-partnerships-cta span { margin-top: 8px; font-size: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .se-beret-header,
  .se-beret-menu,
  .se-beret-menu-button,
  .se-partnerships-cta,
  .se-partnerships-cta::after { transition-duration: .01ms !important; }
}
