/* ==========================================================================
   CreativIT, LLC — site styles
   Direction: cinematic "viewfinder" — dark edit-bay surfaces, brand neon
   used as camera-HUD signal color (REC magenta, focus cyan, go green).
   ========================================================================== */

:root {
  /* Surfaces: base → elevated → floating */
  --bg: #07090c;
  --bg-2: #0c1116;
  --bg-3: #131a22;
  --line: rgba(214, 236, 255, 0.09);
  --line-2: rgba(214, 236, 255, 0.18);

  --text: #eef3f7;
  --muted: #9ba7b3;
  --dim: #66727e;

  /* Brand (sampled from logo) */
  --blue: #0985b5;
  --cyan: #26c2ff;
  --magenta: #ff00ff;
  --green: #2fff52;

  --f-display: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing tokens */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6.5rem;
  --s-7: 10rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1320px;
  --radius: 14px;
  --radius-sm: 8px;

  --ease-spring: cubic-bezier(0.22, 1.25, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 30px -12px rgba(9, 133, 181, 0.22);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 70px -24px rgba(9, 133, 181, 0.38),
    0 0 0 1px var(--line);
  --shadow-3: 0 4px 10px rgba(0, 0, 0, 0.5), 0 40px 100px -30px rgba(38, 194, 255, 0.35),
    0 0 0 1px var(--line-2);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--magenta); color: #000; }

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -100px;
  z-index: 200;
  padding: var(--s-1) var(--s-2);
  background: var(--cyan);
  color: #000;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--s-2); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(var(--s-5), 10vw, var(--s-7)); position: relative; }
.section--tight { padding-block: clamp(var(--s-4), 6vw, var(--s-6)); }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .num { color: var(--cyan); }
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta);
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8.6vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 750;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.accent { color: var(--cyan); }
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 38em;
}
.muted { color: var(--muted); }

.section-head {
  display: grid;
  gap: var(--s-2);
  margin-bottom: clamp(var(--s-4), 5vw, var(--s-5));
  max-width: 52rem;
}
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.2fr 1fr; gap: var(--s-5); }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.45s var(--ease-spring), background-color 0.25s ease,
    border-color 0.25s ease, color 0.25s ease, box-shadow 0.3s ease;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.45s var(--ease-spring); }
