/* ==========================================================================
   ShaperonWorks — Dark premium studio design system
   ========================================================================== */

:root {
  --bg: #08080a;
  --bg-elevated: #121215;
  --bg-elevated-2: #18181c;
  --fg: #f5f5f6;
  --fg-muted: #9a9aa2;
  --fg-faint: #5c5c66;
  --accent-red: #e6293a;
  --accent-red-dim: #a91f2c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-hero: "Anton", "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --container-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--fg-muted);
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-red);
  box-shadow: 0 0 12px rgba(230, 41, 58, 0.6);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 200;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 10, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  box-shadow: 0 0 16px rgba(230, 41, 58, 0.3);
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--fg-muted);
  transition: color 0.2s ease;
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.site-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

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

.site-nav a.nav-cta {
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--accent-red);
  border-radius: 4px;
  color: var(--fg);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a.nav-cta:hover {
  background: var(--accent-red);
  box-shadow: 0 0 24px rgba(230, 41, 58, 0.45);
}

.nav-toggle-checkbox {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--fg);
  display: block;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(230, 41, 58, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--fg);
}

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

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type {
  border-bottom: none;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-red);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-red);
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 720px;
}

.section-intro {
  max-width: 640px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .section-label {
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(230, 41, 58, 0.18) 0%, rgba(230, 41, 58, 0) 70%);
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-hero);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.002em;
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  max-width: 1080px;
  margin-bottom: 2rem;
}

.hero-line {
  display: block;
}

.hero-line-accent {
  color: var(--accent-red);
}

.hero-inline-media {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  vertical-align: middle;
  width: clamp(84px, 9vw, 150px);
  margin: 0 0.6rem;
  transform: translateY(-0.35em);
}

.hero-inline-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
}

.hero-inline-media.is-logo {
  width: clamp(130px, 14vw, 220px);
}

.hero-inline-media.is-logo img {
  aspect-ratio: auto;
  object-fit: contain;
  border: none;
  border-radius: 0;
}

.hero-inline-caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 0.4rem;
  transition: color 0.2s ease;
}

.hero-inline-media:hover .hero-inline-caption {
  color: var(--accent-red);
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  justify-content: center;
  text-align: center;
}

.hero-stats .stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--fg);
}

.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Cards — products / services / work
   ========================================================================== */

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

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

.card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

a.card {
  cursor: pointer;
}

.card:hover {
  border-color: var(--accent-red-dim);
  box-shadow: 0 0 32px rgba(230, 41, 58, 0.12);
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent-red);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.card:hover .card-link {
  opacity: 1;
  transform: translateX(0);
}

.card-number {
  font-family: var(--font-display);
  color: var(--accent-red);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.product-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.product-card .product-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-elevated-2);
}

.product-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card .product-media.is-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.product-card .product-media.is-logo img {
  width: auto;
  max-width: 80%;
  height: auto;
  max-height: 70%;
  object-fit: contain;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-card .product-body {
  padding: 1.75rem;
}

.product-card .product-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-red);
  border: 1px solid var(--accent-red-dim);
  border-radius: 3px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.9rem;
}

.product-card.flagship {
  border-color: var(--accent-red-dim);
  box-shadow: 0 0 40px rgba(230, 41, 58, 0.15);
}

.work-card {
  overflow: hidden;
  padding: 0;
}

.work-card .work-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.work-card .work-body {
  padding: 1.75rem;
}

.work-metric {
  color: var(--accent-red);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   Product detail / cinematic
   ========================================================================== */

.cinematic-band {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.cinematic-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.2) 0%, rgba(8, 8, 10, 0.95) 92%);
}

.cinematic-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  width: 100%;
}

.cinematic-tag {
  color: var(--accent-red);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.cinematic-title {
  font-family: var(--font-hero);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  text-shadow: 0 0 40px rgba(230, 41, 58, 0.35);
}

.cinematic-logo {
  width: min(560px, 80%);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(230, 41, 58, 0.35));
  margin-bottom: 0.5rem;
}

.cinematic-tagline {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--fg-muted);
  max-width: 600px;
}

.product-meta {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.product-meta div {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-faint);
}

.product-meta strong {
  display: block;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 0.25rem;
}

.prose {
  max-width: 720px;
  font-size: 1.05rem;
  white-space: pre-line;
}

/* ==========================================================================
   Studio page
   ========================================================================== */

.studio-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

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

.studio-block h3 {
  font-size: 1.5rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-red);
}

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

.field-validation-error, .text-danger {
  display: block;
  color: var(--accent-red);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.validation-summary-errors ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  color: var(--accent-red);
}

.alert-success {
  border: 1px solid var(--accent-red-dim);
  background: rgba(230, 41, 58, 0.08);
  color: var(--fg);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  max-width: 320px;
}

.footer-brand p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-red);
}

.footer-meta {
  color: var(--fg-faint);
  font-size: 0.85rem;
  width: 100%;
}

/* External link buttons (Steam, website, ...) */

.product-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-external {
  border: 1px solid var(--line-strong);
  color: var(--fg);
}

.btn-external:hover {
  border-color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.cinematic-actions {
  margin-top: 2rem;
}

.detail-external {
  width: 100%;
  margin-top: 1.5rem;
}

/* ==========================================================================
   Detail pages (product / service)
   ========================================================================== */

.detail-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  align-items: start;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--fg);
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.detail-panel {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-elevated);
  padding: 0.5rem 1.75rem;
}

.detail-panel-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-panel-row:last-child {
  border-bottom: none;
}

.detail-panel-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  white-space: nowrap;
}

.detail-panel-value {
  font-family: var(--font-display);
  font-weight: 600;
  text-align: right;
}

.detail-media {
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.detail-media img {
  display: block;
  width: 100%;
}

.detail-back {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

.detail-back:hover {
  color: var(--accent-red);
}

.cta-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band .section-heading {
  margin-left: auto;
  margin-right: auto;
}

.cta-band .section-intro {
  margin: 1rem auto 0;
}

.cta-band .hero-glow {
  top: auto;
  bottom: -60%;
  right: 30%;
}

.cta-band-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ==========================================================================
   Marquee band
   ========================================================================== */

.marquee-band {
  overflow: hidden;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.marquee-item {
  font-family: var(--font-hero);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--fg);
}

.marquee-item em {
  font-style: normal;
  color: var(--accent-red);
}

.marquee-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--fg-faint);
}

.marquee-star {
  color: var(--accent-red);
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .studio-block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

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

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 24px;
    gap: 1.25rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav-toggle-checkbox:checked ~ .site-nav {
    display: flex;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

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