/* ============================================
   MATIHUB - Global Styles
   Dark premium creative agency theme
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #04040a;
  --text: #f6f6f6;
  --text-dim: rgba(246, 246, 246, 0.5);
  --text-dimmer: rgba(246, 246, 246, 0.25);
  --accent: #f6f6f6;
  --stripe-bg: #04040a;
  --font-main: 'Inter', Arial, sans-serif;
  --nav-height: 148px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

body.loaded {
  opacity: 1;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

::selection {
  background: rgba(246, 246, 246, 0.2);
  color: var(--text);
}

/* --- Page Loader --- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-text {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 990;
  padding: 0;
  height: var(--nav-height);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav__inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.nav__logo {
  z-index: 1001;
  position: relative;
  display: block;
  width: 198px;
  height: 198px;
  background: transparent;
  overflow: visible;
  flex: 0 0 auto;
  margin: 16px 0 0 12px;
}

.logo-mark {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s var(--ease);
}

.logo-mark:hover {
  opacity: 0.7;
}

.logo-mark__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.nav__menu {
  display: flex;
  gap: 40px;
  padding-top: 20px;
  margin-right: 28px;
}

.nav__link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.2px;
  position: relative;
  padding: 4px 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.3s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.4s var(--ease-out);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link:hover {
  opacity: 0.7;
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 30px;
  z-index: 1001;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.nav__burger.active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav__burger.active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu__link {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -1.5px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.mobile-menu.active .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 550px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s var(--ease);
}

.hero__video.loaded {
  opacity: 1;
}

/* Vertical stripe bars - zebra/grid effect */
.hero__stripes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  background: var(--stripe-bg);
  transform: scaleY(1);
  transition: transform 1.2s var(--ease-out);
}

/* Position stripes across the viewport at intervals */
.stripe--1  { left: calc(50% - 600px); }
.stripe--2  { left: calc(50% - 540px + 15px); }
.stripe--3  { left: calc(50% - 470px); }
.stripe--4  { left: calc(50% - 400px + 10px); }
.stripe--5  { left: calc(50% - 330px); }
.stripe--6  { left: calc(50% - 260px + 5px); }
.stripe--7  { left: calc(50% - 190px); }
.stripe--8  { left: calc(50% - 120px + 10px); }
.stripe--9  { left: calc(50% - 55px); }
.stripe--10 { left: calc(50% + 10px); }
.stripe--11 { left: calc(50% + 75px); }
.stripe--12 { left: calc(50% + 140px + 5px); }
.stripe--13 { left: calc(50% + 210px); }
.stripe--14 { left: calc(50% + 275px + 10px); }
.stripe--15 { left: calc(50% + 345px); }
.stripe--16 { left: calc(50% + 415px + 5px); }
.stripe--17 { left: calc(50% + 480px); }
.stripe--18 { left: calc(50% + 545px + 10px); }
.stripe--19 { left: calc(50% - 665px); }
.stripe--20 { left: calc(50% + 615px); }

/* Staggered stripe animation on load */
.hero.animate-stripes .stripe {
  animation: stripeReveal 1.8s var(--ease-out) forwards;
}

.stripe--1  { animation-delay: 0.05s; }
.stripe--2  { animation-delay: 0.1s; }
.stripe--3  { animation-delay: 0.15s; }
.stripe--4  { animation-delay: 0.2s; }
.stripe--5  { animation-delay: 0.25s; }
.stripe--6  { animation-delay: 0.3s; }
.stripe--7  { animation-delay: 0.35s; }
.stripe--8  { animation-delay: 0.4s; }
.stripe--9  { animation-delay: 0.45s; }
.stripe--10 { animation-delay: 0.5s; }
.stripe--11 { animation-delay: 0.55s; }
.stripe--12 { animation-delay: 0.6s; }
.stripe--13 { animation-delay: 0.65s; }
.stripe--14 { animation-delay: 0.7s; }
.stripe--15 { animation-delay: 0.75s; }
.stripe--16 { animation-delay: 0.8s; }
.stripe--17 { animation-delay: 0.85s; }
.stripe--18 { animation-delay: 0.9s; }
.stripe--19 { animation-delay: 0s; }
.stripe--20 { animation-delay: 0.95s; }

@keyframes stripeReveal {
  0% {
    transform: scaleY(1);
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: scaleY(0);
    opacity: 0;
  }
}

/* After stripes open we add a subtle parallax stripe overlay */
.hero__stripes.revealed .stripe {
  transform: scaleY(0);
  opacity: 0;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
}

