/* Operator: shared styles for the Rough Cut and Ryan Podolsky sites.
   In the vein of Palantir and Theorem, where Ryan worked before film: near-black and paper sections,
   one neutral grotesk (Geist) set large, light and tight, Geist Mono for indices and labels, hairline
   rules, and one band of moving color. The band is a slit-scan of a West Texas dusk, drawn live on a
   canvas by operator.js (lilac to cobalt to night). Named for the camera operator, and for what Ryan was
   at Palantir and Theorem.
   Motion runs regardless of the OS reduce-motion setting, by the site owner's choice. */

:root {
  --night: #131211;            /* page dark */
  --night-2: #1C1B19;          /* raised dark panels */
  --paper: #F1EFEA;            /* light sections */
  --paper-2: #E6E3DC;
  --bone: #F1EFEA;             /* text on dark */
  --bone-dim: #A29F98;         /* 6.6:1 on --night */
  --ink: #131211;              /* text on paper */
  --ink-dim: #5D5A55;          /* 6.1:1 on --paper */
  --rule-d: rgba(241, 239, 234, .12);
  --rule-l: rgba(19, 18, 17, .14);
  --cobalt: #3D57C7;           /* the band's middle; used for focus and the odd accent */
  --lilac: #C7B8DA;

  --sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1328px;
  --head: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--cobalt); }
::selection { background: var(--cobalt); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -80px; z-index: 50; padding: 10px 14px; background: var(--bone); color: var(--night); font: 500 14px/1 var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.mono, .label {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; color: var(--bone-dim); }
.label .ix { color: var(--bone); }
.light .label { color: var(--ink-dim); }
.light .label .ix { color: var(--ink); }

.display {
  font-weight: 400;
  font-size: clamp(52px, 9.2vw, 148px);
  line-height: .94;
  letter-spacing: -.048em;
  margin-left: -.04em;
  text-wrap: balance;
}
.statement {
  font-weight: 400;
  font-size: clamp(36px, 5.6vw, 88px);
  line-height: 1;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.h2 {
  font-weight: 400;
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.lead {
  font-weight: 300;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.3;
  letter-spacing: -.018em;
}
.dim { color: var(--bone-dim); }
.light .dim { color: var(--ink-dim); }
p, li { text-wrap: pretty; }

/* Big arrow link, Palantir-style */
.go {
  display: inline-flex; align-items: center; gap: .4em;
  font: 400 clamp(22px, 2.2vw, 30px)/1.1 var(--sans); letter-spacing: -.025em;
  text-decoration: none;
}
.go .ar { display: inline-block; transition: transform .35s var(--ease); }
.go:hover .ar, .go:focus-visible .ar { transform: translateX(6px); }
.go:hover .t, .go:focus-visible .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* ---------- Header: one hairline grid, Theorem-style ---------- */
.head {
  position: fixed; inset: 0 0 auto; z-index: 30;
  height: var(--head);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  background: rgba(19, 18, 17, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-d);
}
.head > * { display: flex; align-items: center; }
.brand { gap: 12px; padding: 0 28px 0 var(--gutter); border-right: 1px solid var(--rule-d); text-decoration: none; font: 500 14px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.brand svg { width: 26px; height: 26px; }
.brand-name { font: 500 17px/1 var(--sans); letter-spacing: -.02em; text-transform: none; }
.nav-links { gap: clamp(18px, 2.4vw, 36px); padding: 0 28px; }
.nav-links a { position: relative; font: 400 14px/1 var(--sans); text-decoration: none; color: var(--bone-dim); padding: 10px 0; transition: color .25s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--bone); }
.nav-links .nav-m { display: none; }
.head-cta { padding: 0 var(--gutter) 0 28px; border-left: 1px solid var(--rule-d); font: 400 14px/1 var(--sans); text-decoration: none; gap: 10px; }
.head-cta::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lilac); }
.head-cta:hover { text-decoration: underline; }
.nav-toggle {
  display: none; margin-left: auto;
  font: 400 14px/1 var(--sans); color: var(--bone);
  background: none; border: 0; border-left: 1px solid var(--rule-d);
  padding: 0 var(--gutter); height: 100%; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--head) + clamp(48px, 9vh, 104px));
  display: flex; flex-direction: column;
}
.hero .kicker { margin-bottom: clamp(24px, 3.4vh, 40px); }
.hero .kicker a { color: var(--bone); }
.hero h1 { position: relative; z-index: 2; }
.hero-band {
  position: relative;
  flex: 1 0 clamp(240px, 40vh, 440px);
  margin-top: calc(clamp(52px, 9.2vw, 148px) * -.2);
}
.band-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-panel {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  width: min(36vw, 470px);
  padding: clamp(24px, 2.6vw, 36px) var(--gutter) clamp(28px, 4vh, 48px) clamp(24px, 2.6vw, 36px);
  background: var(--night);
}
.hero-panel .lead { color: var(--bone); }
.hero-panel .mono { margin-top: 26px; color: var(--bone-dim); display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(88px, 11vw, 168px); }
.sec.tight-b { padding-bottom: clamp(56px, 7vw, 104px); }  /* before a same-tone section that opens with a rule */
.light { background: var(--paper); color: var(--ink); }
.light a { color: var(--ink); }
.sec-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px var(--gutter); align-items: start; }
.sec-head .label { padding-top: .7em; }
.rule-top { border-top: 1px solid var(--rule-d); }
.light .rule-top { border-top-color: var(--rule-l); }

