/* C3D Studio — Industrial Chic Design System */

:root {
  --c-black: #000000;
  --c-noir: #0a0a0a;
  --c-coal: #141414;
  --c-graphite: #1c1c1c;
  --c-gray: #393939;
  --c-stone: #6b6b6b;
  --c-neutral: #DBDADA;
  --c-white: #FFFFFF;
  --c-red: #E61E27;
  --c-red-deep: #b8161d;

  --f-display: "Anton", "Bebas Neue", "Impact", sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--f-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

::selection { background: var(--c-red); color: var(--c-white); }

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

button { font-family: inherit; cursor: pointer; }

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

/* === TYPE === */
.f-display { font-family: var(--f-display); letter-spacing: 0.03em; line-height: 1.1; font-weight: 500; }
.f-mono { font-family: var(--f-mono); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-neutral);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--c-red);
}

.section-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-stone);
}

/* === LAYOUT === */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(80px, 10vw, 140px);
}

.section-tight { padding-block: clamp(60px, 7vw, 100px); }

/* Grid backdrop */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.noise-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-red {
  background: var(--c-red);
  color: var(--c-white);
}
.btn-red:hover { background: var(--c-red-deep); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: var(--c-red); color: var(--c-red); }

.btn-ghost { background: transparent; color: var(--c-white); }
.btn-ghost:hover { color: var(--c-red); }

/* Header */
.header-base {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.header-scrolled {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(255,255,255,0.08);
}

/* Hero */
.hero-stage { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: #000; }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }

.hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.15) contrast(1.05);
}

.hero-diagonal::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 38%, rgba(0,0,0,0.1) 62%, rgba(0,0,0,0.5) 100%);
}
.hero-diagonal::before {
  content: "";
  position: absolute; top: 0; bottom: 0;
  left: 55%; width: 2px;
  background: var(--c-red);
  transform: skewX(-12deg);
  z-index: 2;
  box-shadow: 0 0 24px rgba(230,30,39,0.6);
}

.hero-editorial::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0) 70%);
}

.hero-editorial::before {
  content: "";
  position: absolute; top: 0; bottom: 0;
  left: 55%; width: 4px;
  background: var(--c-red);
  transform: skewX(-12deg);
  z-index: 2;
  box-shadow: 0 0 24px rgba(230,30,39,0.6);
}

.hero-cinema::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 90%),
              linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.7) 100%);
}

/* Service cards variants */
.svc-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
}
.svc-outline:hover { border-color: var(--c-red); background: rgba(230,30,39,0.04); }

.svc-filled {
  background: var(--c-graphite);
  border: 1px solid rgba(255,255,255,0.04);
}
.svc-filled:hover { background: #232323; border-color: rgba(230,30,39,0.4); }

.svc-glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}
.svc-glass:hover { border-color: rgba(230,30,39,0.5); background: linear-gradient(135deg, rgba(230,30,39,0.08), rgba(255,255,255,0.02)); }

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 80px;
  flex-shrink: 0;
  animation: marquee 40s linear infinite;
  padding-right: 80px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Light section backgrounds — strategic breathing room */
.section-light {
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  color: var(--c-black);
}

.section-light h2, .section-light h3 { color: var(--c-black); }
.section-light .stat-num { color: var(--c-black); }
.section-light .stat-num .plus { color: var(--c-red); }

.section-light .eyebrow { color: var(--c-gray); }
.section-light .eyebrow::before { background: var(--c-red); }

.section-light .marquee-item { color: var(--c-gray); }

/* Portfolio */
.chip {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--c-neutral);
  transition: all .2s;
  white-space: nowrap;
}
.chip:hover { color: var(--c-white); border-color: rgba(255,255,255,0.4); }
.chip.is-active { background: var(--c-red); border-color: var(--c-red); color: var(--c-white); }
.chip-count {
  margin-left: 8px;
  font-size: 10px;
  opacity: 0.6;
}

.gal-card {
  position: relative;
  overflow: hidden;
  background: var(--c-coal);
  cursor: pointer;
  transition: transform .4s ease;
}
.gal-card .gal-img {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s;
  filter: grayscale(0.2);
}
.gal-card:hover .gal-img { transform: scale(1.06); filter: grayscale(0); }
.gal-card .gal-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.95));
  opacity: 0;
  transition: opacity .35s;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.gal-card:hover .gal-overlay { opacity: 1; }
.gal-card .gal-tag {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 6px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 5vw;
}
.lightbox-img {
  max-width: 100%; max-height: 80vh;
  width: auto; height: auto;
  object-fit: contain;
  background: var(--c-coal);
}

/* Stats */
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.9;
  color: var(--c-white);
}
.stat-num .plus { color: var(--c-red); }

/* Decorative ticker line */
.ticker-line {
  display: flex; align-items: center; gap: 24px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-stone);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0;
}
.ticker-dot { width: 6px; height: 6px; background: var(--c-red); border-radius: 50%; }

/* Reveal animation base */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

/* WhatsApp float */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 40px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.6);
  animation: wa-pulse 2.4s ease-out infinite;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0% { box-shadow: 0 14px 40px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.6); }
  100% { box-shadow: 0 14px 40px rgba(37,211,102,0.4), 0 0 0 20px rgba(37,211,102,0); }
}

