/* Layout: one dark page, a moving technical grid behind, content in a 1200px column. Night direction. */
:root {
  --bg: #0a0c10;
  --surface: #12151c;
  --surface-2: #171b24;
  --text: #f2f4f8;
  --muted: rgba(242, 244, 248, 0.72);
  --line: rgba(242, 244, 248, 0.16);
  --accent: #c6f432;
  --accent-ink: #0a0c10;
  --accent-2: #ff6b57;

  --font-display: 'Rubik', 'Arial Hebrew', Arial, sans-serif;
  --font-body: 'Heebo', 'Arial Hebrew', Arial, sans-serif;

  --gutter: clamp(16px, 4.5vw, 56px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}
.accent {
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus {
  top: 16px;
}

.wrap {
  position: relative;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Background grid ─────────────────────────────────────────────── */
.grid-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1100px;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  animation: grid 6s linear infinite;
}
@keyframes grid {
  to {
    background-position: 64px 64px, 64px 64px;
  }
}

/* ── Top bar ─────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 36px 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--accent);
  text-decoration: none;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--accent);
}
.meta {
  margin: 0;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-block: 72px 80px;
  overflow-x: clip; /* rotating rings must not widen the page */
}
.hero-copy {
  flex: 999 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}
.blink {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.hero-name {
  font-weight: 900;
  font-size: clamp(76px, 12vw, 150px);
  line-height: 0.95;
}
.hero-name .line {
  display: block;
  overflow: hidden;
  padding-top: 0.06em;
}
.rise {
  display: block;
  animation: rise 0.9s var(--ease) both;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  from {
    transform: translateY(110%);
  }
}
.fade {
  animation: fadeup 0.8s var(--ease) both;
  animation-delay: var(--d, 0s);
}
@keyframes fadeup {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
}
.roles-track {
  position: relative;
  height: 1.45em;
  width: 11em;
  max-width: 100%;
  overflow: hidden;
  color: var(--accent);
}
.role {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  animation: cycle 9s infinite;
}
.role:nth-child(2) {
  animation-delay: 3s;
}
.role:nth-child(3) {
  animation-delay: 6s;
}
@keyframes cycle {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  5%,
  30% {
    opacity: 1;
    transform: translateY(0);
  }
  35%,
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  font: 600 18px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn-solid {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1.5px solid var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(242, 244, 248, 0.5);
}
.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
}

/* Orbit graphic */
.orbit {
  flex: 1 1 280px;
  position: relative;
  max-width: 400px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.ring {
  position: absolute;
  border-radius: 50%;
}
.ring-1 {
  inset: 0;
  border: 2px dashed rgba(198, 244, 50, 0.7);
}
.ring-2 {
  inset: 11%;
  border: 1.5px solid rgba(242, 244, 248, 0.35);
}
.ring-3 {
  inset: 22%;
  border: 1.5px dashed rgba(255, 107, 87, 0.8);
}
.ring-3 span,
.satellite span {
  position: absolute;
  left: 50%;
  border-radius: 50%;
}
.ring-3 span {
  bottom: -7px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: var(--accent-2);
}
.satellite {
  position: absolute;
  inset: 0;
}
.satellite span {
  top: -9px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  background: var(--accent);
}
.core {
  position: absolute;
  inset: 33%;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 900 clamp(36px, 5vw, 64px) / 1 var(--font-display);
  transform: rotate(8deg);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    transform: rotate(8deg) scale(1.1);
  }
}
.spin {
  animation: spin 16s linear infinite;
}
.spin-back {
  animation: spin 24s linear infinite reverse;
}
.spin-fast {
  animation: spin 7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Marquee ─────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 14px;
  direction: ltr;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
  font: 800 28px/1.2 var(--font-display);
  letter-spacing: 2px;
  white-space: nowrap;
}
.marquee-set {
  display: flex;
  gap: 28px;
  padding-right: 28px;
}
.marquee i {
  font-style: normal;
  color: var(--accent);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ── Sections ────────────────────────────────────────────────────── */
.section {
  padding-block: 112px 0;
}
.section h2 {
  font-weight: 900;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.02;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.count {
  margin: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Reveal on scroll where supported; visible by default everywhere else. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: fadeup linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* ── Filters ─────────────────────────────────────────────────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 400 16px/1 var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter:hover {
  border-color: var(--accent);
  color: var(--text);
}
.filter[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 44px 24px;
}
.card {
  animation: fadeup 0.6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.card-btn {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: right;
  cursor: pointer;
  border-radius: 18px;
}
.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.45s var(--ease), border-color 0.35s;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease);
}
.thumb::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: rgba(198, 244, 50, 0.14);
  transform: translateX(-160%) skewX(-20deg);
  transition: transform 0.9s var(--ease);
}
.card-btn:hover .thumb,
.card-btn:focus-visible .thumb {
  transform: translateY(-8px);
  border-color: var(--accent);
}
.card-btn:hover .thumb img {
  transform: scale(1.04);
}
.card-btn:hover .thumb::after {
  transform: translateX(380%) skewX(-20deg);
}
.card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.card-title {
  font: 800 24px/1.25 var(--font-display);
}
.card-client {
  font-size: 15px;
  color: var(--muted);
}
.card-arrow {
  flex: none;
  color: var(--accent);
  transition: transform 0.35s;
  margin-top: 4px;
}
.card-btn:hover .card-arrow {
  transform: translateX(-8px);
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 14px;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.tag-concept {
  border-color: var(--line);
  color: var(--muted);
}

.more-row {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.noscript {
  color: var(--muted);
}

/* ── About ───────────────────────────────────────────────────────── */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.about > h2 {
  flex: 1 1 360px;
}
.about-body {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-body p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}
.about-body .lead {
  color: var(--text);
  font-size: 21px;
}
.facts {
  margin: 8px 0 0;
}
.facts div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.facts div:last-child {
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font: 800 22px/1.3 var(--font-display);
}
.facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* ── Skills ──────────────────────────────────────────────────────── */
.chips {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.chips li {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(242, 244, 248, 0.4);
  font: 500 20px/1.2 var(--font-display);
  transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.chips li:hover {
  transform: translateY(-4px) rotate(-2deg);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ── Contact ─────────────────────────────────────────────────────── */
.contact {
  padding-block: 140px 48px;
}
.contact .big {
  font-size: clamp(52px, 9vw, 120px);
  line-height: 1;
}
.contact-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  max-width: 760px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.c-label {
  color: var(--muted);
  font-size: 16px;
}
.c-value {
  font: 500 clamp(18px, 2.4vw, 24px) / 1.3 var(--font-display);
  text-decoration: none;
  overflow-wrap: anywhere;
  justify-self: start;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 0 2px;
  padding-bottom: 4px;
  transition: background-size 0.4s var(--ease);
}
.c-value:hover {
  background-size: 100% 2px;
}
.copy {
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 400 15px/1 var(--font-body);
  cursor: pointer;
}
.copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.toast {
  min-height: 1.6em;
  margin: 16px 0 0;
  color: var(--accent);
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 28px 36px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.footer p {
  margin: 0;
}

/* ── Project window ──────────────────────────────────────────────── */
.modal {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  overflow: auto;
}
.modal::backdrop {
  background: rgba(5, 6, 9, 0.82);
  backdrop-filter: blur(4px);
}
.modal[open] {
  animation: modal-in 0.35s var(--ease);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}
.modal-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
}
.modal-media {
  flex: 3 1 420px;
  min-width: 0;
  background: #0d1016;
  display: grid;
  place-items: center;
}
.modal-media img {
  width: 100%;
  max-height: 80dvh;
  object-fit: contain;
}
.modal-text {
  flex: 2 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 56px 32px 32px;
}
.modal-text h3 {
  font: 900 32px/1.15 var(--font-display);
}
.modal-text p {
  margin: 0;
  color: var(--muted);
}
.modal-text p:empty {
  display: none;
}
.modal-client {
  color: var(--text) !important;
  font-weight: 600;
}
.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.8);
  color: var(--text);
  cursor: pointer;
}
.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Spotlight (top project) ─────────────────────────────────────── */
.spotlight {
  margin-bottom: 56px;
}
.spot-btn {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(198, 244, 50, 0.1), transparent 60%),
    var(--surface);
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.35s;
}
.spot-btn:hover,
.spot-btn:focus-visible {
  border-color: rgba(198, 244, 50, 0.5);
}
.spot-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1100 / 1556;
  max-height: 78dvh;
  margin-inline: auto;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  transition: transform 0.6s var(--ease);
}
.spot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spot-btn:hover .spot-media {
  transform: translateY(-6px) rotate(-1.2deg);
}
.spot-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.spot-eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.spot-title {
  font: 900 clamp(36px, 5.4vw, 72px)/1.02 var(--font-display);
}
.spot-summary {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
}
.spot-detail {
  margin: 0;
  color: var(--muted);
}
.spot-cta {
  margin-top: 8px;
  pointer-events: none;
}

/* ── Project window: gallery ──────────────────────────────────────── */
.modal-media {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding-bottom: 12px;
}
.stage {
  position: relative;
  display: grid;
  place-items: center;
  height: min(64dvh, 640px);
}
.stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.stage img[hidden],
.stage video[hidden] {
  display: none;
}
.g-thumb {
  position: relative;
}
.g-thumb.is-video::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}
.modal-tools {
  font-size: 15px;
}
#modal-detail {
  white-space: pre-line;
}
.g-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.78);
  color: var(--text);
  cursor: pointer;
}
.g-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.g-prev {
  right: 12px;
}
.g-next {
  left: 12px;
}
.g-caption {
  margin: 0;
  padding-inline: 16px;
  font-size: 15px;
  color: var(--muted);
  min-height: 1.4em;
}
.g-thumbs {
  list-style: none;
  margin: 0;
  padding: 2px 16px 4px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.g-thumb {
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}
.g-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.g-thumb:hover,
.g-thumb[aria-current='true'] {
  opacity: 1;
}
.g-thumb[aria-current='true'] {
  border-color: var(--accent);
}
.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.modal-links:empty {
  display: none;
}
.modal-note {
  margin: 0;
  font-size: 14px;
}

/* ── Small screens ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  body {
    font-size: 17px;
  }
  .meta {
    display: none;
  }
  .orbit {
    max-width: 280px;
  }
  .section {
    padding-block: 80px 0;
  }
  .contact-list li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .c-label {
    grid-column: 1 / -1;
  }
  .modal-text {
    padding: 24px 20px 28px;
  }
  .spot-btn {
    grid-template-columns: 1fr;
  }
  .spot-media {
    width: min(100%, 360px);
  }
  .stage {
    height: min(52dvh, 460px);
  }
  .g-nav {
    width: 38px;
    height: 38px;
  }
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .role {
    opacity: 0;
  }
  .role:first-child {
    opacity: 1;
  }
}
