/* Surface layer for the showcase. The values all come from brand/tokens; this
   file only arranges them. Anything that looks like a new colour, a radius over
   2px or a shadow is a bug against brand/DESIGN_SYSTEM.md. */

@import url('/brand/styles.css');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--surface-canvas);
}

body {
  margin: 0;
  background: var(--surface-canvas);
  background-image: var(--texture-grain);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--tbb-silver);
  color: var(--tbb-ink);
}

/* ------------------------------------------------------------------ layout */

.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--border-hairline);
  margin: 0;
}

/* -------------------------------------------------------------------- chrome */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-hairline);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.masthead__lockup {
  display: block;
  height: 34px;
  border: 0;
}

.masthead__lockup img {
  height: 100%;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: var(--size-caption);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text-emphasis);
  border-bottom-color: var(--tbb-silver);
  outline: none;
}

.nav a[aria-current='page'] {
  color: var(--text-emphasis);
  border-bottom-color: var(--tbb-steel);
}

.footer {
  border-top: 1px solid var(--border-hairline);
  margin-top: 160px;
  padding: 64px 0;
}

.footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__lockup {
  height: 30px;
  opacity: 0.7;
}

/* --------------------------------------------------------------- type helpers */

.eyebrow {
  font-size: var(--size-caption);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 62ch;
  margin: 0;
}

.muted {
  color: var(--text-muted);
}

.num {
  font-feature-settings: var(--numeric-tabular);
}

/* --------------------------------------------------------------------- hero */

.hero {
  padding: 160px 0 160px;
}

.hero__display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 7.2vw, 76px);
  line-height: 1.06;
  letter-spacing: var(--track-heading);
  text-transform: uppercase;
  color: var(--text-emphasis);
  margin: 24px 0 0;
  max-width: 16ch;
}

/* The one signature moment on the page: a single 2.5s chrome sheen across the
   headline, then it never runs again. */
.sheen {
  background: linear-gradient(
    100deg,
    var(--tbb-white) 0%,
    var(--tbb-white) 42%,
    #ffffff 50%,
    var(--tbb-white) 58%,
    var(--tbb-white) 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 2500ms cubic-bezier(0.22, 1, 0.36, 1) 350ms 1 forwards;
}

@keyframes sheen {
  to {
    background-position: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheen {
    animation: none;
    color: var(--text-emphasis);
  }
}

.tagline {
  font-family: var(--font-tagline);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.3;
  color: var(--text-muted);
  margin: 40px 0 0;
}

/* ------------------------------------------------------------------ section */

.section {
  padding: 120px 0 0;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--track-heading);
  text-transform: uppercase;
  color: var(--text-emphasis);
  margin: 0;
}

/* -------------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-hairline);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* A cell in a hairline grid, not a card with its own border: the rule between
   two cells is one line, never two touching edges. */
.cell {
  background: var(--surface-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

a.cell {
  border-bottom: 0;
  color: inherit;
}

a.cell:hover,
a.cell:focus-visible {
  background: var(--surface-raised);
  outline: none;
}

a.cell:hover .cell__title,
a.cell:focus-visible .cell__title {
  color: var(--tbb-white);
}

a.cell:hover .cell__go,
a.cell:focus-visible .cell__go {
  color: var(--tbb-white);
  border-bottom-color: var(--tbb-silver);
}

.cell__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: var(--track-heading);
  text-transform: uppercase;
  color: var(--text-emphasis);
  margin: 0;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cell p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.cell__go {
  margin-top: auto;
  padding-top: 16px;
  font-size: var(--size-caption);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cell__icon {
  color: var(--tbb-steel);
}

/* ------------------------------------------------------------------ figures */

.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-hairline);
}

.figure {
  background: var(--surface-card);
  padding: 32px 40px;
}

.figure__value {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-feature-settings: var(--numeric-tabular);
  font-size: 40px;
  line-height: 1;
  color: var(--text-emphasis);
  display: block;
}

.figure__label {
  display: block;
  margin-top: 12px;
  font-size: var(--size-caption);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text-emphasis);
  font-family: var(--font-body);
  font-size: var(--size-caption);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-chrome);
  border-color: var(--tbb-chrome-from);
  color: var(--tbb-ink);
  outline: none;
}