.btn:hover { transform: translateY(-2px); border-color: var(--cyan); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

.btn--primary {
  --btn-bg: var(--cyan);
  --btn-fg: #00131c;
  border-color: var(--cyan);
  box-shadow: 0 10px 30px -10px rgba(38, 194, 255, 0.6);
}
.btn--primary:hover {
  --btn-bg: #5fd3ff;
  box-shadow: 0 16px 40px -12px rgba(38, 194, 255, 0.75);
}
.btn--sm { padding: 0.65em 1.15em; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform 0.45s var(--ease-spring); }
.link-arrow:hover { color: var(--cyan); border-color: var(--cyan); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:active { opacity: 0.7; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.45s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 9, 12, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  border-radius: 8px;
}
.brand { flex: none; }
.brand img {
  /* Lock both dimensions to the logo's 1200×419 ratio so no browser can stretch it */
  --logo-h: 48px;
  height: var(--logo-h);
  width: calc(var(--logo-h) * 1200 / 419);
  max-width: none;
  aspect-ratio: 1200 / 419;
  object-fit: contain;
  flex: none;
  transition: transform 0.6s var(--ease-spring), opacity 0.25s ease;
}
.brand:hover img { transform: scale(1.03); }
.brand:active img { transform: scale(0.97); opacity: 0.85; }
@media (min-width: 960px) { .brand img { --logo-h: 64px; } }

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
}
.nav-links a:not(.btn) {
  position: relative;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  padding-block: 0.4rem;
  transition: color 0.25s ease;
}
.nav-links .btn { font-size: 0.95rem; font-weight: 700; }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:not(.btn):active { opacity: 0.7; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(12, 17, 22, 0.6);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring), border-color 0.25s ease;
}
.menu-toggle:hover { border-color: var(--cyan); }
.menu-toggle:active { transform: scale(0.92); }
.menu-toggle span,
.menu-toggle span::before {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease-spring);
}
.menu-toggle span { position: relative; transform: translateY(-3px); }
.menu-toggle span::before { content: ""; position: absolute; top: 6px; }
.menu-open .menu-toggle span { transform: translateY(0) rotate(45deg); }
.menu-open .menu-toggle span::before { transform: translateY(-6px) rotate(-90deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(7, 9, 12, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 110px var(--gutter) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out), visibility 0s linear 0.5s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.mobile-menu a {
  font-family: var(--f-display);
  font-weight: 750;
  font-size: clamp(2.2rem, 10vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.mobile-menu a span {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.1em;
}
.mobile-menu a:active { color: var(--cyan); }
.mobile-menu .mobile-meta {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}
.mobile-menu .mobile-meta a { font: inherit; color: var(--text); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- Viewfinder overlay (reusable) ---------- */

.vf {
  position: absolute;
  inset: clamp(92px, 11vh, 104px) var(--gutter) clamp(1rem, 3vh, 1.75rem);
  pointer-events: none;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(238, 243, 247, 0.82);
}
.vf-corner {
  position: absolute;
  width: clamp(22px, 3vw, 38px);
  height: clamp(22px, 3vw, 38px);
  border: 0 solid rgba(238, 243, 247, 0.7);
}
.vf-corner.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf-corner.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf-corner.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf-corner.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.vf-meta { position: absolute; display: flex; align-items: center; gap: 0.75em; }
.vf-meta.tl { top: 14px; left: 18px; }
.vf-meta.tr { top: 14px; right: 18px; }
.vf-meta.bl { bottom: 14px; left: 18px; }
.vf-meta.br { bottom: 14px; right: 18px; }
.vf-meta .rec { color: var(--magenta); font-weight: 500; }
.vf-focus {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}
.vf-focus::before,
.vf-focus::after {
  content: "";
  position: absolute;
  background: var(--cyan);
}
.vf-focus::before { left: 50%; top: 22px; bottom: 22px; width: 1px; }
.vf-focus::after { top: 50%; left: 22px; right: 22px; height: 1px; }
@media (max-width: 640px) {
  .vf-meta.tr, .vf-focus { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media video,
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide {
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.6s ease, transform 9s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1.0); }
/* Phones/narrow tablets: shift the portrait crop right, to each slide's focal point (--fx) */
@media (max-width: 820px) {
  .hero-media video,
  .hero-slide { object-position: var(--fx, 100%) center; transform-origin: var(--fx, 100%) center; }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 20% 100%, rgba(7, 9, 12, 0.95) 0%, rgba(7, 9, 12, 0.55) 45%, transparent 75%),
    linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 22%),
    rgba(4, 6, 9, 0.4); /* overall darken so hero text reads on bright frames */
}
@media (max-width: 820px) {
  /* text covers most of the frame on phones: darken a little more */
  .hero-media::after { background-color: rgba(4, 6, 9, 0.5); }
}
.hero-media::before {
  /* colour treatment */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(9, 133, 181, 0.35), rgba(7, 9, 12, 0.1) 60%);
  mix-blend-mode: multiply;
}
.hero-content {
  position: relative;
  z-index: 4;
  padding-bottom: clamp(5rem, 13vh, 8.5rem);
  padding-top: 140px;
}
.hero h1 { max-width: 11ch; margin-block: var(--s-3) var(--s-3); }
.hero h1 .serif { font-size: 1.04em; color: var(--cyan); }
.hero .lede { color: rgba(238, 243, 247, 0.82); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

/* Load-in stagger */
.load-in > * {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1.1s var(--ease-out) forwards;
}
.load-in > *:nth-child(1) { animation-delay: 0.15s; }
.load-in > *:nth-child(2) { animation-delay: 0.28s; }
.load-in > *:nth-child(3) { animation-delay: 0.42s; }
.load-in > *:nth-child(4) { animation-delay: 0.56s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .load-in > *, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .hero-slide { transition: opacity 0.01s; transform: none; }
  .rec-dot { animation: none; }
}

/* ---------- Credits (client roll) ---------- */

.credits {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(9, 133, 181, 0.14), transparent 70%),
    var(--bg);
  border-block: 1px solid var(--line);
  text-align: center;
}
.credits-title {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: var(--s-4);
}
.credits-list { display: grid; gap: clamp(0.9rem, 2vw, 1.35rem); }
.credits-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
}
.credits-role {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.credits-name {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.1;
}
@media (min-width: 720px) {
  .credits-list li {
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: baseline;
  }
  .credits-role { text-align: right; }
  .credits-name { text-align: left; }
}

/* ---------- Services bento ---------- */

.bento {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(260px, auto); }
  .bento .tile:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .bento .tile:nth-child(2) { grid-column: span 2; grid-row: span 2; }
  .bento .tile:nth-child(3) { grid-column: span 2; grid-row: span 2; }
  .bento .tile:nth-child(4) { grid-column: span 4; grid-row: span 2; }
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  background: var(--bg-2);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
  transition: transform 0.6s var(--ease-spring), box-shadow 0.4s ease;
}
.tile-media { position: absolute; inset: 0; z-index: -2; }
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.6) 32%, rgba(0, 0, 0, 0.05) 70%);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(9, 133, 181, 0.25);
  mix-blend-mode: multiply;
  transition: opacity 0.5s ease;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); }
