@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@600;700&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;600&display=swap');

:root {
  --charcoal: #121417;
  --gunmetal: #1E242B;
  --mist: #EDF1F3;
  --cyan: #17C3D6;
  --slate: #808A90;
  --font-display: 'Familjen Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --section-pad: clamp(4rem, 8vw, 8rem);
  --max-width: 1200px;
  --hairline: 1px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { opacity: 0.82; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 600; }

p + p { margin-top: 1rem; }

ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.4rem; }

/* Surfaces */
.surface-charcoal { background-color: var(--charcoal); color: var(--mist); }
.surface-mist { background-color: var(--mist); color: var(--charcoal); }
.surface-gunmetal { background-color: var(--gunmetal); color: var(--mist); }
.surface-cyan { background-color: var(--cyan); color: var(--charcoal); }

.surface-charcoal a:not(.btn) { color: var(--cyan); }
.surface-gunmetal a:not(.btn) { color: var(--cyan); }
.surface-mist a:not(.btn) { color: var(--gunmetal); }

/* Eyebrow / mono labels */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.surface-mist .eyebrow { color: var(--gunmetal); }

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

.surface-charcoal .channel-label,
.surface-gunmetal .channel-label { color: rgba(237, 241, 243, 0.55); }

/* Layout */
.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

body.home .site-header {
  background-color: transparent;
}

body.home .site-header.is-scrolled,
.site-header.is-scrolled {
  background-color: var(--charcoal);
  color: var(--mist);
  box-shadow: 0 1px 0 rgba(23, 195, 214, 0.15);
}

body:not(.home) .site-header {
  background-color: var(--mist);
  color: var(--charcoal);
  box-shadow: 0 1px 0 rgba(18, 20, 23, 0.08);
}

body:not(.home) .site-header .nav-link { color: var(--charcoal); }
body:not(.home) .site-header.is-scrolled {
  background-color: var(--charcoal);
  color: var(--mist);
}

body:not(.home) .site-header.is-scrolled .nav-link { color: var(--mist); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  max-width: calc(var(--max-width) + 2.5rem);
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-mark { width: 32px; height: 32px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li { margin: 0; }

.nav-link {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Control Room Hero */
.hero-control-room {
  position: relative;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-control-room::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/mediacraft-01-hero-production.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-control-room::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 20, 23, 0.62) 0%, rgba(18, 20, 23, 0.78) 45%, rgba(18, 20, 23, 0.94) 100%);
  z-index: 1;
}

.control-frame {
  position: absolute;
  inset: 1.25rem;
  pointer-events: none;
  z-index: 3;
  border: 1px solid rgba(23, 195, 214, 0.25);
}

.control-frame::before,
.control-frame::after {
  content: '';
  position: absolute;
  background: var(--cyan);
  opacity: 0.5;
}

.control-frame::before {
  top: -1px;
  left: 2rem;
  width: 4rem;
  height: 2px;
}

.control-frame::after {
  bottom: -1px;
  right: 2rem;
  width: 4rem;
  height: 2px;
}

.signal-bars {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  z-index: 4;
  opacity: 0.6;
}

.signal-bars span {
  display: block;
  width: 4px;
  background: var(--cyan);
}

.signal-bars span:nth-child(1) { height: 8px; }
.signal-bars span:nth-child(2) { height: 14px; }
.signal-bars span:nth-child(3) { height: 20px; }
.signal-bars span:nth-child(4) { height: 26px; opacity: 0.35; }

.hero-topbar {
  position: relative;
  z-index: 4;
  padding: 6rem 2.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--hairline) solid rgba(23, 195, 214, 0.35);
  max-width: calc(var(--max-width) + 5rem);
  margin-inline: auto;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 4;
  padding: 3rem 2.5rem 2rem;
  max-width: calc(var(--max-width) + 5rem);
  margin-inline: auto;
  width: 100%;
}

.hero-content h1 {
  max-width: 16ch;
  margin-top: 1rem;
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 560px;
  font-size: 1.05rem;
  opacity: 0.88;
  line-height: 1.7;
}

.signal-underline {
  position: relative;
  display: inline;
}

.signal-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s ease;
}

.js .signal-underline.is-drawn::after,
.no-js .signal-underline::after {
  transform: scaleX(1);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-trust {
  position: relative;
  z-index: 4;
  padding: 1.25rem 2.5rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0.65;
  max-width: calc(var(--max-width) + 5rem);
  margin-inline: auto;
  width: 100%;
}

.timecode {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  opacity: 0.75;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--cyan);
  color: var(--charcoal);
  border-color: var(--cyan);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.surface-mist .btn-outline { border-color: var(--charcoal); }

/* Section marker */
.section-marker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.monitor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(23, 195, 214, 0.5);
}

