/* =============================================================
   SIGNAL / STUDIO — landing page
   ============================================================= */

:root {
  --bg: #0a0908;
  --bg-soft: #110f0d;
  --fg: #f1ece4;
  --fg-mute: #a39d92;
  --fg-dim: #6f6a62;
  --line: rgba(241, 236, 228, 0.12);
  --line-strong: rgba(241, 236, 228, 0.22);
  --accent: #ff4d1c;
  --accent-soft: rgba(255, 77, 28, 0.18);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--bg);
}

body {
  background: transparent;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  cursor: none;
}

@media (max-width: 900px) {
  body { cursor: auto; }
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }

/* =============================================================
   BACKGROUND IMAGE — drop your hero.jpg in the project folder.
   Adjusts automatically: faded, desaturated, blended.
   ============================================================= */

.bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.bg__image {
  position: absolute;
  inset: -3%;
  background-image: url('bg-img.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: contrast(1.15) brightness(1) saturate(0.6) blur(0.4px);
  opacity: 0.75;
  transform: scale(1.05);
  animation: slow-drift 26s var(--ease) infinite alternate;
}

.bg__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 45%, transparent 0%, transparent 28%, rgba(10, 9, 8, 0.55) 70%, var(--bg) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.7) 0%, transparent 20%, transparent 55%, rgba(10, 9, 8, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 9, 8, 0.55), transparent 18%, transparent 82%, rgba(10, 9, 8, 0.55)),
    radial-gradient(circle at 70% 60%, rgba(255, 77, 28, 0.06), transparent 45%);
}

.bg__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(241, 236, 228, 0.018) 2px,
    rgba(241, 236, 228, 0.018) 3px
  );
  pointer-events: none;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241, 236, 228, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 236, 228, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

@keyframes slow-drift {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

/* film grain */
.grain {
  position: fixed;
  inset: -10%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain 700ms steps(2) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -1%); }
  75%  { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}

/* =============================================================
   CUSTOM CURSOR
   ============================================================= */

.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor__ring {
  position: absolute;
  width: 36px; height: 36px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 220ms var(--ease), height 220ms var(--ease), opacity 220ms;
}

.cursor__dot {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--fg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor__label {
  position: absolute;
  top: 22px; left: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--fg);
  white-space: nowrap;
  opacity: 0.85;
}

.cursor.is-hover .cursor__ring {
  width: 64px; height: 64px;
  border-color: var(--accent);
  background: rgba(255, 77, 28, 0.08);
}

@media (max-width: 900px) {
  .cursor { display: none; }
}

/* =============================================================
   NAV
   ============================================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--gutter);
  font-size: 13px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.62) 0%, rgba(10, 9, 8, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: border-color 400ms var(--ease), background 400ms var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 9, 8, 0.78);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 500;
}

.nav__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 77, 28, 0.18);
  animation: pulse 2.6s var(--ease) infinite;
}

.nav__name {
  letter-spacing: 0.18em;
  font-weight: 600;
}

.nav__suffix {
  color: var(--fg-dim);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 0;
  transition: color 220ms;
}

.nav__num {
  font-size: 9px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  transform: translateY(-6px);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 2px;
  height: 1px;
  background: var(--accent);
  transition: right 320ms var(--ease);
}

.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { right: 0; }

.nav__meta {
  justify-self: end;
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fg-mute);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.status__dot {
  width: 6px; height: 6px;
  background: #5fff95;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(95, 255, 149, 0.6);
  animation: pulse 1.6s var(--ease) infinite;
}

.nav__time {
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
}

/* =============================================================
   HERO
   ============================================================= */

.hero {
  position: relative;
  padding: 140px var(--gutter) 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__rule {
  position: absolute;
  top: 90px; left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: var(--line);
}

.hero__top, .hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__top { padding-bottom: 60px; align-items: flex-start; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

.tag__bullet {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.tag--right { color: var(--fg-dim); font-variant-numeric: tabular-nums; }

/* Title */
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 13vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
}

.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line:nth-child(2) {
  padding-left: clamp(30px, 8vw, 140px);
  color: var(--fg);
}

.hero__line:nth-child(3) {
  padding-left: clamp(60px, 16vw, 280px);
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  position: relative;
}

.hero__title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.18em;
  height: 0.06em;
  background: var(--accent);
  transform-origin: left;
  animation: drawline 1.6s var(--ease-out) 0.8s both;
}

@keyframes drawline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero__word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: word-up 1s var(--ease-out) forwards;
}

