:root {
  --slate: #111d22;
  --slate-soft: #1c2e35;
  --slate-pale: #3b4d52;
  --water: #62c5da;
  --water-deep: #1a7891;
  --stone: #d9c9ae;
  --paper: #f2f0ea;
  --paper-deep: #e6e1d7;
  --white: #fffdfa;
  --line-dark: rgba(17, 29, 34, 0.18);
  --line-light: rgba(255, 253, 250, 0.2);
  --display: Baskerville, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --body: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --utility: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--slate);
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--slate);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:focus-visible {
  outline: 3px solid var(--water);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: var(--slate);
  background: var(--white);
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.25rem;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
  color: var(--white);
  background: var(--slate);
  border-bottom: 1px solid var(--line-light);
}

.brand {
  display: grid;
  place-items: center;
  width: 7.25rem;
  height: 3.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--stone);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 2.5rem);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a:not(.nav-contact) {
  display: none;
}

.nav-contact {
  color: var(--water);
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 8vw, 6rem);
  color: var(--white);
  background:
    linear-gradient(90deg, transparent 0 74%, rgba(98, 197, 218, 0.035) 74% 75%, transparent 75%),
    var(--slate);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 68%;
  height: 0.45rem;
  content: "";
  background: linear-gradient(90deg, var(--water) 0 58%, var(--stone) 58% 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}

.kicker,
.section-mark,
.hero-index,
.service-number,
.method-steps span,
figcaption {
  margin: 0;
  font-family: var(--utility);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--water);
}

.kicker::before {
  width: 2.5rem;
  height: 1px;
  content: "";
  background: currentColor;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  max-width: 11ch;
  margin: 1.4rem 0 1.6rem;
  font-size: clamp(3.25rem, 13vw, 7.5rem);
  letter-spacing: -0.055em;
}

h1 em {
  display: block;
  color: var(--stone);
  font-weight: 400;
}

.hero-lede {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 253, 250, 0.76);
  font-size: clamp(1.03rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.75rem 1.15rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.button-solid {
  color: var(--slate);
  background: var(--water);
}

.button-line {
  color: var(--white);
  border-bottom: 1px solid var(--stone);
}

.hero-figure {
  position: relative;
  margin: 0;
}

.image-frame {
  position: relative;
  padding: 0 0 1rem 1rem;
}

.image-frame::before {
  position: absolute;
  z-index: 0;
  top: 1rem;
  right: 1rem;
  bottom: 0;
  left: 0;
  content: "";
  border-left: 1px solid var(--water);
  border-bottom: 1px solid var(--water);
}

.image-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  object-position: 55% center;
  clip-path: polygon(8% 0, 100% 0, 100% 92%, 0 100%, 0 8%);
  filter: saturate(0.76) contrast(1.04);
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0 0 1rem;
  color: rgba(255, 253, 250, 0.62);
  letter-spacing: 0.075em;
}

.hero-index {
  position: absolute;
  top: 1.25rem;
  right: clamp(1rem, 5vw, 5rem);
  color: var(--stone);
}

.manifesto,
.contact {
  display: grid;
  gap: 2rem;
  padding: clamp(4.5rem, 10vw, 9rem) clamp(1rem, 7vw, 8rem);
  background: var(--paper);
}

.section-mark {
  color: var(--water-deep);
}

.section-mark.light {
  color: var(--water);
}

.manifesto h2,
.contact h2 {
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 8vw, 6.75rem);
  letter-spacing: -0.045em;
}

.manifesto div > p {
  max-width: 47rem;
  margin: 0;
  color: var(--slate-pale);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.expertise {
  display: grid;
  gap: 4rem;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 7vw, 8rem);
  color: var(--white);
  background: var(--slate-soft);
}

.expertise-heading h2,
.method-intro h2,
.service-area h2 {
  max-width: 12ch;
  margin: 1.4rem 0 0;
  font-size: clamp(2.7rem, 7vw, 5.3rem);
  letter-spacing: -0.04em;
}

.expertise-list {
  border-top: 1px solid var(--line-light);
}

.expertise-list article {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line-light);
}

.service-number {
  color: var(--water);
}

.expertise-list h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.05;
}

.expertise-list p:not(.service-number) {
  max-width: 36rem;
  margin: 0;
  color: rgba(255, 253, 250, 0.7);
}

.detail-band {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: clamp(4rem, 12vw, 9rem) clamp(1rem, 7vw, 8rem);
  overflow: hidden;
  color: var(--slate);
  background: var(--stone);
}

