/* Larsa Systems - site styles. Ink, gold and paper come from the mark; the 22:26 cut is the stylus angle of its L. */
:root {
  --ink: #1F2A44; --ink-2: #2B3858; --ink-deep: #141C30; --gold: #C0913A; --gold-hi: #E0B463; --gold-pale: #F1E3C4;
  --paper: #F7F4EC; --paper-2: #EFE9DB; --line: #DCD3BF; --muted: #5D6680; --muted-on-ink: #A9B1C6;
  --serif: "Noto Serif Display", Georgia, serif; --sans: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --lh: 1.6; --gut: clamp(20px, 5vw, 72px); --max: 1240px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}
html[lang="ar"] { --serif: "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif; --sans: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif; --lh: 1.85; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/var(--lh) var(--sans); overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.01em; line-height: 1.08; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.45; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--gold); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold); color: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .5s, color .5s, box-shadow .5s, transform .5s var(--ease); color: var(--paper); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.hdr.light { background: rgba(247, 244, 236, .88); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.hdr.dark.scrolled { background: rgba(20, 28, 48, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hdr.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; }
.brand svg { width: 30px; height: 30px; }
.brand .L { fill: currentColor; } .brand .S { fill: var(--gold); }
.brand b { font: 600 21px/1 "Noto Serif Display", Georgia, serif; letter-spacing: .14em; }
.brand small { display: block; font: 500 9.5px/1 "IBM Plex Sans", sans-serif; letter-spacing: .26em; color: var(--gold); margin-top: 5px; }
html[lang="ar"] .brand b { font: 700 19px/1.1 "Noto Kufi Arabic", sans-serif; letter-spacing: 0; }
html[lang="ar"] .brand small { font: 500 11px/1 "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; opacity: .8; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; inset: auto 0 0; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: var(--from, left); transition: transform .4s var(--ease); }
html[dir="rtl"] .nav a::after { --from: right; }
.nav a:hover { opacity: 1; } .nav a:hover::after { transform: scaleX(1); }
.lang { text-decoration: none; font-size: 14px; border: 1px solid currentColor; padding: 6px 14px; border-radius: 99px; opacity: .85; transition: background .3s, color .3s, opacity .3s; }
.lang:hover { background: var(--gold); border-color: var(--gold); color: #fff; opacity: 1; }
.lang[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.lang[lang="en"] { font-family: "IBM Plex Sans", sans-serif; }
@media (max-width: 860px) { .nav { display: none; } .hdr .wrap { height: 64px; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; background: radial-gradient(120% 80% at 70% 40%, #26345A 0%, var(--ink) 45%, var(--ink-deep) 100%); color: var(--paper); overflow: hidden; display: grid; align-items: center; }
.hero canvas.wedges { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-block: 120px 90px; }
.hero .kick { font-size: 15px; color: var(--gold-hi); margin-bottom: 26px; display: flex; align-items: center; gap: 12px; }
.hero .kick::before { content: ""; width: 34px; height: 1.5px; background: var(--gold); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 5rem); }
.hero h1 .ln { white-space: nowrap; }
html[lang="ar"] .hero h1 .ln { padding-bottom: .28em; margin-bottom: -.2em; }
html[lang="ar"] .stmt h3 .w { padding-bottom: .3em; margin-bottom: -.22em; }
html[lang="ar"] .hero h1 { font-size: clamp(2rem, 4.2vw, 3.9rem); }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero.go h1 .ln > span { transform: none; }
.hero h1 .ln:nth-child(2) > span { transition-delay: .12s; } .hero h1 .ln:nth-child(3) > span { transition-delay: .24s; } .hero h1 .ln:nth-child(4) > span { transition-delay: .36s; }
.hero .lede { max-width: 46ch; color: var(--muted-on-ink); font-size: clamp(16px, 1.35vw, 19px); margin-top: 30px; opacity: 0; transform: translateY(14px); transition: opacity 1s .7s, transform 1s .7s var(--ease); }
.hero .acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; opacity: 0; transition: opacity 1s 1s; }
.hero.go .lede, .hero.go .acts { opacity: 1; transform: none; }
.btn { --c: var(--gold); display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; font-size: 16px; padding: 15px 26px; position: relative; isolation: isolate; color: var(--ink-deep); background: var(--c); clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 20px, 100% 100%, 0 100%); transition: background .3s; }
html[dir="rtl"] .btn { clip-path: polygon(17px 0, 100% 0, 100% 100%, 0 100%, 0 20px); }
.btn:hover { background: var(--gold-hi); }
.btn.ghost { background: transparent; color: inherit; clip-path: none; padding-inline: 4px; }
.btn.ghost span { border-bottom: 1px solid rgba(247, 244, 236, .35); padding-bottom: 3px; transition: border-color .3s; }
.btn.ghost:hover span { border-color: var(--gold); }
.btn .arr { width: 18px; height: 10px; transition: transform .35s var(--ease); }
html[dir="rtl"] .btn .arr { transform: scaleX(-1); }
.btn:hover .arr { transform: translateX(4px); } html[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.hero .stage { position: relative; aspect-ratio: 1; width: min(100%, 560px); justify-self: center; cursor: pointer; }
.hero .stage svg { width: 100%; height: 100%; overflow: visible; }
.hero .glow { position: absolute; inset: 14% 10% 20% 22%; background: radial-gradient(circle at 62% 34%, rgba(224, 180, 99, .28), transparent 60%); filter: blur(10px); opacity: 0; transition: opacity 2s 1.6s; }
.hero.go .glow { opacity: 1; }
.cue { position: absolute; bottom: 26px; inset-inline-start: 50%; translate: -50% 0; font-size: 12px; letter-spacing: .2em; color: var(--muted-on-ink); display: grid; justify-items: center; gap: 10px; }
html[lang="ar"] .cue { letter-spacing: 0; font-size: 13px; }
html[dir="rtl"] .cue { translate: 50% 0; }
.cue i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: drip 2.4s infinite var(--ease); transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 96px 80px; gap: 10px; }
  .hero .stage { order: -1; width: min(78vw, 360px); }
  .hero h1, html[lang="ar"] .hero h1 { max-width: none; }
}

/* ---------- pinned scenes ---------- */
.pin { position: relative; }
.pin > .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.static-only { display: none; }
html:not(.mo) .pin { height: auto !important; }
html:not(.mo) .pin > .sticky { position: relative; height: auto; overflow: visible; }
html:not(.mo) .motion-only { display: none !important; }
html:not(.mo) .static-only { display: block; }

/* dawn: three sentences while the sun comes up out of the night */
#dawn { height: 340vh; }
#dawn .sticky { display: grid; place-items: center; background: var(--ink-deep); }
#dawn .sky { position: absolute; inset: 0; }
#dawn .sun { position: absolute; left: 50%; top: 64%; width: 46vmin; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--gold-hi), var(--gold) 62%); translate: -50% 0; box-shadow: 0 0 120px 40px rgba(224, 180, 99, .18); }
#dawn .ground { position: absolute; inset: 64% 0 0; background: var(--ink-deep); }
#dawn .horizon { position: absolute; left: 0; right: 0; top: 64%; height: 1.5px; background: var(--gold); transform-origin: center; }
#dawn .says { position: relative; z-index: 2; width: min(1000px, 100% - 2 * var(--gut)); height: 30vh; margin-top: -46vh; text-align: center; }
#dawn .say { position: absolute; inset: 0; display: grid; place-items: center; font: 600 clamp(1.9rem, 4.6vw, 4rem)/1.12 var(--serif); opacity: 0; }
html[lang="ar"] #dawn .say { line-height: 1.55; font-size: clamp(1.7rem, 3.8vw, 3.2rem); }
#dawn .static-only { padding: 90px 0; }
#dawn .static-only p { font: 600 clamp(1.6rem, 3.5vw, 2.6rem)/1.25 var(--serif); color: var(--paper); margin-bottom: 18px; }

/* section titles */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--gold); margin-bottom: 18px; }
.eyebrow svg { width: 10px; height: 12px; fill: var(--gold); }
html[dir="rtl"] .eyebrow svg, html[dir="rtl"] .stmt .wedge { transform: scaleX(-1); }
.h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
html[lang="ar"] .h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }

