@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000000;
  color: #f8fbff;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input {
  font: inherit;
}

.tr-site {
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(180deg, #000000 0%, #02070c 42%, #000000 100%);
  color: #f8fbff;
}

.tr-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(80% 60% at 50% 60%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 70%, rgba(0, 0, 0, 0.9) 100%);
}

.tr-grid-bg,
.tr-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.tr-grid-bg {
  z-index: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.tr-grain {
  z-index: 1;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.15'/></svg>");
  background-size: 160px 160px;
}

.tr-site main,
.tr-site footer {
  position: relative;
  z-index: 2;
}

.tr-container {
  width: min(100% - 3rem, 1120px);
  margin: 0 auto;
}

.tr-container--wide {
  width: min(100% - 3rem, 1320px);
}

.tr-kicker {
  margin-bottom: 1rem;
  color: #22d3ee;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.tr-kicker__cursor {
  display: inline-block;
  width: 0.52em;
  height: 0.78em;
  background: currentColor;
  margin-left: 0.18em;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tr-kicker.is-typing .tr-kicker__cursor {
  opacity: 1;
  animation: tr-kicker-blink 1.1s ease-in-out infinite;
}

@keyframes tr-kicker-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-kicker__cursor {
    display: none;
  }
}

.tr-heading-xl,
.tr-heading-lg {
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.tr-heading-xl {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  font-weight: 800;
}

.tr-heading-lg {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}

.tr-heading-xl--gradient {
  background: linear-gradient(90deg, #ffffff 0%, #b8e9ff 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.tr-section {
  padding: 6.5rem 0;
}

.tr-section--compact {
  padding-top: 4rem;
}

.tr-section--bordered {
  border-top: 1px solid rgba(8, 145, 178, 0.22);
}

.tr-section-heading {
  margin-bottom: 5rem;
  text-align: center;
}

.tr-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 5rem 1.5rem;
}

.tr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 28% 72%, rgba(56, 189, 248, 0.07), transparent 70%),
    radial-gradient(ellipse 55% 45% at 78% 28%, rgba(99, 102, 241, 0.05), transparent 65%);
}

.tr-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 70vw;
  height: 12rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(60% 100% at 50% 0%, rgba(34, 211, 238, 0.18), rgba(34, 211, 238, 0));
  opacity: 0.6;
}

.tr-hero-glow::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: radial-gradient(circle at 50% 60%, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0) 60%);
  opacity: 0.6;
}

.tr-hero-glow::after {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -2;
  background: radial-gradient(ellipse at center, rgba(14, 116, 144, 0.12), transparent 70%);
  opacity: 0.6;
}

.tr-hero__cta {
  margin-top: 3.5rem;
  text-align: center;
}

.tr-hero .tr-kicker {
  text-align: center;
}

.tr-hero__content {
  max-width: 64rem;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.4s ease;
  will-change: transform, opacity;
}

.tr-site.is-ready .tr-hero__content {
  opacity: 1;
  transform: translateY(0);
}

.tr-hero__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.7rem, 4.9vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.tr-hero__line {
  display: block;
  padding-inline: 0.08em;
  text-shadow:
    0 0 20px rgba(186, 230, 253, 0.3),
    0 16px 36px rgba(2, 6, 23, 0.85);
}

.tr-hero__line + .tr-hero__line {
  margin-top: 0.75rem;
  font-size: 0.8em;
}

.tr-hero__line--primary {
  color: #f8fbff;
}

.tr-hero__line--secondary {
  color: rgba(208, 242, 255, 0.9);
}

.tr-services-diamond {
  position: relative;
  display: grid;
  gap: 2rem;
}

.tr-services-diamond::before {
  content: "";
  position: absolute;
  inset: 22% 22%;
  border: 1px solid rgba(34, 211, 238, 0.16);
  transform: rotate(45deg);
  pointer-events: none;
  opacity: 0;
}

.tr-services-diamond::after {
  content: "";
  position: absolute;
  inset: 33%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  opacity: 0;
}

.tr-service-card {
  position: relative;
  border: 1px solid rgba(8, 145, 178, 0.25);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(3, 7, 18, 0.95) 55%, rgba(8, 47, 73, 0.2) 100%);
  box-shadow: 0 22px 55px rgba(3, 7, 18, 0.42);
  opacity: 0;
  transform: translateY(2rem);
  transition: transform 0.8s ease, opacity 0.8s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.tr-site.is-ready .tr-service-card {
  opacity: 1;
  transform: translateY(0);
}

.tr-service-card:hover {
  border-color: rgba(103, 232, 249, 0.5);
  box-shadow: 0 26px 70px rgba(8, 47, 73, 0.42);
}

.tr-service-card::before,
.tr-service-card::after {
  content: "";
  position: absolute;
  width: 3rem;
  height: 3rem;
  transition: border-color 0.35s ease;
}

