/* ==========================================================================
   Menlo Labs — Southwest at early morning. Restrained, warm, unhurried.
   ========================================================================== */

:root {
  /* Palette */
  --desert-light: #fdfbf7;
  --sandstone: #f2ebe1;
  --canyon-shadow: #2e2a26;
  --dry-riverbed: #6b635a;
  --clay: #b4704b;
  --deep-clay: #8f5638;
  --agave: #7d8f7c;
  --deep-agave: #5a6b59;
  --mesa-sky: #5b8c93;
  --deep-mesa: #3e6a70;
  --sunrise: #d9a441;

  /* Hairlines derived from ink so rules never read as heavy borders */
  --rule: rgba(46, 42, 38, 0.12);
  --rule-clay: rgba(180, 112, 75, 0.38);

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --shell: 74rem;
  --gutter: 1.5rem;
  --section-y: 4rem;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2.5rem;
    --section-y: 6rem;
  }
}

@media (min-width: 64rem) {
  :root {
    --gutter: 3rem;
    --section-y: 8rem;
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--desert-light);
  color: var(--canyon-shadow);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1.15em;
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--deep-clay);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 200ms var(--ease);
}

a:hover {
  color: var(--canyon-shadow);
}

img,
svg {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(217, 164, 65, 0.28);
}

:focus-visible {
  outline: 2px solid var(--deep-clay);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--clay);
  color: var(--desert-light);
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 180ms var(--ease);
}

.skip-link:focus {
  top: 1rem;
  color: var(--desert-light);
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--tight {
  max-width: 46rem;
}

.section {
  padding-block: var(--section-y);
}

.section--narrow {
  padding-block: calc(var(--section-y) * 0.72);
}

.band--sand {
  background-color: var(--sandstone);
}

/* Hairline instead of a band change where two light sections meet */
.section--rule {
  position: relative;
}

.section--rule::before {
  content: "";
  position: absolute;
  inset-inline: var(--gutter);
  top: 0;
  height: 1px;
  background: var(--rule);
}

@media (min-width: 64rem) {
  .section--rule::before {
    inset-inline: max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter)));
  }
}

/* --------------------------------------------------------------------------
   Typographic components
   -------------------------------------------------------------------------- */

.eyebrow,
.section-marker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-agave);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.section-marker__rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--rule-clay);
  flex: none;
}

.section-title {
  font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.75rem);
  color: var(--canyon-shadow);
  margin-bottom: 1.75rem;
  max-width: 20ch;
}

.section-title--wide {
  max-width: 24ch;
  margin-bottom: 3rem;
}

.lede {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.65;
  color: var(--canyon-shadow);
}

.prose {
  max-width: 68ch;
}

.prose p + p {
  margin-top: 0;
}

.footnote {
  font-size: 0.95rem;
  color: var(--dry-riverbed);
  max-width: 60ch;
}

.text-link {
  color: var(--deep-clay);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-clay);
  padding-bottom: 1px;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.text-link:hover {
  color: var(--canyon-shadow);
  border-bottom-color: var(--canyon-shadow);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.975rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease),
    color 220ms var(--ease), transform 220ms var(--ease);
}

.btn--primary {
  background-color: var(--clay);
  color: var(--desert-light);
}

.btn--primary:hover {
  background-color: var(--deep-clay);
  color: var(--desert-light);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--rule-clay);
  color: var(--deep-clay);
}

.btn--ghost:hover {
  border-color: var(--deep-clay);
  color: var(--deep-clay);
  background-color: rgba(180, 112, 75, 0.06);
  transform: translateY(-1px);
}

.btn--wide {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(253, 251, 247, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--canyon-shadow);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.125rem;
  letter-spacing: 0.09em;
  line-height: 1;
}

.wordmark__mark {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--clay);
  flex: none;
}

.wordmark__text {
  padding-top: 0.1em;
}

/* Nav */

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--dry-riverbed);
  font-size: 0.925rem;
  text-decoration: none;
  padding-block: 0.4rem;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--canyon-shadow);
}

.nav-list a:hover::after,
.nav-list a.is-active::after {
  transform: scaleX(1);
}

.nav-list .nav-cta {
  color: var(--deep-clay);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dry-riverbed);
  cursor: pointer;
}

.nav-toggle__bars {
  display: block;
  width: 1.15rem;
}

.nav-toggle__bars span {
  display: block;
  height: 1px;
  background: var(--canyon-shadow);
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
}

.nav-toggle__bars span + span {
  margin-top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

@media (max-width: 63.99rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background-color: var(--desert-light);
    border-bottom: 1px solid var(--rule);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 240ms;
  }

  .nav-list.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list li {
    width: 100%;
    border-top: 1px solid var(--rule);
  }

  .nav-list a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
  }

  .nav-list a::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: calc(var(--section-y) * 0.9) calc(var(--section-y) * 1.05);
  overflow: hidden;
}

.hero__wash {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 24%, rgba(217, 164, 65, 0.16), transparent 68%),
    radial-gradient(55% 60% at 12% 76%, rgba(125, 143, 124, 0.13), transparent 70%),
    radial-gradient(70% 50% at 50% 0%, rgba(180, 112, 75, 0.08), transparent 72%);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.hero__copy {
  max-width: 40rem;
}

.hero__title {
  font-size: clamp(2.25rem, 1.35rem + 3.6vw, 3.5rem);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 15ch;
}

.hero__sub {
  color: var(--canyon-shadow);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__figure {
  display: none;
}

@media (min-width: 64rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
    gap: 4rem;
  }

  .hero__figure {
    display: block;
    justify-self: end;
    width: min(100%, 26rem);
  }
}

