:root {
  --bg: #0b0d10; --panel: rgba(18, 21, 26, .72); --line: rgba(255,255,255,.08);
  --text: #e8eaee; --muted: #9aa3ad; --accent: #f2b544; --accent-2: #4ab3ff;
  --radius: 16px; --max: 1100px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", system-ui, sans-serif; color: var(--text); line-height: 1.6; overflow-x: hidden;
  background: radial-gradient(ellipse at 72% 38%, #15202d 0%, var(--bg) 58%) fixed, var(--bg);
  -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

/* 3D background */
#camera-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.no-webgl #camera-bg { display: none; }
.stage-label {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2;
  font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--accent);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.stage-label.show { opacity: 1; }

/* Layout */
.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 16px max(32px, env(safe-area-inset-right)) 16px max(32px, env(safe-area-inset-left)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: rgba(11,13,16,.55); border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; font-size: 1.45rem; letter-spacing: .05em; color: var(--text); text-decoration: none; }
.nav nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: .95rem; }
.nav nav a:hover { color: var(--text); }
.nav-toggle { display: none; }

main { position: relative; z-index: 1; }
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 8vw; max-width: var(--max); margin: 0 auto; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1.05; font-weight: 800; }
.hero p { color: var(--muted); font-size: 1.2rem; margin: 18px 0 30px; max-width: 520px; }
.scroll-hint { margin-top: 60px; color: var(--muted); font-size: .85rem; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.section { min-height: 100vh; min-height: 100svh; padding: 120px 8vw; max-width: var(--max); margin: 0 auto; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.lead { color: var(--muted); margin: 8px 0 36px; }

.grid { display: grid; gap: 20px; }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  backdrop-filter: blur(10px); transition: transform .3s, border-color .3s; }
@media (hover: hover) { .card:hover { transform: translateY(-4px); border-color: rgba(242,181,68,.4); } }
.card .icon { font-size: 2rem; }
.card h3 { margin: 10px 0 6px; }
.card p { color: var(--muted); font-size: .95rem; }

/* Work gallery: masonry columns so portrait + landscape media keep their shape */
#work-grid { display: block; columns: 3 260px; column-gap: 18px; }
.tile { display: block; width: 100%; margin: 0 0 18px; padding: 0; break-inside: avoid; position: relative;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: pointer;
  background: linear-gradient(135deg, #1a1f27, #0f1217); }
.tile img, .tile video { display: block; width: 100%; height: auto; min-height: 160px; object-fit: cover; transition: transform .6s; }
@media (hover: hover) { .tile:hover img, .tile:hover video { transform: scale(1.04); } }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.play-badge { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(11,13,16,.65); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.play-badge::after { content: ""; position: absolute; left: 13px; top: 10px;
  border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

/* Full-screen viewer */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(5,6,8,.94); padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.lightbox[hidden] { display: none; }
.lb-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lb-stage img, .lb-stage video { max-width: min(100%, 1400px); max-height: 100%; border-radius: 10px; }
.lb-close, .lb-nav { position: absolute; z-index: 2; border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.1); border-radius: 50%; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; }
.lb-close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.2); }
body.lb-open { overflow: hidden; }

/* Packages */
.package { position: relative; display: flex; flex-direction: column; }
.package.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 60px -30px rgba(242,181,68,.5); }
.badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #111; font-size: .75rem;
  font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price { font-size: 2rem; font-weight: 800; margin: 8px 0; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.package ul { list-style: none; margin: 10px 0 20px; flex: 1; }
.package li { padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.package li { position: relative; padding-left: 22px; }
.package li::before { content: "✓"; color: var(--accent); position: absolute; left: 2px; top: 6px; }
.note { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.note.terms { margin: 0 0 16px; }
.pkg-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
.package li.rich { padding: 10px 0 10px 26px; }
.package li.rich::before { content: ""; width: 14px; height: 14px; top: 13px; left: 0; border: 1.5px solid var(--accent); border-radius: 50%;
  background: no-repeat center/8px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%23f2b544' stroke-width='1.6'/%3E%3C/svg%3E"); }
.package li.rich strong { display: block; color: var(--text); font-weight: 600; }
.package li.rich span { display: block; font-size: .88rem; margin-top: 2px; }
.pkg-desc { color: var(--muted); font-size: .92rem; margin: 2px 0 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step, decimal-leading-zero); color: var(--accent-2); font-weight: 800; font-size: 1.4rem; display: block; }

/* Buttons & form */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); color: var(--text);
  text-decoration: none; font-weight: 600; cursor: pointer; background: transparent; transition: .25s; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: #111; border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.1); }
.actions { display: flex; gap: 12px; margin-bottom: 30px; }
.form { display: grid; gap: 12px; max-width: 520px; }
.form input, .form textarea { background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font: inherit; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent-2); }
.status { font-size: .9rem; color: var(--accent-2); min-height: 1.2em; }

footer { position: relative; z-index: 1; text-align: center; color: var(--muted); padding: 40px; border-top: 1px solid var(--line); }

/* ---- Tablet ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .section { padding: 100px 6vw; }
  .hero { padding: 0 6vw; }
}

/* ---- Phone / narrow / portrait (matches the 3D layout switch) ----------- */
@media (max-width: 819px), (max-aspect-ratio: 9/10) {
  body { background: radial-gradient(ellipse at 50% 22%, #15202d 0%, var(--bg) 55%) fixed, var(--bg); }
  .nav { padding: 12px max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left)); }
  .logo { font-size: 1.25rem; }
  .nav-toggle { display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }
  .nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column;
    padding: 8px 18px 18px; background: rgba(11,13,16,.96); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .nav.open nav { opacity: 1; visibility: visible; transform: none; }
  .nav nav a { margin: 0; padding: 14px 0; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav nav a:last-child { border-bottom: 0; }

  /* camera floats in the top part of the hero; text sits underneath */
  .hero { justify-content: flex-end; padding: 0 6vw calc(9vh + env(safe-area-inset-bottom)); }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .hero p { font-size: 1.05rem; margin: 12px 0 22px; }
  .scroll-hint { margin-top: 28px; }

  .section { min-height: auto; padding: 72px 5vw; }
  .section:last-of-type { padding-bottom: 110px; }
  .card { padding: 20px; }
  #work-grid { columns: 2; column-gap: 10px; }
  .tile { margin-bottom: 10px; border-radius: 12px; }
  .lb-nav { display: none; } /* swipe instead */
  .actions { flex-direction: column; }
  .actions .btn, .form .btn { width: 100%; text-align: center; }
  .btn { padding: 14px 22px; }
  .form input, .form textarea { font-size: 16px; } /* stops iOS zooming into fields */
  .stage-label { font-size: .68rem; letter-spacing: .16em; white-space: nowrap; padding: 7px 14px; border-radius: 999px;
    background: rgba(11,13,16,.82); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  footer { padding: 30px 20px calc(30px + env(safe-area-inset-bottom)); }
}

/* phones held sideways: short screens */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { justify-content: center; padding-bottom: 0; }
  .hero h1 { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } .scroll-hint { animation: none; }
}
