﻿:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --text: #ffffff;
  --dim: #9b9b9b;
  --faint: #262626;
  --gold: #ffffff;
  --wa: #ffffff;
  --serif: "Fira Sans", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Fira Sans", "Trebuchet MS", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(18px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: .95; letter-spacing: -0.02em; }
em { font-style: italic; color: var(--gold); }
p { margin: 0; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--text); color: var(--bg); padding: 8px 14px; }
.idx { display: block; font: 500 11px/1 var(--sans); letter-spacing: .3em; color: var(--gold); margin-bottom: 18px; }

/* Intro curtain */
.curtain {
  position: fixed; inset: 0; z-index: 300; background: var(--bg); display: grid; place-items: center;
  animation: curtain .7s cubic-bezier(.7,0,.2,1) 1.1s forwards;
}
.curtain span { font: 300 clamp(22px, 3.4vw, 40px)/1 var(--serif); letter-spacing: .14em; animation: inname 1s ease both; }
@keyframes inname { from { opacity: 0; letter-spacing: .3em; } to { opacity: 1; } }
@keyframes curtain { to { transform: translateY(-100%); visibility: hidden; } }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 40px; padding: 22px var(--pad);
  transition: background .4s, padding .4s;
}
.header.is-scrolled { background: rgba(10,10,10,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: 14px; padding-bottom: 14px; }
.logo { font: 300 19px/1 var(--serif); text-decoration: none; letter-spacing: .16em; white-space: nowrap; }
.logo i { font-style: normal; color: var(--gold); margin: 0 2px; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--text); opacity: .8; transition: opacity .25s, color .25s; }
.nav a:hover { opacity: 1; color: var(--gold); }
.header__book {
  background: none; border: 1px solid rgba(255,255,255,.4); padding: 10px 22px; cursor: pointer;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; transition: all .25s;
}
.header__book:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__panels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.hero__panels figure { margin: 0; overflow: hidden; background: var(--bg-2); }
.hero__panels img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: settle 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__panels figure:nth-child(1) img { animation-delay: 1.3s; }
.hero__panels figure:nth-child(2) img { animation-delay: 1.45s; }
.hero__panels figure:nth-child(3) img { animation-delay: 1.6s; }
@keyframes settle { to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,0) 45%, rgba(10,10,10,.88) 100%); }
.hero__content { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--pad) 30px; }
.hero__role { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero__name { font-size: clamp(30px, 9.4vw, 230px); line-height: .9; white-space: nowrap; letter-spacing: .03em; font-weight: 300; }
.hero__name span { display: inline-block; animation: up 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero__name span { animation-delay: 1.5s; }
.hero__name span + span { animation-delay: 1.65s; }
.hero__role { animation: up 1s ease 1.4s both; }
.no-intro .hero__panels img, .no-intro .hero__name span, .no-intro .hero__name em, .no-intro .hero__role { animation-delay: 0s !important; }
@keyframes up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.hero__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }
.hero__foot i { font-style: normal; color: var(--gold); margin: 0 8px; }
.hero__now { color: var(--gold); }
.scroll-cue { width: 1px; height: 34px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--gold); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { to { top: 100%; } }

/* Statement */
.statement { padding: clamp(100px, 16vw, 220px) var(--pad); text-align: center; }
.statement__text { font: 300 clamp(46px, 8vw, 128px)/1 var(--serif); letter-spacing: -0.02em; }
.statement__sub { color: var(--dim); margin-top: 28px; font-size: 15px; letter-spacing: .04em; }

/* Work */
.work { padding: 0 var(--pad) clamp(90px, 12vw, 170px); }
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; padding-bottom: 22px; border-bottom: 1px solid var(--faint); }
.work h2, .services h2 { font-size: clamp(48px, 7vw, 104px); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  background: none; border: 1px solid transparent; border-radius: 999px; padding: 8px 16px; cursor: pointer;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); transition: all .25s;
}
.filters button:hover { color: var(--text); }
.filters button[aria-selected="true"] { color: var(--bg); background: var(--gold); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; grid-auto-flow: dense; }
.grid button { all: unset; cursor: pointer; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.grid button.is-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.grid button.is-right { grid-column: 3 / span 2; }
.grid button:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.grid img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) brightness(.92); transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s, opacity .6s; opacity: 0; }
.grid img.is-loaded { opacity: 1; }
.grid button:hover img { transform: scale(1.05); filter: none; }
.grid .tag { position: absolute; left: 14px; bottom: 12px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--text); opacity: 0; transform: translateY(6px); transition: all .4s; }
.grid button:hover .tag { opacity: .9; transform: none; }
.grid button.is-out { display: none; }
.grid button.is-in { animation: fadein .6s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } }

