/* ==========================================================================
   Turki — portfolio
   Type: Thmanyah Serif Display (headings) + El Messiri (everything else)
   Layout: sydedock-inspired desk, sticky glass screen, vertical dock
   ========================================================================== */

@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyah-serif-display-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyah-serif-display-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyah-serif-display-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyah-serif-display-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amiri Verse";
  src: url("assets/fonts/amiri-verse.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "El Messiri";
  src: url("assets/fonts/el-messiri-arabic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF,
    U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74,
    U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+1EE00-1EEFF;
}
@font-face {
  font-family: "El Messiri";
  src: url("assets/fonts/el-messiri-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  accent-color: #1c79ff;

  --void: #050505;
  --ink: #f4f4f5;
  --mute: #ffffff8f;
  --faint: #ffffff7a;
  --hairline: #ffffff1a;
  --hairline-strong: #ffffff2b;

  --ring-bottom: #1c79ff;

  --font-display: "Thmanyah Serif Display", "El Messiri", "Iowan Old Style", Georgia, serif;
  --font-sans: "El Messiri", "Geeza Pro", "Segoe UI", system-ui, sans-serif;

  --shell: 1200px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  scrollbar-color: #2a2d33 #050505;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  caret-color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.js.lang-pending body {
  opacity: 0;
}
body {
  transition: opacity 0.28s ease;
}

::selection {
  background: #0b5fd0;
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #24272c;
  border-radius: 99px;
  border: 3px solid #050505;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--ring-bottom);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: fixed;
  z-index: 100;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip:focus-visible {
  transform: none;
}

.top-veil {
  position: fixed;
  z-index: 40;
  inset-block-start: 0;
  inset-inline: 0;
  height: 64px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(4, 5, 8, 0.96) 0%,
    rgba(4, 5, 8, 0.9) 44px,
    rgba(4, 5, 8, 0) 100%
  );
}

/* ---------------------------------------------------------------- backdrop */

main {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------- language UI */

.lang-switch {
  position: fixed;
  z-index: 50;
  inset-block-start: 18px;
  inset-inline-end: 20px;
  height: 34px;
  min-width: 44px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: #00000047;
  color: #ffffffb3;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px #ffffff1f, 0 8px 24px #00000040;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lang-switch:hover {
  color: #fff;
  background: #00000073;
  box-shadow: inset 0 0 0 1px #ffffff38, 0 10px 28px #00000059;
}
.lang-switch__on {
  display: block;
  line-height: 1;
}

.top-social {
  position: fixed;
  z-index: 50;
  inset-block-start: 18px;
  inset-inline-start: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-social__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: #00000047;
  color: #ffffffb3;
  text-decoration: none;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px #ffffff1f, 0 8px 24px #00000040;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.top-social__link:hover,
.top-social__link:focus-visible {
  color: #fff;
  background: #00000073;
  box-shadow: inset 0 0 0 1px #ffffff38, 0 10px 28px #00000059;
}
.top-social__link svg {
  flex: none;
  opacity: 0.9;
}
.lang-switch:active,
.top-social__link:active {
  transform: translateY(1px);
}
.top-social__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* ------------------------------------------------------------- typography */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.32;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(29px, 3.1vw, 42px);
  line-height: 1.34;
  letter-spacing: -0.005em;
}
h3 {
  font-size: 21px;
  line-height: 1.4;
}

h1 em,
h2 em {
  font-style: normal;
  font-weight: 700;
  color: #c7d3e3;
}

html[lang="en"] h1 {
  line-height: 1.08;
  letter-spacing: -0.022em;
}
html[lang="en"] h2 {
  line-height: 1.12;
  letter-spacing: -0.018em;
}
html[lang="en"] h1 em,
html[lang="en"] h2 em {
  color: #b9c9df;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.lede {
  max-width: 44ch;
  color: var(--mute);
  font-size: clamp(16.5px, 1.4vw, 19.5px);
  line-height: 1.8;
}
.body {
  max-width: 47ch;
  color: var(--mute);
  font-size: 15.5px;
  line-height: 1.85;
}
html[lang="en"] .body,
html[lang="en"] .lede {
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: #ffffff5c;
}
html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  font-size: 12.5px;
}

.mono {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "lnum" 1;
  letter-spacing: 0.01em;
}

/* ----------------------------------------------------------------- layout */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 4vw, 72px);
  max-width: 1560px;
  margin-inline: auto;
  padding-inline-start: clamp(28px, 5vw, 96px);
  padding-inline-end: 0;
  position: relative;
}

