:root {
  color-scheme: light;
  --bg: #f6f1e9;
  --bg-alt: #edf7f4;
  --ink: #141414;
  --ink-soft: #2c2c2c;
  --muted: #5f5a56;
  --card: rgba(255, 255, 255, 0.9);
  --line: rgba(20, 20, 20, 0.12);
  --accent: #00a3a1;
  --accent-2: #ff7a3d;
  --accent-3: #2f7bff;
  --shadow: 0 30px 80px rgba(20, 20, 20, 0.12);
  --radius: 24px;
  --section-pad: clamp(70px, 9vw, 120px);
  --font-title: "Russo One", "Rubik", sans-serif;
  --font-body: "Rubik", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(120deg, var(--bg) 0%, var(--bg-alt) 60%);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(20, 20, 20, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(20, 20, 20, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 999;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.45;
  animation: float 12s ease-in-out infinite;
}

.orb--one {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -80px;
  left: -60px;
}

.orb--two {
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  bottom: -100px;
  right: 5%;
  animation-delay: -2s;
}

.orb--three {
  background: radial-gradient(circle, var(--accent-3) 0%, transparent 70%);
  top: 25%;
  right: -120px;
  animation-delay: -4s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(20px, -30px, 0);
  }
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 241, 233, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  border: none;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(20, 20, 20, 0.18);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(20, 20, 20, 0.15);
  box-shadow: none;
}

.button--text {
  background: none;
  color: var(--accent-3);
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.section {
  padding: var(--section-pad) 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 110px);
  position: relative;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(0, 163, 161, 0.22),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 40%,
      rgba(255, 122, 61, 0.2),
      transparent 50%
    );
  filter: blur(10px);
  opacity: 0.8;
  animation: pulse 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.hero-content h1 {
  font-family: var(--font-title);
  font-size: clamp(36px, 6vw, 64px);
  margin: 16px 0 20px;
  line-height: 1.05;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.lead {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(20, 20, 20, 0.08);
}

.stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: 24px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.ticker {
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

.ticker-track {
  display: inline-flex;
  gap: 28px;
  padding: 10px 20px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: ticker 14s linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero-visual {
  position: relative;
  min-height: 420px;
  perspective: 900px;
  transform-style: preserve-3d;
  display: grid;
  place-items: center;
  gap: 24px;
}

.mock {
  position: absolute;
  width: min(320px, 90%);
  padding: 24px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(20, 20, 20, 0.12);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.4s ease;
}

.mock--primary {
  transform: translate3d(-30px, -20px, 0)
    rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border-top: 4px solid var(--accent);
}

.mock--secondary {
  transform: translate3d(40px, 60px, 0)
    rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border-top: 4px solid var(--accent-2);
}

.mock--tertiary {
  transform: translate3d(10px, 140px, 0)
    rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border-top: 4px solid var(--accent-3);
}

.mock-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.mock-title {
  font-family: var(--font-title);
  font-size: 24px;
}

.mock-meta {
  font-size: 14px;
  color: var(--muted);
}

.section-head h2 {
  font-family: var(--font-title);
  font-size: clamp(28px, 4.5vw, 44px);
  margin: 16px 0 8px;
}

.text-block {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.about-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  align-content: flex-start;
}

.chips span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.08);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.projects-grid {
  margin-top: 32px;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  --glow-x: 50%;
  --glow-y: 50%;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(20, 20, 20, 0.12);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: var(--shadow);
  position: relative;
  isolation: isolate;
  transform: perspective(1000px) translateY(var(--lift))
    rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.project-card[role="button"] {
  cursor: pointer;
}

.project-card:focus-visible {
  outline: 2px solid rgba(0, 163, 161, 0.8);
  outline-offset: 4px;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--glow-x) var(--glow-y),
    rgba(0, 163, 161, 0.28),
    rgba(255, 122, 61, 0.18) 45%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.project-card::after {
  content: "";
  position: absolute;
  top: -140%;
  left: -70%;
  width: 45%;
  height: 360%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.85) 45%,
    rgba(255, 255, 255, 0.25) 60%,
    transparent 80%
  );
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(2px);
  transform: translateX(-160%) skewX(-12deg);
  transition: opacity 0.25s ease;
  will-change: transform;
  pointer-events: none;
  z-index: 2;
}

.project-card:hover,
.project-card:focus-within {
  --lift: -8px;
  box-shadow: 0 32px 70px rgba(20, 20, 20, 0.18);
  border-color: rgba(0, 163, 161, 0.28);
}

.project-card:hover::before,
.project-card:focus-within::before {
  opacity: 1;
}

.project-card:hover::after,
.project-card:focus-within::after {
  opacity: 0.9;
  animation: card-shine 1.2s ease;
}

.project-media {
  background: linear-gradient(130deg, var(--accent-3), var(--accent));
  padding: 12px;
  height: clamp(220px, 28vw, 280px);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.project-card:hover .project-media img,
.project-card:focus-within .project-media img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.05);
}

.project-body {
  padding: 24px;
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-body h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 22px;
}

.project-type {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 20, 0.15);
}

.project-body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  align-items: center;
  align-content: flex-start;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.08);
  line-height: 1.2;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-hint {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card:hover .project-hint,
.project-card:focus-within .project-hint {
  opacity: 1;
  transform: translateY(0);
}

@keyframes card-shine {
  0% {
    transform: translateX(-160%) skewX(-12deg);
  }
  100% {
    transform: translateX(220%) skewX(-12deg);
  }
}

.shots-grid {
  margin-top: 32px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.shot {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(20, 20, 20, 0.12);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shot figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.75);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.shot:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(20, 20, 20, 0.14);
}

.contact-card {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 40px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(20, 20, 20, 0.12);
  box-shadow: var(--shadow);
}

.contact-actions {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer {
  padding: 40px 24px 60px;
  text-align: center;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(14, 14, 14, 0.65);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.lightbox-panel {
  position: relative;
  width: min(1000px, 92vw);
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 20px 20px 18px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
  z-index: 1;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-header h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 22px;
}

.lightbox-counter {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.lightbox-close {
  border: none;
  background: rgba(20, 20, 20, 0.12);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.lightbox-close:hover {
  transform: rotate(8deg);
  background: rgba(20, 20, 20, 0.2);
}

.lightbox-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.lightbox-figure {
  margin: 0;
  border-radius: 18px;
  background: #121212;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 320px;
  max-height: 62vh;
}

.lightbox-figure img {
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  display: block;
}

.lightbox-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #fff;
  font-size: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lightbox-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.16);
}

.lightbox-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.lightbox-thumb {
  border: 1px solid rgba(20, 20, 20, 0.15);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  width: 80px;
  height: 60px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-thumb.is-active {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.is-locked {
  overflow: hidden;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav {
    justify-content: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 340px;
  }

  .mock {
    width: 100%;
  }

  .lightbox-body {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    display: none;
  }
}

@media (hover: none) {
  .project-hint {
    opacity: 0.7;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero::after {
    animation: none;
  }

  .orb,
  .ticker-track,
  [data-reveal],
  .project-card,
  .project-card::after,
  .project-media img,
  .project-hint {
    animation: none !important;
    transition: none !important;
  }
}
