@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@600;700&display=swap');

:root {
  --bg: #090b0f;
  --surface: #11151b;
  --surface-soft: #171d25;
  --text: #f0f3f8;
  --text-muted: #b4bfce;
  --line: #283241;
  --accent: #c9a86a;
  --accent-2: #6eb6c8;
  --max: 1200px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  background: #000;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Neue Haas Grotesk Text Pro", "Helvetica Now Text", "Helvetica Neue", sans-serif;
  background: radial-gradient(circle at 15% 20%, #18202b 0%, #090b0f 42%), linear-gradient(180deg, #090b0f 0%, #0f141b 100%);
  background-attachment: fixed;
  color: var(--text);
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(7, 9, 12, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.25s ease;
}

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

.nav-divider {
  opacity: 0.45;
}

main {
  padding-top: 62px;
}

.hero {
  position: relative;
  height: 56.25vw; /* 16:9 native */
  max-height: 85vh;
  min-height: 420px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

/* Vimeo iframe cover — scales up to fill without black bars */
.video-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  border: none;
  pointer-events: none;
  filter: none;
}

@media (max-width: 600px) {
  .hero {
    min-height: 60vh;
  }

  .hero video,
  .hero .hero-image {
    object-position: center center;
    transform: scale(1.15);
  }

  h1 {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .hero p {
    font-size: 0.9rem;
  }

  .cta-row {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
}

.hero-content {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  position: relative;
  z-index: 1;
  justify-self: start;
  text-shadow: 0 2px 16px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.95);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.4rem);
  max-width: 12ch;
}

.hero p {
  color: #dbe5f3;
  max-width: 64ch;
  margin-top: 0.8rem;
  font-size: clamp(0.95rem, 2vw, 1.22rem);
}

.cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Animated paint-in button ── */
/*
  At rest:  plain text, no border, no background
  On hover: border draws in via clip-path, then fill sweeps left→right
  Text stays readable via color transition (handled by CSS stacking —
  the fill lives in ::before, text is naturally above pseudo-elements
  in stacking order when the element itself is position:relative)
*/
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  padding: 0.62rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.22);  /* always-visible thin frame */
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.18s ease;
  z-index: 0;
}

.btn-primary {
  border-color: rgba(201, 168, 106, 0.45);  /* gold tint at rest */
}

/* fill layer that sweeps in */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn:hover::before {
  transform: scaleX(1);
}

/* primary: gold fill on hover → dark text */
.btn-primary:hover {
  border-color: var(--accent);
  color: #0d1014;
}

.btn-primary::before {
  background: var(--accent);
}

/* secondary: dim white border + subtle fill */
.btn-secondary {
  color: var(--text-muted);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--text);
}

.btn-secondary::before {
  background: rgba(255, 255, 255, 0.07);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5rem) 1rem;
}

.section-header {
  margin-bottom: 1.35rem;
}

.section-header h2 {
  font-size: clamp(1.4rem, 2.9vw, 2.1rem);
}

.section-header p {
  color: var(--text-muted);
  margin: 0.6rem 0 0;
  max-width: 70ch;
}

.grid {
  display: grid;
  gap: 0.95rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: linear-gradient(145deg, #11161d 0%, #161d27 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 150px;
}

.card h3 {
  font-size: 1.02rem;
}

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

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.list-clean li {
  border-left: 2px solid var(--accent-2);
  padding-left: 0.6rem;
  color: var(--text-muted);
}

.locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.locations span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.8rem;
  color: #d9e4f3;
}

.map-placeholder {
  min-height: 250px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 32% 41%, rgba(110, 182, 200, 0.26), transparent 46%),
    radial-gradient(circle at 72% 57%, rgba(201, 168, 106, 0.22), transparent 38%),
    #111721;
  position: relative;
}

.map-placeholder::before {
  content: "Global Production Coverage";
  position: absolute;
  bottom: 0.75rem;
  right: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.video-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: none;
  min-height: 220px;
  display: block;
  background: #0f141b;
}

.video-card video {
  transition: opacity 0.3s ease, transform 0.5s ease, filter 0.4s ease;
}

/* portfolio-specific grid: fixed 3-col, consistent row heights */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.95rem;
}

/* 2-column span for featured cards (Mobility, LED) */
.portfolio-grid .card-span-2 {
  grid-column: span 2;
}

/* all portfolio cards share the same aspect ratio — no layout surprises */
.portfolio-grid .video-card {
  aspect-ratio: 16 / 10;
  min-height: unset;
}

@media (max-width: 700px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid .card-span-2 {
    grid-column: span 1;
  }
}

/* legacy wide modifier — kept for project pages */
.video-card--wide {
  aspect-ratio: 2.39 / 1;
  min-height: unset;
}

.video-card video,
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(1);
  transition: transform 0.5s ease, filter 0.4s ease, opacity 0.3s ease;
}

.video-card:hover video,
.video-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.65);
}

/* editorial bottom bar */
.video-card .label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 3rem 1rem 0.85rem;
  background: linear-gradient(to top, rgba(5, 7, 10, 0.88) 0%, rgba(5, 7, 10, 0.4) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background 0.3s ease;
}

.video-card .label-text {
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8edf5;
}

.video-card .label-arrow {
  font-size: 1rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  will-change: opacity, transform;
}

.video-card:hover .label-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* top category tag */
.video-card .tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  opacity: 0.85;
}

.project-hero {
  min-height: 55vh;
  max-height: 70vh;
}

.project-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.project-info div {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
}

.project-info strong {
  display: block;
  color: var(--accent-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.form-wrap {
  max-width: 760px;
}

.form-success-msg {
  padding: 2rem;
  background: rgba(110, 182, 200, 0.08);
  border: 1px solid rgba(110, 182, 200, 0.25);
  border-radius: var(--radius);
  color: var(--text);
  line-height: 1.6;
}

.form-success-msg p {
  margin: 0;
  font-size: 1.05rem;
}

.form-error-msg {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(220, 80, 80, 0.08);
  border: 1px solid rgba(220, 80, 80, 0.25);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-error-msg a {
  color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.77rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.34rem;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  padding: 0.67rem 0.72rem;
  font: inherit;
}

textarea {
  min-height: 125px;
  resize: vertical;
}

footer {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 1rem 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.3s;
}

.fade-in.delay-1 { animation-delay: 0.6s; }
.fade-in.delay-2 { animation-delay: 0.95s; }
.fade-in.delay-3 { animation-delay: 1.25s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* showreel embed placeholder */
.reel-placeholder {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  background: var(--surface);
}

.impressum-block {
  margin-bottom: 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.impressum-block:last-child {
  border-bottom: none;
}

.impressum-block h2 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.impressum-block p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

.impressum-block a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding-top: 104px;
  }
}
