/* ------------------------------------------------------------------
   Odilbek Normurodov — Liquid Glass
   The material is the chrome. Content stays solid, legible, still.
------------------------------------------------------------------ */

@font-face {
  font-family: 'Inter Tight';
  src: url('assets/fonts/inter-tight-latin.woff2') format('woff2');
  font-weight: 300 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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('assets/fonts/inter-tight-cyrillic.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */

:root {
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
          'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Instrument Serif', 'New York', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1180px;
  --gut: clamp(20px, 4.6vw, 44px);

  /* light: a bright room behind glass */
  --bg: #eef1f7;
  --ink: #08090c;
  --ink-2: rgba(8, 9, 12, 0.62);
  --ink-3: rgba(8, 9, 12, 0.42);
  --line: rgba(8, 9, 12, 0.12);
  --line-strong: rgba(8, 9, 12, 0.26);

  --glass: rgba(255, 255, 255, 0.5);
  --glass-2: rgba(255, 255, 255, 0.7);
  --glass-blur: 26px;
  --glass-sat: 200%;
  --rim-top: rgba(255, 255, 255, 0.98);
  --rim-bot: rgba(255, 255, 255, 0.42);
  --ring: rgba(255, 255, 255, 0.62);
  --shadow: rgba(12, 22, 60, 0.2);
  --shadow-card: rgba(12, 22, 60, 0.24);
  --solid: #f7f9fc;

  --accent: #0066cc;
  --accent-soft: rgba(0, 102, 204, 0.12);
  --accent-2: #64a8ff;
  --btn-bg: linear-gradient(180deg, #2b8cf0 0%, #0066cc 55%, #0057ad 100%);
  --btn-ink: #ffffff;
  --btn-shadow: rgba(0, 102, 204, 0.45);
  --green: #1f8a3d;

  --focus: #0066cc;
  --on-media: #fff;

  --r-xl: 34px;
  --r-l: 26px;
  --r-m: 18px;
  --r-s: 12px;
  --r-pill: 999px;

  --nav-h: 58px;
  --nav-top: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.42, 0.44, 1);
  --t-fast: 0.2s;
  --t: 0.45s;
  --t-slow: 1s;

  color-scheme: light;
}

html[data-theme='dark'] {
  --bg: #070818;
  --ink: #f5f6fa;
  --ink-2: rgba(245, 246, 250, 0.64);
  --ink-3: rgba(245, 246, 250, 0.42);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.28);

  --glass: rgba(255, 255, 255, 0.1);
  --glass-2: rgba(255, 255, 255, 0.17);
  --rim-top: rgba(255, 255, 255, 0.72);
  --rim-bot: rgba(255, 255, 255, 0.1);
  --ring: rgba(255, 255, 255, 0.2);
  --shadow: rgba(0, 0, 0, 0.6);
  --shadow-card: rgba(0, 0, 0, 0.55);
  --solid: #0c0e15;

  --accent: #6cb2ff;
  --accent-soft: rgba(108, 178, 255, 0.16);
  --accent-2: #9ccbff;
  --btn-bg: linear-gradient(180deg, #3d9bff 0%, #0a7cff 55%, #0060d1 100%);
  --btn-ink: #ffffff;
  --btn-shadow: rgba(10, 124, 255, 0.4);
  --green: #30d158;

  --focus: #6cb2ff;

  color-scheme: dark;
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}

h1, h2, h3, p, dl, dt, dd, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 10px;
}

[inert] { pointer-events: none; }

.container {
  width: min(var(--container), 100% - var(--gut) * 2);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 550;
  transform: translate(-50%, -220%);
  transition: transform var(--t) var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* Scroll progress: a hairline at the very edge of the display */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 2px;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0.85;
}

/* ------------------------------------------------------------------
   Wallpaper — a vivid room for the glass to bend
------------------------------------------------------------------ */

.wallpaper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
  transition: background-color 0.6s var(--ease);
}