[data-stagger] .hero__line:nth-child(1) .hero__word:nth-child(1) { animation-delay: 0.10s; }
[data-stagger] .hero__line:nth-child(1) .hero__word:nth-child(2) { animation-delay: 0.20s; }
[data-stagger] .hero__line:nth-child(2) .hero__word:nth-child(1) { animation-delay: 0.30s; }
[data-stagger] .hero__line:nth-child(2) .hero__word:nth-child(2) { animation-delay: 0.40s; }
[data-stagger] .hero__line:nth-child(3) .hero__word:nth-child(1) { animation-delay: 0.55s; }
[data-stagger] .hero__line:nth-child(3) .hero__word:nth-child(2) { animation-delay: 0.65s; }

@keyframes word-up {
  0%   { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Hero bottom */
.hero__bottom {
  margin-top: 120px;
  align-items: flex-end;
  gap: 80px;
}

.hero__lede {
  display: flex;
  gap: 18px;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-mute);
}

.hero__index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding-top: 4px;
}

.hero__lede .ul {
  border-bottom: 1px solid var(--accent);
  color: var(--fg);
  padding-bottom: 1px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  transition: color 320ms var(--ease), border-color 320ms var(--ease);
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 480ms var(--ease);
  z-index: -1;
}

.btn:hover::before { transform: translateY(0); }

.btn--primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn--primary::before { background: var(--accent); }
.btn--primary:hover { color: var(--fg); border-color: var(--accent); }

.btn--ghost { color: var(--fg); }
.btn--ghost:hover { color: var(--bg); border-color: var(--accent); }

.btn__arrow {
  display: inline-flex;
  width: 18px; height: 18px;
  transition: transform 380ms var(--ease);
}

.btn:hover .btn__arrow { transform: translateX(4px); }

.btn__dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Live equalizer */
.hero__live {
  position: absolute;
  bottom: 32px; right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}

.live__tag, .live__bpm {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.live__tag { color: var(--accent); }

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

.eq span {
  display: block;
  width: 3px;
  background: var(--fg);
  border-radius: 1px;
  height: 30%;
  animation: eq 1.2s var(--ease) infinite;
  opacity: 0.85;
}

.eq span:nth-child(1)  { animation-delay: -0.10s; animation-duration: 0.9s; }
.eq span:nth-child(2)  { animation-delay: -0.30s; animation-duration: 1.2s; }
.eq span:nth-child(3)  { animation-delay: -0.50s; animation-duration: 0.7s; }
.eq span:nth-child(4)  { animation-delay: -0.20s; animation-duration: 1.4s; }
.eq span:nth-child(5)  { animation-delay: -0.40s; animation-duration: 0.8s; }
.eq span:nth-child(6)  { animation-delay: -0.60s; animation-duration: 1.0s; }
.eq span:nth-child(7)  { animation-delay: -0.15s; animation-duration: 1.1s; }
.eq span:nth-child(8)  { animation-delay: -0.35s; animation-duration: 0.9s; }
.eq span:nth-child(9)  { animation-delay: -0.55s; animation-duration: 1.3s; }
.eq span:nth-child(10) { animation-delay: -0.05s; animation-duration: 0.7s; }
.eq span:nth-child(11) { animation-delay: -0.45s; animation-duration: 1.5s; }
.eq span:nth-child(12) { animation-delay: -0.25s; animation-duration: 0.9s; }
.eq span:nth-child(13) { animation-delay: -0.65s; animation-duration: 1.0s; }
.eq span:nth-child(14) { animation-delay: -0.10s; animation-duration: 0.8s; }
.eq span:nth-child(15) { animation-delay: -0.50s; animation-duration: 1.2s; }
.eq span:nth-child(16) { animation-delay: -0.30s; animation-duration: 0.9s; }

@keyframes eq {
  0%, 100% { height: 20%; background: var(--fg); }
  50%      { height: 100%; background: var(--accent); }
}

@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .hero__live { position: static; margin-top: 60px; flex-wrap: wrap; }
  .hero__line:nth-child(2),
  .hero__line:nth-child(3) { padding-left: 0; }
}

/* =============================================================
   MARQUEE
   ============================================================= */

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 9, 8, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding: 22px 0;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 5vw, 56px);
  animation: marquee 40s linear infinite;
}

.marquee__track .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================
   SECTION HEAD
   ============================================================= */

.section__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 80px var(--gutter) 40px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}

.section__num { color: var(--fg-dim); }
.section__label { color: var(--fg); text-transform: uppercase; letter-spacing: 0.12em; }
.section__rule { flex: 1; height: 1px; background: var(--line); }

/* =============================================================
   MANIFESTO
   ============================================================= */

.manifesto {
  padding-bottom: 80px;
}

.manifesto__body {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 1100px;
  padding: 0 var(--gutter);
  color: var(--fg);
}

.manifesto__body em {
  font-style: italic;
  color: var(--accent);
}

.manifesto__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 80px var(--gutter) 0;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}

.pillar {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid transparent;
  transition: border-color 400ms var(--ease);
}

.pillar:hover { border-top-color: var(--accent); }

.pillar__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
}

