/* Icons website: the inner pages (everything but the homepage). Loaded after site.css, which carries the room, the type,
   the top bar, the menu and the closing scene.

   One composition for every inner page, the homepage's "01" scene made into a page:
   - side by side: the words run down a column on the left; the point and its rings stand still on the right, in the room
     the column leaves (js/page.js measures it), and change their pose as the sections pass.
   - stacked (4:5 or narrower): the world stands over the page's first words, then steps out until the closing scene.
   Nothing sits on anything here either: the column never reaches the world, and what scrolls up under the top bar
   goes behind a veil that is the room itself. */

.inner { --colw: min(54vw, 720px); }

/* the veil: the top of the room, laid over the scrolling words so they pass behind it and never under the logo */
.veil { position: fixed; inset: 0 0 auto 0; height: calc(var(--nav) + 30px); z-index: 60; pointer-events: none;
  background:
    radial-gradient(72vw 62vw at 90vw -8vh, rgba(154, 130, 254, .30), transparent 62%),
    radial-gradient(60vw 60vw at -8vw 108vh, rgba(201, 188, 255, .44), transparent 60%),
    var(--paper);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 34px), transparent); mask-image: linear-gradient(#000 calc(100% - 34px), transparent); }
#world { transition: opacity .28s ease; }

.inner main + .scene { margin-top: 0; }                /* the homepage lets its scenes overlap; a page of words must not */
.page { position: relative; padding: 0 var(--pad); }
.page > * { width: var(--colw); }

/* what comes into view rises into place, once */
[data-in] { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform 1s var(--ease); }
[data-in].on { opacity: 1; transform: none; }
h1[data-in], h2[data-in] { opacity: 1; transform: none; }             /* headings come line by line instead (.ln, site.css) */
[data-in].d1 { transition-delay: .08s; } [data-in].d2 { transition-delay: .16s; } [data-in].d3 { transition-delay: .24s; }

/* ---------- the head: the page's first screen ---------- */
.p-head { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: clamp(14px, calc(var(--u) * 1.9), 30px); padding: var(--nav) 0 clamp(20px, calc(var(--vh) * 5), 60px); }
.p-head h1 { font-size: clamp(34px, calc(var(--u) * 6.1), 116px); }
.p-head.long h1 { font-size: clamp(27px, calc(var(--u) * 4.2), 80px); line-height: 1.07; }
.p-head .lede { max-width: 33em; text-wrap: pretty; }
.p-head .link { margin-top: clamp(4px, calc(var(--u) * .8), 14px); }

/* ---------- sections ---------- */
.p-sec { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, calc(var(--u) * 2), 32px); padding-top: clamp(64px, calc(var(--vh) * 15), 170px); }
.p-sec h2 { font-size: clamp(26px, calc(var(--u) * 3.7), 68px); }
.p-sec .lede { max-width: 34em; text-wrap: pretty; }

/* rows: one thought per line, a hair between them */
.rows { width: 100%; }
.rows > li { display: flex; align-items: baseline; gap: clamp(12px, calc(var(--u) * 1.25), 18px); padding: clamp(11px, calc(var(--u) * 1.15), 17px) 0; border-top: 1px solid var(--line); font-size: clamp(16px, calc(var(--u) * 1.55), 24px); letter-spacing: -.012em; line-height: 1.3; }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows b { flex: none; width: 2.3em; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; color: var(--violet); }
.rows p { flex: 1; min-width: 0; }

/* a statement: a few lines said larger */
.say { font-size: clamp(20px, calc(var(--u) * 2.5), 40px); letter-spacing: -.025em; line-height: 1.24; text-wrap: pretty; }

/* the three disciplines: big rows that lead to their pages */
.go { width: 100%; }
.go a { position: relative; display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; align-items: baseline; column-gap: clamp(8px, calc(var(--u) * 1), 16px); padding: clamp(16px, calc(var(--u) * 2), 30px) 0; border-top: 1px solid var(--line); }
.go li:last-child a { border-bottom: 1px solid var(--line); }
.go b { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; color: var(--violet); }
.go .t { display: block; font-size: clamp(23px, calc(var(--u) * 3.2), 54px); letter-spacing: -.03em; line-height: 1.1; transition: color .3s, transform .6s var(--ease); }
.go .d { display: block; margin-top: .35em; font-size: clamp(14px, calc(var(--u) * 1.25), 19px); color: var(--ink2); }
.go i { font-style: normal; font-size: clamp(18px, calc(var(--u) * 1.8), 28px); transition: transform .5s var(--ease), color .3s; }
.go a:hover .t { color: var(--violet); transform: translateX(calc(10px * var(--dir))); }
.go a:hover i { color: var(--violet); transform: translateX(calc(6px * var(--dir))); }
.plain-note { display: flex; flex-direction: column; gap: 3px; padding-inline-start: 2.6em; margin-inline-start: clamp(8px, calc(var(--u) * 1), 16px); }
.plain-note b { font-weight: 500; font-size: clamp(15px, calc(var(--u) * 1.25), 19px); letter-spacing: -.01em; }
.plain-note span { font-size: clamp(13px, calc(var(--u) * 1.02), 15px); color: var(--ink2); }