/* Cases (large project cards) */
.case-card {
  position: relative;
  overflow: hidden;
  background: var(--c-coal);
  border: 1px solid rgba(255,255,255,0.06);
}
.case-img {
  height: 380px;
  background-size: cover; background-position: center;
  filter: grayscale(0.1);
  transition: transform .8s, filter .4s;
}
.case-card:hover .case-img { transform: scale(1.04); filter: grayscale(0); }

/* Footer */
.footer-link {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-neutral); transition: color .2s;
}
.footer-link:hover { color: var(--c-red); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-noir); }
::-webkit-scrollbar-thumb { background: var(--c-gray); }
::-webkit-scrollbar-thumb:hover { background: var(--c-red); }

/* Image slot polyfill style (fallback bg if image fails) */
.ph-stripe {
  background-image: repeating-linear-gradient(135deg, #1a1a1a 0 12px, #161616 12px 24px);
}

/* Service main card link */
.svc-main {
  position: relative;
  padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
  transition: all .35s;
  cursor: pointer;
  overflow: hidden;
  min-height: 320px;
}
.svc-main.light-bg {
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%) !important;
  color: var(--c-black);
}
.svc-main.light-bg h3 { color: var(--c-black); }
.svc-main.light-bg p { color: var(--c-gray); }
.svc-main.light-bg .svc-arrow { border-color: rgba(0,0,0,0.2); }
.svc-main .svc-arrow {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.svc-main:hover .svc-arrow { background: var(--c-red); border-color: var(--c-red); transform: rotate(-45deg); }

/* Diagonal decorative slash */
.slash {
  display: inline-block;
  width: 1px; height: 14px;
  background: var(--c-red);
  transform: skewX(-20deg);
  margin: 0 8px;
  vertical-align: middle;
}

/* === Reusable page helpers (standalone pages) === */
/* Hero title — desktop target 94px */
.hero-title { font-family: var(--f-display); font-weight: 500; letter-spacing: 0.03em; line-height: 1.05; text-transform: uppercase; font-size: clamp(48px, 9vw, 94px); margin: 0; }
/* Section title — desktop target 80px */
.section-title { font-family: var(--f-display); font-weight: 500; letter-spacing: 0.03em; line-height: 1.1; text-transform: uppercase; font-size: clamp(40px, 6vw, 80px); margin: 0; }
/* Card title — JetBrains Mono, medium */
.card-title-mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0; text-transform: uppercase; }

/* Light contact form — only the briefing form */
.form-light {
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%) !important;
  border-color: rgba(0,0,0,0.08) !important;
}
.form-light .eyebrow { color: var(--c-gray) !important; }
.form-light label { color: #393939 !important; }
.form-light input,
.form-light select,
.form-light textarea {
  color: #1a1a1a !important;
  border-bottom-color: rgba(0,0,0,0.18) !important;
}
.form-light input::placeholder,
.form-light textarea::placeholder { color: #9c9a96 !important; }
.form-light input:focus,
.form-light select:focus,
.form-light textarea:focus { border-bottom-color: var(--c-red) !important; }
.form-light .f-mono { color: var(--c-gray) !important; }

/* === Page hero (internal pages) === */
.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
  margin-top: 0;
}
.page-hero .page-hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(0.18) contrast(1.05);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.62) 42%, rgba(0,0,0,0.18) 66%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.page-hero .page-hero-accent {
  position: absolute; top: 0; bottom: 0; left: 56%; width: 2px;
  background: var(--c-red); transform: skewX(-12deg);
  z-index: 2; box-shadow: 0 0 24px rgba(230,30,39,0.6);
}
.page-hero .container { position: relative; z-index: 3; padding-block: 64px; }

/* Timeline */
.timeline { position: relative; padding-left: 0; }
.timeline-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 32px;
  padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.08);
  align-items: start;
}
.timeline-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.timeline-year {
  font-family: var(--f-display); font-weight: 500; font-size: 40px;
  color: var(--c-red); line-height: 1;
}
.timeline-body h4 {
  font-family: var(--f-mono); font-weight: 500; font-size: 14px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-white); margin: 0 0 10px;
}
.timeline-body p { color: var(--c-neutral); font-size: 15px; line-height: 1.7; margin: 0; }
@media (max-width: 640px) {
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .timeline-year { font-size: 32px; }
}

/* Team cards */
.team-card { position: relative; overflow: hidden; background: var(--c-coal); border: 1px solid rgba(255,255,255,0.06); }
.team-photo { height: 320px; background-size: cover; background-position: center; filter: grayscale(0.35); transition: filter .4s, transform .6s; }
.team-card:hover .team-photo { filter: grayscale(0); transform: scale(1.03); }
.team-info { padding: 22px 24px; }
.team-name { font-family: var(--f-mono); font-weight: 500; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-white); margin: 0; }
.team-role { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-red); margin-top: 6px; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 26px 0; cursor: pointer; }
.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.faq-q { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.faq-q h4 { font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--c-white); margin: 0; flex: 1; }
.faq-toggle { font-size: 26px; line-height: 1; color: var(--c-red); flex-shrink: 0; font-weight: 300; }
.faq-a { margin-top: 16px; display: none; color: var(--c-neutral); font-size: 15px; line-height: 1.8; max-width: 760px; }
.faq-item.open .faq-a { display: block; }

/* Mobile nav */
@media (max-width: 880px) {
  .desk-nav { display: none !important; }
  .hero-stage { min-height: 560px; }
}

@media (min-width: 881px) {
  .mob-only { display: none !important; }
}
