:root {
  --bg: #0a0a0a;
  --bg-2: #111;
  --fg: #f4f1ea;
  --fg-dim: #8a867d;
  --accent: #ff3b1f;
  --accent-2: #ffe45e;
  --border: rgba(244, 241, 234, 0.12);
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ───────── Background canvas ───────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.4;
}

main, header, footer { position: relative; z-index: 2; }

/* ───────── Custom cursor ───────── */
.cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(244, 241, 234, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
}
.cursor.active {
  width: 72px;
  height: 72px;
  background: var(--fg);
  border-color: var(--fg);
}
.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

/* ───────── Loader ───────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(40px, 8vw, 100px);
  letter-spacing: 0.02em;
}
.loader__bar {
  width: 200px;
  height: 1px;
  background: rgba(244,241,234,0.15);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--fg);
  animation: load 1.6s ease forwards;
}
@keyframes load { to { width: 100%; } }

/* ───────── Header ───────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  mix-blend-mode: difference;
}
.logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.logo span:first-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  margin-right: 2px;
}
.logo .dot { color: var(--accent); font-size: 28px; }
.nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__meta { font-size: 12px; color: var(--fg-dim); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7cffb2;
  box-shadow: 0 0 8px #7cffb2;
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }

/* ───────── Hero ───────── */
.hero {
  min-height: 100vh;
  padding: 160px 40px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__eyebrow {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(56px, 13vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 60px 0;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title em {
  font-size: 0.92em;
  color: var(--accent);
}

.hero__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__footer p {
  max-width: 420px;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
}
.hero__footer strong { color: var(--fg); font-weight: 500; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.btn-pill svg { width: 18px; height: 18px; transition: transform 0.4s; }
.btn-pill:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-pill:hover svg { transform: translateX(4px); }

/* ───────── Marquee ───────── */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 50px;
  animation: scroll 28s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(32px, 5vw, 68px);
  color: var(--fg);
}
.marquee__track span:nth-child(even) { color: var(--accent); font-family: var(--sans); font-style: normal; }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ───────── Section heads ───────── */
.section-head {
  padding: 140px 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(40px, 7vw, 120px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 70%;
}
.tag {
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
}

/* ───────── Work ───────── */
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 40px;
  padding: 0 40px 120px;
}
.card { display: block; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: radial-gradient(circle at 30% 30%, var(--c1), var(--c2) 70%);
  overflow: hidden;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.7'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.3'/></svg>");
  mix-blend-mode: overlay;
}
.card__num {
  position: absolute;
  bottom: 20px; left: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: rgba(255,255,255,0.9);
}
.card:hover .card__media { transform: scale(0.98); }
.card__info {
  padding: 20px 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.card__info h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.card__info p {
  font-size: 13px;
  color: var(--fg-dim);
  text-align: right;
}
.card:nth-child(even) { margin-top: 80px; }

/* ───────── Services list ───────── */
.services__list { list-style: none; padding: 0 40px 120px; }
.services__list li {
  display: grid;
  grid-template-columns: 60px 1fr 2fr 40px;
  align-items: center;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  transition: padding 0.5s, color 0.4s;
  position: relative;
  overflow: hidden;
}
.services__list li:last-child { border-bottom: 1px solid var(--border); }
.services__list .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--fg-dim);
}
.services__list h3 {
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.services__list p {
  color: var(--fg-dim);
  font-size: 15px;
  max-width: 420px;
}
.services__list .arrow { font-size: 24px; color: var(--fg-dim); transition: transform 0.5s, color 0.4s; }
.services__list li:hover { padding-left: 24px; }
.services__list li:hover h3 { color: var(--accent); }
.services__list li:hover .arrow { transform: rotate(-45deg); color: var(--accent); }

/* ───────── About ───────── */
.about { padding: 140px 40px 120px; max-width: 1400px; }
.about .tag { display: block; margin-bottom: 40px; }
.about__text {
  font-size: clamp(28px, 4vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 1200px;
}
.about__text em { color: var(--accent); }
.about__stats {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.about__stats div { display: flex; flex-direction: column; gap: 6px; }
.about__stats strong {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(50px, 7vw, 110px);
  font-weight: 400;
  line-height: 1;
}
.about__stats span { font-size: 13px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.06em; }

/* ───────── Contact ───────── */
.contact {
  padding: 180px 40px 160px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.contact .tag { margin-bottom: 40px; }
.contact__title {
  font-size: clamp(50px, 10vw, 180px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 60px;
}
.contact__title em { color: var(--accent); }
.contact__mail {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  transition: color 0.4s, border-color 0.4s;
}
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }

.contact__wa {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 50px;
  padding: 20px 34px;
  border-radius: 999px;
  background: #25d366;
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.4s, box-shadow 0.4s, background 0.4s;
}
.contact__wa svg { width: 22px; height: 22px; }
.contact__wa:hover {
  background: #1ebe57;
  box-shadow: 0 20px 60px -20px rgba(37, 211, 102, 0.6);
}

/* ───────── Floating WhatsApp button ───────── */
.wa-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  box-shadow: 0 12px 40px -10px rgba(37, 211, 102, 0.55),
              0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.4s ease-out infinite;
  transition: transform 0.4s, background 0.4s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #1ebe57; transform: scale(1.08); }
@keyframes wa-pulse {
  0%   { box-shadow: 0 12px 40px -10px rgba(37, 211, 102, 0.55), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 12px 40px -10px rgba(37, 211, 102, 0.55), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 12px 40px -10px rgba(37, 211, 102, 0.55), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ───────── Footer ───────── */
.footer {
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-dim);
}
.socials { display: flex; gap: 24px; }
.socials a:hover { color: var(--fg); }

/* ───────── Reveal animation ───────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ───────── Responsive ───────── */
@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
  .header { padding: 20px; }
  .header__meta { display: none; }
  .nav { gap: 18px; font-size: 12px; }
  .hero { padding: 120px 20px 60px; }
  .hero__title { margin: 40px 0; }
  .section-head { padding: 80px 20px 40px; }
  .section-head h2 { max-width: 100%; }
  .work__grid { grid-template-columns: 1fr; padding: 0 20px 80px; gap: 40px; }
  .card:nth-child(even) { margin-top: 0; }
  .services__list { padding: 0 20px 80px; }
  .services__list li {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 10px 20px;
    padding: 28px 0;
  }
  .services__list li p { grid-column: 2; }
  .services__list .arrow { display: none; }
  .about { padding: 80px 20px; }
  .about__stats { grid-template-columns: 1fr; gap: 30px; }
  .contact { padding: 120px 20px 100px; }
  .contact__wa { padding: 16px 26px; font-size: 14px; }
  .wa-float { width: 54px; height: 54px; right: 18px; bottom: 18px; }
  .wa-float svg { width: 26px; height: 26px; }
  .footer { flex-direction: column; text-align: center; padding: 30px 20px; }
}
