/* A common scale, with distinct compositions for each type of page. */
.interior-hero {
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.interior-hero h1 {
  max-width: 16ch;
  margin-bottom: .37em;
  font-size: clamp(2.65rem, 1.72rem + 4.1vw, 5.9rem);
  line-height: .98;
}

.interior-hero .lede { max-width: 52ch; }

.services-hero {
  --hero-photo: url("/images/hero-hiring-services.webp");
  background: radial-gradient(ellipse at 88% 0%, #d8e4f0 0%, transparent 68%), var(--canvas);
}

.role-hero { --hero-photo: url("/images/hero-talent-overview.webp"); }
.process-hero { --hero-photo: url("/images/hero-hiring-process.webp"); }

.services-index .service-list {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin-top: 1.5rem;
}

.services-index .service-list li {
  display: block;
  padding: clamp(1.1rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: #fffdfa;
}

.services-index .service-list h3 { margin-bottom: .2rem; font-size: clamp(1.3rem, 1rem + .55vw, 1.7rem); }
.services-index .service-list li:hover { border-color: var(--accent); }
.service-index-compare { background: #e9eff6; }

.service-detail-hero, .process-hero {
  border-color: transparent;
  color: #ced7e0;
  background: var(--ink);
}

.service-detail-hero h1, .process-hero h1 { color: var(--paper); }
.service-detail-hero .text-link { color: var(--paper); }
.service-detail-hero .breadcrumb { color: var(--coral, #ff8192); }
.service-detail-hero :focus-visible { outline-color: var(--coral, #ff8192); }
.service-detail-hero {
  background: radial-gradient(ellipse at 90% 12%, #203c57 0%, transparent 66%), var(--ink);
}
.service-hero-layout, .service-overview, .service-ownership-grid, .service-examples-grid { display: grid; gap: 1rem; }
.service-hero-layout { align-items: end; gap: clamp(1.8rem, 5vw, 5rem); }

.service-outputs {
  padding: clamp(1.2rem, 3.2vw, 2.55rem);
  border: 1px solid #9bb7d350;
  border-top: 3px solid var(--coral);
  border-radius: .65rem;
  background: #192e46;
  box-shadow: 0 1rem 3rem #08172942;
}

.service-outputs h2 { color: var(--paper); font-size: clamp(1.3rem, 1.04rem + .6vw, 1.75rem); }
.service-outputs ul, .service-fit ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.service-outputs li, .service-fit li { position: relative; padding-block: .7rem; padding-inline-start: 1.2rem; }
.service-outputs li + li, .service-fit li + li { border-top: 1px solid #8cabc43d; }
.service-outputs li::before, .service-fit li::before {
  position: absolute;
  top: 1.25em;
  left: .12rem;
  width: .36rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.service-overview { align-items: start; gap: clamp(1.75rem, 5vw, 5rem); }
.service-definition { padding-block-start: clamp(.3rem, 1.6vw, 1.35rem); }
.service-definition h2 { max-width: 19ch; }
.service-definition .prose { max-width: 58ch; }
.service-fit { padding: clamp(1.25rem, 3.2vw, 2.65rem); border-radius: .7rem; background: #e9eff6; }
.service-fit h2 { font-size: clamp(1.55rem, 1.05rem + 1.3vw, 2.25rem); }
.service-fit li + li { margin-top: 0; }
.service-fit li::before { background: var(--accent); }
.service-fit ul + p { margin-top: .6rem; }

.service-ownership { border-block: 1px solid var(--line); background: var(--canvas); }
.service-ownership-grid { gap: clamp(.75rem, 2vw, 1.6rem); }
.service-ownership-card {
  padding: clamp(1.2rem, 3.25vw, 2.65rem);
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: #fffdfa;
}
.service-ownership-card h3, .service-brief h3 { font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); }
.service-client { border-color: transparent; color: var(--light-text); background: var(--ink); }
.service-client :is(h3, a) { color: var(--paper); }
.service-client :focus-visible { outline-color: var(--coral); }
.service-brief {
  display: grid;
  gap: .3rem 1.5rem;
  margin-top: clamp(1.15rem, 3.5vw, 2.6rem);
  padding: .35rem 0 .35rem clamp(.85rem, 2vw, 1.6rem);
  border-inline-start: 3px solid var(--accent);
}
.service-brief h3 { margin-bottom: 0; }

.service-examples { background: #e9eff6; }
.service-examples-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(.75rem, 2vw, 1.5rem);
}
.service-examples article {
  padding: clamp(1.2rem, 2.7vw, 2.1rem);
  border: 1px solid #c7d5e4;
  border-radius: .65rem;
  background: #f8fbff;
}
.service-examples h3 { font-size: clamp(1.2rem, 1rem + .55vw, 1.6rem); }

@media (min-width: 52rem) {
  .service-hero-layout { grid-template-columns: minmax(0, 1.65fr) minmax(16rem, .9fr); }
  .service-overview, .service-ownership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-brief { grid-template-columns: minmax(10rem, .32fr) minmax(0, 1fr); }
}

.service-scope { padding-bottom: 0; }
.scope-row {
  display: grid;
  gap: .65rem 2rem;
  padding-block: clamp(1.5rem, 3.75vw, 3.25rem);
  border-top: 1px solid var(--line);
}

.scope-row h2 { margin: 0; }
.scope-row:last-child { border-bottom: 1px solid var(--line); }
.scope-brief h2 { color: var(--accent); }

.role-scope {
  display: grid;
  align-items: start;
}

.role-scope section {
  border-top: 1px solid var(--line);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.role-scope section:last-child { border-bottom: 1px solid var(--line); }

.content-layout { align-items: start; }
.guide-list { padding: 0; margin: 0; list-style: none; }
.guide-list li { padding-block: 1rem; border-top: 1px solid var(--line); }
.guide-list li:last-child { border-bottom: 1px solid var(--line); }
.guide-list h3 { font-size: clamp(1.1rem, .98rem + .58vw, 1.5rem); }
.toolkit-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; padding: 0; list-style: none; }
.toolkit-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.role-guide { padding-bottom: 0; }
.role-guide + .role-scope { padding-top: clamp(2rem, 4vw, 3.5rem); }
.sample-records { margin: 1.25rem 0; }
.sample-records > div { padding: .85rem 1rem; border-inline-start: 2px solid var(--accent); background: var(--canvas); }
.sample-records > div + div { margin-top: .55rem; }
.sample-records dt { color: var(--ink); font-weight: 700; }
.sample-records dd { margin: .25rem 0 0; }

.process-layout { align-items: start; }
.process-intro p { max-width: 32ch; }
.process-steps {
  --process-progress: 0;
  position: relative;
  isolation: isolate;
  padding: 0;
  list-style: none;
  counter-reset: hiring-step;
}

.process-steps::before, .process-steps::after {
  position: absolute;
  z-index: -1;
  inset: .95rem auto 3rem .95rem;
  width: 1px;
  background: var(--line);
  content: "";
}

.process-steps::after {
  background: var(--accent);
  transform: scaleY(var(--process-progress));
  transform-origin: top;
}

.steps.process-steps li {
  position: relative;
  min-height: 5.25rem;
  padding: 0 0 clamp(1.6rem, 4vw, 3.6rem) 3rem;
  counter-increment: hiring-step;
  border: 0;
}

.steps.process-steps li:last-child { z-index: 0; padding-bottom: 0; }

.process-steps li:last-child::after {
  position: absolute;
  z-index: -1;
  inset: .95rem auto 0 .9rem;
  width: .2rem;
  background: var(--paper);
  content: "";
}

.process-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.95rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: var(--paper);
  content: counter(hiring-step, decimal-leading-zero);
  font: 700 .72rem/1 var(--display);
  font-variant-numeric: tabular-nums;
}

.process-steps h3 { font-size: clamp(1.25rem, 1.03rem + .8vw, 1.75rem); }
.process-steps p { max-width: 59ch; }

.blog-masthead {
  --hero-photo: url("/images/hero-blog.webp");
  --hero-photo-position: 60% 57%;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.blog-intro { padding-block: clamp(2.65rem, 6vw, 6rem) clamp(1.5rem, 4.5vw, 3.2rem); }
.blog-intro h1 { font-size: clamp(3.1rem, 2rem + 5vw, 6.5rem); }

.featured-story {
  margin-top: clamp(1.35rem, 4vw, 3.85rem);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.blog-preview-grid { margin-top: clamp(1.35rem, 4vw, 3.85rem); }
.featured-copy h2 { font-size: clamp(1.9rem, 1.35rem + 2vw, 3.4rem); }

.story-art {
  min-height: 100%;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), #ffffff16 calc(12.5% - 1px) 12.5%),
    repeating-linear-gradient(0deg, transparent 0 calc(16.666% - 1px), #ffffff16 calc(16.666% - 1px) 16.666%),
    var(--ink);
}

.story-art::before, .story-art::after {
  width: auto;
  inset: 11% 9%;
  border: 1px solid #ffffff45;
  border-radius: 0;
  aspect-ratio: auto;
  transform: none;
}

.story-art::after { inset: 15% 12%; border-color: #ffffff20; }

.story-mark {
  grid-template: repeat(4, 1fr) / repeat(4, 1fr);
  gap: .38rem;
  width: min(45%, 16rem);
  transform: rotate(-28deg) skewX(9deg);
}

.story-mark span { border-radius: 0; }
.story-mark span:nth-child(1) { grid-area: 1 / 1 / 2 / 4; background: var(--paper); }
.story-mark span:nth-child(2) { grid-area: 2 / 2 / 3 / 5; background: var(--coral, #ff8192); }
.story-mark span:nth-child(3) { grid-area: 3 / 1 / 4 / 4; background: #9aaaba; }
.story-mark span:nth-child(4) { grid-area: 4 / 2 / 5 / 5; border: 1px solid #ffffff75; }
.story-art-quiet .story-mark span:nth-child(2) { background: #9aaaba; }
.story-art-photo::before, .story-art-photo::after { content: none; }
.story-art-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-archive-with-image { display: grid; gap: 1rem; }
.blog-archive-with-image img { display: block; width: 100%; border-radius: .25rem; }
.blog-archive-copy > p:last-child { max-width: 62ch; }

@media (min-width: 35rem) {
  .blog-archive-with-image { grid-template-columns: minmax(8rem, .35fr) minmax(0, 1fr); align-items: start; }
}

.article-layout { width: min(100% - 2rem, 58rem); }
.article-cover { display: block; width: 100%; margin-top: clamp(1.2rem, 3.2vw, 2.2rem); border-radius: .35rem; }
.article-layout .post-heading { padding-bottom: clamp(1.6rem, 4vw, 3.25rem); }
.article-layout .post-heading h1 {
  max-width: 21ch;
  font-size: clamp(2.35rem, 1.56rem + 3.4vw, 5rem);
  line-height: 1.03;
}

.article-layout .article-body {
  width: min(100%, 44rem);
  font-family: Georgia, Cambria, serif;
}

.contact-hero .contact-layout { align-items: start; }
.contact-hero .hiring-form {
  padding: clamp(1.1rem, 3.5vw, 2.75rem);
  border-radius: 0;
  border-top: 3px solid var(--accent);
  background: var(--paper);
}

.contact-hero .contact-intro h1 { max-width: 12ch; }
.contact-hero .hiring-form h2 { margin-bottom: 1.5rem; }
.contact-hero .hiring-form .fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.contact-hero .hiring-form input:not([type="hidden"]),
.contact-hero .hiring-form select, .contact-hero .hiring-form textarea {
  border-radius: .15rem;
  background-color: var(--canvas);
}

.contact-hero .hiring-form .button { margin-top: .9rem; }

.contact-options {
  display: grid;
  gap: 1.15rem;
}

.contact-options section {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.contact-options h2 { font-size: clamp(1.18rem, 1rem + .55vw, 1.55rem); }
.contact-options .text-link { display: inline-flex; align-items: center; min-height: 44px; gap: .25em; }
.section > .privacy-prose { width: min(100% - 2 * var(--gutter), var(--shell)); max-width: var(--shell); }
.privacy-prose h2 { font-size: clamp(1.45rem, 1.1rem + 1vw, 2.2rem); }
.privacy-prose h2:not(:first-child) { margin-top: 2rem; }
.privacy-hero h1, .utility-hero h1 { font-size: clamp(2.4rem, 1.75rem + 3vw, 4.65rem); }

@media (min-width: 48rem) {
  .scope-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }

  .role-scope {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 5vw, 4.5rem);
  }

  .role-scope section:last-child { border-bottom: 0; }
  .process-intro { position: sticky; top: 3rem; }

  .contact-hero .contact-layout {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.3fr);
    grid-template-rows: min-content 1fr;
    row-gap: clamp(1.4rem, 3vw, 2.25rem);
  }

  .contact-hero .hiring-form { grid-area: 1 / 2 / 3; }
  .contact-options { max-width: 29rem; }
}

@media (min-width: 62rem) {
  .contact-hero .hiring-form .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