.tile:hover .tile-media img { transform: scale(1.06); }
.tile:hover::after { opacity: 0; }
.tile:active { transform: translateY(-2px) scale(0.99); }
.tile:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.tile-num {
  position: absolute;
  top: clamp(1.25rem, 2.5vw, 2rem);
  left: clamp(1.25rem, 2.5vw, 2rem);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.tile h3 { margin-bottom: 0.4rem; }
.tile p {
  margin: 0;
  color: rgba(238, 243, 247, 0.78);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 34em;
}
.tile-go {
  position: absolute;
  top: clamp(1rem, 2vw, 1.6rem);
  right: clamp(1rem, 2vw, 1.6rem);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(7, 9, 12, 0.5);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.5s var(--ease-spring), background-color 0.3s ease, color 0.3s ease;
}
.tile-go svg { width: 18px; height: 18px; }
.tile:hover .tile-go { transform: rotate(-45deg); background: var(--cyan); color: #00131c; }

/* Tile variants: device frames */
.tile--phone .tile-media { inset: 0; display: grid; place-items: start center; padding-top: 3.5rem; background: radial-gradient(70% 60% at 50% 30%, rgba(255, 0, 255, 0.22), transparent 70%), var(--bg-3); }
.phone {
  width: min(58%, 210px);
  aspect-ratio: 9 / 18.5;
  border-radius: 28px;
  padding: 7px;
  background: #0a0d11;
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -20px rgba(255, 0, 255, 0.45);
  transform: rotate(-4deg);
  transition: transform 0.9s var(--ease-spring);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.tile--phone:hover .phone { transform: rotate(0deg) translateY(-8px); }
.tile--phone:hover .tile-media img { transform: none; }

.tile--browser .tile-media { display: grid; place-items: start end; padding: 3.25rem 0 0 2.5rem; background: radial-gradient(70% 70% at 80% 20%, rgba(38, 194, 255, 0.22), transparent 70%), var(--bg-3); }
.browser {
  width: 100%;
  border-radius: 12px 0 0 0;
  overflow: hidden;
  background: #0a0d11;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(38, 194, 255, 0.45);
  transition: transform 0.9s var(--ease-spring);
}
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser img { width: 100%; height: auto; }
.tile--browser:hover .browser { transform: translate(-10px, -8px); }
.tile--browser:hover .tile-media img { transform: none; }

/* ---------- Featured film ---------- */

.feature-film {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-2);
  isolation: isolate;
  transition: transform 0.7s var(--ease-spring), box-shadow 0.4s ease;
}
.feature-film img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.4s var(--ease-out);
}
.feature-film::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.25));
}
.feature-film:hover { transform: scale(1.008); box-shadow: var(--shadow-3); }
.feature-film:hover img { transform: scale(1.04); }
.feature-film:active { transform: scale(0.995); }
.feature-film:focus-visible { outline-offset: 5px; border-radius: var(--radius); }
.feature-film .vf { inset: clamp(0.75rem, 2vw, 1.5rem); }
.feature-film .vf-meta.tl { top: 10px; left: 14px; }
.feature-film .vf-meta.tr { top: 10px; right: 14px; }
.feature-info {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.25rem, 4vw, 3rem);
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3);
}
.feature-title {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 4.2vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 0.4rem;
}

