/* ─────────────────────────────────────────────────────────────
   Lucastro — site styles
   Built from the signed-off design handoff.
   Tokens via oklch (modern browsers) with hex fallback below.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #0f0c17;
  --fg: #f4f1f7;
  --dim: #9a93a4;
  --rule: #322b3d;
  --purple: #a965f0;
  --blue: #5996dd;
  --bg-deep: #0a0710;

  --gutter-d: 56px;
  --gutter-m: 20px;
}

@supports (color: oklch(0 0 0)) {
  :root {
    --bg: oklch(0.09 0.02 290);
    --fg: oklch(0.97 0.005 290);
    --dim: oklch(0.65 0.02 290);
    --rule: oklch(0.25 0.015 290);
    --purple: oklch(0.62 0.2 305);
    --blue: oklch(0.65 0.16 245);
    --bg-deep: oklch(0.06 0.02 290);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

.lc-art {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* ─────── HERO ─────── */

.hero {
  position: relative;
  height: 920px;
  overflow: hidden;
  isolation: isolate;
}

.hero picture {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(1.1) contrast(1.05) brightness(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(10, 7, 16, 0.35) 0%,
      rgba(10, 7, 16, 0.15) 35%,
      rgba(10, 7, 16, 0.65) 72%,
      rgba(10, 7, 16, 0.98) 100%
    ),
    radial-gradient(
      120% 80% at 80% 20%,
      rgba(169, 101, 240, 0.25) 0%,
      transparent 50%
    ),
    radial-gradient(
      80% 60% at 10% 80%,
      rgba(89, 150, 221, 0.2) 0%,
      transparent 55%
    );
}

@supports (background: color-mix(in oklch, white, black)) {
  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(10, 7, 16, 0.35) 0%,
        rgba(10, 7, 16, 0.15) 35%,
        rgba(10, 7, 16, 0.65) 72%,
        rgba(10, 7, 16, 0.98) 100%
      ),
      radial-gradient(
        120% 80% at 80% 20%,
        color-mix(in oklch, var(--purple) 25%, transparent) 0%,
        transparent 50%
      ),
      radial-gradient(
        80% 60% at 10% 80%,
        color-mix(in oklch, var(--blue) 20%, transparent) 0%,
        transparent 55%
      );
  }
}

.hero-nav {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 var(--gutter-d);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.ig-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid rgba(244, 241, 247, 0.2);
  border-radius: 999px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(244, 241, 247, 0.03);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.ig-badge:hover {
  border-color: rgba(244, 241, 247, 0.45);
  background: rgba(244, 241, 247, 0.06);
}

.hero-copy {
  position: absolute;
  bottom: 80px;
  left: var(--gutter-d);
  right: var(--gutter-d);
  z-index: 3;
}

.hero-sub {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.85;
  margin-bottom: 20px;
}

.hero-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 196px;
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 940px;
  color: var(--fg);
}

/* ─────── SHELL ─────── */

.shell {
  padding: 120px var(--gutter-d) 80px;
}

.block {
  padding-bottom: 0;
}

.about {
  padding-top: 0;
  padding-bottom: 120px;
}

.section-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: baseline;
  margin-bottom: 48px;
}

.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.section-title {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 920px;
  color: var(--fg);
}

.indent {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
}

.about-body {
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  line-height: 1.55;
  color: var(--fg);
  opacity: 0.85;
  max-width: 720px;
  margin: 0;
  font-weight: 300;
  text-wrap: pretty;
}

/* ─────── Services ─────── */

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.service-card {
  padding: 56px 48px;
  position: relative;
  min-height: 360px;
}

.service-card-right {
  border-left: 1px solid var(--rule);
}

.service-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.service-tag-purple {
  color: var(--purple);
}

.service-tag-blue {
  color: var(--blue);
}

.service-title {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 56px;
  margin: 28px 0 24px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.service-body {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dim);
  margin: 0;
  max-width: 480px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 2.4;
  opacity: 0.85;
}

/* ─────── Selected work (v2) ─────── */

