/* ============================================
   STUDIO ONE — Stylesheet
   Palette: RAL9005 (#0A0A0A) → #FFFFFF (Grayscale)
   ============================================ */

:root {
  --c-bg: #0a0a0a;          /* RAL 9005 jet black */
  --c-bg-2: #111111;
  --c-bg-3: #1a1a1a;
  --c-line: #2a2a2a;
  --c-mute: #6b6b6b;
  --c-text-2: #a8a8a8;
  --c-text: #e5e5e5;
  --c-fg: #f5f5f5;
  --c-white: #ffffff;

  --f-display: 'Syne', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;

  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  cursor: none;
  min-height: 100vh;
}

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: none; background: none; border: none; color: inherit; }
::selection { background: var(--c-white); color: var(--c-bg); }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 32px; height: 32px;
  border: 1px solid var(--c-white);
  transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease);
}
.cursor-dot {
  width: 4px; height: 4px;
  background: var(--c-white);
}
.cursor.is-hover {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.08);
}
.cursor.is-view {
  width: 88px; height: 88px;
  background: var(--c-white);
}
.cursor.is-view::before {
  content: 'VIEW';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 12px; letter-spacing: .2em;
  color: var(--c-bg);
  mix-blend-mode: normal;
}
@media (max-width: 900px) {
  .cursor, .cursor-dot { display: none; }
}