.explore { display: flex; justify-content: center; margin-top: 48px; }
.explore .btn { align-self: auto; }
#exploreCount { color: var(--gold); }
.explore .btn:hover #exploreCount { color: var(--bg); }

/* Services */
.services { position: relative; padding: clamp(90px, 12vw, 170px) var(--pad); background: var(--bg-2); }
.services h2 { margin-bottom: 40px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--faint); }
.rows li { border-bottom: 1px solid var(--faint); }
.rows button, .rows a {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 70px 1fr auto 40px; align-items: baseline; gap: 20px; padding: 28px 0;
  transition: padding .4s, color .3s;
}
.rows button:focus-visible, .rows a:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.rows__n { font: italic 300 18px/1 var(--serif); color: var(--gold); }
.rows__t { font: 300 clamp(34px, 5.4vw, 76px)/1 var(--serif); letter-spacing: -0.02em; transition: transform .5s cubic-bezier(.2,.7,.2,1), color .3s; }
.rows__s { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.rows__a { font-size: 22px; color: var(--gold); text-align: right; transition: transform .4s; }
.rows li:hover .rows__t { transform: translateX(18px); font-style: italic; color: var(--gold); }
.rows li:hover .rows__a { transform: translateX(6px); }
.rows__float {
  position: fixed; left: 0; top: 0; z-index: 5; width: 240px; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-3deg); transition: opacity .3s, transform .3s;
}
.rows__float.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }

