@import url("https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --page-deep: #092c25;
  --page-forest: #173b32;
  --page-paper: #fbf5e9;
  --page-cream: #f2e7d1;
  --page-sage: #aebca4;
  --page-terra: #ce745d;
  --page-yellow: #d9cf76;
  --page-line: rgba(9, 44, 37, 0.22);
  --page-body: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --page-serif: "Instrument Serif", Georgia, serif;
  --page-mono: "IBM Plex Mono", Consolas, monospace;
}

body.page-shell {
  --page-art: url("assets/reference/star-map-burritt.jpg");
  background: var(--page-paper);
  color: var(--page-deep);
  font-family: var(--page-body);
}

.page-shell .skip-link {
  background: var(--page-deep);
  color: var(--page-paper);
  font-family: var(--page-mono);
  font-size: 0.62rem;
  left: 16px;
  padding: 12px 14px;
  position: fixed;
  top: -80px;
  z-index: 300;
}

.page-shell .skip-link:focus {
  top: 16px;
}

.page-shell.page-local,
.page-shell.page-industries {
  --page-art: url("assets/reference/los-angeles-map-1920.jpg");
}

.page-shell.page-ai {
  --page-art: url("assets/reference/bga-circuit-xray.jpg");
}

.page-shell.page-websites,
.page-shell.page-process,
.page-shell.page-report {
  --page-art: url("assets/reference/signal-corps-network.jpg");
}

.page-shell.page-technical,
.page-shell.page-review {
  --page-art: url("assets/reference/star-map-hevelius.jpg");
}

.page-shell.page-content,
.page-shell.page-reputation {
  --page-art: url("assets/reference/weaver-root-network.jpg");
}

.page-shell h1,
.page-shell h2,
.page-shell h3,
.page-shell p {
  letter-spacing: 0;
}

.page-shell .site-header {
  align-items: center;
  background: rgba(251, 245, 233, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--page-line);
  display: flex;
  height: 68px;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 4vw;
  position: sticky;
  top: 0;
  z-index: 80;
}

.page-shell .brand {
  color: var(--page-deep);
  font-family: var(--page-body);
  font-size: 0.9rem;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0;
}

.page-shell .brand-mark {
  height: 24px;
  width: 24px;
}

.page-shell .site-header nav {
  align-items: center;
  display: flex;
  font-family: var(--page-mono);
  font-size: 0.58rem;
  font-weight: 600;
  gap: clamp(16px, 2vw, 28px);
  text-transform: uppercase;
}

.page-shell .site-header nav a {
  color: var(--page-deep);
}

.page-shell .site-header nav > a:last-child {
  background: var(--page-deep);
  color: var(--page-paper);
  padding: 12px 15px;
}

.page-shell .site-header nav > a:hover,
.page-shell .nav-item > a:hover {
  color: var(--page-terra);
}

.page-shell .site-header nav > a:last-child:hover {
  background: var(--page-terra);
  color: var(--page-paper);
}

.page-shell .mobile-menu-toggle {
  display: none;
}

.page-shell .nav-dropdown {
  background: var(--page-paper);
  border: 1px solid var(--page-line);
  box-shadow: 0 24px 70px rgba(9, 44, 37, 0.14);
  left: 50%;
  min-width: 280px;
  padding: 7px;
  top: calc(100% + 20px);
}

.page-shell .nav-dropdown a {
  border-bottom: 1px solid rgba(9, 44, 37, 0.11);
  color: var(--page-deep);
  font-family: var(--page-body);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 12px 13px;
  text-transform: none;
}

.page-shell .nav-dropdown a:hover {
  background: var(--page-cream);
}

.page-shell .subpage-hero {
  align-content: end;
  background-color: var(--page-forest);
  border: 0;
  color: var(--page-paper);
  display: grid;
  isolation: isolate;
  min-height: min(78svh, 820px);
  overflow: hidden;
  padding: 150px 6vw 78px;
  position: relative;
}

