/* ============================================================
   We Are Studio — Premium agency site
   Dark · cinematic · minimal · mobile-first
   ============================================================ */

:root {
  --bg: #0a0a09;
  --bg-2: #0e0e0d;
  --ink: #f2f0ea;
  --muted: #8a887f;
  --dim: #55534c;
  --line: rgba(242, 240, 234, 0.1);
  --wa: #25d366;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Film grain over everything, very subtle */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================ Buttons ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.btn--light { background: var(--ink); color: var(--bg); }
.btn--light:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.btn--wa { border-color: rgba(37, 211, 102, 0.5); color: var(--wa); background: transparent; }
.btn--wa:hover { background: var(--wa); border-color: var(--wa); color: #062b16; transform: translateY(-2px); }

/* ============================ Nav ============================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 210; /* above the fullscreen menu so logo + close stay visible */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background 0.5s ease, backdrop-filter 0.5s ease, padding 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 9, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
body.menu-open .nav {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.nav__logo sup { font-size: 0.5em; letter-spacing: 0; margin-left: 2px; }

.nav__links { display: none; gap: 2.4rem; }
.nav__links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s ease;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Burger */
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px; height: 44px;
  margin-right: -8px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 210;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.45s var(--ease), opacity 0.3s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* Fullscreen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 7, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  visibility: hidden;
  opacity: 0;
}
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__links a {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 9vw, 4.5rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  transition: color 0.35s ease, letter-spacing 0.45s var(--ease);
}
.menu__links a em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--dim);
}
.menu__links a:hover { color: var(--muted); letter-spacing: 0.02em; }
.menu__foot {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ============================ Hero ============================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
}

.hero__bg, .hero__shade, .hero__stars { position: absolute; inset: 0; }

.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: saturate(0.85) brightness(0.9);
}
.hero__shade {
  background:
    linear-gradient(to bottom, rgba(10,10,9,0.55) 0%, rgba(10,10,9,0.15) 35%, rgba(10,10,9,0.35) 70%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(10,10,9,0.5) 100%);
}
.hero__stars { z-index: 2; pointer-events: none; }

.hero__inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: calc(4.5rem + 6vh) var(--pad) 3rem;
}

.hero__headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  line-height: 1.14;
  letter-spacing: 0.005em;
  max-width: 14ch;
}
.hero__headline .line { display: block; overflow: hidden; }
.hero__headline .line > span { display: block; }

.hero__brand {
  margin: auto 0;
  padding: 4vh 0;
  text-align: center;
  user-select: none;
}
.hero__brand-word {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  margin-right: -0.06em; /* optically recenter tracked type */
  white-space: nowrap;
  background: linear-gradient(180deg, #fdfcf8 20%, rgba(253, 252, 248, 0.35) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__brand-sub {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
@media (min-width: 760px) {
  .hero__brand-sub { font-size: 0.7rem; letter-spacing: 0.42em; }
}

.hero__cta { text-align: center; margin-bottom: 6rem; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.hero__scroll span {
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll i {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  overflow: hidden;
  position: relative;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--ink));
  animation: scrollDrop 2.2s var(--ease) infinite;
}
@keyframes scrollDrop {
  0% { transform: translateY(0); }
  60%, 100% { transform: translateY(200%); }
}

/* ============================ Marquee ============================ */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 18vw;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.marquee__group span {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  padding: 0 1.6rem;
}
.marquee__group i { color: var(--dim); font-style: normal; font-size: 0.8rem; }

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

/* ============================ Sections (shared) ============================ */

.section { padding: clamp(5.5rem, 14vh, 10rem) var(--pad); }

.section__label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section__label::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--dim);
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.12;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.section__title em {
  font-style: italic;
  color: var(--muted);
}

/* ============================ About ============================ */

.about { background: var(--bg); }

.about__statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.6vw, 3.6rem);
  line-height: 1.35;
  max-width: 22ch;
}
.about__statement .w { color: var(--dim); transition: none; }

