/* ==========================================================================
   Virtual Film Tools — house style
   Dark stage + paper document sections. Square corners throughout: the only
   shaped edge is the clipped-corner button.
   ========================================================================== */
:root {
  --ink: #0b0b0c;
  --ink-2: #131315;
  --ink-3: #1c1c1f;
  --paper: #f2f2f2;
  --paper-2: #e6e6e6;
  --text: #f5f5f5;
  --text-dim: #9a9a9e;
  --text-ink: #111112;
  --text-ink-dim: #5c5c60;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --line-ink: rgba(17, 17, 18, 0.16);
  --accent: #4de8ff;
  --accent-text: #4de8ff;
  --accent-ink: #00718a;
  --header-bg: rgba(11, 11, 12, 0.86);
  --rec: #ff3b30;
  --grad-line: linear-gradient(90deg, #4de8ff, #a26bff, #ff4ecb, #ffb454);

  --font-head: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-label: "Rajdhani", "Arial Narrow", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
}

/* Light mode: a white page with a light grey band for the tool index.
   Cyan stays for filled buttons only; text accents go teal. */
:root[data-theme="light"] {
  --ink: #ffffff;
  --ink-2: #f4f4f5;
  --ink-3: #e9e9eb;
  --paper: #f0f0f1;
  --paper-2: #e4e4e6;
  --text: #111112;
  --text-dim: #5c5c60;
  --line: rgba(17, 17, 18, 0.12);
  --line-strong: rgba(17, 17, 18, 0.3);
  --line-ink: rgba(17, 17, 18, 0.16);
  --accent-text: #00718a;
  --header-bg: rgba(255, 255, 255, 0.88);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Type -------------------------------------------------------------------- */
.label {
  font: 600 0.8rem/1 var(--font-label);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.label--accent { color: var(--accent-text); }
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; }
.display {
  font: 800 clamp(2.6rem, 8.4vw, 7.4rem)/0.92 var(--font-head);
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.h2 {
  font: 800 clamp(2rem, 5vw, 3.6rem)/0.98 var(--font-head);
  letter-spacing: -0.035em;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-dim); max-width: 46ch; }
.rule { height: 3px; width: 72px; background: var(--grad-line); border: 0; margin: 0; }

/* Buttons: the portfolio's clipped parallelogram ------------------------- */
.btn {
  --cut: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  font: 700 0.92rem/1 var(--font-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn--primary { background: var(--accent); color: #0b0b0c; }
.btn--primary:hover { background: var(--text); color: var(--ink); }
.btn--ghost { background: var(--ink-3); color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--accent-ink); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font: 700 1.05rem/1 var(--font-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark img { width: 26px; height: 26px; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid var(--line-strong);
  color: var(--text); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--accent-text); color: var(--accent-text); }
.nav a {
  font: 600 0.84rem/1 var(--font-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent-text); }
.nav-toggle {
  display: none;
  height: 40px; padding: 0 14px;
  background: none; border: 1px solid var(--line-strong);
  color: var(--text); cursor: pointer;
  font: 700 0.75rem/1 var(--font-label); letter-spacing: 0.2em;
}

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .label { margin-bottom: 28px; display: block; }
.hero .display { max-width: 12ch; }
.hero .display em { font-style: normal; color: var(--accent-text); }
.hero-foot { margin-top: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Viewfinder frame lines around the hero */
.frame { position: absolute; inset: 24px var(--gutter); pointer-events: none; }
.frame i { position: absolute; width: 28px; height: 28px; border: 0 solid var(--line-strong); }
.frame i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.frame i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.frame .hud { position: absolute; top: 6px; right: 44px; display: flex; gap: 18px; color: var(--text-dim); }
.frame .hud .rec::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--rec); border-radius: 50%; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Section scaffolding ------------------------------------------------------ */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head .label { display: block; margin-bottom: 18px; }
.section-head p { color: var(--text-dim); max-width: 48ch; justify-self: end; }

.paper { background: var(--paper); color: var(--text-ink); }
.paper .label { color: var(--text-ink-dim); }
.paper .section-head p { color: var(--text-ink-dim); }

/* Tool index: a numbered call-sheet list ---------------------------------- */
.tool-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text-ink); }
.tool-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1.4fr) 210px;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-ink);
  text-decoration: none;
  position: relative;
}
.tool-row .num { font: 500 0.9rem/1.6 var(--font-mono); color: var(--text-ink-dim); }
.tool-row h3 { font: 800 clamp(1.7rem, 3.2vw, 2.6rem)/1 var(--font-head); letter-spacing: -0.03em; transition: color 0.2s; }
.tool-row .kind { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font: 600 0.72rem/1 var(--font-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 9px 5px;
  border: 1px solid currentColor;
}
.tag--live { color: #0b7a3e; }
.tag--beta { color: #9a5b00; }
.tool-row p { color: var(--text-ink-dim); }
.tool-row .shot { aspect-ratio: 16 / 10.6; overflow: hidden; background: var(--ink); outline: 1px solid var(--line-ink); }
.tool-row .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.5s; }
.tool-row .go { display: inline-block; margin-top: 18px; font: 700 0.84rem/1 var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-ink); border-bottom: 2px solid var(--text-ink); padding-bottom: 5px; }
.tool-row:hover h3 { color: var(--accent-ink); }
.tool-row:hover .shot img { transform: scale(1.04); }
.tool-row--soon { opacity: 0.55; }
.tool-row--soon h3 { font-weight: 700; }

/* Spotlights --------------------------------------------------------------- */
.spot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.spot + .spot { margin-top: clamp(72px, 10vw, 128px); }
.spot--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.spot--flip .spot-copy { order: 2; }
.spot-copy .label { display: block; margin-bottom: 18px; }
.spot-copy .h2 { margin-bottom: 22px; }
.spot-copy p { color: var(--text-dim); margin-bottom: 26px; }
.spec { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.spec li span:first-child { font: 600 0.78rem/1.9 var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.spec li span:last-child { text-align: right; }

/* A screenshot in a monitor-style bezel with frame-line corners */
.monitor { position: relative; padding: 10px; background: var(--ink-2); border: 1px solid var(--line); }
.monitor img { width: 100%; }
.monitor::before, .monitor::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--accent-text); }
.monitor::before { top: -6px; left: -6px; border-width: 2px 0 0 2px; }
.monitor::after { bottom: -6px; right: -6px; border-width: 0 2px 2px 0; }
.monitor figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px 0; color: var(--text-dim); }

