:root {
  --background: #05060a;
  --card: #10121a;
  --card-alt: #0b0d13;
  --text: #f4f7fc;
  --muted: #afb7cc;
  --accent: #65ffda;
  --accent-muted: rgba(101, 255, 218, 0.1);
  --border: rgba(255, 255, 255, 0.08);
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
}

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

body {
  margin: 0;
  background: radial-gradient(circle at top, #141a2a, #04050a 45%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

.site-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 3rem) 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 10;
  background: rgba(4, 5, 10, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.5rem 1rem 1.25rem;
}

.viewing-note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(101, 255, 218, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a.active {
  color: var(--text);
}

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

.primary-button,
.secondary-button {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(120deg, #65ffda, #5bc8ff);
  color: #041218;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(101, 255, 218, 0.25);
}

.primary-button:hover {
  filter: brightness(1.05);
}

.secondary-button {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}

.secondary-button:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 2rem;
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--card), var(--card-alt));
}

.hero__intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.hero__portrait {
  margin: 0;
  width: 160px;
  height: 160px;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  align-self: flex-start;
}

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

.hero__content h1 {
  margin-top: 0.5rem;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.4;
}

.hero__summary {
  color: var(--muted);
  max-width: 52ch;
}

.hero__intro-copy a {
  color: #5bc8ff;
  text-decoration: none;
  font-weight: 600;
}

.hero__intro-copy a:hover {
  color: #8fe1ff;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0;
}

.eyebrow.small {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.cta-group {
  margin: 2rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stats {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.stats li {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero__panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel-card {
  border-radius: 22px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.03);
}

.panel-card.focus {
  background: linear-gradient(
    140deg,
    rgba(101, 255, 218, 0.1),
    rgba(5, 6, 10, 0.4)
  );
}

.panel-card.availability {
  border-color: rgba(101, 255, 218, 0.4);
}

.availability-tag {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(101, 255, 218, 0.5);
  color: var(--accent);
  background: var(--accent-muted);
  margin: 0.8rem 0 0.4rem;
}

.panel-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.sneak-peek {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sneak-peek__header h2 {
  margin: 0.25rem 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.peek-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.peek-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.peek-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.32);
}

.peek-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.peek-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.peek-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05060a;
}

.peek-media img,
.peek-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.peek-media.zoom-out img {
  object-fit: contain;
  background: #05060a;
}

.peek-visual {
  border-radius: 18px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
}

.placeholder-1 {
  background-image: linear-gradient(135deg, #0f5b94, #4ac1ff);
}

.placeholder-2 {
  background-image: linear-gradient(135deg, #5925dc, #d74efb);
}

.placeholder-3 {
  background-image: linear-gradient(135deg, #ff9040, #ffd86f);
}

.site-footer {
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.site-footer h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-note {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.contact-card {
  border-radius: 999px;
  border: none;
  padding: 0.5rem 1.4rem;
  text-decoration: none;
  color: #041218;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(120deg, #65ffda, #5bc8ff);
  box-shadow: 0 10px 25px rgba(6, 255, 218, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 0.25rem;
}

.contact-card span {
  white-space: nowrap;
}

.contact-arrow {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(6, 255, 218, 0.4);
}

.nav-cta {
  display: inline-flex;
}

.work-intro {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.work-intro h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.work-section {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.work-section__header h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.case.general {
  grid-template-columns: 1fr;
}

.case__media {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
}

.case__slider {
  position: relative;
  width: 100%;
  height: 520px;
}

.case-slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-slide img {
  width: 100%;
  height: calc(100% - 70px);
  object-fit: contain;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent);
}

.case-slide video {
  width: 100%;
  height: calc(100% - 70px);
  object-fit: cover;
  border: none;
  background: #000;
}

.case-slide video.zoom-video {
  object-fit: contain;
  background: #010208;
}

.split-slide .split-frame {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  height: calc(100% - 70px);
}

.split-slide .split-frame img {
  flex: 1;
  object-fit: cover;
  width: 100%;
  background: #020308;
  border-radius: 12px;
}

.case-slide figcaption {
  margin: 0;
  padding: 0.75rem 1rem;
  background: rgba(4, 5, 10, 0.7);
  font-size: 0.9rem;
  line-height: 1.4;
  min-height: 70px;
  display: flex;
  align-items: center;
}

.case-slide.active {
  position: relative;
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(4, 5, 10, 0.7);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 2;
}

.slider-btn.prev {
  left: 0.75rem;
}

.slider-btn.next {
  right: 0.75rem;
}

.case__details {
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-points {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.5;
}

.case-points li + li {
  margin-top: 0.35rem;
}

.case-points a {
  color: var(--accent);
  text-decoration: none;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

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

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero__intro {
    text-align: center;
    align-items: center;
  }

  .hero__portrait {
    margin: 0 auto;
  }

  .site-header {
    position: static;
  }

  .site-grid {
    padding: 1.5rem;
  }

  .hero,
  .site-footer {
    padding: 1.75rem;
  }

  .peek-card {
    padding: 1.25rem;
  }

  .case {
    grid-template-columns: 1fr;
  }

  .case__slider {
    height: 380px;
  }
}
