/* ==========================================================================
   Nexora brand identity page (concept v1). Builds on style.css tokens.
   ========================================================================== */

/* ---------- header and chapter nav ---------- */
.b-head { position: sticky; top: 0; z-index: 100; background: rgba(246, 245, 243, .97); box-shadow: 0 1px 0 var(--rule); }
.b-head__inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.b-head__logo svg { width: 116px; height: auto; color: var(--ink); }
.b-head__title { padding-left: 16px; border-left: 1px solid var(--rule); font-size: .9375rem; font-weight: 600; }
.b-head__back { margin-left: auto; }
.b-nav { border-top: 1px solid var(--rule); }
.b-nav__list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.b-nav__list::-webkit-scrollbar { display: none; }
.b-nav__list a {
  display: block; padding: 6px 12px; border-radius: 99px; white-space: nowrap;
  font-size: .875rem; font-weight: 500; text-decoration: none; color: var(--graphite);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.b-nav__list a.is-current { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .b-nav__list a:not(.is-current):hover { background: var(--sweep); color: var(--ink); } }
html { scroll-padding-top: 120px; }

/* ---------- cover ---------- */
.b-cover {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night) url(../img/tex-night.jpg) repeat; background-size: 512px; color: #F2EFF3;
  padding-block: clamp(72px, 10vw, 150px) clamp(64px, 8vw, 120px);
}
.b-cover__meta { font-size: .875rem; color: var(--fog); line-height: 1.5; }
.b-cover__logo { width: min(520px, 76vw); margin-top: clamp(40px, 6vw, 80px); color: #fff; }
.brand-draw { width: 100%; height: auto; overflow: visible; }
.brand-draw__stroke { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.has-motion .brand-draw__stroke { stroke-dashoffset: 1; }
.has-motion .brand-draw__l { transform: translateY(380px); }
.b-cover__title { margin-top: clamp(48px, 7vw, 96px); font-size: clamp(3rem, 8vw, 8rem); line-height: .9; letter-spacing: -0.045em; }
.b-cover__lede { margin-top: 28px; max-width: 32em; font-size: clamp(1.125rem, 1.4vw, 1.3rem); color: var(--fog); }
/* the loop on Night: the lightbox cut-out is lit for light grounds, so it sits back a little */
.b-cover__cord { position: absolute; right: clamp(-40px, 4vw, 120px); bottom: clamp(40px, 8vw, 120px); width: clamp(160px, 26vw, 420px); z-index: -1; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }

/* ---------- chapters ---------- */
.b-sec { padding-block: clamp(80px, 10vw, 150px); border-bottom: 1px solid var(--rule); }
.b-sec:nth-of-type(even) { background: var(--paper); }
.b-sec__head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px clamp(16px, 2vw, 32px); margin-bottom: clamp(40px, 5vw, 72px); max-width: 980px; }
.b-sec__num { grid-row: span 2; padding-top: .55em; font-size: .9375rem; font-weight: 700; color: var(--violet-deep); }
.b-sec__head h2 { max-width: 14em; }
.b-sec__head .lede { margin-top: 20px; }
.b-sub { margin: clamp(56px, 6vw, 88px) 0 24px; font-size: 1.5rem; }
.b-note { margin-top: 14px; font-size: .875rem; color: var(--graphite); }

/* ---------- 01 idea ---------- */
.idea { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.idea__stage { position: relative; padding: 32px 0; }
.idea__svg { width: 100%; height: auto; overflow: visible; }
.idea__fill { fill: var(--haze); }
.idea__line { fill: none; stroke: var(--violet); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.idea__tip { fill: var(--violet); opacity: 0; }
.idea__marks li {
  position: absolute; left: var(--x); top: var(--y);
  font-size: .8125rem; font-weight: 600; color: var(--graphite); white-space: nowrap;
}
.idea__text p + p { margin-top: 18px; color: var(--graphite); }
.idea__text .lede { color: var(--ink); }
.motifs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(64px, 8vw, 120px); }
.motif__visual { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--sweep) url(../img/tex-sweep.jpg); background-size: 400px; display: grid; place-items: center; }
.motif__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 40%; }
.motif__visual--loop img { width: 62%; height: auto; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(20, 16, 22, .2)); }
.motif__visual--line svg { width: 86%; height: 60%; overflow: visible; }
.motif__visual--line path { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.motif h3 { margin-top: 20px; font-size: 1.25rem; }
.motif p { margin-top: 8px; color: var(--graphite); font-size: 1rem; }

/* ---------- 02 logo ---------- */
.logo-hero { margin: 0; }
.logo-hero__plate { display: grid; place-items: center; padding: clamp(48px, 8vw, 120px) clamp(20px, 6vw, 96px); background: #fff; border-radius: var(--radius-l); }
.clearspace { position: relative; width: min(720px, 100%); padding: calc(min(720px, 100%) * .121); outline: 1px dashed rgba(126, 34, 206, .45); }
.clearspace::before { content: ""; position: absolute; inset: calc(min(720px, 100%) * .121); outline: 1px solid rgba(126, 34, 206, .25); pointer-events: none; }
.clearspace__logo { width: 100%; height: auto; color: var(--ink); }
.clearspace__x { position: absolute; font-size: clamp(.75rem, 1.4vw, 1rem); font-weight: 700; color: var(--violet-deep); }
.clearspace__x--t { top: 6%; left: 50%; }
.clearspace__x--b { bottom: 6%; left: 50%; }
.clearspace__x--l { left: 5%; top: 44%; }
.clearspace__x--r { right: 5%; top: 44%; }
.logo-hero figcaption { margin-top: 16px; font-size: .9375rem; color: var(--graphite); }
.logo-hero figcaption strong { color: var(--ink); }
.logo-variants { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 56px); }
.logo-tile { display: grid; grid-template-rows: 1fr auto; border-radius: var(--radius); overflow: hidden; }
.logo-tile > svg, .logo-tile__mono { width: 74%; height: auto; margin: clamp(44px, 6vw, 72px) auto; }
.logo-tile p { padding: 14px 16px; font-size: .875rem; line-height: 1.45; background: rgba(255, 255, 255, .8); color: var(--graphite); }
.logo-tile p strong { display: block; color: var(--ink); }
.logo-tile--sweep { background: var(--sweep) url(../img/tex-sweep.jpg); background-size: 400px; color: var(--ink); }
.logo-tile--night { background: var(--night) url(../img/tex-night.jpg); background-size: 512px; color: #fff; }
.logo-tile--violet { background: var(--violet); }
.logo-tile--violet .logo-tile__mono { filter: brightness(0) invert(1); }
.logo-tile--paper { background: #fff; }
.logo-tile--paper .logo-tile__mono { filter: brightness(0) saturate(100%) invert(10%) sepia(6%) saturate(600%) hue-rotate(290deg); }
.logo-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); margin-top: clamp(56px, 7vw, 104px); }
.logo-row h3 { font-size: 1.5rem; }
.logo-row h3 + p { margin-top: 10px; color: var(--graphite); }
.mark-tiles__row { display: flex; align-items: flex-end; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.mark-tile { display: grid; place-items: center; background: var(--night); border-radius: 22%; color: var(--violet); }
.mark-tile svg { width: 64%; height: auto; }
.mark-tile--l { width: 128px; height: 128px; }
.mark-tile--m { width: 72px; height: 72px; }
.mark-tile--s { width: 40px; height: 40px; border-radius: 9px; }
.mark-tile--fav { width: 32px; height: 32px; border-radius: 6px; }
.logo-specs dl { margin-top: 18px; display: grid; }
.logo-specs dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.logo-specs dt { font-weight: 600; font-size: .9375rem; }
.logo-specs dd { color: var(--graphite); font-size: .9375rem; }
.arabic-name { font-family: "Noto Kufi Arabic", var(--font); font-weight: 800; font-size: 1.75rem; color: var(--ink) !important; line-height: 1.4; text-align: left; }
.logo-specs__tagline { width: min(360px, 100%); margin-top: 28px; }
.donts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dont__plate { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: #fff; color: var(--ink); }
.dont__plate::after { /* a single violet strike: the line, saying no */
  content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 2.5px; border-radius: 2px; background: var(--violet); transform: rotate(-14deg);
}
.dont__plate svg { width: 64%; height: auto; }
.dont--recolour .logo-ne { fill: #2FB37A; }
.dont--effects { filter: drop-shadow(4px 6px 0 #7E22CE) drop-shadow(0 0 6px rgba(0, 0, 0, .4)); }
.dont__plate--busy { background: url(../img/content-shoot.jpg) 40% 30% / cover; color: #fff; }
.dont p { margin-top: 12px; font-size: .9375rem; color: var(--graphite); }

/* ---------- 03 colour ---------- */
.proportion { display: flex; height: 64px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--rule) inset; }
.proportion span { flex: var(--w) 1 0; min-width: 0; display: flex; align-items: flex-end; padding: 10px 12px; background: var(--c); font-size: .8125rem; color: var(--ink); overflow: hidden; white-space: nowrap; }
.proportion span.is-dark { color: #fff; }
.proportion b { font-weight: 600; margin-right: 6px; }
.proportion span:nth-child(4) b, .proportion span:nth-child(3) b { display: none; }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.swatch--xl { grid-column: span 2; }
.swatch button {
  display: grid; width: 100%; height: 100%; text-align: left; padding: 0 0 16px; border-radius: var(--radius); background: #fff;
  box-shadow: 0 0 0 1px var(--rule); transition: transform 160ms var(--ease-out), box-shadow .3s var(--ease-out);
}
.swatch button:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .swatch button:hover { box-shadow: 0 0 0 1px var(--ink), var(--shadow); } }
.swatch__chip { display: block; height: 120px; border-radius: var(--radius) var(--radius) 0 0; background: var(--c); box-shadow: 0 -1px 0 var(--rule) inset; }
.swatch--xl .swatch__chip { height: 180px; }
.swatch__name { padding: 14px 16px 0; font-weight: 700; font-size: 1.0625rem; }
.swatch__hex { padding: 2px 16px 0; font-weight: 600; color: var(--violet-deep); font-size: .9375rem; }
.swatch__rgb { padding: 0 16px; color: var(--graphite); font-size: .8125rem; }
.swatch__role { padding: 8px 16px 0; color: var(--graphite); font-size: .875rem; line-height: 1.45; }
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pairs li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg); color: var(--fg); box-shadow: 0 0 0 1px var(--rule); }
.pairs__sample { font-size: 1.75rem; font-weight: 800; font-stretch: var(--display-stretch); line-height: 1; }
.pairs li span:nth-child(2) { font-size: .875rem; line-height: 1.3; }
.pairs b { font-size: .9375rem; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; padding: 10px 18px; border-radius: 99px;
  background: var(--ink); color: #fff; font-size: .9375rem; font-weight: 600;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .35s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 04 type ---------- */
.specimen { padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-l); background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.specimen__sample {
  --wdth: 112; --wght: 800;
  font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: .95; letter-spacing: -0.04em;
  font-stretch: calc(var(--wdth) * 1%); font-weight: var(--wght);
  outline: none; overflow-wrap: anywhere;
}
.specimen__sample:focus-visible { box-shadow: 0 2px 0 var(--violet); }
.specimen__controls { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 32px; }
.specimen__controls label { display: grid; grid-template-columns: auto auto; gap: 6px 12px; font-size: .875rem; font-weight: 600; min-width: 220px; }
.specimen__controls output { justify-self: end; color: var(--violet-deep); }
.specimen__controls input { grid-column: 1 / -1; accent-color: var(--violet-ui); width: 100%; }
.scale { margin-top: clamp(40px, 5vw, 72px); }
.scale li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--rule); }
.scale__label { font-weight: 600; font-size: .9375rem; }
.scale__label small { font-weight: 400; color: var(--graphite); font-size: .8125rem; }
.scale__s { min-width: 0; overflow-wrap: anywhere; }
.scale__s--d { font-size: clamp(2.5rem, 6.9vw, 7.5rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.045em; line-height: .9; }
.scale__s--h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.035em; line-height: .96; }
.scale__s--h3 { font-size: 1.5rem; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; }
.scale__s--lede { font-size: 1.3rem; line-height: 1.5; }
.scale__s--body { font-size: 1.0625rem; line-height: 1.6; max-width: 36em; }
.arabic { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 88px); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-l); background: var(--night) url(../img/tex-night.jpg); background-size: 512px; color: #fff; }
.arabic h3 { font-size: 1.5rem; }
.arabic p { margin-top: 10px; color: var(--fog); }
.arabic .b-note { color: var(--fog); }
.arabic__sample { font-family: "Noto Kufi Arabic", var(--font); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.5; color: #fff !important; text-align: right; }

/* ---------- 05 the line ---------- */
.b-line__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.rules { display: grid; gap: 4px; counter-reset: rule; }
.rules li { padding: 18px 0; border-top: 1px solid var(--rule); }
.rules h3 { font-size: 1.25rem; }
.rules p { margin-top: 6px; color: var(--graphite); }
.pad { position: sticky; top: 150px; }
.pad__svg {
  display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-l);
  background: var(--sweep) url(../img/tex-sweep.jpg); background-size: 400px;
  box-shadow: 0 0 0 1px var(--rule) inset; cursor: crosshair; touch-action: none;
}
.pad__path { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: opacity 1.2s var(--ease-out); }
.pad__path.is-fading { opacity: 0; }
.pad__hint { margin-top: 12px; font-size: .875rem; color: var(--graphite); }

/* ---------- 06 photography ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; margin: 0; }
.gallery__item--wide { grid-column: span 4; aspect-ratio: 21 / 9; }
.gallery__item img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; }
.gallery__item--wide img { object-position: 50% 45%; }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; font-size: .8125rem; line-height: 1.4; color: #fff; background: linear-gradient(transparent, rgba(20, 16, 22, .72)); }
.prompt { margin-top: clamp(40px, 5vw, 72px); padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius-l); background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.prompt h3 { font-size: 1.25rem; }
.prompt > p { margin-top: 6px; color: var(--graphite); }
.prompt blockquote { margin-top: 18px; padding-left: 18px; border-left: 3px solid var(--violet); font-size: 1.0625rem; line-height: 1.6; }
.photo-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(32px, 4vw, 56px); }
.photo-rules li { padding-top: 18px; border-top: 2px solid var(--ink); }
.photo-rules li:last-child { border-top-color: var(--rule); }
.photo-rules h3 { font-size: 1.25rem; }
.photo-rules p { margin-top: 8px; color: var(--graphite); }

/* ---------- 07 texture ---------- */
.textures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.texture { margin: 0; }
.texture__tile { aspect-ratio: 16 / 9; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule); }
.texture--sweep .texture__tile { background: url(../img/tex-sweep.jpg) 0 0 / 400px; }
.texture--night .texture__tile { background: url(../img/tex-night.jpg) 0 0 / 512px; }
.texture figcaption { margin-top: 12px; font-size: .9375rem; color: var(--graphite); }
.texture figcaption strong { color: var(--ink); margin-right: 6px; }
.elements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 88px); }
.element { display: grid; justify-items: start; padding: 28px; border-radius: var(--radius); background: var(--sweep) url(../img/tex-sweep.jpg); background-size: 400px; overflow: hidden; }
.element img { height: clamp(140px, 16vw, 220px); width: auto; margin: 8px auto 28px; filter: drop-shadow(0 20px 16px rgba(20, 16, 22, .22)) drop-shadow(0 3px 4px rgba(20, 16, 22, .14)); }
.element h3 { font-size: 1.25rem; }
.element p { margin-top: 4px; color: var(--graphite); }

