/* Lapin Group hub look (10 Nov 2026, palette 13 Nov). White and Apple gray, near-black type, yellow as the one spice, a lot of space.
   Used by index.html, companies.html and start.html, on top of site.css (tokens live there).
   No blur-in, no marquee, no glow. Motion only in the project map. */

.hub { font-size: 17px; }
.hub .hw { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .hub .hw { padding: 0 36px; } }

.hub .small {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 12.5px; letter-spacing: .01em; color: var(--muted);
}

/* ---------- header ---------- */
.hnav { position: sticky; top: 0; z-index: 40; background: var(--ground); border-bottom: 1px solid var(--rule); }
.hnav .hw { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 60px; }
.hnav .logo-rabbit { width: 26px; height: 36px; }
.hnav .logo-word { font-size: 21px; }
.hnav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 22px; }
.hnav-links a, .hmenu-panel a {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px;
  color: var(--muted); text-decoration: none;
}
.hnav-links a:hover, .hmenu-panel a:hover { color: var(--ink); }
.hnav-right { display: flex; align-items: center; gap: 10px; }
.hnav .theme-wide { display: none; }
@media (min-width: 980px) {
  .hnav-links { display: flex; }
  .hmenu { display: none; }
  .hnav .theme-wide { display: block; }
}

.hbtn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13.5px; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  padding: 13px 20px; border-radius: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--ground);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.hbtn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.hbtn.quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.hbtn.quiet:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.hbtn.sm { padding: 8px 13px; font-size: 12.5px; border-radius: 7px; }
.hbtn .arr { transition: transform .15s ease; }
.hbtn:hover .arr { transform: translateX(3px); }

/* phone menu: a plain details element, works without JavaScript */
.hmenu { position: relative; }
.hmenu summary {
  list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 7px;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--ink); background: var(--ground);
}
.hmenu summary::-webkit-details-marker { display: none; }
.hmenu[open] summary { border-color: var(--ink); }
.hmenu-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: min(78vw, 300px);
  background: var(--ground); border: 1px solid var(--rule); border-radius: 12px; padding: 8px;
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, .35);
}
.hmenu-panel ul { list-style: none; margin: 0; padding: 0; }
.hmenu-panel li a { display: block; padding: 12px 12px; font-size: 14px; color: var(--ink); border-radius: 8px; }
.hmenu-panel li a:hover { background: var(--wash); }
.hmenu-panel .sep { height: 1px; background: var(--rule); margin: 6px 4px; }
.hmenu-panel .theme { margin: 8px 8px 6px; }

/* ---------- hero ---------- */
.hero2 { padding: 44px 0 8px; }
.hero2 .hw { display: grid; gap: 34px; }
.hero2 .who { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.hero2 .who i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero2 h1 {
  font-size: clamp(34px, 8.8vw, 66px); line-height: 1.04; letter-spacing: -.035em; max-width: 17ch;
}
.hero2 .lede { margin: 22px 0 0; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--muted); max-width: 34ch; }
.hero2 .lede b { color: var(--ink); font-weight: 500; }
.hero2 .go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.portrait { margin: 0; }
.portrait .frame {
  position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 420px; border-radius: 14px; overflow: hidden;
  background: var(--wash); border: 1px solid var(--rule);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; display: block; }
.portrait .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.portrait .ph svg { width: 34%; opacity: .28; }
.portrait figcaption { margin-top: 10px; }
@media (min-width: 880px) {
  .hero2 { padding: 84px 0 24px; }
  .hero2 .hw { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: end; }
  .portrait .frame { margin-inline-start: auto; }
  .portrait figcaption { text-align: end; }
}

/* ---------- sections ---------- */
.hsec { padding: 64px 0 0; border: 0; }
@media (min-width: 880px) { .hsec { padding-top: 104px; } }
.hsec-head { display: grid; gap: 12px; margin-bottom: 26px; }
.hsec-head h2 { font-size: clamp(27px, 5.2vw, 40px); letter-spacing: -.03em; line-height: 1.06; max-width: 20ch; }
.hsec-head p { margin: 0; color: var(--muted); max-width: 52ch; }

/* a visible Draft mark on anything written in Roy's voice that he has not approved */
[data-draft] { position: relative; }
.draft-tag {
  display: inline-block; vertical-align: middle;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: .02em; line-height: 1;
  color: var(--muted); background: transparent; border: 1px dashed var(--muted); border-radius: 999px; padding: 4px 8px;
}