.hero__title {
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 700;
  letter-spacing: clamp(4px, 1.5vw, 16px);
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out) 1.2s, transform 1s var(--ease-out) 1.2s;
}

.hero.visible .hero__title {
  opacity: 1;
  transform: translateY(0);
}

.hero__subtitle {
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 300;
  letter-spacing: 3px;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out) 1.6s, transform 0.8s var(--ease-out) 1.6s;
}

.hero.visible .hero__subtitle {
  opacity: 0.7;
  transform: translateY(0);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  transition: opacity 1s var(--ease) 2.2s;
}

.hero.visible .hero__scroll-indicator {
  opacity: 0.5;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    transform: scaleY(1);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(0.5);
    opacity: 1;
  }
}

/* ============================================
   About Section
   ============================================ */
.about {
  position: relative;
  padding: 160px 40px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about__container {
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100vh - 320px);
}

.about__badge {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(246, 246, 246, 0.15);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 60px;
}

.about__headline {
  font-size: clamp(48px, 8vw, 128px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  max-width: 100%;
  margin-bottom: 36px;
}

.about__headline-ai {
  color: rgba(255, 255, 255, 0.3);
}

.about__corner {
  position: absolute;
  bottom: 60px;
  right: 40px;
  text-align: right;
  max-width: 440px;
}

.about__corner-title {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--text);
}

.about__corner-sub {
  display: block;
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about__tagline {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--text-dim);
  max-width: 700px;
  margin-bottom: 60px;
}

.about__cta {
  margin-bottom: 80px;
}

.about__worldwide {
  font-size: 14px;
  letter-spacing: -0.2px;
  color: var(--text-dim);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}

.btn--primary {
  padding: 14px 40px;
  background: var(--text);
  color: var(--bg);
  border-radius: 100px;
}

.btn--primary:hover {
  background: rgba(246, 246, 246, 0.85);
  transform: translateY(-2px);
}

.btn--outline {
  padding: 14px 40px;
  border: 1px solid rgba(246, 246, 246, 0.3);
  border-radius: 100px;
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--text);
  background: rgba(246, 246, 246, 0.05);
}

/* ============================================
   Works Section
   ============================================ */
.works {
  padding: 120px 40px;
}

.works__container {
  max-width: 1200px;
  margin: 0 auto;
}

.works__title {
  font-size: clamp(14px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: clamp(1.5px, 0.25vw, 3px);
  text-transform: uppercase;
  margin-bottom: 60px;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  background: rgba(246, 246, 246, 0.03);
  border: 1px solid rgba(246, 246, 246, 0.08);
}

.work-card__media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), opacity 0.5s var(--ease);
}

.work-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.work-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 246, 246, 0.05), transparent 60%),
    linear-gradient(180deg, rgba(4, 4, 10, 0.06) 0%, rgba(4, 4, 10, 0.18) 100%);
  pointer-events: none;
}

.work-card__placeholder span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(246, 246, 246, 0.14);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 246, 246, 0.72);
  background: rgba(4, 4, 10, 0.4);
}

.work-card__info {
  display: none;
}

.work-card:hover .work-card__img {
  transform: scale(1.05);
  opacity: 0;
}

.work-card:hover .work-card__video {
  opacity: 1;
}

.work-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease);
}

.work-card:hover .work-card__info {
  transform: translateY(0);
  opacity: 1;
}

.work-card__name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.work-card__type {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.works__all {
  text-align: center;
  margin-top: 60px;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
  padding: 56px 32px 72px;
}

.about-section__container {
  max-width: 1220px;
  margin: 0 auto;
}

.about-section__frame {
  width: calc(100vw - 64px);
  margin-left: calc(50% - 50vw + 32px);
  min-height: min(78vh, 860px);
  overflow: hidden;
  background: #04040a;
}

.about-section__iframe {
  display: block;
  width: 100%;
  height: min(78vh, 860px);
  border: 0;
  background: #04040a;
}

/* ============================================
   Philosophy Section
   ============================================ */
.philosophy {
  padding: 140px 40px;
}

.philosophy__container {
  max-width: 1220px;
  margin: 0 auto;
}

.philosophy__intro {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.philosophy__eyebrow {
  display: inline-block;
  margin-bottom: 26px;
  font-size: clamp(14px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: clamp(1.5px, 0.25vw, 3px);
  text-transform: uppercase;
  color: var(--text);
  align-self: flex-start;
}

.philosophy__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -3px;
  max-width: none;
  white-space: normal;
  color: var(--text);
}

.discipline-system {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: minmax(280px, 420px) minmax(320px, 520px);
  gap: 64px;
  align-items: stretch;
  justify-content: center;
}

.discipline-system__nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(246, 246, 246, 0.09);
}

.discipline-system__nav:hover .discipline-trigger {
  opacity: 0.5;
}

.discipline-trigger {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  padding: 24px 0 24px 20px;
  border: 0;
  border-bottom: 1px solid rgba(246, 246, 246, 0.09);
  background: transparent;
  color: rgba(246, 246, 246, 0.48);
  text-align: left;
  transition:
    color 0.28s var(--ease),
    opacity 0.28s var(--ease),
    background-color 0.28s var(--ease);
}

.discipline-trigger::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: rgba(246, 246, 246, 0.2);
  opacity: 0.32;
  transform: scaleY(0.28);
  transform-origin: center;
  transition:
    transform 0.28s var(--ease-out),
    opacity 0.28s var(--ease),
    background-color 0.28s var(--ease);
}

