/* Zainab
   tadelakt walls, kilim bands, zellige, Beni Ouarain wool */

:root {
  --tadelakt: #e8dfcf;
  --tadelakt-deep: #d9ccb6;
  --wool: #f1ebdf;
  --ink: #1b1918;
  --graphite: #4a4540;
  --soft: #857b6e;
  --clay: #8a4a2c;
  --line: rgba(27, 25, 24, .14);
  --night: #151312;

  --fell: "Cormorant Garamond", Garamond, Georgia, serif;
  --fell-sc: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --typed: "EB Garamond", Garamond, Georgia, serif;
  --sig: "Pinyon Script", "Snell Roundhand", cursive;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --ar: "Aref Ruqaa", "Amiri", "Traditional Arabic", serif;
  --carved: "Cormorant SC", "Cormorant Garamond", Georgia, serif;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --plaster: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0067 .01' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .26 0 0 0 -.34 .2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  --kilim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='40' viewBox='0 0 48 40'%3E%3Crect width='48' height='40' fill='%23efe8da'/%3E%3Crect y='0' width='48' height='5' fill='%231b1918'/%3E%3Crect y='7' width='48' height='2' fill='%238a4a2c'/%3E%3Cpolygon points='0,31 12,13 24,31' fill='%231b1918'/%3E%3Cpolygon points='24,31 36,13 48,31' fill='%231b1918'/%3E%3Cpolygon points='12,31 18,22 24,31' fill='%23efe8da'/%3E%3Cpolygon points='36,31 42,22 48,31' fill='%23efe8da'/%3E%3Crect x='10.5' y='24' width='3' height='3' fill='%23efe8da'/%3E%3Crect x='34.5' y='24' width='3' height='3' fill='%23efe8da'/%3E%3Crect y='33' width='48' height='2' fill='%238a4a2c'/%3E%3Crect y='37' width='48' height='3' fill='%231b1918'/%3E%3C/svg%3E");
  --ouarain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='220' viewBox='0 0 160 220'%3E%3Cpath d='M0 0 L80 110 L0 220 M160 0 L80 110 L160 220' fill='none' stroke='%231b1918' stroke-width='9' stroke-linecap='round' opacity='.07'/%3E%3Cpath d='M80 92 L92 110 L80 128 L68 110 Z' fill='%231b1918' opacity='.07'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--tadelakt);
  background-image: var(--plaster);
  background-size: 600px;
  color: var(--ink);
  font-family: var(--fell);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-viewing { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 1.5px dashed var(--clay); outline-offset: 4px; }

.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  background-image: var(--grain); background-size: 220px;
  opacity: .055; mix-blend-mode: multiply; pointer-events: none; z-index: 100;
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); } 100% { transform: translate(0, 0); }
}

.typed { font-family: var(--typed); color: var(--graphite); }
.sig { font-family: var(--sig); font-weight: 400; }
.arabic { font-family: var(--ar); direction: rtl; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 26px;
  font-family: var(--fell-sc); font-size: 15px; font-weight: 600; letter-spacing: .16em;
  text-decoration: none; color: var(--wool);
  background: var(--ink); border: 1.5px solid var(--ink);
  border-radius: 2px; cursor: pointer;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--clay); border-color: var(--clay); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--wool); }

/* the woven bands between rooms */
.kilim { height: 40px; background-image: var(--kilim); background-size: 48px 40px; box-shadow: 0 2px 0 rgba(0, 0, 0, .06), 0 -1px 0 rgba(0, 0, 0, .06); }
.kilim.reverse { transform: scaleY(-1); }
.kilim.thin { height: 20px; background-size: 24px 20px; }

/* top */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 10px 5vw;
  background: linear-gradient(rgba(232, 223, 207, .95), rgba(232, 223, 207, .86));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 34px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.brand-name { font-family: var(--fell-sc); font-weight: 600; font-size: 22px; line-height: 1; letter-spacing: .32em; margin-right: -.32em; }
