/* ============ Fonts ============ */
@font-face {
  font-family: "GL Kirovi Bold";
  src: url("assets/fonts/gl-kirovi-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============ Tokens (extracted from symmetradigital.com) ============ */
:root {
  --dark: #0e0e0f;
  --white: #ffffff;
  --yellow: #ffe36c;
  --cream: #fffcf1;
  --text-on-dark: rgba(255, 255, 255, 0.8);
  --line-on-light: rgba(14, 14, 15, 0.12);
  --font-display: "GL Kirovi Bold", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --container: 1128px;
  --pad: clamp(20px, 3.5vw, 40px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; margin: 0; }
p { margin: 0; }

.container { max-width: calc(var(--container) + 2 * var(--pad)); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(80px, 12vh, 150px); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Char-flip heading animation (matches symmetradigital.com per-character rotateY entrance) */
.char-heading { perspective: 800px; opacity: 0; }
.char-heading.chars-ready { opacity: 1; }
.char-flip {
  display: inline-block;
  opacity: 0;
  transform: rotateY(90deg);
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.char-word { display: inline-block; white-space: nowrap; }
.char-heading.is-visible .char-flip { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .char-heading { opacity: 1; }
  .char-flip { opacity: 1; transform: none; transition: none; }
  .header-cta { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-mobile-video { animation: none !important; opacity: 1 !important; }
  html { scroll-behavior: auto; }
  .services-track, .logos-track { animation: none !important; }
}

/* ============ Entrance keyframes ============ */
@keyframes cta-enter {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-video-enter {
  from { opacity: 0; transform: translateY(60px) scale(0.88); }
  to { opacity: 1; transform: none; }
}

/* ============ Buttons (yellow, 2px radius, GL Kirovi) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--dark);
  border-radius: 2px;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: normal;
  line-height: 1.5;
  transition: background 0.25s ease;
}
.btn:hover { background: #f5d95a; }
.btn-arrow {
  width: 10px;
  height: 10px;
  transition: transform 0.25s ease;
}
.btn:hover .btn-arrow { transform: translate(2px, -2px); }
.header-cta { padding: 12px 24px; animation: cta-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px clamp(16px, 2vw, 24px);
}

.header-left { display: flex; align-items: center; gap: 12px; justify-self: start; }
.brand { display: flex; align-items: center; }
.brand-img { height: 30px; width: auto; filter: invert(1); transition: filter 0.3s ease; }
.site-header.on-dark .brand-img { filter: none; }

/* Header color modes: white bg over hero, dark bg when scrolled */
.site-header { color: var(--dark); background: var(--white); }
.site-header.on-dark { color: var(--white); background: var(--dark); }
.menu-toggle, .brand { color: inherit; }

/* Desktop nav (center column — truly viewport-centered via 1fr auto 1fr grid) */
.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}
.header-nav a {
  font-family: var(--font-display);
  font-size: 20px;
  color: inherit;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}
.header-nav a:hover { opacity: 0.55; }

/* Desktop right: lang switcher + CTA */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}
.header-lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 12px;
  color: inherit;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: 0;
  padding: 10px 6px;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease;
}
.menu-toggle.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ============ Menu overlay ============ */
.menu-panel {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 99;
  background: var(--dark);
  padding: 96px 0 30px;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  visibility: hidden;
}
.menu-panel.is-open { transform: none; visibility: visible; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--white);
  padding: 12px 32px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.menu-nav a:hover { color: var(--yellow); transform: translateX(8px); }
.menu-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px auto 22px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--white);
  cursor: pointer;
}

.menu-lang, .footer-lang, .header-lang { position: relative; }
.lang-label { font-family: var(--font-display); font-size: 16px; }
.lang-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.lang-select option { color: #0e0e0f; background: #fff; }
.menu-cta { display: flex; margin: 0 30px; padding-block: 20px; }

/* ============ Hero (white, black condensed type) ============ */
.hero {
  background: var(--white);
  padding: 170px var(--pad) 72px;
  text-align: center;
}
.hero h1 {
  color: var(--dark);
  font-size: clamp(42px, 7.7vw, 87px);
  letter-spacing: -2px;
  line-height: 1.2;
  max-width: 1060px;
  margin: 0 auto;
}

.hero-desktop-video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-top: 48px;
  animation: hero-video-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}
.hero-mobile-video {
  display: none;
}

/* ============ Showreel ============ */
.showreel {
  background: var(--dark);
}
.showreel video {
  width: 100vw;
  height: 100svh;
  object-fit: cover;
  display: block;
}

/* ============ Who we are ============ */
.who-we-are { background: var(--dark); padding-block: clamp(110px, 16vh, 190px); text-align: center; }
.who-we-are h2 { font-size: 40px; letter-spacing: -0.4px; color: var(--white); margin-bottom: 28px; }
.who-copy { display: grid; gap: 22px; max-width: 810px; margin-inline: auto; }
.who-copy p { color: var(--text-on-dark); font-size: 16px; line-height: 1.3; }

/* ============ What we do ============ */
.what-we-do { background: var(--dark); padding-top: clamp(40px, 8vh, 90px); }
.wwd-heading {
  font-size: 40px;
  letter-spacing: -0.4px;
  color: var(--dark);
  text-align: center;
  margin-bottom: clamp(48px, 8vh, 90px);
}
.services-band {
  background: var(--white);
  padding-block: clamp(56px, 9vh, 96px);
  overflow: hidden;
  contain: layout style;
}
.services-track {
  display: flex;
  width: max-content;
  border-block: 1px solid var(--dark);
  animation: marquee-rtl 32s linear infinite;
  will-change: transform;
}
.service-cell {
  width: 360px;
  height: 186px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--dark);
  flex-shrink: 0;
  transition: background 0.25s ease;
}
.service-cell:first-child { border-left: 1px solid var(--dark); }
.service-cell h4 { font-size: 22px; color: var(--dark); transition: color 0.25s ease; }

/* Left-to-right: start at -50% and animate back to 0 */
@keyframes marquee-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }
/* Right-to-left for second mobile row */
@keyframes svc-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.services-mobile-rows { display: none; }
.svc-m-ltr { animation: marquee-rtl 22s linear infinite; }
.svc-m-rtl { animation: svc-rtl 22s linear infinite; }