.btn--quiet {
  border-color: var(--border-hairline);
  color: var(--text-body);
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
  background: transparent;
  border-color: var(--tbb-silver);
  color: var(--text-emphasis);
}

.btn[disabled] {
  color: var(--text-muted);
  border-color: var(--border-hairline);
  cursor: default;
}

.btn[disabled]:hover {
  background: transparent;
  color: var(--text-muted);
}

/* ------------------------------------------------------------------- fields */

.field {
  display: flex;
  border: 1px solid var(--border-hairline);
  background: var(--surface-card);
  transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.field:focus-within {
  border-color: var(--tbb-silver);
}

.field input {
  flex: 1;
  min-width: 0;
  height: 62px;
  padding: 0 24px;
  border: 0;
  background: transparent;
  color: var(--text-emphasis);
  font-family: var(--font-body);
  font-size: 17px;
}

.field input::placeholder {
  color: var(--text-muted);
}

.field input:focus {
  outline: none;
}

.field .btn {
  height: 62px;
  border: 0;
  border-left: 1px solid var(--border-hairline);
  flex: 0 0 auto;
}

/* -------------------------------------------------------------------- chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  appearance: none;
  border: 1px solid var(--border-hairline);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-medium);
  padding: 7px 14px;
  cursor: pointer;
  border-radius: 0;
  transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--tbb-steel);
  color: var(--text-emphasis);
  outline: none;
}

.chip[aria-pressed='true'] {
  border-color: var(--tbb-silver);
  color: var(--tbb-ink);
  background: var(--tbb-silver);
}

/* ------------------------------------------------------------------ answers */

.answer {
  border: 1px solid var(--border-hairline);
  background: var(--surface-card);
  margin-top: 24px;
}

.answer__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-hairline);
  flex-wrap: wrap;
}

.answer__lender {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: var(--track-heading);
  text-transform: uppercase;
  color: var(--text-emphasis);
  margin: 0;
}

.answer__meta {
  font-size: var(--size-caption);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
  font-feature-settings: var(--numeric-tabular);
}

.answer__body {
  padding: 24px 32px 32px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}

.answer__body h1,
.answer__body h2,
.answer__body h3 {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: 13px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-emphasis);
  margin: 24px 0 8px;
}

.answer__body ul {
  margin: 8px 0;
  padding-left: 20px;
}

.answer__body li {
  margin: 4px 0;
}

.answer__body strong {
  color: var(--text-emphasis);
  font-weight: var(--weight-medium);
}

.answer__body p {
  margin: 8px 0;
}

.answer__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.answer__body th,
.answer__body td {
  border: 1px solid var(--border-hairline);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.answer__body th {
  color: var(--text-emphasis);
  font-weight: var(--weight-medium);
}

/* ------------------------------------------------------------------- lists */

.deflist {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-hairline);
}

.deflist dt,
.deflist dd {
  background: var(--surface-card);
  margin: 0;
  padding: 16px 24px;
  font-size: 14px;
}

.deflist dt {
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  font-size: var(--size-caption);
  color: var(--text-muted);
}

.deflist dd {
  color: var(--text-body);
  font-feature-settings: var(--numeric-tabular);
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-hairline);
}

.steps li {
  counter-increment: step;
  background: var(--surface-card);
  padding: 24px 32px 24px 72px;
  position: relative;
  font-size: 15px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 32px;
  top: 24px;
  font-feature-settings: var(--numeric-tabular);
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}

code,
.mono {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 13px;
  color: var(--text-emphasis);
}

pre {
  background: var(--tbb-ink);
  border: 1px solid var(--border-hairline);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 0;
}

pre code {
  color: var(--text-body);
  white-space: pre;
}

/* ------------------------------------------------------------------ utility */

