@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500&family=Inter:wght@400;500;600&display=swap");

:root {
  --black: #050505;
  --white: #fff;
  --blue: #00aeef;
  --grey: #6b6b6b;
  --line: #d9d9d9;

  --display: "EB Garamond", Garamond, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;
  --space-7: 8rem;
}


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


html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}


body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}


body,
button,
input {
  font-family: var(--sans);
}


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


a {
  color: inherit;
  text-decoration: none;
}


button,
input {
  font: inherit;
}


button {
  color: inherit;
}


::selection {
  background: var(--blue);
  color: var(--black);
}


:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}


.container {
  width: min(
    calc(100% - (var(--gutter) * 2)),
    var(--max)
  );

  margin-inline: auto;
}


.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;
}


/* --------------------------------
   HEADER
-------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 4.5rem;
  padding-inline: var(--gutter);

  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(12px);
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;

  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
}


.logo {
  width: 2rem;
  height: 2rem;
}


.logo use {
  fill: currentColor;
}


.desktop-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 3rem);

  font-size: .8rem;
}


.desktop-nav a,
.footer-links a {
  transition: color 150ms ease;
}


.desktop-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--blue);
}


.menu-button {
  display: none;

  border: 0;
  background: none;
  padding: .5rem 0;

  cursor: pointer;
}


.mobile-menu {
  width: min(100%, 32rem);
  height: 100dvh;
  margin: 0 0 0 auto;

  border: 0;
  padding: var(--gutter);

  background: var(--black);
  color: var(--white);
}


.mobile-menu::backdrop {
  background: rgba(0, 0, 0, .35);
}


.mobile-menu__top {
  display: flex;
  justify-content: space-between;

  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
}


.mobile-menu button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}


.mobile-menu__links {
  display: grid;
  gap: 1rem;
  margin-top: 8rem;
}


.mobile-menu__links a {
  font-family: var(--display);
  font-size: clamp(2.5rem, 10vw, 5rem);
  line-height: .9;
}


.mobile-menu__links a:hover {
  color: var(--blue);
}


/* --------------------------------
   HERO
-------------------------------- */

.hero {
  min-height: calc(100svh - 4.5rem);

  display: flex;
  align-items: center;

  padding-block: var(--space-7);
}


.eyebrow,
.section-number {
  margin: 0;

  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}


.hero h1 {
  max-width: 1100px;
  margin: 1rem 0 5rem;

  font-family: var(--display);
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.055em;
}


.hero h1 em,
.cta h2 em {
  font-weight: 400;
}


.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;

  border-top: 1px solid var(--black);
  padding-top: 1.5rem;
}


.hero-copy {
  max-width: 32rem;
  margin: 0;

  font-size: clamp(1.05rem, 2vw, 1.4rem);
}


.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;

  min-width: 12rem;
  padding: .95rem 1.15rem;

  background: var(--blue);
  color: var(--black);

  border: 1px solid var(--blue);

  font-size: .8rem;
  font-weight: 600;

  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}


.button:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}


.button-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}


.button-secondary:hover {
  background: var(--blue);
  color: var(--black);
  border-color: var(--blue);
}


/* --------------------------------
   GENERAL SECTIONS
-------------------------------- */

.section,
.intro,
.search-section {
  padding-block: var(--space-7);
}


.intro {
  background: var(--black);
  color: var(--white);
}


.intro-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
}


.large-copy {
  max-width: 12ch;
  margin: 0 0 2rem;

  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: .82;
  letter-spacing: -.045em;
}


.body-copy {
  max-width: 38rem;
  margin: 0;

  color: #c7c7c7;
  font-size: 1.05rem;
}


.section-heading {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;

  margin-bottom: 4rem;
}


.section-heading h2,
.search-header h2 {
  margin: 0;

  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  line-height: .85;
  letter-spacing: -.045em;
}


/* --------------------------------
   ACCORDION
-------------------------------- */

.accordion {
  border-top: 1px solid var(--black);
}


details {
  border-bottom: 1px solid var(--black);
}


summary {
  display: flex;
  align-items: center;
  justify-content: space-between;

  list-style: none;
  cursor: pointer;

  padding-block: 1.25rem;

  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;

  user-select: none;
}


summary::-webkit-details-marker {
  display: none;
}


.summary-icon {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;

  transition: transform 200ms ease;
}


details[open] .summary-icon {
  transform: rotate(45deg);
}


.details-content {
  padding: 0 0 2.5rem 25%;
}


.details-content > p {
  max-width: 42rem;
  color: var(--grey);
}


.item-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}


.item {
  padding-block: .75rem;
  padding-right: 1rem;

  border-top: 1px solid var(--line);

  font-size: .85rem;
}


.text-link {
  display: inline-flex;
  gap: .75rem;

  margin-top: 2rem;

  font-size: .8rem;
  font-weight: 600;

  transition: color 150ms ease;
}


/* --------------------------------
   SERVICES
-------------------------------- */

