/* Version A: Lens. Light grey that turns black at the results; neo-grotesk type; hero carousel of his clips. */

:root {
  --bg: #e8e8e5; --fg: #0c0c0c; --muted: #63635e; --line: rgba(12, 12, 12, .14); --card: #f1f1ee;
  --accent: #ff5a1f; --cut: var(--accent);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --gutter: 28px; --maxw: 1360px;
}
body.is-dark { --bg: #0a0a0a; --fg: #f0f0ed; --muted: #8f8f89; --line: rgba(255, 255, 255, .12); --card: #141414; }

* , *::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(--fg); font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .7s ease, color .7s ease;
}
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { background: var(--accent); color: #fff; }
.btn-line { border-color: var(--line); color: var(--fg); }
.btn-line:hover { border-color: var(--fg); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background-color .7s ease;
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-size: 14.5px; color: var(--muted); transition: color .15s ease; }
.nav a:not(.btn):hover { color: var(--fg); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-toggle i { width: 18px; height: 1.5px; background: var(--fg); transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hero-meta p { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-title {
  font-weight: 500; font-size: clamp(64px, 15.2vw, 236px); line-height: .86; letter-spacing: -0.058em;
  margin: 34px 0 0 -0.04em;
}
.hero-title span { display: block; }
.hero-title span:last-child { padding-left: 14vw; }
.hero { overflow: hidden; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; align-items: center; margin-top: 40px; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 30em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero carousel: a curved 3D ring of vertical reels */
.hero-carousel { position: relative; width: 100%; perspective: 1200px; cursor: grab; touch-action: pan-y; user-select: none; outline-offset: 6px; }
.hero-carousel.is-dragging { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 0; width: var(--cw, 150px); height: calc(var(--cw, 150px) * 16 / 9); margin-left: calc(var(--cw, 150px) / -2); transform-style: preserve-3d; }
.card {
  position: absolute; inset: 0; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .55);
}
.card span { position: relative; z-index: 2; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.card h3 { position: relative; z-index: 2; font: 500 clamp(15px, 1.25vw, 19px)/1.1 var(--display); letter-spacing: -0.02em; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .3); }
/* Real clips in the cards: a shade under the labels, a play mark, tap to watch with sound */
.card.has-video { cursor: pointer; }
.card.has-video::after { opacity: 1; mix-blend-mode: normal; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 46%), linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 22%); }
.card.has-video > video { z-index: 0; }
.card span, .card h3 { z-index: 2; }
.card-play { position: absolute; top: 10px; right: 10px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card-play::after { content: ""; position: absolute; top: 50%; left: 55%; transform: translate(-50%, -50%); border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.card.has-video:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.player { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.player::backdrop { background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.player video { display: block; height: min(86vh, 860px); height: min(86svh, 860px); max-width: 92vw; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; background: #000; }
.player-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f0f0ed; color: #0c0c0c; font: 400 24px/1 var(--sans); cursor: pointer; z-index: 2; }
.player-cap { margin-top: 12px; text-align: center; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #d8d8d3; }
@media (max-width: 640px) { .player-close { top: 8px; right: 8px; } }


/* Formats marquee */
.formats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee ul { display: flex; flex: none; }
.marquee li { display: inline-flex; align-items: center; gap: 28px; padding: 20px 28px 20px 0; font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.marquee li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; flex-wrap: wrap; width: auto; } .marquee ul[aria-hidden] { display: none; } }

/* Sections */
.section { padding: 120px 0; }
.head { max-width: 880px; margin-bottom: 56px; }
.kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h2 { font-size: clamp(38px, 5.2vw, 76px); font-weight: 500; line-height: .98; letter-spacing: -0.045em; }
.sub { font-size: 18px; color: var(--muted); max-width: 40em; margin-top: 22px; }

/* Services index */
.index li {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: baseline;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.index li:last-child { border-bottom: 1px solid var(--line); }
.index-n { font-size: 12px; color: var(--muted); }
.index h3 { font-size: clamp(26px, 3vw, 42px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
.index p { color: var(--muted); font-size: 16.5px; max-width: 34em; }

/* Workflow modes */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mode { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.mode-tag { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.mode h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
.mode > p:not(.mode-tag):not(.mix-key) { color: var(--muted); font-size: 16px; }
.mix { display: flex; gap: 2px; height: 10px; margin-top: auto; }
.mix i { border-radius: 4px; }
.mix i:first-child { flex: var(--h); background: var(--fg); }
.mix i:last-child { flex: calc(100 - var(--h)); background: var(--accent); }
.mix-key { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.mode .mode-best { color: var(--fg); font-size: 14.5px; padding-top: 14px; border-top: 1px solid var(--line); }



/* The edit, results */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat { border-top: 1px solid var(--fg); padding-top: 18px; }
.stat-n { display: block; font-size: clamp(48px, 5vw, 76px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.stat-t { display: block; font: 400 12px/1.4 var(--mono); color: var(--muted); margin-top: 10px; text-transform: uppercase; letter-spacing: .06em; }
.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.chart-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px 18px; }
.chart-card figcaption { margin-bottom: 18px; }
.chart-card h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.chart-card figcaption p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.viz { --viz-ours: var(--accent); --viz-base: #7d7b75; --viz-grid: var(--line); --viz-text: var(--fg); --viz-muted: var(--muted); --viz-surface: var(--card); }
.viz .tick, .viz .lbl, .viz .lbl-muted { font-family: var(--mono); }

/* Results deck: light chart cards stacked down; the ones behind show a strip you can click to bring forward */
.deck-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; margin-top: 56px; align-items: start; }
.deck-nav { border-bottom: 1px solid var(--line); }
.deck-nav button {
  width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: baseline; text-align: left;
  padding: 18px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
  font: 500 clamp(17px, 1.5vw, 21px)/1.2 var(--display); letter-spacing: -0.02em; transition: color .2s ease;
}
.deck-nav button:hover { color: var(--fg); }
.deck-nav button > span.mono { font-size: 12px; letter-spacing: 0; color: var(--accent); }
.deck-nav button[aria-pressed="true"] { color: var(--fg); }
.deck { --strip: 46px; position: relative; }
.deck-card {
  --ink: #0c0c0c; --ink-2: #5d5d58;
  position: absolute; left: 0; right: 0; top: 0; margin: 0; transform-origin: 50% 100%;
  background: #f1f1ee; color: var(--ink); border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .7s ease;
}
.deck-card[data-pos="0"] { z-index: 3; transform: translateY(0) scale(1); }
.deck-card[data-pos="1"] { z-index: 2; transform: translateY(var(--strip)) scale(.955); filter: brightness(.86); cursor: pointer; }
.deck-card[data-pos="2"] { z-index: 1; transform: translateY(calc(var(--strip) * 2)) scale(.91); filter: brightness(.72); cursor: pointer; }
.deck-card[data-pos="1"]:hover { transform: translateY(calc(var(--strip) + 8px)) scale(.955); filter: brightness(.94); }
.deck-card[data-pos="2"]:hover { transform: translateY(calc(var(--strip) * 2 + 8px)) scale(.91); filter: brightness(.84); }
.deck-card:not([data-pos="0"]) .dc-body { pointer-events: none; }
.dc-body { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 28px; padding: 26px 26px calc(var(--strip) + 6px); }
.dc-kpi { border-right: 1px solid rgba(12, 12, 12, .1); padding-right: 24px; display: flex; flex-direction: column; gap: 8px; }
.dc-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.dc-value { font: 500 clamp(52px, 5vw, 76px)/1 var(--display); letter-spacing: -0.05em; margin-top: 6px; }
.dc-delta { align-self: flex-start; font: 600 13px/1 var(--sans); color: #157a2c; background: #dff0e2; padding: 6px 9px; border-radius: 999px; }
.dc-sub { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.dc-chart figcaption { margin-bottom: 14px; }
.dc-chart h3 { font: 500 21px/1.2 var(--display); letter-spacing: -0.02em; }
.dc-chart figcaption p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.deck-card .viz { --viz-ours: var(--accent); --viz-base: #9a9a94; --viz-grid: rgba(12, 12, 12, .08); --viz-text: var(--ink); --viz-muted: var(--ink-2); --viz-surface: #f1f1ee; }
.dc-tab {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--strip); display: flex; align-items: center; gap: 14px;
  padding: 0 26px; border: 0; border-top: 1px solid rgba(12, 12, 12, .08); background: transparent; color: var(--ink);
  font: 500 15px/1 var(--display); letter-spacing: -0.01em; text-align: left; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.dc-tab span { font-size: 11.5px; color: var(--accent); }
.dc-tab b { font-weight: 500; flex: 1; }
.dc-tab i { font-style: normal; color: #157a2c; }
.deck-card:not([data-pos="0"]) .dc-tab { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .deck-card { transition: none; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.about-fig { margin: 0; }
.about-fig figcaption { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.about-fig strong { font: 500 clamp(20px, 1.8vw, 24px)/1.15 var(--display); letter-spacing: -0.02em; }
.about-fig figcaption span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.about-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 80% at 30% 15%, #3a3a37, #161615 70%); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.about-copy h2 { font-size: clamp(32px, 3.8vw, 54px); margin-bottom: 26px; }
.about-copy > p:not(.kicker) { font-size: 18px; color: var(--muted); max-width: 36em; }
.about-copy > p + p { margin-top: 16px; }
.caps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.caps li { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 24px/1 var(--mono); color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 46em; }

/* Contact */
.contact { padding: 120px 0 96px; border-top: 1px solid var(--line); }
.contact-title { font-size: clamp(64px, 13vw, 210px); font-weight: 500; letter-spacing: -0.058em; line-height: .9; margin-bottom: 56px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.mail { margin-top: 26px; }
.mail a { font-size: 24px; text-decoration: none; border-bottom: 1.5px solid var(--accent); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 8px; font: 400 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: 400 16px/1.4 var(--sans); color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  text-transform: none; letter-spacing: 0;
}
.form select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form [aria-invalid="true"] { border-color: var(--accent); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot p { font-size: 12px; color: var(--muted); }

.foot { border-top: 1px solid var(--line); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px var(--gutter); font-size: 12px; color: var(--muted); }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* Responsive */
@media (max-width: 1080px) {
  .deck-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .deck-nav { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); padding: 6px var(--gutter) 18px; border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { margin-top: 14px; }
  .modes { grid-template-columns: minmax(0, 1fr); }
  .index li { grid-template-columns: 44px minmax(0, 1fr); }
  .index p { grid-column: 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .about, .faq-wrap, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about-fig { max-width: 380px; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 80px 0; }
  .hero { padding-top: 24px; }
  .hero-meta { flex-direction: column; gap: 6px; }
  .hero-title span:last-child { padding-left: 0; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .hero-reels { justify-content: flex-start; }
  .dc-body { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px 18px calc(var(--strip) + 6px); }
  .dc-kpi { border-right: 0; padding-right: 0; border-bottom: 1px solid rgba(12, 12, 12, .1); padding-bottom: 16px; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 4px 14px; }
  .dc-label, .dc-sub { grid-column: 1 / -1; }
  .dc-value { font-size: 52px; margin: 0; }
  .dc-delta { align-self: end; justify-self: start; margin-bottom: 8px; }
  .dc-tab { padding: 0 18px; font-size: 14px; }
}

/* Display cut for the big type */
h1, h2, h3, h4, .stat-n, .contact-title, .marquee li, .faq summary { font-family: var(--display); }
