:root {
  --bg: #000000;
  --ink: #ffffff;
  --muted: rgba(255,255,255,.72);
  --pink: #ff2bd6;
  --cyan: #00e5ff;
  --lime: #b6ff00;
  --amber: #ffb800;
  --violet: #7a5cff;
  --head: "Unbounded", system-ui, sans-serif;
  --body: "Jost", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { touch-action: manipulation; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; cursor: none; }
a, button, input, select, textarea { cursor: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
#fireworks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; }
main, .top { position: relative; z-index: 2; }

/* camera-with-hands cursor: the lens centre (40,35 of 80x64) sits on the pointer */
.cursor { position: fixed; left: 0; top: 0; width: 60px; height: 48px; margin: -26px 0 0 -30px; z-index: 100; pointer-events: none; }
.cursor svg { width: 100%; height: 100%; overflow: visible; transform-origin: 50% 54%; transition: transform .2s; filter: drop-shadow(0 0 6px rgba(255,43,214,.55)) drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.cursor .finger { transition: transform .08s; }
.cursor.down .finger { transform: translateY(3.5px); }
.cursor.down svg { transform: scale(.92); }
body.on-print .cursor svg { transform: scale(1.18); }
body.on-print .cursor .lens { stroke: #ff3b2f; }
@media (hover: none) { body, a, button { cursor: auto; } .cursor { display: none; } }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,0)); }
.brand img { height: 70px; width: auto; filter: drop-shadow(0 0 10px rgba(255,43,214,.6)); }
.top nav { display: flex; gap: 22px; align-items: center; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.pill { padding: 10px 18px; border-radius: 999px; background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan)); background-size: 200% 100%; animation: shimmer 4s linear infinite; box-shadow: 0 0 22px rgba(255,43,214,.55); }
@keyframes shimmer { to { background-position: -200% 0; } }

.eyebrow { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 12px rgba(0,229,255,.8); }
.title { font-family: var(--head); font-weight: 700; font-size: clamp(30px, 5vw, 64px); letter-spacing: -.02em; line-height: 1.05; margin: 10px 0 40px;
  background: linear-gradient(90deg, #fff, var(--cyan) 40%, var(--pink) 75%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* hero: text floats over the 3D reel */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: 118px 16px 40px; pointer-events: none; }
.hero h1 { font-family: var(--head); font-weight: 900; font-size: clamp(30px, 5.6vw, 92px); line-height: .92; letter-spacing: -.03em; margin: 14px 0 18px; }
.chrome { background: linear-gradient(180deg, #fff 20%, #bfe9ff 50%, #6b7cff 51%, #fff 85%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(0,229,255,.45)); }
.neon { background: linear-gradient(90deg, var(--pink), var(--amber), var(--lime), var(--cyan), var(--violet), var(--pink)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite; filter: drop-shadow(0 0 24px rgba(255,43,214,.55)); }
.sub { font-size: 14px; letter-spacing: .4em; text-transform: uppercase; }
.hint { position: absolute; left: 0; right: 0; top: calc(100vh - 70px); margin: 0; font-size: 13px; color: var(--muted); letter-spacing: .08em; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); opacity: .6; } }


/* services: 3D tilt cards with neon rims */
.services, .work, .book { padding: clamp(80px, 10vw, 140px) clamp(16px, 5vw, 64px); text-align: center; }
.services { background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72) 18%); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); max-width: 1200px; margin: 0 auto; perspective: 1200px; }
.card { position: relative; padding: 14px 14px 26px; border-radius: 22px; background: linear-gradient(160deg, rgba(18,18,24,.94), rgba(4,4,8,.96)); transform-style: preserve-3d; transition: transform .15s ease-out, box-shadow .3s;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.card::before { content: ""; position: absolute; inset: -2px; border-radius: 24px; padding: 2px; background: linear-gradient(135deg, var(--c1), var(--c2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover { box-shadow: 0 0 40px color-mix(in srgb, var(--c1) 60%, transparent), 0 30px 80px rgba(0,0,0,.6); }
.card-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; transform: translateZ(40px); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.card:hover .card-img img { transform: scale(1.07); }
.card h3 { font-family: var(--head); font-size: 26px; margin: 20px 0 6px; transform: translateZ(60px);
  background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card p { color: var(--muted); font-weight: 300; transform: translateZ(30px); }

/* work grid */
.work { background: rgba(0,0,0,.72); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1400px; margin: 0 auto; perspective: 1400px; }
.grid figure { position: relative; aspect-ratio: 2/3; border-radius: 16px; overflow: hidden; transform-style: preserve-3d; transition: transform .15s ease-out, box-shadow .3s; }
.grid figure::after { content: ""; position: absolute; inset: 0; border-radius: 16px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); pointer-events: none; }
.grid figure:hover { box-shadow: 0 0 34px var(--glow, var(--pink)); z-index: 2; }
.grid img { width: 100%; height: 100%; object-fit: cover; }

/* book */
.book { background: linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,.5)); }
.glass { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: linear-gradient(160deg, rgba(18,18,24,.92), rgba(4,4,8,.95));
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 60px rgba(122,92,255,.35); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form textarea, form button { grid-column: 1 / -1; }
input, select, textarea { font: 400 16px var(--body); color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 18px rgba(0,229,255,.45); }
select option { color: #000; }
button { font: 600 13px var(--body); letter-spacing: .2em; text-transform: uppercase; color: #fff; border: 0; border-radius: 999px; padding: 18px;
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan)); background-size: 200% 100%; animation: shimmer 4s linear infinite; box-shadow: 0 0 30px rgba(255,43,214,.5); }
.contact { margin-top: 22px; color: var(--muted); }
.contact a { color: var(--cyan); }

footer { padding: 60px 16px 40px; text-align: center; background: rgba(0,0,0,.85); }
footer img { width: min(260px, 60vw); margin: 0 auto 16px; filter: drop-shadow(0 0 14px rgba(0,229,255,.6)); }
footer p { font-size: 12px; color: rgba(255,255,255,.5); }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.94); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 0 60px rgba(255,43,214,.5); }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 440px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .brand img { height: 44px; }
  .top nav { gap: 12px; font-size: 11px; letter-spacing: .1em; }
  .pill { padding: 8px 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  form { grid-template-columns: 1fr; }
}