.services-section {
  background: var(--black);
  color: var(--white);
}


.service-list {
  border-top: 1px solid #444;
}


.service {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: 2rem;

  padding-block: 1.2rem;

  border-bottom: 1px solid #444;

  transition:
    color 150ms ease,
    padding 200ms ease;
}


.service-number {
  color: #666;
  font-size: .7rem;
}


.service-name {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 4rem);
  line-height: .9;
}


.service-arrow {
  color: #666;
  transition: transform 200ms ease, color 150ms ease;
}


.service:hover {
  color: var(--blue);
  padding-inline: .5rem;
}


.service:hover .service-arrow {
  color: var(--blue);
  transform: translateX(.5rem);
}


/* --------------------------------
   APPROACH
-------------------------------- */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--black);
}


.approach-grid article {
  min-height: 20rem;
  padding: 1.25rem;

  border-right: 1px solid var(--black);
}


.approach-grid article:last-child {
  border-right: 0;
}


.approach-grid span {
  font-size: .7rem;
  font-weight: 600;
}


.approach-grid h3 {
  margin: 5rem 0 1rem;

  font-family: var(--display);
  font-size: 3rem;
  font-weight: 400;
  line-height: .9;
}


.approach-grid p {
  max-width: 18rem;
  margin: 0;

  color: var(--grey);
}


/* --------------------------------
   SEARCH
-------------------------------- */

.search-section {
  border-top: 1px solid var(--black);
}


.search-header {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
}


.search-header p:not(.section-number) {
  color: var(--grey);
}


.search-field {
  display: flex;
  align-items: center;

  margin-top: 4rem;

  border-bottom: 2px solid var(--black);
}


.search-field input {
  width: 100%;
  padding: 1rem 0;

  border: 0;
  outline: 0;

  background: transparent;

  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 5rem);
}


.search-field kbd {
  padding: .3rem .5rem;

  border: 1px solid var(--line);

  font-size: .7rem;
}


.search-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  margin-top: 2rem;
}


.search-result {
  padding: 1rem 0;

  border-bottom: 1px solid var(--line);
}


.search-result small {
  display: block;
  margin-bottom: .25rem;

  color: var(--grey);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}


.search-result strong {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
}


/* --------------------------------
   CTA
-------------------------------- */

.cta {
  padding-block: var(--space-7);

  background: var(--blue);
}


.cta h2 {
  margin: 1rem 0 4rem;

  font-family: var(--display);
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 400;
  line-height: .75;
  letter-spacing: -.06em;
}


.cta-actions {
  display: flex;
  gap: 1rem;
}


/* --------------------------------
   FOOTER
-------------------------------- */

.site-footer {
  padding-block: 4rem;

  background: var(--black);
  color: var(--white);
}


.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}


.footer-brand {
  margin-bottom: 1.5rem;
}


.footer-description {
  color: #888;
}


.footer-links {
  display: grid;
  align-content: start;
  gap: .5rem;

  font-size: .8rem;
}


.copyright {
  margin: 0;

  color: #666;
  font-size: .7rem;
  text-align: right;
}


/* --------------------------------
   RESPONSIVE
-------------------------------- */

@media (max-width: 800px) {

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }


  .hero {
    min-height: auto;
    padding-block: 7rem 5rem;
  }


  .hero h1 {
    margin-bottom: 4rem;
  }


  .hero-bottom {
    grid-template-columns: 1fr;
  }


  .hero-bottom .button {
    width: 100%;
  }


  .intro-grid,
  .section-heading,
  .search-header {
    grid-template-columns: 1fr;
  }


  .section-heading {
    gap: .75rem;
    margin-bottom: 2.5rem;
  }


  .details-content {
    padding-left: 0;
  }


  .item-list {
    grid-template-columns: 1fr;
  }


  .approach-grid {
    grid-template-columns: 1fr 1fr;
  }


  .approach-grid article {
    min-height: 18rem;
    border-bottom: 1px solid var(--black);
  }


  .approach-grid article:nth-child(2) {
    border-right: 0;
  }


  .search-results {
    grid-template-columns: 1fr;
  }


  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }


  .copyright {
    text-align: left;
  }

}


@media (max-width: 500px) {

  :root {
    --gutter: 1.1rem;
  }


  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 6rem);
  }


  .summary {
    font-size: 2rem;
  }


  .service {
    grid-template-columns: 2rem 1fr auto;
    gap: .75rem;
  }


  .service-name {
    font-size: 2rem;
  }


  .approach-grid {
    grid-template-columns: 1fr;
  }


  .approach-grid article {
    min-height: auto;
    padding-block: 2rem;
    border-right: 0;
  }


  .approach-grid h3 {
    margin-top: 2rem;
  }


  .cta-actions {
    flex-direction: column;
  }


  .cta-actions .button {
    width: 100%;
  }


  .footer-grid {
    grid-template-columns: 1fr;
  }

}


/* --------------------------------
   REDUCED MOTION
-------------------------------- */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

}