.wallpaper__layer {
  position: absolute;
  inset: -14%;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  filter: blur(56px) saturate(135%);
  transform: translateZ(0);
}
html[data-theme='light'] .wallpaper__layer--light { opacity: 1; }
html[data-theme='dark'] .wallpaper__layer--dark { opacity: 1; }

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
  animation: orb-drift 38s var(--ease) infinite alternate;
}

.wallpaper__layer--light .orb--paper {
  width: max(64vw, 520px); height: max(58vw, 460px);
  left: -12vw; top: -20vw;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}
.wallpaper__layer--light .orb--lilac {
  width: max(48vw, 400px); height: max(48vw, 400px);
  right: -10vw; top: -10vw;
  background: radial-gradient(closest-side, rgba(186, 165, 255, 0.85), rgba(186, 165, 255, 0));
  animation-delay: -9s;
}
.wallpaper__layer--light .orb--mint {
  width: max(46vw, 380px); height: max(46vw, 380px);
  right: -2vw; bottom: -22vw;
  background: radial-gradient(closest-side, rgba(140, 232, 214, 0.7), rgba(140, 232, 214, 0));
  animation-delay: -17s;
}
.wallpaper__layer--light .orb--rose {
  width: max(42vw, 360px); height: max(42vw, 360px);
  left: -6vw; bottom: -18vw;
  background: radial-gradient(closest-side, rgba(255, 178, 205, 0.7), rgba(255, 178, 205, 0));
  animation-delay: -23s;
}

.wallpaper__layer--dark .orb--copper {
  width: max(58vw, 480px); height: max(58vw, 480px);
  left: -8vw; top: -16vw;
  background: radial-gradient(closest-side, rgba(84, 56, 255, 0.7), rgba(84, 56, 255, 0));
}
.wallpaper__layer--dark .orb--violet {
  width: max(48vw, 420px); height: max(48vw, 420px);
  right: -8vw; top: -10vw;
  background: radial-gradient(closest-side, rgba(255, 50, 130, 0.55), rgba(255, 50, 130, 0));
  animation-delay: -9s;
}
.wallpaper__layer--dark .orb--teal {
  width: max(50vw, 430px); height: max(50vw, 430px);
  right: 0; bottom: -24vw;
  background: radial-gradient(closest-side, rgba(0, 170, 255, 0.4), rgba(0, 170, 255, 0));
  animation-delay: -17s;
}
.wallpaper__layer--dark .orb--rose {
  width: max(44vw, 380px); height: max(44vw, 380px);
  left: -6vw; bottom: -20vw;
  background: radial-gradient(closest-side, rgba(0, 220, 190, 0.3), rgba(0, 220, 190, 0));
  animation-delay: -23s;
}

@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3vw, -2.4vw, 0) scale(1.08); }
}

/* keep the centre calm so type stays crisp */
.wallpaper__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 46% at 50% 38%, rgba(6, 7, 22, 0.45), rgba(6, 7, 22, 0) 100%),
    radial-gradient(130% 80% at 50% 100%, rgba(6, 7, 22, 0.5), transparent 70%);
}
html[data-theme='light'] .wallpaper__vignette {
  background:
    radial-gradient(58% 46% at 50% 38%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 100%),
    radial-gradient(130% 80% at 50% 100%, rgba(214, 222, 236, 0.5), transparent 70%);
}

.wallpaper__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme='light'] .wallpaper__grain { opacity: 0.035; mix-blend-mode: multiply; }

/* ------------------------------------------------------------------
   The material — wet, luminous, always floating above content
------------------------------------------------------------------ */

.glass {
  position: relative;
  isolation: isolate;
  background-color: var(--glass);
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 24%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, rgba(214, 232, 255, 0.24) 0%, rgba(255, 255, 255, 0.07) 42%, rgba(255, 255, 255, 0.04) 64%, rgba(255, 255, 255, 0.14) 100%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.06);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.06);
  box-shadow:
    inset 0 2px 1px -1px var(--rim-top),
    inset 0 -1px 0 var(--rim-bot),
    inset 0 0 0 0.5px var(--ring),
    inset 0 0 20px rgba(0, 0, 0, 0.18),
    0 1px 1px rgba(0, 0, 0, 0.1),
    0 16px 36px -12px var(--shadow),
    0 50px 100px -40px var(--shadow);
}
html[data-theme='light'] .glass {
  background-color: rgba(255, 255, 255, 0.46);
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.3) 24%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66) 0%, rgba(255, 255, 255, 0.2) 44%, rgba(255, 255, 255, 0.1) 66%, rgba(255, 255, 255, 0.4) 100%);
  --ring: rgba(12, 22, 50, 0.08);
}

