/* Bronti Labs — bronti.com
   White, quiet, one font: Archivo, the same as robotrun.ai. The header lockup copies the
   robotrun.ai header (design-arena site/brand.css, owner-tuned 2026-10-12): 39.5x39 ring,
   Bronti Labs 14px/700 in the site blue, same offsets; 32.5x32 and 11.5px under 880px. */

:root {
  --paper: #ffffff;
  --ink: #17181A;
  --muted: #66686D;
  --rule: #E6E7E9;
  --blue: #1E55C8;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  display: block;
  flex: none;
  width: 39.5px;
  height: 39px;
  margin: -3.5px 0;
  position: relative;
  left: 2px;
  top: -0.5px;
}

.brand span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  position: relative;
  left: -5px;
  top: 1.5px;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 16px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 4px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* ---------- content ---------- */
main {
  display: grid;
  align-content: center;
  padding-block: 8vh 14vh;
}

h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(40px, 6.8vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 14ch;
}

.lede {
  margin: 28px 0 0;
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 36px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.15s, border-color 0.15s;
}

.cta:hover { color: var(--blue); border-color: var(--blue); }

.cta .arrow { font-weight: 400; }

/* Inner pages */
.inner h1 {
  font-size: clamp(32px, 4.6vw, 56px);
}

.prose {
  max-width: 36em;
}

.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose .lede { margin-top: 24px; }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--blue); }

.roles {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  max-width: 44em;
  border-top: 1px solid var(--rule);
}

.roles li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.roles .role {
  font-weight: 600;
}

.roles .where {
  color: var(--muted);
  font-size: 15px;
}

.roles .what {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 44px;
  max-width: 44em;
}

.details dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.details dd {
  margin: 0;
  font-size: 20px;
}

.details dd a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}
.details dd a:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 26px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--ink); }

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