/* services: the sun stops at each of seven stations on its orbit */
#services { height: 820vh; }
#services .sticky { display: grid; align-items: center; }
#services .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 70px); align-items: center; padding-top: 70px; }
#services .scene { position: relative; aspect-ratio: 1.12; }
#services .scene svg { width: 100%; height: 100%; overflow: visible; }
#services .count { position: absolute; inset-inline-start: 0; bottom: 4%; font: 500 15px/1 var(--sans); color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
#services .count b { font: 600 46px/1 var(--serif); color: var(--ink); min-width: 1.2ch; }
html[lang="ar"] #services .count b { font-family: "IBM Plex Sans Arabic", sans-serif; }
#services .index { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); }
#services .index li { transition: color .4s; cursor: pointer; }
#services .index li.on { color: var(--gold); }
#services .slides { position: relative; min-height: 380px; }
#services .slide { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(28px); transition: opacity .55s, transform .7s var(--ease); pointer-events: none; }
#services .slide.on { opacity: 1; transform: none; pointer-events: auto; }
#services .slide.up { transform: translateY(-28px); }
#services .slide h3 { font-size: clamp(2rem, 3.8vw, 3.4rem); margin-bottom: 22px; max-width: 16ch; }
html[lang="ar"] #services .slide h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
#services .slide p { font-size: clamp(16px, 1.35vw, 19px); color: var(--muted); max-width: 44ch; }
#services .slide .tags { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 24px; font-size: 14px; color: var(--ink-2); }
#services .slide .tags span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-inline-end: 8px; vertical-align: 2px; }
#services .head { position: absolute; top: 96px; inset-inline-start: 0; }
@media (max-width: 860px) {
  #services .grid { grid-template-columns: 1fr; gap: 8px; padding-top: 130px; }
  #services .scene { width: min(86vw, 420px); margin-inline: auto; aspect-ratio: 1.25; }
  #services .head { top: 76px; }
  #services .head .h2 { font-size: 30px; }
  #services .index { display: none; }
  #services .slides { min-height: 300px; }
  #services .count b { font-size: 34px; }
}
.static-only .item { padding: 26px 0; border-top: 1px solid var(--line); }
.static-only .item h3 { font-size: 26px; margin-bottom: 8px; }
.static-only .item p { color: var(--muted); max-width: 60ch; }