/* rim light: turns toward the pointer, carries a faint dispersion */
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--ang, 145deg),
    rgba(255, 255, 255, 0) 0deg,
    rgba(255, 255, 255, 0.98) 32deg,
    rgba(160, 200, 255, 0.55) 62deg,
    rgba(255, 150, 210, 0.32) 92deg,
    rgba(255, 255, 255, 0) 150deg,
    rgba(255, 255, 255, 0.2) 224deg,
    rgba(180, 220, 255, 0.4) 258deg,
    rgba(255, 255, 255, 0) 318deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: calc(0.5 + var(--near, 0) * 0.45);
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

/* specular: a light source that follows the pointer */
.glass::after,
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    radial-gradient(180px circle at var(--mx, 22%) var(--my, 0%),
      rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12) 34%, rgba(255, 255, 255, 0) 66%),
    radial-gradient(120px circle at calc(100% - var(--mx, 22%)) 100%,
      rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%);
  opacity: calc(0.3 + var(--near, 0) * 0.6);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
html[data-theme='light'] .glass::after,
html[data-theme='light'] .btn::after { mix-blend-mode: soft-light; opacity: calc(0.22 + var(--near, 0) * 0.5); }

.glass > * { position: relative; z-index: 2; }

.scroll-edge {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 96px;
  pointer-events: none;
  opacity: 0;
  -webkit-backdrop-filter: blur(4px) saturate(140%);
  backdrop-filter: blur(4px) saturate(140%);
  -webkit-mask-image: linear-gradient(#000 0 22%, transparent 92%);
  mask-image: linear-gradient(#000 0 22%, transparent 92%);
  transition: opacity 0.5s var(--ease);
}
body.is-scrolled .scroll-edge { opacity: 1; }
body:has(.site-header.is-hidden) .scroll-edge { opacity: 0; }

/* ------------------------------------------------------------------
   Typography helpers
------------------------------------------------------------------ */

.serif {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: inherit;
}

.hero-title em,
.display em,
.about-title em,
.contact-heading em,
.footer-tagline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.014em;
  color: inherit;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.eyebrow-line {
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent);
  flex: none;
}

.mini-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.tz { font-size: 10px; letter-spacing: 0.08em; color: var(--ink-3); }

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  transition:
    transform 0.5s var(--spring),
    box-shadow 0.45s var(--ease),
    background-color 0.45s var(--ease),
    color 0.45s var(--ease);
  will-change: transform;
}
.btn > * { position: relative; z-index: 2; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.04) 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.btn--dark {
  color: var(--btn-ink);
  background: linear-gradient(180deg, rgba(74, 162, 255, 0.92) 0%, rgba(10, 124, 255, 0.88) 52%, rgba(0, 96, 209, 0.92) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  backdrop-filter: blur(18px) saturate(190%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.22),
    0 12px 30px -10px var(--btn-shadow),
    0 2px 6px rgba(0, 0, 0, 0.14);
}
.btn--dark:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 20px 44px -14px var(--btn-shadow),
    0 2px 6px rgba(0, 0, 0, 0.1);
}
.btn--light {
  color: #0a0b10;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 240, 247, 0.94) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 34px -14px rgba(0, 0, 0, 0.5);
}
.btn.is-pressed { transform: scale(0.96); }
.glass.is-pressed { transform: scale(0.985); }