.signal-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.4;
}

.surface-mist .signal-rule {
  background: linear-gradient(90deg, var(--slate), transparent);
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(128, 138, 144, 0.25);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.surface-mist .stat-num { color: var(--gunmetal); }

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.75;
}

/* Channel grid (method) */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.channel-card {
  padding: 1.75rem;
  border: 1px solid rgba(23, 195, 214, 0.2);
  background: rgba(30, 36, 43, 0.5);
}

.channel-card .channel-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  padding: 2rem;
  border: 1px solid rgba(128, 138, 144, 0.2);
}

.surface-charcoal .service-card,
.surface-gunmetal .service-card {
  background: rgba(18, 20, 23, 0.4);
}

.surface-mist .service-card {
  background: #fff;
}

.service-serial {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  display: block;
  margin-bottom: 0.75rem;
}

.surface-mist .service-serial { color: var(--slate); }

.service-card h3 { margin-bottom: 0.75rem; }

/* Work grid */
.work-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.work-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.work-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

.work-card h3 { margin: 0.5rem 0; }

/* FAQ */
.faq-list { margin-top: 2rem; }

.faq-item {
  border-bottom: 1px solid rgba(128, 138, 144, 0.25);
  padding-block: 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--cyan);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; }

.faq-answer {
  margin-top: 1rem;
  padding-right: 2rem;
  opacity: 0.88;
}

/* Disclaimer */
.disclaimer {
  margin-top: 3rem;
  padding: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  border-left: 3px solid var(--cyan);
  background: rgba(30, 36, 43, 0.08);
}

.surface-charcoal .disclaimer,
.surface-gunmetal .disclaimer {
  background: rgba(18, 20, 23, 0.35);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.cta-band h2 { max-width: 20ch; margin-inline: auto; }

.cta-band p {
  max-width: 520px;
  margin: 1rem auto 2rem;
  opacity: 0.85;
}

/* Page hero (inner) */
.page-hero {
  padding-top: 7rem;
  padding-bottom: 3rem;
}

.page-hero h1 { margin-top: 0.75rem; max-width: 24ch; }

.page-hero p { margin-top: 1rem; max-width: 560px; opacity: 0.8; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-grid > * {
  min-width: 0;
}

.contact-form-col form {
  width: 100%;
  max-width: 100%;
}

.contact-info-block {
  padding: 1.75rem;
  border: 1px solid rgba(128, 138, 144, 0.25);
}

.form-group { margin-bottom: 1.25rem; }

.form-group > label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(128, 138, 144, 0.4);
  background: #fff;
  color: var(--charcoal);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.consent-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 100%;
  margin-top: 0.25rem;
}

.consent-group input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: auto;
}

.consent-group label {
  flex: 1;
  min-width: 0;
  font-weight: 400;
  margin-bottom: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.form-notice {
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  border-left: 3px solid var(--cyan);
  background: rgba(23, 195, 214, 0.08);
}

.form-error {
  border-left-color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
}

/* Legal */
.legal-prose h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-prose h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-prose p,
.legal-prose li { font-size: 0.9375rem; }

/* Footer */
.site-footer {
  padding-block: 4rem 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(128, 138, 144, 0.2);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.footer-tagline {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li + li { margin-top: 0.5rem; }

.footer-col a { text-decoration: none; font-size: 0.875rem; }

.footer-bottom {
  padding-top: 2rem;
  font-size: 0.8125rem;
  opacity: 0.75;
  line-height: 1.7;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.25rem;
  box-shadow: 0 -4px 24px rgba(18, 20, 23, 0.12);
  border-top: 1px solid rgba(128, 138, 144, 0.2);
}

.cookie-banner.is-hidden { display: none; }

.cookie-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.875rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(18, 20, 23, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cookie-modal[hidden] { display: none; }

.cookie-modal-panel {
  max-width: 440px;
  width: 100%;
  padding: 2rem;
  border: 1px solid rgba(128, 138, 144, 0.25);
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(128, 138, 144, 0.15);
  font-size: 0.875rem;
}

/* Reveal animations */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .signal-underline::after {
    transform: scaleX(1);
    transition: none;
  }
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}

.error-page h1 { max-width: none; }

.error-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .work-card,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat-row { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    background: var(--charcoal);
    color: var(--mist);
  }

  body:not(.home) .nav-list {
    background: var(--mist);
    color: var(--charcoal);
  }

  .nav-list.is-open { display: flex; }

  .header-inner { position: relative; }
}

@media (max-width: 600px) {
  .hero-topbar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .hero-content h1 { max-width: none; }
}