.stack-16 > * + * {
  margin-top: 16px;
}
.stack-24 > * + * {
  margin-top: 24px;
}
.stack-40 > * + * {
  margin-top: 40px;
}

.row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .grid--3,
  .grid--4,
  .figures {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 96px 0;
  }
  .section {
    padding-top: 96px;
  }
  .footer {
    margin-top: 96px;
  }
  .grid--2,
  .grid--3,
  .grid--4,
  .figures {
    grid-template-columns: 1fr;
  }
  .cell {
    padding: 32px 24px;
  }
  .deflist {
    grid-template-columns: 1fr;
  }
  .nav {
    gap: 20px;
  }
  .masthead__inner {
    height: 64px;
  }
  .field {
    flex-direction: column;
  }
  .field .btn {
    border-left: 0;
    border-top: 1px solid var(--border-hairline);
    justify-content: center;
  }
}

/* ------------------------------------------------------------ Big Briefcase */

.ask {
  padding: 64px 0 0;
}

.ask__head {
  max-width: 62ch;
}

.ask__head h1 {
  margin: 0 0 24px;
}

.ask__form {
  margin-top: 40px;
}

.ask__starters {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
}

.ask__starters .eyebrow {
  margin-bottom: 16px;
}

.feed {
  margin-top: 64px;
}

.turn + .turn {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--border-hairline);
}

.turn__q {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 1px solid var(--border-strong);
}

.turn__topic {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.turn__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--track-heading);
  text-transform: uppercase;
  color: var(--text-emphasis);
  margin: 8px 0 0;
}

.turn__none {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 62ch;
  margin: 24px 0 0;
}

.turn__silent {
  margin: 24px 0 0;
  font-size: var(--size-caption);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.turn__alt {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
}

.turn__alt .eyebrow {
  margin-bottom: 16px;
}

/* --------------------------------------------------------------- connectors */

.toollist {
  display: grid;
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-hairline);
}

.tool {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: var(--surface-card);
  padding: 16px 32px;
  align-items: baseline;
}

.tool__name {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 13px;
  color: var(--text-emphasis);
}

.tool__what {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
}

/* ------------------------------------------------------------ resource desk */

.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-hairline);
}

.swatch {
  background: var(--surface-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.swatch__chip {
  display: block;
  height: 88px;
  margin-bottom: 16px;
  border: 1px solid var(--border-hairline);
}

.swatch__chip--none {
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 6px,
    var(--tbb-graphite) 6px 7px
  );
}

.swatch__name {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: 14px;
  color: var(--text-emphasis);
}

.swatch__hex,
.swatch__use {
  font-size: var(--size-caption);
  font-feature-settings: var(--numeric-tabular);
  color: var(--text-muted);
}

.specimens {
  display: grid;
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-hairline);
}

.specimen {
  background: var(--surface-card);
  padding: 40px;
}

.specimen__sample {
  margin: 16px 0 0;
  color: var(--text-emphasis);
}

.specimen__sample--display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: var(--track-heading);
  text-transform: uppercase;
}

.specimen__sample--body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 62ch;
}

.specimen__sample--data {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: 20px;
  font-feature-settings: var(--numeric-tabular);
}

.specimen__sample--tagline {
  font-family: var(--font-tagline);
  font-style: italic;
  font-weight: 300;
  font-size: 34px;
  color: var(--text-body);
}

.artwork {
  gap: 16px;
}

.artwork__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 128px;
  padding: 24px;
  border: 1px solid var(--border-hairline);
}

.artwork__stage--dark {
  background: var(--tbb-ink);
}

.artwork__stage--light {
  background: var(--surface-print);
}

.artwork__stage img {
  max-width: 100%;
  max-height: 100%;
}

a.chip {
  border-bottom: 1px solid var(--border-hairline);
  text-decoration: none;
  display: inline-block;
}

a.chip:hover {
  border-color: var(--tbb-steel);
  color: var(--text-emphasis);
}

@media (max-width: 900px) {
  .swatches {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .swatches {
    grid-template-columns: 1fr;
  }
  .specimen {
    padding: 32px 24px;
  }
}