/* ---------- 08 icons ---------- */
.icon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.icon-grid li { display: grid; justify-items: center; gap: 16px; padding: clamp(28px, 4vw, 48px) 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-align: center; }
.icon-grid svg { width: clamp(56px, 6vw, 80px); height: clamp(56px, 6vw, 80px); color: var(--violet); transition: transform .6s var(--ease-out); }
.icon-grid span { font-size: .875rem; font-weight: 500; color: var(--graphite); }
@media (hover: hover) and (pointer: fine) { .icon-grid li:hover svg { transform: rotate(-6deg) scale(1.06); } }
.icon-night { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 16px; padding: 28px 32px; border-radius: var(--radius); background: var(--night) url(../img/tex-night.jpg); background-size: 512px; }
.icon-night svg { width: 48px; height: 48px; color: var(--violet-light); }
.icon-night p { color: var(--fog); font-size: .9375rem; margin-left: auto; max-width: 22em; }

/* ---------- 09 motion ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px; }
.demo { display: grid; grid-template-rows: 1fr auto; border-radius: var(--radius-l); overflow: hidden; background: var(--night) url(../img/tex-night.jpg); background-size: 512px; color: #fff; }
.demo__stage { display: grid; place-items: center; padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px); }
.demo-logo { width: min(440px, 100%); height: auto; overflow: visible; }
.demo-logo__stroke { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.demo__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--rule-light); font-size: .875rem; color: var(--fog); }
.demo__foot strong { color: #fff; margin-right: 6px; }
.demo__foot .btn--outline { border-color: rgba(255, 255, 255, .5); color: #fff; }
.eases { display: grid; gap: 16px; }
.ease { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.ease svg { width: 96px; height: 96px; overflow: visible; background: var(--sweep); border-radius: 6px; }
.ease__curve { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-linecap: round; }
.ease__dot { fill: var(--ink); }
.ease h3 { font-size: 1.125rem; }
.ease p { margin-top: 4px; font-size: .875rem; color: var(--graphite); }
.timing { width: 100%; margin-top: clamp(40px, 5vw, 64px); border-collapse: collapse; font-size: .9375rem; }
.timing caption { text-align: left; font-size: 1.5rem; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; padding-bottom: 16px; }
.timing th { text-align: left; font-weight: 600; color: var(--graphite); font-size: .8125rem; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); }
.timing td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.timing td:first-child { font-weight: 600; }

/* ---------- 10 voice ---------- */
.voice-pairs { display: grid; gap: 16px; }
.voice-pairs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--rule); }
.voice-pairs p { padding: 22px 24px; }
.voice-pairs__yes { background: #fff; font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.voice-pairs__no { background: transparent; color: var(--graphite); text-decoration: line-through; text-decoration-color: rgba(179, 67, 248, .7); text-decoration-thickness: 2px; }
.voice-legend { display: flex; gap: 24px; margin-top: 16px; font-size: .875rem; color: var(--graphite); }
.voice-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 3px; vertical-align: -1px; }
.voice-legend__yes::before { background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.voice-legend__no::before { background: var(--sweep); box-shadow: 0 0 0 1px var(--rule); }

/* ---------- 11 applications ---------- */
.apps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.post { position: relative; grid-column: span 4; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); container-type: inline-size; }
.post--quote { background: var(--night) url(../img/tex-night.jpg); background-size: 512px; color: #fff; padding: 9%; display: flex; flex-direction: column; justify-content: center; }
.post__q { font-size: 7.4cqi; font-weight: 700; font-stretch: 106%; letter-spacing: -0.02em; line-height: 1.18; }
.post__by { margin-top: 6cqi; font-size: 3.4cqi; color: var(--fog); }
.post__mark { position: absolute; right: 7cqi; bottom: 7cqi; width: 13cqi; height: auto; color: var(--violet); }
.post--journal { background: var(--sweep) url(../img/tex-sweep.jpg); background-size: 400px; padding: 9%; display: flex; flex-direction: column; }
.post__kicker { font-size: 3.6cqi; font-weight: 600; color: var(--violet-deep); }
.post__t { margin-top: 4cqi; font-size: 11.5cqi; font-weight: 800; font-stretch: 112%; letter-spacing: -0.04em; line-height: .95; }
.post__line { width: 72%; height: auto; margin-top: 6cqi; overflow: visible; }
.post__line path { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; }
.post .post__logo { position: absolute; left: 9cqi; bottom: 8cqi; width: 30cqi; height: auto; color: var(--ink); }
.post--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.post__h { position: absolute; left: 8cqi; top: 9cqi; right: 30cqi; font-size: 10.5cqi; font-weight: 800; font-stretch: 112%; letter-spacing: -0.045em; line-height: .92; color: var(--ink); }
.story { grid-column: span 3; position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px; background: var(--night); container-type: inline-size; }
.story img { width: 100%; height: 62%; object-fit: cover; object-position: 50% 0; }
.story__foot { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; padding: 9cqi; color: #fff; background: var(--night) url(../img/tex-night.jpg); background-size: 512px; }
.story__kicker { font-size: 5cqi; font-weight: 600; color: var(--violet-light); }
.story__t { margin-top: 3cqi; font-size: 13cqi; font-weight: 800; font-stretch: 112%; letter-spacing: -0.04em; line-height: .95; }
.story__s { margin-top: 2cqi; font-size: 5cqi; color: var(--fog); }
.story__mark { position: absolute; right: 9cqi; bottom: 9cqi; width: 18cqi; height: auto; color: var(--violet); }
.cards { grid-column: span 9; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-self: center; }
.card { aspect-ratio: 85 / 55; border-radius: 8px; container-type: inline-size; position: relative; box-shadow: var(--shadow); }
.card--front { display: grid; place-items: center; background: var(--night) url(../img/tex-night.jpg); background-size: 512px; color: #fff; }
.card--front svg { width: 52%; height: auto; }
.card--back { padding: 7% 8%; background: #fff; color: var(--ink); }
.card__name { font-size: 6cqi; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; }
.card__role { font-size: 3.6cqi; color: var(--graphite); }
.card__contact { position: absolute; left: 8cqi; bottom: 8cqi; font-size: 3.4cqi; line-height: 1.5; }
.card__mark { position: absolute; right: 8cqi; bottom: 8cqi; width: 14cqi; height: auto; color: var(--violet); }
.cards__cap { grid-column: 1 / -1; font-size: .875rem; color: var(--graphite); }

/* ---------- footer ---------- */
.b-footer { padding-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .idea, .logo-row, .b-line__grid, .demo-grid, .arabic { grid-template-columns: minmax(0, 1fr); }
  .logo-variants, .donts, .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .motifs, .elements { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
  .pad { position: relative; top: 0; }
  .apps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .post { grid-column: span 3; }
  .story { grid-column: span 3; }
  .cards { grid-column: span 6; }
  .arabic__sample { text-align: left; }
}
@media (max-width: 600px) {
  .b-head__title { display: none; }
  .b-sec__head { grid-template-columns: minmax(0, 1fr); }
  .b-sec__num { grid-row: auto; padding-top: 0; }
  .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scale li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .logo-specs dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .voice-pairs li { grid-template-columns: minmax(0, 1fr); }
  .post, .story { grid-column: span 6; }
  .story { width: 70%; justify-self: center; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .swatch--xl { grid-column: span 2; }
  .proportion span:nth-child(2) b { display: none; }
  .idea__marks li { font-size: .6875rem; }
}

/* the original lockup: "next generation" in Montserrat Light, centred under the wordmark
   (set live rather than traced, because the source PNG clips the g) */
.lockup { width: min(380px, 100%); margin-top: 28px; color: var(--ink); container-type: inline-size; }
.lockup svg { width: 100%; height: auto; }
.lockup span { display: block; margin-top: 2.2cqi; padding-left: .44em; font-family: "Montserrat", var(--font); font-weight: 300; font-size: 3.9cqi; letter-spacing: .44em; text-align: center; line-height: 1; }
@media (max-width: 760px) {
  /* phones: the loop sits under the intro instead of behind it */
  .b-cover__cord { position: relative; right: auto; bottom: auto; display: block; width: 52vw; margin: 40px var(--gutter) 0 auto; z-index: 0; }
}
