/* Company — editorial, threaded by the reasoning line. Built on the core brand
   system in styles.css (same serif display, Inter, warm near-black, film grain).
   No monospace, no terminal chrome — it belongs to the rest of the site. */

.co-page { background: var(--bg); }
.co-main { padding: 150px 40px 40px; }

/* ---- editorial sections, stacked like the rest of the site ---- */
.co-thread { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.co-block { position: relative; padding: 92px 0; border-top: .5px solid var(--border); }
.co-block:first-of-type { padding-top: 8px; border-top: 0; }
.co-block-end { padding-bottom: 40px; }
.co-inner { max-width: 840px; }

/* ---- reveal disabled site-wide on company page — every section renders immediately ---- */
.co-js .co-rev { opacity: 1; transform: none; transition: none; }
.co-js .co-rev.in { opacity: 1; transform: none; }

/* ---- 1 · Mission line + the team gallery (hero) ---- */
.co-hero-block { padding-bottom: 88px; }
/* hero copy stretches across the team width; paragraphs go side by side beneath the headline */
.co-hero-block .co-inner { max-width: none; }
.co-mission-h { font-size: clamp(26px, 3vw, 44px); line-height: 1.06; letter-spacing: -.02em; color: var(--text); max-width: none; text-wrap: balance; }
.co-mission-sub { margin-top: 20px; max-width: 600px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.58; color: var(--text-2); }

/* the team gallery: portrait tiles. grayscale monogram placeholders now;
   drop an <img> into any .tw-img to swap in a real photo. */
.co-team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 50px; }
.tw { position: relative; aspect-ratio: 4 / 5; margin: 0; border-radius: 12px; overflow: hidden; background: var(--surface); border: .5px solid var(--border); }
.tw-img { position: absolute; inset: 0; filter: grayscale(1) contrast(1.02) brightness(.95); transition: filter .5s var(--ease), transform .65s var(--ease); }
.tw-img::before { content: attr(data-initials); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 28px; color: var(--text-3); }
.tw-img:has(img)::before { display: none; }
.tw-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tw:hover .tw-img { filter: none; transform: scale(1.05); }
.tw-cap { position: absolute; inset: auto 0 0 0; padding: 32px 12px 12px; background: linear-gradient(to top, rgba(7,7,8,.92), rgba(7,7,8,0)); display: flex; flex-direction: column; gap: 1px; pointer-events: none; }
.tw-n { font-family: var(--font-display); font-size: 15px; color: var(--text); line-height: 1.14; }
.tw-r { font-size: 11px; letter-spacing: .015em; color: rgba(255,255,255,.66); }

/* shared section heading */
.co-h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 400; letter-spacing: -.015em; line-height: 1.08; color: var(--text); margin-bottom: 12px; }

/* ---- 2 · How we work — values as substantial 2-up tiles ---- */
/* darker contrasting band signals "new chapter" — section bleeds to viewport edges
   while content stays aligned with the rest of the page. The tall padding-top
   creates the chapter-slate moment: the screen fills with the band color first,
   then the title and grid scroll into view. */
/* darker contrasting band signals "new chapter" — section bleeds to viewport edges.
   2x2 grid with cross dividers. */
#principles { background: var(--base); border-top: 0; padding: 96px 0 100px;
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
#principles > .co-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.co-h2-big { font-size: clamp(40px, 4.6vw, 64px); letter-spacing: -.02em; }
.co-prin { margin-top: 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.co-prin-item { display: grid;
  grid-template-columns: clamp(72px, 7vw, 110px) 1fr;
  grid-template-rows: auto auto;
  column-gap: 28px; row-gap: 14px;
  align-items: start; padding: 38px 36px 38px 0; }
/* row 2 cards carry the inter-row hairline */
.co-prin-item:nth-child(n+3) { border-top: 1px solid var(--border); padding-top: 38px; }
.co-prin-item:nth-child(odd)  { padding-right: 56px; border-right: 1px solid var(--border); }
.co-prin-item:nth-child(even) { padding-left: 56px; }
.co-prin-n { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: 4px;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(46px, 4.6vw, 64px); line-height: 1; color: var(--text-3);
  font-feature-settings: "lnum" 1, "tnum" 1; }
.co-prin-name { grid-column: 2; grid-row: 1; margin: 0;
  font-size: clamp(22px, 1.9vw, 28px); font-weight: 400; letter-spacing: -.01em; line-height: 1.15; color: var(--text); }
.co-prin-d { grid-column: 2; grid-row: 2; margin: 0;
  font-size: clamp(15px, 1.1vw, 16.5px); line-height: 1.62; color: var(--text-2); }

/* ---- 3 · Inside TruU — single carousel ---- */
#inside { border-top: 0; }
.co-block-wide .co-inner { margin-bottom: 30px; }
/* transform-based circular carousel: each slide is absolutely positioned in a centered
   viewport pane. the slide BEFORE active (with wrap) sits as the left peek; the slide
   AFTER active sits as the right peek. all other slides are off-screen at opacity 0.
   no DOM clones — just position math. */
.cx { position: relative; overflow: hidden; padding: 6px 0 10px; }
.cx-viewport { position: relative; width: 100%; max-width: 720px; margin: 0 auto;
  aspect-ratio: 3 / 2; overflow: visible; outline: none; }
.cx-viewport:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; border-radius: 12px; }
.cx-slide { position: absolute; inset: 0; margin: 0; border-radius: 16px; overflow: hidden;
  background: var(--surface); border: .5px solid var(--border);
  opacity: 0; transform: translateX(0) scale(.965);
  transition: transform .55s var(--ease), opacity .45s var(--ease), border-color .4s var(--ease);
  pointer-events: none; }
