/* ============================================
   Jhay2unez Creative Studio
   Analog studio aesthetic: brass, walnut, tape
   ============================================ */

:root {
  --bg: #0c0a08;
  --bg-alt: #14100b;
  --panel: #1c170f;
  --panel-2: #241d13;
  --border: rgba(201, 162, 75, 0.18);
  --border-strong: rgba(201, 162, 75, 0.34);

  --ink: #f4ede0;
  --ink-muted: #b9ac91;
  --ink-faint: #8c7f66;

  --brass: #ff8b45;
  --brass-bright: #ffb477;
  --ember: #d6532c;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max-width: 1160px;
  --header-h: 76px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

section[id] {
  scroll-margin-top: 96px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 15% -10%, rgba(201, 162, 75, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(179, 73, 46, 0.06), transparent 55%);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: #17130c;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12, 10, 8, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  width: clamp(230px, 25vw, 330px);
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--brass);
  color: #17130c !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--brass-bright);
  color: #17130c !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: 0.25s;
}

/* ---------- Shared type ---------- */
.kicker {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--brass);
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 22px;
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.14);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 em, h2 em {
  font-style: italic;
  color: var(--brass-bright);
  font-weight: 500;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-lede {
  color: var(--ink-muted);
  font-size: 1.02rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brass);
  color: #17130c;
}

.btn-primary:hover {
  background: var(--brass-bright);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 720px;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 96px;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: -3;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.12) brightness(0.56);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.96) 0%, rgba(8, 7, 6, 0.79) 48%, rgba(8, 7, 6, 0.58) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero-lede {
  color: var(--ink-muted);
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-panel {
  position: relative;
  display: flex;
  justify-content: center;
}

.panel-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.session-card {
  width: min(100%, 400px);
  padding: 26px 24px 24px;
}

.session-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fbf73;
  box-shadow: 0 0 8px rgba(111, 191, 115, 0.7);
}

.channel-meter {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 150px;
  padding: 18px 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 22px;
}

.channel-meter span {
  width: 10%;
  height: var(--h);
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--brass-bright), var(--ember));
  animation: meter-flow 1.15s ease-in-out infinite alternate;
  transform-origin: bottom;
  box-shadow: 0 0 14px rgba(230, 197, 121, 0.25);
}

.channel-meter span:nth-child(2) { animation-delay: -0.85s; }
.channel-meter span:nth-child(3) { animation-delay: -0.35s; }
.channel-meter span:nth-child(4) { animation-delay: -1.05s; }
.channel-meter span:nth-child(5) { animation-delay: -0.55s; }
.channel-meter span:nth-child(6) { animation-delay: -0.15s; }
.channel-meter span:nth-child(7) { animation-delay: -0.7s; }

@keyframes meter-flow {
  0% { transform: scaleY(0.28); opacity: 0.68; }
  45% { transform: scaleY(0.92); opacity: 1; }
  100% { transform: scaleY(0.48); opacity: 0.82; }
}

.session-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.session-stats div {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 12px;
}

.session-stats dt {
  font-size: 0.7rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.session-stats dd {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brass-bright);
}

.note-card {
  position: absolute;
  right: -8px;
  bottom: -26px;
  padding: 18px 20px;
  max-width: 210px;
}

.note-label {
  font-size: 0.72rem;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 6px;
}

.note-body {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.about {
  background: var(--bg-alt);
}

.services,
.founder {
  background: var(--bg);
}

.studio,
.contact {
  background: var(--bg-alt);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 20px;
}

.about-copy p {
  color: var(--ink-muted);
  margin-bottom: 18px;
  font-size: 1.03rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
}

.stat dt {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.stat dd {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--brass-bright);
}

/* ---------- Services: channel list ---------- */
.channel-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.channel-row {
  display: flex;
  gap: 16px;
  align-items: start;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.channel-row:hover {
  border-color: var(--border-strong);
  background: var(--panel);
  transform: translateY(-2px);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  flex-shrink: 0;
}

.channel-icon svg {
  width: 20px;
  height: 20px;
}

.channel-copy h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.channel-copy p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Studio gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
}

.gallery-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item video {
  display: block;
  background: #080706;
}

.gallery-video::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--ink);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
}

.gallery-item.img-missing img {
  display: none;
}

.gallery-item.img-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(201, 162, 75, 0.06) 0 12px, transparent 12px 24px),
    var(--panel-2);
}

.gallery-item.img-missing::before {
  content: "Add your photo here";
  color: var(--ink-faint);
  font-size: 0.85rem;
  text-align: center;
  padding: 0 20px;
}

.gallery-item.img-missing figcaption {
  background: none;
  position: static;
  margin-top: auto;
}

/* ---------- Credits ---------- */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.credit-card {
  position: relative;
  isolation: isolate;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.credit-card::before,
.credit-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}

.credit-card::before {
  background: var(--art) center / cover no-repeat;
  transition: transform 0.5s ease;
}

.credit-card::after {
  background: linear-gradient(0deg, rgba(5, 4, 3, 0.98) 0%, rgba(5, 4, 3, 0.52) 48%, rgba(5, 4, 3, 0.05) 78%);
}

.credit-card:hover {
  transform: translateY(-5px);
  border-color: var(--brass);
}

.credit-card:hover::before {
  transform: scale(1.04);
}

.credit-artist {
  font-size: 0.82rem;
  color: var(--brass-bright);
  font-weight: 600;
}

.credit-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.credits-note {
  margin-top: 30px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  max-width: 680px;
}

/* ---------- Founder ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 52px;
  align-items: center;
}

.founder-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-portrait.img-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(201, 162, 75, 0.06) 0 12px, transparent 12px 24px),
    var(--panel-2);
}

.founder-portrait.img-missing::before {
  content: "Founder photo";
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.founder-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 6px;
}

.founder-alias {
  color: var(--brass);
  font-weight: 500;
  margin-bottom: 22px;
}

.founder-copy p {
  color: var(--ink-muted);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.founder-copy .btn {
  margin-top: 8px;
}

.founder-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

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

.contact-x {
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 17px 18px;
  transition: border-color 0.2s, transform 0.15s;
}

.contact-card:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
}

.contact-icon {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-label {
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.2;
}

.contact-value {
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
  font-size: 0.9rem;
  line-height: 1.3;
}

.contact {
  padding-top: 72px;
  padding-bottom: 72px;
}

.contact .section-head {
  margin-bottom: 30px;
}

.contact-footnote {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand .brand-mark {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-brand .brand-sub {
  margin-left: 6px;
}

.footer-logo {
  width: min(100%, 300px);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--brass);
}

.copyright {
  width: 100%;
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav {
    gap: 18px;
  }

  .hero-grid,
  .about-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    margin-top: 20px;
  }

  .about-stats {
    max-width: 420px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 200px);
  }

  .gallery-feature {
    grid-column: span 2;
    grid-row: span 1;
  }

  .credits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .founder-portrait {
    max-width: 320px;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }

  .brand {
    width: 210px;
  }

  .credits-grid {
    grid-template-columns: 1fr;
  }

  .channel-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .credit-card {
    min-height: 360px;
  }

  .header {
    height: 68px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(12, 10, 8, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
    gap: 16px;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    padding: 4px 0;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding-top: calc(var(--header-h) + 36px);
  }

  .section {
    padding: 72px 0;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 220px);
  }

  .gallery-feature {
    grid-column: span 1;
  }

  .note-card {
    position: static;
    margin-top: -14px;
    max-width: none;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
  }
}