.glass .glow,
.btn .glow,
.tabbar a .glow {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(140px circle at var(--px, 50%) var(--py, 50%),
    rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
  transition: opacity 0.45s var(--ease);
}
.glass.is-pressed .glow,
.btn.is-pressed .glow { opacity: 1; transition-duration: 0.08s; }

.btn-arrow {
  display: inline-block;
  font-size: 15px;
  transition: transform 0.5s var(--spring);
}
.btn:hover .btn-arrow { transform: translate(2px, 2px); }
.btn--light:hover .btn-arrow { transform: translate(2px, -2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 2px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.82;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.link-arrow:hover { opacity: 1; border-color: var(--ink-3); }
.link-arrow span[aria-hidden] { transition: transform 0.45s var(--spring); }
.link-arrow:hover span[aria-hidden] { transform: translate(2px, -2px); }

/* ------------------------------------------------------------------
   Header — a floating capsule of glass
------------------------------------------------------------------ */

.site-header {
  position: fixed;
  top: var(--nav-top);
  left: 0;
  right: 0;
  z-index: 80;
  padding-inline: 14px;
  translate: 0 0;
  transition: translate 0.55s var(--ease), opacity 0.4s var(--ease);
}
.site-header.is-hidden { translate: 0 -140%; }

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(var(--container), 100%);
  height: var(--nav-h);
  margin-inline: auto;
  padding: 0 10px 0 12px;
  border-radius: var(--r-pill);
  transition:
    height 0.55s var(--ease),
    background-color 0.55s var(--ease),
    box-shadow 0.55s var(--ease);
}
.site-header.is-scrolled .nav-shell {
  height: 52px;
  background-color: var(--glass-2);
}

html[data-theme='light'] .site-header.is-on-dark .nav-shell {
  color: #f7f3ec;
  --ink: #f7f3ec;
  --ink-2: rgba(247, 243, 236, 0.66);
  --ink-3: rgba(247, 243, 236, 0.44);
  --glass: rgba(255, 255, 255, 0.11);
  --glass-2: rgba(255, 255, 255, 0.17);
  --rim-top: rgba(255, 255, 255, 0.5);
  --rim-bot: rgba(255, 255, 255, 0.08);
  --ring: rgba(255, 255, 255, 0.16);
  --shadow: rgba(0, 0, 0, 0.5);
  background-color: rgba(7, 8, 15, 0.62);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.03) 44%, rgba(255, 255, 255, 0.08) 100%);
}
html[data-theme='light'] .site-header.is-on-dark .brand-mark {
  background: #f7f3ec;
  color: #17130f;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  border-radius: var(--r-pill);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.brand-text {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.brand-dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: center;
}
.nav-link {
  padding: 8px 13px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--glass-2); }
.nav-link.is-active {
  color: var(--ink);
  background: var(--glass-2);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.24);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.2),
    inset 0 1px 3px rgba(0, 0, 0, 0.18);
}
.lang-btn {
  min-width: 32px;
  height: 26px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active {
  color: #08090c;
  background: linear-gradient(180deg, #ffffff, #e9edf5);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn--hire {
  height: 32px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 5px 14px -6px var(--btn-shadow);
}
.btn--hire::before {
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.12) 60%);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), transform 0.6s var(--spring);
}
.theme-toggle:hover { color: var(--ink); background: var(--glass-2); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--spring);
}
.icon-sun { opacity: 0; transform: rotate(-70deg) scale(0.6); }
html[data-theme='dark'] .icon-sun { opacity: 1; transform: none; }
html[data-theme='dark'] .icon-moon { opacity: 0; transform: rotate(70deg) scale(0.6); }

.menu-toggle {
  position: relative;
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) translateY(-3.5px);
  transition: transform 0.45s var(--spring);
}
.menu-toggle span:last-child { transform: translate(-50%, -50%) translateY(3.5px); }
.site-header.is-open .menu-toggle span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.site-header.is-open .menu-toggle span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

/* ------------------------------------------------------------------
   Mobile menu — a sheet of glass over the page
------------------------------------------------------------------ */