/* ---------- doors ---------- */
.doors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.doors li { border-bottom: 1px solid var(--rule); }
.door {
  display: grid; gap: 6px 24px; padding: 22px 0; text-decoration: none; color: var(--ink);
  grid-template-columns: 1fr auto; align-items: center;
}
.door .for { grid-column: 1 / -1; }
.door strong { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: clamp(22px, 4.6vw, 30px); letter-spacing: -.025em; line-height: 1.1; display: block; }
.door .line { display: block; color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 6px; max-width: 46ch; }
.door .go {
  grid-column: 1 / -1; justify-self: start; margin-top: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px;
  border: 1px solid var(--rule); border-radius: 8px; padding: 9px 13px; display: inline-flex; gap: 8px; align-items: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.door .go .arr { transition: transform .15s ease; }
.door:hover .go, .door:focus-visible .go { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.door:hover .go .arr { transform: translateX(3px); }
@media (min-width: 880px) {
  .door { grid-template-columns: 190px minmax(0, 1fr) auto; padding: 30px 0; }
  .door .for { grid-column: auto; }
  .door .go { grid-column: auto; justify-self: end; margin-top: 0; }
}

/* ---------- the warren: the project map ---------- */
.warren { position: relative; }
.warren-ground { position: relative; height: 62px; border-bottom: 1.5px solid var(--ink); color: var(--ink); }
.warren-hole { position: absolute; inset-inline-start: 4px; bottom: -6px; width: 26px; height: 11px; border-radius: 50%; background: var(--ink); }
.warren-rabbit { position: absolute; inset-inline-start: 44px; bottom: 0; width: 40px; height: 52px; overflow: visible; }
.warren-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.warren-lines path { fill: none; stroke: var(--rule); stroke-width: 1.5; stroke-linecap: round; transition: stroke .2s ease; }
.warren-lines path.on { stroke: var(--ink); }
.warren-lines .runner { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; }
.warren-body { position: relative; display: grid; gap: 14px; padding: 6px 0 0 30px; }
.chamber { position: relative; }
.chamber-btn {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  text-align: start; cursor: pointer; color: var(--ink); background: var(--ground);
  border: 1.5px solid var(--ink); border-radius: 30px 34px 32px 36px / 34px 30px 36px 30px; padding: 12px 20px 13px;
  font: inherit; transition: background .15s ease;
}
.chamber-btn .for { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--muted); }
.chamber-btn .name { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.02em; line-height: 1.15; }
.chamber-btn .count { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.chamber-btn:hover { background: var(--wash); }
.chamber.open .chamber-btn { background: var(--ink); color: var(--ground); }
.chamber.open .chamber-btn .for, .chamber.open .chamber-btn .count { color: color-mix(in srgb, var(--ground) 70%, transparent); }
.pockets { position: relative; list-style: none; margin: 0; padding: 12px 0 4px 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.pocket {
  position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 36px;
  font-size: 14px; line-height: 1.2; text-decoration: none; color: var(--ink); background: var(--ground);
  border: 1.5px solid var(--rule); border-radius: 999px; padding: 7px 14px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.pocket:hover { border-color: var(--ink); }
.pocket[aria-current="true"] { border-color: var(--accent-ink); background: var(--accent-soft); }
/* with JavaScript on a phone, only the open chamber shows its pockets */
.warren.js .chamber:not(.open) .pockets { display: none; }
.burrow {
  position: relative; z-index: 1; margin: 10px 0 6px 18px; padding: 18px 18px 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--ground);
  display: grid; gap: 8px;
}
.burrow h3 { font-size: 20px; letter-spacing: -.02em; }
.burrow p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 52ch; }
.burrow .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.burrow .state { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 4px 9px; }
.burrow .hbtn { justify-self: start; margin-top: 6px; }
.warren-hint { margin: 14px 0 0 30px; }
@media (min-width: 900px) {
  .warren-body { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 34px; padding: 26px 0 0; align-items: start; }
  .warren-body .chamber:nth-child(3n+2) { margin-top: 46px; }
  .warren-body .chamber:nth-child(3n) { margin-top: 14px; }
  .warren.js .chamber:not(.open) .pockets { display: flex; }
  .chamber.open .chamber-btn { background: var(--ground); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
  .chamber.open .chamber-btn .for, .chamber.open .chamber-btn .count { color: var(--muted); }
  .pockets { padding-inline-start: 10px; }
  .burrow { margin: 34px 0 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 30px; padding: 24px 26px; }
  .burrow .hbtn { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .warren-hint { margin-inline-start: 0; }
}

/* ---------- writing rows ---------- */
.wrows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.wrows li { border-bottom: 1px solid var(--rule); }
.wrows a { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: baseline; padding: 18px 0; text-decoration: none; color: var(--ink); }
.wrows strong { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 20px; letter-spacing: -.02em; }
.wrows span.line { grid-column: 1 / -1; color: var(--muted); font-size: 15.5px; }
.wrows .arr { font-family: "IBM Plex Mono", ui-monospace, monospace; color: var(--muted); transition: transform .15s ease; }
.wrows a:hover .arr { transform: translateX(3px); color: var(--ink); }
@media (min-width: 880px) {
  .wrows a { grid-template-columns: 190px minmax(0, 1fr) auto; }
  .wrows span.line { grid-column: auto; }
}

/* ---------- about and the closing ask ---------- */
.about2 { display: grid; gap: 22px; }
.about2 p { margin: 0 0 16px; font-size: 18px; line-height: 1.6; max-width: 58ch; }
.about2 p.dim { color: var(--muted); font-size: 16px; }
@media (min-width: 880px) { .about2 { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; } }
.ask { margin-top: 64px; padding: 44px 0 56px; border-top: 1px solid var(--ink); display: grid; gap: 18px; }
@media (min-width: 880px) { .ask { margin-top: 104px; padding: 64px 0 84px; } }
.ask h2 { font-size: clamp(30px, 6.4vw, 54px); letter-spacing: -.035em; line-height: 1.03; max-width: 16ch; }
.ask p { margin: 0; color: var(--muted); max-width: 46ch; }
.ask .go { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 6px; }
.ask a.mail { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13.5px; color: var(--ink); }

/* ---------- companies page ---------- */
.phead { padding: 48px 0 0; }
@media (min-width: 880px) { .phead { padding-top: 84px; } }
.phead h1 { font-size: clamp(36px, 8.6vw, 64px); letter-spacing: -.035em; line-height: 1.03; max-width: 16ch; }
.phead .lede { margin: 20px 0 0; font-size: clamp(18px, 2.2vw, 20px); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.phead .go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.grid2 { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.grid2 > div { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.grid2 h3 { font-size: 21px; letter-spacing: -.02em; }
.grid2 p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 52ch; }
@media (min-width: 880px) {
  .grid2 { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--muted); padding-top: 5px; }
.steps h3 { font-size: 20px; letter-spacing: -.02em; }
.steps p { grid-column: 2; margin: 0; color: var(--muted); font-size: 16px; }
.tiers { display: grid; gap: 14px; }
@media (min-width: 880px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.tier { border: 1px solid var(--rule); border-radius: 14px; padding: 24px 22px; display: flex; flex-direction: column; gap: 4px; background: var(--ground); }
.tier.pick { border-color: var(--ink); }
.tier h3 { font-size: 20px; letter-spacing: -.02em; }
.tier .who { margin: 0; color: var(--muted); font-size: 15px; }
.tier .price { margin: 16px 0 6px; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tier .price span { font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.tier ul { list-style: none; margin: 6px 0 18px; padding: 0; flex: 1; }
.tier li { border-top: 1px solid var(--rule); padding: 9px 0; font-size: 15px; color: var(--muted); }
.fineprint { margin: 18px 0 0; color: var(--muted); font-size: 14.5px; max-width: 70ch; }

/* ---------- start page (the one contact path) ---------- */
.start2 { padding: 44px 0 20px; display: grid; gap: 34px; }
@media (min-width: 880px) { .start2 { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; padding-top: 84px; } }
.start2 h1 { font-size: clamp(34px, 8vw, 56px); letter-spacing: -.035em; line-height: 1.04; max-width: 14ch; }
.start2 .lede { margin: 18px 0 0; color: var(--muted); font-size: 18px; max-width: 40ch; }
.start2 .next { list-style: none; margin: 30px 0 0; padding: 0; counter-reset: n; border-top: 1px solid var(--rule); }
.start2 .next li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; color: var(--muted); }
.start2 .next li::before { content: counter(n, decimal-leading-zero); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; padding-top: 3px; }
.start2 .next b { color: var(--ink); font-weight: 500; display: block; }
.start2 .mailline { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.formcard { border: 1px solid var(--rule); border-radius: 16px; padding: 22px 20px 24px; background: var(--ground); }
@media (min-width: 880px) { .formcard { padding: 30px 30px 32px; } }
.formcard .field { margin-bottom: 16px; }
.formcard .field label { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .01em; text-transform: none; color: var(--muted); }
.formcard .field input, .formcard .field textarea, .formcard .field select { font-size: 16px; padding: 13px 14px; border-radius: 8px; border-color: var(--rule); background: var(--ground); }
.formcard .field input:focus, .formcard .field textarea:focus, .formcard .field select:focus { outline: 2px solid var(--accent-ink); outline-offset: 1px; border-color: var(--accent-ink); }
.formcard .hbtn { width: 100%; }
.formcard .note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.formcard iframe { width: 100%; height: 980px; border: 0; border-radius: 10px; background: #fff; }
.formcard .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* keyboard focus, everywhere on the hub */
.hub a:focus-visible, .hub button:focus-visible, .hub summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }

/* phones: the two hero buttons sit on one row */
@media (max-width: 430px) {
  .hero2 .go .hbtn, .phead .go .hbtn { padding: 13px 15px; font-size: 13px; }
  .hero2 .go { gap: 8px; }
}

/* a full-width Apple gray band, used for the project map */
.hsec.band { background: var(--wash); margin-top: 64px; padding: 56px 0 64px; }
@media (min-width: 880px) { .hsec.band { margin-top: 104px; padding: 88px 0 96px; } }
.band .warren-lines path { stroke: #C7C7CC; }
.band .warren-lines path.on { stroke: var(--ink); }
.band .chamber-btn, .band .pocket, .band .burrow { background: var(--surface); }
.band .pocket[aria-current="true"] { background: var(--accent); }
:root[data-theme="dark"] .band .warren-lines path, :root[data-theme="dim"] .band .warren-lines path { stroke: #48484A; }