.play {
  flex: none;
  width: clamp(58px, 7vw, 92px);
  height: clamp(58px, 7vw, 92px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(238, 243, 247, 0.12);
  border: 1px solid rgba(238, 243, 247, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.6s var(--ease-spring), background-color 0.3s ease, border-color 0.3s ease;
}
.play svg { width: 34%; height: 34%; margin-left: 6%; color: #fff; transition: color 0.3s ease; }
button:hover .play,
a:hover .play { transform: scale(1.12); background: var(--cyan); border-color: var(--cyan); }
button:hover .play svg,
a:hover .play svg { color: #00131c; }

/* ---------- Film grid (video page) ---------- */

.film-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .film-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .film-grid { grid-template-columns: repeat(12, 1fr); }
  /* Repeating stagger: wide/narrow, then narrow/wide; a lone last film centers */
  .film-grid .film:nth-child(4n + 1) { grid-column: span 7; }
  .film-grid .film:nth-child(4n + 2) { grid-column: span 5; margin-top: var(--s-5); }
  .film-grid .film:nth-child(4n + 3) { grid-column: span 5; }
  .film-grid .film:nth-child(4n + 4) { grid-column: span 7; }
  .film-grid .film:last-child:nth-child(odd) { grid-column: 3 / span 8; }
}
.film {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  border-radius: var(--radius);
}
.film-frame {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
  isolation: isolate;
  transition: transform 0.6s var(--ease-spring), box-shadow 0.4s ease;
}
.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), opacity 0.4s ease;
}
.film-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 50%);
}
.film-frame .play {
  position: absolute;
  z-index: 2;
  right: clamp(0.85rem, 2vw, 1.25rem);
  bottom: clamp(0.85rem, 2vw, 1.25rem);
  width: 58px;
  height: 58px;
}
.film-tag {
  position: absolute;
  z-index: 2;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.35em 0.75em;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(7, 9, 12, 0.6);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.film:hover .film-frame { transform: translateY(-5px); box-shadow: var(--shadow-3); }
.film:hover .film-frame img { transform: scale(1.05); }
.film:active .film-frame { transform: translateY(-1px) scale(0.99); }
.film:focus-visible { outline-offset: 5px; }
.film-meta { display: block; padding: 1rem 0.25rem 0; }
.film-client {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.film-title {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 0.3rem;
}

/* ---------- Filmstrip (horizontal photo scroller) ---------- */

.strip {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) var(--s-3);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
.strip.is-auto { scroll-snap-type: none; scrollbar-width: none; }
.strip.is-auto::-webkit-scrollbar { display: none; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }
.strip-item {
  flex: none;
  scroll-snap-align: start;
  height: clamp(320px, 52vh, 560px);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  padding: 0;
  border: 0;
  background: var(--bg-2);
  cursor: zoom-in;
  box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
  transition: transform 0.6s var(--ease-spring);
}
.strip-item img { height: 100%; width: auto; max-width: none; transition: transform 1.2s var(--ease-out); }
.strip-item:hover { transform: translateY(-6px); }
.strip-item:hover img { transform: scale(1.04); }
.strip-item:active { transform: scale(0.99); }
.strip-item:focus-visible { outline-offset: 4px; }
.strip-cap {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.strip-item:hover .strip-cap,
.strip-item:focus-visible .strip-cap { opacity: 1; transform: none; }

/* ---------- Gallery (photography page, masonry) ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--s-4);
}
.tab {
  padding: 0.6em 1.15em;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font: 500 0.9rem/1 var(--f-body);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.4s var(--ease-spring);
}
.tab:hover { color: var(--text); border-color: var(--cyan); }
.tab:active { transform: scale(0.95); }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab .count { font-family: var(--f-mono); font-size: 0.75em; opacity: 0.6; margin-left: 0.35em; }

.gallery {
  columns: 2 220px;
  column-gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
@media (min-width: 900px) { .gallery { columns: 3 260px; } }
.gallery.is-masonry { columns: auto; display: flex; align-items: flex-start; gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.masonry-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.gallery.is-masonry .shot { margin-bottom: 0; }
.shot {
  break-inside: avoid;
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
  transition: transform 0.55s var(--ease-spring), opacity 0.4s ease;
}
.shot img { width: 100%; transition: transform 1.1s var(--ease-out); }
.shot:hover { transform: translateY(-4px); }
.shot:hover img { transform: scale(1.035); }
.shot:active { transform: scale(0.99); }
.shot:focus-visible { outline-offset: 4px; }
.shot[hidden] { display: none; }
.shot .strip-cap { opacity: 0; }
.shot:hover .strip-cap, .shot:focus-visible .strip-cap { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 5, 7, 0.94);
  color: var(--text);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in 0.4s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-stage {
  width: min(92vw, 1400px);
  max-height: 84dvh;
  display: grid;
  place-items: center;
  gap: 0.9rem;
}
.lb-stage .lb-video {
  width: min(92vw, calc(80dvh * 16 / 9), 1400px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-3);
}
.lb-video iframe { width: 100%; height: 100%; border: 0; }
.lb-stage img {
  max-width: 92vw;
  max-height: 78dvh;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-3);
  animation: lb-img 0.5s var(--ease-out);
}
@keyframes lb-img { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.lb-caption {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.lb-btn {
  position: fixed;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(19, 26, 34, 0.85);
  border: 1px solid var(--line-2);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.45s var(--ease-spring), background-color 0.25s ease, color 0.25s ease;
}
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn:hover { background: var(--cyan); color: #00131c; }
.lb-btn:active { transform: scale(0.9); }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev { left: 1.25rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1.25rem; top: 50%; translate: 0 -50%; }
.lb-prev[hidden], .lb-next[hidden] { display: none; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 1.25rem; translate: none; }
}

/* ---------- Split / about teaser ---------- */

.split {
  display: grid;
  gap: clamp(var(--s-4), 6vw, var(--s-6));
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split--rev { grid-template-columns: 7fr 5fr; }
  .split--rev > :first-child { order: 2; }
}
.portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  aspect-ratio: 4 / 5;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .vf { inset: 1rem; }
.portrait .vf-meta.bl { bottom: 10px; left: 14px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.stat span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Page header (inner pages) ---------- */

.page-hero {
  position: relative;
  padding-top: clamp(140px, 22vh, 220px);
  padding-bottom: clamp(var(--s-4), 6vw, var(--s-6));
  overflow: hidden;
  background:
    radial-gradient(50% 70% at 85% 10%, rgba(9, 133, 181, 0.28), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(255, 0, 255, 0.08), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-block: var(--s-3); max-width: 14ch; }
.page-hero h1 .serif { color: var(--cyan); }

/* ---------- Offer list ---------- */

.offers {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 760px) { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .offers--4 { grid-template-columns: repeat(4, 1fr); } }
.offer {
  background: var(--bg-2);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: background-color 0.35s ease;
}
.offer:hover { background: var(--bg-3); }
.offer .num { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--cyan); }
.offer h3 { margin: 0.75rem 0 0.5rem; }
.offer p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Case studies (web page) ---------- */

.case {
  display: grid;
  gap: clamp(var(--s-3), 4vw, var(--s-5));
  align-items: center;
  padding-block: clamp(var(--s-4), 5vw, var(--s-5));
  border-top: 1px solid var(--line);
}
@media (min-width: 960px) {
  .case { grid-template-columns: 7fr 5fr; }
  .case:nth-of-type(even) { grid-template-columns: 5fr 7fr; }
  .case:nth-of-type(even) .case-shot { order: 2; }
}
.case-shot {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0d11;
  box-shadow: var(--shadow-2);
  text-decoration: none;
  transition: transform 0.7s var(--ease-spring), box-shadow 0.4s ease;
}
.case-shot img { width: 100%; }
.case-shot:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-3); }
.case-shot:active { transform: translateY(-2px); }
.case-shot:focus-visible { outline-offset: 5px; border-radius: var(--radius); }
.case h3 { margin: 0.6rem 0 0.9rem; }
.case-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: var(--s-3) 0; }
.case-tags li {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4em 0.75em;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

/* ---------- CTA band ---------- */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(45% 60% at 50% 110%, rgba(38, 194, 255, 0.3), transparent 70%),
    radial-gradient(30% 40% at 15% 0%, rgba(255, 0, 255, 0.12), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta .display { font-size: clamp(2.6rem, 8vw, 7rem); margin: var(--s-3) auto; max-width: 12ch; }
.cta .display .serif { color: var(--cyan); }
.cta .lede { margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-4); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: clamp(var(--s-4), 6vw, var(--s-6)); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 4fr 7fr; } }
.contact-aside { display: grid; gap: var(--s-3); align-content: start; }
.contact-line {
  display: grid;
  gap: 0.2rem;
  padding-block: var(--s-2);
  border-bottom: 1px solid var(--line);
}
.contact-line span { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.contact-line a { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing: -0.02em; text-decoration: none; transition: color 0.25s ease; overflow-wrap: anywhere; }
.contact-line a:hover { color: var(--cyan); }
.contact-line a:active { opacity: 0.7; }

.form {
  display: grid;
  gap: var(--s-3);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: var(--shadow-2);
}
.form-row { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label, .field legend {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}
.field .opt { color: var(--dim); text-transform: none; letter-spacing: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 var(--f-body);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.input::placeholder { color: var(--dim); }
.input:hover { border-color: rgba(214, 236, 255, 0.3); }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(38, 194, 255, 0.2); }
textarea.input { min-height: 160px; resize: vertical; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239ba7b3' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.2rem; }
.field .chip { position: relative; font-family: var(--f-body); text-transform: none; letter-spacing: 0; color: inherit; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block;
  padding: 0.6em 1.05em;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.4s var(--ease-spring);
}
.chip span:hover { border-color: var(--cyan); color: var(--text); }
.chip span:active { transform: scale(0.95); }
.chip input:checked + span { background: var(--cyan); border-color: var(--cyan); color: #00131c; }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #040506;
  padding-block: var(--s-5) var(--s-4);
  font-size: 0.95rem;
}
.footer-top {
  display: grid;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo { width: min(320px, 80%); }
.footer-top p { color: var(--muted); max-width: 26em; margin-top: var(--s-2); }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: var(--s-2);
}
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a { text-decoration: none; color: var(--muted); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-col a:active { opacity: 0.7; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  padding-top: var(--s-3);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.footer-bottom .tagline span:first-child { color: var(--green); }
.footer-bottom .tagline span:last-child { color: var(--magenta); }

/* ---------- Utilities ---------- */

.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.center { text-align: center; }
.row-between { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-3); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .feature-film { aspect-ratio: 4 / 3.4; }
  .feature-film .vf-meta { display: none; }
}
