/* FolloTeam Portfolio — industrial / media-art theme */

:root {
  --bg: #0a0c10;
  --bg-elevated: #12151c;
  --bg-card: #181c26;
  --border: rgba(200, 205, 216, 0.12);
  --text: #e8eaef;
  --text-muted: #8b93a7;
  --accent: #3dd6ff;
  --accent-dim: rgba(61, 214, 255, 0.15);
  --accent-glow: rgba(61, 214, 255, 0.35);
  --metal: linear-gradient(135deg, #c8cdd8 0%, #6b7280 100%);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --container: min(1120px, calc(100% - 2.5rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: #7ee4ff;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; margin: 0 0 1rem; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; margin: 0 0 1rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

.lead { font-size: 1.125rem; color: var(--text-muted); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
}

.skip-link:focus {
  left: 1rem;
}

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

.narrow { max-width: 720px; }

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
  position: relative;
}

.section-tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.visually-centered {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: var(--container);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  box-shadow: 0 0 24px var(--accent-dim);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-text span { color: var(--text-muted); font-weight: 500; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.nav-cta {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text) !important;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, var(--accent-dim), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(107, 114, 128, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #0d1018 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 38ch;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #061018;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-meta li { margin-bottom: 0.35rem; }

.hero-meta strong { color: var(--text); font-weight: 600; }

.hero-frame {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow:
    0 0 0 1px rgba(61, 214, 255, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.55);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.hero-frame.is-placeholder {
  min-height: 320px;
  background:
    linear-gradient(145deg, #1a2030 0%, #0e1218 50%, #152028 100%);
}

.hero-frame.is-placeholder img { display: none; }

.hero-frame.is-placeholder::before {
  content: "FT";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(61, 214, 255, 0.12);
}

.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  background: rgba(0,0,0,0.65);
  color: var(--text-muted);
}

.hero-frame:not(.is-placeholder) .hero-caption { display: none; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-stats > div {
  padding: 0.85rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero-stats span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0.5;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* Fact grid */
.fact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.fact-grid dt {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.fact-grid dd {
  margin: 0;
  color: var(--text-muted);
}

.awards-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.awards-list strong {
  color: var(--text);
  font-weight: 600;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.card {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: rgba(61, 214, 255, 0.35);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.card-featured {
  border-color: rgba(61, 214, 255, 0.4);
  box-shadow: 0 0 40px var(--accent-dim);
}

.card-media {
  position: relative;
  min-height: 180px;
  background: #141820;
}

.card-media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.card-media.is-placeholder,
.is-placeholder {
  background:
    repeating-linear-gradient(
      -45deg,
      #161b24,
      #161b24 8px,
      #12161e 8px,
      #12161e 16px
    );
}

.card-media.is-placeholder img,
.is-placeholder img { display: none; }

.card-body {
  padding: 1.5rem 1.5rem 1.5rem 0;
  align-self: center;
}

.card-body time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* System */
.system-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.diagram {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.diagram-box {
  fill: rgba(24, 28, 38, 0.9);
  stroke: rgba(61, 214, 255, 0.35);
  stroke-width: 1.5;
}

.diagram-label {
  fill: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.diagram-sublabel {
  fill: var(--text-muted);
  font-size: 11px;
}

.diagram-link {
  fill: var(--accent);
  font-size: 10px;
  font-weight: 600;
}

.system-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.system-steps li {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.system-steps li:last-child { border-bottom: none; }

.system-steps span {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

/* Gallery */
.gallery {
  display: grid;
  gap: 0.75rem;
}

.gallery-3 { grid-template-columns: repeat(3, 1fr); }

.gallery figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: #141820;
}

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

/* Вертикальная фото-галерея (masonry) */
.section-intro-tight {
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
}

.gallery-masonry {
  columns: 4;
  column-gap: 0.85rem;
}

.gallery-masonry figure {
  break-inside: avoid;
  margin: 0 0 0.85rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #141820;
}

.gallery-masonry img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-masonry figure.is-placeholder {
  aspect-ratio: 3 / 4;
  min-height: 220px;
  background:
    repeating-linear-gradient(
      -45deg,
      #161b24,
      #161b24 8px,
      #12161e 8px,
      #12161e 16px
    );
}

.gallery-masonry figure.is-placeholder img {
  display: none;
}

.gallery figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  background: rgba(0,0,0,0.6);
}

/* Video */
.video-block { margin-bottom: 2rem; }

.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.showreel-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.showreel-video--portrait {
  aspect-ratio: auto;
  max-width: min(380px, 100%);
  margin-inline: auto;
}

.media-highlight {
  margin: 2.5rem auto;
  max-width: 420px;
  text-align: center;
}

.media-highlight-video {
  aspect-ratio: auto;
  background: #000;
}

.video-caption {
  margin: 0.75rem 0 0;
  padding: 0 0.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.video-more {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.video-more a {
  color: var(--text-muted);
}

.video-more a:hover {
  color: var(--accent);
}

.video-grid-title {
  margin: 2.75rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.video-card .video-wrap {
  border-radius: var(--radius);
}

.video-card .video-caption {
  margin-top: 0.6rem;
}

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.event-card {
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.event-card:hover { border-color: rgba(61, 214, 255, 0.3); }

.event-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border-radius: 4px;
}

.event-badge--demo {
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.event-card--winner {
  border-color: rgba(61, 214, 255, 0.25);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.event-card--demo {
  border-style: dashed;
}

.event-year {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.event-card h3 { margin-top: 0.5rem; }

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

/* More works */
.more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.more-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.more-media {
  aspect-ratio: 16/10;
  background: #141820;
}

.more-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-card h3,
.more-card p,
.more-card .card-meta {
  padding-inline: 1.25rem;
}

.more-card h3 { padding-top: 1.25rem; }

.more-card .card-meta { padding-bottom: 1.25rem; }

/* Tags */
.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tags li {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* About */
.about-workshop {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.about-workshop img {
  display: block;
  width: 100%;
  height: auto;
}

.about-workshop figcaption {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-aside {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

/* Contact */
.contact-block {
  text-align: center;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.65rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 4px;
}

.contact-list em,
.contact-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-note { margin: 0; opacity: 0.7; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay { transition-delay: 0.12s; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .system-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .card-body {
    padding: 1.25rem;
  }

  .gallery-masonry { columns: 3; }

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

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

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(10, 12, 16, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .gallery-3 {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-masonry { columns: 2; }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
}