.column {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  min-width: 0;
}

.hero,
.project {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 72px 0;
}
.hero {
  min-height: 100svh;
  gap: 26px;
  padding-block: 96px 64px;
}
.project {
  min-height: 84svh;
  gap: 18px;
  padding-block: 84px;
}
.project h2 {
  max-width: 19ch;
}
html[lang="en"] .project h2 {
  max-width: 21ch;
}
.project-eyebrow {
  gap: 12px;
}
@keyframes glow-dot {
  0% { box-shadow: 0 0 0 0 #1c79ff8c, 0 0 12px #1c79ffb3; }
  70% { box-shadow: 0 0 0 9px #1c79ff00, 0 0 12px #1c79ffb3; }
  100% { box-shadow: 0 0 0 0 #1c79ff00, 0 0 12px #1c79ffb3; }
}
.project-num,
.n-index {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff3d;
  transition: background 0.3s, box-shadow 0.3s;
}
.project.is-current .project-num,
.note-card[open] .n-index {
  background: #4d97ff;
  animation: glow-dot 2.4s infinite;
}
.project-actions {
  gap: 18px;
  margin-top: 8px;
}
.visit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #ffffff0f;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px #ffffff26,
    0 10px 26px #00000033;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.18s var(--ease);
}
.visit:hover {
  background: #fff;
  color: #050505;
  box-shadow: 0 12px 30px #0000004d;
}
.visit:active {
  transform: translateY(1px);
}
.visit svg {
  transition: transform 0.3s var(--ease);
}
.visit:hover svg {
  transform: translate(2px, -2px);
}
[dir="rtl"] .visit svg {
  transform: scaleX(-1);
}
[dir="rtl"] .visit:hover svg {
  transform: scaleX(-1) translate(2px, -2px);
}
.project-url {
  color: #ffffff80;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.18s, text-decoration-color 0.18s;
}
.project-url:hover {
  color: #fff;
  text-decoration-color: #ffffff66;
}
.project-shot {
  display: none;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #ffffff1a;
  border-radius: 18px;
  background: #0a0c0f;
  box-shadow: 0 22px 50px #00000040;
}
.project-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.wordmark img {
  width: 40px;
  height: 40px;
  border-radius: 29%;
  box-shadow: 0 1px 2px #0006, 0 8px 20px #00000059;
}
.wordmark span {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 6px;
}

.buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  background:
    linear-gradient(180deg, #ffffff47, #fff0 46%),
    linear-gradient(180deg, #0d68dd 0%, #004fca 100%);
  box-shadow:
    inset 0 1px #ffffff73,
    inset 0 -2px 4px #0000004d,
    0 10px 26px #00000066;
  transition:
    transform 90ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 0.18s cubic-bezier(0.2, 0, 0, 1),
    filter 0.18s cubic-bezier(0.2, 0, 0, 1);
}
.buy:hover {
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px #ffffff80,
    inset 0 -2px 4px #0000004d,
    0 12px 34px #00000080;
}
.buy:active {
  transform: translateY(1px);
}

/* ------------------------------------------------------------ rail + glass */

.rail-column {
  position: relative;
  min-width: 0;
}
.rail {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100svh;
}

.mac {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: min(78svh, 720px);
}
.mac-screen {
  position: absolute;
  inset: 0;
}
.mac-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 26px;
  background:
    linear-gradient(150deg, #ffffff1f 0%, #ffffff0d 38%, #ffffff05 100%),
    linear-gradient(180deg, #0a0c10a6, #0506084d);
  box-shadow:
    inset 0 1px #fff6,
    inset 0 0 0 1px #ffffff24,
    0 30px 80px #0006;
  -webkit-backdrop-filter: blur(3px) saturate(118%) brightness(1.04);
  backdrop-filter: blur(3px) saturate(118%) brightness(1.04);
}
.mac-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 26px;
  pointer-events: none;
  background:
    radial-gradient(52% 62% at 82% 28%, #ffffff12, transparent 70%),
    linear-gradient(90deg, #0000002e, transparent 26%, transparent 80%, #00000024);
}

.mac-menubar {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 13px;
  height: 32px;
  padding-inline: 15px;
  background: linear-gradient(
    180deg,
    rgba(3, 5, 8, 0.82) 0%,
    rgba(3, 5, 8, 0.5) 72%,
    rgba(3, 5, 8, 0) 100%
  );
  color: #ffffffeb;
  font-family: var(--font-sans);
  font-size: 12px;
  white-space: nowrap;
  text-shadow: 0 1px 3px #00000080;
}
.mac-menubar img {
  width: 15px;
  height: 15px;
  border-radius: 28%;
}
.mac-menubar b {
  font-weight: 600;
  margin-inline-end: -3px;
}
.menubar-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 8px;
  color: #ffffffeb;
  font-size: 11px;
}
.menubar-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7dffa8;
}
.menubar-clock {
  margin-inline-start: 2px;
  color: #ffffffd9;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.mac-dock {
  position: absolute;
  z-index: 7;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.dock-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ------------------------------------------------------------------- dock */

.dock {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  border-radius: 27px;
  border: 1px solid #000000e6;
  background: linear-gradient(180deg, #0b0d10d9 0%, #000000e6 50%, #0b0d10d9 100%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    inset 0 0 0 1px #ffffff1f,
    inset 0 1px 0 #ffffff2e,
    0 18px 44px #00000073;
}

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 4px;
  text-decoration: none;
  outline: none;
}
.app-icon {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 13px;
  overflow: hidden;
  background: #0a0c10;
  box-shadow:
    inset 0 0 0 1px #ffffff26,
    0 6px 14px #00000059;
  transform: translateZ(0);
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.32s var(--ease),
    filter 0.28s var(--ease);
}
.app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-dot {
  width: 4px;
  height: 4px;
  margin-top: 6px;
  border-radius: 50%;
  background: #ffffff2b;
  transition: background 0.2s, box-shadow 0.2s;
}
.app:hover .app-icon,
.app:focus-visible .app-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    inset 0 0 0 1px #ffffff3d,
    0 10px 22px #00000073;
}
.app:hover .app-dot,
.app:focus-visible .app-dot {
  background: #ffffffa6;
}
.app.is-active .app-icon {
  transform: translateY(-1px) scale(1.045);
  box-shadow:
    inset 0 0 0 1px #ffffff59,
    0 10px 24px #00000080;
}
.app.is-active .app-dot {
  background: #fff;
  box-shadow: 0 0 8px #ffffffd9;
}
.app:not(.is-active) .app-icon {
  filter: saturate(0.64) brightness(0.68);
}
.app:not(.is-active):hover .app-icon,
.app:not(.is-active):focus-visible .app-icon {
  filter: none;
}
.app:focus-visible .app-icon {
  box-shadow:
    inset 0 0 0 1px #ffffffb3,
    0 0 0 2px #050505,
    0 0 0 4px var(--ring-bottom),
    0 10px 24px #00000080;
}
.app-name {
  position: absolute;
  z-index: 3;
  inset-inline-start: calc(100% + 11px);
  top: 27px;
  padding: 6px 10px;
  border-radius: 9px;
  background: #05070ae6;
  box-shadow: inset 0 0 0 1px #ffffff24, 0 10px 24px #00000066;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(4px);
  transition: opacity 0.16s, transform 0.22s var(--ease);
}
[dir="ltr"] .app-name {
  transform: translateY(-50%) translateX(-4px);
}
.app:hover .app-name,
.app:focus-visible .app-name {
  opacity: 1;
  transform: translateY(-50%);
}

/* -- screen -------------------------------------------------------------- */

.screen-stack {
  position: absolute;
  z-index: 2;
  inset-block-start: 32px;
  inset-block-end: 0;
  inset-inline: 0;
  overflow: hidden;
  border-radius: 0 0 25px 25px;
  background: #07090c;
}
.screen {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.025);
  transition:
    opacity 0.62s var(--ease),
    transform 1.2s var(--ease);
  will-change: opacity, transform;
}
.screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.screen.is-on {
  opacity: 1;
  transform: none;
}
.screen-shade {
  position: absolute;
  z-index: 3;
  inset-block-start: 32px;
  inset-block-end: 0;
  inset-inline: 0;
  border-radius: 0 0 25px 25px;
  pointer-events: none;
  background:
    linear-gradient(180deg, #04060a66 0%, #04060a00 9%),
    linear-gradient(180deg, #04060a00 68%, #04060a8c 100%),
    linear-gradient(90deg, #04060a00 58%, #04060a73 100%);
}
[dir="rtl"] .screen-shade {
  background:
    linear-gradient(180deg, #04060a66 0%, #04060a00 9%),
    linear-gradient(180deg, #04060a00 68%, #04060a8c 100%),
    linear-gradient(270deg, #04060a00 58%, #04060a73 100%);
}
.screen-tab {
  position: absolute;
  z-index: 5;
  inset-block-end: 16px;
  inset-inline-end: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 37px;
  padding: 0 13px;
  border-radius: 999px;
  background: #05070abf;
  box-shadow:
    inset 0 0 0 1px #ffffff26,
    inset 0 1px 0 #ffffff1a,
    0 14px 34px #00000066;
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  color: #fff;
  font-size: 11.5px;
  text-decoration: none;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s var(--ease);
}
.screen-tab:hover {
  background: #0a0d12e6;
  box-shadow:
    inset 0 0 0 1px #ffffff42,
    0 18px 40px #00000080;
}
.screen-tab:active {
  transform: translateY(1px);
}
.screen-tab-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4d97ff;
  animation: glow-dot 2.4s infinite;
}
.screen-tab-domain {
  max-width: 190px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #ffffffd9;
  letter-spacing: 0.01em;
}
.screen-tab svg {
  flex-shrink: 0;
  color: #ffffff8c;
  transition: color 0.2s, transform 0.25s var(--ease);
}
.screen-tab:hover svg {
  color: #fff;
  transform: translate(1px, -1px);
}
[dir="rtl"] .screen-tab svg {
  transform: scaleX(-1);
}
[dir="rtl"] .screen-tab:hover svg {
  transform: scaleX(-1) translate(1px, -1px);
}

/* -- handle --------------------------------------------------------------- */

.handle-footprint {
  display: grid;
  place-items: center;
  width: 44px;
  height: 30px;
}
.handle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #ffffff21;
  border-radius: 50%;
  background: #000000a6;
  color: #ffffff9e;
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0.68;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}
.handle:hover {
  opacity: 1;
  color: #fff;
  border-color: #ffffff42;
}
.handle-globe {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------- sections */

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 72px);
}

.notes {
  position: relative;
  z-index: 1;
  padding-top: clamp(96px, 12vh, 150px);
  padding-bottom: clamp(96px, 12vh, 150px);
  border-top: 1px solid var(--hairline);
}
.notes,
footer {
  background: rgba(5, 6, 8, 0.46);
}

/* ------------------------------------------------------------------ notes */

.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.notes-copy {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.note-list {
  display: flex;
  flex-direction: column;
}
.note-card {
  border-top: 1px solid var(--hairline);
}
.note-card:last-child {
  border-bottom: 1px solid var(--hairline);
}
.note-card summary {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  padding: 24px 6px;
  cursor: pointer;
  list-style: none;
}
.note-card summary::-webkit-details-marker {
  display: none;
}
.n-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
.n-plus {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid #ffffff1f;
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.n-plus::before,
.n-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #ffffffa6;
  transform: translate(-50%, -50%);
}
.n-plus::before {
  width: 8px;
  height: 1px;
}
.n-plus::after {
  width: 1px;
  height: 8px;
}
.note-card[open] .n-plus {
  transform: rotate(45deg);
  background: #ffffff0d;
}
.note-card summary:hover .n-plus,
.note-card summary:focus-visible .n-plus {
  border-color: #ffffff42;
  background: #ffffff0d;
}
.note-card summary:active .n-plus {
  transform: scale(0.94);
}
.note-card[open] summary:active .n-plus {
  transform: rotate(45deg) scale(0.94);
}
.note-card > p {
  max-width: 62ch;
  padding-block: 0 26px;
  padding-inline: 36px 48px;
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.9;
  animation: note-in 0.35s var(--ease) both;
}
html[lang="en"] .note-card > p {
  line-height: 1.75;
}
@keyframes note-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ----------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--hairline);
  padding: 34px 0 46px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--faint);
  font-size: 12.5px;
}
.footer-product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-product img {
  width: 22px;
  height: 22px;
  border-radius: 29%;
}
.footer-maker {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-socials {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-socials li {
  position: relative;
  display: inline-flex;
}
.footer-socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--mute);
  transition: color 0.18s, background-color 0.18s;
}
.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--ink);
  background: #ffffff0f;
}
.footer-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  padding: 4px 8px;
  border: 1px solid #ffffff1a;
  border-radius: 7px;
  background: #0a0b0d;
  color: #ffffffa6;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.18s, transform 0.18s;
}
.footer-socials a:hover + .footer-tip,
.footer-socials a:focus-visible + .footer-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ----------------------------------------------------------------- reveal */