/* Desktop-only yellow hover — pause marquee so cells stay still under cursor */
@media (hover: hover) and (pointer: fine) {
  .services-track:hover { animation-play-state: paused; }
  .service-cell:hover { background: var(--yellow); }
}

/* ============ Selected Projects ============ */
.projects { background: var(--dark); }
.projects-heading {
  font-size: 40px;
  letter-spacing: -0.4px;
  color: var(--white);
  text-align: center;
  margin-bottom: clamp(32px, 5vh, 52px);
}
.projects-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-block: clamp(16px, 3vh, 28px);
}
.projects-marquee { overflow: hidden; }
.projects-marquee:hover .projects-track { animation-play-state: paused; }
.projects-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: proj-ltr 52s linear infinite;
  will-change: transform;
}
.projects-track.projects-track-rev { animation: proj-rtl 52s linear infinite; }
@keyframes proj-ltr { to { transform: translateX(-50%); } }
@keyframes proj-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* Project card */
.proj-card {
  position: relative;
  width: clamp(420px, 36vw, 620px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  flex-shrink: 0;
  background: #111;
}
.proj-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.proj-card img.alt { opacity: 0; }

/* Hover overlay */
.proj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,14,15,0.92) 0%, rgba(14,14,15,0.5) 40%, transparent 72%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.proj-overlay h3 {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--white);
  line-height: 1.15;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-overlay p {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
  margin-top: 7px;
  transform: translateY(14px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
}
@media (hover: hover) and (pointer: fine) {
  .proj-card:hover img { transform: scale(1.05); }
  .proj-card:hover img.alt { opacity: 1; }
  .proj-card:hover .proj-overlay { opacity: 1; }
  .proj-card:hover .proj-overlay h3,
  .proj-card:hover .proj-overlay p { transform: none; }
}

/* Mobile: disable marquee, allow touch-scroll */
@media (max-width: 900px) {
  .projects-track { animation: none; }
  .projects-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .projects-marquee::-webkit-scrollbar { display: none; }
  .proj-card { width: clamp(300px, 85vw, 420px); border-radius: 0; }
}

.projects-cta { text-align: center; padding-top: clamp(40px, 6vh, 72px); }

/* ============ Partners ============ */
.partners { background: var(--dark); overflow: hidden; contain: layout style; }
.partners h3 {
  font-size: 32px;
  letter-spacing: -0.32px;
  color: var(--white);
  text-align: center;
  margin-bottom: clamp(48px, 7vh, 72px);
}
.logos-marquee { overflow: hidden; padding-block: 22px; }
.logos-marquee:hover .logos-track { animation-play-state: paused; }
.logos-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: logos-ltr 38s linear infinite;
  will-change: transform;
}
.logos-track.reverse { animation-name: logos-rtl; }
@keyframes logos-ltr { to { transform: translateX(-50%); } }
@keyframes logos-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.logos-track img { width: 100px; height: 65px; object-fit: contain; flex-shrink: 0; opacity: 0.75; transition: opacity 0.25s ease; }
.logos-track img:hover { opacity: 1; }