/* Workshops */
.workshops { display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; }
.workshops__img { margin: 0; overflow: hidden; }
.workshops__img img { width: 100%; height: 100%; object-fit: cover; }
.workshops__text { padding: clamp(60px, 9vw, 140px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.workshops h2 { font-size: clamp(56px, 7.5vw, 120px); margin-bottom: 30px; }
.workshops__text > p { color: var(--dim); font-size: 17px; max-width: 22em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 36px !important; }
.tags span { border: 1px solid var(--faint); padding: 7px 14px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; align-self: flex-start;
  min-height: 56px; padding: 0 32px; cursor: pointer; text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  background: var(--text); color: var(--bg); border: 1px solid var(--text); transition: all .3s;
}
.btn:hover { background: transparent; color: var(--text); }
.btn--ghost { background: none; color: var(--text); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.wa-ico { width: 18px; height: 18px; }

/* Contact */
.contact { padding: clamp(110px, 15vw, 220px) var(--pad) clamp(70px, 9vw, 120px); text-align: center; }
.contact__kicker { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.contact__kicker .idx { margin-bottom: 14px; }
.contact__big { font-size: clamp(88px, 19vw, 320px); line-height: .85; margin: 24px 0 48px; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact__actions .btn { align-self: auto; }
.contact__line { margin-top: 48px; color: var(--dim); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.contact__line a { color: var(--text); text-decoration: none; }
.contact__line a:hover { color: var(--gold); }
.contact__line i { font-style: normal; margin: 0 12px; color: var(--gold); }

.footer { display: flex; justify-content: space-between; padding: 24px var(--pad); border-top: 1px solid var(--faint); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* Cursor label */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--bg); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  opacity: 0; transform: translate(-50%, -50%) scale(.3); transition: opacity .25s, transform .25s;
}
.cursor.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; background: rgba(0,0,0,.98); color: var(--text); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.98); }
.lightbox img { max-width: min(90vw, 1100px); max-height: 84vh; max-height: 84dvh; object-fit: contain; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; } }
.lb-btn { position: absolute; background: none; border: 0; cursor: pointer; color: var(--text); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; padding: 16px; opacity: .75; transition: opacity .2s, color .2s; }
.lb-btn:hover { opacity: 1; color: var(--gold); }
.lb-close { top: 10px; right: 14px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 28px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .3em; color: var(--dim); }

/* WhatsApp chat widget */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; justify-items: end; gap: 12px; }
.chat__fab { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--wa); color: #0a0a0a; box-shadow: 0 8px 28px rgba(0,0,0,.45); transition: transform .25s; }
.chat__fab:hover { transform: translateY(-2px) scale(1.05); }
.chat__fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.6s ease-out infinite; }
.chat__fab[aria-expanded="true"]::before { display: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.chat__dot { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: #fff; color: #0a0a0a; font-size: 11px; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--bg); }
.chat__teaser { position: relative; display: flex; align-items: center; gap: 10px; max-width: 260px; background: var(--text); color: var(--bg); padding: 12px 34px 12px 12px; border-radius: 14px 14px 4px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); cursor: pointer; animation: pop .45s cubic-bezier(.2,.9,.3,1.3) both; }
.chat__teaser img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.chat__teaser p { font-size: 14px; line-height: 1.35; }
.chat__teaser strong { display: block; font-size: 12px; color: #0a0a0a; letter-spacing: .06em; font-weight: 600; }
.chat__teaser-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: #777777; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
.chat__panel { width: min(360px, calc(100vw - 32px)); background: #121212; border: 1px solid var(--faint); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.55); animation: pop .35s cubic-bezier(.2,.9,.3,1.15) both; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: #1c1c1c; }
.chat__head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat__head div { flex: 1; line-height: 1.3; }
.chat__head strong { display: block; font-weight: 600; font-size: 15px; }
.chat__head span { font-size: 12px; color: var(--dim); }
.chat__close { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 6px; opacity: .8; }
.chat__body { padding: 16px; display: grid; gap: 8px; min-height: 180px; max-height: min(52vh, 380px); overflow-y: auto; align-content: start; }
.bubble { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; max-width: 88%; white-space: pre-line; animation: pop .3s ease both; }
.bubble--him { background: #262626; color: var(--text); border-bottom-left-radius: 4px; justify-self: start; }
.bubble--me { background: #fff; color: #0a0a0a; border-bottom-right-radius: 4px; justify-self: end; }
.typing { justify-self: start; background: #262626; border-radius: 14px; border-bottom-left-radius: 4px; padding: 12px 14px; display: flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.replies { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: 4px; animation: pop .3s ease both; }
.replies button, .replies a { border: 1px solid var(--gold); background: none; color: var(--gold); border-radius: 999px; padding: 8px 13px; font-size: 13px; cursor: pointer; text-decoration: none; transition: all .2s; }
.replies button:hover, .replies a:hover { background: var(--gold); color: var(--bg); }
.replies .go { background: var(--wa); border-color: var(--wa); color: #0a0a0a; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; }
.replies .go:hover { background: transparent; color: #fff; }
.chat__own { display: block; text-align: center; font-size: 13px; padding: 12px; color: var(--gold); text-decoration: none; border-top: 1px solid var(--faint); }
.chat__own:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid button.is-feature, .grid button.is-right { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 5; }
  .workshops { grid-template-columns: 1fr; }
  .workshops__img { aspect-ratio: 4 / 5; }
  .rows button, .rows a { grid-template-columns: 44px 1fr 30px; }
  .rows__s { grid-column: 2; grid-row: 2; }
  .rows__a { grid-column: 3; grid-row: 1; }
  .rows__float { display: none; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    background: var(--bg); margin: 0; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { font: 300 44px/1 var(--serif); letter-spacing: 0; text-transform: none; opacity: 1; }
  .header__book { margin-left: auto; padding: 9px 14px; }
  .menu-btn { display: grid; align-content: center; gap: 7px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; margin-right: -10px; }
  .menu-btn span { display: block; height: 1px; background: var(--text); transition: transform .3s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header { gap: 16px; }

  .hero__panels { grid-template-columns: 1fr; }
  .hero__panels figure { grid-area: 1 / 1; opacity: 0; transition: opacity 1.4s ease; }
  .hero__panels figure.is-active { opacity: 1; }
    .hero__foot { font-size: 11px; }
  .hero__now { display: none; }
  .work__head { flex-direction: column; align-items: flex-start; }
  .filters { margin: 0 -4px; }
  .grid { gap: 6px; }
  .grid img { filter: none; }
  .contact__actions .btn { width: 100%; }
  .contact__line { line-height: 2.2; }
  .footer { flex-direction: column; gap: 8px; align-items: center; }
  .lb-prev, .lb-next { top: auto; bottom: 6px; transform: none; }
  .chat { right: 14px; bottom: 14px; }
}
@media (hover: none), (pointer: coarse) { .cursor, .rows__float { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
