/* Tablet and desktop, and the numbers that tie the hero's dots to the company sheets. */

.sheets {
  counter-reset: company;
}

.sheet {
  counter-increment: company;
}

.sheet-top::before {
  content: counter(company);
  display: grid;
  place-items: center;
  flex: none;
  order: -1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--slate);
  font-weight: 800;
  font-size: 0.82rem;
}

.sheet-top .mark {
  margin-right: auto;
}

@media (min-width: 560px) {
  :root {
    --gutter: 24px;
  }

  .hide-small {
    display: inline;
  }
}

@media (min-width: 760px) {
  .band {
    padding: 80px 0;
  }

  .sheets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  /* The kolam's labels: the number sits on the company's dot, the name and sector under it. */
  .kl {
    width: 22%;
    transform: translate(-50%, -15px);
  }

  .kl a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: auto;
    background: none;
    border-radius: 0;
    color: var(--rice);
    text-align: center;
    font-weight: 400;
  }

  .kl-n {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--slate);
    font-weight: 800;
    font-size: 0.85rem;
  }

  .kl-name,
  .kl-meta {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--slate);
    padding: 0 6px;
  }

  .kl-name {
    font-family: var(--serif);
    font-size: 1.2rem;
    line-height: 1.1;
  }

  .kl-meta {
    margin-top: -4px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rice-dim);
  }

  .kl a:hover,
  .kl a:focus-visible {
    background: none;
    color: var(--gold);
  }

  .kl a:hover .kl-n,
  .kl a:focus-visible .kl-n {
    background: var(--rice);
  }

  .story {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
  }

  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }

  .roll-group ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }

  .two-up {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 56px;
  }

  .desks li {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 24px;
  }

  .company-head {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 28px;
  }

  .company-body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 56px;
  }

  .careers {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 56px;
  }

  .role-body {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 56px;
  }

  .apply {
    position: sticky;
    top: calc(var(--header) + 16px);
    padding: 28px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 56px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  }
}

@media (min-width: 1100px) {
  :root {
    --header: 76px;
    --gutter: 32px;
  }

  .nav-wide {
    display: block;
  }

  .nav-wide ul {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-wide a {
    display: block;
    padding: 10px 12px;
    color: var(--rice);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    border-radius: 999px;
  }

  .nav-wide a:hover {
    background: var(--slate-2);
    color: var(--gold);
  }

  .nav-wide a[aria-current="page"] {
    color: var(--gold);
    box-shadow: inset 0 -2px 0 var(--gold);
    border-radius: 0;
  }

  .nav-small {
    display: none;
  }

  .header-main {
    margin-left: 12px;
  }

  .logo-name {
    font-size: 1.7rem;
  }

  /* Hero: the words and the kolam read as one picture across the whole width. */
  .hero {
    padding: 40px 0 44px;
  }

  .hero .wrap {
    max-width: 1760px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
    min-height: min(calc(100vh - var(--header) - 84px), 780px);
  }

  .hero h1 {
    font-size: clamp(3.6rem, 5vw, 5.4rem);
  }

  .hero-fig {
    margin-top: 0;
    margin-right: calc(-1 * var(--gutter) + 8px);
  }

  .hero-caption {
    margin-left: 4%;
  }

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

  .roll-group ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
