/* VOICE   occasion, hushed
   IDEA    black silk: one material, everything in Hayunex is cut from it
   PICTURE a single length of black silk catching coloured light; below it, panes of glass with more of it behind
   COLOUR  black and white; colour only as sheen on the silk
   TYPE    Geist, light and medium
   LAYOUT  designed for a narrow portrait window first; panes stacked under each other, one open */

:root { color-scheme: dark; --ink: #f5f5f7; --soft: #9a9aa2; --line: #232327; --gut: clamp(22px, 5vw, 96px); --ease: cubic-bezier(.22, .7, .1, 1); }
* { box-sizing: border-box; min-width: 0; }
html { background: #000; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: #000; color: var(--ink); font: 400 18px/1.55 Geist, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.01em; overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; padding: 0; font-weight: inherit; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 1px solid #fff; outline-offset: 6px; border-radius: 4px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 50; background: #fff; color: #000; padding: 10px 18px; }
.skip:focus { top: 14px; }

#silk { position: fixed; inset: 0; width: 100%; height: 100lvh; display: block; z-index: 0; background: radial-gradient(80vmax 60vmax at 70% 30%, #16152a, #000 70%); }
main { position: relative; z-index: 1; }

.bar { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(16px, 2.6vh, 30px) var(--gut); transition: opacity .35s, visibility .35s; }
.bar::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); pointer-events: none; transition: opacity .4s; }
.bar a { text-decoration: none; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 600; letter-spacing: -.045em; padding: 8px 0; }
.bar.away { opacity: 0; visibility: hidden; }
.logo { display: block; width: 36px; height: 36px; flex: none; }
.logo:has([src*=hayunex-small]) { width: 29px; height: 34px; }
.logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bar nav { display: flex; gap: clamp(4px, 2vw, 30px); }
.bar nav a { white-space: nowrap; padding: 10px 4px; font-size: 16px; color: rgba(255, 255, 255, .86); transition: color .25s; }
.bar nav a:hover, .bar nav a.on { color: #fff; }

.hero { position: relative; height: 100svh; min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px var(--gut) 60px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(58% 40% at 50% 51%, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); pointer-events: none; }
.hero > * { position: relative; }


h1 { font-size: clamp(60px, 17.6vw, 340px); font-weight: 650; letter-spacing: -.066em; line-height: .9; margin-left: -.05em; white-space: nowrap; text-shadow: 0 2px 60px rgba(0, 0, 0, .35); }
.division h1 { font-size: clamp(48px, min(13vw, 24svh), 230px); line-height: .92; }
.hero p { margin-top: clamp(10px, 1.6vh, 20px); font-size: clamp(23px, 3.1vw, 56px); font-weight: 400; line-height: 1.1; letter-spacing: -.045em; text-shadow: 0 0 30px rgba(0, 0, 0, .5); }
.publisher h1 { white-space: normal; text-wrap: balance; font-size: clamp(42px, min(10vw, 15svh), 170px); }
.publisher #plogo { display: block; height: clamp(84px, 19svh, 210px); max-width: min(78vw, 560px); object-fit: contain; margin-bottom: clamp(18px, 3.5svh, 40px); filter: drop-shadow(0 0 30px rgba(0, 0, 0, .5)); }
/* a division's title: its mark left of the two lines of its name, as high as both */
.title { display: flex; align-items: center; justify-content: center; gap: .3em; font-size: clamp(32px, min(9.2vw, 19svh), 190px); }
.division .title h1 { font-size: 1em; text-align: left; }
.dmark { flex: none; width: 1.95em; }
.dmark img { display: block; width: 100%; height: auto; }
.division p { font-size: clamp(19px, 2vw, 32px); letter-spacing: -.03em; }

/* the panes, under each other */
.stack { position: relative; padding: 8px; display: grid; gap: 8px; }
.pane { position: relative; border-radius: clamp(26px, 3.2vw, 44px); overflow: hidden; scroll-margin-top: 8px; }
html:not(.gl) .pane { background: linear-gradient(150deg, #1a1f5c, #08060f 60%, #3a0f2e); }
html:not(.gl) .stack { background: #000; }
.tab { margin: 0; }
.tab button { width: 100%; min-height: clamp(96px, 15svh, 132px); padding: 0 clamp(20px, 3.4vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; font-size: clamp(26px, 3vw, 46px); font-weight: 500; letter-spacing: -.05em; line-height: 1; text-shadow: 0 0 24px rgba(0, 0, 0, .55); }
.tab button:focus-visible { outline-offset: -8px; border-radius: 22px; }
.tab i { flex: none; position: relative; width: 22px; height: 22px; }
.tab i::before, .tab i::after { content: ""; position: absolute; left: 0; top: 10px; width: 22px; height: 1.6px; background: currentColor; transition: transform .7s var(--ease); }
.tab i::after { transform: rotate(90deg); }
.pane.open > .tab i::after { transform: rotate(0); }
.body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .9s var(--ease), visibility .9s; }
.pane.open > .body { grid-template-rows: 1fr; visibility: visible; }
.body > div { overflow: hidden; min-height: 0; }
.pad { min-height: min(58svh, 620px); display: flex; flex-direction: column; justify-content: flex-end; padding: 10px clamp(20px, 3.4vw, 52px) clamp(26px, 3.6vw, 56px); opacity: 0; transition: opacity .35s; }
.pane.open .pad { opacity: 1; transition: opacity .7s .35s; }
.big { font-size: clamp(42px, 6.6vw, 112px); font-weight: 500; letter-spacing: -.058em; line-height: .98; max-width: 8.6em; text-wrap: balance; text-shadow: 0 0 34px rgba(0, 0, 0, .4); }
.sub { margin-top: clamp(16px, 2.4vh, 26px); max-width: 31em; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.45; color: #ececf1; text-wrap: pretty; text-shadow: 0 0 18px rgba(0, 0, 0, .6); }

.links > li, #newsList > li { border-top: 1px solid rgba(255, 255, 255, .24); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(14px, 1.8vw, 26px) 0; text-decoration: none; }
.row .mark { flex: none; width: clamp(40px, 4.6vw, 72px); }
.row .mark img { display: block; width: 100%; height: auto; }
.row > span { flex: 1; }
.row b { display: block; font-size: clamp(27px, 4vw, 66px); font-weight: 500; letter-spacing: -.052em; line-height: 1.02; text-wrap: balance; text-shadow: 0 0 24px rgba(0, 0, 0, .5); }
.row small { display: block; margin-top: 6px; font-size: 17px; color: #e2e2e8; text-shadow: 0 0 14px rgba(0, 0, 0, .7); }
.row > svg { flex: none; width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.row:hover > svg { transform: translateX(8px); }
.row:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
#publishers { margin-top: calc(clamp(30px, 5vh, 56px) + 17px * 1.55 + 12px + 1px + clamp(22px, 3vw, 40px)); }
#publishers ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); justify-items: center; align-items: start; gap: clamp(10px, 2vw, 30px); margin: 0 auto; max-width: 760px; }
#publishers li { min-width: 0; width: 100%; }
.label { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; }
.label i { --lh: clamp(40px, 6vw, 96px); display: flex; align-items: center; justify-content: center; height: var(--lh); }
.label img { display: block; width: auto; height: var(--lh); max-width: none; filter: drop-shadow(0 0 16px rgba(0, 0, 0, .5)); }
.label b { display: block; margin-top: 12px; font-size: clamp(14px, 1.4vw, 21px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; text-wrap: balance; text-shadow: 0 0 18px rgba(0, 0, 0, .6); }
a.label:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
#projects, .items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 20px; }
#projects h3, .items h3 { margin-top: 14px; font-size: clamp(22px, 1.9vw, 30px); }
.items .pics { display: grid; gap: 10px; }
.none { font-size: clamp(22px, 2.2vw, 34px); color: #ececf1; text-shadow: 0 0 18px rgba(0, 0, 0, .6); }
.items p, #projects p { color: #e2e2e8; }
.items p + p, #projects p + p { margin-top: .8em; }
#projects .wide { grid-column: 1 / -1; }
#projects .wide p { max-width: 62ch; }
.pic.art { aspect-ratio: 16 / 9; background: #0e0906; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 60px rgba(0, 0, 0, .45); }
.pic.art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#projects .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.pic.art:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; border-radius: 0; box-shadow: none; background: #000; }
.pic.art:-webkit-full-screen { width: 100vw; height: 100vh; border-radius: 0; }
.pic.art.cover { position: fixed; inset: 0; z-index: 1000; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.covered, .covered body { overflow: hidden; }
.pic.art.idle { cursor: none; }
.keep { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 16px; border-radius: 999px; color: #f2f2f6; font: inherit; font-size: 15px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); transition: background .25s, box-shadow .25s; cursor: pointer; }
.keep:hover { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.keep:disabled { cursor: progress; opacity: .8; }
.keep svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#projects .meta { display: block; margin: 6px 0 14px; font-size: 13px; letter-spacing: .02em; color: rgba(255, 255, 255, .62); }

.pic { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic span { position: absolute; left: 18px; bottom: 14px; font-size: 15px; }
#newsList > li { padding: 18px 0 20px; }
#newsList span { font-size: 16px; color: #dcdce2; }
#newsList h3 { margin-top: 2px; font-size: clamp(23px, 2.5vw, 42px); line-height: 1.1; letter-spacing: -.042em; text-wrap: balance; }
#newsList p { margin-top: 8px; max-width: 60ch; color: #e2e2e8; }
#newsList a { text-decoration: none; }
#newsList a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.lines { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; margin-top: clamp(18px, 3vh, 34px); }
#mail { font-size: clamp(21px, 2.4vw, 38px); letter-spacing: -.04em; text-decoration-thickness: 1px; text-underline-offset: 8px; overflow-wrap: anywhere; }
#copy { padding: 10px 0; color: #ececf1; }
#copy:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
footer > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

footer { padding: 26px clamp(16px, 3vw, 46px) 26px; font-size: 16px; color: #b9b9c0; }
footer a { text-underline-offset: 5px; }
footer a:hover { color: #fff; }

@media (max-width: 600px) { body[data-publisher] .brand span { display: none; } }

/* Marnes-La-Coquette: engraved Roman capitals, like the M in its crest, with a classic serif for the text */
body[data-publisher="marnes-la-coquette"] { font-family: "Cormorant Garamond", Garamond, Georgia, serif; font-size: 20px; letter-spacing: 0; }
body[data-publisher="marnes-la-coquette"] :is(h1, .tab button, .big, h3, .bar nav a, .hero p, footer > div > span, #copy) { font-family: Cinzel, "Trajan Pro", Georgia, serif; }
/* the red crest on red silk: a dark edge and a soft shadow keep it readable */
body[data-publisher="marnes-la-coquette"] #plogo, .label img[src*="marnes-la-coquette"] { filter: brightness(1.2) drop-shadow(0 0 1.5px #000) drop-shadow(0 0 5px rgba(0, 0, 0, .85)) drop-shadow(0 0 16px rgba(0, 0, 0, .75)); }
body[data-publisher="marnes-la-coquette"] h1 { font-weight: 600; letter-spacing: .02em; margin-left: 0; }
body[data-publisher="marnes-la-coquette"] .hero p { letter-spacing: .14em; text-transform: uppercase; font-size: .8em; }
body[data-publisher="marnes-la-coquette"] .tab button { font-weight: 500; letter-spacing: .03em; }
body[data-publisher="marnes-la-coquette"] .big { font-weight: 500; letter-spacing: .01em; }
body[data-publisher="marnes-la-coquette"] .bar nav a { letter-spacing: .06em; font-size: 15px; }
@media (max-width: 420px) {
  .bar nav a { font-size: 15px; }
  .brand { font-size: 18px; gap: 8px; }
  .bar nav { gap: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .row > svg, .body, .pad, .tab i::after { transition: none !important; } }