/* ============ Footer (white) ============ */
.footer {
  background: var(--white);
  color: var(--dark);
  border-top: 4px solid var(--yellow);
  padding-block: clamp(72px, 11vh, 110px) 64px;
}
.footer .container {
  max-width: 100%;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(48px, 7vh, 80px);
}
.footer-logo { width: clamp(82px, 9vw, 112px); height: auto; }
.footer-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--dark);
}

.presentation-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 32px);
  color: var(--dark);
  margin-bottom: clamp(48px, 7vh, 80px);
  transition: opacity 0.25s ease;
}
.presentation-link:hover { opacity: 0.7; }
.pres-arrow { color: var(--dark); flex-shrink: 0; width: clamp(14px, 1.4vw, 20px); height: auto; }

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  flex: 1;
}
.footer-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(14, 14, 15, 0.65);
  margin-bottom: 14px;
}
.footer-item a {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  color: var(--dark);
  transition: opacity 0.25s ease;
}
.footer-item a:hover { opacity: 0.65; }

.socials { display: flex; align-items: center; gap: 36px; flex-shrink: 0; }
.socials a { color: rgba(14, 14, 15, 0.65); transition: color 0.25s ease; }
.socials a:hover { color: var(--dark); }
.socials svg { transform: scale(1.15); transform-origin: center; }

/* ============ Projects mobile list ============ */
.projects-mobile { display: none; }

/* ============ Desktop hero one-liner ============ */
@media (min-width: 821px) {
  .hero h1 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(32px, 4.5vw, 100px);
  }
}

/* ============ Responsive ============ */
@media (max-width: 820px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .header-nav { display: none; }
  .header-lang { display: none; }
  .menu-toggle { display: flex; }
  .projects-rows { display: none; }
  .projects-mobile {
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding: 0 var(--pad) 8px;
  }
  .proj-card-mobile img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 0;
    display: block;
  }
  .proj-card-mobile h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--white);
    text-transform: uppercase;
    margin-top: 16px;
  }
  .proj-card-mobile p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.55;
    margin-top: 8px;
  }
  .hero { padding-top: 100px; padding-bottom: 0; }
  .hero h1 { font-size: 48px; letter-spacing: -1px; margin-bottom: 40px; }
  .hero-desktop-video { display: none; }
  .hero-mobile-video {
    display: block;
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    animation: hero-video-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
  }
  .who-we-are { padding-top: 100px; padding-bottom: 40px; }
  .who-copy p { font-size: 14px; }
  .who-we-are h2, .wwd-heading, .projects-heading { font-size: 32px; }
  .projects-grid { grid-template-columns: 1fr; gap: 56px; }
  #services-track { display: none; }
  .services-mobile-rows { display: block; }
  .service-cell { width: 240px; height: 120px; }
  .services-mobile-rows .service-cell { border-right: none; }
  .services-mobile-rows .service-cell:first-child { border-left: none; }
  .svc-m-rtl { border-top: none; }
  .footer { padding-top: 64px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .socials { gap: 28px; }
  .header-cta { padding: 13px 22px; }
}