/* how we work: a day's arc, then the night half - always on */
#how { height: 520vh; background: var(--paper); }
#how .sticky { display: grid; grid-template-rows: auto 1fr auto; padding-top: 96px; }
#how .top { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
#how .top p { color: var(--muted); max-width: 40ch; }
#how .arc { position: relative; width: min(1100px, 100% - 2 * var(--gut)); margin: 0 auto; align-self: center; aspect-ratio: 1000 / 560; max-height: 50vh; margin-top: 7vh; }
#how .arc svg { width: 100%; height: 100%; overflow: visible; }
#how .lab { position: absolute; translate: -50% -100%; font: 600 clamp(15px, 1.6vw, 22px)/1 var(--serif); color: var(--muted); transition: color .4s; white-space: nowrap; padding-bottom: 46px; }
html[dir="rtl"] #how .lab { translate: 50% -100%; }
#how .lab.on { color: var(--ink); } #how .lab.done { color: var(--ink-2); }
#how .lab small { display: block; text-align: center; font: 500 12px/1 var(--sans); color: var(--gold); margin-bottom: 8px; }
#how .detail { position: relative; width: min(760px, 100% - 2 * var(--gut)); margin: 0 auto 9vh; min-height: 120px; text-align: center; }
#how .dt { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease); font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-2); }
#how .dt.on { opacity: 1; transform: none; }
#how .always { position: absolute; left: 50%; top: 79%; translate: -50% -50%; font: 600 clamp(22px, 3vw, 40px)/1 var(--serif); color: var(--gold); opacity: 0; }
html[lang="ar"] #how .always { font-family: "IBM Plex Sans Arabic", sans-serif; }

