:root {
  --bg: #0b0d0f;
  --surface: #111418;
  --surface-2: #171b20;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f5f6;
  --muted: #a3a9b0;
  --accent: #ef3b32;
  --accent-hover: #ff5147;
  --shell: min(1180px, calc(100vw - 48px));
  --header-height: 76px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 8, 10, 0.88), transparent);
  transition: background 200ms ease, border-color 200ms ease;
}

.site-header.is-scrolled,
body.is-detail .site-header {
  border-color: var(--line);
  background: rgba(11, 13, 15, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand b {
  color: var(--accent);
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  position: relative;
  color: #dfe2e5;
  font-size: 14px;
  font-weight: 650;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switcher {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.language-button {
  min-width: 40px;
  padding: 7px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.language-button.is-active {
  color: #fff;
  background: var(--accent);
}

.hero {
  position: relative;
  min-height: max(680px, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #090b0d;
}

.hero-media,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 700ms ease, transform 7s linear;
}

.hero-image.is-visible {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 7, 9, 0.93) 0%, rgba(5, 7, 9, 0.66) 42%, rgba(5, 7, 9, 0.08) 78%),
    linear-gradient(0deg, var(--bg) 0%, transparent 42%),
    linear-gradient(180deg, rgba(5, 7, 9, 0.24), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-block: 160px 90px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: #d8dce0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow > span:first-child {
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-description {
  max-width: 610px;
  min-height: 52px;
  margin: 28px 0 0;
  color: #d0d4d8;
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-hover);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(8, 10, 12, 0.25);
  backdrop-filter: blur(8px);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(8, 10, 12, 0.5);
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.round-button {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 10, 12, 0.28);
  cursor: pointer;
  font-size: 20px;
  transition: border-color 160ms ease, background 160ms ease;
}

.round-button:hover,
.round-button:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
}

.hero-position {
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.hero-position span:first-child {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.hero-position i {
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-progress {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.hero-progress span.is-running {
  animation: progress 7s linear forwards;
}

@keyframes progress {
  to { width: 100%; }
}

.studio-strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.studio-strip-inner {
  min-height: 160px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 80px;
}

.studio-intro {
  max-width: 570px;
  margin: 0;
  color: #c8cdd2;
  font-size: 18px;
}

.studio-stats {
  display: flex;
  gap: 54px;
  margin: 0;
}

.studio-stats div {
  min-width: 90px;
}

.studio-stats dt {
  color: #fff;
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.studio-stats dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding-block: 118px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 46px;
}

.section-kicker {
  color: var(--accent);
  margin-bottom: 12px;
}

.section-heading h2,
.about-copy h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.filter-list {
  display: flex;
  gap: 8px;
}

.filter-button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: var(--accent);
  color: #fff;
}

.filter-button.is-active {
  background: var(--accent);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 22px;
}

.project-card {
  min-width: 0;
}

.project-card[hidden] {
  display: none;
}

.card-link {
  display: block;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 5px;
  background: var(--surface-2);
}

.card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  pointer-events: none;
}

.card-media > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(.2, .75, .25, 1);
}

.card-logo {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 62px;
  height: 62px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.card-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0b0d0f;
  background: #fff;
  opacity: 0;
  transform: translate(-7px, 7px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.card-link:hover .card-media > img:first-child,
.card-link:focus-visible .card-media > img:first-child {
  transform: scale(1.045);
}

.card-link:hover .card-arrow,
.card-link:focus-visible .card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.card-body {
  padding: 18px 2px 0;
}

.card-meta {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.card-description {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.about-section {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(400px, 1.2fr);
  align-items: center;
  gap: 9vw;
}

.about-mark {
  position: relative;
}

.about-mark::before {
  position: absolute;
  inset: -10%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 59, 50, 0.2), transparent 66%);
  filter: blur(15px);
}

.about-mark img {
  position: relative;
  width: min(100%, 390px);
  margin-inline: auto;
  border-radius: 50%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.about-copy h2 {
  max-width: 720px;
}

.about-copy > p:not(.section-kicker) {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #080a0c;
}

.footer-inner {
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.back-to-top {
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
}

.detail-view {
  min-height: 100vh;
  padding-top: var(--header-height);
  background: var(--bg);
}

.detail-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.detail-hero-bg,
.detail-hero-overlay {
  position: absolute;
  inset: 0;
}

.detail-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 9, 11, 0.92), rgba(7, 9, 11, 0.42) 60%, rgba(7, 9, 11, 0.18)),
    linear-gradient(0deg, var(--bg), transparent 60%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding-block: 100px 70px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 72px;
  color: #d0d4d8;
  font-size: 13px;
  font-weight: 700;
}

.detail-title-row {
  display: flex;
  align-items: flex-end;
  gap: 28px;
}

.detail-logo {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.detail-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 100px;
  padding-block: 95px 120px;
}

.detail-description h2,
.gallery-heading h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.035em;
}

.detail-description p {
  margin: 0;
  color: #b8bec5;
  font-size: 17px;
}

.detail-description p + p {
  margin-top: 18px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 14px 0 14px 22px;
  border-bottom: 1px solid var(--line);
  color: #e0e3e6;
  font-size: 14px;
}

.feature-list li::before {
  position: absolute;
  top: 23px;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--accent);
}

.detail-side {
  padding-top: 12px;
}

.detail-facts {
  margin: 0 0 28px;
}

.detail-facts div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.detail-facts dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.detail-side .button {
  width: 100%;
}

.gallery-section {
  padding-bottom: 120px;
}

.gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.gallery-heading h2 {
  margin-bottom: 0;
}

.gallery-controls {
  display: flex;
  gap: 10px;
}

.gallery-stage {
  position: relative;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
  cursor: zoom-in;
}

.gallery-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 260ms ease;
}

.gallery-slide.is-changing {
  opacity: 0.25;
}

.gallery-caption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 9, 11, 0.68);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb {
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: var(--surface-2);
  cursor: pointer;
  opacity: 0.56;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.more-projects {
  padding-block: 90px 110px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.more-projects .section-heading {
  margin-bottom: 34px;
}

.lightbox {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 70px 24px 28px;
  background: rgba(4, 5, 6, 0.96);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  justify-self: center;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.lightbox-nav {
  width: 56px;
  height: 56px;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.lightbox p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 960px) {
  :root {
    --shell: min(100% - 36px, 760px);
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-controls {
    align-self: flex-end;
  }

  .studio-strip-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 45px;
  }

  .studio-stats {
    justify-content: space-between;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    gap: 50px;
  }

  .detail-body {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .detail-side {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 28px);
    --header-height: 68px;
  }

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

  .brand img {
    width: 38px;
    height: 38px;
  }

  .language-button {
    min-width: 35px;
    padding-inline: 7px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 7, 9, 0.68), rgba(5, 7, 9, 0.08)),
      linear-gradient(0deg, var(--bg) 4%, rgba(5, 7, 9, 0.82) 42%, transparent 85%);
  }

  .hero-content {
    padding-block: 140px 54px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 66px);
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-controls {
    align-self: stretch;
    justify-content: space-between;
    margin-top: 20px;
  }

  .studio-stats {
    gap: 16px;
  }

  .studio-stats div {
    min-width: 0;
  }

  .studio-stats dt {
    font-size: 25px;
  }

  .section {
    padding-block: 82px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-list {
    width: 100%;
  }

  .filter-button {
    flex: 1;
    padding-inline: 10px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .card-arrow {
    opacity: 1;
    transform: none;
  }

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

  .about-mark img {
    width: 220px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    padding-block: 34px;
  }

  .back-to-top {
    justify-self: center;
  }

  .detail-hero {
    min-height: 620px;
  }

  .detail-back {
    margin-bottom: 52px;
  }

  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .detail-logo {
    width: 86px;
    height: 86px;
    border-radius: 19px;
  }

  .detail-hero h1 {
    font-size: clamp(44px, 14vw, 68px);
  }

  .detail-body {
    padding-block: 70px 90px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .gallery-section {
    padding-bottom: 90px;
  }

  .gallery-stage {
    aspect-ratio: 4 / 3;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 4px;
    padding-inline: 8px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