/* Body text under a statement */
.body-l { margin-top: clamp(32px, 4vw, 56px); max-width: 36em; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; }
.light .body-l.dim { color: var(--ink-dim); }

/* Two columns of body text under a statement */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(28px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); }
.cols p { font-size: 18px; line-height: 1.55; }
.light .cols p { color: var(--ink-dim); }

/* A row of facts in hairline cells (Theorem's numbered row) */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--rule-l); }
.facts > div { padding: 22px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--rule-l); }
.facts dt { margin-bottom: 14px; }
.facts dd { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -.02em; }

/* Indexed list (Palantir's product rows): /0.1, a name set large, a line of text */
.index-list { margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--rule-l); }
.index-list li {
  display: grid; grid-template-columns: 96px minmax(0, 5fr) minmax(0, 5fr);
  gap: 12px var(--gutter); align-items: baseline;
  padding: clamp(24px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--rule-l);
}
.dark .index-list, .dark .index-list li { border-color: var(--rule-d); }
.index-list .ix { font: 500 13px/1 var(--mono); letter-spacing: .02em; color: var(--ink-dim); }
.dark .index-list .ix { color: var(--bone-dim); }
.index-list h3 { font-size: clamp(28px, 3.1vw, 46px); line-height: 1.02; letter-spacing: -.035em; }
.index-list p { font-size: 18px; line-height: 1.5; color: var(--ink-dim); max-width: 38ch; }
.dark .index-list p { color: var(--bone-dim); }

/* A slim band as a divider, Theorem's "conduit" strip */
.strip { position: relative; height: clamp(64px, 9vw, 112px); }

/* Themes: six words in a hairline grid */
.themes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule-d); border-bottom: 1px solid var(--rule-d); margin-top: clamp(48px, 6vw, 80px); }
.themes li { padding: 20px 16px 26px; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -.02em; }
.themes li + li { border-left: 1px solid var(--rule-d); }
.themes .ix { display: block; margin-bottom: 26px; font: 500 12px/1 var(--mono); color: var(--bone-dim); }

/* Slate card: the band stands in for key art until a title is public */
.slate-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px var(--gutter); margin-top: clamp(48px, 6vw, 80px); align-items: end; }
.slate-copy p + p { margin-top: 18px; }
.card { position: relative; display: block; text-decoration: none; }
.card-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night-2); }
.card-art .mark { position: absolute; left: 28px; top: 28px; width: 44px; height: 44px; color: var(--bone); z-index: 1; }
.card-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; color: var(--bone-dim); }
.card-title { margin-top: 10px; font-size: clamp(28px, 3vw, 44px); line-height: 1.04; letter-spacing: -.035em; }