/* why: statements that write themselves in */
#why { padding: clamp(100px, 16vh, 180px) 0; background: var(--paper); }
#why .h2 { margin-bottom: clamp(50px, 9vh, 100px); }
.stmt { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px 60px; align-items: start; padding: clamp(30px, 5vh, 54px) 0; position: relative; }
.stmt::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: var(--o, left); transition: transform 1.4s var(--ease); }
html[dir="rtl"] .stmt::before { --o: right; }
.stmt.in::before { transform: none; }
.stmt h3 { font-size: clamp(1.8rem, 3.6vw, 3.3rem); }
html[lang="ar"] .stmt h3 { font-size: clamp(1.6rem, 2.8vw, 2.6rem); }
.stmt h3 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.stmt h3 .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.stmt.in h3 .w > span { transform: none; }
.stmt p { color: var(--muted); padding-top: .6em; opacity: 0; transform: translateY(10px); transition: opacity .8s .4s, transform .8s .4s var(--ease); }
.stmt.in p { opacity: 1; transform: none; }
.stmt .wedge { position: absolute; inset-inline-start: calc(-1 * clamp(14px, 2.4vw, 38px)); top: calc(clamp(30px, 5vh, 54px) + .5em); width: 11px; height: 13px; fill: var(--gold); opacity: 0; transition: opacity .6s .2s; }
.stmt.in .wedge { opacity: 1; }
@media (max-width: 860px) { #how .arc { margin-top: 12vh; max-height: none; } #how .detail { margin-bottom: 14vh; }
  .stmt { grid-template-columns: 1fr; } .stmt .wedge { display: none; } }

/* the name: the mark is drawn from its construction */
#name { height: 300vh; background: var(--paper-2); }
#name .sticky { display: grid; align-items: center; }
#name .grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
#name .draw { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; }
#name .draw svg { width: 100%; height: 100%; overflow: visible; }
#name .note { position: absolute; font: italic 500 14px/1.3 "Noto Serif Display", Georgia, serif; color: var(--gold); opacity: 0; transition: opacity .6s; white-space: nowrap; }
html[lang="ar"] #name .note { font: 500 14px/1.4 "IBM Plex Sans Arabic", sans-serif; }
#name .note.on { opacity: 1; }
#name .copy p { color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18.5px); margin-top: 22px; max-width: 52ch; opacity: .15; transition: opacity .8s; }
#name .copy p.on { opacity: 1; }
#name .copy .big { font: 500 clamp(1.3rem, 2.1vw, 1.8rem)/1.4 var(--serif); color: var(--ink); }
html[lang="ar"] #name .copy .big { line-height: 1.8; }
@media (max-width: 860px) {
  #name .grid { grid-template-columns: 1fr; gap: 0; padding-top: 70px; }
  #name .draw { width: min(64vw, 300px); }
  #name .copy p { margin-top: 12px; font-size: 15px; }
  #name .copy .big { font-size: 18px; }
  #name .h2 { font-size: 28px; }
}

