/* ============ FONT ============ */
@font-face{
  font-family:'Meandrica';
  src:url('fonts/MeandrikaVF.ttf') format('truetype-variations');
  font-weight:500;
  font-stretch:1% 100%;
  font-display:block;   /* show nothing until Meandrica loads — no fallback-font flash */
}

/* Metropolis — the Latin/UI typeface for everything that isn't a Meandrica display word */
@font-face{font-family:'Metropolis';src:url('fonts/Metropolis-Regular.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Metropolis';src:url('fonts/Metropolis-Medium.otf') format('opentype');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Metropolis';src:url('fonts/Metropolis-SemiBold.otf') format('opentype');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Metropolis';src:url('fonts/Metropolis-Bold.otf') format('opentype');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Metropolis';src:url('fonts/Metropolis-ExtraBold.otf') format('opentype');font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:'Metropolis';src:url('fonts/Metropolis-Black.otf') format('opentype');font-weight:900;font-style:normal;font-display:swap}

:root{
  --bg:#000000;
  --fg:#ffffff;
  --accent:#FFCA0B;
  --dim:#8a8a8a;
  --line:#222;
  --ui:'Metropolis',system-ui,sans-serif;
  --maxw:1240px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--fg);
  font-family:var(--ui);
  font-weight:500;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  line-height:1.5;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
code{font-family:ui-monospace,monospace;color:var(--accent);font-size:.9em}

.morph-glyph,.hero-word,.display-word,.azbuka,.big-glyph,.axes-word,.tester-text,.kupi,.station-noimg,.logo-mark{
  font-family:'Meandrica',sans-serif;
  font-weight:500;
}

/* ============ PROGRESS ============ */
.scroll-progress{
  position:fixed;top:0;left:0;height:3px;width:0;
  background:var(--accent);z-index:200;transition:width .08s linear;
}

/* ============ TOP NAV ============ */
.topnav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:22px 34px;background:#000;
}
.brand{display:flex;align-items:center;gap:14px}
.logo-mono{height:30px;width:auto;display:block}
.brand-text{font-size:12px;letter-spacing:.18em;font-weight:600}
.topnav-right{display:flex;align-items:center;gap:28px}
.lang{display:flex;gap:10px;font-size:13px;letter-spacing:.1em}
.lang-btn{background:none;border:none;color:var(--fg);cursor:pointer;font-family:var(--ui);font-weight:500;opacity:.6;font-size:13px}
.lang-btn.is-active{opacity:1;font-weight:800}
.getfont{font-size:13px;letter-spacing:.14em;font-weight:600;border-bottom:1px solid transparent;transition:border-color .2s}
.getfont:hover{border-color:var(--fg)}

/* HAMBURGER + MOBILE MENU (shown only ≤880px) */
.hamburger{display:none}
.mobilemenu{display:none}

/* ============ SIDE NAV ============ */
.sidenav{
  position:fixed;right:20px;top:50%;transform:translateY(-50%);
  z-index:90;display:flex;flex-direction:column;gap:30px;
}
.sidenav a{writing-mode:vertical-rl;text-orientation:mixed;
  font-size:11px;letter-spacing:.28em;color:var(--dim);
  transition:color .25s;font-weight:600;
}
.sidenav a:hover{color:var(--fg)}
.sidenav a.active{color:var(--accent)}

/* ============ HERO ============ */
.hero{
  height:100vh;min-height:680px;position:relative;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  overflow:hidden;
}
.hero-title-wrap{
  height:63.9vh;width:100%;            /* fixed slot = fit target, so the Latin below never shifts */
  display:flex;align-items:center;justify-content:center;
}
.hero-word{
  font-size:20vw;            /* fallback before JS fits it to the screen */
  line-height:.82;letter-spacing:.002em;           /* InDesign tracking 2 (/1000 em) */
  transform:translateY(74px);                      /* lowered so the glyph bottom lines up with the H in MERCH (nav) */
  font-variation-settings:'wght' 500,'wdth' 500;   /* REGULAR, fixed */
  white-space:nowrap;width:max-content;max-width:none;text-align:center;
  user-select:none;
}
.hero-word .hl{display:inline-block;font-variation-settings:'wght' 500,'wdth' 1000}  /* first paint = LOW */
.hero-sub{
  font-family:var(--ui);font-weight:600;
  letter-spacing:.5em;font-size:clamp(12px,1.9vw,26px);   /* ~2pt smaller */
  margin-top:4vh;padding-left:.5em;
  transform:translateY(44px);   /* lowered further, below the glagolitic title */
}
.hero-scrollhint{
  position:absolute;bottom:34px;left:50%;transform:translateX(-50%);
  font-size:11px;letter-spacing:.3em;color:var(--dim);
  animation:pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{0%,100%{opacity:.4}50%{opacity:1}}

/* ============ SECTIONS ============ */
.section{
  max-width:var(--maxw);margin:0 auto;
  padding:14vh 34px;position:relative;
}
/* a frame = one screenful: content vertically centered with blank space top & bottom */
.frame{min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding-block:8vh}
.label{
  font-size:11px;letter-spacing:.4em;font-weight:700;
  color:var(--fg);margin-bottom:36px;
  display:block;border-top:2px solid var(--accent);padding-top:10px;  /* full-width divider line */
}
.lead{
  font-size:clamp(26px,3.6vw,44px);
  font-weight:800;line-height:1.18;letter-spacing:-.01em;
}
.lead.big{font-size:clamp(28px,4.4vw,56px);max-width:1100px}
.body{font-size:14px;line-height:1.5;max-width:62ch;color:#e7e7e7}
.body.dim,.dim{color:var(--dim)}
.small-note{font-size:15px;color:#bdbdbd;max-width:70ch;margin-top:40px}

/* ABOUT */
.about .lead{font-size:calc(clamp(26px,3.6vw,44px) - 11pt)}   /* ABOUT FONT headline, smaller */
.about .label{margin-bottom:48px}
.about-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:50px;align-items:center}
.about-text{display:flex;flex-direction:column;gap:22px}
.about-glyph{display:flex;justify-content:flex-end;overflow:visible}
.big-glyph{
  color:var(--accent);font-size:clamp(160px,28vw,440px);line-height:.82;  /* 2× bigger */
  white-space:nowrap;cursor:default;
}
.big-glyph .al{
  display:inline-block;
  font-variation-settings:'wght' 500,'wdth' 500;          /* REGULAR */
  transition:font-variation-settings .3s ease;
}
.big-glyph:hover .al{font-variation-settings:'wght' 500,'wdth' 10}   /* BLACK on hover */
.big-glyph:hover .al:nth-child(2){transition-delay:.15s}             /* one letter at a time */
.big-glyph:hover .al:nth-child(3){transition-delay:.30s}
.big-glyph:hover .al:nth-child(4){transition-delay:.45s}
.knifer-strip{margin:0}   /* photo within content margins (not full-bleed) */
.knifer-strip img{width:100%;display:block;filter:contrast(1.05)}
.knifer-row{display:grid;grid-template-columns:1fr 3fr;gap:60px;align-items:center;margin-top:4vh}
.knifer-row .small-note{margin-top:0;max-width:none;font-size:14px;line-height:1.5}
.knifer-word{
  justify-self:end;
  font-family:'Meandrica';color:var(--accent);
  font-size:min(clamp(130px,24vw,360px),38vh);line-height:.82;white-space:nowrap;   /* 2× bigger, capped to fit */
  font-variation-settings:'wght' 500,'wdth' 1000;       /* LOW */
  transition:font-variation-settings .4s ease;cursor:default;
}
.knifer-word:hover{font-variation-settings:'wght' 500,'wdth' 500}  /* REGULAR on hover */

/* GLAGOLJICA */
.glago-photo{margin-bottom:4vh}
.glago-photo img{width:100%;display:block}
.glago-marquee{display:none}   /* mobile-only AZ BUKI VEDE GLAGOL marquee */
.glago-lead{font-size:calc(clamp(26px,3.6vw,44px) - 11pt);max-width:none}  /* = ABOUT size, full width */
/* 4-column grid; the two paragraphs sit on the first 2/4 (left half), close together */
.glago-two{display:grid;grid-template-columns:repeat(4,1fr);gap:40px;margin-top:5vh}
.glago-two .body{font-size:14px;line-height:1.5;max-width:278px}
.display-word{
  color:var(--fg);font-size:clamp(48px,7vw,110px);line-height:.85;
  margin-bottom:24px;font-variation-settings:'wght' 500,'wdth' 30;
}
.azbuka{
  color:var(--accent);font-size:clamp(30px,4vw,56px);
  margin-top:30px;font-variation-settings:'wght' 500,'wdth' 220;line-height:1;
}

/* ALEJA */
/* small intro text above; map below it (scrolls with the page), no overlap */
/* intro text in two columns above the map; map big & centred below */
/* intro text: same boxes as .glago-two — 4-col grid, paras on the left half, narrow */
.aleja-intro-cols{display:grid;grid-template-columns:repeat(4,1fr);gap:40px;margin-bottom:7vh}
.aleja-intro-cols .body{font-size:14px;line-height:1.5;max-width:278px}
.aleja-map{position:relative;width:100%;max-width:100%;margin:6vh auto 0}   /* full width, height proportional */
.aleja-map-img{display:block;width:100%;height:auto;max-width:100%}
.map-hot{position:absolute;display:block;z-index:3}
.map-hot:hover{z-index:20}   /* hovered hotspot (and its tooltip) sits above the others */
/* on hover over a monument label: a name tooltip + a blinking down-arrow (clicking anywhere navigates) */
.map-tip{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  display:flex;align-items:center;gap:10px;width:max-content;max-width:230px;
  background:#000;border:1px solid var(--accent);color:#fff;
  font-family:var(--ui);font-size:12px;letter-spacing:.08em;font-weight:600;line-height:1.35;
  padding:9px 14px;opacity:0;pointer-events:none;transition:opacity .18s;z-index:20}
.map-hot:hover .map-tip{opacity:1;pointer-events:auto}   /* clickable (inside the link) so pressing the arrow navigates too */
.mt-arrow{flex:none;font-family:var(--ui);font-size:17px;line-height:1;color:var(--accent);animation:mtblink 1s step-end infinite}
@keyframes mtblink{0%,100%{opacity:1}50%{opacity:0}}
@keyframes mappulse{0%{transform:scale(.7);opacity:.9}70%{opacity:.3}100%{transform:scale(2.2);opacity:0}}
/* map how-to helper (mobile only) */
.map-help{display:none;font-size:13px;letter-spacing:.03em;font-weight:600;color:var(--dim);text-align:center;margin:0 0 16px}
[id^="m-"],#axes-lap{scroll-margin-top:90px}
.trail{position:relative;padding:40px 0}
/* every monument: picture + small Figma-style caption, alternating sides */
.monument{display:grid;grid-template-columns:3fr 1fr;gap:40px;align-items:start;margin:12vh 0}
.monument.alt{direction:rtl}
.monument.alt>*{direction:ltr}
.monument>img{width:100%;max-height:84vh;object-fit:contain;object-position:top;display:block}
/* KATEDRA: full-bleed big photo (bleeds left), caption on the right */
.monument.katedra-mon{
  width:100vw;margin:0 0 0 calc(50% - 50vw);
  min-height:100vh;display:flex;align-items:center;position:relative;
  grid-template-columns:none;
}
.monument.katedra-mon>img{
  height:96vh;width:auto;max-width:none;max-height:none;object-fit:contain;
  margin-left:4vw;   /* shifted more to the right */
}
.monument.katedra-mon .mon-cap{position:absolute;right:140px;top:54%;width:260px}

/* AXES — full-width picture, controls top-right (at the yellow line's level), text below */
.lap-axes{position:relative;margin:13vh 0}
.lap-axes .label{margin-bottom:24px}
.lap-ctrl{position:absolute;top:34px;right:42px;z-index:4;display:flex;flex-direction:column;align-items:flex-end;gap:9px}
.lap-stage{position:relative;width:100%;height:62vh;overflow:hidden;background:#0a0a0a}
.lap-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;opacity:.95}  /* crops top/bottom */
.lap-word{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;cursor:help}
.lap-glag{display:block;font-family:'Meandrica';color:#fff;white-space:nowrap;line-height:.9;text-align:center;
  font-size:clamp(110px,12.5vw,220px);font-variation-settings:'wght' 500,'wdth' 10;
  transition:font-variation-settings .45s ease}
.lap-tip{position:absolute;left:50%;top:-50px;transform:translateX(-50%);background:#000;border:1px solid var(--accent);
  color:#fff;font-size:12px;letter-spacing:.12em;font-weight:600;padding:9px 16px;white-space:nowrap;
  opacity:0;transition:opacity .2s;pointer-events:none}
.lap-word:hover .lap-tip,.lap-word:focus-visible .lap-tip{opacity:1}
/* cursor-following Latin tooltip for Meandrica display words */
.me-tip{position:fixed;transform:translate(-50%,-100%);background:#000;border:1px solid var(--accent);
  color:#fff;font-family:var(--ui);font-size:13px;letter-spacing:.1em;font-weight:600;padding:7px 14px;
  max-width:320px;text-align:center;line-height:1.4;pointer-events:none;opacity:0;transition:opacity .15s;z-index:300}
.me-tip.on{opacity:1}
.lap-ctrl button{background:none;border:0;color:#bdbdbd;font-family:var(--ui);font-weight:500;
  font-size:13px;letter-spacing:.22em;cursor:pointer;transition:color .2s;padding:2px 0;text-align:right}
.lap-ctrl button:hover{color:#fff}
.lap-ctrl button.is-active{color:#fff;font-weight:800}
.lap-cap{margin-top:5vh;max-width:260px}
/* STUP: two S glyphs (REGULAR + LOW) that swap on hover, caption below, bottom-aligned */
/* STUP gets its own screen: black space before/after, group sits low (lower third) */
.monument.stup{
  align-items:end;
  grid-template-columns:minmax(0,525px) 1fr;   /* reveal ~25% bigger */
  min-height:100vh;align-content:end;
  padding-bottom:13vh;margin:0 0 16vh;
}
.stup-side{display:flex;flex-direction:column;gap:32px}
.stup-ss{display:flex;gap:0;line-height:.8;width:max-content}
.stup-ss .ss{font-family:'Meandrica';color:#fff;font-size:clamp(160px,22vw,300px);transition:font-variation-settings .45s ease;cursor:default}
.stup-ss .ss-a{font-variation-settings:'wght' 500,'wdth' 500}    /* REGULAR */
.stup-ss .ss-b{font-variation-settings:'wght' 500,'wdth' 1000}   /* LOW */
.stup-ss:hover .ss-a{font-variation-settings:'wght' 500,'wdth' 1000}  /* -> LOW */
.stup-ss:hover .ss-b{font-variation-settings:'wght' 500,'wdth' 500}   /* -> REGULAR */
.mon-cap{max-width:260px}   /* every caption text box the same width as KATEDRA */
.mon-cap h4{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#fff;margin-bottom:10px}
.mon-cap p{font-size:14px;line-height:1.5;color:#d6d6d6;max-width:260px}
.mon-cap b{color:#fff}
/* STOL — dithered photo (no baked-in text) with OMNE / TRINUM / PERFECTUM over it, black -> regular on hover */
.stol-stage{position:relative;display:block;overflow:hidden}
.stol-stage>img{width:100%;max-height:84vh;object-fit:contain;object-position:top;display:block}
.stol-word{position:absolute;left:2%;bottom:0;z-index:2;
  display:flex;flex-direction:column;align-items:flex-start;line-height:.90;text-align:left;cursor:help;
  font-family:'Meandrica';color:#fff;font-size:clamp(64px,13vw,240px);text-shadow:0 3px 26px rgba(0,0,0,.5)}   /* size set by JS to fill the photo height */   /* size set by JS to fill the photo height */
.stol-word span{font-variation-settings:'wght' 500,'wdth' 10;transition:font-variation-settings .45s ease}   /* BLACK by default */
.stol-word:hover span,.stol-word:focus-visible span{font-variation-settings:'wght' 500,'wdth' 500}          /* -> REGULAR */
/* STUP scroll reveal: yellow+S wipes over the b/w state, top -> down */
.stup-reveal{position:relative;width:100%;aspect-ratio:1;border:1px solid var(--line);overflow:hidden;background:#0a0a0a}
.stup-reveal img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0;background:none}
.stup-reveal .stup-action{clip-path:inset(0 0 100% 0);will-change:clip-path}
.station-noimg{
  width:100%;border:1px solid var(--line);background:#0a0a0a;
  display:flex;align-items:center;justify-content:center;
  min-height:300px;color:var(--accent);font-size:64px;
  font-variation-settings:'wght' 500,'wdth' 30;letter-spacing:.04em;
}
/* KLANAC — full-width, caption on top (clear of the graphic), big OLINFOS over the photo */
.monument.klanac-mon{display:block;grid-template-columns:none;margin:14vh 0}
.klanac-stage{position:relative;width:100%}
.klanac-cap{position:absolute;top:26%;right:4%;max-width:260px;margin:0;z-index:3}
.klanac-bg{width:100%;display:block}
.olinfos{position:absolute;left:50%;bottom:0;transform:translateX(-50%);
  display:flex;align-items:flex-end;white-space:nowrap;width:max-content;line-height:.8}
.olg{
  font-family:'Meandrica';color:#fff;font-size:100px;letter-spacing:0;   /* size set by JS to fill width */
  font-variation-settings:'wght' 500,'wdth' 1000;                        /* LOW on enter */
  transition:font-variation-settings .7s ease,transform .5s ease;
}
/* 1s after the frame enters: each letter takes its set width (O and S stay LOW) */
.olinfos.jumped .olg:nth-child(1){font-variation-settings:'wght' 500,'wdth' 1000}  /* O — LOW */
.olinfos.jumped .olg:nth-child(2){font-variation-settings:'wght' 500,'wdth' 810}   /* L */
.olinfos.jumped .olg:nth-child(3){font-variation-settings:'wght' 500,'wdth' 654}   /* I */
.olinfos.jumped .olg:nth-child(4){font-variation-settings:'wght' 500,'wdth' 500}   /* N — REGULAR */
.olinfos.jumped .olg:nth-child(5){font-variation-settings:'wght' 500,'wdth' 593}   /* F */
.olinfos.jumped .olg:nth-child(6){font-variation-settings:'wght' 500,'wdth' 759}   /* O */
.olinfos.jumped .olg:nth-child(7){font-variation-settings:'wght' 500,'wdth' 1000}  /* S — LOW */

/* ============ NEW MONUMENTS AFTER KLANAC (Figma) ============ */
/* shared overlay-photo monument: full-width photo + live Meandrica word + caption */
.ov-mon,.vid-mon,.odm-mon,.sfsn-mon{display:block;grid-template-columns:none;margin:16vh 0}
.ov-stage{position:relative;width:100%}
.ov-stage>img{display:block;width:100%;height:auto}
.ov-word{position:absolute;font-family:'Meandrica';color:#fff;line-height:.88;
  font-variation-settings:'wght' 500,'wdth' 1000;pointer-events:none}
.ov-cap-tl{position:absolute;top:5%;left:3%;max-width:260px;z-index:3;
  text-shadow:0 2px 14px rgba(0,0,0,.85),0 0 3px rgba(0,0,0,.9)}

/* VIDIKOVAC — tall scroll-through: photo right, black strip left, huge ISTRA, caption low-left */
.vid-stage{position:relative;width:100%;overflow:hidden}
.vid-photo{display:block;width:94%;height:auto;margin-left:22%}
.vid-istra{position:absolute;left:0;top:34%;font-family:'Meandrica';color:#fff;
  font-size:clamp(170px,33.5vw,520px);line-height:.82;cursor:pointer;
  font-variation-settings:'wght' 500,'wdth' 500;                 /* REGULAR */
  transition:font-variation-settings .5s ease}
.vid-istra:hover{font-variation-settings:'wght' 500,'wdth' 10}   /* BLACK on hover */
.vid-cap{position:absolute;left:0;top:62.5%;max-width:260px;z-index:3;
  text-shadow:0 2px 14px rgba(0,0,0,.85)}

/* USPON — photo cropped a bit at the bottom; L-gradient lowered over the stećci */
.uspon-mon .ov-cap-tl{top:1%}   /* caption a bit higher (still inside the frame) */
.uspon-mon .ov-stage{aspect-ratio:2652/1580;overflow:hidden}
.uspon-mon .ov-stage>img{width:100%;height:100%;object-fit:cover;object-position:top}
.uspon-word{left:3%;right:3%;bottom:6%;top:auto;text-align:center;white-space:nowrap;
  font-size:300px;letter-spacing:.005em;line-height:.9}        /* size set by JS to fill width */
.uspon-word span{display:inline-block;transition:font-variation-settings .55s cubic-bezier(.4,.1,.3,1)}
.uspon-word span:nth-child(1){font-variation-settings:'wght' 500,'wdth' 1000}
.uspon-word span:nth-child(2){font-variation-settings:'wght' 500,'wdth' 834}
.uspon-word span:nth-child(3){font-variation-settings:'wght' 500,'wdth' 654}
.uspon-word span:nth-child(4){font-variation-settings:'wght' 500,'wdth' 500}
.uspon-word span:nth-child(5){font-variation-settings:'wght' 500,'wdth' 370}
.uspon-word span:nth-child(6){font-variation-settings:'wght' 500,'wdth' 143}
.uspon-word span:nth-child(7){font-variation-settings:'wght' 500,'wdth' 10}
/* on hover the widths mirror (1<->7, 2<->6, 3<->5, 4 stays) */
.uspon-word:hover span:nth-child(1){font-variation-settings:'wght' 500,'wdth' 10}
.uspon-word:hover span:nth-child(2){font-variation-settings:'wght' 500,'wdth' 143}
.uspon-word:hover span:nth-child(3){font-variation-settings:'wght' 500,'wdth' 370}
.uspon-word:hover span:nth-child(4){font-variation-settings:'wght' 500,'wdth' 500}
.uspon-word:hover span:nth-child(5){font-variation-settings:'wght' 500,'wdth' 654}
.uspon-word:hover span:nth-child(6){font-variation-settings:'wght' 500,'wdth' 834}
.uspon-word:hover span:nth-child(7){font-variation-settings:'wght' 500,'wdth' 1000}

/* ZID — caption raised above the photo (no overlap); photo cropped a bit at the bottom */
.zid-crop{position:relative;width:100%;aspect-ratio:1512/850;overflow:hidden}
.zid-hot{position:absolute;left:45%;right:27%;top:11%;bottom:41%;z-index:2}   /* FIDES box only — hover area matches the framed word */
.zid-crop>img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.zid-cap{position:absolute;left:0;top:6%;max-width:260px;z-index:3;text-shadow:0 2px 14px rgba(0,0,0,.7)}
.zid-fides{right:6%;top:-7%;font-size:clamp(90px,12.5vw,215px);
  font-variation-settings:'wght' 500,'wdth' 500;border:.04em solid #fff;padding:.08em .22em .16em}

/* HUMSKA — photo cropped at bottom; big REGULAR poem filling the picture; per-line BLACK + tooltip on hover */
.humska-crop{width:100%;aspect-ratio:2766/1430;overflow:hidden}
.humska-crop>img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.humska-poem{left:3%;right:3%;top:65%;transform:translateY(-50%);
  display:flex;flex-direction:column;align-items:center;line-height:0.95;
  letter-spacing:0;font-size:80px;font-variation-settings:'wght' 500,'wdth' 500}   /* size set by JS */
.humska-poem .hl{position:relative;cursor:help;white-space:nowrap;pointer-events:auto;
  transition:font-variation-settings .4s ease}
.humska-poem .hl:hover{font-variation-settings:'wght' 500,'wdth' 10}
.hl-tip{position:absolute;left:50%;bottom:100%;transform:translateX(-50%);margin-bottom:6px;
  background:#000;border:1px solid var(--accent);color:#fff;font-family:var(--ui);font-size:13px;
  letter-spacing:.1em;font-weight:600;padding:7px 14px;white-space:nowrap;
  opacity:0;transition:opacity .2s;pointer-events:none}
.humska-poem .hl:hover .hl-tip{opacity:1}
.humska-cap{top:-3%;bottom:auto;left:0;margin-bottom:0;max-width:260px;text-align:left}

/* ODMORIŠTE — photo, then [ looping marquee 2/3 | caption 1/3 ] */
.odm-photo{display:block;width:100%;height:auto}
.odm-row{display:grid;grid-template-columns:2fr 1fr;gap:50px;align-items:center;margin-top:38px}
.odm-marquee{overflow:hidden}
.odm-marquee-track{white-space:nowrap;font-family:'Meandrica';color:#fff;
  font-size:clamp(60px,7.5vw,128px);font-variation-settings:'wght' 500,'wdth' 500;will-change:transform}
.odm-marquee-track .msq{display:inline-block;width:.08em;height:.08em;background:currentColor;
  vertical-align:.42em;margin:0 .42em}   /* small square separators instead of dots */
.odm-cap{max-width:260px}

/* SPOMENIK — photo, then paragraph (left-aligned), then blinking Meandrica word */
.sfsn-mon{display:grid;grid-template-columns:minmax(0,400px) 1fr 260px;
  gap:0 40px;align-items:center}
.sfsn-photo{display:block;width:100%;height:auto;grid-column:1;position:relative;z-index:1;max-width:none;
  transform:scale(1.5);transform-origin:left center}   /* bigger; overflows right under the word */
.sfsn-word{grid-column:2;font-family:'Meandrica';color:#fff;text-align:center;line-height:.92;
  font-size:clamp(84px,10.5vw,200px);font-variation-settings:'wght' 500,'wdth' 10;
  position:relative;z-index:2;margin-left:0;text-shadow:0 3px 26px rgba(0,0,0,.6);   /* centred in the middle column, on top of the photo */
  animation:sfsnBlink 1.1s step-end infinite}
.sfsn-cap{grid-column:3;text-align:left}
@keyframes sfsnBlink{0%{opacity:1}50%{opacity:0}}

/* CHARACTER SET */
/* three rows (REGULAR · LOW · BLACK); tall cells in Meandrica proportions + Latin label */
.glyph-grid{display:flex;flex-direction:column;gap:26px;margin-top:40px}
.glyph-row{display:grid;grid-template-columns:repeat(27,1fr);gap:1px;background:var(--line);border:1px solid var(--line)}
.glyph-cell{
  background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  aspect-ratio:1 / 2.7;padding:12px 1px 7px;overflow:hidden;transition:background .2s;
}
.glyph-cell .gly{
  flex:1;display:flex;align-items:center;justify-content:center;
  font-family:'Meandrica';color:#fff;font-size:clamp(28px,3vw,52px);line-height:1;
}
.glyph-cell .lab{font-family:var(--ui);font-size:10px;letter-spacing:.04em;font-weight:600;color:#6e6e6e}
.glyph-cell:hover{background:#141414}
.glyph-cell:hover .gly,.glyph-cell:hover .lab{color:var(--accent)}
/* big letter preview that follows the cursor, over everything — black box, yellow outline */
.glyph-preview{
  position:fixed;z-index:300;width:300px;height:380px;background:#000;border:1px solid var(--accent);left:-9999px;top:0;
  opacity:0;transform:scale(.97);transition:opacity .12s ease,transform .12s ease;
  pointer-events:none;overflow:hidden;
}
.glyph-preview.on{opacity:1;transform:none}
.gp-glyph{
  position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);
  font-family:'Meandrica';color:#fff;font-size:290px;line-height:1;white-space:nowrap;
  font-variation-settings:'wght' 500,'wdth' 500;
}
.gp-lab{position:absolute;left:0;right:0;bottom:18px;text-align:center;
  font-family:var(--ui);font-size:14px;letter-spacing:.14em;font-weight:600;color:#8a8a8a}

/* AXES */
.axes-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:60px;align-items:center}
.axes-demo{display:flex;flex-direction:column;gap:18px}
.axes-row{display:flex;align-items:baseline;gap:24px;border-bottom:1px solid var(--line);padding-bottom:14px}
.axes-name{font-size:12px;letter-spacing:.2em;color:var(--dim);width:90px;flex:none;font-weight:600}
.axes-word{font-family:'Meandrica';font-size:clamp(40px,6vw,90px);line-height:.9;color:var(--fg)}
.axes-marquee{margin-top:80px;overflow:hidden;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:24px 0}
.axes-marquee-track{
  white-space:nowrap;font-family:'Meandrica';font-size:clamp(50px,8vw,120px);
  color:var(--accent);font-variation-settings:'wght' 500,'wdth' 80;
  will-change:transform;
}

/* TESTER */
.tester{background:var(--bg)}
.tester-controls{
  display:flex;flex-wrap:wrap;gap:30px 44px;align-items:flex-end;
  border-bottom:1px solid var(--line);padding-bottom:26px;margin-bottom:6vh;
}
.ctrl{display:flex;flex-direction:column;gap:10px;font-size:11px;letter-spacing:.16em;font-weight:600}
.ctrl.wide{flex:1;min-width:180px}
.ctrl span{display:flex;justify-content:space-between;color:#cfcfcf}
.ctrl em{color:var(--accent);font-style:normal}
.ctrl select{
  background:#000;color:#fff;border:1px solid #333;padding:8px 10px;
  font-family:var(--ui);font-weight:600;letter-spacing:.1em;border-radius:2px;cursor:pointer;
}
input[type=range]{-webkit-appearance:none;appearance:none;height:2px;background:#333;border-radius:2px;cursor:pointer}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:0;background:var(--accent)}
input[type=range]::-moz-range-thumb{width:14px;height:14px;border:none;border-radius:0;background:var(--accent)}
.tester-tag{font-size:15px;letter-spacing:.2em;color:#bdbdbd;margin-bottom:16px;font-weight:600;
  display:block;width:460px;max-width:100%;cursor:text;outline:none;border-bottom:1px solid #8f8f8f;padding-bottom:7px}
.tester-tag.is-empty::after{content:attr(data-ph);color:#8f8f8f}                 /* placeholder: TYPE HERE */
.tester-text.is-empty::before{content:attr(data-ph);color:#8f8f8f;pointer-events:none}  /* placeholder: MEANDRIKA */
.tester-tag::before{content:"";display:inline-block;width:13px;height:13px;margin-right:9px;vertical-align:-1px;opacity:.9;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") no-repeat center/contain}
.tester-tag:focus{color:#fff;border-bottom-color:var(--accent)}
.tester-cta{margin:6vh auto 0}
.tester-stage{min-height:240px;display:flex;align-items:center;padding-top:10px}  /* align-items set by JS: center up to size 230, then flex-start so it grows downward */
.tester-text{
  font-family:'Meandrica';color:var(--fg);width:100%;outline:none;
  font-size:180px;line-height:.9;font-variation-settings:'wght' 500,'wdth' 10;
  word-break:break-word;text-transform:uppercase;
}
.tester-credit{font-size:12px;letter-spacing:.2em;color:var(--dim);margin-top:5vh;text-align:right}
.dl-count{text-align:center;margin-top:16px;font-size:11px;letter-spacing:.22em;color:var(--dim);font-weight:600}
/* three equal-size action buttons in one row: DOWNLOAD JPG · DOWNLOAD FONT · GET THIS ON A TOTE */
.tester-actions{display:flex;justify-content:center;gap:20px;margin-top:6vh;flex-wrap:wrap}
.tester-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 230px;min-height:56px;
  border:1.5px solid var(--fg);background:none;color:var(--fg);font-family:var(--ui);
  font-size:12px;letter-spacing:.15em;font-weight:600;text-transform:uppercase;text-align:center;
  padding:14px 18px;cursor:pointer;text-decoration:none;transition:background .2s,color .2s}
.tester-btn:hover{background:var(--accent);border-color:var(--accent);color:#000}
.to-top{display:flex;align-items:center;justify-content:center;margin:44px auto 0;
  width:56px;height:56px;border-radius:0;border:2px solid var(--accent);background:none;
  color:var(--accent);font-family:var(--ui);font-size:24px;font-weight:600;line-height:1;
  cursor:pointer;opacity:.5;transition:opacity .2s}
.to-top:hover,.to-top:active,.to-top:focus-visible{opacity:1}

/* MERCH */
.merch{position:relative;overflow:hidden}
.merch-pattern{position:absolute;inset:0;overflow:hidden;opacity:.06;z-index:0;pointer-events:none}
.merch-pattern-track{
  white-space:nowrap;font-family:'Meandrica';font-size:200px;line-height:1;color:#fff;
  font-variation-settings:'wght' 500,'wdth' 10;will-change:transform;
}
.merch>*{position:relative;z-index:1}
.merch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:30px}
.merch-grid figure{position:relative;border:1px solid var(--line);background:#0a0a0a;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.merch-grid figure:hover{transform:translateY(-10px) scale(1.02)}        /* every card pops up on hover */
.merch-buy{display:block}                                                /* whole photo is a mailto link */
.merch-grid img{width:100%;aspect-ratio:1;object-fit:cover;display:block}
.merch-grid figcaption{font-size:11px;letter-spacing:.2em;padding:14px;color:var(--dim);font-weight:600}
/* info text sits left-aligned below the photos */
.merch-info-text{margin-top:34px;max-width:560px;text-align:left}
.merch-info-text p{font-size:14px;line-height:1.6;color:#e8e8e8;margin:0}
.info-mail{display:inline-block;margin-top:18px;font-size:13px;letter-spacing:.06em;font-weight:600;
  color:var(--accent);text-decoration:none}
.info-mail:hover{text-decoration:underline}
.kupi{
  color:var(--accent);font-size:clamp(40px,8vw,120px);text-align:center;
  margin:9vh 0 5vh;font-variation-settings:'wght' 500,'wdth' 140;line-height:.9;
}
.cta{
  display:block;width:max-content;margin:40px auto 0;
  border:1.5px solid var(--fg);padding:18px 42px;border-radius:0;
  font-weight:700;letter-spacing:.18em;font-size:14px;
  transition:background .25s,color .25s;
}
.cta:hover{background:var(--accent);border-color:var(--accent);color:#000}

/* FOOTER */
.footer{text-align:center;padding:10vh 34px 8vh;border-top:1px solid var(--line);margin-top:6vh}
.footer .logo-mono.big{height:54px;width:auto;margin:0 auto 24px}
.footer p{font-size:12px;letter-spacing:.22em;color:#cfcfcf;font-weight:600;margin:6px 0}

/* REVEAL */
.reveal{opacity:0;transform:translateY(36px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}

/* RESPONSIVE */
@media (max-width:880px){
  .sidenav{display:none}
  /* keep the brand text on mobile too, just compact so it fits beside HR/ENG + hamburger */
  .brand-text{display:inline;font-size:9.5px;letter-spacing:.06em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topnav{padding:18px 14px;gap:10px}
  .brand{min-width:0;flex:1 1 auto}       /* brand shrinks first if space is tight */
  .topnav-right{gap:14px;flex:0 0 auto}   /* HR/ENG + hamburger never get pushed off-screen */

  /* header: monogram + HR/ENG + hamburger; GET FONT moves into the menu */
  .getfont{display:none}
  .hamburger{display:flex;flex-direction:column;justify-content:center;gap:5px;
    width:30px;height:24px;padding:0;background:none;border:none;cursor:pointer;position:relative;z-index:2}
  .hamburger span{display:block;width:100%;height:2px;background:var(--fg);border-radius:2px;
    transition:transform .28s ease,opacity .2s ease}
  .hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .hamburger.open span:nth-child(2){opacity:0}
  .hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .mobilemenu{display:flex;position:fixed;inset:0;z-index:95;background:#000;
    flex-direction:column;align-items:center;justify-content:center;gap:26px;
    padding:80px 24px 40px;opacity:0;pointer-events:none;transition:opacity .3s ease}
  .mobilemenu.open{opacity:1;pointer-events:auto}
  .mobilemenu a{font-family:var(--ui);font-size:22px;letter-spacing:.16em;font-weight:600;color:var(--fg);text-align:center}
  .mobilemenu a.active{color:var(--accent)}
  .mm-getfont{margin-top:16px;border:1.5px solid var(--fg);padding:14px 34px;font-size:14px;letter-spacing:.18em}

  /* MAP (touch): as big as possible — full screen width (bigger than content width), height proportional */
  .aleja-map{width:100vw;margin-left:calc(50% - 50vw)}
  .map-help{display:block}
  .map-hot .map-tip{transition:opacity .2s}
  .map-hot.show .map-tip{opacity:1}
  /* pulsing ring on the STUP marker to invite the first tap (hidden once the map is used) */
  .aleja-map .map-hot[href="#m-stup"]::after{content:"";position:absolute;left:50%;top:50%;
    width:32px;height:32px;margin:-16px 0 0 -16px;border:2px solid var(--accent);border-radius:50%;
    animation:mappulse 1.7s ease-out infinite;pointer-events:none;z-index:5}
  .aleja-map.touched .map-hot[href="#m-stup"]::after{display:none}
  .about-grid,.glago-two,.axes-grid,.knifer-row{grid-template-columns:1fr;gap:36px}
  .knifer-word{justify-self:start}
  .aleja-intro-cols{grid-template-columns:1fr;gap:22px}
  .frame{min-height:auto}
  .monument{grid-template-columns:1fr;gap:22px}
  .monument.alt{direction:ltr}
  .lap-stage{height:46vh}
  .lap-ctrl{flex-direction:row;gap:18px}
  .merch-grid{grid-template-columns:1fr}
  .merch-grid .mid{top:0}
  .tester-text{font-size:90px}
  .hero-sub{letter-spacing:.6em;padding-left:.6em}
}
/* phone autoplay — same morphs as :hover, driven by a JS-toggled .anim class (only added on phone) */
.big-glyph.anim .al{font-variation-settings:'wght' 500,'wdth' 10}
.big-glyph.anim .al:nth-child(2){transition-delay:.15s}
.big-glyph.anim .al:nth-child(3){transition-delay:.30s}
.big-glyph.anim .al:nth-child(4){transition-delay:.45s}
.knifer-word.anim{font-variation-settings:'wght' 500,'wdth' 500}
.stup-ss.anim .ss-a{font-variation-settings:'wght' 500,'wdth' 1000}
.stup-ss.anim .ss-b{font-variation-settings:'wght' 500,'wdth' 500}
.vid-istra.anim{font-variation-settings:'wght' 500,'wdth' 10}
.uspon-word.anim span:nth-child(1){font-variation-settings:'wght' 500,'wdth' 10}
.uspon-word.anim span:nth-child(2){font-variation-settings:'wght' 500,'wdth' 143}
.uspon-word.anim span:nth-child(3){font-variation-settings:'wght' 500,'wdth' 370}
.uspon-word.anim span:nth-child(4){font-variation-settings:'wght' 500,'wdth' 500}
.uspon-word.anim span:nth-child(5){font-variation-settings:'wght' 500,'wdth' 654}
.uspon-word.anim span:nth-child(6){font-variation-settings:'wght' 500,'wdth' 834}
.uspon-word.anim span:nth-child(7){font-variation-settings:'wght' 500,'wdth' 1000}
.humska-poem .hl.anim{font-variation-settings:'wght' 500,'wdth' 10}
.stol-word.anim span{font-variation-settings:'wght' 500,'wdth' 500}

/* ============ PHONE ============ everything stacks; nothing overlaps; big text stays big & bold */
@media (max-width:600px){
  body{overflow-x:hidden}
  .section{padding:7vh 16px}
  .frame{min-height:auto;padding-block:6vh}

  /* big / bold lead text stays big & bold on phone */
  .lead,.about .lead,.glago-lead{font-size:22px;line-height:1.32;font-weight:700;max-width:none}
  .body{font-size:15px;line-height:1.55;max-width:none}

  /* hero */
  .hero{min-height:86vh}
  .hero-title-wrap{height:auto;min-height:24vh;display:flex;align-items:center}
  .hero-sub{font-size:4.2vw;letter-spacing:.4em;padding-left:.4em}
  .knifer-word{font-size:32vw;justify-self:start;margin:11vh 0}   /* lowered, equal blank space above/below */
  .about-glyph{justify-content:flex-start;margin:11vh 0}          /* AMRA lowered, equal blank space above/below */

  /* ===== klanac / uspon / zid / humska: Meandrica word stays OVER the photo; Latin caption drops BELOW (moved by JS) ===== */
  .klanac-cap,.uspon-mon .ov-cap-tl,#m-zid .zid-cap,#m-humska .humska-cap{
    position:static;max-width:none;margin-top:18px;text-shadow:none;left:auto;right:auto;top:auto;bottom:auto}
  .klanac-cap h4,.uspon-mon .ov-cap-tl h4,#m-zid .zid-cap h4,#m-humska .humska-cap h4{font-size:11px;margin-bottom:8px}
  .klanac-cap p,.uspon-mon .ov-cap-tl p,#m-zid .zid-cap p,#m-humska .humska-cap p{font-size:13px;line-height:1.5}

  /* KLANAC: rotate photo + OLINFOS 90° CW to fill the screen (wrapper added by JS); smaller so OLINFOS fits */
  #m-klanac{width:100vw;margin-left:calc(50% - 50vw)}
  #m-klanac .klanac-stage{position:relative;width:100%;height:70vh;overflow:hidden}
  #m-klanac .rot90{position:absolute;top:50%;left:50%;width:70vh;height:100vw;
    transform:translate(-50%,-50%) rotate(90deg);transform-origin:center}
  #m-klanac .rot90 .klanac-bg{width:100%;height:100%;object-fit:cover;display:block}
  #m-klanac .rot90 .olinfos{bottom:8%}   /* keep OLINFOS off the edge so it never clips */
  #m-klanac .klanac-cap{padding:0 16px}

  /* HUMSKA: normal orientation (like before), full-bleed & enhanced, cropped a bit top+bottom; poem enlarged by JS */
  #m-humska{width:100vw;margin-left:calc(50% - 50vw)}
  #m-humska .ov-stage{position:relative;width:100%}
  #m-humska .humska-crop{aspect-ratio:2766/1300;overflow:hidden}   /* wider/shorter box => cover crops off top+bottom */
  #m-humska .humska-crop>img{width:100%;height:100%;object-fit:cover;object-position:center}
  #m-humska .humska-cap{padding:0 16px}

  /* vidikovac: big photo bleeding off the RIGHT; ISTRA over the photo; caption dropped BELOW (JS), never over the photo */
  #m-vidikovac{width:100vw;margin-left:calc(50% - 50vw)}
  #m-vidikovac .vid-stage{position:relative;width:100%;height:94vh;overflow:hidden;display:block;padding:0}
  #m-vidikovac .vid-photo{position:absolute;left:0;top:0;height:94vh;width:auto;max-width:none;object-fit:cover;margin:0}   /* bigger => more crop off the right */
  #m-vidikovac .vid-istra{position:absolute;left:3%;top:60%;z-index:2;line-height:.82;font-size:44vw}   /* lowered further, no shadow; size finalised by JS */
  #m-vidikovac .vid-cap{position:static;left:auto;right:auto;top:auto;bottom:auto;max-width:none;text-shadow:none;padding:16px 16px 0}
  #m-vidikovac .vid-cap h4{font-size:12px;margin-bottom:7px}
  #m-vidikovac .vid-cap p{font-size:12px;line-height:1.42}

  /* zid: gif full-bleed; crop the left (FIDES stays framed) + a bit off the bottom */
  .zid-mon .ov-stage{width:100vw;margin-left:calc(50% - 50vw)}
  #m-zid .zid-crop{aspect-ratio:auto;height:66vh}
  #m-zid .zid-crop>img{height:100%;object-fit:cover;object-position:64% top;transform:scale(1.12);transform-origin:top center}

  /* STUP: scroll reveal -> SS -> text */
  .monument.stup{grid-template-columns:1fr;gap:16px}
  .stup-ss{justify-content:flex-start;margin-top:40px}

  /* STOL: full-bleed, big photo (cropped on the right), OMNE/TRINUM/PERFECTUM over it */
  #m-stol{width:100vw;margin:8vh 0;margin-left:calc(50% - 50vw);grid-template-columns:1fr}
  #m-stol .stol-stage{width:100%;height:62vh}
  #m-stol .stol-stage>img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:left}
  #m-stol .mon-cap{margin:18px 16px 0}

  /* KATEDRA: full-bleed cropped photo (a bit smaller), caption below */
  .monument.katedra-mon{width:100vw;margin:6vh 0 6vh calc(50% - 50vw);min-height:auto;display:block;grid-template-columns:none}
  .monument.katedra-mon>img{height:60vh!important;width:100%;max-width:none;object-fit:cover;object-position:70% center;margin:0}
  .monument.katedra-mon .mon-cap{position:static;width:auto;right:auto;top:auto;margin:18px 16px 0}

  /* USPON: bigger full-bleed photo, cropped a bit on the sides; L-animation unchanged */
  #m-uspon{width:100vw;margin-left:calc(50% - 50vw)}
  #m-uspon .ov-stage{aspect-ratio:2652/1900}
  #m-uspon .ov-stage>img{object-position:center}
  #m-uspon .ov-cap-tl{padding:0 16px}

  /* LAP-AXES: GLAGOLJATI bigger on the photo; REGULAR/LOW/BLACK in a left-aligned column below */
  .lap-stage{height:auto;aspect-ratio:16/11}
  .lap-glag{font-size:30vw}
  .lap-axes .lap-ctrl{position:static;flex-direction:column;align-items:flex-start;justify-content:flex-start;
    gap:9px;margin-top:18px;top:auto;right:auto}
  .lap-axes .lap-ctrl button{font-size:15px;padding:3px 0;text-align:left}

  /* SPOMENIK: blinking word OVER the photo, caption below */
  .sfsn-mon{display:block;position:relative;gap:0}
  .sfsn-photo{width:100%;grid-column:auto;transform:none}
  .sfsn-word{position:absolute;top:0;left:0;width:100%;aspect-ratio:1718/1890;grid-column:auto;margin-left:0;
    display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;
    font-size:26vw;line-height:.9}
  .sfsn-cap{position:static;grid-column:auto;text-align:left;margin-top:20px}

  /* ODMORIŠTE stays stacked */
  .odm-row{grid-template-columns:1fr;gap:14px}
  .odm-cap{max-width:none}
  .odm-marquee-track{font-size:14vw}

  /* BAŠĆANSKA PLOČA (glago photo): full-bleed Baška-no-text image (swapped by JS) with a big AZ BUKI VEDE GLAGOL marquee over it */
  #glago .glago-photo{position:relative;width:100vw;margin-left:calc(50% - 50vw);margin-bottom:4vh;overflow:hidden}
  #glago .glago-photo img{width:100%;height:42vh;object-fit:cover;object-position:center}
  /* marquee fills the photo box and vertically centers the text so tall glyphs are never cropped */
  .glago-marquee{display:flex;align-items:center;position:absolute;inset:0;overflow:hidden;z-index:2;pointer-events:none}
  .glago-marquee-track{white-space:nowrap;font-family:'Meandrica';color:#fff;line-height:1;font-size:27vh;
    font-variation-settings:'wght' 500,'wdth' 500;will-change:transform}
  .glago-marquee-track .gsp{display:inline-block;width:.4em}

  /* CHARACTER SET: each style (REGULAR / LOW / BLACK) wraps into 3 lines = its own block */
  .glyph-grid{gap:34px}
  .glyph-row{grid-template-columns:repeat(9,1fr)}
  .glyph-cell{aspect-ratio:1/2.2}

  /* MAP / TESTER / MERCH */
  .aleja-map{margin-top:24px}
  .tester-text{font-size:64px}
  .tester-controls{gap:16px}
  .merch-grid{gap:18px}
}

@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  *{scroll-behavior:auto}
}