.pillar__title {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.pillar__body {
  margin-top: 12px;
  color: var(--fg-mute);
  font-size: 14.5px;
  max-width: 38ch;
}

.pillar__body em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg);
}

@media (max-width: 900px) {
  .manifesto__pillars { grid-template-columns: 1fr; gap: 40px; }
}

/* =============================================================
   SERVICES
   ============================================================= */

.services { padding-bottom: 80px; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
}

.service {
  position: relative;
  padding: 36px 32px 36px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 360ms var(--ease);
  overflow: hidden;
}

.service:nth-child(3n) { border-right: none; }

.service::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 0;
  background: var(--accent-soft);
  transition: height 480ms var(--ease);
  z-index: -1;
}

.service:hover::before { height: 100%; }

.service__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.service__id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}

.service__icon {
  width: 36px;
  height: 36px;
  color: var(--fg);
  transition: color 360ms, transform 700ms var(--ease);
}

.service:hover .service__icon {
  color: var(--accent);
  transform: rotate(90deg);
}

.service__title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
}

.service__body {
  color: var(--fg-mute);
  font-size: 14px;
  max-width: 38ch;
  margin-bottom: 24px;
}

.service__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.service__tags li {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

@media (max-width: 1000px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(3n) { border-right: 1px solid var(--line); }
  .service:nth-child(2n) { border-right: none; }
}

@media (max-width: 700px) {
  .services__grid { grid-template-columns: 1fr; }
  .service { border-right: none !important; }
}

/* =============================================================
   WORK / CASES
   ============================================================= */

.work { padding-bottom: 80px; }

.work__list {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 40px var(--gutter) 0;
}

.case {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: center;
}

.case--reverse { grid-template-columns: 1fr 1.6fr; }
.case--reverse .case__media { order: 2; }
.case--reverse .case__meta  { order: 1; }

.case__media {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  transform: translateY(0) scale(1);
  transition: transform 700ms var(--ease), border-color 400ms;
}

.case__media:hover {
  transform: translateY(-6px) scale(1.005);
  border-color: var(--accent);
}

.case__chrome {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.case__chrome span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.case__visual {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  overflow: hidden;
}

.case__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.02em;
  line-height: 1;
  z-index: 2;
}

.case__sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  margin-top: 8px;
  z-index: 2;
}

/* visual A — Jelly Crystal banner */
.case__media--a {
  aspect-ratio: 1901 / 939;
}

.case__visual--a {
  background: url('') center / cover no-repeat var(--bg);
  filter: saturate(0.92) brightness(0.95);
  transition: transform 1.6s var(--ease), filter 600ms var(--ease);
}

.case__visual--a::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 9, 8, 0.35) 0%,
      transparent 18%,
      transparent 55%,
      rgba(10, 9, 8, 0.95) 100%),
    linear-gradient(90deg,
      rgba(10, 9, 8, 0.7) 0%,
      transparent 15%,
      transparent 85%,
      rgba(10, 9, 8, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.case__visual--a::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241, 236, 228, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 236, 228, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image:
    radial-gradient(ellipse 70% 65% at 50% 45%, transparent 0%, black 95%);
  -webkit-mask-image:
    radial-gradient(ellipse 70% 65% at 50% 45%, transparent 0%, black 95%);
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

.case__media--a:hover .case__visual--a::after {
  background-image:
    linear-gradient(rgba(255, 77, 28, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 77, 28, 0.12) 1px, transparent 1px);
}

.case__media--a:hover .case__visual--a {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
}

.orb--a {
  width: 280px; height: 280px;
  background: var(--accent);
  top: -40px; right: -40px;
  animation: orb 12s var(--ease) infinite alternate;
}

.orb--b {
  width: 180px; height: 180px;
  background: #4d7cff;
  bottom: -30px; left: 30%;
  animation: orb 9s var(--ease) infinite alternate-reverse;
}

@keyframes orb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 20px) scale(1.15); }
}

/* visual B — Åskväder banner */
.case__media--b {
  aspect-ratio: 1902 / 939;
}

.case__visual--b {
  background: url('banner2.png') center / cover no-repeat var(--bg);
  filter: saturate(0.92) brightness(0.95);
  transition: transform 1.6s var(--ease), filter 600ms var(--ease);
}