/* fields: two slow rivers of words */
#fields { background: var(--paper-2); padding: 30px 0 clamp(90px, 14vh, 150px); overflow: hidden; }
.river { display: flex; width: max-content; gap: 0; white-space: nowrap; animation: river 70s linear infinite; }
.river.rev { animation-direction: reverse; animation-duration: 90s; }
html[dir="rtl"] .river { animation-name: river-rtl; }
.river span { font: 500 clamp(2.4rem, 6vw, 5.4rem)/1.25 var(--serif); padding-inline: .45em; color: transparent; -webkit-text-stroke: 1px rgba(31, 42, 68, .42); transition: color .4s, -webkit-text-stroke-color .4s; }
html[lang="ar"] .river span { font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1.7; }
.river span:hover { color: var(--ink); -webkit-text-stroke-color: var(--ink); }
.river span::after { content: ""; display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--gold); vertical-align: middle; margin-inline-start: .9em; }
.river.solid span { color: var(--ink); -webkit-text-stroke: 0; }
@keyframes river { to { transform: translateX(-50%); } }
@keyframes river-rtl { to { transform: translateX(50%); } }
.rivers:hover .river { animation-play-state: paused; }

/* contact: the sun goes down */
#contact { position: relative; background: var(--ink-deep); color: var(--paper); overflow: hidden; padding: clamp(110px, 18vh, 200px) 0 0; }
#contact .wrap { position: relative; z-index: 2; }
#contact h2 { font-size: clamp(2.4rem, 6vw, 5.6rem); max-width: 14ch; }
html[lang="ar"] #contact h2 { font-size: clamp(2rem, 4.6vw, 4.2rem); }
#contact .sub { color: var(--muted-on-ink); margin-top: 24px; font-size: clamp(16px, 1.4vw, 19px); max-width: 44ch; }
.mail { display: inline-block; margin-top: 44px; font: 500 clamp(1.7rem, 4.4vw, 4rem)/1.2 "Noto Serif Display", Georgia, serif; text-decoration: none; color: var(--gold-hi); position: relative; direction: ltr; }
.mail::after { content: ""; position: absolute; inset: auto 0 -6px; height: 2px; background: var(--gold); transform: scaleX(.18); transform-origin: left; transition: transform .7s var(--ease); }
.mail:hover::after { transform: scaleX(1); }
#contact .where { margin-top: 26px; color: var(--muted-on-ink); font-size: 15px; display: flex; gap: 10px; align-items: center; }
#contact .where svg { width: 16px; height: 16px; stroke: var(--gold); }
#contact .dusk { position: relative; height: clamp(220px, 40vh, 420px); margin-top: clamp(40px, 8vh, 90px); }
#contact .dusk .s { position: absolute; left: 50%; bottom: 0; width: min(64vw, 520px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, var(--gold-hi), var(--gold) 60%, #A87A2C); translate: -50% 0; box-shadow: 0 0 160px 30px rgba(192, 145, 58, .22); }
#contact .dusk .hz { position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--gold); z-index: 2; }
#contact .dusk .mask { position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: var(--ink-deep); z-index: 1; }
.ftr { position: relative; z-index: 3; background: var(--ink-deep); color: var(--muted-on-ink); font-size: 13.5px; }
.ftr .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-block: 26px 30px; border-top: 1px solid rgba(169, 177, 198, .14); }
.ftr a { text-decoration: none; } .ftr a:hover { color: var(--gold-hi); }

/* reveal helper */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s, transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .stmt p, .hero .lede, .hero .acts { opacity: 1 !important; transform: none !important; }
  .hero h1 .ln > span, .stmt h3 .w > span { transform: none !important; }
}