/* how we work: six short lines */
.verbs { width: 100%; counter-reset: v; }
.verbs li { display: flex; align-items: baseline; gap: clamp(12px, calc(var(--u) * 1.25), 18px); padding: clamp(9px, calc(var(--u) * 1), 15px) 0; border-top: 1px solid var(--line); font-size: clamp(21px, calc(var(--u) * 2.7), 44px); letter-spacing: -.03em; line-height: 1.15; }
.verbs li:last-child { border-bottom: 1px solid var(--line); }
.verbs li::before { counter-increment: v; content: "0" counter(v); flex: none; width: 2.3em; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--violet); }

/* three things side by side */
.trio { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, calc(var(--u) * 2), 30px); }
.trio li { display: flex; flex-direction: column; gap: 6px; padding-top: clamp(12px, calc(var(--u) * 1.25), 18px); border-top: 1px solid var(--line); }
.trio b { font-size: clamp(20px, calc(var(--u) * 2.3), 38px); font-weight: 300; letter-spacing: -.035em; line-height: 1.1; }
.trio span { font-size: clamp(12px, calc(var(--u) * .97), 14px); color: var(--ink2); }

/* questions */
.faq { width: 100%; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: clamp(14px, calc(var(--u) * 1.5), 22px) 0; font-size: clamp(17px, calc(var(--u) * 1.7), 26px); letter-spacing: -.015em; line-height: 1.25; cursor: pointer; transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.1em; font-weight: 300; line-height: 1; color: var(--violet); transition: transform .45s var(--ease); }
.faq summary:hover { color: var(--violet); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { max-width: 36em; padding-bottom: clamp(16px, calc(var(--u) * 1.6), 24px); font-size: clamp(15px, calc(var(--u) * 1.3), 19px); color: var(--ink2); text-wrap: pretty; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* notes (Insights): a title and its angle */
.notes { width: 100%; }
.notes li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); column-gap: clamp(8px, calc(var(--u) * 1), 16px); padding: clamp(18px, calc(var(--u) * 2.1), 32px) 0; border-top: 1px solid var(--line); }
.notes li:last-child { border-bottom: 1px solid var(--line); }
.notes b { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; color: var(--violet); padding-top: .9em; }
.notes .t { display: block; font-size: clamp(21px, calc(var(--u) * 2.6), 42px); letter-spacing: -.03em; line-height: 1.14; text-wrap: balance; }
.notes .d { display: block; margin-top: .5em; max-width: 34em; font-size: clamp(14px, calc(var(--u) * 1.25), 19px); color: var(--ink2); }
.soon { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }

/* the founder stands with the three facts under him, on their grid: his photo over the first fact, his name starting with the
   second (his word, 15/11/2026: the photo belongs to what is under it, not to the paragraph over it; "متناسق جدًا وسلس") */
.who { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(14px, calc(var(--u) * 2), 30px); align-items: end; }
.who img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: clamp(16px, calc(var(--u) * 1.8), 28px); background: var(--lav); }
.who p { grid-column: 2 / 4; display: flex; flex-direction: column; gap: 4px; padding-bottom: 6px; }
.who b { font-size: clamp(20px, calc(var(--u) * 2.2), 34px); font-weight: 300; letter-spacing: -.03em; }

/* contact details */
.reach { width: 100%; }
.reach li { display: grid; grid-template-columns: clamp(86px, calc(var(--u) * 9), 130px) minmax(0, 1fr); align-items: baseline; padding: clamp(12px, calc(var(--u) * 1.3), 19px) 0; border-top: 1px solid var(--line); }
.reach li:last-child { border-bottom: 1px solid var(--line); }
.reach span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.reach a, .reach b { font-size: clamp(18px, calc(var(--u) * 2), 30px); font-weight: 300; letter-spacing: -.02em; transition: color .25s; }
.reach a:hover { color: var(--violet); }