.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px var(--gut) 40px;
  background-color: color-mix(in srgb, var(--bg) 42%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  backdrop-filter: blur(26px) saturate(165%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.menu.is-open { opacity: 1; visibility: visible; }

.menu-nav { display: flex; flex-direction: column; }
.menu-link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  transition: color var(--t-fast) var(--ease);
}
.menu-link:hover { color: var(--accent); }
.menu-index {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.menu-foot { display: flex; flex-direction: column; gap: 14px; }
.menu-email {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  word-break: break-all;
}
.menu-socials { display: flex; gap: 18px; font-size: 13.5px; color: var(--ink-2); }
.menu-socials a { transition: color var(--t-fast) var(--ease); }
.menu-socials a:hover { color: var(--ink); }
.menu-loc { font-size: 12px; color: var(--ink-3); }

body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------------
   Loader
------------------------------------------------------------------ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gut);
  background-color: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}
.no-js .loader { display: none; }
.loader-inner { width: min(var(--container), 100%); }

.loader-top,
.loader-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-3);
}
.loader-name {
  margin: clamp(40px, 10vh, 120px) 0 clamp(24px, 6vh, 56px);
  overflow: hidden;
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.loader-name span {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.loader-bar {
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.loader-bottom { margin-top: 14px; }

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: calc(var(--nav-top) + var(--nav-h) + 34px) 0 26px;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 26%;
  width: min(860px, 88vw);
  height: min(420px, 46vh);
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hero-avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.hero-title {
  margin-top: clamp(40px, 7vh, 76px);
  font-size: clamp(40px, 6.7vw, 92px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero-title .line-inner { display: block; }
.hero-title em {
  font-size: 1.04em;
  line-height: 0.9;
  color: var(--ink);
  padding-right: 0.02em;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(26px, 4vh, 40px);
  text-align: center;
}
.hero-lead { max-width: 46ch; }
.hero-lead > p {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

/* status strip — chrome, so it may be glass */
.hero-card {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 46px;
  margin-top: 30px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  color: var(--ink-2);
}
.hero-card-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.hero-card-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
}
.hero-card-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px color-mix(in srgb, var(--green) 70%, transparent);
}
.hero-card-list {
  display: flex;
  align-items: center;
  height: 100%;
}
.hero-card-list > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  height: 18px;
  padding: 0 16px;
  border-left: 1px solid var(--line);
}
.hero-card-list dt {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.hero-card-list dd {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.signal {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
  padding: 0 14px 0 10px;
  border-left: 1px solid var(--line);
}
.signal span {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: var(--ink-3);
  opacity: 0.55;
  animation: signal 2.2s ease-in-out infinite alternate;
}
.signal span:nth-child(2n) { animation-duration: 2.8s; height: 8px; }
.signal span:nth-child(3n) { animation-duration: 1.7s; height: 6px; }
.signal span:nth-child(5n) { animation-duration: 3.2s; height: 11px; }
.signal span:nth-child(7) { background: var(--accent); opacity: 1; animation-duration: 1.2s; }
@keyframes signal {
  from { transform: scaleY(0.55); }
  to   { transform: scaleY(1.15); }
}

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 34px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease);
}
.scroll-cue:hover { color: var(--ink); }
.scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 26px;
  background: var(--line-strong);
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(-100%);
  animation: scroll-line 2.6s var(--ease) infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
.hero-year { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------
   Marquee
------------------------------------------------------------------ */

.marquee-band {
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee-item {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee-star {
  margin: 0 clamp(18px, 2.6vw, 34px);
  font-family: var(--serif);
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--accent);
  opacity: 0.8;
}

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------ */

.section { padding-block: clamp(76px, 9vw, 128px); }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: clamp(34px, 4.2vw, 56px);
  border-bottom: 1px solid var(--line);
}
.section-index { display: none; }
.section-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-note {
  font-size: 12.5px;
  color: var(--ink-3);
}

.display {
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.display em { font-size: 1.02em; }

/* ------------------------------------------------------------------
   Work
------------------------------------------------------------------ */

.work-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(36px, 4.5vw, 58px);
}
.work-intro p {
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 46px);
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: var(--r-xl);
}
.project:first-child { grid-column: 1 / -1; }

.project-thumb {
  position: relative;
  order: -1;
  overflow: hidden;
  border-radius: calc(var(--r-xl) + 10px);
  aspect-ratio: 16 / 10;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 40px 80px -40px var(--shadow-card);
}
html[data-theme='light'] .project-thumb {
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(12, 22, 50, 0.06),
    0 36px 70px -40px var(--shadow-card);
}
.project:first-child .project-thumb { aspect-ratio: 21 / 9; }

.project-thumb img {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--r-xl) + 2px);
  object-fit: cover;
  transform: scale(1.005);
  transition: transform 1.1s var(--ease);
}
.project:not(.project--private):hover .project-thumb img { transform: scale(1.04); }

.project-thumb::after {
  content: '';
  position: absolute;
  inset: 10px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 26%, transparent 68%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
}

.project-index {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 28px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.55),
    0 0 0 0.5px rgba(255, 255, 255, 0.2),
    0 8px 20px -8px rgba(0, 0, 0, 0.5);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.project-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.55),
    0 0 0 0.5px rgba(255, 255, 255, 0.2),
    0 8px 20px -8px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 15px;
  opacity: 0;
  transform: translateY(-6px) scale(0.9);
  transition: opacity 0.4s var(--ease), transform 0.55s var(--spring);
}
.project:hover .project-arrow,
.project:focus-visible .project-arrow { opacity: 1; transform: none; }

