/* ===== Al1n Edits — styles ===== */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --card: #141414;
  --card-hover: #1a1a1a;
  --line: #242424;
  --line-2: #333333;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --dim: #6b6b6b;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--white); color: #000; }
.btn-primary:hover { background: #e6e6e6; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); background: rgba(255,255,255,.04); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,.75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 17px; }
.brand-logo { height: 38px; width: 38px; border-radius: 50%; border: 1px solid var(--line-2); object-fit: cover; }
.brand-logo.hidden { display: none; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero { padding: 150px 0 100px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px 6px 12px;
  margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5);} 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0);} 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0);} }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 800; }
.hero h1 em { font-size: 1.08em; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-tags { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.hero-character {
  position: relative; max-height: 540px; width: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 98%);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }

/* image placeholder when file is missing */
.img-missing {
  display: flex !important; align-items: center; justify-content: center;
  width: 100%; max-width: 360px; aspect-ratio: 4/5;
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  color: var(--dim); font-size: 13px; text-align: center; padding: 20px;
  background: var(--card);
}

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 56px; }
.kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); margin-bottom: 14px; font-weight: 600; }
.section h2 { font-size: clamp(34px, 4.4vw, 54px); }

/* ===== About ===== */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about-media {
  aspect-ratio: 4/5; display: flex; align-items: flex-end; justify-content: center;
}
.about-media img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
}
.about-media .img-missing { border: 0; max-width: none; height: 100%; aspect-ratio: auto; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { color: var(--muted); font-size: 17px; margin-bottom: 16px; max-width: 580px; }
.about-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 36px; }
.about-points div { background: var(--bg); padding: 22px 20px; }
.about-points strong { display: block; font-size: 20px; letter-spacing: -0.02em; }
.about-points span { font-size: 13px; color: var(--dim); }

/* ===== Work ===== */
.work-block + .work-block { margin-top: 80px; }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.work-title { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.work-head h3 { font-size: 26px; }
.work-sub { color: var(--dim); font-size: 14px; }

/* ===== Video sliders (one line, swipe / arrows) ===== */
.slider-nav { display: flex; gap: 8px; flex-shrink: 0; }
.slider-nav.hidden { visibility: hidden; }
.arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s;
}
.arrow svg { width: 18px; height: 18px; }
.arrow:hover:not(:disabled) { background: var(--white); color: #000; border-color: var(--white); }
.arrow:disabled { opacity: .3; cursor: default; }
.track {
  display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  padding-bottom: 4px;
}
.track::-webkit-scrollbar { display: none; }
.track > * { flex: 0 0 auto; scroll-snap-align: start; }
.track-short > .video-card { width: calc((100% - 4 * 20px) / 5); min-width: 160px; }
.track-long > .video-card { width: calc((100% - 20px) / 2); }
.track > .empty { width: 100%; }
.track.dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.track.dragging .video { pointer-events: none; }

.video-card { display: flex; flex-direction: column; gap: 14px; }
.video {
  position: relative; width: 100%; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); cursor: pointer;
}
.track-short .video { aspect-ratio: 9/16; }
.track-long .video { aspect-ratio: 16/9; }
picture { display: contents; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; opacity: .85; }
.video:hover img { transform: scale(1.04); opacity: 1; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: #000;
  display: grid; place-items: center; transition: transform .2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.play svg { width: 22px; height: 22px; margin-left: 3px; }
.video:hover .play { transform: translate(-50%,-50%) scale(1.08); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.5)); pointer-events: none; }

