/* ==========================================================================
   SIGNATURE SECTIONS — framed hero · word collage · rotating showcase
   Geometry uses a design unit: 1u = 1/1440 of the screen (capped by height)
   on desktop and 1/390 on phones, so every layout scales as one picture.
   Motion lives in assets/js/showcase.js.
   ========================================================================== */
.fx {
    --u: min(calc(100vw / 1440), calc(100vh / 956));
    --u: min(calc(100vw / 1440), calc(100svh / 956));
    --uw: calc(100vw / 1440);
    --fx-ink: var(--ink, #0e0d0c);
    --fx-muted: var(--muted, #6d675f);
    --fx-pill: #1c1712;
    position: relative;
    padding: 0 0 calc(16 * var(--u));
    color: var(--fx-ink);
}
.fx-font-archivo { --fx-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; }
.fx-font-site { --fx-font: var(--font-head); }
.fx, .fx .fx-pill, .fx .fxh-title, .fx .fxm-title { font-family: var(--fx-font); }
.fx-probe { position: absolute; left: 0; top: 0; width: calc(100 * var(--u)); height: 0; visibility: hidden; pointer-events: none; }
.fx-panel { position: relative; margin: 0 calc(16 * var(--u)); border-radius: calc(36 * var(--u)); overflow: hidden; isolation: isolate; }
.fx .visually-hidden { position: absolute !important; }

/* letters */
.fx .ch, .fx .sp, .fx .gap { display: inline-block; }
.fx .sp { width: .28em; }
.fx .gap { width: .45em; }
.fx-l { display: block; overflow: hidden; white-space: nowrap; padding: .02em 0; margin: -.02em 0; }
.st { -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.c-v50 { -webkit-mask-image: linear-gradient(90deg, #000 calc(50% - .034em), transparent 0, transparent calc(50% + .034em), #000 0); mask-image: linear-gradient(90deg, #000 calc(50% - .034em), transparent 0, transparent calc(50% + .034em), #000 0); }
.c-v52 { -webkit-mask-image: linear-gradient(90deg, #000 calc(52% - .034em), transparent 0, transparent calc(52% + .034em), #000 0); mask-image: linear-gradient(90deg, #000 calc(52% - .034em), transparent 0, transparent calc(52% + .034em), #000 0); }
.c-v29 { -webkit-mask-image: linear-gradient(90deg, #000 calc(29% - .034em), transparent 0, transparent calc(29% + .034em), #000 0); mask-image: linear-gradient(90deg, #000 calc(29% - .034em), transparent 0, transparent calc(29% + .034em), #000 0); }
.c-v27 { -webkit-mask-image: linear-gradient(90deg, #000 calc(27% - .034em), transparent 0, transparent calc(27% + .034em), #000 0); mask-image: linear-gradient(90deg, #000 calc(27% - .034em), transparent 0, transparent calc(27% + .034em), #000 0); }
.c-h21 { -webkit-mask-image: linear-gradient(180deg, #000 calc(21% - .034em), transparent 0, transparent calc(21% + .034em), #000 0); mask-image: linear-gradient(180deg, #000 calc(21% - .034em), transparent 0, transparent calc(21% + .034em), #000 0); }
.c-h50 { -webkit-mask-image: linear-gradient(180deg, #000 calc(50% - .034em), transparent 0, transparent calc(50% + .034em), #000 0); mask-image: linear-gradient(180deg, #000 calc(50% - .034em), transparent 0, transparent calc(50% + .034em), #000 0); }
.c-h52 { -webkit-mask-image: linear-gradient(180deg, #000 calc(52% - .034em), transparent 0, transparent calc(52% + .034em), #000 0); mask-image: linear-gradient(180deg, #000 calc(52% - .034em), transparent 0, transparent calc(52% + .034em), #000 0); }
.c-h62 { -webkit-mask-image: linear-gradient(180deg, #000 calc(62% - .034em), transparent 0, transparent calc(62% + .034em), #000 0); mask-image: linear-gradient(180deg, #000 calc(62% - .034em), transparent 0, transparent calc(62% + .034em), #000 0); }

/* hidden until animated (only while motion is on; JS reveals them) */
.js .fx-anim .fx-hide { opacity: 0; }
.js .fx-anim .fx-l .ch { clip-path: inset(0 0 100% 0); opacity: 0; }
.js .fx-anim [data-fx-subject] { opacity: 0; }
.js .fx-anim .fxc-photo { opacity: 0; }
/* safety net if the script never runs */
.js:not(.fx-js) .fx-anim .fx-hide, .js:not(.fx-js) .fx-anim .fx-l .ch, .js:not(.fx-js) .fx-anim [data-fx-subject], .js:not(.fx-js) .fx-anim .fxc-photo { animation: fx-failsafe 0s linear 6s forwards; }
@keyframes fx-failsafe { to { opacity: 1; clip-path: none; } }
@media (prefers-reduced-motion: reduce) {
    .js .fx-anim .fx-hide, .js .fx-anim .fx-l .ch, .js .fx-anim [data-fx-subject], .js .fx-anim .fxc-photo { opacity: 1 !important; clip-path: none !important; animation: none !important; }
}

/* pills */
.fx-pill { display: inline-flex; align-items: center; justify-content: center; height: calc(44 * var(--u)); padding: 0 calc(21 * var(--u)); border-radius: 999px; font-size: calc(13.5 * var(--u)); font-weight: 470; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: transform .45s var(--ease-out, ease), background .3s, color .3s, box-shadow .3s; }
.fx-pill--dark { background: var(--fx-pill); color: #fff; }
.fx-pill--dark:hover { color: #fff; background: #000; transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); }
.fx-pill--light { background: #fff; color: var(--fx-ink); }
.fx-pill--light:hover { color: var(--fx-ink); transform: translateY(-1px); box-shadow: 0 14px 30px -16px rgba(70, 50, 25, .45); }

/* ==========================================================================
   FRAMED HERO
   ========================================================================== */
.fxh .fx-panel { height: calc(924 * var(--u)); background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 45%, var(--c3) 100%); }
.fxh-notch { position: absolute; z-index: 5; top: -1px; left: 50%; width: calc(560 * var(--u)); height: calc(61 * var(--u)); transform: translateX(-50%); fill: var(--bg, #f6f4f0); }
.fxh-logo { position: absolute; z-index: 6; top: calc(10 * var(--u)); left: 0; right: 0; text-align: center; font-family: var(--fx-font); font-size: calc(33 * var(--u)); font-weight: 380; font-stretch: 122%; letter-spacing: .2em; padding-left: .2em; line-height: 1; color: var(--fx-ink); pointer-events: none; }
.fxh-rays { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.fxh-rays line { stroke: #fff; stroke-opacity: .75; stroke-width: 1.1px; vector-effect: non-scaling-stroke; }
.fxh-subject { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fxh-subject-in { position: absolute; inset: 0; will-change: transform; }
.fxh-img { position: absolute; left: 50%; top: calc(var(--st) * var(--u)); width: calc(var(--sw) * var(--u)); height: auto; margin-left: calc(var(--sw) * var(--u) / -2); max-width: none; transform-origin: 50% 0; }
.fxh-img--photo {
    -webkit-mask-image: radial-gradient(ellipse 50% 56% at 50% 52%, #000 58%, rgba(0, 0, 0, .55) 78%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 56% at 50% 52%, #000 58%, rgba(0, 0, 0, .55) 78%, transparent 100%);
}
.fxh-title { position: absolute; z-index: 4; left: 0; right: 0; top: calc(120 * var(--u)); margin: 0; text-align: center; font-size: calc(64.5 * var(--u) * var(--ts, 1)); line-height: .93; font-weight: 760; letter-spacing: -.035em; text-transform: uppercase; color: var(--fx-ink); }
.fx-acc--stencil { font-weight: 360; font-stretch: 100%; letter-spacing: -.01em; }
.fx-acc--italic { font-style: italic; font-weight: 500; color: var(--gold-deep, #94703c); }
.fx-acc--outline { color: transparent; -webkit-text-stroke: max(1px, calc(1.4 * var(--u))) var(--fx-ink); }
.fxh-ctas { position: absolute; z-index: 4; left: 0; right: 0; top: calc(270 * var(--u)); display: flex; justify-content: center; gap: calc(8 * var(--u)); }
.fxh-avatars { position: absolute; z-index: 4; left: calc(40 * var(--uw)); top: calc(578 * var(--u)); display: flex; }
.fxh-av { width: calc(45 * var(--u)); height: calc(45 * var(--u)); border-radius: 50%; border: calc(2 * var(--u)) solid #f3e9db; margin-right: calc(-13 * var(--u)); background: #d9c6a8 center / cover no-repeat; }
.fxh-copy { position: absolute; z-index: 4; left: calc(40 * var(--uw)); top: calc(668 * var(--u)); width: calc(262 * var(--u)); margin: 0; font-size: calc(14.2 * var(--u)); line-height: 1.52; color: var(--fx-muted); letter-spacing: -.01em; text-indent: calc(51 * var(--u)); }
.fxh-video { position: absolute; z-index: 4; right: calc(42 * var(--uw)); top: calc(617 * var(--u)); width: calc(280 * var(--u)); height: calc(187 * var(--u)); padding: 0; border: 0; border-radius: calc(16 * var(--u)); overflow: hidden; background: #cdb48c 50% 62% / cover no-repeat; cursor: pointer; display: grid; place-items: center; box-shadow: 0 24px 50px -30px rgba(40, 28, 12, .55); transition: transform .6s var(--ease-out, ease); }
.fxh-video:hover { transform: translateY(-3px); }
.fxh-play { display: grid; place-items: center; width: calc(48 * var(--u)); height: calc(48 * var(--u)); border-radius: 50%; background: rgba(28, 23, 18, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; transition: transform .4s var(--ease-out, ease); }
.fxh-video:hover .fxh-play { transform: scale(1.08); }
.fxh-play svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); margin-left: calc(2 * var(--u)); fill: #fff; }
.fxh-play--link .icon { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }

/* ==========================================================================
   WORD COLLAGE
   ========================================================================== */
.fxc .fx-panel { height: calc(924 * var(--u)); background: var(--panel); }
.fxc-frame { position: absolute; top: 0; bottom: 0; left: 50%; width: calc(1408 * var(--u)); margin-left: calc(-704 * var(--u)); }
.fxc-card { position: absolute; display: block; overflow: hidden; background: #d9c6a8 50% 30% / cover no-repeat; }
.fxc-left { z-index: 1; left: calc(80 * var(--u)); top: calc(135 * var(--u)); width: calc(218 * var(--u)); height: calc(287 * var(--u)); border-radius: calc(14 * var(--u)); background-position: 50% 30%; }
.fxc-right { z-index: 1; left: calc(1079 * var(--u)); top: calc(395 * var(--u)); width: calc(212 * var(--u)); height: calc(281 * var(--u)); border-radius: calc(14 * var(--u)); background-position: 50% 45%; }
.fxc-center { z-index: 3; left: calc(514 * var(--u)); top: calc(135 * var(--u)); width: calc(380 * var(--u)); height: calc(534 * var(--u)); border-radius: calc(24 * var(--u)); background: linear-gradient(180deg, #8f7148 0%, #e2d1b4 100%); box-shadow: 0 40px 80px -44px rgba(60, 40, 15, .55); }
a.fxc-center { transition: transform .8s var(--ease-out, ease); }
a.fxc-center:hover { transform: translateY(-4px); }
.fxc-photo { position: absolute; inset: 0; background: 50% 20% / cover no-repeat; }
.fxc-word { position: absolute; z-index: 2; left: calc(12 * var(--u)); top: calc(305 * var(--u)); font-family: var(--fx-font); font-size: calc(287 * var(--u)); font-weight: 300; font-stretch: 100%; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: calc(1.6 * var(--u)) var(--line); text-transform: uppercase; pointer-events: none; }
.fxc-text { position: absolute; z-index: 4; margin: 0; font-size: calc(14 * var(--u)); line-height: 1.43; color: var(--fx-muted); letter-spacing: -.01em; }
.fxc-text--top { left: calc(1058 * var(--u)); top: calc(122 * var(--u)); width: calc(250 * var(--u)); }
.fxc-text--bottom { left: calc(80 * var(--u)); top: calc(665 * var(--u)); width: calc(205 * var(--u)); }

/* ==========================================================================
   ROTATING SHOWCASE
   ========================================================================== */
.fxm { padding-top: calc(16 * var(--u)); }
.fxm .fx-panel { height: calc(924 * var(--u)); background: var(--panel); }
.fxm-row { position: absolute; z-index: 1; left: 0; font-family: var(--fx-font); font-size: calc(140 * var(--u)); line-height: 1; font-weight: 380; font-stretch: 112%; color: var(--rowc); text-transform: uppercase; white-space: nowrap; will-change: transform; pointer-events: none; }
.fxm-row--1 { top: calc(146 * var(--u)); }
.fxm-row--2 { top: calc(646 * var(--u)); }
.fxm-card { position: absolute; z-index: 2; left: 50%; top: calc(73 * var(--u)); width: calc(503 * var(--u)); height: calc(699 * var(--u)); margin-left: calc(-251.5 * var(--u)); border-radius: calc(24 * var(--u)); overflow: hidden; background: linear-gradient(180deg, var(--k1) 0%, var(--k2) 55%, var(--k3) 100%); color: var(--fx-ink); text-decoration: none; box-shadow: 0 50px 90px -50px rgba(60, 40, 15, .5); }
a.fxm-card:hover { color: var(--fx-ink); }
.fxm-look { position: absolute; inset: 0; z-index: 1; opacity: 0; background: 50% 100% / cover no-repeat; }
.fxm-look.is-on { opacity: 1; }
.fxm-arch { position: absolute; z-index: 3; left: calc(16 * var(--u)); right: calc(16 * var(--u)); top: calc(16 * var(--u)); height: calc(360 * var(--u)); border-radius: calc(235 * var(--u)) calc(235 * var(--u)) 0 0; background: linear-gradient(180deg, rgba(255, 252, 246, .72), rgba(255, 252, 246, .42) 48%, rgba(255, 252, 246, 0) 100%); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); pointer-events: none; }
.fxm-head { position: absolute; z-index: 4; left: 0; right: 0; top: calc(59 * var(--u)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.fxm-tag { display: inline-flex; align-items: center; height: calc(23 * var(--u)); padding: 0 calc(14 * var(--u)); border-radius: 999px; background: var(--fx-pill); color: #f6ead6; font-size: calc(12 * var(--u)); font-weight: 470; letter-spacing: .06em; }
.fxm-title { display: block; margin-top: calc(14 * var(--u)); font-size: calc(41 * var(--u)); line-height: .93; font-weight: 720; letter-spacing: -.035em; text-transform: uppercase; color: var(--fx-ink); }
.fxm-btn { position: absolute; z-index: 4; left: 50%; bottom: calc(26 * var(--u)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: calc(8 * var(--u)); height: calc(44 * var(--u)); padding: 0 calc(20 * var(--u)); border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--fx-ink); font-family: var(--fx-font); font-size: calc(13.5 * var(--u)); font-weight: 470; text-transform: uppercase; white-space: nowrap; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .3s, color .3s; }
.fxm-btn .icon { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
a.fxm-card:hover .fxm-btn { background: var(--fx-pill); color: #fff; }

/* video lightbox */
.fx-video-modal { width: min(1100px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: #000; }
.fx-video-modal::backdrop { background: rgba(10, 8, 6, .78); }
.fx-video-box { position: relative; aspect-ratio: 16 / 9; }
.fx-video-box iframe, .fx-video-box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fx-video-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); font-size: 22px; line-height: 1; cursor: pointer; }

/* ==========================================================================
   PHONE  (below 821px: 1u = 1/390 of the screen)
   ========================================================================== */
@media (max-width: 820px) {
    .fx { --u: calc(100vw / 390); --uw: calc(100vw / 390); padding-bottom: calc(8 * var(--u)); }
    .fx-panel { margin: 0 calc(8 * var(--u)); border-radius: calc(24 * var(--u)); }

    .fxh .fx-panel { height: max(calc(820 * var(--u)), calc(100svh - 100px)); }
    .fxh-notch { width: calc(200 * var(--u)); height: calc(34 * var(--u)); }
    .fxh-logo { top: calc(6 * var(--u)); font-size: calc(19 * var(--u)); }
    .fxh-title { top: calc(70 * var(--u)); font-size: calc(28.5 * var(--u) * var(--ts, 1)); }
    .fxh-ctas { top: calc(148 * var(--u)); }
    .fx-pill { height: calc(38 * var(--u)); padding: 0 calc(16 * var(--u)); font-size: calc(11.5 * var(--u)); }
    .fxh-img { top: calc(205 * var(--u)); width: calc(var(--sw) * .62 * var(--u)); margin-left: calc(var(--sw) * .62 * var(--u) / -2); }
    .fxh-avatars { left: calc(14 * var(--u)); top: auto; bottom: calc(150 * var(--u)); }
    .fxh-av { width: calc(34 * var(--u)); height: calc(34 * var(--u)); margin-right: calc(-10 * var(--u)); }
    .fxh-copy { display: none; }
    .fxh-video { right: calc(12 * var(--u)); top: auto; bottom: calc(16 * var(--u)); width: calc(128 * var(--u)); height: calc(86 * var(--u)); border-radius: calc(12 * var(--u)); }
    .fxh-play { width: calc(32 * var(--u)); height: calc(32 * var(--u)); }
    .fxh-play svg { width: calc(10 * var(--u)); height: calc(10 * var(--u)); }

    .fxc .fx-panel { height: calc(744 * var(--u)); }
    .fxc-frame { left: 0; width: 100%; margin-left: 0; }
    .fxc-text { font-size: calc(13 * var(--u)); }
    .fxc-text--top { left: calc(16 * var(--u)); top: calc(28 * var(--u)); width: calc(300 * var(--u)); }
    .fxc-left { left: calc(14 * var(--u)); top: calc(150 * var(--u)); width: calc(108 * var(--u)); height: calc(164 * var(--u)); border-radius: calc(12 * var(--u)); }
    .fxc-center { left: calc(130 * var(--u)); top: calc(190 * var(--u)); width: calc(230 * var(--u)); height: calc(324 * var(--u)); border-radius: calc(18 * var(--u)); }
    .fxc-right { left: calc(24 * var(--u)); top: calc(500 * var(--u)); width: calc(126 * var(--u)); height: calc(168 * var(--u)); border-radius: calc(12 * var(--u)); }
    .fxc-word { left: calc(8 * var(--u)); top: calc(318 * var(--u)); font-size: calc(80 * var(--u)); -webkit-text-stroke-width: 1px; }
    .fxc-text--bottom { left: calc(172 * var(--u)); top: calc(560 * var(--u)); width: calc(180 * var(--u)); }

    .fxm { padding-top: calc(8 * var(--u)); }
    .fxm .fx-panel { height: calc(660 * var(--u)); }
    .fxm-row { font-size: calc(76 * var(--u)); }
    .fxm-row--1 { top: calc(22 * var(--u)); }
    .fxm-row--2 { top: calc(552 * var(--u)); }
    .fxm-card { top: calc(118 * var(--u)); width: calc(300 * var(--u)); height: calc(417 * var(--u)); margin-left: calc(-150 * var(--u)); border-radius: calc(18 * var(--u)); }
    .fxm-head { top: calc(34 * var(--u)); }
    .fxm-tag { height: calc(20 * var(--u)); font-size: calc(10 * var(--u)); padding: 0 calc(10 * var(--u)); }
    .fxm-title { margin-top: calc(9 * var(--u)); font-size: calc(27 * var(--u)); }
    .fxm-arch { border-radius: calc(140 * var(--u)) calc(140 * var(--u)) 0 0; height: calc(215 * var(--u)); }
    .fxm-btn { height: calc(36 * var(--u)); font-size: calc(11 * var(--u)); padding: 0 calc(14 * var(--u)); bottom: calc(16 * var(--u)); }
}

/* corner style from Admin › Colours & fonts */
.corners-square .fx-panel, .corners-square .fxc-card, .corners-square .fxm-card, .corners-square .fxh-video { border-radius: 0; }
.corners-soft .fx-panel { border-radius: calc(18 * var(--u)); }