.tr-service-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid rgba(34, 211, 238, 0.3);
  border-left: 2px solid rgba(34, 211, 238, 0.3);
}

.tr-service-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid rgba(34, 211, 238, 0.3);
  border-bottom: 2px solid rgba(34, 211, 238, 0.3);
}

.tr-service-card:hover::before,
.tr-service-card:hover::after {
  border-color: rgba(103, 232, 249, 0.6);
}

.tr-service-card__inner {
  position: relative;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

.tr-service-card h3 {
  margin: 0 0 0.9rem;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
}

.tr-service-card p {
  margin: 0;
  color: #98a7b8;
  font-size: 0.95rem;
  line-height: 1.75;
}

.tr-projects-shell {
  width: 100%;
}

.tr-projects-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0 1.5rem 1.5rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
}

.tr-projects-track::-webkit-scrollbar {
  display: none;
}

.tr-projects-track.is-dragging {
  cursor: grabbing;
}

.tr-project-card {
  flex: 0 0 80vw;
  width: 80vw;
  max-width: 380px;
  aspect-ratio: 9 / 16;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.tr-site.is-ready .tr-project-card {
  opacity: 1;
  transform: translateY(0);
}

.tr-project-card:nth-child(2) {
  transition-delay: 0.04s;
}

.tr-project-card:nth-child(3) {
  transition-delay: 0.08s;
}

.tr-project-card:nth-child(4) {
  transition-delay: 0.12s;
}

.tr-project-card:nth-child(5) {
  transition-delay: 0.16s;
}

.tr-project-card:nth-child(6) {
  transition-delay: 0.2s;
}

.tr-preview {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 2px solid rgba(8, 145, 178, 0.25);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.88) 0%, rgba(34, 211, 238, 0.05) 100%);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.tr-preview:hover,
.tr-preview.is-playing {
  border-color: rgba(103, 232, 249, 0.75);
  box-shadow: 0 22px 50px rgba(6, 182, 212, 0.22);
}

.tr-preview__image,
.tr-preview__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tr-preview__image {
  transition: opacity 1.5s ease;
}

.tr-preview__video {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.tr-preview.is-playing .tr-preview__image {
  opacity: 0;
}

.tr-preview.is-playing .tr-preview__video {
  opacity: 1;
}

.tr-preview__unmute {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  transition: opacity 0.25s ease;
}

.tr-preview__unmute-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tr-preview.is-hoverable.is-playing.is-muted .tr-preview__unmute {
  opacity: 1;
  pointer-events: auto;
}

.tr-preview__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  opacity: 0;
}

.tr-preview:not(.is-hoverable):not(.is-video-disabled):not(.is-playing) .tr-preview__play {
  opacity: 1;
}

.tr-preview__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
}

.tr-preview__play::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: calc(50% + 0.1em);
  transform: translate(-50%, -50%);
  z-index: 1;
  font-size: 1.5rem;
  line-height: 1;
}

.tr-preview.is-video-disabled .tr-preview__video,
.tr-preview.is-video-disabled .tr-preview__unmute,
.tr-preview.is-video-disabled .tr-preview__play {
  display: none;
}

.tr-showreel-ctrl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

.tr-showreel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: none;
  background: none;
  color: rgba(34, 211, 238, 0.8);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tr-showreel-btn:hover {
  color: #22d3ee;
}

.tr-showreel-btn.is-active {
  color: rgba(255, 255, 255, 0.5);
}

.tr-showreel-btn__icon {
  font-size: 0.55rem;
}

.tr-showreel-dots {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 10px;
}

.tr-showreel-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.18);
  transition: background 0.35s ease, transform 0.35s ease;
}

.tr-showreel-dot.is-active {
  background: #22d3ee;
  transform: scale(1.5);
}

.tr-showreel-dot.is-done {
  background: rgba(34, 211, 238, 0.4);
}

.is-showreel .tr-projects-track {
  cursor: default;
}

.is-showreel .tr-preview:hover {
  border-color: rgba(8, 145, 178, 0.25);
  box-shadow: none;
}

.is-showreel .tr-preview:hover .tr-project-card__shade {
  opacity: 0.65;
}

.is-showreel .tr-preview:hover .tr-project-card__rim {
  border-color: rgba(6, 182, 212, 0);
}

.is-showreel .tr-preview:hover .tr-project-card__meta {
  transform: translateY(0);
}

.is-showreel .tr-preview:hover .tr-project-card__meta p {
  opacity: 1;
}

.is-showreel .tr-preview:hover .tr-project-card__meta h3 {
  opacity: 1;
}

.is-showreel .tr-preview:hover:not(.is-playing) .tr-preview__play {
  opacity: 1;
  cursor: pointer;
}

