:root {
  --bg: #F1ECDB; --text: #3C1B0F; --accent: #7E2625; --accent2: #868859; --dark: #292F17;
  --ochre: #9A7B2F; --burgundy: #5E2420; --gold: #E3A62B; --cream: #F6F0DD;
  --body: 'Helvetica Neue', Helvetica, Inter, Arial, sans-serif;
  --heading: '1689 GLC Garamond Pro', 'EB Garamond', Garamond, serif;
  --display: 'Playfair Display', 'EB Garamond', Georgia, serif;
  --line: color-mix(in srgb, var(--text) 22%, transparent);
  --rule: #DCB060; --card-line: #CDC9C0; --soft: #504C44;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hbase: var(--hbase-d, 72px); --ban: 0px; --hh: calc(var(--hbase) + var(--ban));
  --pad: clamp(24px, 6vw, 96px);
}
html.has-banner { --ban: 36px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent2) transparent; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--body); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
::selection { background: var(--accent); color: var(--bg); }
.eyebrow { font: italic 400 15px/1 var(--heading); letter-spacing: .02em; color: var(--accent); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header: frosted-glass band (blur / height / feather set in admin), turns light-on-dark over photos ---------- */
#header { position: fixed; inset: 0 0 auto 0; height: var(--hh); z-index: 50; color: var(--text); transition: transform .6s var(--ease); }
#header.hide { transform: translateY(calc(-1 * (var(--glass-h, 120px) + var(--ban, 0px)) - 12px)); }
/* The frosted-glass band is its own layer: it blurs the photo and page content under the header, but big photo titles stay crisp above it */
#glass { position: fixed; left: 0; right: 0; top: 0; height: calc(var(--glass-h, 120px) + var(--ban, 0px)); z-index: 10; pointer-events: none;
  background: color-mix(in srgb, var(--gt-light-c, var(--bg)) var(--gt-light-o, 80%), transparent);
  -webkit-backdrop-filter: blur(var(--glass-blur, 14px)); backdrop-filter: blur(var(--glass-blur, 14px));
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - var(--glass-feather, 55%)), transparent 100%); mask-image: linear-gradient(180deg, #000 calc(100% - var(--glass-feather, 55%)), transparent 100%);
  transition: background .5s, transform .6s var(--ease); }
html.lite #glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--gt-light-c, var(--bg)) max(var(--gt-light-o, 80%), 88%), transparent); }
html.lite.hdr-over #glass { background: color-mix(in srgb, var(--gt-dark-c, #140B05) max(var(--gt-dark-o, 35%), 45%), transparent); }
@media (prefers-reduced-transparency: reduce) { #glass { -webkit-backdrop-filter: none; backdrop-filter: none; } }
html.hdr-over #glass { background: color-mix(in srgb, var(--gt-dark-c, #140B05) var(--gt-dark-o, 35%), transparent); }
html.hdr-hide #glass { transform: translateY(calc(-100% - 12px)); }
#header.over { color: var(--cream); }
#header::after { content: ''; position: absolute; left: 0; right: 0; top: var(--hh); height: 1px; background: var(--line); opacity: 0; transition: opacity .5s; pointer-events: none; }
#header.line::after { opacity: 1; }
#header.over.line::after { background: rgba(246, 240, 221, .28); }
.hbar { height: var(--hbase); display: flex; align-items: center; gap: 28px; max-width: 1480px; margin: 0 auto; padding: 0 var(--pad); }
.logo { display: inline-flex; align-items: center; white-space: nowrap; line-height: 1; font-family: var(--logo-font, var(--body)); font-size: var(--logo-size, 26px); font-weight: var(--logo-weight, 500); font-style: var(--logo-style, normal); text-transform: var(--logo-case, none); letter-spacing: var(--logo-ls, -.02em); color: var(--logo-c-light, var(--text)); transition: color .5s; }
#header.over .logo { color: var(--logo-c-dark, var(--cream)); }
.logo img { display: block; height: var(--logo-img-h, 32px); width: auto; max-width: 60vw; }
nav.main { margin-left: auto; display: flex; gap: var(--menu-gap, 30px); align-items: center; }
.nav-item { position: relative; height: var(--hbase); display: flex; align-items: center; }
.nav-item > a { position: relative; display: block; padding: 6px 0; line-height: 1.3; font-family: var(--menu-font, var(--body)); font-size: var(--menu-size, 16px); font-weight: var(--menu-weight, 400); text-transform: var(--menu-case, none); letter-spacing: var(--menu-ls, 0); color: var(--menu-c-light, var(--text)); transition: color .3s; }
.nav-item > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav-item > a:hover, .nav-item > a.on { color: var(--menu-h-light, var(--accent)); }
.nav-item > a:hover::after, .nav-item > a.on::after { transform: scaleX(1); }
#header.over .nav-item > a { color: var(--menu-c-dark, var(--cream)); }
#header.over .nav-item > a:hover, #header.over .nav-item > a.on { color: var(--menu-h-dark, var(--gold)); }
#header.no-ul .nav-item > a::after { display: none; }
.nav-item > a.as-btn { border: 1px solid currentColor; padding: 9px 20px; border-radius: 999px; } .nav-item > a.as-btn::after { display: none; }
.sub { position: absolute; top: 100%; left: -16px; min-width: 220px; background: var(--bg); color: var(--text); border: 1px solid var(--line); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .25s var(--ease); }
.nav-item:hover .sub, .nav-item:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 16px; font-size: 15px; color: var(--text); }
.sub a:hover { color: var(--accent); background: color-mix(in srgb, var(--text) 5%, transparent); }
.lang { display: flex; gap: 6px; font-size: calc(var(--menu-size, 16px) - 3px); font-family: var(--menu-font, var(--body)); color: var(--menu-c-light, var(--text)); }
#header.over .lang { color: var(--menu-c-dark, var(--cream)); }
#header.no-lang .lang { display: none; }
.lang button { background: none; border: 0; font: inherit; padding: 4px 6px; cursor: pointer; color: inherit; opacity: .55; }
.lang button.on { opacity: 1; border-bottom: 1px solid var(--menu-h-light, var(--accent)); }
#header.over .lang button.on { border-bottom-color: var(--menu-h-dark, var(--gold)); }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; color: inherit; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; content: ''; margin: auto; }
.burger span::before { position: absolute; top: -7px; left: 0; } .burger span::after { position: absolute; top: 7px; left: 0; }
.banner { display: block; height: 36px; line-height: 36px; text-align: center; background: var(--accent); color: var(--bg); font-size: 13px; letter-spacing: .05em; }
.banner:hover { background: var(--dark); }
#progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; z-index: 70; pointer-events: none; }

/* ---------- Buttons / links ---------- */
.more { display: inline-block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid currentColor; transition: color .2s, letter-spacing .3s var(--ease); }
.more:hover { color: var(--accent); letter-spacing: .16em; }
.btn { display: inline-block; background: var(--accent); color: var(--bg); border: 0; padding: 14px 28px; font: 500 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--text); }

/* ---------- Images / placeholders ---------- */
.img { position: relative; overflow: hidden; background: var(--ph, var(--accent2)); }
.img img { width: 100%; height: 100%; object-fit: cover; }
.img.ph::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 60%), linear-gradient(160deg, transparent, rgba(0,0,0,.25)); }
.img.tall { aspect-ratio: 4 / 5; }
.img.wide { aspect-ratio: 16 / 9; margin-bottom: 8px; }

/* ---------- Scene reveal animations (replay each time a scene enters) ---------- */
[data-a] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease), clip-path 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
[data-a="up"] { transform: translateY(46px); }
[data-a="left"] { transform: translateX(-70px); }
[data-a="right"] { transform: translateX(70px); }
[data-a="clip"] { opacity: 1; clip-path: inset(0 0 100% 0); }
[data-a="clip-x"] { opacity: 1; clip-path: inset(0 100% 0 0); }
[data-a="clip-r"] { opacity: 1; clip-path: inset(0 0 0 100%); }
[data-a="zoom"] { transform: scale(1.12); }
.in [data-a] { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.in [data-a="zoom"] { transform: scale(1); }

/* ---------- Home scenes ---------- */
html.snap { scroll-snap-type: y proximity; }
.scene { min-height: 100vh; scroll-snap-align: start; display: flex; align-items: center; padding: calc(var(--hh) + 32px) 0 48px; position: relative; overflow: hidden; }
.scene.dark { background: var(--dark); color: var(--bg); }
.scene.dark .eyebrow { color: color-mix(in srgb, var(--accent2) 80%, white); }
.scene > .wrap { width: 100%; }
.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 40; padding: 10px 6px; background: color-mix(in srgb, var(--bg) 85%, transparent); border-radius: 20px; transition: background .4s; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--text); background: transparent; padding: 0; cursor: pointer; transition: .3s; }
.dots button.on { background: var(--accent); border-color: var(--accent); transform: scale(1.4); }
.dots.light { background: color-mix(in srgb, var(--dark) 55%, transparent); }
.dots.light button { border-color: var(--cream); } .dots.light button.on { background: var(--gold); border-color: var(--gold); }