/* ============================================
   GRAIN OVERLAY
   ============================================ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--pad);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10,10,10,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px var(--pad);
  border-bottom: 1px solid var(--c-line);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: .04em;
}
.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--c-text);
  font-size: 13px;
  letter-spacing: 0;
}
.nav__logo-text {
  font-size: 14px;
  letter-spacing: .25em;
  color: var(--c-fg);
}
.nav__links {
  display: flex;
  gap: 36px;
}
.nav__links a {
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-text-2);
  position: relative;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--c-white);
  transition: width .4s var(--ease);
}
.nav__links a:hover { color: var(--c-white); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 1px;
  background: var(--c-white);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__logo-text { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--f-display);
  font-size: clamp(40px, 10vw, 64px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--c-white);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.line {
  display: block;
  overflow: hidden;
}
.line__inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.is-in .line__inner,
.line.is-in .line__inner {
  transform: translateY(0);
}
/* staggered lines */
.line:nth-child(2) .line__inner { transition-delay: .1s; }
.line:nth-child(3) .line__inner { transition-delay: .2s; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-white);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn--primary {
  background: var(--c-white);
  color: var(--c-bg);
}
.btn--primary::before { background: var(--c-bg); }
.btn--primary:hover { color: var(--c-white); border-color: var(--c-white); }
.btn--ghost {
  border-color: var(--c-line);
  color: var(--c-text);
}
.btn--ghost:hover { color: var(--c-bg); border-color: var(--c-white); }
.btn--lg { padding: 24px 48px; font-size: 14px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.06), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,.04), transparent 50%),
    linear-gradient(180deg, var(--c-bg-2) 0%, var(--c-bg) 100%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .15;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 120px 0;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--c-text-2);
  margin-bottom: 32px;
  padding-left: 28px;
  position: relative;
}
.hero__eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 18px; height: 1px;
  background: var(--c-text-2);
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(56px, 12vw, 200px);
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--c-white);
  margin-bottom: 40px;
}
.hero__sub {
  max-width: 560px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--c-text-2);
  margin-bottom: 48px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--c-mute);
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--c-mute), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -30px; left: 0;
  width: 100%; height: 30px;
  background: linear-gradient(180deg, transparent, var(--c-white));
  animation: scroll-line 2.4s var(--ease) infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(0); }
  100% { transform: translateY(90px); }
}
.hero__meta {
  position: absolute;
  left: var(--pad);
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--c-mute);
  z-index: 2;
}
@media (max-width: 700px) {
  .hero__scroll, .hero__meta { display: none; }
  .hero__content { padding: 140px 0 100px; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
  padding: 28px 0;
  background: var(--c-bg-2);
}
.marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--f-display);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--c-text);
  align-items: center;
}
.marquee__track em {
  font-style: normal;
  color: var(--c-mute);
  font-size: 14px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   SECTION BASE
   ============================================ */
.section {
  padding: clamp(80px, 14vw, 180px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.section__head {
  margin-bottom: clamp(48px, 8vw, 100px);
}
.section__index {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 24px;
}
.section__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 120px);
  line-height: .95;
  letter-spacing: -.025em;
  color: var(--c-white);
}

/* ============================================
   ABOUT
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.about__text p {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.6;
  color: var(--c-text);
  margin-bottom: 24px;
}
.about__text p + p { color: var(--c-text-2); font-size: clamp(15px, 1.3vw, 18px); }
.about__stats {
  display: grid;
  gap: 32px;
  border-left: 1px solid var(--c-line);
  padding-left: clamp(24px, 4vw, 56px);
}
.stat {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 4px 16px;
}
.stat__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1;
  color: var(--c-white);
  letter-spacing: -.03em;
}
.stat__suf {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 28px);
  color: var(--c-text-2);
}
.stat__label {
  grid-column: 1 / -1;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-top: 8px;
}
@media (max-width: 800px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__stats { border-left: none; border-top: 1px solid var(--c-line); padding-left: 0; padding-top: 32px; }
}

/* ============================================
   SERVICES
   ============================================ */
.services__list {
  border-top: 1px solid var(--c-line);
}
.service {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--c-line);
  position: relative;
  transition: padding .5s var(--ease);
}
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.02), transparent);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.service:hover { padding-left: clamp(12px, 2vw, 32px); }
.service:hover::before { opacity: 1; }
.service__num {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--c-mute);
  font-weight: 500;
}
.service__body h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--c-white);
  margin-bottom: 12px;
  transition: transform .5s var(--ease);
}
.service:hover .service__body h3 { transform: translateX(8px); }
.service__body p {
  max-width: 580px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-2);
}
.service__arrow {
  font-size: 24px;
  color: var(--c-mute);
  text-align: right;
  transition: transform .5s var(--ease), color .5s var(--ease);
}
.service:hover .service__arrow { transform: translateX(12px); color: var(--c-white); }
@media (max-width: 700px) {
  .service { grid-template-columns: 50px 1fr 30px; }
  .service__arrow { font-size: 18px; }
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.work {
  position: relative;
  overflow: hidden;
  cursor: none;
}
.work__media {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--c-bg-3);
  position: relative;
  overflow: hidden;
  transition: transform .8s var(--ease);
}
.work--tall .work__media { aspect-ratio: 4/5; }
.work__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a2a2a 0%, #0f0f0f 50%, #1a1a1a 100%);
}
.work__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,.12), transparent 60%);
}
.work__media--1::before { background: linear-gradient(135deg, #1a1a1a, #050505 60%); }
.work__media--2::before { background: linear-gradient(160deg, #2c2c2c, #0a0a0a 70%); }
.work__media--3::before { background: linear-gradient(120deg, #3a3a3a, #111 65%); }
.work__media--4::before { background: linear-gradient(145deg, #1f1f1f, #000 75%); }
.work:hover .work__media { transform: scale(1.04); }
.work figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 20px;
  gap: 16px;
}
.work figcaption span {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--c-white);
  letter-spacing: -.01em;
}
.work figcaption em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-mute);
}
@media (max-width: 700px) {
  .portfolio__grid { grid-template-columns: 1fr; }
  .work--tall .work__media { aspect-ratio: 4/3; }
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: clamp(80px, 14vw, 180px) var(--pad);
  text-align: center;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%);
}
.cta__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 140px);
  line-height: .95;
  letter-spacing: -.025em;
  color: var(--c-white);
  margin-bottom: 48px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(32px, 4vw, 60px);
  border-top: 1px solid var(--c-line);
  padding-top: clamp(40px, 6vw, 60px);
}
.contact__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact__label {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 8px;
}
.contact__col p,
.contact__col a {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--c-fg);
}
.contact__col a {
  position: relative;
  width: fit-content;
  transition: color .3s var(--ease);
}
.contact__col a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--c-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.contact__col a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 800px) {
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: clamp(60px, 8vw, 100px) var(--pad) 32px;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 80px);
  margin-bottom: 60px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__mark {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--c-white);
  line-height: 1;
}
.footer__tag {
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__head {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 8px;
}
.footer__cols a, .footer__cols p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  transition: color .3s var(--ease);
}
.footer__cols a:hover { color: var(--c-white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--c-mute);
}
@media (max-width: 800px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .line__inner { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