.is-showreel .tr-preview:hover:not(.is-playing) .tr-preview__play::before {
  width: 5rem;
  height: 5rem;
}

.is-showreel .tr-preview:hover:not(.is-playing) .tr-preview__play::after {
  font-size: 2rem;
}

.tr-mini-preview {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 110px;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(14px) scale(0.93);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  cursor: pointer;
}

.tr-mini-preview.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tr-mini-preview__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tr-mini-preview__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.55rem 0.5rem 0.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-project-card__shade,
.tr-project-card__rim,
.tr-project-card__meta {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tr-project-card__shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.84));
  opacity: 0.65;
  transition: opacity 0.5s ease;
}

.tr-preview:hover .tr-project-card__shade,
.tr-preview.is-playing .tr-project-card__shade {
  opacity: 0.92;
}

.tr-project-card__rim {
  border: 2px solid rgba(6, 182, 212, 0);
  transition: border-color 0.5s ease;
}

.tr-preview:hover .tr-project-card__rim,
.tr-preview.is-playing .tr-project-card__rim {
  border-color: rgba(103, 232, 249, 0.28);
}

.tr-project-card__meta {
  top: auto;
  z-index: 2;
  padding: 1.5rem;
  transform: translateY(0.5rem);
  transition: transform 0.5s ease;
}

.tr-preview:hover .tr-project-card__meta,
.tr-preview.is-playing .tr-project-card__meta {
  transform: translateY(0);
}

.tr-project-card__meta p {
  margin: 0 0 0.45rem;
  color: #22d3ee;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tr-preview:hover .tr-project-card__meta p,
.tr-preview.is-playing .tr-project-card__meta p {
  opacity: 1;
}

.tr-project-card__meta h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0.82;
  transition: opacity 0.5s ease;
}

.tr-preview:hover .tr-project-card__meta h3,
.tr-preview.is-playing .tr-project-card__meta h3 {
  opacity: 1;
}

.tr-booking {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.tr-booking__copy {
  max-width: 45rem;
  margin: 1rem auto 0;
  color: rgba(209, 250, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.8;
}

.tr-booking__note {
  margin: 2rem 0 0;
  color: rgba(8, 145, 178, 0.75);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tr-booking__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.tr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

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

.tr-button--primary {
  border: 1px solid rgba(103, 232, 249, 0.52);
  background: rgba(6, 182, 212, 0.12);
  color: #d9f8ff;
}

.tr-button--primary:hover {
  border-color: rgba(186, 230, 253, 0.88);
  background: rgba(34, 211, 238, 0.18);
}

.tr-button--ghost {
  background: rgba(34, 211, 238, 0.08);
  color: #bae6fd;
}

.tr-button--ghost:hover {
  background: rgba(34, 211, 238, 0.16);
  color: #e0f2fe;
}

.tr-footer {
  border-top: 1px solid rgba(8, 145, 178, 0.22);
  padding: 5rem 0;
  text-align: center;
}

.tr-footer__label {
  margin-bottom: 1.5rem;
  color: rgba(107, 114, 128, 0.9);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.tr-footer__body {
  display: grid;
  gap: 0.5rem;
  color: rgba(107, 114, 128, 0.92);
  font-size: 0.95rem;
}

.tr-footer__body p {
  margin: 0;
}

.tr-footer__body p:first-child {
  color: rgba(156, 163, 175, 0.9);
  font-weight: 600;
}

@media (min-width: 768px) {
  .tr-projects-track {
    padding-inline: 3rem;
  }

  .tr-booking__actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .tr-services-diamond {
    height: 48rem;
    max-width: 78rem;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }

  .tr-services-diamond::before,
  .tr-services-diamond::after {
    opacity: 1;
  }

  .tr-service-card {
    width: 18rem;
    height: 18rem;
    justify-self: center;
    transform: rotate(45deg) translateY(2rem);
  }

  .tr-site.is-ready .tr-service-card {
    transform: rotate(45deg) translateY(0);
  }

  .tr-service-card__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    transform: rotate(-45deg);
  }

  .tr-service-card--top {
    align-self: end;
  }

  .tr-service-card--right {
    justify-self: start;
    align-self: center;
  }

  .tr-service-card--left {
    justify-self: end;
    align-self: center;
  }

  .tr-service-card--bottom {
    align-self: start;
  }

  .tr-project-card {
    flex-basis: 380px;
    width: 380px;
  }
}

@media (max-width: 767px) {
  .tr-container,
  .tr-container--wide {
    width: min(100% - 2rem, 1120px);
  }

  .tr-heading-xl {
    font-size: clamp(2.4rem, 9vw, 3.6rem);
  }

  .tr-section {
    padding: 5rem 0;
  }

  .tr-section-heading {
    margin-bottom: 3rem;
  }

  .tr-project-card__meta p {
    opacity: 1;
  }
}
