:root {
  color-scheme: dark;
  --black: #050608;
  --ink: #f3efe7;
  --muted: #a9a49a;
  --soft: rgba(243, 239, 231, 0.72);
  --faint: rgba(243, 239, 231, 0.1);
  --line: rgba(243, 239, 231, 0.16);
  --cyan: #7df0ff;
  --red: #ff533d;
  --amber: #d8b16a;
  --panel: rgba(12, 14, 18, 0.72);
  font-family: Inter, "Noto Sans SC", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 92px 92px,
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 92px 92px,
    var(--black);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 18px clamp(14px, 3vw, 36px) auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 6, 8, 0.58);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.34);
}

.brand,
.nav,
.language-picker,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(243, 239, 231, 0.65);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 4px rgba(125, 240, 255, 0.07);
}

.nav {
  justify-content: center;
  gap: clamp(10px, 2vw, 26px);
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 7px 13px;
  border: 1px solid rgba(125, 240, 255, 0.28);
  border-radius: 999px;
  background: rgba(125, 240, 255, 0.08);
  color: var(--ink);
}

.language-picker {
  justify-content: flex-end;
  gap: 9px;
  min-height: 36px;
  padding: 7px 9px 7px 12px;
  border: 1px solid rgba(243, 239, 231, 0.18);
  border-radius: 999px;
  background: rgba(243, 239, 231, 0.055);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.language-picker select {
  max-width: 122px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.language-picker option {
  color: #111;
}

html[dir="rtl"] body {
  direction: rtl;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(18px, 5vw, 74px) 54px;
}

.hero-image,
.hero-scrim,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 64% 34%;
  filter: saturate(0.82) contrast(1.08) brightness(0.74);
  transform: scale(1.01);
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.96) 0%, rgba(5, 6, 8, 0.78) 36%, rgba(5, 6, 8, 0.22) 72%, rgba(5, 6, 8, 0.74) 100%),
    linear-gradient(0deg, rgba(5, 6, 8, 1) 0%, rgba(5, 6, 8, 0.08) 56%);
}

.hero-grid {
  opacity: 0.38;
  background:
    linear-gradient(90deg, rgba(125, 240, 255, 0.1) 1px, transparent 1px) 0 0 / 13vw 13vw,
    linear-gradient(rgba(125, 240, 255, 0.08) 1px, transparent 1px) 0 0 / 13vw 13vw;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

html[dir="rtl"] .hero-scrim {
  background:
    linear-gradient(270deg, rgba(5, 6, 8, 0.96) 0%, rgba(5, 6, 8, 0.78) 36%, rgba(5, 6, 8, 0.22) 72%, rgba(5, 6, 8, 0.74) 100%),
    linear-gradient(0deg, rgba(5, 6, 8, 1) 0%, rgba(5, 6, 8, 0.08) 56%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 980px;
  font-size: clamp(58px, 11vw, 156px);
  line-height: 0.85;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: var(--black);
  border-color: var(--ink);
}

.button.secondary {
  background: rgba(243, 239, 231, 0.06);
  color: var(--ink);
}

.signal-panel {
  position: absolute;
  right: clamp(18px, 5vw, 74px);
  bottom: 54px;
  z-index: 3;
  width: min(330px, calc(100% - 36px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 6, 8, 0.58);
  backdrop-filter: blur(20px);
}

html[dir="rtl"] .signal-panel {
  right: auto;
  left: clamp(18px, 5vw, 74px);
}

.signal-panel span,
.experience-row > span,
.project-card span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-panel strong {
  display: block;
  margin: 10px 0;
  font-size: 32px;
  line-height: 1;
}

.signal-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: clamp(74px, 10vw, 140px) clamp(18px, 5vw, 74px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.94;
}

.experience {
  background:
    radial-gradient(circle at 82% 14%, rgba(125, 240, 255, 0.12), transparent 30%),
    #07080a;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 74px);
}

.profile-statement {
  position: sticky;
  top: 112px;
  align-self: start;
  padding-top: 4px;
}

.profile-statement p {
  color: var(--soft);
  font-size: clamp(20px, 2.3vw, 34px);
  line-height: 1.45;
}

.profile-statement p + p {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
}

.experience-stack {
  border-top: 1px solid var(--line);
}

.experience-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 150px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.experience-row h3 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 40px);
}

.experience-row p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.experience-row a {
  min-width: 104px;
  text-align: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.video-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: clamp(44px, 7vw, 92px);
}

.video-strip article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 239, 231, 0.045);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #020203;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-strip p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.projects {
  background: #050608;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(300px, 34vw);
  gap: 16px;
}

.project-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
}

.project-large {
  grid-column: span 2;
  grid-row: span 2;
}

.project-wide {
  grid-column: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08) brightness(0.78);
  transition: transform 500ms ease, filter 500ms ease;
}

.project-card:hover img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.1) brightness(0.92);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 6, 8, 0.92), transparent 52%);
}

.project-card div {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 22px;
}

.project-card h3 {
  margin: 9px 0 6px;
  font-size: clamp(24px, 4vw, 54px);
  line-height: 0.98;
}

.project-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.closing {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 120px clamp(18px, 5vw, 74px);
  background:
    linear-gradient(90deg, rgba(255, 83, 61, 0.16), transparent 38%),
    radial-gradient(circle at 82% 20%, rgba(125, 240, 255, 0.16), transparent 32%),
    #08090c;
}

.closing-inner {
  width: min(1100px, 100%);
}

.closing h2 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(48px, 9vw, 126px);
  line-height: 0.9;
}

.closing p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 28px;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    order: 3;
  }

  .experience-layout,
  .video-strip {
    grid-template-columns: 1fr;
  }

  .profile-statement {
    position: static;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(280px, 48vw);
  }
}

@media (max-width: 640px) {
  .site-header {
    inset: 10px 10px auto;
    gap: 10px;
  }

  .brand span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .language-picker {
    padding-inline: 10px;
  }

  .language-picker > span {
    display: none;
  }

  .language-picker select {
    max-width: 110px;
  }

  .nav {
    gap: 8px 14px;
    font-size: 12px;
  }

  .hero {
    min-height: 100svh;
    padding-top: 174px;
    padding-bottom: 220px;
  }

  .hero-image {
    object-position: 60% 35%;
  }

  h1 {
    font-size: 56px;
  }

  .signal-panel {
    left: 18px;
    right: 18px;
    bottom: 24px;
  }

  html[dir="rtl"] .signal-panel {
    left: 18px;
    right: 18px;
  }

  .section-heading {
    display: block;
  }

  .experience-row {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .experience-row a,
  .button {
    width: 100%;
  }

  .project-grid,
  .project-large,
  .project-wide {
    grid-template-columns: 1fr;
    grid-column: auto;
    grid-row: auto;
  }

  .project-card {
    min-height: 420px;
  }

  .closing {
    padding-top: 110px;
  }
}
