/* Dorcas website — page layouts. The frame, tokens, buttons and motion states are in chrome.css. */

.section { padding-block: clamp(70px, 10vw, 140px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(30px, 5vw, 56px); }
.section-head h2, .h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.2; }
.section-head p { max-width: 46ch; margin: 0; color: var(--dim); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--neon); margin: 0 0 18px; }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: #D6D1E6; max-width: 40em; }
.prose { max-width: 66ch; }
.prose p { font-size: 1.1rem; }

/* ------------------------------------------------------------------ home: hero */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
.hero-stage { position: absolute; inset: -4%; z-index: 0; }
.hero-art { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform-origin: 50% 46%; transition: transform 2.8s cubic-bezier(.16, 1, .3, 1), filter 2.4s var(--ease), opacity 1.4s var(--ease); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 70% at 50% 30%, transparent 40%, rgba(10, 8, 20, .7) 100%), linear-gradient(180deg, transparent 62%, var(--void) 100%); }
.hero-sky { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; mix-blend-mode: screen; pointer-events: none; }
.hero-floats { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity 2s 1s; }
.hero-floats img { position: absolute; width: clamp(40px, 5vw, 86px); opacity: .85; filter: drop-shadow(0 0 18px rgba(183, 155, 255, .6)); animation: drift 9s ease-in-out infinite; }
.hero-floats img:nth-child(1) { top: 20%; left: 12%; }
.hero-floats img:nth-child(2) { top: 64%; left: 22%; animation-delay: -2s; width: clamp(30px, 3.4vw, 60px); }
.hero-floats img:nth-child(3) { top: 16%; right: 18%; animation-delay: -4s; }
.hero-floats img:nth-child(4) { top: 58%; right: 9%; animation-delay: -6s; width: clamp(34px, 4vw, 70px); }
.hero-floats img:nth-child(5) { top: 38%; left: 4%; animation-delay: -3s; width: clamp(26px, 2.6vw, 46px); }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(8deg); } }