[data-reveal] {
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.reveal [data-reveal]:not([data-split]) {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
}
html.reveal [data-reveal="from-right"]:not([data-split]) {
  transform: translate(28px, 0);
}
[dir="rtl"] html.reveal [data-reveal="from-right"]:not([data-split]),
html.reveal [dir="rtl"] [data-reveal="from-right"]:not([data-split]) {
  transform: translate(-28px, 0);
}
html.reveal [data-reveal].is-in:not([data-split]) {
  opacity: 1;
  transform: none;
  filter: none;
}

[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
[data-split] .wi {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms + 60ms);
}
html:not(.reveal) [data-split] .wi,
[data-split].is-in .wi {
  transform: none;
}

/* --------------------------------------------------------- ambition layer */

@keyframes live-dot {
  0% { box-shadow: 0 0 0 0 #7dffa873; }
  70% { box-shadow: 0 0 0 9px #7dffa800; }
  100% { box-shadow: 0 0 0 0 #7dffa800; }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, 4%, 0) scale(1.12); }
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}
@keyframes ribbon {
  to { transform: translateX(-50%); }
}
@keyframes ribbon-rtl {
  to { transform: translateX(50%); }
}

/* -- hero additions ----------------------------------------------------- */

.hero-kicker {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  background: #ffffff0d;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #ffffffd1;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.hero-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dffa8;
  animation: live-dot 2.4s infinite;
}

.hero h1 em:not(:has(.wi)),
.hero h1 em .wi {
  background: linear-gradient(90deg, #8fc1ff 0%, #ffffff 30%, #8fc1ff 60%, #ffffff 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

.hero-for {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: -6px;
  color: var(--faint);
  font-size: clamp(16px, 1.4vw, 19px);
}
.rotator {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid #1c79ff;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.3;
}
.rotator-word {
  display: inline-block;
  transition:
    opacity 0.38s var(--ease),
    transform 0.38s var(--ease),
    filter 0.38s var(--ease);
}
.rotator-word.is-out {
  opacity: 0;
  transform: translateY(-40%);
  filter: blur(4px);
}
.rotator-word.is-in-start {
  opacity: 0;
  transform: translateY(40%);
  filter: blur(4px);
  transition: none;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  background: #ffffff0d;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    transform 90ms var(--ease);
}
.ghost:hover {
  background: #ffffff17;
  border-color: #ffffff52;
}
.ghost:active {
  transform: translateY(1px);
}
.ghost svg {
  flex-shrink: 0;
}
/* -- shared section frame ----------------------------------------------- */

.ribbon,
.vision {
  position: relative;
  z-index: 1;
  background: rgba(5, 6, 8, 0.46);
  border-top: 1px solid var(--hairline);
}

/* -- vision ------------------------------------------------------------- */

.vision {
  overflow: hidden;
  padding-block: clamp(88px, 11vh, 140px);
}
.vision::before {
  content: "";
  position: absolute;
  inset: 8% -10% auto;
  height: 75%;
  background:
    radial-gradient(38% 48% at 72% 38%, #1c79ff33, transparent 70%),
    radial-gradient(30% 40% at 24% 62%, #7c5cff24, transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.ribbon {
  overflow: hidden;
  padding-block: 26px;
}
.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset-block: 0;
  width: min(18vw, 200px);
  pointer-events: none;
}
.ribbon::before {
  left: 0;
  background: linear-gradient(90deg, #050608, #05060800);
}
.ribbon::after {
  right: 0;
  background: linear-gradient(270deg, #050608, #05060800);
}
.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbon 80s linear infinite;
}
[dir="rtl"] .ribbon-track {
  animation-name: ribbon-rtl;
}
.ribbon:hover .ribbon-track {
  animation-play-state: paused;
}
.ribbon-track span {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  white-space: nowrap;
  color: #ffffffa8;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 700;
  line-height: 1.4;
}
.ribbon-track i {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-inline: 2.4em;
  border: 1px solid #1c79ffb3;
  transform: rotate(45deg);
}


.vision-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 920px;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.vision-title {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.3;
}
html[lang="en"] .vision-title {
  line-height: 1.1;
}
.vision .lede {
  max-width: 60ch;
}
.quotes-label {
  position: relative;
  margin-bottom: 22px;
}
.quotes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  margin: 0;
  padding: 44px 28px 24px;
  border: 1px solid #ffffff17;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff08, #ffffff02);
  transition: border-color 0.3s var(--ease);
}
.quote:hover {
  border-color: #ffffff33;
}
.quote::before {
  content: "\201D";
  position: absolute;
  inset-block-start: -14px;
  inset-inline-start: 22px;
  color: #1c79ff40;
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 1;
  pointer-events: none;
}
html[lang="en"] .quote::before {
  content: "\201C";
}
.quote blockquote {
  position: relative;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.65;
  text-wrap: balance;
}
html[lang="en"] .quote blockquote {
  line-height: 1.35;
}
html[lang="ar"] .quote-verse blockquote {
  font-family: "Amiri Verse", var(--font-display);
  font-size: clamp(23px, 2.05vw, 28px);
  line-height: 2;
}
.quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.quote figcaption b {
  color: #ffffffe0;
  font-size: 14px;
  font-weight: 600;
}
.quote figcaption span {
  color: var(--faint);
  font-size: 12.5px;
}


@media (max-width: 1100px) {
  .quotes {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .vision {
    padding-bottom: 76px;
  }
  .vision-head {
    margin-bottom: 44px;
  }
  .ribbon {
    padding-block: 18px;
  }
  .quote {
    padding: 38px 22px 22px;
  }
}

@media (max-width: 520px) {
  .actions .ghost,
  .actions .buy {
    flex: 1 1 100%;
  }
}

/* ------------------------------------------------------------- responsive */

@media (max-height: 620px) and (min-width: 1101px) {
  .dock {
    gap: 3px;
    padding: 5px;
  }
  .app-icon {
    width: 46px;
    height: 46px;
  }
  .app {
    padding-bottom: 2px;
  }
  .app-dot {
    margin-top: 4px;
  }
  .handle-footprint {
    height: 26px;
  }
  .handle {
    width: 26px;
    height: 26px;
  }
  .mac-menubar {
    gap: 10px;
  }
}

@media (max-width: 1200px) {
  .layout {
    gap: 28px;
    padding-inline-start: clamp(24px, 4vw, 56px);
  }
  .column {
    max-width: 640px;
  }
}

@media (max-width: 1100px) {
  .layout {
    display: block;
    padding-inline: 0;
  }
  .column {
    max-width: none;
    margin-inline: auto;
    padding-inline: clamp(22px, 5vw, 56px);
  }
  .hero {
    min-height: auto;
    padding-block: 132px 56px;
  }
  .project {
    min-height: auto;
    padding-block: 56px;
    gap: 16px;
  }
  .project-shot {
    display: block;
  }
  .rail-column {
    display: none;
  }
  .notes-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }
  .notes-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.36;
  }
  h2 {
    font-size: clamp(26px, 7.4vw, 34px);
    line-height: 1.38;
  }
  .lede {
    font-size: 16px;
  }
  .hero {
    gap: 22px;
    padding-block: 112px 48px;
  }
  .project {
    padding-block: 48px;
  }
  .notes {
    padding-top: 76px;
    padding-bottom: 76px;
  }
  .note-card summary {
    grid-template-columns: 16px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 20px 0;
  }
  .note-card > p {
    padding-block: 0 22px;
    padding-inline: 26px 0;
  }
  .footer-inner {
    justify-content: flex-start;
  }
  .footer-maker {
    width: 100%;
    justify-content: space-between;
  }
  .lang-switch {
    inset-block-start: 14px;
    inset-inline-end: 14px;
  }
  .top-social {
    inset-block-start: 14px;
    inset-inline-start: 14px;
    gap: 6px;
  }
  .top-social__link {
    padding: 0 10px;
  }
}

@media (max-width: 520px) {
  .actions {
    gap: 16px;
  }
  .buy {
    padding: 13px 22px;
  }
  .footer-maker {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.reveal [data-reveal]:not([data-split]) {
    opacity: 1;
    transform: none;
    filter: none;
  }
  [data-split] .wi {
    transform: none;
  }
}

/* Safari: keep the clipped glass panels from flickering */
.mac-screen::before,
.screen-stack,
.screen-tab,
.dock {
  transform: translateZ(0);
}