.case__visual--b::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 9, 8, 0.35) 0%,
      transparent 18%,
      transparent 55%,
      rgba(10, 9, 8, 0.95) 100%),
    linear-gradient(90deg,
      rgba(10, 9, 8, 0.7) 0%,
      transparent 15%,
      transparent 85%,
      rgba(10, 9, 8, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.case__visual--b::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241, 236, 228, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 236, 228, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image:
    radial-gradient(ellipse 70% 65% at 50% 45%, transparent 0%, black 95%);
  -webkit-mask-image:
    radial-gradient(ellipse 70% 65% at 50% 45%, transparent 0%, black 95%);
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

.case__media--b:hover .case__visual--b {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}

.case__media--b:hover .case__visual--b::after {
  background-image:
    linear-gradient(rgba(255, 77, 28, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 77, 28, 0.12) 1px, transparent 1px);
}

/* visual C — vinyl */
.case__visual--c {
  background:
    radial-gradient(circle at 50% 50%, rgba(241, 236, 228, 0.04) 0%, transparent 60%),
    linear-gradient(135deg, #1a1410 0%, #0a0908 100%);
}

.vinyl {
  position: absolute;
  top: 50%; left: 50%;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, #0a0908 0px, #0a0908 2px, #1a1612 2px, #1a1612 3px),
    #0a0908;
  transform: translate(-50%, -50%);
  animation: spin 18s linear infinite;
  border: 1px solid var(--line-strong);
}

.vinyl__center {
  position: absolute;
  top: 50%; left: 50%;
  width: 32%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.vinyl__center::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  transform: translate(-50%, -50%);
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* meta */
.case__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}

.case__row span {
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
}

.case__row b {
  font-weight: 500;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
}

.case__link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  align-self: flex-start;
  position: relative;
  padding-bottom: 4px;
}

.case__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--fg);
  transform-origin: right;
  transition: transform 360ms var(--ease);
}

.case__link:hover { color: var(--accent); }
.case__link:hover::after {
  background: var(--accent);
  animation: line-cycle 600ms var(--ease) forwards;
}

@keyframes line-cycle {
  0%   { transform: scaleX(1); transform-origin: right; }
  50%  { transform: scaleX(0); transform-origin: right; }
  51%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

@media (max-width: 900px) {
  .case, .case--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .case--reverse .case__media { order: 0; }
  .case--reverse .case__meta { order: 1; }
}

/* =============================================================
   PROCESS
   ============================================================= */

.process { padding-bottom: 80px; }

.steps {
  list-style: none;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 100px 1fr 140px;
  gap: 40px;
  align-items: baseline;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 480ms var(--ease);
}

.step:hover { padding-left: 24px; }

.step::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 480ms var(--ease);
}

.step:hover::before { width: 16px; }

.step__num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

.step__content h3 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.step__content p {
  color: var(--fg-mute);
  font-size: 15px;
  max-width: 60ch;
}

.step__content em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg);
}

.step__time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .step {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }
  .step__time { grid-column: 1 / -1; text-align: left; }
}

/* =============================================================
   CONTACT
   ============================================================= */

.contact {
  padding-bottom: 60px;
}

.contact__inner {
  padding: 40px var(--gutter) 0;
  border-top: 1px solid var(--line);
}

.contact__pre {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--fg-mute);
  margin-bottom: 24px;
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 130px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--fg);
  position: relative;
  padding: 20px 0 30px;
  transition: color 320ms var(--ease);
}

.contact__mail-text { position: relative; }

.contact__mail-text::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 2px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease);
}

.contact__mail:hover { color: var(--accent); }
.contact__mail:hover .contact__mail-text::after {
  background: var(--accent);
  transform: scaleX(1);
}

.contact__mail-arrow {
  display: inline-flex;
  width: clamp(40px, 6vw, 80px);
  transition: transform 480ms var(--ease);
}

.contact__mail:hover .contact__mail-arrow { transform: translateX(20px); }

.contact__bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 60px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.contact__col p {
  font-size: 14px;
  color: var(--fg-mute);
  line-height: 1.55;
}

.contact__col em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg);
}

.contact__label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 14px;
}

.contact__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg);
  transition: color 280ms;
}

.contact__links a span {
  font-size: 11px;
  color: var(--fg-dim);
  transition: transform 320ms var(--ease), color 280ms;
}

.contact__links a:hover { color: var(--accent); }
.contact__links a:hover span { transform: translate(3px, -3px); color: var(--accent); }

.contact__np {
  display: flex;
  align-items: center;
  gap: 8px;
}

.np__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 1.6s var(--ease) infinite;
}

@media (max-width: 800px) {
  .contact__bottom { grid-template-columns: 1fr; gap: 32px; }
  .contact__mail { gap: 16px; flex-wrap: wrap; }
}

/* =============================================================
   FOOTER
   ============================================================= */

.foot {
  border-top: 1px solid var(--line);
  padding: 24px var(--gutter) 0;
  position: relative;
  overflow: hidden;
}

.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.foot__center { color: var(--fg-mute); }

.foot__big {
  font-family: var(--serif);
  font-size: clamp(120px, 28vw, 360px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--fg);
  text-align: center;
  padding: 30px 0 20px;
  background: linear-gradient(180deg, var(--fg) 0%, var(--fg-dim) 60%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}

@media (max-width: 700px) {
  .foot__row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* =============================================================
   REVEAL
   ============================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