.hero-center { position: absolute; z-index: 4; left: 50%; bottom: clamp(26px, 6vh, 70px); transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; text-align: center; width: min(92vw, 520px); }
.hero-logo { position: relative; display: block; width: clamp(210px, 25vw, 400px); }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 0 30px rgba(255, 74, 122, .5)); clip-path: inset(0 0 0 0); transition: clip-path 1.5s var(--ease-io), filter 1.5s var(--ease); }
.hero-logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) no-repeat; background-size: 250% 100%; background-position: 130% 0;
  -webkit-mask: url("img/logo-wordmark.webp") center / contain no-repeat; mask: url("img/logo-wordmark.webp") center / contain no-repeat;
  animation: shine 5s 1s var(--ease) infinite;
}
.hero-tag { margin: 0; font-size: clamp(.68rem, 1.1vw, .86rem); letter-spacing: .38em; text-transform: uppercase; color: var(--paper); text-shadow: 0 0 18px rgba(183, 155, 255, .8); min-height: 1.5em; transition: opacity .6s; }
.hero-copy { position: absolute; z-index: 4; right: var(--pad); top: 50%; transform: translateY(-46%); width: min(400px, 31vw); }
.hero-copy .kicker { color: var(--lilac); }
.hero-copy h1 { font-size: clamp(2.1rem, 3.7vw, 3.6rem); line-height: 1.2; text-shadow: 0 6px 40px rgba(10, 8, 20, .8); }
.hero-copy h1 .grad-text { display: inline-block; padding-bottom: .1em; }
.hero-copy p { margin: 18px 0 26px; color: #DCD7EA; text-shadow: 0 2px 14px rgba(10, 8, 20, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-side { position: absolute; z-index: 4; left: var(--pad); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; direction: ltr; }
.hero-fact { min-width: 150px; padding: 14px 18px; border: 1px solid var(--line-2); background: rgba(10, 8, 20, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 0; }
.hero-fact b { display: block; font: 800 1.7rem/1 var(--latin); color: var(--paper); }
.hero-fact span { display: block; direction: rtl; text-align: left; font-size: .85rem; color: var(--mist); margin-top: 6px; }
.hero-scroll { position: absolute; z-index: 4; left: var(--pad); bottom: 34px; display: flex; align-items: center; gap: 12px; font-size: .66rem; letter-spacing: .3em; color: var(--dim); direction: ltr; }
.hero-scroll i { position: relative; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--pink); animation: drop 1.8s var(--ease-io) infinite; }
@keyframes drop { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
[data-intro] { transition: opacity 1s var(--ease), translate 1s var(--ease); }

/* Intro: chrome.js adds .is-intro on the first visit, site.js plays the stages (go-art → go-logo → go-tag → go-ui). */
.is-intro .mast { transform: translateY(-130%); }
.is-intro .hero:not(.go-art) .hero-art { transform: scale(.28); filter: blur(18px) brightness(.4); opacity: 0; }
.is-intro .hero:not(.go-art) .hero-floats { opacity: 0; }
.is-intro .hero:not(.go-logo) .hero-logo img { clip-path: inset(0 100% 0 0); filter: blur(10px) drop-shadow(0 0 30px rgba(255, 74, 122, .5)); }
.is-intro .hero:not(.go-tag) .hero-tag { opacity: 0; }
.is-intro .hero:not(.go-ui) [data-intro] { opacity: 0; translate: 0 26px; }
.hero-skip { position: absolute; z-index: 6; top: 24px; left: 50%; transform: translateX(-50%); background: none; border: 0; color: var(--dim); font: 500 .8rem var(--ar); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .4s; }
.is-intro .hero-skip { opacity: 1; pointer-events: auto; }

@media (max-width: 1100px) { .hero-side { display: none; } .hero-copy { width: min(400px, 42vw); } }
@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .hero-stage { position: relative; inset: auto; height: 78svh; min-height: 480px; }
  .hero::after { background: linear-gradient(180deg, transparent 50%, var(--void) 78%); }
  .hero-sky { height: 78svh; min-height: 480px; }
  .hero-center { bottom: auto; top: max(330px, calc(78svh - 150px)); }
  .hero-copy { position: relative; inset: auto; transform: none; width: auto; padding: 70px var(--pad) 10px; }
  .hero-copy p { font-size: 1rem; }
  .hero-scroll { display: none; }
}

/* ------------------------------------------------------------------ band */
.band { padding: clamp(22px, 3vw, 36px) 0; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 74, 122, .06), rgba(120, 32, 206, .1), rgba(127, 245, 230, .05)); }
.band .marquee-track { gap: 34px; padding-inline-end: 34px; }
.band span { font: 800 clamp(1.6rem, 4.4vw, 3.6rem)/1.2 var(--latin); color: var(--paper); text-transform: uppercase; white-space: nowrap; }
.band span.o { color: transparent; -webkit-text-stroke: 1px rgba(246, 243, 255, .55); }
.band span.ar { font-family: var(--display); text-transform: none; }

