/* Hexxy — Keep The Day Together! Ink and egg-yolk, with a native film player. */
:root {
  --ink: #0a0f14;
  --ink-2: #111921;
  --panel: rgba(9, 13, 18, .8);
  --panel-solid: #121a22;
  --line: rgba(220, 232, 240, .14);
  --text: #eef1f4;
  --muted: #a9b4c0;
  --faint: #7d8a98;
  --paper: #f4f1ea;
  --yolk: #f5b800;
  --yolk-soft: rgba(245, 184, 0, .14);
  --amber: #f5a524;
  --red: #ef5a50;
  --teal: #5cc3cf;
  --display: "Outfit", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4.5vw, 64px);
  --bar-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar-h); }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 17px/1.6 var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yolk); }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--yolk); outline-offset: 3px; border-radius: 6px; }


/* ─────────── bar ─────────── */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--bar-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(10, 15, 20, .85), rgba(10, 15, 20, 0));
}
.bar-mark img { height: 34px; width: auto; }
.bar-nav { display: flex; gap: 22px; margin-left: auto; }
.bar-nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.bar-nav a:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font: 600 16px/1.1 var(--body);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-yolk { background: var(--yolk); color: #111; }
.btn-yolk:hover { background: #ffc81f; }
.btn-ghost { color: var(--text); border-color: rgba(238, 241, 244, .4); background: rgba(10, 15, 20, .35); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-big { padding: 17px 30px; font-size: 18px; }

.eyebrow { font: 600 12.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--yolk); margin-bottom: 14px; }
.display { font: 700 clamp(30px, 4.2vw, 56px)/1.06 var(--display); letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.display.thin { font-weight: 300; margin-top: 6px; }
.sub { font: 700 clamp(22px, 2.4vw, 30px)/1.15 var(--display); color: #fff; margin-bottom: 18px; }
.big { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--muted); margin-top: 18px; max-width: 46ch; }
.line { font: 400 clamp(22px, 2.6vw, 34px)/1.25 var(--display); color: #fff; }
.note { margin-top: 16px; font: 500 15px/1.5 var(--mono); color: var(--paper); opacity: .85; }
.quote { margin-top: 18px; font: italic 400 18px/1.6 var(--body); color: var(--paper); }
.fine { font-size: 13.5px; color: var(--faint); line-height: 1.5; }
.more { display: inline-block; margin-top: 20px; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ─────────── product, integrations, book ─────────── */
.product, .integrations, .book { position: relative; z-index: 5; padding: 120px var(--gutter); background: var(--ink); }
.wrap { max-width: 1180px; margin: 0 auto; }
.product > .wrap { margin-bottom: 70px; }
.role { max-width: 1180px; margin: 0 auto 90px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.role.flip { grid-template-columns: 1fr 1.35fr; }
.role.flip .role-shot { order: 2; }
.role-shot { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); background: var(--ink-2); }
/* Presentation-only surface correction; original captures stay intact. */
.screenshot-filters { position: absolute; pointer-events: none; }
.role-shot-neutral img { filter: url(#neutral-app-containers); }
.role dl { margin: 0; display: grid; gap: 12px; }
.role dt { font: 600 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--yolk); }
.role dd { margin: 2px 0 0; color: var(--muted); line-height: 1.5; }

.integrations { background: var(--ink-2); }
.sys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 40px 0 34px; }
.sys { padding: 18px 20px; border-radius: 14px; background: rgba(14, 19, 25, .92); border: 1px solid var(--line); }
.sys h4 { font: 700 18px/1.2 var(--display); color: #fff; }
.sys p { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.sys span { display: inline-block; margin-top: 12px; font: 600 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; }
.sys.ready span { color: #111; background: var(--yolk); }
.sys.ask span { color: var(--paper); border: 1px solid var(--line); }

.book .wrap { max-width: 860px; }
.book-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 18px; }
.book-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--paper); }
.book-form label small { font-weight: 400; color: var(--faint); }
/* Keep “optional” beside its label rather than on a line of its
   own — the label is a column flex container, so a bare text node
   and the <small> would each become their own row. */
.book-form .lab { display: block; }
.book-form .wide { grid-column: 1 / -1; }
.book-form input, .book-form textarea {
  font: 400 16px/1.4 var(--body); color: var(--text); background: var(--ink-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.book-form select {
  font: 400 16px/1.4 var(--body); color: var(--text); background: var(--ink-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.book-form input:focus, .book-form textarea:focus, .book-form select:focus,
.book-form button:focus-visible { outline: 2px solid var(--yolk); outline-offset: 1px; }
.book-form button { justify-self: start; }

/* An off-screen label, read aloud but never seen. Not display:none —
   that takes it out of the accessibility tree too. */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* The honeypot. Off-screen rather than display:none, which the kind of
   bot worth catching knows to skip. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* #contact lands on this section without stealing #book's anchor. */
.anchor-alias { display: block; position: relative; top: calc(var(--bar-h) * -1); }

/* ── asking for a meeting ── */
.ask-meeting { margin-top: 4px; }
.book-form .check { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; }
.book-form .check input { width: 20px; height: 20px; flex: none; padding: 0; accent-color: var(--yolk); }
.meeting-fields {
  border: 1px solid var(--line); border-left: 3px solid var(--yolk);
  border-radius: 12px; padding: 20px; background: rgba(245, 184, 0, .04);
}
.meeting-fields[hidden] { display: none; }
.meeting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.meeting-grid .wide { grid-column: 1 / -1; }
.meeting-note { font-size: 14.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.meeting-tz { font-size: 13.5px; color: var(--faint); margin: 0; }
.meeting-tz .tz-name { color: var(--muted); }
.window { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.window legend {
  padding: 0; font-weight: 600; font-size: 14.5px; color: var(--paper); margin-bottom: 6px;
}
.window legend small { font-weight: 400; color: var(--faint); }
.window input, .window select { width: 100%; }

/* ── sending, and what came back ── */
.form-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.book-form button[disabled] { opacity: .55; cursor: progress; }
.form-status { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.form-status.is-bad { color: var(--amber); }
.form-done {
  margin: 40px 0 18px; padding: 28px; border: 1px solid var(--line);
  border-left: 3px solid var(--yolk); border-radius: 12px; background: var(--ink-2);
}
.form-done h3 { margin: 0; font: 600 clamp(20px, 2.2vw, 26px)/1.25 var(--display); color: var(--paper); }
.form-done p { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.turnstile:empty { display: none; }
.closing { margin-top: 60px; font: 300 clamp(22px, 2.6vw, 32px)/1.3 var(--display); color: var(--paper); }

.foot { position: relative; z-index: 5; padding: 50px var(--gutter) 60px; border-top: 1px solid var(--line); background: var(--ink); display: grid; gap: 10px; justify-items: start; color: var(--muted); }
.foot img { height: 36px; width: auto; }
.foot .fine { max-width: 80ch; }


/* The film uses its own finished grade: no CSS filter, crop or overlay. */
.film-hero { padding: calc(var(--bar-h) + 56px) var(--gutter) 64px; background: radial-gradient(ellipse at 80% 0%, #1a2731, transparent 60%), var(--ink); }
.film-intro, .film-feature, .film-extras { max-width: 1280px; margin-inline: auto; }
.film-intro { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 48px; margin-bottom: 36px; }
.film-intro h1 { font: 700 clamp(32px, 4vw, 56px)/1.08 var(--display); letter-spacing: -.025em; color: #fff; text-wrap: balance; }
.film-intro-copy > p { max-width: 49ch; color: var(--muted); font-size: 18px; }
.film-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.film-watch { font-size: 14px; color: var(--paper); text-underline-offset: 4px; }
.film-feature { margin-block: 0; }
.film-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #000; box-shadow: 0 24px 80px -30px #000; }
.film-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; scroll-margin-top: 20px; }
.film-feature figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.film-feature h2 { font: 600 26px/1.2 var(--display); color: var(--paper); }
.film-feature figcaption p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.film-runtime { flex-shrink: 0; color: var(--yolk); font: 400 12px/1.5 var(--mono); }
.film-extras { border-top: 1px solid var(--line); padding-top: 18px; }
.film-extras .fine { color: var(--muted); }
.film-transcript { margin-top: 14px; font-size: 15px; }
.film-transcript summary { width: fit-content; cursor: pointer; color: var(--paper); padding: 8px 0; }
.film-transcript > div { max-width: 75ch; padding-top: 12px; color: var(--muted); }
.film-transcript p { margin-bottom: 12px; }
.film-transcript strong { color: var(--paper); }
.film-transcript .transcript-scene { margin-top: 20px; color: var(--yolk); }
@media (max-width: 1100px) {
  .bar-nav { display: none; }
  .bar .btn { margin-left: auto; }
}
@media (max-width: 820px) {
  :root { --bar-h: 56px; }
  .bar-mark img { height: 28px; }
  .film-hero { padding-top: calc(var(--bar-h) + 32px); padding-bottom: 40px; }
  .film-intro { grid-template-columns: 1fr; gap: 18px; margin-bottom: 26px; }
  .film-intro-copy > p { font-size: 16px; }
  .film-frame { border-radius: 9px; }
  .film-feature figcaption { align-items: flex-start; flex-direction: column; gap: 10px; }
  .display { font-size: clamp(26px, 7.4vw, 36px); }
  .big { font-size: 16px; margin-top: 12px; }
  .role, .role.flip { grid-template-columns: 1fr; gap: 24px; }
  .role.flip .role-shot { order: 0; }
  .sys-grid { grid-template-columns: 1fr; }
  .book-form, .meeting-grid { grid-template-columns: 1fr; }
  .product, .integrations, .book { padding: 80px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