/* private work: visible, but not enterable */
.project--private { cursor: default; }
.project--private .project-arrow {
  opacity: 1;
  transform: none;
  color: rgba(255, 255, 255, 0.92);
}
.project-arrow--lock svg { width: 15px; height: 15px; }
.project-private {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}
.project-private svg { width: 11px; height: 11px; }

.project-main { display: flex; flex-direction: column; gap: 8px; }
.project-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.project-title-row h3 {
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.project-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.project-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.project-desc {
  max-width: 56ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-3);
}
.project-tags span + span::before {
  content: '·';
  margin: 0 8px;
  opacity: 0.6;
}

.work-more { margin-top: clamp(34px, 4vw, 54px); }

/* ------------------------------------------------------------------
   About
------------------------------------------------------------------ */

.about-grid > * { min-width: 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.about-sticky { position: sticky; top: 112px; }
.about-title {
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.about-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--ink-2);
  max-width: 34ch;
}

.about-big {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink);
}
.about-small {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-plus { color: var(--accent); }
.stat-unit { font-size: 0.55em; color: var(--ink-3); margin-left: 1px; }
.stat-label { font-size: 11.5px; color: var(--ink-3); }

.languages { margin-top: 36px; }
.lang-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lang-pill:hover { border-color: var(--line-strong); color: var(--ink); }
.lang-code {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.lang-ar { font-feature-settings: normal; }

/* ------------------------------------------------------------------
   Services
------------------------------------------------------------------ */

.services-layout > * { min-width: 0; }

.services-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.services-heading { position: relative; }
.services-heading p {
  margin-top: 20px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.service-list { display: flex; flex-direction: column; }
.service {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service-index {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  padding-top: 3px;
}
.service h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: 8px;
}
.service p {
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.service-tags span + span::before {
  content: '·';
  margin: 0 8px;
  opacity: 0.6;
}

.toolbox {
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chips span {
  padding: 7px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.tool-chips span:hover { border-color: var(--line-strong); color: var(--ink); background: var(--glass); }

/* ------------------------------------------------------------------
   Contact — one solid slab, everything else floats above
------------------------------------------------------------------ */

.contact {
  padding: 0 12px 12px;
  --ink: #f6f8fc;
  --ink-2: rgba(246, 248, 252, 0.66);
  --ink-3: rgba(246, 248, 252, 0.44);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.3);
  --green: #30d158;
  --accent: #7db8ff;
  --accent-soft: rgba(10, 124, 255, 0.2);
  color: var(--ink);
}

.contact > .container {
  width: 100%;
  max-width: 1420px;
  padding: clamp(34px, 5vw, 72px) clamp(22px, 4.4vw, 64px) clamp(20px, 3vw, 34px);
  border-radius: 40px;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(10, 124, 255, 0.2), transparent 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(120, 70, 255, 0.2), transparent 62%),
    #07080f;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.14),
    0 40px 90px -40px rgba(0, 0, 0, 0.6);
}
html[data-theme='dark'] .contact > .container {
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(10, 124, 255, 0.16), transparent 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(120, 70, 255, 0.16), transparent 62%),
    #0a0b12;
}

.contact-head { max-width: none; }
.contact-head .section-head { border-bottom-color: var(--line); margin-bottom: 40px; }

.contact-heading .display {
  font-size: clamp(38px, 5.8vw, 82px);
  line-height: 0.98;
}
.contact-heading p {
  margin-top: 22px;
  max-width: 44ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 72px);
  margin-top: clamp(44px, 6vw, 76px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.email-link {
  font-size: clamp(17px, 1.9vw, 24px);
  font-weight: 500;
  letter-spacing: -0.025em;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  word-break: break-all;
}
.email-link:hover { border-color: var(--ink); }
.copy-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.copy-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); }
.copy-btn svg { width: 15px; height: 15px; }

.contact-reply {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.social-list { margin-top: 34px; border-top: 1px solid var(--line); }
.social-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}
.social-list a:hover { color: var(--accent); padding-left: 4px; }
.social-name { min-width: 90px; font-weight: 500; }
.social-handle { flex: 1; font-size: 12.5px; color: var(--ink-3); }
.social-arrow { color: var(--ink-3); }

.contact-place {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.contact-place-label { color: var(--ink-3); }
.contact-place-time { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }
.field input:hover,
.field textarea:hover { border-color: var(--line-strong); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: #ff8f78;
  box-shadow: 0 0 0 4px rgba(255, 143, 120, 0.14);
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-hint { font-size: 12px; color: var(--ink-3); max-width: 30ch; }
.form-status { min-height: 18px; font-size: 12.5px; color: var(--ink-2); }
.form-noscript { font-size: 13px; color: var(--ink-2); }
.form-noscript a { text-decoration: underline; }

/* Footer (inside the dark slab) */
.footer {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer .brand-mark { background: var(--ink); color: #14110f; }
.footer-tagline {
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.footer-nav { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.footer-nav a { width: fit-content; transition: color var(--t-fast) var(--ease); }
.footer-nav a:hover { color: var(--ink); }
.footer-socials { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.footer-socials a { width: fit-content; transition: color var(--t-fast) var(--ease); }
.footer-socials a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
}
.footer-mid { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  transition: color var(--t-fast) var(--ease);
}
.footer-top:hover { color: var(--ink); }


/* ------------------------------------------------------------------
   Mobile tab bar — the iOS 26 floating capsule
------------------------------------------------------------------ */

.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 85;
  display: none;
  align-items: center;
  gap: 2px;
  width: min(440px, calc(100% - 20px));
  height: 66px;
  padding: 6px;
  border-radius: var(--r-pill);
  translate: -50% 0;
  transition: translate 0.55s var(--ease), opacity 0.4s var(--ease), background-color 0.5s var(--ease);
}
.tabbar.is-hidden { translate: -50% 160%; opacity: 0; }
.tabbar__pill {
  position: absolute;
  z-index: 1;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / 4);
  border-radius: var(--r-pill);
  background: rgba(10, 132, 255, 0.2);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 0 0.5px rgba(120, 180, 255, 0.25);
  transition: transform 0.55s var(--spring);
}
html[data-theme='light'] .tabbar__pill {
  background: rgba(0, 102, 204, 0.12);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.8), inset 0 0 0 0.5px rgba(0, 102, 204, 0.12);
}
.tabbar a {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 52px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.01em;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), transform 0.45s var(--spring);
}
.tabbar svg { width: 21px; height: 21px; }
.tabbar a:active { transform: scale(0.92); }
.tabbar a.is-active { color: #0066cc; background: transparent; }
html[data-theme='dark'] .tabbar a.is-active { color: #9ccbff; }

/* ------------------------------------------------------------------
   Toast
------------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.55s var(--spring);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------
   Reveal / motion defaults (GSAP takes over when available)
------------------------------------------------------------------ */

.js [data-reveal] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; }
  .scroll-line::after { display: none; }
}

/* ------------------------------------------------------------------
   Accessibility media queries
------------------------------------------------------------------ */

@media (prefers-reduced-transparency: reduce) {
  .glass,
  .menu,
  .loader {
    background: var(--solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .glass::before,
  .glass::after,
  .btn::after { display: none; }
  .scroll-edge { display: none; }
  .project-index,
  .project-arrow { background: #111; }
}

@media (prefers-contrast: more) {
  :root { --ink-2: rgba(26, 24, 21, 0.84); --ink-3: rgba(26, 24, 21, 0.62); --line: rgba(26, 24, 21, 0.3); }
  html[data-theme='dark'] { --ink-2: rgba(247, 243, 236, 0.84); --ink-3: rgba(247, 243, 236, 0.62); --line: rgba(255, 255, 255, 0.3); }
  .glass { box-shadow: 0 0 0 1px var(--ink), 0 18px 40px -18px var(--shadow); }
}

@media (forced-colors: active) {
  .glass,
  .btn {
    border: 1px solid CanvasText;
    background: Canvas;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    forced-color-adjust: none;
    color: CanvasText;
  }
  .glass::before,
  .glass::after,
  .btn::after,
  .btn::before { display: none; }
  .contact > .container { background: Canvas; }
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .nav-link { padding: 8px 10px; font-size: 13.5px; }
  .hero-card-list > div { padding: 0 12px; }
  .hero-card-top { padding: 0 12px; }
}

@media (max-width: 960px) {
  :root { --nav-top: 10px; --nav-h: 54px; }

  .site-header { padding-inline: 10px; }
  .nav-shell { grid-template-columns: 1fr auto; padding: 0 8px 0 12px; }
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .lang-switch { margin-right: 2px; }

  .hero { padding-top: calc(var(--nav-top) + var(--nav-h) + 28px); }
  .hero-title { margin-top: 38px; }

  .tabbar { display: flex; }
  .footer { padding-bottom: 92px; }
  .btn--hire { height: 30px; padding: 0 12px; font-size: 12px; }

  .work-intro { flex-direction: column; align-items: flex-start; gap: 18px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-sticky { position: static; }
  .services-layout { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero { min-height: 0; }

  .hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 440px;
    gap: 0;
    height: auto;
    margin-top: 26px;
    padding: 6px 4px;
    border-radius: var(--r-l);
    text-align: left;
  }
  .hero-card-top {
    grid-column: 1 / -1;
    height: auto;
    padding: 8px 14px 10px;
    border-bottom: 1px solid var(--line);
  }
  .hero-card-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero-card-list > div {
    padding: 9px 14px;
    border-left: 0;
    height: auto;
    flex-direction: column;
    gap: 2px;
  }
  .hero-card-list > div:nth-child(even) { border-left: 1px solid var(--line); }
  .signal { display: none; }
}


@media (max-width: 760px) {
  body { font-size: 16px; }

  .hero { padding-bottom: 30px; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-avail { display: none; }
  .hero-title { font-size: clamp(38px, 9.4vw, 62px); margin-top: 28px; }
  .hero-bottom { margin-top: 24px; }
  .hero-actions { margin-top: 22px; }
  .hero-foot { margin-top: 40px; padding-top: 22px; }


  .work-list { grid-template-columns: 1fr; }
  .project:first-child { grid-column: auto; }
  .project:first-child .project-thumb { aspect-ratio: 16 / 10; }

  .stats { grid-template-columns: 1fr 1fr; gap: 22px 16px; }

  .contact { padding: 0 8px 8px; }
  .contact > .container { border-radius: 28px; }
  .contact-heading .display { font-size: clamp(38px, 11vw, 56px); }
  .form-row { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-mid { display: none; }

  .marquee-band { padding: 16px 0; }

  /* lighter on phone GPUs: same colour, less blur, slower drift */
  .orb { filter: blur(44px); animation-duration: 46s; }
}

@media (max-width: 370px) {
  .brand-text { display: none; }
}

@media (max-width: 420px) {
  .section-head { grid-template-columns: 34px 1fr; }
  .section-note { display: none; }
  .contact > .container { padding-inline: 18px; }
}

@media (hover: none) {
  .project-arrow { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
   View transitions — the theme turns like a lens
------------------------------------------------------------------ */

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