@media (min-width: 640px) {
  .details { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .brand { gap: 6px; }
  .brand img { width: 32.5px; height: 32px; margin: -3px 0; left: 1.63px; top: -0.41px; }
  .brand span { font-size: 11.5px; left: -4.07px; top: 1.5px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { padding-block: 18px; }
  .site-nav { gap: 20px; font-size: 15px; }
  main { padding-block: 6vh 10vh; }
  .lede { margin-top: 20px; }
  .cta { margin-top: 28px; }
}

/* ---------- role pages ---------- */
.roles .role {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.roles .role:hover { color: var(--blue); }

.crumb {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb a::before { content: "← "; }

.meta {
  margin: 10px 0 0;
  color: var(--muted);
}

.prose h2 {
  margin: 36px 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose ul {
  margin: 0;
  padding-left: 1.2em;
}
.prose li { margin: 0 0 6px; }
.prose li::marker { color: var(--muted); }

.apply-note {
  margin: 6px 0 0;
  max-width: 36em;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- home board ---------- */
/* Bronti walks onto a white board, greets, and the words type out beside him. */
:root { --mark-o: #1E55C8; --mark-b: #89ACF5; }

body.home {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.board {
  display: grid;
  place-items: center;
  padding: 24px var(--gutter);
}

.greeting {
  display: flex;
  align-items: center;
  gap: 28px;
}

.walk {
  flex: none;
  animation: walk-in 1.7s cubic-bezier(.25, .1, .25, 1) .2s both;
}

.logo {
  display: block;
  position: relative;
  animation: walk-bob .34s ease-in-out .2s 5 alternate;
}

.walk .logo .logo-mark {
  display: block;
  width: 96px;
  height: 95px;
}

.lines {
  width: 560px;
  max-width: 100%;
  font-size: 30px;
  line-height: 1.25;
  color: var(--ink);
}

.line {
  margin: 0 0 6px;
  min-height: 1.25em;
}

/* Typing: lines appear one at a time with a caret on the line being typed. */
.lines.is-typing .line { visibility: hidden; }
.lines.is-typing .line.is-on { visibility: visible; }
.lines.is-typing .line.is-on:not(:has(~ .is-on))::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--ink);
  animation: caret 1s steps(1, end) infinite;
}

/* After the sentences: the button floats in, then the small links. */
.after { margin-top: 22px; }
main.inner .button { margin-top: 36px; justify-self: start; }
.lines.is-typing .after { visibility: hidden; }
.lines.is-done .button { animation: float-up .7s cubic-bezier(.2, .7, .2, 1) .1s both; }
.lines.is-done .line-sub { animation: float-up .7s cubic-bezier(.2, .7, .2, 1) .45s both; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.button:hover { background: #1747A8; }
.button:active { transform: translateY(1px); }
.lines .button, .lines .button .arrow { color: #fff; text-decoration: none; }
.lines .button:hover { color: #fff; }
.button .arrow { font-weight: 400; }

.line-sub {
  margin: 16px 0 0;
  font-size: 17px;
  color: var(--muted);
}
.line-sub a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.lines a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.lines a:hover { color: var(--ink); }

.lines .arrow { color: var(--muted); }
.lines strong { font-weight: 600; }

.board-foot {
  padding: 0 var(--gutter) 22px;
  font-size: 13px;
  color: var(--muted);
}

@keyframes walk-in {
  from { transform: translateX(calc(-50vw - 160px)); }
  to   { transform: translateX(0); }
}
@keyframes walk-bob {
  from { transform: translateY(0) rotate(-2deg); }
  to   { transform: translateY(-7px) rotate(2deg); }
}
@keyframes float-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes caret { 50% { opacity: 0; } }

@media (max-width: 720px) {
  .greeting { flex-direction: column; align-items: flex-start; gap: 22px; width: 100%; }
  .lines { width: 100%; font-size: 22px; }
  .walk .logo .logo-mark { width: 80px; height: 79px; }
  @keyframes walk-in {
    from { transform: translateX(calc(-100vw)); }
    to   { transform: translateX(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .walk, .logo, .line,
  .lines.is-done .button, .lines.is-done .line-sub { animation: none; }
}

/* ---------- the periscope greeting, copied from robotrun.ai brand.css (owner-approved board, 2026-10-13) ---------- */
.logo-mark--rig { overflow: visible; }
.logo-mark--rig .mark-outline { fill: var(--mark-o); }
.logo-mark--rig .mark-body { fill: var(--mark-b); }
.logo-mark--rig .mark-gap { fill: #000; stroke: #000; stroke-width: 720px; stroke-linejoin: round; }
.logo-mark--rig .mark-ring { fill: none; stroke: var(--mark-o); stroke-width: 9px; transform-origin: 1226.4px 296.5px; transform: rotate(-14deg); }
.logo-mark--rig .mark-neck { transform-origin: 1258px 345px; }
.logo-mark--rig .mark-eye { transform-box: fill-box; transform-origin: 50% 50%; }
.logo.is-play .logo-mark--rig { animation: mark-clock 1.3s linear; }
.logo.is-play .logo-mark--rig .mark-neck { animation: mark-periscope 1.3s both; }
.logo.is-play .logo-mark--rig .mark-eye { animation: mark-blink 1.3s both; }
@keyframes mark-clock { from { outline-offset: 0px; } to { outline-offset: 0px; } }
@keyframes mark-periscope {
  0% { transform: translate(0px, 0px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.3, 0, .6, 1); }
  9% { transform: translate(-1.6px, 4.7px) rotate(0deg) scale(1.03, .96); animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  27% { transform: translate(8.8px, -26px) rotate(0deg) scale(.97, 1.07); animation-timing-function: ease-in-out; }
  37% { transform: translate(6.8px, -20px) rotate(0deg) scale(1, 1); animation-timing-function: ease-in-out; }
  50% { transform: translate(6.8px, -20px) rotate(-3.5deg) scale(1, 1); animation-timing-function: ease-in-out; }
  66% { transform: translate(6.8px, -20px) rotate(3deg) scale(1, 1); animation-timing-function: ease-in-out; }
  78% { transform: translate(6.8px, -20px) rotate(0deg) scale(1, 1); animation-timing-function: cubic-bezier(.5, 0, .8, .5); }
  90% { transform: translate(-.8px, 2.4px) rotate(0deg) scale(1.02, .975); animation-timing-function: ease-out; }
  100% { transform: translate(0px, 0px) rotate(0deg) scale(1, 1); }
}
@keyframes mark-blink {
  0%, 40%, 48%, 57%, 65%, 100% { transform: scaleY(1); }
  44%, 61% { transform: scaleY(.1); }
}
@keyframes mark-rm { 0%, 100% { opacity: 1; } 45% { opacity: .62; } }
@media (prefers-reduced-motion: reduce) {
  .logo.is-play .logo-mark--rig * { animation: none !important; }
  .logo.is-play .logo-mark--rig { animation: mark-rm .6s ease-in-out !important; }
}

/* ---------- careers from the flyer ---------- */
.group {
  margin: 44px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.group + .roles { margin-top: 12px; }
.roles .role { display: block; }
.roles .what { grid-column: 1 / -1; margin: 0; }
.roles li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; }
.role-apply {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.role-apply:hover { text-decoration: underline; text-underline-offset: 3px; }
.role-apply .arrow { font-weight: 400; }

.how {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-width: 44em;
}
.how li { padding: 10px 0; }
.how strong { font-weight: 600; }

.apply-line { margin: 18px 0 0; max-width: 36em; }
