/*
 * YSS Ventures: the shared look for the home page and /card. Apple-style monochrome (D-036):
 * black stages and light-grey pages, very large type, one product shot of a YSS system at work.
 * Reference: INTERNAL LIFE OS/assets/web/looks/2026-10-05-apple-monochrome.html
 */
@font-face {
  font-family: "Inter Tight";
  src: url("inter-tight.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --black: #000000;
  --panel: #111113;
  --paper: #f4f4f6;
  --white: #ffffff;
  --ink: #111113;
  --ink-2: #3a3a3f;
  --muted: #6c6c72;
  --line: #dcdce0;
  --on-dark: #f4f4f6;
  --muted-dark: #a1a1a7;
  --line-dark: #26262a;
  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--on-dark);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--white); }
.dark ::selection { background: var(--on-dark); color: var(--black); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.dark { background: var(--black); color: var(--on-dark); }
.light { background: var(--paper); color: var(--ink); }
.white { background: var(--white); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  z-index: 40;
  top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgb(0 0 0 / 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  color: var(--on-dark);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.mark { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.mark span { font-weight: 500; color: var(--muted-dark); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 0.9375rem; color: var(--muted-dark); text-decoration: none; white-space: nowrap; transition: color 0.3s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--on-dark); }
/* Phones: the links sit on a second row that scrolls sideways, so every section stays one tap away. */
@media (max-width: 859px) {
  html { scroll-padding-top: 116px; }
  .nav-in { flex-wrap: wrap; height: auto; padding-top: 6px; row-gap: 0; }
  .nav-links { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 0 10px; font-size: 0.875rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font: 500 1rem/1 var(--font);
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.97); }
.dark .btn { border-color: var(--line-dark); color: var(--on-dark); }
.dark .btn.primary { border-color: var(--on-dark); background: var(--on-dark); color: var(--black); font-weight: 600; }
.light .btn, .white .btn { border-color: var(--ink); color: var(--ink); }
.light .btn.primary, .white .btn.primary { background: var(--ink); color: var(--white); font-weight: 600; }
.nav .btn { min-height: 44px; padding: 0 18px; border-color: var(--on-dark); background: var(--on-dark); color: var(--black); font-size: 0.9375rem; font-weight: 600; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btns { justify-content: center; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 0.22em; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(88px, 12vw, 160px); }
.sec-title { font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4.25rem); }
.sec-lede { max-width: 42ch; margin-top: 18px; font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); line-height: 1.45; color: var(--muted); }
.center .sec-lede { margin-inline: auto; }
.dark .sec-lede { color: var(--muted-dark); }

/* ---------- Hero ---------- */
.hero { overflow: hidden; padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero h1 { max-width: 14ch; margin-inline: auto; font-size: clamp(2.7rem, 1.2rem + 6.2vw, 6rem); }
.hero .sec-lede { max-width: 38ch; }
.hero .btns { margin-top: 36px; }

/* The product shot: a YSS system working through real jobs (illustration) */
.stage { margin-top: clamp(56px, 8vw, 96px); perspective: 1600px; }
.device {
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(6px, 0.9vw, 11px);
  border-radius: clamp(16px, 2vw, 24px);
  background: linear-gradient(180deg, #2b2b2f, #101012);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 50px 100px -50px rgb(0 0 0 / 0.9);
  transform-origin: 50% 0;
}
.screen { overflow: hidden; border-radius: clamp(10px, 1.3vw, 15px); background: var(--white); color: var(--ink); text-align: left; }
.app { display: grid; }
@media (min-width: 760px) { .app { grid-template-columns: 230px minmax(0, 1fr); } }
.app-side { display: none; padding: 22px 14px; background: #f6f6f8; border-right: 1px solid #e7e7eb; }
@media (min-width: 760px) { .app-side { display: block; } }
.app-brand { padding: 0 10px 14px; font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.02em; }
.app-jobs { display: grid; gap: 2px; }
.app-jobs li { padding: 10px; border-radius: 10px; font-size: 0.875rem; color: var(--ink-2); transition: background-color 0.45s var(--ease), color 0.45s var(--ease); }
.app-jobs li.on { background: var(--ink); color: var(--white); }
.app-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: clamp(18px, 3vw, 36px); }
.app-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-job { font-size: clamp(1.3rem, 1rem + 1.3vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.app-from { margin-top: 6px; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.app-state { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #f0f0f3; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.app-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.app-state.run::before { animation: breathe 1.1s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.2; } }
.app-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding-block: 14px; border-top: 1px solid #ececf0; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.app-steps li.wait { opacity: 0; transform: translateY(10px); }
.app-steps time { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-label { min-width: 0; font-size: 1rem; }
.bar { grid-column: 2; height: 3px; overflow: hidden; border-radius: 3px; background: #ececf0; }
.bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.done .bar i { transform: scaleX(1); }
.tick { display: grid; grid-row: 1 / span 2; grid-column: 3; place-items: center; width: 28px; height: 28px; border: 1.5px solid #d6d6db; border-radius: 50%; color: transparent; transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.done .tick { background: var(--ink); border-color: var(--ink); color: var(--white); }
.js .done .tick { transition-delay: 0.85s; }
.app-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #ececf0; font-size: 0.8125rem; color: var(--muted); }

/* ---------- What we do ---------- */
.cols { display: grid; margin-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--line); }
@media (min-width: 700px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.col { display: grid; align-content: start; gap: 10px; padding: 32px 24px 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) { .col { border-bottom: 0; padding-right: 28px; } .col + .col { padding-left: 28px; border-left: 1px solid var(--line); } }
.col svg { width: 36px; height: 36px; margin-bottom: 8px; color: var(--ink); }
.col h3 { font-size: 1.5rem; }
.col p { color: var(--muted); }

/* ---------- Case study ---------- */
.case { display: grid; gap: 40px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .case { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; } }
.case-name { font-size: clamp(2.6rem, 1.4rem + 4vw, 4.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.case-tag { margin-top: 12px; font-size: 1.0625rem; color: var(--muted); }
.case-block + .case-block { margin-top: 36px; }
.case-block h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.case-block p { margin-top: 10px; font-size: 1.125rem; color: var(--ink-2); max-width: 56ch; }
.case-list { margin-top: 14px; border-top: 1px solid var(--line); }
.case-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; color: var(--ink-2); }
.case-list strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }

/* ---------- Story ---------- */
.story p { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); line-height: 1.35; letter-spacing: -0.015em; color: var(--muted-dark); }
.story p + p { margin-top: 28px; }
.story p strong { color: var(--on-dark); font-weight: 600; }

/* ---------- Team ---------- */
.team { display: grid; gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--white); }
.initials { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.person h3 { font-size: 1.625rem; }
.role { margin-top: 4px; font-size: 1rem; color: var(--muted); }
.person .bio { color: var(--ink-2); }
.person .more { margin-top: auto; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 18px; cursor: pointer; list-style: none; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-4px); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq dd, .faq .answer { padding-bottom: 22px; max-width: 60ch; font-size: 1.0625rem; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact h2 { max-width: 15ch; margin-inline: auto; font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5rem); }
.contact h2 .soft { color: var(--muted-dark); }
.contact .btns { margin-top: 36px; }
.lines { display: grid; gap: 4px; margin-top: 28px; font-size: 1rem; color: var(--muted-dark); }
.lines span { user-select: all; }

.foot { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- /card ---------- */
.card-hero { padding-top: clamp(40px, 8vw, 88px); padding-bottom: clamp(56px, 8vw, 96px); }
.card-hero h1 { max-width: 12ch; margin-inline: auto; font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); }
.video {
  position: relative;
  width: min(100%, 400px);
  margin: clamp(32px, 5vw, 48px) auto 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line-dark), 0 40px 80px -40px rgb(0 0 0 / 0.9);
  aspect-ratio: 9 / 16;
}
.video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-hero .btns { justify-content: center; margin-top: 32px; }
.card-hero .btn { min-width: 160px; }
.card-hero .btn.primary { min-width: min(100%, 332px); }
.who { margin-top: 32px; }
.who strong { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.who span { color: var(--muted-dark); }

/* ---------- Motion: only when the device allows it, and only once JavaScript runs ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .sec-lede, .hero .btns, .card-hero h1, .card-hero .sec-lede, .card-hero .video { animation: rise 1.2s var(--ease) both; }
  .hero .sec-lede, .card-hero .sec-lede { animation-delay: 0.12s; }
  .hero .btns, .card-hero .video { animation-delay: 0.24s; }
  .js .reveal { opacity: 0.001; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  @supports (animation-timeline: view()) {
    .device { animation: upright linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes upright { from { transform: rotateX(24deg) scale(0.88); opacity: 0.6; } to { transform: none; opacity: 1; } }

/* ---------- Our work: Nasher Miles first, then the other projects we've built ---------- */
.nm { margin-top: clamp(40px, 6vw, 64px); }
.nm-logo { display: block; width: auto; height: 33px; }
.nm-media { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 700px) { .nm-media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.nm-shot { display: block; margin: 0; color: inherit; text-decoration: none; }
.nm-shot .frame { overflow: hidden; border-radius: 20px; background: var(--paper); }
.nm-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s var(--ease); }
a.nm-shot:hover img { transform: scale(1.02); }
.nm-cap { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.9375rem; color: var(--muted); }
a.nm-shot:hover .nm-cap { color: var(--ink); }
.nm-line { max-width: 28ch; margin-top: 32px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); }
.nm-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 12px; }
.built { display: grid; gap: 24px; margin-top: clamp(48px, 7vw, 80px); }
@media (min-width: 900px) { .built { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.built h3 { font-size: 1.5rem; }
.projects { margin-top: clamp(64px, 9vw, 112px); padding-top: 40px; border-top: 1px solid var(--line); }
.projects-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.proj-grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 800px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.proj { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 24px; background: var(--paper); }
.proj img { align-self: flex-start; width: auto; height: 30px; }
.proj p { color: var(--ink-2); }
.proj-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: auto; }