.cx-slide.is-active { opacity: 1; transform: translateX(0) scale(1); border-color: var(--border-hover); pointer-events: auto; z-index: 2; }
.cx-slide.is-prev { opacity: .42; transform: translateX(calc(-100% - 20px)) scale(.965); z-index: 1; pointer-events: auto; cursor: pointer; }
.cx-slide.is-next { opacity: .42; transform: translateX(calc(100% + 20px)) scale(.965); z-index: 1; pointer-events: auto; cursor: pointer; }
/* peek slides navigate the carousel — force pointer cursor on their <img> so the
   lightbox zoom-in doesn't leak through after the carousel advances */
.cx-slide.is-prev img, .cx-slide.is-next img,
.cx-slide.is-far-prev img, .cx-slide.is-far-next img { cursor: pointer !important; }
.cx-slide.is-far-prev { opacity: 0; transform: translateX(calc(-200% - 40px)) scale(.95); }
.cx-slide.is-far-next { opacity: 0; transform: translateX(calc(200% + 40px)) scale(.95); }
.cx-slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; filter: saturate(1.02); }
@media (prefers-reduced-motion: reduce) { .cx-slide { transition: none; } }

.cx-controls { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.cx-count { font-family: var(--font-display); font-size: 16px; color: var(--text-2); font-feature-settings: "lnum" 1, "tnum" 1; letter-spacing: .02em; flex: none; }
.cx-count #cxNow { color: var(--text); }
.cx-count-sep { color: var(--text-3); margin: 0 4px; }
.cx-track { flex: 1; display: flex; gap: 6px; align-items: center; }
.cx-tick { flex: 1; height: 2px; border: 0; padding: 0; background: var(--border); border-radius: 2px; cursor: pointer; transition: background .4s var(--ease); }
.cx-tick:hover { background: var(--text-3); }
.cx-tick.on { background: var(--text-2); }
.cx-arrows { display: flex; gap: 12px; flex: none; }
.cx-arr { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-hover); background: var(--surface); color: var(--text); padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.cx-arr svg { display: block; }
.cx-arr:hover { border-color: var(--text-3); background: var(--base); }
.cx-arr:active { transform: scale(.96); }
.cx-arr:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
.cx-arr:disabled { opacity: .45; cursor: default; }

/* ---- 5 · Hiring ---- */
.co-hire-h { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.018em; color: var(--text); }
.co-hire-sub { margin-top: 22px; max-width: 480px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--text-2); }
#hiring .btn-primary { margin-top: 34px; }
#hiring .btn-primary .arr { color: var(--primary-fg); opacity: .55; margin-left: 2px; transition: transform .4s var(--ease); }
#hiring .btn-primary:hover .arr { transform: translateX(4px); }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .co-team { grid-template-columns: repeat(4, 1fr); }
  .co-mission-sub { max-width: 560px; }
}
@media (max-width: 860px) {
  .co-main { padding: 120px 22px 30px; }
  .co-thread { padding: 0 22px; }
  .co-block { padding: 64px 0; }
  .co-hero-block { padding-bottom: 60px; }
  /* stack values vertically on narrow screens */
  .co-prin { grid-template-columns: 1fr; }
  .co-prin-item { padding: 30px 0; }
  .co-prin-item:nth-child(odd),
  .co-prin-item:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0; }
  .co-prin-item:nth-child(n+2) { border-top: 1px solid var(--border); padding-top: 30px; }
  .co-team { gap: 12px; margin-top: 40px; }
  .cx-viewport { margin: 0 -22px 0 0; padding: 6px 22px 10px 0; gap: 14px; }
  .cx-slide { width: 86%; }
}
@media (max-width: 760px) {
  .co-main { padding: 96px 22px 30px; }
  .co-thread { padding: 0 22px; }
  .co-block { padding: 56px 0; }
  .co-hero-block { padding-bottom: 56px; }
  .co-mission-h { font-size: clamp(34px, 9vw, 42px); line-height: 1.06; }
  .co-mission-sub { font-size: 15.5px; line-height: 1.55; margin-top: 22px; max-width: none; }
  .co-h2 { font-size: clamp(26px, 7vw, 32px); line-height: 1.08; }
  .co-h2-big { font-size: clamp(28px, 7.6vw, 34px); line-height: 1.08; }
  .co-hire-h { font-size: clamp(34px, 9vw, 42px); line-height: 1.06; }
  .co-hire-sub { font-size: 15.5px; line-height: 1.55; margin-top: 22px; max-width: none; }
  .co-thesis-body { margin-top: 22px; gap: 16px; }
  .co-thesis-body p { font-size: 15px; line-height: 1.55; }
  #principles { padding: 64px 0; }
  #principles > .co-inner { padding: 0 22px; }
  .cx-arr { width: 44px; height: 44px; }
}
@media (max-width: 640px) {
  .co-team { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .co-team { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tw { aspect-ratio: 4 / 5; }
  .cx-controls { gap: 14px; justify-content: center; }
}

/* ---- Why we exist (thesis) ---- */
.co-thesis-body { margin-top: 28px; max-width: none; display: flex; flex-direction: column; gap: 20px; }
.co-thesis-body p { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--text-2); margin: 0; }