/* ---------- camera / lens / darkroom additions ---------- */
.hero { position: relative; }
.flight { height: 230vh; }
.darkroom { position: relative; }
.dr-head { position: sticky; top: 96px; text-align: center; padding: 0 16px; pointer-events: none; }
.dr-head .title { margin-bottom: 6px; background: linear-gradient(90deg, #fff, #ffb3a8 40%, #ff3b2f 80%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(255,40,30,.55)); }
.eyebrow.red { color: #ff5a4a; text-shadow: 0 0 12px rgba(255,40,30,.9); }
.dr-hint { font-size: 13px; color: rgba(255,210,200,.75); letter-spacing: .06em; }
.caption { position: fixed; left: 0; right: 0; bottom: 12vh; z-index: 3; text-align: center; pointer-events: none; font-family: var(--head); font-weight: 700;
  font-size: clamp(22px, 3.4vw, 46px); letter-spacing: -.01em; opacity: 0; transition: opacity .5s; text-shadow: 0 0 24px rgba(0,229,255,.6); }
.caption.show { opacity: 1; }
.flash { position: fixed; inset: 0; z-index: 85; background: #fff; opacity: 0; pointer-events: none; }
.flash.pop { animation: flash .38s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }

.top .simple { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.85); }
.top .simple:hover { border-color: #fff; color: #fff; }
footer p a { color: var(--cyan); }
@media (max-width: 560px) { .top .simple { padding: 6px 9px; } }

/* touch: press-and-hold to fly */
.hold-hint { display: none; }
@media (hover: none), (pointer: coarse) {
  body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  input, textarea, select { -webkit-user-select: text; user-select: text; }
  .hold-hint { display: block; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; pointer-events: none;
    padding: 10px 18px; border-radius: 999px; font-size: 13px; letter-spacing: .06em; white-space: nowrap; color: #fff;
    background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 0 18px rgba(255,43,214,.45); transition: opacity .3s, box-shadow .3s; }
  .hold-hint .active { display: none; }
  body.flying .hold-hint { box-shadow: 0 0 26px rgba(0,229,255,.8); border-color: #00e5ff; }
  body.flying .hold-hint .idle { display: none; }
  body.flying .hold-hint .active { display: inline; }
  .hold-hint.gone { opacity: 0; }
}
