/* Geist Latin, served locally. License: assets/fonts/Geist-OFL.txt. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/geist-latin-500.woff2') format('woff2');
}

/* ------------------------------------------------------------------ tokens */
/* Gallery-white palette: a cool, quiet white page, a dotted drawing-board canvas behind the hero,
   graphite ink, one copper accent and grain-textured dark bands. Footage carries the colour. */
:root {
  --bg: #fcfcfb;
  --surface: #ffffff;
  --tint: #f3f3f1;
  --canvas: #fafaf9;
  --canvas-dot: rgba(24, 24, 26, 0.13);
  /* Text greys: --faint is the lightest that keeps small text at 4.5:1 on every light surface
     (--tint and tinted hover fills included); --night-faint is its counterpart on dark bands. */
  --fg: #18181a;
  --muted: #55545a;
  --faint: #69686e;
  --line: rgba(24, 24, 26, 0.09);
  --line-strong: rgba(24, 24, 26, 0.18);
  --panel: #ffffff;
  --accent: #b8532e;
  --accent-ink: #a8492a;
  --danger: #b42318;
  --night: #121214;
  --night-2: #1b1b1e;
  --night-line: rgba(255, 255, 255, 0.09);
  --night-fg: #f1efea;
  --night-muted: #9d9ba1;
  --night-faint: #8a8990;
  --night-accent: #e08a62;
  --shadow-card:
    0 1px 1px rgba(24, 24, 26, 0.03), 0 2px 4px rgba(24, 24, 26, 0.03),
    0 12px 28px -14px rgba(24, 24, 26, 0.16);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --pad: clamp(16px, 4vw, 40px);
  --max: 71rem;
  --gutter: max(var(--pad), calc((100vw - var(--max)) / 2));
  --grid-gap: clamp(1.5rem, 3vw, 2.5rem);
  --section-space: clamp(64px, 9vw, 120px);
  --heading-gap: clamp(1.5rem, 2.5vw, 2rem);
  --radius: 12px;
  --columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  --header-h: 64px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Geist', var(--font);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0 0 1.1em;
}
/* Avoid one-word last lines in running text and table cells, and wrap short labels into even lines.
   The longhand leaves an inherited `white-space: nowrap` alone (the `text-wrap` shorthand would reset
   it to wrap); classes that balance keep balancing. */
p,
li,
dd,
figcaption,
summary,
th,
td {
  text-wrap-style: pretty;
}
dt {
  text-wrap-style: balance;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
}
.skip:focus {
  top: 1rem;
}
.inner {
  max-width: var(--max);
  margin-inline: auto;
}

/* typography */
.text-h1,
.text-h2 {
  font-family: var(--display);
  font-weight: 500;
  text-wrap: balance;
}
.text-h1 {
  font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0;
}
.text-h2 {
  font-size: clamp(2rem, 1.35rem + 1.9vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
}
.text-h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  letter-spacing: -0.005em;
}
.text-caption {
  font-size: 0.8125rem;
  color: var(--muted);
}
.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ------------------------------------------------------------------ buttons */
/* Graphite primary with a hairline highlight; the light variant is for dark bands. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.btn--primary {
  background: linear-gradient(#2a2a2e, var(--fg));
  color: var(--night-fg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 2px rgba(24, 24, 26, 0.24),
    0 6px 14px -8px rgba(24, 24, 26, 0.45);
}
.btn--primary:hover {
  background: linear-gradient(#333338, #1e1e21);
}
.btn--light {
  background: linear-gradient(#fbfaf7, #e9e7e1);
  color: var(--fg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.4);
}
.btn--light:hover {
  background: linear-gradient(#fff, #f0eee9);
}
.btn--line {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--fg);
}
.btn--line:hover {
  border-color: var(--fg);
}
/* aria-disabled: unavailable for now but keeping keyboard focus, as Load more does while it loads. */
.btn:disabled,
.btn[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.4;
  box-shadow: none;
}
.btn--sm {
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
}
.btn--lg {
  height: 50px;
  padding: 0 24px;
}

/* Dark bands: graphite with a faint film grain, shared by showcases, developer sections and the footer. */
.band-dark {
  position: relative;
  isolation: isolate;
  background-color: var(--night);
  color: var(--night-fg);
}
.band-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--grain);
  opacity: 0.5;
  mix-blend-mode: soft-light;
}
.band-dark .eyebrow {
  color: var(--night-muted);
}

/* Tool icons (assets/icons/tools): one stroke drawing per tool, painted in the text colour. */
.tool-icon {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.tool-icon--video-enhance {
  --icon: url(../assets/icons/tools/video-enhance.svg);
}
.tool-icon--video-restore {
  --icon: url(../assets/icons/tools/video-restore.svg);
}
.tool-icon--video-interpolate {
  --icon: url(../assets/icons/tools/video-interpolate.svg);
}
.tool-icon--video-hdr {
  --icon: url(../assets/icons/tools/video-hdr.svg);
}
.tool-icon--video-lowlight {
  --icon: url(../assets/icons/tools/video-lowlight.svg);
}
.tool-icon--video-captions {
  --icon: url(../assets/icons/tools/video-captions.svg);
}
.tool-icon--video-subtitle-remove {
  --icon: url(../assets/icons/tools/video-subtitle-remove.svg);
}
.tool-icon--video-reframe {
  --icon: url(../assets/icons/tools/video-reframe.svg);
}
.tool-icon--video-blur {
  --icon: url(../assets/icons/tools/video-blur.svg);
}
.tool-icon--audio-cleanup {
  --icon: url(../assets/icons/tools/audio-cleanup.svg);
}
.tool-icon--audio-separate {
  --icon: url(../assets/icons/tools/audio-separate.svg);
}

/* The canvas: a drawing-board panel inset from the window, with a dot grid that fades towards the
   edges, faint paper grain and soft light from above (the hero of the homepage and landing pages). */
.canvas-hero {
  position: relative;
  isolation: isolate;
  margin: 10px 10px 0;
  border: 1px solid rgba(24, 24, 26, 0.06);
  border-radius: 28px;
  background:
    radial-gradient(60% 50% at 50% 34%, #ffffff 0%, rgba(255, 255, 255, 0) 100%), var(--canvas);
}
.canvas-hero::before,
.canvas-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}
.canvas-hero::before {
  background-image: radial-gradient(circle, var(--canvas-dot) 0 1px, transparent 1.2px);
  background-size: 18px 18px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(
    62% 72% at 50% 38%,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.12) 90%,
    transparent 100%
  );
  mask-image: radial-gradient(
    62% 72% at 50% 38%,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.12) 90%,
    transparent 100%
  );
}
.canvas-hero::after {
  background-image: var(--grain);
  opacity: 0.12;
  mix-blend-mode: multiply;
  filter: invert(1);
}
@media (max-width: 720px) {
  .canvas-hero {
    margin: 6px 6px 0;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