/* ---------- contact page: dusk, fields drawn as lines, not boxes ---------- */
.cpage { position: relative; min-height: 100svh; background: radial-gradient(110% 70% at 85% 100%, #3A3046 0%, var(--ink) 45%, var(--ink-deep) 100%); color: var(--paper); overflow: hidden; }
.cpage canvas.wedges { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.cpage::after { content: ""; position: absolute; width: min(70vw, 620px); aspect-ratio: 1; border-radius: 50%; right: -12vw; bottom: calc(-1 * min(52vw, 470px)); background: radial-gradient(circle at 50% 40%, var(--gold-hi), var(--gold) 60%, #A87A2C); box-shadow: 0 0 180px 40px rgba(192, 145, 58, .2); }
html[dir="rtl"] .cpage::after { right: auto; left: -12vw; }
.cgrid { position: relative; z-index: 2; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 110px); padding-block: 150px 120px; align-items: start; }
.cside h1 { font-size: clamp(2.3rem, 4.6vw, 4.3rem); max-width: 12ch; }
html[lang="ar"] .cside h1 { font-size: clamp(2rem, 3.6vw, 3.3rem); }
.cside .lede { color: var(--muted-on-ink); margin-top: 26px; max-width: 40ch; font-size: clamp(16px, 1.3vw, 18px); }
.cside .direct { margin-top: 46px; font-size: 14px; color: var(--muted-on-ink); }
.mail.sm { margin-top: 8px; font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.cside .where { margin-top: 22px; color: var(--muted-on-ink); font-size: 15px; display: flex; gap: 10px; align-items: center; }
.cside .where svg { width: 16px; height: 16px; stroke: var(--gold); }
.cform { display: grid; gap: 30px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.fld { display: grid; gap: 4px; position: relative; }
.fld > span, .topics legend { font-size: 14px; color: var(--muted-on-ink); transition: color .3s; }
.fld small, .topics legend small { color: rgba(169, 177, 198, .6); font-size: 12px; }
.fld input, .fld textarea { font: 400 18px/1.5 var(--sans); color: var(--paper); background: transparent; border: 0; border-radius: 0; padding: 8px 0 10px; outline: none; resize: vertical;
  background-image: linear-gradient(var(--gold), var(--gold)), linear-gradient(rgba(247, 244, 236, .28), rgba(247, 244, 236, .28));
  background-size: 0 2px, 100% 1px; background-position: var(--bp, 0) 100%, 0 100%; background-repeat: no-repeat; transition: background-size .55s var(--ease); }
html[dir="rtl"] .fld input, html[dir="rtl"] .fld textarea { --bp: 100%; }
.fld input[dir="ltr"] { text-align: start; }
html[dir="rtl"] .fld input[dir="ltr"] { text-align: right; }
.fld textarea::placeholder { color: rgba(169, 177, 198, .45); }
.fld:focus-within > span { color: var(--gold-hi); }
.fld input:focus, .fld textarea:focus { background-size: 100% 2px, 100% 1px; }
.fld.bad input, .fld.bad textarea { background-image: linear-gradient(#E07A5F, #E07A5F), linear-gradient(#E07A5F, #E07A5F); }
.fld.bad > span { color: #F0A08A; }
.topics { border: 0; padding: 0; margin: 0; }
.topics legend { padding: 0; margin-bottom: 12px; }
.topics > div { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; font-size: 14px; padding: 7px 15px; border-radius: 99px; border: 1px solid rgba(247, 244, 236, .24); cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.chip span:hover { border-color: var(--gold); }
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink-deep); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msgline { min-height: 1.4em; color: #F0A08A; font-size: 15px; margin-top: -10px; }
.send { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.send .btn[disabled] { opacity: .6; cursor: progress; }
.privacy { font-size: 13px; color: rgba(169, 177, 198, .75); max-width: 34ch; }
.done { grid-column: 2; text-align: start; padding-top: 20px; }
.done svg { width: 220px; margin-bottom: 26px; overflow: visible; }
.done .dsun { fill: var(--gold); animation: settle 2.4s var(--ease) forwards; }
.done .dground { fill: var(--ink); }
html .cpage .done .dground { fill: #1C2640; }
.done line { stroke: var(--gold); stroke-width: 1.5; }
@keyframes settle { from { transform: translateY(-46px); } to { transform: translateY(14px); } }
.done h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 14px; }
.done p { color: var(--muted-on-ink); margin-bottom: 26px; }
@media (max-width: 860px) {
  .cgrid { grid-template-columns: 1fr; padding-block: 110px 90px; }
  .row2 { grid-template-columns: 1fr; }
  .done { grid-column: 1; }
  .cpage::after { width: 90vw; bottom: -70vw; right: -30vw; }
}
.cform[hidden], .done[hidden] { display: none; }