/* Principles -------------------------------------------------------------- */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cols > div { padding: 32px 32px 8px 0; }
.cols > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.cols h3 { font: 700 1.35rem/1.15 var(--font-head); letter-spacing: -0.02em; margin: 14px 0 12px; }
.cols p { color: var(--text-dim); }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer p { color: var(--text-dim); max-width: 40ch; margin-top: 16px; font-size: 0.95rem; }
.site-footer h4 { font: 600 0.78rem/1 var(--font-label); letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--accent-text); }
.site-footer .base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; margin-top: 16px; border-top: 1px solid var(--line); color: var(--text-dim); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 960px) {
  .tool-row { grid-template-columns: 48px minmax(0, 1fr); }
  .tool-row > p, .tool-row .shot { grid-column: 2; }
  .tool-row .shot { max-width: 420px; }
  .spot, .spot--flip { grid-template-columns: minmax(0, 1fr); }
  .spot--flip .spot-copy { order: 0; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head p { justify-self: start; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols > div, .cols > div + div { padding: 28px 0 8px; border-left: 0; border-bottom: 1px solid var(--line); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-header .wrap { gap: 12px; }
  .wordmark { font-size: 0.95rem; letter-spacing: 0.12em; gap: 10px; }
  .nav {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .frame .hud .tc-label { display: none; }
  .tool-row { gap: 16px; grid-template-columns: 36px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