/* Big display titles (hero + photo scenes). Lines mask-reveal; *text* in the admin = upright capitals. */
.big { font-family: var(--display); font-style: italic; font-weight: 700; line-height: 1.04; letter-spacing: -.012em; color: var(--tc, var(--gold)); font-size: clamp(38px, 6.6vw, 108px); max-width: min(64vw, 15em); margin: 0; text-shadow: 0 2px 26px rgba(0, 0, 0, .35); }
.big.sans { font-family: var(--body); font-style: normal; font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.big .cap { font-style: normal; text-transform: uppercase; font-weight: 800; letter-spacing: 0; }
.big.sans .cap { text-transform: none; font-weight: 600; }
.ln { display: block; overflow: hidden; padding: .08em .05em .16em; margin: -.08em -.05em -.16em; }
.tl { display: block; transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--li, 0) * 120ms + .1s); }
.slide-txt.on .tl, .in .tl { transform: none; }
.al-left { align-items: flex-start; text-align: left; } .al-center { align-items: center; text-align: center; } .al-right { align-items: flex-end; text-align: right; }
.ta-left .big, .ta-left p { text-align: left; } .ta-center .big, .ta-center p { text-align: center; } .ta-right .big, .ta-right p { text-align: right; }
.vl-top { justify-content: flex-start; } .vl-center { justify-content: center; } .vl-bottom { justify-content: flex-end; }

/* Hero: full-bleed photo slider with the title right on the picture */
.scene.hero { padding: 0; display: block; background: #140b05; color: var(--cream); }
.hero-in { position: relative; height: var(--hero-h, 100vh); min-height: 520px; width: 100%; }
.hero-img { position: absolute; inset: 0; overflow: hidden; }
.hero-img::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(14,7,3,.55) 0%, rgba(14,7,3,.1) 32%, rgba(14,7,3,.12) 55%, rgba(14,7,3,.74) 100%), radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.35)); }
.slide-img { position: absolute; inset: -5vh 0; opacity: 0; transition: opacity 1.2s; }
.slide-img.on { opacity: 1; }
.slide-img .img { width: 100%; height: 100%; }
.slide-img.on .img { animation: kb 10s linear forwards; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-text { position: absolute; inset: 0; z-index: 12; pointer-events: none; }
.slide-txt { position: absolute; inset: 0; padding: calc(var(--hh) + 28px) var(--pad) 112px; display: flex; flex-direction: column; gap: 20px; opacity: 0; transition: opacity .6s; }
.slide-txt.on { opacity: 1; }
.slide-txt .eyebrow { color: var(--cream); opacity: .9; }
.slide-txt p { max-width: 44ch; margin: 0; font-size: 18px; color: var(--cream); }
.slide-txt .more { color: var(--cream); } .slide-txt .more:hover { color: var(--gold); }
.slide-txt > .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.slide-txt.on > .rv { opacity: 1; transform: none; transition-delay: .5s; }
.slide-txt.on > div.rv { transition-delay: .68s; }
.big-link { display: block; color: inherit; }
.slide-txt.on a { pointer-events: auto; }
.scroll-hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 13; color: var(--cream); font: italic 15px var(--heading); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint::after { content: ''; width: 1px; height: 36px; background: var(--cream); animation: sh 1.8s infinite; transform-origin: top; }
@keyframes sh { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Photo scenes: one full-viewport photo with an optional big title and small italic caption */
.scene.photo { padding: 0; display: block; height: 100vh; height: 100svh; min-height: 520px; background: #140b05; color: var(--cream); }
.photo-bg { position: absolute; inset: -7vh 0; }
.photo-bg .img { width: 100%; height: 100%; }
.scene.photo .shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14,7,3,.5), rgba(14,7,3,.08) 38%, rgba(14,7,3,.55)); }
.scene.photo.tone-light .shade { background: linear-gradient(180deg, rgba(14,7,3,.3), transparent 40%, rgba(14,7,3,.25)); }
.photo-txt { position: absolute; inset: 0; z-index: 12; padding: calc(var(--hh) + 28px) var(--pad) 72px; display: flex; flex-direction: column; gap: 20px; }
.photo-txt .eyebrow { color: var(--cream); font-size: clamp(15px, 1.5vw, 20px); }
.photo-txt .more { color: var(--cream); } .photo-txt .more:hover { color: var(--gold); }

/* Frames: cinematic stacked bands (reference: Palazzo Altemps) */
.scene.frames { padding: var(--hh) 0 0; align-items: stretch; background: var(--dark); }
.frames-in { width: 100%; display: grid; grid-template-rows: repeat(var(--n, 3), 1fr); height: calc(100vh - var(--hh)); min-height: 420px; }
.frame { position: relative; overflow: hidden; display: block; background: var(--dark); }
.frame-img, .frame-img .img { position: absolute; inset: 0; } .frame-img { transition-duration: 1.6s; }
.frame .shade { position: absolute; inset: 0; pointer-events: none; }
.frame .shade.dk { background: linear-gradient(90deg, rgba(20,10,5,.78), rgba(20,10,5,.25) 60%, rgba(20,10,5,.1)); }
.frame .shade.lt { background: linear-gradient(0deg, rgba(41,47,23,.25), transparent 60%); }
.frame .cap { position: absolute; top: 50%; margin-top: -.7em; font: italic 400 clamp(15px, 1.5vw, 20px)/1.2 var(--heading); color: var(--cream); letter-spacing: .02em; z-index: 12; }
.cap.left { left: max(28px, 7vw); } .cap.right { right: max(28px, 7vw); } .cap.center { left: 50%; translate: -50% 0; }
.frame:hover .frame-img img { transform: scale(1.03); } .frame-img img { transition: transform 1.2s var(--ease); }