.brand-scripts { display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1; color: var(--clay); }
.brand-scripts .arabic { font-size: 14px; line-height: 1; }
.tif { font-family: "Noto Sans Tifinagh", "Ebrima", sans-serif; letter-spacing: .12em; }
.top nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.top nav a { font-family: var(--fell-sc); font-size: 15px; letter-spacing: .14em; text-decoration: none; color: var(--graphite); padding: 6px 0; border-bottom: 1px solid transparent; }
.top nav a:hover, .top nav a.is-here { border-bottom-color: var(--clay); color: var(--ink); }


/* the door, a plaster wall with the eight pointed star pressed into it */
.door {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 6vw 60px;
  background-color: #e3d8c3;
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(255, 251, 243, .78), rgba(255, 251, 243, 0) 75%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%231b1918' stroke-opacity='.07' stroke-width='1'%3E%3Crect x='35' y='35' width='50' height='50'/%3E%3Crect x='35' y='35' width='50' height='50' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='12'/%3E%3Cpath d='M60 0V25M60 95V120M0 60H25M95 60H120M0 0L25 25M120 0L95 25M0 120L25 95M120 120L95 95'/%3E%3C/g%3E%3C/svg%3E"),
    var(--plaster);
  background-size: auto, 120px 120px, 600px;
  border-bottom: 1px solid var(--line);
}
.door-panel { max-width: 860px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.emblem { width: clamp(78px, 8vw, 108px); height: auto; overflow: visible; margin-bottom: 18px; }
.draws .s { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6, .1, .3, 1) var(--d) forwards; }
.draws .z { opacity: 0; transform-box: fill-box; transform-origin: center; animation: drop .5s ease-out var(--d) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.door h1 { display: flex; align-items: baseline; justify-content: center; gap: 28px; font-weight: 400; }
.door h1 .sig { font-size: clamp(100px, 14vw, 200px); line-height: 1; }
.door h1 .arabic { font-size: clamp(40px, 4.6vw, 66px); color: var(--clay); }
.door-eyebrow { font-family: var(--fell-sc); font-size: clamp(13px, 1.1vw, 15px); letter-spacing: .42em; margin: 34px 0 0 .42em; color: var(--graphite); }
.door-eyebrow::before, .door-eyebrow::after { content: ""; display: inline-block; width: 48px; height: 1px; background: var(--clay); vertical-align: middle; margin: 0 22px; opacity: .6; }
.door-verse { margin-top: 30px; }
.door-verse p { font-family: var(--fell); font-weight: 400; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.35; letter-spacing: .01em; }
.door-verse .accent { font-family: var(--script); font-size: clamp(36px, 4vw, 56px); line-height: 1.3; color: var(--clay); margin-top: 6px; }
.door-materials { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.door-materials li { font-family: var(--fell-sc); font-size: 15px; letter-spacing: .26em; padding: 2px clamp(10px, 1.6vw, 22px); color: var(--ink); }
.door-materials li + li { border-left: 1px solid rgba(27, 25, 24, .2); }
.descend { margin-top: 7vh; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font-family: var(--fell-sc); font-size: 13px; letter-spacing: .24em; color: var(--graphite); }
.descend svg { width: 14px; height: 40px; animation: nudge 2.4s ease-in-out infinite; }
.descend path { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; }
@keyframes nudge { 50% { transform: translateY(6px); } }

/* section heads */
.section-head { max-width: 800px; margin: 0 auto 7vh; text-align: center; }
.kicker { font-family: var(--fell-sc); font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: var(--clay); }
.section-head h2 { font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: 1.05; margin-top: 10px; }
.section-head h2.script, h2.script { font-family: var(--script); font-weight: 400; font-size: clamp(52px, 7vw, 104px); line-height: 1.15; letter-spacing: 0; }
.lede { font-family: var(--fell); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.6; color: var(--graphite); margin-top: 18px; font-style: italic; }

/* the women, one by one, one calm layout for every material */
.chapter {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 7vw;
  padding: 13vh 8vw;
  position: relative;
  border-top: 1px solid var(--line);
  --p: 0; --mx: .5; --my: .4;
}
.chapter:nth-child(even) { background: rgba(255, 251, 243, .32); }
.chapter.flip .ch-art { order: 2; }
.ch-art { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; }
.ch-art .piece {
  position: relative; background: #fbf8f2; padding: clamp(12px, 1.4vw, 22px);
  border: 1px solid rgba(27, 25, 24, .1);
  box-shadow: 0 1px 2px rgba(40, 28, 16, .12), 0 28px 50px -30px rgba(40, 28, 16, .45);
  opacity: 0; translate: 0 24px; transition: opacity 1.1s ease, translate 1.1s ease;
}
.chapter.is-in .ch-art .piece { opacity: 1; translate: 0 0; }
.ch-art img { display: block; max-height: 72vh; max-width: 100%; width: auto; height: auto; }
.m-plate .ch-art .piece { background: none; border: 0; box-shadow: none; padding: 0; }
.m-plate .ch-art img { border-radius: 50%; filter: drop-shadow(0 26px 34px rgba(40, 28, 16, .35)); }
.rod, .fringe, .veil, .shine, .rake { display: none; }
.ch-text { max-width: 460px; }
.ch-num { font-family: var(--fell-sc); font-size: 14px; letter-spacing: .3em; color: var(--clay); display: flex; align-items: center; gap: 16px; }
.ch-num::after { content: ""; width: 56px; height: 1px; background: var(--clay); opacity: .6; }
.ch-country { font-family: var(--fell-sc); font-size: 15px; letter-spacing: .3em; margin-top: 26px; display: flex; gap: 16px; align-items: baseline; color: var(--graphite); }
.ch-country .arabic { font-size: 22px; letter-spacing: 0; color: var(--clay); }
.ch-text h3 { font-family: var(--script); font-weight: 400; font-style: normal; font-size: clamp(48px, 5vw, 76px); line-height: 1.15; margin: 10px 0 6px; }
.ch-place { font-family: var(--fell-sc); font-size: 14px; letter-spacing: .22em; color: var(--clay); }
.ch-line { font-family: var(--fell); font-size: clamp(20px, 1.6vw, 23px); line-height: 1.6; margin-top: 22px; color: var(--graphite); }
.ch-mat { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--fell); font-style: italic; font-size: 17px; line-height: 1.5; color: var(--graphite); }
.ch-mat b { font-family: var(--fell-sc); font-style: normal; font-weight: 600; font-size: 14px; letter-spacing: .3em; color: var(--ink); display: block; margin-bottom: 4px; }
.ch-text > * { opacity: 0; translate: 0 14px; transition: opacity 1s ease, translate 1s ease; }
.chapter.is-in .ch-text > * { opacity: 1; translate: 0 0; }
.chapter.is-in .ch-text > *:nth-child(2) { transition-delay: .08s; }
.chapter.is-in .ch-text > *:nth-child(3) { transition-delay: .16s; }
.chapter.is-in .ch-text > *:nth-child(4) { transition-delay: .24s; }
.chapter.is-in .ch-text > *:nth-child(5) { transition-delay: .32s; }
.chapter.is-in .ch-text > *:nth-child(6) { transition-delay: .4s; }

/* the women who fought */
.combattantes { padding: 14vh 5vw 10vh; background: #161413; color: #efe8da; }
.combattantes .section-head h2 { color: #f4eee2; }
.combattantes .lede { color: #c9bfae; }
.combattantes .kicker { color: #c9a58c; }
.combattantes .section-head h2.script { color: #f4eee2; }
.wave { position: relative; overflow: hidden; margin: 0 -5vw; padding: 40px 0 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wave-row { --rh: clamp(190px, 30vh, 300px); height: calc(var(--rh) + 80px); position: relative; }
.wave-row.low { --rh: clamp(160px, 24vh, 240px); margin-top: -10px; }
.wave-track { position: absolute; left: 0; top: 40px; display: flex; gap: 16px; will-change: transform; transform-style: preserve-3d; }
.photo {
  flex: none; display: block; height: var(--rh); padding: 0; border: 0; cursor: zoom-in;
  background: #0d0c0b; position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(239, 232, 218, .08), 0 24px 40px -20px rgba(0, 0, 0, .8);
  will-change: transform;
}
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(.95); transition: filter .6s; }
.photo:hover img, .photo:focus-visible img { filter: grayscale(1) contrast(1.2) brightness(1.04); }
.photo .tag { position: absolute; left: 10px; top: 10px; font-family: var(--fell-sc); font-size: 13px; letter-spacing: .1em; color: #f4eee2; background: rgba(13, 12, 11, .55); padding: 3px 9px 4px; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; font-family: var(--fell); font-size: 15px; line-height: 1.45; letter-spacing: .04em; color: #efe8da; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); opacity: 0; transition: opacity .5s; text-align: left; }
.photo:hover figcaption, .photo:focus-visible figcaption { opacity: 1; }
.photo::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 200px; opacity: .12; mix-blend-mode: overlay; pointer-events: none; }
.wave-hint { text-align: center; font-family: var(--fell); font-style: italic; font-size: 15px; letter-spacing: .08em; color: #8f8576; margin-top: 10px; }
.sources { max-width: 1100px; margin: 7vh auto 0; font-family: var(--fell); font-style: italic; font-size: 14px; line-height: 1.7; color: #8f8576; text-align: center; }

/* on demand */
.portraits { padding: 14vh 5vw 12vh; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; max-width: 1100px; margin: 0 auto 8vh; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; }
.swatch img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--wool), 0 0 0 5px var(--line), 0 14px 24px -14px rgba(40, 28, 16, .6); transition: transform .4s; }
.swatch:hover img, .swatch[aria-pressed="true"] img { transform: translateY(-4px); box-shadow: 0 0 0 4px var(--wool), 0 0 0 6px var(--clay), 0 18px 28px -14px rgba(40, 28, 16, .6); }
.swatch span { font-family: var(--fell-sc); font-size: 15px; letter-spacing: .2em; }
.reach { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.order {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
  background: var(--wool); padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 1px 0 var(--line), 0 30px 50px -36px rgba(40, 28, 16, .55);
  border-top: 6px solid var(--ink);
}
.order .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-family: var(--fell-sc); font-size: 14px; letter-spacing: .14em; }
.field input, .field select, .field textarea {
  font-family: var(--fell); font-size: 19px; color: var(--ink);
  background: #fbf8f2; border: 1px solid rgba(27, 25, 24, .25); border-radius: 2px;
  padding: 10px 12px; min-height: 46px; width: 100%;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(138, 74, 44, .15); }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.status { font-family: var(--fell); font-style: italic; font-size: 17px; flex-basis: 100%; min-height: 1.4em; }
.artist { display: flex; flex-direction: column; align-items: center; text-align: center; }
.plate {
  background: #f6f2e8; padding: 18px 18px 22px; width: 100%;
  box-shadow: 0 1px 0 var(--line), 0 26px 44px -28px rgba(40, 28, 16, .6);
  position: relative;
}
.plate::before { content: ""; position: absolute; inset: 10px; box-shadow: inset 0 0 0 1px rgba(40, 28, 16, .14), inset 2px 2px 3px rgba(40, 28, 16, .08); pointer-events: none; }
.plate img { width: 100%; height: auto; display: block; }
.artist-name {
  font-family: var(--script); font-weight: 400; font-size: clamp(40px, 3.6vw, 52px); line-height: 1.2; letter-spacing: 0;
  color: #1c2f7a; text-decoration: none; margin-top: 20px; padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) no-repeat 50% 100% / 0 1.5px; transition: background-size .5s;
}
.artist-name:hover, .artist-name:focus-visible { background-size: 100% 1.5px; }
.artist-role { font-family: var(--fell-sc); font-size: 14px; letter-spacing: .18em; margin-top: 4px; }
.links { list-style: none; display: grid; gap: 10px; margin-top: 18px; width: 100%; }
.links a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; text-decoration: none; background: var(--wool); border: 1px solid var(--line); font-family: var(--typed); font-size: 13px; letter-spacing: .04em; }
.links a:hover { border-color: var(--ink); }
.links svg { width: 18px; height: 18px; flex: none; }

/* foot */
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding: 26px 5vw 34px; }
.foot-row .mark { width: 28px; height: 35px; }
.foot-row .sig { font-size: 44px; }
.foot-row .typed { font-family: var(--fell); font-style: italic; font-size: 16px; }
.foot-row .typed:last-child { margin-left: auto; }

/* one photograph, close */
.viewer { position: fixed; inset: 0; z-index: 60; background: #0d0c0b; display: grid; place-items: center; opacity: 0; transition: opacity .4s; }
.viewer[hidden] { display: none; }
.viewer.is-open { opacity: 1; }
.v-fig { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 70px; }
.v-fig img { max-width: min(86vw, 1300px); max-height: 80vh; width: auto; height: auto; filter: grayscale(1) contrast(1.1); }
.v-fig figcaption { color: #c9bfae; font-family: var(--fell); font-style: italic; font-size: 18px; letter-spacing: .01em; text-align: center; }
.v-close, .v-arrow { position: fixed; z-index: 2; background: none; border: 0; color: #e6ddcf; cursor: pointer; }
.v-close { top: 18px; right: 5vw; font-family: var(--fell-sc); font-size: 15px; letter-spacing: .16em; text-decoration: underline; text-underline-offset: 5px; min-height: 44px; }
.v-arrow { top: 50%; translate: 0 -50%; padding: 14px; opacity: .7; }
.v-arrow:hover { opacity: 1; }
.v-prev { left: 1.5vw; } .v-next { right: 1.5vw; }
.v-arrow svg { width: 50px; height: 18px; display: block; }
.v-arrow path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .chapter, .chapter.flip { grid-template-columns: 1fr; gap: 5vh; padding: 10vh 16px; }
  .chapter.flip .ch-art { order: 0; }
  .ch-art img { max-height: 64vh; }
  .door-eyebrow::before, .door-eyebrow::after { width: 22px; margin: 0 10px; }
  .door-materials li { letter-spacing: .16em; font-size: 14px; }
  .reach { grid-template-columns: 1fr; }
  .artist { max-width: 400px; margin: 0 auto; width: 100%; }
  .v-fig { padding: 60px 12px; }
  .v-arrow { top: auto; bottom: 10px; translate: none; }
}
@media (max-width: 640px) {
  .top { padding: 8px 16px 6px; grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "left right"; row-gap: 4px; }
  .brand { grid-area: brand; }
  .nav-left { grid-area: left; }
  .nav-right { grid-area: right; }
  .brand .mark { width: 24px; height: 30px; }
  .brand-name { font-size: 18px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 12px; }
  .door { padding-left: 16px; padding-right: 16px; }
  .door h1 { gap: 14px; }
  .combattantes, .portraits { padding: 10vh 16px; }
  .wave-row { --rh: 200px; }
  .wave-row.low { --rh: 160px; }
  .wave { margin: 0 -16px; }
  .order { grid-template-columns: 1fr; }
  .swatch img { width: 82px; height: 82px; }
  .foot-row { padding: 22px 16px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .descend svg { animation: none; }
  .ch-art .piece { opacity: 1; translate: none; transition: none; }
  .draws .s, .draws .z { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .wave-row { overflow-x: auto; }
  .wave-track { position: static; padding: 40px 16px 0; }
  .ch-text > * { opacity: 1; translate: none; transition: none; }
}

html { scroll-padding-top: 84px; }

/* the language switch */
.lang { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; padding: 0 4px; background: none; border: 1px solid var(--line); border-radius: 30px; cursor: pointer; font-family: var(--fell-sc); font-size: 13px; letter-spacing: .08em; color: var(--soft); }
.lang span { padding: 4px 8px; border-radius: 20px; transition: background .3s, color .3s; }
.lang span.on { background: var(--ink); color: var(--wool); }
.nav-right { align-items: center; }
@media (max-width: 640px) {
  .nav-right { gap: 10px !important; }
  .lang { font-size: 10.5px; min-height: 28px; }
  .lang span { padding: 3px 6px; }
}

.brand-name { font-variant-ligatures: none; font-feature-settings: "liga" 0, "dlig" 0; }