/* ===== Video popup ===== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 72px 24px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(18px) saturate(.8); -webkit-backdrop-filter: blur(18px) saturate(.8);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-frame {
  position: relative; width: min(1100px, 100%, calc((100vh - 144px) * 16 / 9)); aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
  transform: scale(.96); transition: transform .25s ease;
}
.modal-frame.is-short { width: min(420px, 100%, calc((100vh - 144px) * 9 / 16)); aspect-ratio: 9/16; }
.modal.open .modal-frame { transform: none; }
.modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.modal-close:hover { background: rgba(255,255,255,.2); }
.modal-close svg { width: 20px; height: 20px; }
.modal-lock, .modal-lock body { overflow: hidden; }
.modal-lock .fab { opacity: 0; pointer-events: none; }
.video-meta h4 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.video-meta p { font-size: 13px; color: var(--dim); margin-top: 2px; }

.empty {
  grid-column: 1 / -1; border: 1px dashed var(--line-2); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; color: var(--dim); font-size: 15px;
}

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: border-color .2s, background .2s; }
.step:hover { border-color: var(--line-2); background: var(--card-hover); }
.step-num { font-family: var(--serif); font-style: italic; font-size: 40px; color: var(--dim); line-height: 1; }
.step h3 { font-size: 20px; margin: 22px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== Reviews ===== */
/* Infinite reviews slider */
.reviews-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.reviews-track { display: flex; width: max-content; animation: reviews-loop var(--loop-dur, 30s) linear infinite; will-change: transform; }
.reviews-marquee.paused .reviews-track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .reviews-marquee:hover .reviews-track { animation-play-state: paused; } /* phones keep :hover after a tap, so only on mouse devices */
}
.reviews-group { display: flex; align-items: stretch; }
@keyframes reviews-loop { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.review {
  display: flex; flex-direction: column;
  width: 360px; flex: 0 0 auto; margin-right: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.review .reviewer { margin-top: auto; }
.review blockquote { margin-bottom: 22px; }
.stars { display: flex; gap: 3px; margin-bottom: 16px; color: #f5c518; }
.stars svg { width: 15px; height: 15px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.65; color: #dcdcdc; }
.reviewer { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--line-2); display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--text); flex-shrink: 0; }
.reviewer strong { display: block; font-size: 14px; }
.reviewer span { font-size: 13px; color: var(--dim); }

/* ===== FAQ ===== */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--muted); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; }

/* ===== Contact ===== */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 500px; transform: translateX(-50%); background: radial-gradient(ellipse at top, rgba(255,255,255,.08), transparent 65%); pointer-events: none; }
.contact-head { position: relative; max-width: 680px; margin: 0 auto 56px; }
.contact-head .lead { margin: 20px auto 0; }
.contact-cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; color: var(--text); font: inherit; cursor: pointer; width: 100%;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--card-hover); }
.c-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--white); color: #000; margin-bottom: 14px; }
.c-icon svg { width: 22px; height: 22px; }
.c-label { font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.c-value { font-size: 17px; font-weight: 600; word-break: break-all; }
.c-action { font-size: 14px; color: var(--muted); margin-top: 10px; }
.contact-card:hover .c-action { color: var(--text); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--dim); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.footer a:hover { color: var(--text); }

/* ===== Floating button ===== */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 22px; border-radius: 999px;
  background: var(--white); color: #000; font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.1);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s;
}
.fab svg { width: 20px; height: 20px; }
.fab.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab:hover { background: #e6e6e6; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 10px); z-index: 70;
  background: var(--white); color: #000; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-character, .dot { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { padding: 120px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 0; order: -1; }
  .hero-character { max-height: 300px; }
  .hero-art .img-missing { max-width: 240px; }
  .about, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 420px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .track { gap: 14px; margin-right: -24px; padding-right: 24px; scroll-padding-right: 24px; }
  .track-short > .video-card { width: 44%; min-width: 0; }
  .track-long > .video-card { width: 86%; }
  .steps, .contact-cards { grid-template-columns: 1fr; }
  .review { width: 280px; padding: 22px; margin-right: 14px; }
  .reviews-marquee { margin: 0 -24px; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .about-points { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .track { margin-right: -16px; padding-right: 16px; }
  .reviews-marquee { margin: 0 -16px; }
  .work-title { flex-direction: column; gap: 2px; }
  .arrow { width: 38px; height: 38px; }
  .fab span { display: none; }
  .fab { width: 54px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
  .footer-inner { flex-direction: column; }
}