.discipline-trigger::after {
  content: "";
  position: absolute;
  inset: 8px 0;
  background: linear-gradient(90deg, rgba(246, 246, 246, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  pointer-events: none;
}

.discipline-trigger:hover,
.discipline-trigger:focus-visible,
.discipline-trigger.is-active {
  opacity: 1 !important;
  color: var(--text);
}

.discipline-trigger:hover::before,
.discipline-trigger:focus-visible::before,
.discipline-trigger.is-active::before {
  opacity: 1;
  transform: scaleY(1);
  background: rgba(246, 246, 246, 0.9);
}

.discipline-trigger:hover::after,
.discipline-trigger:focus-visible::after,
.discipline-trigger.is-active::after {
  opacity: 1;
}

.discipline-trigger:focus-visible {
  outline: 1px solid rgba(246, 246, 246, 0.55);
  outline-offset: 6px;
}

.discipline-trigger__number {
  flex: 0 0 auto;
  min-width: 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 246, 246, 0.34);
  transition: color 0.28s var(--ease);
}

.discipline-trigger__title {
  font-size: clamp(23px, 2vw, 31px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.discipline-trigger.is-active .discipline-trigger__number,
.discipline-trigger:hover .discipline-trigger__number,
.discipline-trigger:focus-visible .discipline-trigger__number {
  color: rgba(246, 246, 246, 0.62);
}

.discipline-system__panel-wrap {
  position: relative;
  min-height: 100%;
  padding-top: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.discipline-panels-track {
  position: relative;
}

.discipline-system__kicker {
  position: absolute;
  inset: 0;
  z-index: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -3px;
  color: var(--text);
  transition:
    filter 0.3s var(--ease),
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.discipline-system__panel-wrap.has-active-panel .discipline-system__kicker {
  opacity: 0.28;
  filter: blur(7px);
  transform: translateY(6px);
}

.discipline-system__kicker-word {
  position: absolute;
  display: block;
  white-space: nowrap;
}

.discipline-system__kicker-word--results {
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.discipline-system__kicker-word--that {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.discipline-system__kicker-word--last {
  left: 50%;
  top: 82%;
  transform: translate(-50%, -100%);
  text-align: center;
}

.discipline-panel {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-top: 28px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.discipline-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.discipline-carousel-dots {
  display: none;
}

.discipline-panel__number {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 246, 246, 0.34);
}

.discipline-panel__title {
  max-width: 12ch;
  font-size: clamp(34px, 4vw, 66px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  color: var(--text);
}

.discipline-panel__description {
  max-width: 62ch;
  margin-top: 28px;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.62;
  letter-spacing: -0.015em;
  color: rgba(246, 246, 246, 0.62);
}

/* ============================================
   Contacts Section
   ============================================ */
.contacts {
  padding: 160px 40px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.contacts__container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contacts__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -3px;
  line-height: 1.05;
  margin-bottom: 24px;
}

.contacts__eyebrow {
  display: inline-block;
  margin-bottom: 30px;
  font-size: clamp(14px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: clamp(1.5px, 0.25vw, 3px);
  text-transform: uppercase;
  color: var(--text);
}

.contacts__location {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: -0.2px;
}

.contacts__cta {
  margin-top: 28px;
}

.contacts__right {
  padding-top: 72px;
}

.contacts__item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(246, 246, 246, 0.08);
}

.contacts__item:first-child {
  border-top: 1px solid rgba(246, 246, 246, 0.08);
}

.contacts__label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 8px;
}

.contacts__value {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.contacts__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
}

.contacts__value--link {
  position: relative;
  transition: opacity 0.3s var(--ease);
}

.contacts__value--link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.4s var(--ease-out);
}

.contacts__value--link:hover::after {
  width: 100%;
}

.contacts__value--link:hover {
  opacity: 0.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 40px;
  border-top: 1px solid rgba(246, 246, 246, 0.06);
}

.footer__container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__location {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
}

.footer__nav {
  display: flex;
}

.footer__nav-links {
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

.footer__nav-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer__nav-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}

.footer__link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}

.footer__link:hover {
  color: var(--text);
}

.footer__credit {
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.1px;
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-page {
  min-height: 100vh;
  padding: 32px;
}

.legal-shell {
  max-width: 980px;
  margin: 0 auto;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
}

.legal-back {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.legal-back:hover {
  color: var(--text);
}

.legal-mark {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

.legal-main {
  border-top: 1px solid rgba(246, 246, 246, 0.08);
  padding-top: 44px;
}

.legal-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.legal-title {
  max-width: 12ch;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.legal-updated {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-dim);
}

.legal-content {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}

.legal-section {
  padding-top: 26px;
  border-top: 1px solid rgba(246, 246, 246, 0.08);
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.legal-section p,
.legal-section li {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.72;
  color: rgba(246, 246, 246, 0.7);
}

.legal-section ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

/* ============================================
   Scroll Animations
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

[data-animate][data-delay="200"] { transition-delay: 0.2s; }
[data-animate][data-delay="400"] { transition-delay: 0.4s; }
[data-animate][data-delay="600"] { transition-delay: 0.6s; }
[data-animate][data-delay="800"] { transition-delay: 0.8s; }
[data-animate][data-delay="1000"] { transition-delay: 1s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
  .works__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  :root {
    --nav-height: 128px;
  }

  .nav { padding: 0 24px; }

  .nav__menu {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .about {
    min-height: 100svh;
    padding: 148px 24px 40px;
    align-items: flex-end;
  }
  .about-section { padding: 48px 24px 64px; }
  .works { padding: 80px 24px; }
  .philosophy { padding: 96px 24px; }
  .contacts { padding: 120px 24px; }

  .about__container {
    min-height: calc(100svh - 220px);
  }

  .about__corner {
    position: static;
    margin-top: 36px;
    max-width: 420px;
    text-align: left;
  }

  .about-section__frame {
    width: calc(100vw - 48px);
    margin-left: calc(50% - 50vw + 24px);
    min-height: min(74vh, 740px);
  }

  .about-section__iframe {
    height: min(74vh, 740px);
  }

  .contacts__container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contacts__right {
    padding-top: 0;
  }

  .discipline-system {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: none;
  }

  .discipline-system__panel-wrap {
    min-height: 320px;
    padding-top: 0;
  }

  .discipline-panels-track {
    position: relative;
  }

  .discipline-panel__title {
    max-width: 14ch;
    font-size: clamp(30px, 5vw, 48px);
  }

  .discipline-panel__description {
    max-width: 56ch;
  }

  .discipline-trigger {
    padding: 20px 0 20px 18px;
  }

  .discipline-trigger__title {
    font-size: clamp(21px, 3.2vw, 28px);
  }

  .discipline-system__kicker {
    font-size: clamp(34px, 7vw, 56px);
  }

  .footer__nav {
    display: none;
  }

  .footer__container {
    flex-wrap: wrap;
    gap: 24px 32px;
    align-items: flex-start;
  }

  .footer__right {
    width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 112px;
  }

  .works__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-section__frame {
    width: calc(100vw - 32px);
    margin-left: calc(50% - 50vw + 16px);
    min-height: min(74vh, 720px);
  }

  .about-section__iframe {
    height: min(74vh, 720px);
  }

  .hero__title {
    letter-spacing: 2px;
  }

  .about__headline {
    max-width: 9ch;
    font-size: clamp(34px, 10vw, 58px);
    line-height: 0.96;
    letter-spacing: -0.03em;
  }

  .about__corner-title {
    font-size: clamp(20px, 6vw, 28px);
  }

  .about__corner-sub {
    font-size: 12px;
    letter-spacing: 0.2em;
  }

  .contacts__title {
    letter-spacing: -1.5px;
  }

  .philosophy__intro {
    align-items: flex-start;
    margin-bottom: 34px;
  }

  .philosophy__eyebrow,
  .philosophy__title {
    align-self: flex-start;
    text-align: left;
  }

  .contacts__socials {
    gap: 8px 14px;
  }

  .mobile-menu__link {
    font-size: 36px;
  }

  .stripe {
    width: 30px;
  }

  #wrap {
    cursor: default !important;
  }

  #cur {
    display: none !important;
  }

  .discipline-system {
    gap: 22px;
  }

  .discipline-system__nav {
    border-top-color: rgba(246, 246, 246, 0.07);
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .discipline-system__nav::-webkit-scrollbar {
    display: none;
  }

  .discipline-trigger {
    flex: 0 0 auto;
    gap: 12px;
    padding: 16px 0 16px 14px;
    min-width: min(78vw, 280px);
  }

  .discipline-trigger::before {
    top: 14px;
    bottom: 14px;
  }

  .discipline-trigger__number {
    min-width: 22px;
    font-size: 10px;
  }

  .discipline-trigger__title {
    font-size: 18px;
    line-height: 1.05;
  }

  .discipline-system__panel-wrap {
    min-height: 300px;
    overflow: hidden;
  }

  .discipline-system__kicker {
    font-size: 28px;
    letter-spacing: -1.5px;
  }

  .discipline-panels-track {
    display: flex;
    transition: transform 0.32s var(--ease-out);
    will-change: transform;
  }

  .discipline-panel {
    flex: 0 0 100%;
    max-width: none;
    margin-top: 12px;
    padding-right: 8px;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .discipline-panel.is-active {
    opacity: 1;
    transform: none;
  }

  .discipline-system__kicker-word--results {
    top: 18%;
  }

  .discipline-system__kicker-word--that {
    top: 50%;
  }

  .discipline-system__kicker-word--last {
    top: 82%;
  }

  .discipline-panel {
    margin-top: 12px;
  }

  .discipline-panel__title {
    font-size: 24px;
    max-width: 12ch;
  }

  .discipline-panel__description {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.55;
  }

  .discipline-carousel-dots {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
  }

  .discipline-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(246, 246, 246, 0.24);
    transition: background-color 0.28s var(--ease), transform 0.28s var(--ease);
  }

  .discipline-carousel-dot.is-active {
    background: rgba(246, 246, 246, 0.88);
    transform: scale(1.15);
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 16px 16px 0;
    height: 108px;
  }
  .about { padding: 100px 16px; }
  .about-section { padding: 40px 16px 52px; }
  .works { padding: 60px 16px; }
  .philosophy { padding: 72px 16px; }
  .contacts { padding: 100px 16px; }
  .footer { padding: 30px 16px; }

  .about-section__frame {
    width: calc(100vw - 32px);
    margin-left: calc(50% - 50vw + 16px);
    min-height: min(78vh, 760px);
  }

  .about-section__iframe {
    height: min(78vh, 760px);
  }

  .nav__logo {
    width: 84px;
    height: 84px;
  }

  .about__badge {
    font-size: 11px;
    padding: 6px 14px;
  }

  .about__headline {
    font-size: 34px;
    line-height: 0.96;
  }

  .philosophy__intro {
    margin-bottom: 44px;
  }

  .philosophy__title {
    font-size: 28px;
    max-width: 9ch;
    white-space: normal;
    text-align: left;
  }

  .contacts__socials {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .discipline-trigger {
    gap: 10px;
    padding: 14px 0 14px 12px;
  }

  .discipline-trigger__number {
    min-width: 20px;
    font-size: 9px;
  }

  .discipline-trigger__title {
    font-size: 16px;
  }

  .discipline-system__panel-wrap {
    min-height: 220px;
  }

  .discipline-panel__title {
    font-size: 21px;
  }

  .discipline-panel__description {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
  }

  .discipline-system__kicker {
    font-size: 21px;
    letter-spacing: -1px;
  }

  .discipline-panel {
    padding-right: 0;
  }

  .discipline-system__kicker-word--results {
    top: 20%;
  }

  .discipline-system__kicker-word--that {
    top: 50%;
    left: 50%;
  }

  .discipline-system__kicker-word--last {
    left: 50%;
    top: 80%;
  }

  .contacts__title {
    font-size: 36px;
  }

  .contacts__value {
    font-size: 18px;
  }

  .footer__container {
    flex-direction: column;
    gap: 18px;
  }

  .footer__location,
  .footer__credit {
    font-size: 14px;
  }

  .legal-page {
    padding: 20px 16px 40px;
  }

  .legal-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .legal-title {
    max-width: none;
    font-size: clamp(34px, 11vw, 54px);
  }

  .legal-section p,
  .legal-section li {
    font-size: 15px;
    line-height: 1.65;
  }
}