.page-shell .subpage-hero::before {
  background-image:
    linear-gradient(rgba(251, 245, 233, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 245, 233, 0.065) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.page-shell .subpage-hero::after {
  background-image: var(--page-art);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  filter: grayscale(1) sepia(0.35) saturate(0.7) contrast(1.2);
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.16;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.page-shell .subpage-hero .eyebrow,
.page-shell .contact .eyebrow {
  color: var(--page-yellow);
  font-family: var(--page-mono);
  font-size: 0.62rem;
  font-weight: 600;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.page-shell .subpage-hero h1 {
  color: inherit;
  font-family: var(--page-serif);
  font-size: clamp(4.6rem, 9vw, 10.8rem);
  font-weight: 400;
  line-height: 0.84;
  margin: 0;
  max-width: 1280px;
}

.page-shell .subpage-hero .intro {
  color: rgba(251, 245, 233, 0.8);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.5;
  margin: 32px 0 0;
  max-width: 720px;
}

.page-shell .subpage-content {
  align-items: start;
  background-color: var(--page-paper);
  background-image:
    linear-gradient(rgba(9, 44, 37, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 44, 37, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  display: grid;
  gap: 32px 7vw;
  grid-template-columns: minmax(250px, 0.72fr) minmax(420px, 1.28fr);
  padding: 96px 6vw 118px;
}

.page-shell .subpage-content h2 {
  color: var(--page-deep);
  font-family: var(--page-serif);
  font-size: clamp(3.6rem, 6vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  margin: 0;
  position: sticky;
  top: 108px;
}

.page-shell .subpage-content ul {
  counter-reset: service-item;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-shell .subpage-content li {
  align-items: start;
  border-top: 1px solid var(--page-line);
  color: var(--page-deep);
  counter-increment: service-item;
  display: grid;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  gap: 18px;
  grid-template-columns: 40px 1fr;
  line-height: 1.45;
  padding: 22px 0;
}

.page-shell .subpage-content li:last-child {
  border-bottom: 1px solid var(--page-line);
}

.page-shell .subpage-content li::before {
  color: var(--page-terra);
  content: counter(service-item, decimal-leading-zero);
  font-family: var(--page-mono);
  font-size: 0.58rem;
  font-weight: 600;
  padding-top: 5px;
}

.page-shell .button {
  align-items: center;
  background: var(--page-deep);
  border: 1px solid var(--page-deep);
  color: var(--page-paper);
  display: inline-flex;
  font-family: var(--page-mono);
  font-size: 0.6rem;
  font-weight: 600;
  justify-content: center;
  min-height: 48px;
  padding: 14px 18px;
  text-transform: uppercase;
}

.page-shell .button:hover {
  background: var(--page-terra);
  border-color: var(--page-terra);
  transform: none;
}

.page-shell .subpage-content .button {
  grid-column: 2;
  margin-top: 10px;
  width: fit-content;
}

.page-shell .list-grid {
  background: var(--page-cream);
  border-color: var(--page-line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.page-shell .list-grid article {
  border-color: var(--page-line);
  min-height: 310px;
  padding: 64px 6vw;
}

.page-shell .list-grid article:nth-child(odd) {
  border-right-color: var(--page-line);
}

.page-shell .list-grid h2,
.page-shell .list-grid h3 {
  color: var(--page-deep);
  font-family: var(--page-serif);
  font-size: clamp(2.7rem, 4vw, 5rem);
  font-weight: 400;
  line-height: 0.94;
  margin-bottom: 24px;
}

.page-shell .list-grid p {
  color: rgba(9, 44, 37, 0.72);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 520px;
}

.page-shell .process-list {
  background: var(--page-paper);
  border-top: 0;
  padding: 48px 6vw 110px;
}

.page-shell .process-list article {
  align-items: baseline;
  border-bottom: 1px solid var(--page-line);
  display: grid;
  gap: 24px 5vw;
  grid-template-columns: 70px minmax(260px, 0.7fr) minmax(300px, 1fr);
  padding: 42px 0;
}

.page-shell .process-list article:first-child {
  border-top: 1px solid var(--page-line);
}

.page-shell .process-list span {
  color: var(--page-terra);
  font-family: var(--page-mono);
  font-size: 0.62rem;
  font-weight: 600;
}

.page-shell .process-list h2,
.page-shell .process-list h3 {
  color: var(--page-deep);
  font-family: var(--page-serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 0.9;
  margin: 0;
}

.page-shell .process-list p {
  color: rgba(9, 44, 37, 0.7);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
}

.page-shell .faq-snapshot {
  background: var(--page-cream);
  border-color: var(--page-line);
  grid-template-columns: repeat(5, 1fr);
}

.page-shell .faq-snapshot article {
  border-color: var(--page-line);
  min-height: 250px;
  padding: 38px 30px;
}

.page-shell .faq-snapshot span {
  color: var(--page-terra);
  font-family: var(--page-mono);
  font-size: 0.56rem;
  font-weight: 600;
  margin-bottom: 46px;
}

.page-shell .faq-snapshot h2,
.page-shell .faq-snapshot h3 {
  color: var(--page-deep);
  font-family: var(--page-serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 0.95;
}

.page-shell .faq-snapshot p {
  color: rgba(9, 44, 37, 0.68);
  line-height: 1.5;
}

.page-shell .faq-layout {
  align-items: start;
  background: var(--page-paper);
  gap: 46px 7vw;
  grid-template-columns: minmax(270px, 0.72fr) minmax(480px, 1.28fr);
  padding: 100px 6vw 120px;
}

.page-shell .faq-aside {
  border-top: 1px solid var(--page-deep);
  padding-top: 24px;
  top: 108px;
}

.page-shell .faq-aside .eyebrow {
  color: var(--page-terra);
}

.page-shell .faq-aside h2 {
  color: var(--page-deep);
  font-family: var(--page-serif);
  font-size: clamp(3.2rem, 5vw, 6rem);
  font-weight: 400;
  line-height: 0.9;
}

.page-shell .faq-aside > p:not(.eyebrow) {
  color: rgba(9, 44, 37, 0.7);
  line-height: 1.55;
}

.page-shell .faq-aside-list {
  border-color: var(--page-line);
}

.page-shell .faq-aside-list span {
  border-color: var(--page-line);
  color: rgba(9, 44, 37, 0.72);
  font-family: var(--page-mono);
  font-size: 0.58rem;
  letter-spacing: 0;
}

.page-shell .faq-list {
  border-top: 1px solid var(--page-line);
  display: block;
}

.page-shell .faq-list details {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--page-line);
}

.page-shell .faq-list summary {
  color: var(--page-deep);
  font-family: var(--page-body);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0;
  padding: 25px 52px 25px 0;
}

.page-shell .faq-list summary::after {
  color: var(--page-terra);
  right: 0;
  top: 19px;
}

.page-shell .faq-list p {
  color: rgba(9, 44, 37, 0.72);
  line-height: 1.6;
  padding: 0 54px 28px 0;
}

.page-shell .contact {
  background-color: var(--page-forest);
  color: var(--page-paper);
  display: grid;
  gap: 60px 8vw;
  grid-template-columns: minmax(340px, 0.8fr) minmax(480px, 1.2fr);
  isolation: isolate;
  min-height: calc(100svh - 68px);
  overflow: hidden;
  padding: 120px 6vw 90px;
  position: relative;
}

.page-shell .contact::before {
  background-image: var(--page-art);
  background-position: center;
  background-size: cover;
  content: "";
  filter: grayscale(1) sepia(0.35) saturate(0.7);
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.1;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.page-shell .contact > div,
.page-shell .contact form {
  position: relative;
  z-index: 1;
}

.page-shell .contact h1 {
  color: inherit;
  font-family: var(--page-serif);
  font-size: clamp(5rem, 8vw, 10rem);
  font-weight: 400;
  line-height: 0.84;
  margin: 0;
}

.page-shell .contact .intro {
  color: rgba(251, 245, 233, 0.76);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 520px;
}

.page-shell form {
  align-self: center;
  background: var(--page-paper);
  border: 1px solid rgba(251, 245, 233, 0.32);
  box-shadow: 24px 24px 0 rgba(9, 44, 37, 0.28);
}

.page-shell label {
  border-color: var(--page-line);
  color: rgba(9, 44, 37, 0.62);
  font-family: var(--page-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 19px 20px;
}

.page-shell input,
.page-shell textarea {
  color: var(--page-deep);
  font-family: var(--page-body);
}

.page-shell input::placeholder,
.page-shell textarea::placeholder {
  color: rgba(9, 44, 37, 0.38);
}

.page-shell form .button {
  border: 0;
  border-top: 1px solid var(--page-deep);
  min-height: 60px;
}

.page-shell .site-footer {
  background: var(--page-paper);
  border-top: 1px solid var(--page-line);
  color: var(--page-deep);
  display: block;
  padding: 72px 6vw 26px;
}

.page-shell .footer-main {
  align-items: start;
  display: grid;
  gap: 60px 9vw;
  grid-template-columns: minmax(360px, 1.15fr) minmax(380px, 0.85fr);
}

.page-shell .footer-brand {
  max-width: 720px;
}

.page-shell .footer-logo {
  align-items: center;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0;
  margin-bottom: 34px;
}

.page-shell .footer-logo::before {
  background: url("assets/rank-to-calls-logo.svg?v=8") center / contain no-repeat;
  content: "";
  height: 25px;
  width: 25px;
}

.page-shell .site-footer .footer-brand p {
  color: var(--page-deep);
  font-family: var(--page-serif);
  font-size: clamp(3rem, 5vw, 6rem);
  line-height: 0.9;
  margin-bottom: 28px;
  max-width: 700px;
}

.page-shell .footer-email {
  background: var(--page-deep);
  color: var(--page-paper);
  font-family: var(--page-mono);
  font-size: 0.6rem;
  font-weight: 600;
  margin-top: 0;
  padding: 14px 17px;
  text-transform: uppercase;
}

.page-shell .footer-email:hover {
  background: var(--page-terra);
}

.page-shell .site-footer .footer-links {
  display: grid;
  gap: 50px;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.page-shell .site-footer .footer-links > div {
  gap: 0;
}

.page-shell .site-footer .footer-links span {
  color: rgba(9, 44, 37, 0.52);
  font-family: var(--page-mono);
  font-size: 0.56rem;
  margin-bottom: 12px;
}

.page-shell .site-footer .footer-links a {
  border-bottom: 1px solid var(--page-line);
  color: var(--page-deep);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 0;
}

.page-shell .site-footer .footer-links a:hover {
  color: var(--page-terra);
}

.page-shell .footer-bottom {
  border-color: var(--page-line);
  color: rgba(9, 44, 37, 0.58);
  font-family: var(--page-mono);
  font-size: 0.58rem;
  letter-spacing: 0;
  margin-top: 64px;
  padding-top: 21px;
}

@media (prefers-reduced-motion: no-preference) {
  .page-shell .subpage-hero > *,
  .page-shell .contact > * {
    animation: pageReveal 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .page-shell .subpage-hero .intro,
  .page-shell .contact form {
    animation-delay: 100ms;
  }
}

@keyframes pageReveal {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .page-shell .subpage-content,
  .page-shell .faq-layout,
  .page-shell .contact,
  .page-shell .footer-main {
    grid-template-columns: 1fr;
  }

  .page-shell .subpage-content h2,
  .page-shell .faq-aside {
    position: static;
  }

  .page-shell .subpage-content .button {
    grid-column: 1;
  }

  .page-shell .process-list article {
    grid-template-columns: 56px minmax(220px, 0.7fr) minmax(260px, 1fr);
  }

  .page-shell .contact {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .page-shell .site-header {
    height: 62px;
    min-height: 62px;
    padding: 0 16px;
  }

  .page-shell .mobile-menu-toggle {
    background: transparent;
    border: 1px solid rgba(9, 44, 37, 0.32);
    color: var(--page-deep);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--page-mono);
    font-size: 0.56rem;
    font-weight: 600;
    margin-left: auto;
    padding: 9px 11px;
    text-transform: uppercase;
  }

  .page-shell .mobile-menu-toggle[aria-expanded="true"] {
    background: var(--page-deep);
    color: var(--page-paper);
  }

  .page-shell .site-header nav {
    align-content: start;
    background: var(--page-paper);
    border-bottom: 1px solid var(--page-line);
    box-shadow: 0 24px 60px rgba(9, 44, 37, 0.16);
    display: none;
    gap: 0;
    left: 0;
    margin: 0;
    max-height: calc(100svh - 62px);
    overflow-y: auto;
    padding: 16px 18px 24px;
    position: absolute;
    right: 0;
    top: 62px;
  }

  .page-shell .site-header nav.is-open {
    display: grid;
  }

  .page-shell .site-header nav.is-open > *,
  .page-shell .site-header nav.is-open > a:last-child {
    display: block;
  }

  .page-shell .site-header nav > a,
  .page-shell .nav-item > a {
    border-bottom: 1px solid var(--page-line);
    padding: 13px 0;
  }

  .page-shell .site-header nav > a:last-child {
    background: var(--page-deep);
    color: var(--page-paper);
    display: inline-flex;
    justify-content: center;
    margin-top: 16px;
    padding: 11px 13px;
  }

  .page-shell .nav-dropdown {
    background: var(--page-cream);
    border: 0;
    box-shadow: none;
    display: grid;
    left: auto;
    min-width: 0;
    opacity: 1;
    padding: 4px 13px 8px;
    pointer-events: auto;
    position: static;
    transform: none;
  }

  .page-shell .nav-dropdown a {
    display: block;
    padding: 10px 0;
  }

  .page-shell .subpage-hero {
    min-height: 72svh;
    padding: 112px 22px 54px;
  }

  .page-shell .subpage-hero::before {
    background-size: 48px 48px;
  }

  .page-shell .subpage-hero h1 {
    font-size: clamp(3.75rem, 18vw, 6.2rem);
  }

  .page-shell .subpage-hero .intro {
    font-size: 0.98rem;
    margin-top: 24px;
  }

  .page-shell .subpage-content {
    background-size: 48px 48px;
    gap: 38px;
    grid-template-columns: 1fr;
    padding: 66px 22px 78px;
  }

  .page-shell .subpage-content h2 {
    font-size: 3.8rem;
  }

  .page-shell .subpage-content li {
    font-size: 0.98rem;
    grid-template-columns: 34px 1fr;
  }

  .page-shell .subpage-content .button {
    width: 100%;
  }

  .page-shell .list-grid,
  .page-shell .faq-snapshot {
    grid-template-columns: 1fr;
  }

  .page-shell .list-grid article {
    border-right: 0;
    min-height: 0;
    padding: 46px 22px;
  }

  .page-shell .faq-snapshot article {
    border-bottom: 1px solid var(--page-line);
    border-right: 0;
    min-height: 0;
    padding: 34px 22px;
  }

  .page-shell .faq-snapshot span {
    margin-bottom: 22px;
  }

  .page-shell .faq-layout {
    gap: 56px;
    grid-template-columns: 1fr;
    padding: 70px 22px 82px;
  }

  .page-shell .process-list {
    padding: 28px 22px 72px;
  }

  .page-shell .process-list article {
    gap: 18px;
    grid-template-columns: 1fr;
    padding: 34px 0;
  }

  .page-shell .contact {
    gap: 50px;
    grid-template-columns: 1fr;
    padding: 92px 22px 72px;
  }

  .page-shell .contact h1 {
    font-size: clamp(4rem, 18vw, 6.4rem);
  }

  .page-shell form {
    box-shadow: 12px 12px 0 rgba(9, 44, 37, 0.28);
  }

  .page-shell .site-footer {
    padding: 54px 22px 24px;
  }

  .page-shell .footer-main {
    gap: 48px;
    grid-template-columns: 1fr;
  }

  .page-shell .site-footer .footer-brand p {
    font-size: 3.4rem;
  }

  .page-shell .site-footer .footer-links {
    gap: 32px;
    grid-template-columns: repeat(2, 1fr);
  }

  .page-shell .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-top: 48px;
  }
}