.detail-band p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.detail-small {
  font-family: var(--utility);
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-large {
  font-family: var(--display);
  font-size: clamp(3.3rem, 10vw, 8rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.detail-last {
  justify-self: end;
  margin-top: 0.75rem !important;
}

.detail-rule {
  position: absolute;
  top: 18%;
  right: -5%;
  width: 64%;
  height: 65%;
  border: 1px solid rgba(17, 29, 34, 0.27);
  transform: skewX(-16deg);
}

.method {
  display: grid;
  gap: 4rem;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 7vw, 8rem);
  background: var(--paper);
}

.method-intro > p:last-child {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: var(--slate-pale);
  font-size: 1.08rem;
}

.method-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line-dark);
}

.method-steps li {
  position: relative;
  padding: 2rem 0 2rem 3rem;
  border-bottom: 1px solid var(--line-dark);
  counter-increment: step;
}

.method-steps li::before {
  position: absolute;
  top: 2rem;
  left: 0;
  color: var(--water-deep);
  content: "0" counter(step);
  font-family: var(--utility);
  font-size: 0.72rem;
  font-weight: 700;
}

.method-steps span {
  color: var(--water-deep);
}

.method-steps h3 {
  margin: 0.7rem 0;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.1;
}

.method-steps p {
  margin: 0;
  color: var(--slate-pale);
}

.service-area {
  display: grid;
  gap: 2rem;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 7vw, 8rem);
  color: var(--white);
  background: var(--water-deep);
}

.service-area h2 {
  margin-top: 0;
}

.service-area div > p {
  max-width: 48rem;
  margin: 1.5rem 0 0;
  color: rgba(255, 253, 250, 0.74);
}

.contact {
  border-bottom: 1px solid var(--line-dark);
}

.contact h2 {
  margin-top: 1.4rem;
  margin-bottom: 0;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  align-self: end;
}

.contact-copy p {
  max-width: 31rem;
  margin: 0 0 0.75rem;
  color: var(--slate-pale);
  font-size: 1.08rem;
}

.contact-phone {
  color: var(--water-deep);
  font-family: var(--display);
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1;
  text-decoration: none;
}

.contact-copy a:not(.contact-phone) {
  font-size: 0.93rem;
  font-weight: 700;
}

footer {
  display: grid;
  gap: 2rem;
  padding: 3rem clamp(1rem, 7vw, 8rem);
  color: rgba(255, 253, 250, 0.72);
  background: var(--slate);
  font-size: 0.82rem;
}

.footer-brand {
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 5rem;
  padding: 0.5rem;
  background: var(--stone);
}

.footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

footer p {
  max-width: 27rem;
  margin: 0;
}

footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
  color: var(--white);
  background: var(--slate);
}

.error-card {
  width: min(46rem, 100%);
  padding: clamp(2rem, 8vw, 5rem);
  border-left: 1px solid var(--water);
  border-bottom: 1px solid var(--stone);
}

.error-card p:first-child {
  color: var(--water);
  font-family: var(--utility);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error-card h1 {
  max-width: 10ch;
  font-size: clamp(3.5rem, 14vw, 7rem);
}

.error-card > p:not(:first-child) {
  max-width: 34rem;
  color: rgba(255, 253, 250, 0.72);
}

.error-card .button {
  margin-top: 1.5rem;
}

@media (min-width: 42rem) {
  nav a:not(.nav-contact) {
    display: inline;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  .expertise-list article {
    grid-template-columns: 4rem 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .site-header {
    min-height: 6rem;
  }

  .brand {
    width: 9rem;
    height: 4.6rem;
  }

  .hero {
    grid-template-columns: minmax(0, 0.87fr) minmax(31rem, 1.13fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 7rem);
    min-height: calc(100vh - 6rem);
  }

  .hero-copy {
    padding-bottom: 4rem;
  }

  .hero-figure {
    margin-right: -3vw;
  }

  .image-frame img {
    aspect-ratio: 0.94 / 1;
    object-position: 57% center;
  }

  .manifesto,
  .contact,
  .service-area {
    grid-template-columns: minmax(10rem, 0.42fr) minmax(0, 1fr);
    gap: 6vw;
  }

  .expertise {
    grid-template-columns: minmax(18rem, 0.75fr) minmax(30rem, 1fr);
    gap: 8vw;
  }

  .expertise-heading {
    position: sticky;
    top: 3rem;
    align-self: start;
  }

  .method {
    grid-template-columns: minmax(20rem, 0.75fr) minmax(31rem, 1fr);
    gap: 8vw;
  }

  .method-intro {
    align-self: start;
  }

  .service-area div {
    display: grid;
    grid-template-columns: minmax(20rem, 0.8fr) minmax(20rem, 1fr);
    gap: 5vw;
    align-items: end;
  }

  .service-area div > p {
    margin-top: 0;
  }

  footer {
    grid-template-columns: auto 1fr auto;
    align-items: end;
  }

  footer div {
    justify-content: flex-end;
  }
}

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