.about__meta {
  margin-top: clamp(3.5rem, 9vh, 6rem);
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(1.5rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  padding-top: 2.2rem;
}
.about__meta div { display: flex; flex-direction: column; gap: 0.3rem; }
.about__meta strong {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 500;
}
.about__meta span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================ Services ============================ */

.services { background: var(--bg-2); }

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg-2);
  padding: clamp(2rem, 5vw, 3.2rem);
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
}
.service:hover { background: #131311; }
.service__num {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--dim);
}
.service h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 500;
  margin: 1.4rem 0 0.9rem;
}
.service p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.service__line {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.service:hover .service__line { transform: scaleX(1); }

/* ============================ Portfolio ============================ */

.work { background: var(--bg); }

.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.project { display: block; }
.project__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
}
.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.88);
  transform: scale(1.02);
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.project:hover .project__media img {
  transform: scale(1.08);
  filter: saturate(1) brightness(1);
}
.project__info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.1rem;
}
.project__info h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 500;
}
.project__info span {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
}

/* ============================ Contact ============================ */

.contact {
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(60, 58, 48, 0.25), transparent),
    var(--bg-2);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.contact__copy { color: var(--muted); max-width: 42ch; margin-bottom: 2.4rem; }

.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;
}
.contact__mail {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.6vw, 1.9rem);
  font-style: italic;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3rem;
  transition: border-color 0.4s ease, color 0.4s ease;
}
.contact__mail:hover { border-color: var(--ink); }

/* Frosted glass form */
.form {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.form__row { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }

.form__field { display: flex; flex-direction: column; gap: 0.5rem; }
.form__field label {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.form__field input,
.form__field select,
.form__field textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.35s ease, background 0.35s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--dim); }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: rgba(242, 240, 234, 0.45);
  background: rgba(255, 255, 255, 0.06);
}
.form__field textarea { resize: vertical; min-height: 110px; }

.form__select { position: relative; }
.form__select::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 7px; height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.form__select select { cursor: pointer; }
.form__select select:invalid { color: var(--dim); }
.form__select option { background: #161614; color: var(--ink); }

.form__submit { justify-content: center; margin-top: 0.4rem; }
.form__submit:disabled { cursor: wait; }
.form__submit.is-done {
  background: transparent;
  border-color: rgba(37, 211, 102, 0.6);
  color: var(--wa);
  pointer-events: none;
}
.form__status {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ============================ Footer ============================ */

.footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  justify-content: space-between;
  padding: 2rem var(--pad) 2.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
}
.footer sup { font-size: 0.6em; }

/* ============================ WhatsApp float ============================ */

.wa-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 150;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.wa-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.45), 0 6px 16px rgba(0, 0, 0, 0.4);
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, 0.6);
  animation: waPulse 2.6s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* ============================ FAQ ============================ */

.faq__list {
  max-width: 760px;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding: 0 0 1.6rem;
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}
.faq__item p a { color: var(--ink); text-underline-offset: 3px; }

/* ============================ Reveal defaults ============================ */

/* Hidden only when JS is running and animations are allowed */
html.js:not(.no-anim) [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ============================ Breakpoints ============================ */

@media (min-width: 760px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }

  .hero__inner { padding-top: calc(5rem + 8vh); }

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

  .work__grid { grid-template-columns: 1fr 1fr; }
  .project:nth-child(even) { transform: translateY(clamp(2rem, 6vw, 5rem)); }

  .contact { grid-template-columns: 1fr 1fr; align-items: start; }

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

  .footer { flex-direction: row; text-align: left; }

  .wa-float { right: 1.8rem; bottom: 1.8rem; }
}

@media (min-width: 1100px) {
  .contact { grid-template-columns: 0.9fr 1.1fr; }
}

/* ============================ Reduced motion ============================ */

.webgl-failed .hero__stars {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