.media-section {
  padding: 40px 0 120px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.media-card {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.media-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 2px;
  z-index: 3;
}

.audio-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.audio-card {
  background: linear-gradient(90deg, var(--bg), #1a1626);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

@supports (background: color-mix(in oklch, white, black)) {
  .audio-card {
    background: linear-gradient(
      90deg,
      var(--bg),
      color-mix(in oklch, var(--bg) 70%, var(--purple))
    );
  }
}

.audio-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  min-width: 130px;
}

.audio-tag-purple {
  color: var(--purple);
}

.audio-tag-blue {
  color: var(--blue);
}

.audio-title {
  flex: 1;
  color: var(--dim);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
}

.meter-purple {
  color: var(--purple);
}

.meter-blue {
  color: var(--blue);
}

/* ─────── CTA ─────── */

.cta {
  padding: 160px 0 120px;
  text-align: left;
  position: relative;
}

.cta-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 32px;
}

.cta-big {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 130px;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
  text-decoration: none;
  color: var(--fg);
  display: inline-block;
  background: linear-gradient(
    95deg,
    var(--fg) 0%,
    var(--fg) 60%,
    var(--purple) 95%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 300ms ease;
}

.cta-big:hover {
  filter: brightness(1.15);
}

.cta-tagline {
  margin: 40px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg);
  opacity: 0.85;
  font-weight: 300;
  max-width: 720px;
}

/* ─────── Footer ─────── */

.footer {
  padding: 32px var(--gutter-d);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: inline-flex;
  gap: 24px;
}

/* ─────── Shared utilities (from handoff site.css) ─────── */

@keyframes lc-rise {
  from {
    transform: translateY(28px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes lc-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lc-rise > * {
  animation: lc-rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.lc-rise > *:nth-child(2) {
  animation-delay: 0.12s;
}
.lc-rise > *:nth-child(3) {
  animation-delay: 0.22s;
}
.lc-rise > *:nth-child(4) {
  animation-delay: 0.32s;
}
.lc-rise > *:nth-child(5) {
  animation-delay: 0.42s;
}

.lc-fade {
  animation: lc-fade 1.4s ease-out both;
  animation-delay: 0.4s;
}

.lc-link {
  position: relative;
  text-decoration: none;
  color: inherit;
  display: inline-block;
}
.lc-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.6, 0.2, 0.2, 1);
}
.lc-link:hover::after {
  transform: scaleX(0);
  transform-origin: left;
}

@keyframes lc-bar {
  0%,
  100% {
    transform: scaleY(0.15);
  }
  50% {
    transform: scaleY(1);
  }
}

.lc-meter {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.lc-meter span {
  display: block;
  width: 3px;
  background: currentColor;
  transform-origin: bottom;
  animation: lc-bar 1.2s ease-in-out infinite;
  height: 100%;
}
.lc-meter span:nth-child(1) {
  animation-delay: 0s;
}
.lc-meter span:nth-child(2) {
  animation-delay: 0.1s;
}
.lc-meter span:nth-child(3) {
  animation-delay: 0.25s;
}
.lc-meter span:nth-child(4) {
  animation-delay: 0.4s;
}
.lc-meter span:nth-child(5) {
  animation-delay: 0.55s;
}

.lc-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  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='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 9 -4'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
}

.lc-embed {
  position: relative;
  background: linear-gradient(135deg, #2b2236, #1d1a2a);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@supports (background: color-mix(in oklch, white, black)) {
  .lc-embed {
    background: linear-gradient(
      135deg,
      color-mix(in oklch, var(--bg) 50%, var(--purple) 14%),
      color-mix(in oklch, var(--bg) 60%, var(--blue) 12%)
    );
  }
}
.lc-embed::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03) 0 1px,
    transparent 1px 12px
  );
  pointer-events: none;
}
.lc-embed-yt::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.lc-embed-yt .lc-play {
  position: relative;
  z-index: 2;
  width: 0;
  height: 0;
  border-left: 14px solid rgba(255, 255, 255, 0.85);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}

/* ─────── Reduced motion ─────── */
@media (prefers-reduced-motion: reduce) {
  .lc-rise > *,
  .lc-fade,
  .lc-meter span {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ─────── Responsive: fluid down to ~1024, then mobile at 760 ─────── */

@media (max-width: 1200px) {
  .hero-title {
    font-size: clamp(120px, 14vw, 196px);
  }
  .section-title {
    font-size: clamp(44px, 5vw, 64px);
  }
  .service-title {
    font-size: clamp(40px, 4.5vw, 56px);
  }
  .cta-big {
    font-size: clamp(72px, 10vw, 130px);
  }
}

@media (max-width: 1024px) {
  .shell {
    padding: 96px 40px 64px;
  }
  .hero-nav,
  .footer {
    padding-left: 40px;
    padding-right: 40px;
  }
  .hero-copy {
    left: 40px;
    right: 40px;
  }
  .section-head,
  .indent {
    grid-template-columns: 140px 1fr;
    gap: 32px;
  }
  .service-card {
    padding: 40px 32px;
  }
  .about-body {
    font-size: 20px;
  }
}

@media (max-width: 760px) {
  /* Hero — mobile */
  .hero {
    height: 420px;
  }
  .hero-img {
    object-position: 32% 28%;
    filter: saturate(1.08) contrast(1.04) brightness(0.88);
  }
  .hero-nav {
    top: 20px;
    padding: 0 var(--gutter-m);
  }
  .brand {
    font-size: 18px;
  }
  .ig-badge {
    font-size: 10px;
    padding: 5px 10px;
    letter-spacing: 0.18em;
  }
  .hero-copy {
    bottom: 40px;
    left: var(--gutter-m);
    right: var(--gutter-m);
  }
  .hero-sub {
    font-size: 11px;
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: 76px;
    letter-spacing: -0.05em;
    margin-left: -5px;
  }

  /* Shell */
  .shell {
    padding: 34px var(--gutter-m) 48px;
  }
  .about {
    padding-bottom: 64px;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }
  .section-label {
    font-size: 10px;
    margin-bottom: 0;
  }
  .section-title {
    font-size: 34px;
    line-height: 1.05;
  }
  .indent {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .indent > div:first-child {
    display: none;
  }
  .about-body {
    font-size: 16px;
    line-height: 1.55;
  }

  /* Services — single column with rules */
  .services {
    grid-template-columns: 1fr;
    border-top: none;
    border-bottom: none;
  }
  .service-card {
    padding: 28px 0;
    min-height: 0;
    border-top: 1px solid var(--rule);
    border-left: none;
  }
  .service-card-right {
    border-left: none;
    border-bottom: 1px solid var(--rule);
  }
  .service-tag {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .service-title {
    font-size: 38px;
    margin: 0 0 14px;
  }

  .service-body {
    font-size: 15px;
    margin: 0 0 18px;
  }
  .service-list {
    margin: 0;
    line-height: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .service-list li {
    font-size: 9px;
    letter-spacing: 0.15em;
    padding: 5px 9px;
    border: 1px solid var(--rule);
    border-radius: 99px;
    opacity: 0.9;
  }

  /* Selected work */
  .media-section {
    padding: 0 0 64px;
  }
  .media-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .media-tag {
    top: 10px;
    left: 10px;
    font-size: 9px;
    padding: 3px 7px;
  }
  .audio-stack {
    margin-top: 16px;
    gap: 10px;
  }
  .audio-card {
    padding: 14px 16px;
    gap: 12px;
  }
  .audio-tag {
    font-size: 10px;
    min-width: 64px;
  }
  .audio-title {
    font-size: 13px;
    color: var(--fg);
    opacity: 0.9;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* CTA */
  .cta {
    padding: 32px 0 64px;
  }
  .cta-kicker {
    font-size: 10px;
    margin-bottom: 16px;
  }
  .cta-big {
    font-size: 36px;
    line-height: 0.98;
    letter-spacing: -0.035em;
    word-break: break-word;
  }
  .cta-tagline {
    font-size: 14px;
    margin-top: 20px;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px var(--gutter-m) 32px;
    font-size: 9px;
    letter-spacing: 0.18em;
  }
  .footer-links {
    gap: 14px;
    flex-wrap: wrap;
  }
}