/* ------------------------------------------------------------------ statement that lights up word by word */
.statement { font: 700 clamp(1.5rem, 3.4vw, 2.85rem)/1.6 var(--display); color: var(--paper); max-width: 30em; margin: 0; }
html.js [data-light] .lw { opacity: .16; transition: opacity .35s; }
html.js [data-light] .lw.on { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(40px, 6vw, 80px); border: 1px solid var(--line); background: var(--line); }
.fact { background: var(--page-bg); padding: clamp(20px, 3vw, 34px); transition: background-color 1.2s; }
.fact b { display: block; font: 800 clamp(2.2rem, 4.5vw, 3.8rem)/1.1 var(--latin); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; text-align: right; }
.fact span { display: block; margin-top: 10px; color: var(--mist); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ services as worlds (pinned horizontal track on wide screens) */
.worlds { position: relative; padding-block: clamp(60px, 8vw, 110px); }
.worlds-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; padding-inline: var(--pad); max-width: var(--max); margin-inline: auto; width: 100%; }
.worlds-track { display: flex; gap: 22px; padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 10px; }
.worlds-track::-webkit-scrollbar { display: none; }
.world {
  position: relative; flex: none; width: min(84vw, 430px); scroll-snap-align: start; border-radius: 0; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--night-3), var(--night)); border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: border-color .4s;
}
.world:hover { border-color: rgba(255, 74, 122, .5); }
.world .rimg { aspect-ratio: 5 / 4; }
.world-body { position: relative; z-index: 1; padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.world-en { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--neon); }
.world h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); }
.world p { margin: 0; color: var(--mist); font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 6px 0 0; padding: 0; }
.chips li { padding: 4px 12px; border-radius: 0; border: 1px solid var(--line-2); font-size: .82rem; color: var(--mist); background: rgba(10, 8, 20, .35); }
.world .more { margin-top: auto; padding-top: 12px; align-self: flex-start; }
.worlds-progress { height: 2px; margin: 26px var(--pad) 0; background: var(--line); position: relative; overflow: hidden; }
.worlds-progress i { position: absolute; inset: 0; background: var(--grad); background-size: 300% 100%; transform-origin: right; transform: scaleX(var(--p, 0)); }
@media (min-width: 900px) {
  .worlds.is-pinned { padding: 0; }
  .worlds.is-pinned .worlds-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .worlds.is-pinned .worlds-track { overflow: visible; scroll-snap-type: none; will-change: transform; width: max-content; }
  .worlds.is-pinned .world { width: clamp(340px, 29vw, 430px); }
  .worlds.is-pinned .worlds-pin { padding-top: 70px; }
  .worlds.is-pinned .world .rimg { aspect-ratio: auto; height: clamp(150px, 27vh, 290px); }
}

/* ------------------------------------------------------------------ client logos in full colour */
.logo-rows { display: grid; gap: 14px; }
.logo-rows .marquee-track { gap: 14px; padding-inline-end: 14px; }
.logo-tile { flex: none; display: grid; place-items: center; width: clamp(150px, 15vw, 210px); aspect-ratio: 7 / 4; border-radius: 0; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(35, 27, 59, .85), rgba(17, 14, 31, .85)); transition: border-color .4s, box-shadow .4s; }
.logo-tile { position: relative; overflow: hidden; }
.logo-tile img { position: absolute; left: 11%; top: 15%; width: 78%; height: 70%; max-width: none; object-fit: contain; transition: transform .5s var(--ease); }
.logo-tile:hover { border-color: var(--line-2); box-shadow: 0 0 40px -12px rgba(183, 155, 255, .6); }
.logo-tile:hover img { transform: scale(1.08); }
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); gap: 14px; }
.logo-wall li { min-width: 0; }
.logo-wall .logo-tile { width: 100%; height: auto; aspect-ratio: 7 / 4; }
html.js .logo-wall li { opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
html.js .logo-wall li.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ call to action */
.cta { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: clamp(36px, 6vw, 80px); border-radius: 0; border: 1px solid rgba(255, 74, 122, .3); background: linear-gradient(135deg, rgba(120, 32, 206, .35), rgba(17, 14, 31, .9) 55%, rgba(255, 74, 122, .25)); }
.cta-glow { position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; left: -10%; top: -60%; background: radial-gradient(circle, rgba(255, 74, 122, .45), transparent 65%); filter: blur(40px); animation: float-glow 12s ease-in-out infinite; }
@keyframes float-glow { 50% { transform: translate(40%, 30%); } }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3.3rem); }
.cta p { margin: 12px 0 0; color: var(--mist); max-width: 48ch; }
.cta-text { position: relative; z-index: 1; }
.cta .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ inner pages: hero */
.page-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); align-items: center; gap: 40px; max-width: var(--max); margin-inline: auto; padding: clamp(130px, 16vw, 180px) var(--pad) clamp(40px, 7vw, 90px); min-height: 70vh; }
.page-hero-grid { position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; pointer-events: none; background: radial-gradient(50% 70% at 25% 40%, rgba(120, 32, 206, .35), transparent 70%), radial-gradient(40% 50% at 85% 70%, rgba(255, 74, 122, .14), transparent 70%); }
.page-hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.6rem); line-height: 1.15; }
.page-hero .lead { margin: 24px 0 0; }
.page-hero-art { justify-self: center; width: min(100%, 440px); }
.page-hero-art .rimg { border-radius: 0; }
.page-hero-art .rimg img { object-fit: contain; }
.page-hero-art { filter: drop-shadow(0 30px 60px rgba(110, 60, 200, .45)); }
@media (max-width: 860px) { .page-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 120px; } .page-hero-art { width: 62%; order: -1; } }