/* forms: a hair under each answer, nothing else */
.form { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, calc(var(--u) * 2.2), 34px) clamp(18px, calc(var(--u) * 2.6), 40px); }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.form-wrap { width: 100%; }
.field.wide, .form-foot, .ask { grid-column: 1 / -1; }
.field label i, .ask > span i { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .75; }
.field label, .ask > span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.field input, .field textarea { width: 100%; padding: 8px 0 11px; border: 0; border-bottom: 1px solid rgba(26, 26, 64, .32); border-radius: 0; background: none; font: inherit; font-size: clamp(16px, calc(var(--u) * 1.45), 21px); color: var(--ink); outline: none; transition: border-color .25s; }
.field textarea { min-height: 3.2em; resize: vertical; line-height: 1.4; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--violet); }
.field input::placeholder, .field textarea::placeholder { color: rgba(94, 92, 122, .55); }
.ask { display: flex; flex-direction: column; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(26, 26, 64, .3); font-size: 14px; font-weight: 400; transition: background .25s, color .25s; }
.chips input:checked + span { background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 3px; }
/* the box no person sees (js/page.js sends it along; worker.js turns away whoever filled it) */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form button[disabled] { opacity: .55; cursor: default; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: clamp(2px, calc(var(--u) * .6), 10px); }
.form-foot small { font-size: clamp(13px, calc(var(--u) * 1), 15px); color: var(--ink2); }
button.pill { border: 0; font-family: inherit; cursor: pointer; }
.thanks { display: none; font-size: clamp(22px, calc(var(--u) * 2.8), 44px); letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
.sent .form { display: none; }
.sent .thanks { display: block; }

/* long reading (Privacy) */
.prose { display: flex; flex-direction: column; gap: clamp(10px, calc(var(--u) * 1.1), 16px); padding-top: 0; }
.prose h2 { margin-top: clamp(18px, calc(var(--u) * 2.4), 36px); font-size: clamp(19px, calc(var(--u) * 1.9), 29px); letter-spacing: -.02em; line-height: 1.2; }
.prose p { max-width: 38em; font-size: clamp(15px, calc(var(--u) * 1.25), 18px); color: var(--ink2); text-wrap: pretty; }
.prose b { font-weight: 500; color: var(--ink); }

/* the way on: the next page, as one big line */
.p-next { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(8px, calc(var(--u) * 1), 14px); margin-top: clamp(64px, calc(var(--vh) * 15), 170px); padding: clamp(20px, calc(var(--u) * 2.4), 36px) 0 clamp(70px, calc(var(--vh) * 15), 170px); border-top: 1px solid var(--line); }
.p-next b { display: inline-flex; align-items: baseline; gap: .32em; font-size: clamp(30px, calc(var(--u) * 5), 94px); font-weight: 300; letter-spacing: -.04em; line-height: 1.05; transition: color .3s, transform .6s var(--ease); }
.p-next b::after { content: var(--arrow); font-size: .56em; transition: transform .5s var(--ease); }
.p-next:hover b { color: var(--violet); transform: translateX(calc(12px * var(--dir))); }
.p-next:hover b::after { transform: translateX(calc(8px * var(--dir))); }
.p-end { height: clamp(40px, calc(var(--vh) * 8), 90px); }        /* air at the end of a page with no "next" line */

/* the foot of every inner page: one quiet line, the pages on the left and the channels on the right. Nothing else:
   the closing scene belongs to the homepage only (his word, 15/11/2026: on every page it was "اوفر أوي") */
.foot-bar { position: relative; padding: clamp(40px, calc(var(--vh) * 8), 90px) var(--pad) 0; }
html.ask .foot-bar { padding-bottom: var(--ask-h); }          /* while the cookie question is asked, the last line of links can scroll clear of it (site.css) */
.foot-bar nav { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 22px 0 26px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 400; }
.foot-bar nav a { transition: color .2s; }
.foot-bar nav a:hover { color: var(--violet); }
.foot-bar nav i { flex: 1; min-width: 20px; }
/* where the line cannot hold the pages and the channels side by side, they stand on two lines, each in the middle
   (his word, 15/11/2026: never one group at each end of two lines) */
@media (max-width: 1020px), (max-aspect-ratio: 4/5) {
  .foot-bar nav { justify-content: center; }
  .foot-bar nav i { flex: 0 0 100%; min-width: 0; height: 0; }
}

/* rows said larger: three things, one line each */
.rows.big > li { font-size: clamp(20px, calc(var(--u) * 2.3), 38px); letter-spacing: -.03em; line-height: 1.15; padding: clamp(12px, calc(var(--u) * 1.3), 20px) 0; }

/* the page that is not there */
.lost .p-head { min-height: 100vh; min-height: 100svh; }

/* ---------- stacked: phones, and any window taller than it is wide ---------- */
@media (max-aspect-ratio: 4/5) {
  .inner { --colw: 100%; --band: calc(var(--vh) * 31); }
  /* the world stands in a band over the first words (js/page.js), so the head starts under it */
  .p-head { min-height: 0; justify-content: flex-start; padding: calc(var(--nav) + var(--band)) 0 calc(var(--vh) * 4); }
  .p-head h1 { font-size: clamp(32px, calc(var(--u) * 11.6), 84px); }
  .p-head.long h1 { font-size: clamp(26px, calc(var(--u) * 7.6), 60px); }
  .p-sec { padding-top: clamp(52px, calc(var(--vh) * 9), 110px); gap: clamp(14px, calc(var(--u) * 4.4), 28px); }
  .p-sec h2 { font-size: clamp(26px, calc(var(--u) * 8.6), 60px); }
  .rows > li { font-size: clamp(16px, calc(var(--u) * 4.6), 24px); padding: clamp(10px, calc(var(--u) * 3), 16px) 0; }
  .say { font-size: clamp(20px, calc(var(--u) * 6), 38px); }
  .go .t { font-size: clamp(22px, calc(var(--u) * 7), 46px); }
  .go .d { font-size: clamp(14px, calc(var(--u) * 3.9), 19px); }
  .go a { padding: clamp(14px, calc(var(--u) * 4.4), 26px) 0; grid-template-columns: 2.2em minmax(0, 1fr) auto; }
  .plain-note { padding-inline-start: 2.2em; }
  .plain-note b { font-size: clamp(15px, calc(var(--u) * 4.2), 20px); }
  .plain-note span { font-size: clamp(13px, calc(var(--u) * 3.5), 16px); }
  .verbs li { font-size: clamp(20px, calc(var(--u) * 6.3), 42px); padding: clamp(8px, calc(var(--u) * 2.6), 14px) 0; }
  .trio { grid-template-columns: 1fr; gap: 0; }
  .trio li { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; padding: clamp(12px, calc(var(--u) * 3.4), 18px) 0; }
  .trio b { font-size: clamp(20px, calc(var(--u) * 5.8), 34px); }
  .trio span { font-size: clamp(12px, calc(var(--u) * 3.2), 15px); text-align: end; }
  .faq summary { font-size: clamp(17px, calc(var(--u) * 4.8), 26px); }
  .faq p { font-size: clamp(15px, calc(var(--u) * 4), 19px); }
  .notes .t { font-size: clamp(21px, calc(var(--u) * 6.4), 40px); }
  .notes .d { font-size: clamp(14px, calc(var(--u) * 3.9), 19px); }
  .notes li { grid-template-columns: 2.2em minmax(0, 1fr); }
  .who { display: flex; align-items: flex-end; gap: clamp(16px, calc(var(--u) * 4.6), 30px); }      /* the facts are rows here: the photo keeps its own size */
  .who img { width: clamp(130px, calc(var(--u) * 40), 240px); }
  .who b { font-size: clamp(20px, calc(var(--u) * 6), 34px); }
  .reach a, .reach b { font-size: clamp(18px, calc(var(--u) * 5.4), 30px); }
  .form { grid-template-columns: 1fr; gap: clamp(18px, calc(var(--u) * 5.4), 30px); }
  .field input, .field textarea { font-size: clamp(16px, calc(var(--u) * 4.4), 21px); }
  .thanks { font-size: clamp(22px, calc(var(--u) * 6.6), 40px); }
  .prose h2 { font-size: clamp(19px, calc(var(--u) * 5.4), 28px); }
  .prose p { font-size: clamp(15px, calc(var(--u) * 4), 18px); }
  .p-next b { font-size: clamp(28px, calc(var(--u) * 9), 72px); }
  .p-next { margin-top: clamp(52px, calc(var(--vh) * 9), 110px); padding-bottom: clamp(52px, calc(var(--vh) * 9), 110px); }
  .rows.big > li { font-size: clamp(20px, calc(var(--u) * 5.8), 34px); }
}

@media (prefers-reduced-motion: reduce) {
  [data-in] { opacity: 1; transform: none; }
}