/* Seal (echo of the round print stickers) */
.seal { position: absolute; right: clamp(24px, 4vw, 64px); bottom: 36px; width: 112px; height: 112px; z-index: 13; filter: drop-shadow(0 4px 14px rgba(0,0,0,.3)); }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.s-bg { fill: var(--cream); } .s-ring { fill: none; stroke: var(--ochre); stroke-width: .8; }
.s-txt { font: 600 8.6px var(--body); fill: var(--burgundy); letter-spacing: .08em; }
.s-mono { font: italic 400 34px var(--heading); fill: var(--burgundy); }
.s-spin { transform-origin: 60px 60px; animation: spin 36s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll-linked parallax: --p (signed) / --pa (absolute) are set per scene by motion.js ---------- */
.scene:not(.hero):not(.frames):not(.photo) > .wrap { transform: translate3d(0, calc(var(--p, 0) * 14vh), 0); will-change: transform; }
.hero-text { transform: translate3d(calc(var(--p, 0) * -7vw), 0, 0); opacity: calc(1 - var(--pa, 0) * 1.1); will-change: transform, opacity; }
.hero .slide-img { transform: translate3d(0, calc(var(--p, 0) * 5vh), 0); }
.hero .seal { transform: translate3d(0, calc(var(--p, 0) * -6vh), 0); }
.photo-bg .img { transform: translate3d(0, calc(var(--p, 0) * 6vh), 0) scale(1.03); will-change: transform; }
.photo-txt { transform: translate3d(0, calc(var(--p, 0) * 6vh), 0); opacity: calc(1 - var(--pa, 0) * 1.1); }
.frame-img .img { transform: translate3d(calc(var(--p, 0) * 7% * var(--dir, 1)), 0, 0) scale(1.14); will-change: transform; }
.frame:nth-child(even) { --dir: -1; }

/* ---------- About / sections / cards ---------- */
.statement { font: italic 400 clamp(28px, 4.4vw, 62px)/1.18 var(--heading); max-width: 22ch; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
.sec-head h2 { font-size: clamp(22px, 2.3vw, 31px); font-weight: 600; letter-spacing: -.015em; }
.dark .sec-head { border-color: color-mix(in srgb, var(--bg) 25%, transparent); }
.card { display: block; border: 1px solid var(--card-line); border-radius: 14px; overflow: hidden; background: transparent; transition: border-color .3s, box-shadow .4s var(--ease), transform .5s var(--ease); }
.card:hover { border-color: var(--rule); box-shadow: 0 14px 34px rgba(25, 22, 15, .1); transform: translateY(-4px); }
.card-b { padding: 12px 14px 16px; min-height: 66px; }
.card .img { aspect-ratio: 16 / 10; margin: 0; }
.card .img img { transition: transform .8s var(--ease); }
.card:hover .img img { transform: scale(1.05); }
.card .img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(41,47,23,.4), transparent 55%); opacity: 0; transition: opacity .5s; z-index: 1; }
.card:hover .img::before { opacity: 1; }
.card h3 { font-size: 16px; font-weight: 600; margin: 0 0 3px; line-height: 1.3; transition: color .3s; }
.card-ex { margin: 0; font-size: 14px; line-height: 1.4; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h3 { color: var(--accent); }
.meta { font-size: 13px; opacity: .7; }
.play { position: absolute; left: 14px; bottom: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; transition: transform .45s var(--ease); }
.card:hover .play { transform: scale(1.18); }
.play::before { content: ''; border-left: 12px solid var(--accent); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.tag { display: inline-block; font: italic 14px var(--heading); color: var(--accent); margin-right: 10px; }
.list-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.list-row .d { font: italic 400 14px var(--body); }
.list-row h3 { font-size: 16px; font-weight: 600; }
.list-row p { margin: 4px 0 0; font-size: 14px; color: var(--soft); }
.dark .list-row { border-color: color-mix(in srgb, var(--bg) 22%, transparent); }
.dark .list-row .d, .dark .tag { color: color-mix(in srgb, var(--accent2) 70%, white); }
.reg-btn { background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; color: inherit; font-family: var(--body); }

/* ---------- Inner pages ---------- */
.page { padding: calc(var(--hh) + 64px) 0 96px; min-height: 100vh; }
.page .wrap { animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
#app.page-in { animation: pageIn .7s var(--ease); }
@keyframes pageIn { from { opacity: 0; } }
.page h1 { font-size: clamp(36px, 5vw, 72px); margin: 10px 0 40px; font-weight: 400; letter-spacing: -.025em; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.prose p { max-width: 62ch; font-size: 18px; margin: 0 0 1.2em; }
.prose.drop p:first-child::first-letter { font: italic 400 4.2em/.8 var(--heading); float: left; padding: 6px 12px 0 0; color: var(--accent); }
.back { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; display: inline-block; margin-bottom: 24px; opacity: .75; }
.video-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.video-cover { display: block; aspect-ratio: 16 / 9; margin-bottom: 22px; position: relative; }
.video-cover .play { width: 72px; height: 72px; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.video-cover:hover .play { transform: translate(-50%, -50%) scale(1.12); }
.video-cover .play::before { border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; }
.side h3 { font: italic 400 22px var(--heading); margin-bottom: 18px; }
.side-item { display: grid; grid-template-columns: 120px 1fr; gap: 12px; margin-bottom: 18px; }
.side-item .img { aspect-ratio: 16 / 10; } .side-item h4 { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.3; }
.acts { display: flex; gap: 28px; align-items: center; margin: 18px 0; font-size: 15px; opacity: .85; }
.acts span { display: inline-flex; align-items: center; gap: 8px; } .acts svg { width: 26px; height: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 32px; }
.filters button { background: none; border: 0; border-bottom: 1px solid transparent; font: italic 17px var(--heading); cursor: pointer; color: inherit; padding: 2px 0; opacity: .7; }
.filters button.on { opacity: 1; color: var(--accent); border-color: var(--accent); }
.share { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 36px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share button { background: none; border: 1px solid var(--line); padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; color: inherit; }
.share button:hover { border-color: var(--accent); color: var(--accent); }
.comments h2 { font-size: 28px; margin-bottom: 20px; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); } .comment p { margin: 4px 0 0; }
.comments form.f { margin-top: 28px; }

/* ---------- Forms ---------- */
form.f { display: grid; gap: 14px; max-width: 520px; }
.f input, .f textarea { width: 100%; padding: 13px 14px; font: inherit; background: transparent; color: inherit; border: 1px solid var(--line); border-radius: 0; }
.f input:focus, .f textarea:focus { border-color: var(--accent); outline: none; }
.f .hp { position: absolute; left: -9999px; }
.f[hidden] { display: none; } .reg { margin-top: 14px; max-width: 420px; }
.msg { font: italic 18px var(--heading); color: var(--accent); }
.dark .f input { border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.dark .btn { background: var(--bg); color: var(--dark); }

/* ---------- Footer ---------- */
footer.site { background: var(--dark); color: var(--bg); padding: 72px 0 36px; scroll-snap-align: end; }
footer.site .wrap { display: block; }
footer.site a:hover { color: color-mix(in srgb, var(--accent2) 60%, white); }
footer.site small { opacity: .6; }
.f-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 36px; border-bottom: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); }
.f-mark { font: italic 400 clamp(44px, 9vw, 132px)/.95 var(--heading); letter-spacing: -.01em; }
.f-cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; padding: 36px 0; font-size: 15px; line-height: 1.9; }
.f-tag { margin: 0; max-width: 28ch; font: italic 400 20px/1.35 var(--heading); }
.reveal-scroll { opacity: 0; transform: translateY(32px); transition: .8s var(--ease); }
.reveal-scroll.in { opacity: 1; transform: none; }

/* ---------- Intro curtain (first visit per session) ---------- */
#intro { position: fixed; inset: 0; z-index: 200; background: var(--dark); color: var(--bg); display: grid; place-items: center; animation: introOut 2s cubic-bezier(.77, 0, .18, 1) forwards; }
#intro span { font: italic 400 clamp(34px, 6vw, 88px)/1 var(--heading); animation: introText 1.2s var(--ease) both; }
@keyframes introOut { 0%, 58% { transform: translateY(0); } 100% { transform: translateY(-101%); } }
@keyframes introText { from { opacity: 0; transform: translateY(28px); } }
html.intro-run .slide-txt.on > .rv, html.intro-run .slide-txt.on .tl { opacity: 0 !important; transform: translateY(112%) !important; }
html.intro-run .hero-img .slide-img.on { opacity: 0 !important; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  :root { --hbase: var(--hbase-m, 64px); }
  .burger { display: block; } .lang { margin-left: 0; }
  nav.main { position: fixed; top: var(--hh); left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); display: none; margin: 0; max-height: calc(100vh - var(--hh)); overflow: auto; }
  nav.main.open { display: flex; }
  #header nav.main .nav-item > a, #header.over nav.main .nav-item > a { color: var(--text); font-size: 17px; }
  #header nav.main .nav-item > a:hover, #header nav.main .nav-item > a.on, #header.over nav.main .nav-item > a:hover, #header.over nav.main .nav-item > a.on { color: var(--accent); }
  .nav-item { height: auto; display: block; } .nav-item > a { padding: 12px 0; } .nav-item > a::after { bottom: 6px; }
  .nav-item > a.as-btn { display: inline-block; margin: 8px 0; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 0 14px; background: none; }
  .cols, .grid3 { grid-template-columns: 1fr; } .cols .card:nth-child(2) { margin-top: 0; } .video-layout { grid-template-columns: 1fr; }
  .list-row { grid-template-columns: 1fr; gap: 4px; } .dots { display: none; }
  html.snap { scroll-snap-type: y proximity; }
  .scene { min-height: auto; padding-top: calc(var(--hh) + 16px); }
  .scene.hero, .scene.photo { padding: 0; }
  .scene.photo { height: 78svh; min-height: 440px; }
  .hero-in { min-height: 520px; }
  .big { font-size: clamp(34px, 10.4vw, 58px); max-width: 92vw; }
  .slide-txt { padding-bottom: 120px; }
  .hero-ctl { bottom: 22px; grid-template-columns: 1fr; justify-items: center; } .hc-l, .hc-r { display: none; }
  .mv-top { justify-content: flex-start; } .mv-center { justify-content: center; } .mv-bottom { justify-content: flex-end; }
  .scroll-hint { display: none; }
  .seal { width: 76px; height: 76px; right: 16px; bottom: 30px; }
  .scene:not(.hero):not(.frames):not(.photo) > .wrap { transform: translate3d(0, calc(var(--p, 0) * 7vh), 0); }
  .frames-in { height: auto; grid-template-rows: none; } .frame { height: 30vh; min-height: 170px; } .scene.frames { min-height: auto; }
  .f-cols { grid-template-columns: 1fr 1fr; }
}
@media (pointer: coarse) { html.snap { scroll-snap-type: y proximity; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } html.snap { scroll-snap-type: none; }
  [data-a], .slide-txt > .rv, .reveal-scroll, .tl { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .scene:not(.hero):not(.frames):not(.photo) > .wrap, .hero-text, .hero .slide-img, .hero .seal, .photo-bg .img, .photo-txt, .frame-img .img { transform: none !important; opacity: 1 !important; }
  .slide-img.on .img, .scroll-hint::after, .s-spin { animation: none; }
  #app.page-in, .page .wrap { animation: none; } #intro { display: none; }
}

/* ===== Slider controls (Apple-style pager + pill buttons) and CTA pills ===== */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(246, 240, 221, .55); background: rgba(20, 11, 5, .32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--cream); font: 400 14px/1 var(--body); cursor: pointer; pointer-events: auto; transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease); }
.pill:hover { background: var(--cream); color: var(--dark); border-color: var(--cream); transform: translateY(-1px); }
.pill-dark { border-color: var(--text); background: transparent; color: var(--text); -webkit-backdrop-filter: none; backdrop-filter: none; }
.pill-dark:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.hero-ctl { position: absolute; left: var(--pad); right: var(--pad); bottom: 30px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; z-index: 13; pointer-events: none; }
.hero-ctl > * { pointer-events: auto; }
.hc-l { display: flex; justify-content: flex-start; } .hc-r { display: flex; justify-content: flex-end; }
.pills { display: flex; gap: 10px; }
.pager { display: flex; align-items: center; gap: 8px; }
.pg-dots, .pg-toggle { background: rgba(28, 24, 18, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pg-dots { display: flex; gap: 9px; align-items: center; padding: 13px 16px; border-radius: 999px; }
.pg-dot { position: relative; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .5); border: 0; padding: 0; overflow: hidden; cursor: pointer; transition: width .55s var(--ease), background .3s; }
.pg-dot.on { width: 38px; background: rgba(255, 255, 255, .32); }
.pg-dot i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.pg-dot.on.run i { animation: fillx var(--ms, 6s) linear forwards; }
.pager.static .pg-dot.on i { transform: scaleX(1); }
.pager.is-paused .pg-dot.on.run i, .pager.hover-paused .pg-dot.on.run i { animation-play-state: paused; }
@keyframes fillx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pg-toggle { width: 38px; height: 38px; border-radius: 50%; border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; }
.pg-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.pager.is-paused .i-pause, .pager:not(.is-paused) .i-play { display: none; }
.scroll-hint { left: auto; right: var(--pad); transform: none; bottom: 34px; }
.pill-cta { margin-top: 6px; }

/* ===== About + Contact (mock: "Haqqımda" | "Əlaqə") ===== */
.ac-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.ac-grid h2 { font-size: clamp(24px, 2.7vw, 36px); font-weight: 600; letter-spacing: -.02em; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.ac-about .prose p { font-size: 17px; max-width: 58ch; }
.soc { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.soc li, .soc a { display: flex; align-items: center; gap: 12px; }
.soc a:hover { color: var(--accent); }
.soc-ic { width: 24px; height: 24px; border-radius: 6px; background: var(--gold); color: var(--dark); display: grid; place-items: center; flex: none; }
.soc-ic svg { width: 14px; height: 14px; fill: currentColor; }
.ac-sub form.f { max-width: 380px; margin-top: 10px; }
@media (max-width: 900px) { .ac-grid { grid-template-columns: 1fr; } }
.pill { white-space: nowrap; }
@media (max-width: 900px) {
  .hero-ctl { grid-template-columns: 1fr; justify-items: center; bottom: 22px; } .hc-l, .hc-r { display: none; }
  .scroll-hint { display: none; }
  .pill { padding: 9px 16px; }
}

/* ===== Final design pass (from the finished mock) ===== */
.ac-grid h2 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; letter-spacing: -.015em; border-bottom: 0; padding-bottom: 0; margin-bottom: 16px; }
.ac-about .prose p { color: var(--soft); font-size: 16px; line-height: 1.55; }
.soc { gap: 11px; font-size: 15px; }
.soc-ic { background: var(--gold); color: #fff; width: 22px; height: 22px; border-radius: 5px; }
.soc-ic svg { width: 13px; height: 13px; }
.meta, .tag { color: var(--soft); }

/* ===== "Listen on" / follow badges ===== */
.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.badge { display: inline-flex; align-items: center; gap: 12px; padding: 9px 20px 9px 10px; border-radius: 14px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .14); transition: transform .35s var(--ease), box-shadow .35s; }
.badge:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .28); color: #fff; }
.badge-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bc, #444); color: #fff; display: grid; place-items: center; flex: none; }
.badge-ic.round { border-radius: 50%; }
.badge-ic svg { width: 24px; height: 24px; }
.badge-t { display: flex; flex-direction: column; line-height: 1.05; }
.badge-t small { font-size: 12.5px; opacity: .92; letter-spacing: .01em; }
.badge-t b { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.badge-img img { display: block; height: 54px; width: auto; border-radius: 10px; transition: transform .35s var(--ease); } .badge-img:hover img { transform: translateY(-3px); }
footer.site .badges { padding: 28px 0 4px; margin: 0; border-bottom: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); padding-bottom: 32px; }
footer.site .badge:hover { color: #fff; }

/* badge looks: black (official), light (cream pages), gold, brand colour */
.bs-light .badge { background: transparent; color: var(--text); border-color: var(--card-line); }
.bs-light .badge:hover { color: var(--text); border-color: var(--rule); box-shadow: 0 10px 24px rgba(25, 22, 15, .12); }
.bs-gold .badge { background: var(--gold); color: #19160F; border-color: transparent; }
.bs-gold .badge:hover { color: #19160F; }
.bs-gold .badge-ic { background: #19160F; color: var(--gold); }
.bs-brand .badge { background: var(--bc, #444); color: #fff; border-color: transparent; }
.bs-brand .badge:hover { color: #fff; }
.bs-brand .badge-ic { background: rgba(255, 255, 255, .22); }

/* Markdown content (articles, pages, descriptions) */
.prose h2, .prose h3, .prose h4 { font-weight: 600; letter-spacing: -.015em; margin: 1.6em 0 .5em; line-height: 1.2; }
.prose h2 { font-size: 28px; } .prose h3 { font-size: 22px; } .prose h4 { font-size: 18px; }
.prose ul, .prose ol { max-width: 62ch; font-size: 18px; margin: 0 0 1.2em; padding-left: 1.3em; } .prose li { margin: .3em 0; }
.prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--gold); font: italic 400 22px/1.4 var(--heading); max-width: 56ch; }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; } .prose a:hover { color: var(--text); }
.prose img { max-width: 100%; height: auto; margin: 1.4em 0; border-radius: 10px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; max-width: 62ch; }
.prose code { background: color-mix(in srgb, var(--text) 8%, transparent); padding: .1em .4em; border-radius: 4px; font-size: .9em; }

/* ===== QA fixes ===== */
.back { margin-right: 16px; }
.card .acts { margin: 10px 0 0; gap: 18px; font-size: 13px; } .card .acts svg { width: 20px; height: 20px; }
.nf { font-size: 20px; margin: 0 0 24px; }
.btn { background: var(--text); color: var(--bg); } .btn:hover { background: var(--gold); color: var(--text); }
.video-layout .badges + .btn, .video-layout .prose + .btn { margin-top: 18px; }
.reg-btn { justify-self: start; }
@media (max-width: 900px) { .video-layout { grid-template-columns: 1fr !important; } .list-row .reg-btn { justify-self: start; } }

/* =====================================================================
   Page layout = the design mock: photo, Seminarlar, two cards, Haqqımda | Əlaqə.
   Sizes follow the mock's proportions (mock width 382px → 1vw ≈ 3.82px there).
   ===================================================================== */
.layout-page #header { position: absolute; }
.layout-page #glass, .layout-page #progress { display: none; }
.layout-page [data-a] { opacity: 1; transform: none; clip-path: none; transition: none; }
.layout-page .logo { font-size: clamp(18px, 2.4vw, 38px); }
.layout-page .scene.hero { min-height: 0; height: auto; padding: 0; display: block; }
.layout-page .scene.hero .hero-in { height: auto; aspect-ratio: 382 / 219; min-height: 260px; max-height: 92vh; }
.layout-page .hero-img::before { background: linear-gradient(180deg, rgba(14, 7, 3, .42) 0%, transparent 30%); }
.layout-page .slide-img { inset: 0; } .layout-page .slide-img.on .img { animation: none; }
.layout-page .slide-txt { padding: calc(var(--hbase) - 6px) clamp(12px, 3.4vw, 64px) 6% clamp(12px, 3.4vw, 64px); }
.layout-page .big { font-size: clamp(30px, 8.7vw, 132px); line-height: 1; max-width: none; text-shadow: none; }
.layout-page .hero-text { transform: none; opacity: 1; }
.pg { background: var(--bg); }
.pg-wrap { padding: 0 clamp(12px, 3.6vw, 64px); max-width: 1500px; margin: 0 auto; }
.pg-sem { padding-top: clamp(18px, 5vw, 72px); }
.pg-h { font-size: clamp(18px, 4.2vw, 46px); font-weight: 600; letter-spacing: -.015em; margin: 0; padding-bottom: clamp(6px, 1.6vw, 18px); border-bottom: 1.5px solid var(--rule); width: 92%; }
.pg-row { display: grid; grid-template-columns: clamp(70px, 21vw, 260px) 1fr; align-items: center; height: clamp(38px, 9.4vw, 96px); border-bottom: 1.5px solid var(--rule); width: 92%; font-size: clamp(11px, 2.2vw, 22px); color: var(--text); }
.pg-row .d { font-style: italic; } .pg-row b { font-weight: 600; } .pg-row:hover b { color: var(--accent); }
.pg-vid { padding-top: clamp(26px, 8.6vw, 110px); }
.pg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 4.7vw, 56px); }
.layout-page .card { border-radius: clamp(8px, 2.6vw, 18px); border-color: #A8A399; background: transparent; }
.layout-page .card:hover { transform: none; box-shadow: none; border-color: var(--rule); }
.layout-page .card .img { aspect-ratio: 16 / 9; }
.layout-page .card-b { padding: clamp(6px, 1.5vw, 16px) clamp(8px, 2vw, 20px) clamp(8px, 2.2vw, 22px); min-height: clamp(34px, 9vw, 96px); }
.layout-page .card h3 { font-size: clamp(11px, 2.3vw, 21px); font-weight: 600; margin: 0 0 2px; }
.layout-page .card-ex { font-size: clamp(10px, 2.2vw, 19px); color: var(--text); -webkit-line-clamp: 1; }
.layout-page .card .play { display: none; }
.pg-ac { padding: clamp(26px, 7.4vw, 100px) 0 clamp(30px, 8vw, 110px); }
.pg-ac-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(16px, 6vw, 96px); padding-left: clamp(18px, 5.6vw, 90px); }
.pg-h2 { font-size: clamp(16px, 3.6vw, 38px); font-weight: 600; letter-spacing: -.01em; margin: 0 0 clamp(8px, 2.6vw, 28px); }
.pg-p p { font-size: clamp(10px, 2.1vw, 19px); line-height: 1.4; max-width: 42ch; margin: 0; color: var(--text); }
.layout-page .soc { gap: clamp(6px, 1.4vw, var(--ic-gap, 14px)); font-size: clamp(10px, 2.1vw, var(--ic-text, 19px)); }
.layout-page .soc-ic { width: clamp(11px, 2.4vw, var(--ic-size, 24px)); height: clamp(11px, 2.4vw, var(--ic-size, 24px)); }
.layout-page .soc-ic svg { width: 70%; height: 70%; }
.pg-foot { background: var(--bg); padding: 0 0 28px; color: var(--soft); }
.pg-foot small { display: block; padding-top: 18px; border-top: 1px solid var(--card-line); font-size: 13px; }
.pg-foot .badges { margin: 0 0 22px; gap: 10px; }
.pg-foot .badge { gap: 9px; padding: 6px 14px 6px 7px; border-radius: 10px; }
.pg-foot .badge-ic { width: 30px; height: 30px; border-radius: 8px; } .pg-foot .badge-ic svg { width: 18px; height: 18px; }
.pg-foot .badge-t small { font-size: 10px; } .pg-foot .badge-t b { font-size: 15px; }
.pg-foot .badge-img img { height: 40px; }
.pg-foot a:hover { color: var(--text); }
.layout-page .page { padding-top: calc(var(--hh) + 40px); min-height: 70vh; }
@media (max-width: 900px) {
  .layout-page .slide-txt { padding-bottom: 6%; }
  .pg-row, .pg-h { width: 100%; }
}

/* contact icons: every platform looks the same; set in admin → «Иконки контактов» */
.soc-ic { background: var(--ic-bg, var(--gold)); color: var(--ic-fg, #fff); border-radius: var(--ic-radius, 22%); }
.ic-brand .soc-ic { background: var(--bc); color: #fff; }
.ic-plain .soc-ic { background: none; color: var(--ic-bg, var(--gold)); } .ic-plain .soc-ic svg { width: 100%; height: 100%; }
/* page layout: every platform as the same big badge, one per row, equal width */
.pg-ac .badges { display: grid; grid-template-columns: minmax(0, max-content); gap: clamp(6px, 1.2vw, 12px); margin: 0; }
.pg-ac .badge { width: 100%; }
.pg-ac .badge { gap: clamp(7px, 1vw, 12px); padding: clamp(5px, .7vw, 9px) clamp(10px, 1.4vw, 20px) clamp(5px, .7vw, 9px) clamp(5px, .7vw, 10px); border-radius: clamp(8px, 1vw, 14px); }
.pg-ac .badge-ic { width: clamp(24px, 2.8vw, 40px); height: clamp(24px, 2.8vw, 40px); border-radius: clamp(6px, .7vw, 10px); }
.pg-ac .badge-ic svg { width: 60%; height: 60%; }
.pg-ac .badge-t small { font-size: clamp(8px, .9vw, 12.5px); } .pg-ac .badge-t b { font-size: clamp(11px, 1.45vw, 21px); white-space: nowrap; }

/* an uploaded picture used as the platform icon fills the icon tile */
.badge-ic.has-img, .soc-ic.has-img { background: none; overflow: hidden; }
.badge-ic.has-img img, .soc-ic.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* ===== Feedback round (owner): Times for big headings, Helvetica for the rest, no small italics ===== */
.page h1, .pg-h, .pg-h2, .about-contact h2, .sec-head h2, .art-title, .video-title { font-family: var(--title, 'Times New Roman', Times, serif); font-weight: var(--title-weight, 400); letter-spacing: -.01em; }
.page h1 { letter-spacing: -.015em; }
html:not(.small-italic) .eyebrow, html:not(.small-italic) .list-row .d, html:not(.small-italic) .pg-row .d,
html:not(.small-italic) .tag, html:not(.small-italic) .meta, html:not(.small-italic) .card-date, html:not(.small-italic) .filters button { font-style: normal; font-family: var(--body); }

/* header actions: search · subscribe · sign in */
.hact { display: flex; align-items: center; gap: 14px; margin-left: 18px; }
.ha-search { width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 0; color: inherit; cursor: pointer; border-radius: 50%; color: var(--menu-c-light, var(--text)); }
.ha-search svg { width: 21px; height: 21px; }
.ha-search:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.ha-sub { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: 600 15px/1 var(--body); cursor: pointer; white-space: nowrap; transition: filter .2s; }
.ha-sub:hover { filter: brightness(1.1); }
.ha-login { font: 500 15px/1 var(--body); color: var(--menu-c-light, var(--text)); white-space: nowrap; }
.ha-login:hover { color: var(--menu-h-light, var(--accent)); }
#header.over .ha-search, #header.over .ha-login { color: var(--menu-c-dark, var(--cream)); }
@media (max-width: 900px) {
  .hact { margin-left: auto; gap: 6px; order: 2; } .burger { margin-left: 4px; order: 3; } .lang { order: 4; }
  .ha-login { display: none; } .ha-sub { padding: 8px 12px; font-size: 13px; border-radius: 8px; }
}

/* modal: subscribe + search */
html.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(20, 14, 8, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; animation: mfade .2s ease; }
@keyframes mfade { from { opacity: 0; } }
.modal-box { position: relative; width: min(560px, 100%); background: var(--bg); color: var(--text); border-radius: 16px; padding: 30px 28px 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); max-height: 76vh; overflow: auto; }
.modal-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--soft); }
.m-sub h3 { font: var(--title-weight, 400) 30px/1.1 var(--title); margin: 0 0 8px; }
.m-sub p { margin: 0 0 18px; color: var(--soft); }
.m-search .modal-box { padding: 18px; }
.srch-in { width: 100%; font: 400 20px/1.3 var(--body); padding: 12px 44px 12px 14px; border: 1px solid var(--card-line); border-radius: 10px; background: #fff; color: var(--text); outline: none; }
.srch-in:focus { border-color: var(--accent); }
.srch-res { display: grid; margin-top: 8px; }
.srch-res a { display: grid; gap: 2px; padding: 12px 10px; border-bottom: 1px solid var(--card-line); border-radius: 8px; }
.srch-res a:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.srch-res small { font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.srch-res b { font-weight: 600; } .srch-res span { font-size: 14px; color: var(--soft); }
.srch-none { color: var(--soft); padding: 12px 10px; margin: 0; }

/* footer menu (About, Contact … moved down from the header) */
.pg-fnav { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 22px 0 18px; border-top: 1px solid var(--card-line); }
.pg-fnav a { font: 500 15px/1.2 var(--body); color: var(--text); }
.pg-fnav a:hover { color: var(--accent); }
.pg-fnav + .badges, .pg-fnav + small { margin-top: 0; }

/* seminar recordings: title left, picture with play + duration right */
.rec-row { display: grid; grid-template-columns: 1fr minmax(120px, 210px); gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); color: var(--text); }
.rec-t h3 { font: 600 clamp(17px, 1.6vw, 21px)/1.25 var(--body); margin: 0 0 6px; }
.rec-t p { margin: 0 0 8px; color: var(--soft); font-size: 15px; line-height: 1.45; }
.rec-t small { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.rec-img { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #2a221a; }
.rec-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
a.rec-row:hover .rec-img img { transform: scale(1.04); } a.rec-row:hover h3 { color: var(--accent); }
.rec-play { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; background: rgba(0, 0, 0, .62); color: #fff; border-radius: 999px; padding: 5px 10px 5px 7px; font: 600 12px/1 var(--body); }
.rec-play svg { width: 14px; height: 14px; }
.rec-play i { font-style: normal; }
@media (max-width: 560px) { .rec-row { grid-template-columns: 1fr 120px; gap: 14px; } .rec-t p { display: none; } }
.srch-in::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.m-search .modal-box { padding-top: 48px; }
.nav-m { display: none; }
@media (max-width: 900px) {
  #header .hbar > .lang { display: none; }
  .nav-m { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 4px; margin-top: 8px; border-top: 1px solid var(--line); }
  .nav-m-login { font-size: 17px; color: var(--text); }
  .nav-m-lang { display: flex; gap: 6px; } .nav-m-lang button { background: none; border: 0; font: 500 14px var(--body); padding: 6px 8px; opacity: .55; cursor: pointer; color: var(--text); }
  .nav-m-lang button.on { opacity: 1; border-bottom: 1px solid var(--accent); }
}

/* reader accounts: sign-in window, /account page */
.auth { display: grid; gap: 12px; max-width: 460px; }
.auth h3 { font: var(--title-weight, 400) 28px/1.1 var(--title); margin: 0 0 4px; }
.auth .btn { width: 100%; }
.auth-note { margin: 0; color: var(--soft); font-size: 15px; }
.auth-alt { margin: 2px 0 0; font-size: 14px; color: var(--soft); }
.auth-alt a { color: var(--accent); border-bottom: 1px solid currentColor; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--soft); cursor: pointer; }
.chk input { width: auto; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.m-auth .modal-box { width: min(460px, 100%); }
.acc { max-width: 620px; }
.acc .auth { margin: 0 0 34px; }
.acc-hello { font-size: 17px; margin: -20px 0 26px; color: var(--soft); } .acc-hello b { color: var(--text); }
.acc-del summary { cursor: pointer; color: #9b2c2c; font-size: 14px; margin: 10px 0 14px; }
.btn.btn-danger { background: #9b2c2c; }
.c-as { margin: 0; font-size: 15px; color: var(--soft); } .c-as b { color: var(--text); }
.is-user { display: inline-flex; align-items: center; gap: 8px; }
.u-ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 600 14px/1 var(--body); flex: none; }
.u-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .ha-login.is-user { display: inline-flex; } .ha-login.is-user .u-name { display: none; } }
.big.times { font-family: var(--title, 'Times New Roman', Times, serif); letter-spacing: -.01em; }
.big.times-up { font-style: normal; font-weight: 400; }

/* ===== Feedback round 3: Helvetica everywhere small, no ALL CAPS, QR next to contacts ===== */
.auth h3, .m-sub h3 { font-family: var(--body); font-weight: 600; font-size: 24px; letter-spacing: -.01em; }
html:not(.caps) .btn, html:not(.caps) .more, html:not(.caps) .back, html:not(.caps) .srch-res small, html:not(.caps) .rec-t small { text-transform: none; letter-spacing: .01em; }
html:not(.caps) .btn { font-size: 15px; font-weight: 600; }
.ac-row { display: flex; align-items: flex-start; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.ac-row .soc { margin: 0; }
.qr { width: clamp(84px, 11vw, 150px); aspect-ratio: 1; flex: none; }
.qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr span { display: grid; place-items: center; width: 100%; height: 100%; border: 1px dashed var(--card-line); color: var(--soft); font-size: 13px; }

/* on-site editor (admin only) */
#ed-bar { position: fixed; left: 16px; bottom: 16px; z-index: 120; display: flex; align-items: center; gap: 8px; background: #1d1a15; color: #f3eee4; padding: 6px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font: 500 14px/1 var(--body); max-width: calc(100vw - 32px); }
#ed-bar button { border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; cursor: pointer; background: #f3eee4; color: #1d1a15; }
#ed-bar button[data-ed="save"] { background: var(--accent); color: #fff; } #ed-bar button:disabled { opacity: .45; cursor: default; }
#ed-bar .ed-hint { padding: 0 6px 0 10px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.editing [data-edit] { outline: 1.5px dashed rgba(224, 164, 44, .55); outline-offset: 3px; cursor: pointer; border-radius: 2px; }
html.editing [data-edit]:hover { outline: 2px solid var(--gold, #E0A42C); background: rgba(224, 164, 44, .08); }
.m-ed .modal-box { width: min(640px, 100%); }
.ed-form { display: grid; gap: 16px; }
.ed-f > label { display: block; font: 600 13px/1.2 var(--body); color: var(--soft); margin-bottom: 6px; }
.ed-lg { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: start; margin-bottom: 6px; }
.ed-lg span { font: 600 12px/34px var(--body); color: var(--accent); }
.ed-f input, .ed-f textarea { width: 100%; font: 400 15px/1.45 var(--body); padding: 8px 10px; border: 1px solid var(--card-line); border-radius: 8px; background: #fff; color: var(--text); }
.ed-img { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.ed-img img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.ed-up { border: 1px solid var(--card-line); border-radius: 8px; padding: 8px 12px; cursor: pointer; font: 500 14px var(--body); }
.ed-acts .btn { width: 100%; }

/* own blocks on the home page */
.pg-block { padding: clamp(28px, 6vw, 90px) 0; }
.blk { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 5vw, 80px); align-items: center; }
.blk-left .blk-img { order: -1; }
.blk-top .blk, .blk-none .blk { grid-template-columns: 1fr; }
.blk-top .blk-img { order: -1; }
.blk-img img { width: 100%; height: auto; display: block; border-radius: clamp(8px, 1.2vw, 16px); }
.blk-p { margin-bottom: 18px; } .blk-p p { max-width: 60ch; }
.blk-btn { display: inline-block; }
@media (max-width: 700px) { .blk { grid-template-columns: 1fr; } .blk-img { order: -1; } }

/* editor: section toolbar + style panel */
html.editing [data-sec] { position: relative; }
html.editing [data-sec]:hover { box-shadow: inset 0 0 0 2px rgba(224, 164, 44, .6); }
.sec-tools { position: absolute; z-index: 40; top: 10px; right: 10px; display: none; gap: 6px; flex-wrap: wrap; }
html.editing [data-sec]:hover > .sec-tools { display: flex; }
.sec-tools button { border: 0; border-radius: 999px; padding: 8px 13px; font: 600 13px/1 var(--body); cursor: pointer; background: #1d1a15; color: #f3eee4; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.sec-tools button[data-st-act="add"] { background: var(--gold, #E0A42C); color: #1d1a15; }
.ed-style { border-top: 1px solid var(--card-line); padding-top: 12px; }
.ed-style summary { cursor: pointer; font: 600 14px var(--body); color: var(--accent); }
.ed-st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 12px; margin-top: 12px; }
.ed-st-grid label { display: grid; gap: 4px; font: 500 12px var(--body); color: var(--soft); }
.ed-st-grid input, .ed-st-grid select, .ed-f select { width: 100%; font: 400 14px var(--body); padding: 7px 8px; border: 1px solid var(--card-line); border-radius: 8px; background: #fff; color: var(--text); }
.ed-color { display: flex; gap: 6px; align-items: center; } .ed-color input[type=color] { width: 40px; min-width: 40px; height: 34px; padding: 2px; }
.ed-note { font-size: 12px; color: var(--soft); margin: 10px 0 6px; }
.ed-reset { background: none; border: 1px solid var(--card-line); border-radius: 8px; padding: 7px 12px; cursor: pointer; font: 500 13px var(--body); color: var(--text); }
/* contact block as in the mock: badges side by side in one row below the list */
.pg-ac .badges { display: flex; flex-wrap: wrap; grid-template-columns: none; gap: 12px; margin-top: clamp(16px, 2.4vw, 30px); }
.pg-ac .badge { width: auto; }

/* official brand marks: the logo itself is the icon (no extra tile behind it) */
.soc-ic:not(.has-img) { background: none !important; color: var(--ic-bg, var(--gold)); border-radius: 0; }
.soc-ic:not(.has-img) svg { width: 100% !important; height: 100% !important; }
.ic-brand .soc-ic:not(.has-img) { color: var(--bc); }
.badge-ic:not(.has-img) { background: none !important; color: var(--bc); border-radius: 0; }
.badge-ic:not(.has-img) svg { width: 100% !important; height: 100% !important; }
.bs-gold .badge-ic:not(.has-img) { color: #19160F; }
.bs-brand .badge-ic:not(.has-img) { color: #fff; }
/* original logo colours (default): each mark in its own brand colour, Instagram with its gradient */
.ic-orig .soc-ic:not(.has-img) { color: var(--bc); }
.ic-orig .soc-ic.p-instagram:not(.has-img) svg path, .badge-ic.p-instagram:not(.has-img) svg path { fill: url(#ig-grad); }
.ic-orig .soc-ic.p-x:not(.has-img), .ic-orig .soc-ic.p-tiktok:not(.has-img) { color: #000; }
.bs-black .badge-ic.p-x:not(.has-img), .bs-black .badge-ic.p-tiktok:not(.has-img) { color: #fff; }

/* ===== Header «boxed» (default, owner's mock): light bar on top, the photo below in a frame ===== */
html.hdr-boxed #header { position: relative; inset: auto; background: var(--bg); }
html.hdr-boxed.layout-page #header { position: relative; }
html.hdr-boxed #glass { display: none; }
html.hdr-boxed .layout-page .page, html.hdr-boxed.layout-page .page { padding-top: 40px; }
html.hdr-boxed.layout-page .scene.hero { margin: 0 clamp(12px, 3.6vw, 64px); border-radius: 4px; overflow: hidden; }
html.hdr-boxed.layout-page .slide-txt { padding-top: 6%; }
html.hdr-boxed .hbar { gap: 22px; }
/* buttons as in the mock: «Giriş» gold, «Abunə ol» dark; sign-in comes first */
.hact { gap: 10px; }
.ha-search { order: 0; } .ha-login { order: 1; } .ha-sub { order: 2; }
.ha-login:not(.is-user) { background: var(--gold, #E0A42C); color: #fff !important; border-radius: 9px; padding: 9px 16px; font: 600 15px/1 var(--body); }
.ha-login:not(.is-user):hover { filter: brightness(1.06); color: #fff; }
.ha-sub { background: #2a2723; color: #fff; border-radius: 9px; padding: 9px 16px; }
#header.over .ha-sub { background: #2a2723; }
@media (max-width: 900px) { html.hdr-boxed.layout-page .scene.hero { margin: 0 12px; } }
/* boxed header: logo and photo share the same left/right edge; more air above, as in the mock */
html.hdr-boxed #header { height: auto; }
html.hdr-boxed .hbar { height: clamp(64px, 7vw, 104px); }
html.hdr-boxed.layout-page .scene.hero { margin: 0 max(var(--pad), calc((100vw - 1480px) / 2 + var(--pad))); }
html.hdr-boxed .nav-item > a { font-size: max(var(--menu-size, 16px), 17px); }
html.hdr-boxed { --padb: clamp(14px, 3.6vw, 56px); }
html.hdr-boxed .hbar { padding: 0 var(--padb); }
html.hdr-boxed.layout-page .scene.hero { margin: 0 max(var(--padb), calc((100vw - 1480px) / 2 + var(--padb))); }

/* ===== Journey line (variant 2): draws itself with the scroll ===== */
#app.has-journey { position: relative; }
.journey { position: absolute; left: 0; top: 0; width: 100%; z-index: 2; pointer-events: none; overflow: visible; }
#app.has-journey > section, #app.has-journey > footer { position: relative; z-index: 1; }
.jr-track { fill: none; stroke: var(--jr-c); stroke-opacity: .45; stroke-width: var(--jr-w); stroke-dasharray: 0 7; stroke-linecap: round; }   /* the road ahead: dotted */
.jr-line { fill: none; stroke: var(--jr-c); stroke-width: var(--jr-w); stroke-linecap: round; stroke-linejoin: round; }
.jr-tip { fill: var(--jr-c); filter: drop-shadow(0 0 5px var(--jr-c)); transition: opacity .3s; }
.jr-mark { fill: var(--bg); stroke: var(--jr-c); stroke-width: var(--jr-w); transform-box: fill-box; transform-origin: center; transition: fill .45s, transform .45s cubic-bezier(.2, .9, .3, 1.4); }
.jr-mark.on { fill: var(--jr-c); transform: scale(1.3); }
.jr-end.on { transform: scale(1.5); }
@media (max-width: 700px) { .jr-mark { r: 3px; } .jr-end { r: 4.5px; } }
@media (prefers-reduced-motion: reduce) { .jr-tip { display: none; } }

/* ---------- Fonts of the home designs: self-hosted, Azerbaijani letters added (tools/fonts/build.py); a file is downloaded only when text uses it ---------- */
@font-face { font-family: 'Aweb Didone'; src: url('/fonts/aweb-didone.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Aweb Script'; src: url('/fonts/aweb-script.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Aweb Serif'; src: url('/fonts/aweb-serif.woff2') format('woff2'); font-style: normal; font-display: swap; }
@font-face { font-family: 'Aweb Serif'; src: url('/fonts/aweb-serif-italic.woff2') format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: 'Aweb Sans'; src: url('/fonts/aweb-sans-400.woff2') format('woff2'); font-weight: 300 449; font-display: swap; }
@font-face { font-family: 'Aweb Sans'; src: url('/fonts/aweb-sans-500.woff2') format('woff2'); font-weight: 450 549; font-display: swap; }
@font-face { font-family: 'Aweb Sans'; src: url('/fonts/aweb-sans-600.woff2') format('woff2'); font-weight: 550 649; font-display: swap; }
@font-face { font-family: 'Aweb Sans'; src: url('/fonts/aweb-sans-700.woff2') format('woff2'); font-weight: 650 900; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/space-grotesk.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
.dz-wait { min-height: 100svh; background: var(--dz-wait, #0a0a0a); }

/* ---------- Home designs (dz): the site header follows the design; the menu opens full screen on every width ---------- */
html.dz #glass, html.dz #progress { display: none; }
html.dz #header { position: absolute; inset: 0 0 auto 0; height: auto; background: none; transform: none; color: var(--dz-hc, #fff); }
html.dz #header::after { display: none; }
html.dz .hbar { height: auto; max-width: none; }
html.dz .burger { display: block; order: 9; color: inherit; margin-left: 0; position: relative; z-index: 61; }
html.dz .burger[aria-expanded="true"] span { background: transparent; }
html.dz .burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
html.dz .burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
html.dz .burger span::before, html.dz .burger span::after { transition: transform .3s cubic-bezier(.16, 1, .3, 1), top .3s; }
html.dz nav.main { position: fixed; inset: 0; z-index: 60; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 0; padding: 88px 24px 40px;
  background: var(--dz-menu-bg, rgba(0, 0, 0, .88)); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); max-height: none; border: 0; overflow: auto; }
html.dz nav.main.open { display: flex; animation: dzMenu .3s ease; }
@keyframes dzMenu { from { opacity: 0; } to { opacity: 1; } }
html.dz nav.main .nav-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
html.dz nav.main .nav-item > a { display: inline-block; padding: 6px 24px; font: 400 clamp(32px, 4.4vw, 46px)/1.25 var(--dz-menu-font, 'Aweb Serif', Georgia, serif); color: #fff; letter-spacing: -.01em; text-transform: none; }
html.dz nav.main .nav-item > a::after { display: none; }
html.dz nav.main .nav-item > a:hover, html.dz nav.main .nav-item > a.on { color: #fff; opacity: .6; }
html.dz nav.main.open .sub { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 0 0 10px; background: none; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; }
html.dz nav.main.open .sub a { color: rgba(255, 255, 255, .62); font: 500 15px/1.4 var(--body); padding: 2px 0; }
html.dz nav.main .nav-m { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 18px; padding: 0; border: 0; }
html.dz nav.main .nav-m-login { color: #fff; font: 500 16px/1 var(--body); background: none; padding: 0; }
html.dz nav.main .nav-m-lang { display: flex; gap: 6px; }
html.dz nav.main .nav-m-lang button { color: #fff; background: none; border: 0; font: 500 14px var(--body); padding: 6px 8px; opacity: .55; cursor: pointer; }
html.dz nav.main .nav-m-lang button.on { opacity: 1; border-bottom: 1px solid #fff; }
@font-face { font-family: 'Newsreader Display'; src: url('/fonts/newsreader-display-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-text-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Aweb Mono'; src: url('/fonts/aweb-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
html.dz .burger[aria-expanded="true"] { color: #fff !important; }
@font-face { font-family: 'Aweb Elegant'; src: url('/fonts/aweb-elegant.woff2') format('woff2'); font-style: normal; font-display: swap; }
@font-face { font-family: 'Aweb Elegant'; src: url('/fonts/aweb-elegant-italic.woff2') format('woff2'); font-style: italic; font-display: swap; }

/* ---------- 3D photo (depth3d.js): the canvas lies exactly over the picture and fades in when drawn ---------- */
.d3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.d3d.on { opacity: 1; }

/* ===================== Client round, October 2026 ===================== */
/* One font for the whole site (admin: Шрифты → «Один шрифт»): Helvetica Neue where the device has it (Apple), FreeSans elsewhere */
@font-face { font-family: FreeSans; src: local('FreeSans'), url('/fonts/freesans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: FreeSans; src: local('FreeSans Bold'), url('/fonts/freesans-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: FreeSans; src: local('FreeSans Oblique'), url('/fonts/freesans-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: FreeSans; src: local('FreeSans Bold Oblique'), url('/fonts/freesans-700-italic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
html.one-font .big, html.one-font .big.times { font-family: var(--body); font-style: normal; font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
html.one-font .big .cap { font-weight: 700; letter-spacing: -.02em; }
html.one-font .side h3, html.one-font .f-mark, html.one-font .f-tag, html.one-font #intro span, html.one-font .statement, html.one-font .msg,
html.one-font .prose.drop p:first-child::first-letter { font-style: normal; }
/* One colour (admin: Цвета → «Один цвет»): --gold/--rule/--accent are the accent; things lying on photos keep the gold */
.slide-txt .more:hover, .photo-txt .more:hover { color: var(--photo-gold, var(--gold)); }
.dots.light button.on { background: var(--photo-gold, var(--gold)); border-color: var(--photo-gold, var(--gold)); }
html.one-color .ha-login:not(.is-user) { background: var(--accent); }
/* Seminar rows (home list and the seminars page): small grey date on top, the name, one sentence; the picture on the right */
.pg-sem .pg-h { width: 100%; }
.sem { display: grid; grid-template-columns: minmax(0, 1fr) clamp(116px, 24vw, 300px); gap: clamp(14px, 3vw, 44px); align-items: center; padding: clamp(14px, 2vw, 24px) 0; border-bottom: 1px solid var(--rule); color: var(--text); }
.sem-d { display: block; font-size: clamp(12px, 1.1vw, 14px); line-height: 1.3; color: color-mix(in srgb, var(--text) 50%, var(--bg)); letter-spacing: .01em; margin-bottom: clamp(4px, .6vw, 8px); }
.sem h3 { font: 600 clamp(16px, 1.75vw, 23px)/1.25 var(--body); margin: 0 0 clamp(4px, .5vw, 8px); transition: color .25s; }
.sem p { margin: 0; font-size: clamp(13px, 1.15vw, 16px); line-height: 1.5; color: var(--soft); max-width: 62ch; }
.sem-pic { position: relative; aspect-ratio: 16 / 10; border-radius: clamp(8px, 1vw, 12px); overflow: hidden; background: #2a221a; }
.sem-pic .img { position: absolute; inset: 0; }
.sem-pic img { transition: transform .6s var(--ease); }
a.sem:hover h3 { color: var(--accent); } a.sem:hover .sem-pic img { transform: scale(1.04); }
.sem .more { display: inline-block; margin-top: 12px; }
.sem .f.reg { margin-top: 14px; }
@media (max-width: 600px) { .sem { grid-template-columns: minmax(0, 1fr) 36%; } .sem p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }
/* About / Contact on the home page: small contact icons in a row under the About text, contact details as plain text */
.soc-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 1.4vw, 18px); margin: clamp(16px, 2.2vw, 28px) 0 0; padding: 0; }
.soc-row a { display: block; line-height: 0; transition: opacity .2s, transform .2s; }
.soc-row a:hover { opacity: .7; transform: translateY(-1px); }
.soc-row .soc-ic, .layout-page .soc-row .soc-ic { width: clamp(18px, 1.7vw, 24px); height: clamp(18px, 1.7vw, 24px); }
.ac-info { margin: 0 0 clamp(12px, 2vw, 22px); font-size: clamp(10px, 2.1vw, 19px); line-height: 1.6; }
.ac-info a:hover { color: var(--accent); }
.pg-ac .qr { margin-top: 18px; }
/* footer: one band between two thin lines */
.pg-fband { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 28px; padding: 18px 0; border-top: 1px solid var(--card-line); border-bottom: 1px solid var(--card-line); }
.pg-fband .pg-fnav { padding: 0; border: 0; }
.pg-fband small { display: block; padding: 0; border: 0; }
/* ♡ like · share · comment under every video and article; the same numbers on the cards */
.i-heart { fill: none; }
.eng { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eng-b { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--card-line); border-radius: 999px; background: none; color: var(--text); font: 500 15px/1 var(--body); cursor: pointer; transition: border-color .2s, color .2s; }
.eng-b svg { width: 20px; height: 20px; flex: none; }
.eng-b b { font-weight: 600; min-width: 1ch; }
.eng-b:hover, .eng-b[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.eng-like.on { color: var(--accent); border-color: var(--accent); }
.eng-like.on .i-heart { fill: currentColor; animation: heartPop .35s var(--ease); }
@keyframes heartPop { 50% { transform: scale(1.3); } }
.eng + .share { margin: 0; border-top: 0; }
.share[hidden] { display: none; }
.card .acts { flex-wrap: wrap; }
/* YouTube: playlist cards (a playlist sign with the number of videos on the picture), the playlist page */
.pl-card { position: relative; }
.pl-n { position: absolute; right: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px; background: rgba(20, 16, 10, .74); color: #fff; font: 600 12.5px/1 var(--body); }
.pl-n svg { width: 16px; height: 16px; }
.pl-desc { max-width: 70ch; margin: 0 0 6px; }
.pl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--soft); font-size: 15px; margin: 0 0 34px; }
.pl-meta svg { width: 18px; height: 18px; color: var(--accent); } .pl-meta a { color: var(--accent); }
.pl-more { font-size: clamp(22px, 2.4vw, 32px); margin: clamp(40px, 6vw, 72px) 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
/* video page: the list on the right (its playlist) shows the text first and the picture after; stays in view while reading */
.video-title { font-size: clamp(28px, 3.6vw, 48px); margin: 8px 0 18px; }
.video-layout.solo { grid-template-columns: minmax(0, 860px); }
@media (min-width: 901px) { .video-layout .side { position: sticky; top: calc(var(--hh) + 24px); } }
.side h3 { font: 600 17px/1.3 var(--body); margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.side h3 a { display: inline-flex; align-items: center; gap: 8px; } .side h3 a:hover { color: var(--accent); }
.side h3 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.side-item { grid-template-columns: minmax(0, 1fr) 120px; align-items: center; gap: 14px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--card-line); }
.side-t { display: block; }
.side-t b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; transition: color .2s; }
.side-item .img { aspect-ratio: 16 / 10; border-radius: 8px; }
.side-item:hover b { color: var(--accent); }
.eng ~ .comments { margin-top: clamp(34px, 4vw, 48px); }
/* video page grid: the video (left), its playlist (right, both rows), the comments (under the video); on phones: video, playlist, comments */
.video-layout > .side { grid-column: 2; grid-row: 1 / span 2; }
.video-layout > .v-com { grid-column: 1; }
.video-layout.solo > .v-com { grid-column: 1; }
@media (max-width: 900px) { .video-layout > .side, .video-layout > .v-com { grid-column: 1; grid-row: auto; } }
.side h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.side h3 small { font: 500 13px/1 var(--body); color: var(--soft); white-space: nowrap; }
.side-item.on { background: color-mix(in srgb, var(--accent) 9%, transparent); margin: 0 -10px; padding: 12px 10px; border-radius: 10px; border-bottom-color: transparent; }
.side-item.on b { color: var(--accent); }
@media (max-width: 480px) { .eng { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .eng-b { justify-content: center; padding: 9px 6px; gap: 6px; font-size: 14px; } }
/* "Listen on" badges keep their own colours inside text blocks (contact page) */
.prose .badges a { border-bottom-color: rgba(255, 255, 255, .14); }
.prose .badges .badge { color: #fff; } .prose .bs-light .badge { color: var(--text); border-color: var(--card-line); } .prose .bs-gold .badge { color: #19160F; border-color: transparent; }
.prose .badges .badge:hover { color: #fff; } .prose .bs-light .badge:hover, .prose .bs-gold .badge:hover { color: var(--text); }
.img.wide + .prose { margin-top: 26px; }
.layout-page .card .acts { gap: clamp(10px, 2vw, 18px); margin-top: clamp(4px, 1vw, 10px); font-size: clamp(10px, 1.9vw, 13px); }
.layout-page .card .acts span { gap: clamp(4px, .8vw, 8px); }
.layout-page .card .acts svg { width: clamp(13px, 2.6vw, 20px); height: clamp(13px, 2.6vw, 20px); }
/* «← YouTube», «← Məqalələr», «← playlist»: on a video, article or playlist page the section name is a big heading, like the list pages' titles */
.page .back.back-h { display: block; width: fit-content; max-width: 100%; font: var(--title-weight, 400) clamp(36px, 5vw, 72px)/1.05 var(--title); letter-spacing: -.02em; text-transform: none; opacity: 1; margin: 10px 0 clamp(22px, 3vw, 40px); color: var(--text); transition: color .2s; }
.page .back.back-h:hover { color: var(--accent); }
.page h1.item-title { font-size: clamp(28px, 3.4vw, 48px); margin: 8px 0 24px; }
.page h1.video-title { font-size: clamp(26px, 3vw, 42px); margin: 8px 0 18px; }
/* the whole About text sits on the home page now (the About page was removed) */
.pg-p p + p { margin-top: .8em; }
/* client, next day: the footer has no band of links between lines on any page, only © and the policy pages;
   headings of a normal size: page titles a little smaller, «← YouTube» a modest heading, not tiny and not huge */
.pg-fband { border: 0; padding: 26px 0 4px; }
.page h1 { font-size: clamp(32px, 4vw, 56px); }
.page .back.back-h { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.01em; margin: 6px 0 clamp(16px, 2vw, 24px); }
.page h1.item-title { font-size: clamp(28px, 3vw, 44px); }
.page h1.video-title { font-size: clamp(26px, 2.8vw, 40px); }
.video-layout .btn + .badges { margin-top: 16px; }

/* client, a day later: every page title has the size of «← YouTube» (none big, none small): list pages, playlist, video, article, pages */
.page h1, .page h1.item-title, .page h1.video-title, .page .back.back-h { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.01em; }
.page h1 { line-height: 1.2; margin: 6px 0 clamp(16px, 2vw, 24px); }
.page .comments h2, .page .pl-more { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.01em; }   /* «Şərhlər», «Digər videolar» */

/* comments: only signed-in readers write; a guest sees a short sign-in box instead of the form */
.c-login { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.c-login p { flex: 1 1 100%; margin: 0 0 4px; color: var(--soft); }
.btn.btn-o { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px currentColor; }
.btn.btn-o:hover { background: var(--text); color: var(--bg); }

/* sign-in forms: the browser's autofill keeps the site colours (no yellow box);
   Safari's saved-password key is not put into the e-mail field (separate rules: an unknown selector would drop the whole rule) */
.f input:-webkit-autofill, .f input:-webkit-autofill:hover, .f input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 100px var(--bg) inset; box-shadow: 0 0 0 100px var(--bg) inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
.f input:autofill { box-shadow: 0 0 0 100px var(--bg) inset; }
.f input[type=email]::-webkit-credentials-auto-fill-button { visibility: hidden; pointer-events: none; position: absolute; right: 0; }

/* reader photos: in the header, next to each comment and on «My account» (the first letter of the name when there is none) */
.u-ava { overflow: hidden; }
.u-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comment { display: flex; gap: 12px; align-items: flex-start; }
.comment .c-ava { width: 36px; height: 36px; font-size: 15px; margin-top: 2px; }
.comment .c-body { flex: 1; min-width: 0; }
.acc-photo { display: flex; align-items: center; gap: 18px; margin: 0 0 30px; }
.acc-photo .acc-ava { width: 84px; height: 84px; font-size: 32px; }
.acc-ph-t { margin: 0 0 10px; font-weight: 500; }
.acc-photo .btn { padding: 11px 20px; }
.acc-ph-del { background: none; border: 0; padding: 0 0 0 16px; color: var(--soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.acc-photo .msg { margin-top: 8px; font-size: 14px; color: var(--soft); }

/* phones: logo, search, the reader's photo, «Abunə ol» and the menu button stay on one line inside the screen
   (the later desktop rules for .hact / .ha-sub above would otherwise win over the phone sizes) */
@media (max-width: 480px) {
  .hact { gap: 4px; margin-left: auto; }
  .ha-search { width: 34px; height: 34px; }
  .ha-sub { padding: 8px 11px; font-size: 13px; border-radius: 8px; }
  .ha-login.is-user .u-ava { width: 28px; height: 28px; font-size: 13px; }
  .burger { width: 34px; margin-left: 2px; }
}
@media (max-width: 370px) {
  .layout-page .logo { font-size: 17px; }
  .ha-search { width: 30px; }
  .ha-sub { padding: 7px 9px; font-size: 12px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }   /* a long label never pushes the menu button out */
}
@media (max-width: 340px) { .ha-login.is-user { display: none; } .layout-page .logo { font-size: 16px; } .hact { gap: 2px; } }   /* the smallest phones: «My account» stays in the menu */