/* --------------------------------------------------------------------------
   Split sections
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 64rem) {
  .split {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 4rem;
  }

  .split__aside {
    position: sticky;
    top: 7rem;
    align-self: start;
  }

  .split--reverse {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.75fr);
    align-items: center;
    gap: 5rem;
  }
}

.split__figure {
  display: none;
}

@media (min-width: 64rem) {
  .split__figure {
    display: block;
    width: min(100%, 20rem);
    justify-self: end;
  }
}

/* Pull-quote */

.pullquote {
  margin: 3.5rem 0 0;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule-clay);
  max-width: 34ch;
}

.pullquote blockquote {
  margin: 0;
}

.pullquote p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem);
  font-variation-settings: "opsz" 120;
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--deep-clay);
  max-width: none;
  margin: 0;
  text-wrap: pretty;
}

.pullquote figcaption {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--dry-riverbed);
}

/* --------------------------------------------------------------------------
   Cards — What we do
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

.card {
  background-color: var(--sandstone);
  padding: 2.25rem 2rem 2.5rem;
  border-radius: var(--radius);
  border-top: 1px solid var(--rule-clay);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}

@media (min-width: 48rem) {
  .card {
    padding: 2.75rem 2.5rem 3rem;
  }
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px -28px rgba(46, 42, 38, 0.45);
}

.card__mark {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.75rem;
}

.card__title {
  font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.7rem);
  margin-bottom: 1rem;
}

.card p {
  color: var(--canyon-shadow);
  max-width: 46ch;
}

.card__link-row {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Focus list — Where we work
   -------------------------------------------------------------------------- */

.focus-list {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
}

.focus-item {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: 2.25rem;
  border-top: 1px solid var(--rule);
}

.focus-item:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 48rem) {
  .focus-item {
    grid-template-columns: 6rem minmax(0, 1fr);
    padding-block: 2.75rem;
  }
}

.focus-item__num {
  font-family: var(--serif);
  font-size: 2rem;
  font-variation-settings: "opsz" 96;
  line-height: 1;
  color: var(--agave);
  letter-spacing: 0.02em;
}

.focus-item__body h3 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem);
  margin-bottom: 0.65rem;
}

.focus-item__body p {
  max-width: 58ch;
}

.focus-item__body p + p {
  margin-top: 0.75rem;
}

.closing-note {
  margin-top: 3rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.5rem);
  font-variation-settings: "opsz" 90;
  line-height: 1.45;
  color: var(--deep-mesa);
  max-width: 34ch;
}

/* --------------------------------------------------------------------------
   People
   -------------------------------------------------------------------------- */

.people {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (min-width: 64rem) {
  .people {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4.5rem;
  }
}

.person__name {
  font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.7rem);
  margin-bottom: 0.35rem;
}

.person__role {
  font-size: 0.85rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--deep-agave);
  margin-bottom: 1.35rem;
}

.person p:not(.person__role) {
  color: var(--canyon-shadow);
  max-width: 58ch;
}

.council {
  background-color: var(--sandstone);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border-top: 1px solid var(--rule-clay);
}

@media (min-width: 48rem) {
  .council {
    padding: 2.5rem 2.25rem;
  }
}

.council__title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.council__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.council__list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(46, 42, 38, 0.1);
}

.council__name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  letter-spacing: 0.005em;
  color: var(--canyon-shadow);
}

.council__role {
  font-size: 0.925rem;
  color: var(--dry-riverbed);
}

/* --------------------------------------------------------------------------
   Selectivity band
   -------------------------------------------------------------------------- */

.selectivity {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.4rem);
  color: var(--canyon-shadow);
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.selectivity__body {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.7;
  color: var(--canyon-shadow);
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  gap: 3rem;
}

@media (min-width: 64rem) {
  .contact {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 5rem;
    align-items: start;
  }
}

.contact__direct {
  margin-top: 2rem;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.contact__direct-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-agave);
}

.form {
  background-color: var(--sandstone);
  padding: 2rem 1.75rem 2.25rem;
  border-radius: var(--radius);
  border-top: 1px solid var(--rule-clay);
}

@media (min-width: 48rem) {
  .form {
    padding: 2.75rem 2.5rem 3rem;
  }
}

.field {
  margin-bottom: 1.4rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dry-riverbed);
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--canyon-shadow);
  background-color: var(--desert-light);
  border: 1px solid rgba(46, 42, 38, 0.16);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dry-riverbed);
  opacity: 0.85;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(46, 42, 38, 0.3);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--deep-clay);
  box-shadow: 0 0 0 3px rgba(180, 112, 75, 0.16);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__status {
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
  color: var(--deep-agave);
  min-height: 1.4em;
}

.form__status.is-error {
  color: var(--deep-clay);
}

.form.is-sending .btn--primary {
  opacity: 0.65;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--sandstone);
  padding-block: 3.5rem;
  border-top: 1px solid var(--rule-clay);
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 3rem;
  }
}

.wordmark--footer {
  font-size: 1.25rem;
}

.footer__tagline {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--dry-riverbed);
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (min-width: 48rem) {
  .footer__meta {
    align-items: flex-end;
    text-align: right;
  }
}

.footer__copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--dry-riverbed);
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 460ms var(--ease), transform 460ms var(--ease);
}

.js .reveal[data-delay="1"] {
  transition-delay: 90ms;
}

.js .reveal[data-delay="2"] {
  transition-delay: 180ms;
}

.js .reveal[data-delay="3"] {
  transition-delay: 270ms;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