/* Leadership / about: portrait and copy */
.person { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px var(--gutter); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.portrait { background: var(--paper-2); }
.portrait img { width: 100%; height: auto; filter: grayscale(1) contrast(1.05) brightness(1.02); }
.portrait figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; color: var(--ink-dim); }
.dark .portrait { background: var(--night-2); }
.dark .portrait figcaption { color: var(--bone-dim); }
.person-copy .h2 { margin-bottom: 8px; }
.person-copy .role { margin-bottom: clamp(28px, 3vw, 40px); }
.person-copy .lead { margin-bottom: 28px; }
.person-copy .body p { font-size: 18px; line-height: 1.6; max-width: 40em; }
.person-copy .body p + p { margin-top: 16px; }
.light .person-copy .body p { color: var(--ink-dim); }
.person-copy .go { margin-top: 36px; }
.person.service { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.foot-brand.foot-name { font-size: 20px; letter-spacing: -.02em; text-transform: none; }

/* Press rows */
.press { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule-l); }
.press a {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 10px var(--gutter); align-items: baseline;
  padding: clamp(24px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--rule-l); text-decoration: none;
}
.press .src { color: var(--ink-dim); }
.press .src b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.press .t { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.08; letter-spacing: -.03em; }
.press .t small { display: block; margin-top: 12px; font-size: 17px; line-height: 1.5; letter-spacing: 0; color: var(--ink-dim); }
.press .ar { font-size: clamp(24px, 2.4vw, 34px); transition: transform .35s var(--ease); }
.press a:hover .t, .press a:focus-visible .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.press a:hover .ar, .press a:focus-visible .ar { transform: translateX(6px); }

/* Quote */
.quote { position: relative; }
.quote blockquote p { font-size: clamp(40px, 6.4vw, 104px); line-height: 1; letter-spacing: -.045em; max-width: 14ch; text-wrap: balance; }
.quote cite { display: block; margin-top: clamp(28px, 3vw, 44px); font-style: normal; color: var(--bone-dim); }
.quote cite a { color: var(--bone); }

/* Two big calls to action, split light and dark (Palantir's "Request a demo / Start building") */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split > a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
  min-height: clamp(220px, 26vw, 360px);
  padding: clamp(28px, 3vw, 44px) var(--gutter);
  text-decoration: none;
}
.split > a:first-child { background: var(--paper); color: var(--ink); }
.split > a:last-child { background: var(--night-2); color: var(--bone); }
.split .mono { color: inherit; opacity: .72; }
.split .go { font-size: clamp(30px, 3.6vw, 56px); letter-spacing: -.04em; }

/* ---------- Footer ---------- */
.foot { padding-block: clamp(64px, 8vw, 112px) 36px; border-top: 1px solid var(--rule-d); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 40px var(--gutter); }
.foot-brand { display: flex; align-items: center; gap: 14px; font: 500 15px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.foot-brand svg { width: 34px; height: 34px; }
.foot h2 { margin-bottom: 16px; color: var(--bone-dim); }
.foot li + li { margin-top: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .note { color: var(--bone-dim); font-size: 15px; max-width: 34ch; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(56px, 7vw, 96px); padding-top: 22px; border-top: 1px solid var(--rule-d); color: var(--bone-dim); }
.foot-word { margin-top: clamp(40px, 5vw, 72px); font-size: clamp(64px, 15.4vw, 236px); line-height: .82; letter-spacing: -.06em; margin-left: -.05em; white-space: nowrap; color: var(--bone); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .index-list li { grid-template-columns: 64px minmax(0, 1fr); }
  .index-list p { grid-column: 2; }
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .themes li:nth-child(4) { border-left: 0; }
  .themes li:nth-child(n+4) { border-top: 1px solid var(--rule-d); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .head { grid-template-columns: auto minmax(0, 1fr); }
  .brand { border-right: 0; }
  .head-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: var(--head);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--night); border-bottom: 1px solid var(--rule-d);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .nav-links a { font-size: 26px; letter-spacing: -.03em; color: var(--bone); padding: 14px 0; border-bottom: 1px solid var(--rule-d); }
  .nav-links .nav-m { display: block; }
  .head.open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .no-js .nav-links { position: static; }
  .sec-head, .slate-grid, .person, .person.service { grid-template-columns: minmax(0, 1fr); }
  .person .portrait { max-width: 360px; }
  .press a { grid-template-columns: minmax(0, 1fr) auto; }
  .press .src { grid-column: 1 / -1; }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero-band { flex-basis: clamp(200px, 34vh, 300px); }
  .hero-panel { position: relative; width: auto; padding: 28px var(--gutter) 40px; }
  .hero { padding-bottom: 0; }
  .cols, .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-l); margin-top: 18px; }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes li:nth-child(odd) { border-left: 0; }
  .themes li:nth-child(4) { border-left: 1px solid var(--rule-d); }
  .themes li:nth-child(n+3) { border-top: 1px solid var(--rule-d); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