/* ------------------------------------------------------------------ about */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.split > h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); position: sticky; top: 110px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > h2 { position: static; } }
.stack { display: grid; gap: 18px; }
.stack-card {
  position: sticky; top: calc(110px + var(--i, 0) * 22px); min-height: 220px; padding: clamp(26px, 4vw, 46px); border-radius: 0; display: grid; grid-template-columns: auto 1fr; gap: 18px 30px; align-items: start;
  background: linear-gradient(150deg, var(--night-3), var(--night) 70%); border: 1px solid var(--line-2); box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .9);
}
.stack-card h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); min-width: 6ch; display: flex; align-items: center; gap: 14px; }
.stack-card p { margin: 0; color: var(--mist); font-size: 1.08rem; }
@media (max-width: 640px) { .stack-card { grid-template-columns: 1fr; position: relative; top: auto; min-height: 0; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pair > section { position: relative; padding: clamp(28px, 4vw, 52px); border-radius: 0; border: 1px solid var(--line); background: rgba(25, 20, 43, .5); overflow: hidden; }
.pair > section h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 14px; }
.pair > section p { margin: 0; color: var(--mist); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ services index: a list, each row with its picture */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-item a { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(24px, 3.4vw, 42px) 0; border-bottom: 1px solid var(--line); }
.svc-item h2 { font-size: clamp(1.7rem, 3.6vw, 3.2rem); transition: color .4s, transform .6s var(--ease); }
.svc-item .world-en { display: block; margin-top: 8px; }
.svc-item p { margin: 0; color: var(--mist); }
.svc-item .arrow { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color .4s, transform .5s var(--ease), border-color .4s; }
.svc-item .arrow svg { width: 22px; height: 22px; fill: var(--paper); }
.svc-item a:hover h2 { color: transparent; -webkit-text-stroke: 1px var(--paper); transform: translateX(-12px); }
.svc-item a:hover .arrow { background: var(--pink); transform: rotate(45deg); border-color: var(--pink); }
.svc-thumb { display: block; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-item a:hover .svc-thumb img { transform: scale(1.06); }
@media (max-width: 860px) {
  .svc-item a { grid-template-columns: 96px 1fr; }
  .svc-item p, .svc-item .arrow { display: none; }
  .svc-thumb { width: 96px; }
}

/* ------------------------------------------------------------------ one service: showcase layouts */
.showcase { display: grid; gap: 18px; }
.show-grid { grid-template-columns: repeat(3, 1fr); }
.show-phones { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; align-items: center; padding-bottom: 40px; }
.show-wide { grid-template-columns: repeat(2, 1fr); }
.show-browser { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tile { position: relative; margin: 0; min-width: 0; border-radius: 0; overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(150deg, var(--night-3), var(--night)); transition: border-color .4s, box-shadow .4s; }
.tile:hover { border-color: rgba(255, 74, 122, .55); box-shadow: 0 0 50px -16px rgba(255, 74, 122, .6); }
.show-grid .tile { aspect-ratio: 1; }
.show-grid .tile:nth-child(5n + 1) { grid-row: span 2; aspect-ratio: auto; }
.show-wide .tile { aspect-ratio: 16 / 9; }
.show-phones .tile { aspect-ratio: 9 / 19; border-radius: 0; border-width: 6px; border-color: #2B2342; }
.show-phones .tile::before { content: ""; position: absolute; z-index: 3; top: 10px; left: 50%; width: 34%; height: 18px; margin-left: -17%; border-radius: 0; background: #0A0814; }
.show-phones .tile:nth-child(even) { translate: 0 40px; }
.show-browser .tile { aspect-ratio: 16 / 11; }
.show-browser .tile::before { content: ""; position: absolute; z-index: 3; inset: 0 0 auto; height: 34px; background: radial-gradient(circle at 18px 17px, #FF6B6B 5px, transparent 6px), radial-gradient(circle at 36px 17px, #F7C85F 5px, transparent 6px), radial-gradient(circle at 54px 17px, #6FDB8F 5px, transparent 6px), #1C1630; border-bottom: 1px solid var(--line); }
.tile .rimg { position: absolute; inset: 0; }
.show-browser .tile .rimg { top: 34px; }
.tile-label { position: absolute; inset: auto 0 0; z-index: 2; padding: 18px 20px; display: flex; align-items: center; gap: 12px; font: 700 1.1rem/1.4 var(--display); color: var(--paper); }
.tile.has-img .tile-label { background: linear-gradient(0deg, rgba(10, 8, 20, .85), transparent); }
.tile:not(.has-img) { display: grid; place-items: center; }
.tile:not(.has-img) .tile-label { position: relative; flex-direction: column; text-align: center; padding: 24px; }
.tile:not(.has-img)::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 60% at 50% 40%, rgba(120, 32, 206, .35), transparent 70%); }
.tile .gem { width: 14px; height: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 800 2.6rem/1 var(--latin); color: transparent; -webkit-text-stroke: 1px var(--lilac); direction: ltr; }
.steps.has-pics li { grid-template-columns: 90px minmax(120px, 220px) 1fr; }
.step-pic { display: block; aspect-ratio: 16 / 10; border-radius: 0; overflow: hidden; border: 1px solid var(--line-2); }
.step-pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .steps.has-pics li { grid-template-columns: 52px 1fr; } .steps.has-pics li::before { font-size: 1.8rem; } .steps.has-pics .step-pic { grid-column: 2; } .steps.has-pics li b { grid-column: 2; } }
.steps li b { font: 700 clamp(1.3rem, 2.4vw, 1.9rem)/1.4 var(--display); color: var(--paper); }
@media (max-width: 760px) { .showcase { gap: 12px; } .show-grid, .show-wide, .show-browser, .show-phones { grid-template-columns: 1fr 1fr; } .show-grid .tile:nth-child(5n + 1) { grid-row: auto; aspect-ratio: 1; } .tile-label { padding: 12px; gap: 8px; font-size: .95rem; } }
@media (max-width: 420px) { .show-wide, .show-browser { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .show-wide, .show-browser { grid-template-columns: 1fr; } }
.svc-body p { font-size: 1.15rem; }
.others { display: flex; flex-wrap: wrap; gap: 10px; }
.others a { padding: 12px 22px; border-radius: 0; border: 1px solid var(--line-2); color: var(--paper); transition: background-color .3s, border-color .3s; }
.others a:hover { background: rgba(255, 74, 122, .12); border-color: var(--pink); }

/* ------------------------------------------------------------------ team */
.team-photo { border-radius: 0; aspect-ratio: 16 / 8; }
.team-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.team-grid > li { flex: 0 0 calc((100% - 54px) / 4); min-width: 0; } /* a short last row sits in the middle, not alone at the edge */
@media (max-width: 1180px) { .team-grid > li { flex-basis: calc((100% - 36px) / 3); } }
@media (max-width: 860px) { .team-grid > li { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 540px) { .team-grid { gap: 12px; } .team-grid > li { flex-basis: calc((100% - 12px) / 2); } .member-body { padding: 14px 14px 16px; } .member h3 { font-size: 1.05rem; } .member .role { font-size: .88rem; } .member p { font-size: .86rem; margin-top: 8px; } }
.member { position: relative; height: 100%; border-radius: 0; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(170deg, var(--night-3), var(--night)); transition: border-color .4s; }
.member:hover { border-color: rgba(183, 155, 255, .45); }
.member .rimg { aspect-ratio: 1; }
.member-body { padding: 20px 22px 24px; }
.member h3 { font-size: 1.25rem; }
.member .role { display: block; color: var(--pink); font-weight: 700; margin-top: 4px; }
.member p { margin: 12px 0 0; color: var(--mist); font-size: .96rem; }

/* ------------------------------------------------------------------ contact */
.choices { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.choice { position: relative; overflow: hidden; border-radius: 0; padding: clamp(28px, 4.5vw, 54px); background: rgba(25, 20, 43, .6); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.choice.main { background: radial-gradient(120% 120% at 0% 100%, rgba(229, 0, 95, .35), transparent 60%), rgba(25, 20, 43, .7); border-color: rgba(247, 100, 122, .35); }
.choice h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); position: relative; }
.choice p { margin: 0; color: var(--mist); position: relative; }
.choice .btn { margin-top: auto; }
@media (max-width: 760px) { .choices { grid-template-columns: 1fr; } }
.reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; margin-top: 18px; border-radius: 0; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.reach > div { background: var(--page-bg); padding: 24px 26px; transition: background-color 1.2s; }
.reach small { display: block; color: var(--dim); margin-bottom: 6px; font-size: .85rem; }
.reach a, .reach span { color: var(--paper); font-size: 1.1rem; font-weight: 700; word-break: break-word; }

/* ------------------------------------------------------------------ policies */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(30px, 5vw, 80px); align-items: start; padding-bottom: 40px; }
.doc-body { max-width: 72ch; }
.doc-body h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 2em 0 .6em; }
.doc-body h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.doc-body ul, .doc-body ol { padding-inline-start: 1.3em; }
.doc-body li { margin-bottom: .4em; }
.doc-body li::marker { color: var(--pink); }
.doc-body a { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
.doc-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 0; border: 1px solid var(--line); background: rgba(25, 20, 43, .5); }
.doc-aside h2 { font-size: .85rem; color: var(--dim); margin-bottom: 8px; font-family: var(--ar); }
.doc-aside a { padding: 8px 12px; border-radius: 0; color: var(--mist); }
.doc-aside a:hover { background: rgba(183, 155, 255, .08); color: var(--paper); }
.doc-aside a[aria-current="page"] { background: rgba(255, 74, 122, .14); color: var(--paper); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .doc-aside { position: static; order: -1; flex-direction: row; flex-wrap: wrap; } .doc-aside h2 { width: 100%; } }

/* ------------------------------------------------------------------ 404 */
.lost { min-height: 88vh; display: grid; place-items: center; text-align: center; padding: 140px var(--pad) 60px; }
.lost-code { font: 800 clamp(6rem, 24vw, 18rem)/1 var(--latin); color: transparent; -webkit-text-stroke: 2px var(--lilac); margin: 0; animation: lost 4s steps(1) infinite; }
@keyframes lost { 0%, 92%, 100% { transform: none; text-shadow: none; } 93% { transform: translate(-6px, 2px); text-shadow: 6px 0 var(--pink), -6px 0 var(--neon); } 96% { transform: translate(4px, -3px); text-shadow: -5px 0 var(--pink), 5px 0 var(--neon); } }
.lost h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 10px 0 14px; }
.lost .hero-actions { justify-content: center; margin-top: 24px; }
.statement-more { margin: 34px 0 0; }

/* ------------------------------------------------------------------ team pictures with living eyes (inc/avatars.php) */
.member-pic { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-bottom: 1px solid var(--line); background: #E6E6E6; }
.member-pic img, .member-pic .fe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fe { pointer-events: none; overflow: hidden; }
.fe-look { transition: transform .5s var(--ease); }
.fe-eye { transform-box: view-box; transition: transform .07s ease-in; }
.face.is-blink .fe-eye { transform: scaleY(.3); }
