@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #0b0b0c;
  --bg-raised: #121214;
  --text: #f2f2ef;
  --muted: #96968f;
  --hairline: rgba(255, 255, 255, 0.1);
  --accent: #e03a2f;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

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

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

a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

.dot {
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  margin-left: 0.12em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: baseline;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem var(--pad);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(11, 11, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline);
}

.nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text); }

.lang-toggle {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  background: none;
  border: 1px solid var(--hairline);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible { border-color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video,
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video { opacity: 0; transition: opacity 0.8s ease; }
.hero-video.is-playing { opacity: 1; }

.hero-poster { z-index: -1; }

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(11, 11, 12, 0.96) 0%, rgba(11, 11, 12, 0.35) 45%, rgba(11, 11, 12, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--pad);
  padding-bottom: clamp(4rem, 12vh, 8rem);
  max-width: 60rem;
}

.hero-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242, 242, 239, 0.7);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(3.5rem, 13vw, 9.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 0.95;
}

.hero-title .dot { width: 0.14em; height: 0.14em; }

.hero-tagline {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(242, 242, 239, 0.85);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.7rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

.btn-ghost:hover,
.btn-ghost:focus-visible { border-color: var(--text); }

.hero-scroll {
  position: absolute;
  bottom: 1.6rem;
  right: var(--pad);
  z-index: 1;
  width: 1px;
  height: 3.4rem;
  overflow: hidden;
}

.hero-scroll span {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  animation: scrollline 2.2s ease-in-out infinite;
}

@keyframes scrollline {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll span { animation: none; }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4.5rem, 10vw, 8rem) var(--pad);
  border-top: 1px solid var(--hairline);
  max-width: 78rem;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-note {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Work grid ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.4rem;
}

.work-card h3 {
  margin-top: 1rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.work-card p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
    var(--bg-raised);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.is-placeholder .work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 14px,
    rgba(255, 255, 255, 0.022) 14px 15px
  );
}

.work-badge {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 0.4rem 0.8rem;
  background: rgba(11, 11, 12, 0.6);
}

.work-card-cta a {
  text-decoration: none;
  display: block;
}

.work-card-cta .work-thumb {
  transition: border-color 0.2s ease;
}

.work-card-cta a:hover .work-thumb,
.work-card-cta a:focus-visible .work-thumb {
  border-color: var(--accent);
}

.work-plus {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--muted);
}

.work-card-cta a:hover .work-plus { color: var(--accent); }

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.service {
  background: var(--bg);
  padding: 2rem 1.8rem 2.2rem;
}

.service h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}

.service p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- About ---------- */

.about { max-width: 44rem; }

.about-lead {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.4rem;
}

.about p + p { margin-top: 1rem; }
.about p:not(.about-lead) { color: rgba(242, 242, 239, 0.75); }

/* ---------- Contact ---------- */

.contact { max-width: 44rem; }

.contact-lead {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600;
  margin-bottom: 1.6rem;
}

.contact-mail {
  display: inline-block;
  font-size: clamp(1.15rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2rem;
  transition: color 0.2s ease;
  word-break: break-all;
}

.contact-mail:hover,
.contact-mail:focus-visible { color: var(--accent); }

.contact-loc {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem var(--pad) 2.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Reel overlay ---------- */

.reel-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 5, 6, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.reel-overlay[hidden] { display: none; }

.reel-video {
  width: 100%;
  max-width: 72rem;
  max-height: 86vh;
  background: #000;
  outline: none;
}

.reel-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text);
  background: none;
  border: none;
  padding: 0.6rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.reel-close:hover,
.reel-close:focus-visible { color: var(--accent); }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .nav { gap: 1rem; }
  .nav-links { display: none; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .footer { justify-content: center; text-align: center; }
}
