@import url("./fonts.css");

:root {
  --ink: #050505;
  --paper: #f4f2ed;
  --display: "Arting Display", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --sans: "Arting Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 3.1vw, 3.75rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { width: 100%; margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; z-index: 100; top: 0; left: var(--gutter); padding: .8rem 1rem; background: var(--paper); transform: translateY(-120%); }
.skip-link:focus { transform: none; }

.services-header {
  position: absolute; z-index: 10; inset: 0 0 auto; height: clamp(4.75rem, 8vw, 7rem);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  color: var(--paper); font-size: clamp(.66rem, .3vw + .6rem, .82rem); font-weight: 700; letter-spacing: -.02em; text-transform: uppercase;
}
.services-header nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3.5rem); }
.services-header nav a { position: relative; padding: .5rem 0; }
.services-header nav a::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-out); }
.services-header nav a:hover::after, .services-header nav a:focus-visible::after, .services-header nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.services-hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 29rem); grid-template-rows: auto 1fr auto;
  padding: clamp(8rem, 17vh, 12rem) var(--gutter) clamp(3.5rem, 8vh, 6rem); overflow: hidden; background: var(--ink); color: var(--paper);
}
.services-hero__kicker { grid-column: 1 / -1; margin: 0; font-size: clamp(.62rem, .25vw + .58rem, .76rem); font-weight: 650; letter-spacing: .17em; text-transform: uppercase; }
.services-hero h1 { z-index: 1; grid-column: 1 / -1; align-self: center; margin: 0; font: 900 clamp(6.2rem, 14.2vw, 17rem)/.69 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.services-hero h1 span { display: block; }
.services-hero h1 span:nth-child(2) { padding-left: 16vw; }
.services-hero h1 span:nth-child(3) { padding-left: 38vw; }
.services-hero__intro { z-index: 1; grid-column: 2; margin: 0; max-width: 31rem; font-size: clamp(1rem, .55vw + .85rem, 1.35rem); line-height: 1.35; }
.services-hero__line { position: absolute; right: 18%; top: 33%; width: 24%; height: 43%; border-top: 1px solid rgba(244,242,237,.7); border-right: 1px solid rgba(244,242,237,.7); pointer-events: none; }

.services-index { padding: clamp(5.5rem, 9vw, 8.5rem) var(--gutter) clamp(7rem, 12vw, 11rem); }
.services-index__header { display: grid; grid-template-columns: 1fr 1.35fr; gap: 2rem; margin-bottom: clamp(5rem, 10vw, 9rem); }
.services-index__header p, .process__heading > p { margin: .5rem 0 0; font-size: clamp(.62rem, .25vw + .58rem, .76rem); font-weight: 650; letter-spacing: .17em; text-transform: uppercase; }
.services-index__header h2, .process__heading h2 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.035em; text-transform: uppercase; }
.services-index__header h2 { font-size: clamp(3.5rem, 6.1vw, 7.4rem); line-height: .8; }
.process__heading h2 { font-size: clamp(3.5rem, 7vw, 8.5rem); line-height: .78; }
.service-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid currentColor; }
.service-item { display: grid; grid-template-columns: 4rem minmax(0, 1.15fr) minmax(0, .95fr) minmax(0, 1fr); align-items: start; column-gap: clamp(1.5rem, 3vw, 4rem); padding: clamp(2rem, 4vw, 4.25rem) 0; border-bottom: 1px solid currentColor; }
.service-item__number, .service-item__scope { margin: .55rem 0 0; font-size: clamp(.62rem, .25vw + .58rem, .76rem); font-weight: 650; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.service-item__scope { padding-left: clamp(1.25rem, 2vw, 2.5rem); }
.service-item h3 { margin: 0; font: 900 clamp(3.8rem, 6.5vw, 8.2rem)/.78 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.service-item:nth-child(2) h3, .service-item:nth-child(3) h3 { font-size: clamp(3.8rem, 5.15vw, 6.5rem); }
.service-item__description { max-width: 30rem; margin: .35rem 0 0; font-size: clamp(.95rem, .35vw + .85rem, 1.16rem); line-height: 1.42; }

.process { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(4rem, 8vw, 10rem); padding: clamp(7rem, 12vw, 11rem) var(--gutter); background: var(--ink); color: var(--paper); }
.process__heading h2 { margin-top: clamp(2rem, 5vw, 4rem); }
.process__steps { display: grid; grid-template-columns: repeat(3, 1fr); align-self: end; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(244,242,237,.7); }
.process__steps li { min-height: 19rem; padding: 1.25rem clamp(1rem, 2vw, 2rem) 1.5rem 0; border-right: 1px solid rgba(244,242,237,.45); }
.process__steps li + li { padding-left: clamp(1rem, 2vw, 2rem); }
.process__steps li:last-child { border-right: 0; }
.process__steps span { font-size: .7rem; font-weight: 650; letter-spacing: .14em; }
.process__steps h3 { margin: auto 0 1rem; padding-top: 8rem; font: 900 clamp(2.7rem, 4vw, 5rem)/.8 var(--display); text-transform: uppercase; }
.process__steps p { max-width: 15rem; margin: 0; font-size: .95rem; line-height: 1.42; }

.services-closing { min-height: 92svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 28rem); grid-template-rows: 1fr auto; gap: 3rem; padding: clamp(6rem, 12vh, 9rem) var(--gutter) 2rem; background: var(--ink); color: var(--paper); border-top: 1px solid rgba(244,242,237,.28); }
.services-closing h2 { align-self: center; margin: 0; font: 900 clamp(6.2rem, 10vw, 12rem)/.73 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.services-closing h2 span { display: block; }
.services-closing h2 span:nth-child(2) { padding-left: 0; }
.services-closing h2 span:nth-child(3) { padding-left: 28vw; }
.services-closing__action { align-self: center; border-top: 1px solid currentColor; padding-top: 1rem; }
.services-closing__action p { margin: 0 0 clamp(2rem, 5vw, 4rem); font-size: clamp(.95rem, .4vw + .85rem, 1.16rem); line-height: 1.45; }
.services-closing__action a { display: inline-block; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: .4rem; }
.services-closing footer { grid-column: 1 / -1; align-self: end; font-size: .66rem; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }

a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

@media (min-width: 1001px) {
  .services-index__header { margin-bottom: clamp(4rem, 6.5vw, 6.5rem); }
  .service-item:nth-child(2), .service-item:nth-child(5) { padding-top: clamp(2.5rem, 3.3vw, 3.4rem); padding-bottom: clamp(2.8rem, 3.6vw, 3.7rem); }
  .service-item:nth-child(3), .service-item:nth-child(6) { padding-top: clamp(3.7rem, 4.8vw, 5rem); padding-bottom: clamp(3.5rem, 4.5vw, 4.75rem); }
  .service-item:nth-child(5) h3 { padding-left: clamp(.75rem, 1.5vw, 1.8rem); }
  .service-item:nth-child(2) .service-item__scope { padding-left: clamp(2.75rem, 4vw, 4.75rem); }
  .service-item:nth-child(4) .service-item__description, .service-item:nth-child(6) .service-item__description { margin-top: 1.1rem; }
}

@media (max-width: 1000px) {
  .services-hero h1 { font-size: clamp(6rem, 15vw, 10rem); }
  .services-hero h1 span:nth-child(2) { padding-left: 10vw; }
  .services-hero h1 span:nth-child(3) { padding-left: 25vw; }
  .service-item { grid-template-columns: 3rem 1fr 1fr; }
  .service-item__description { grid-column: 2; margin-top: 1.5rem; }
  .process { grid-template-columns: 1fr; }
  .process__heading { display: grid; grid-template-columns: .65fr 1fr; }
  .services-closing { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; }
  .services-closing__action { width: min(21rem, 100%); justify-self: end; }
}

@media (max-width: 700px) {
  .services-header nav a:nth-child(2), .services-header nav a:nth-child(3) { display: none; }
  .services-header nav { gap: 1.4rem; }
  .services-header nav a:last-child { font-size: .63rem; }
  .services-hero { min-height: 100svh; display: flex; flex-direction: column; padding-top: 7.5rem; padding-bottom: 2rem; }
  .services-hero h1 { margin: auto 0; font-size: clamp(4.75rem, 23.6vw, 7.3rem); line-height: .72; }
  .services-hero h1 span:nth-child(2) { padding-left: 0; }
  .services-hero h1 span:nth-child(3) { padding-left: 8vw; }
  .services-hero__intro { max-width: 19rem; margin-left: auto; font-size: .92rem; }
  .services-hero__line { top: 31%; right: 0; width: 36%; height: 37%; }
  .services-index { padding-top: 5rem; padding-bottom: 6rem; }
  .services-index__header { display: block; margin-bottom: 4.5rem; }
  .services-index__header h2 { margin-top: 2.5rem; font-size: clamp(3rem, 12vw, 4.2rem); }
  .service-item { grid-template-columns: 2.4rem minmax(0, 1fr); row-gap: .8rem; padding: 2rem 0 2.4rem; }
  .service-item h3 { font-size: clamp(2.35rem, 9.8vw, 3.35rem); line-height: .82; }
  .service-item__scope, .service-item__description { grid-column: 2; margin-top: 0; padding-left: 0; }
  .service-item > * { min-width: 0; }
  .service-item__scope, .service-item__description { overflow-wrap: anywhere; }
  .service-item__description { max-width: 22rem; font-size: .9rem; }
  .process { gap: 4rem; padding-top: 6rem; padding-bottom: 6rem; }
  .process > * { min-width: 0; }
  .process__heading { display: block; }
  .process__heading h2 { margin-top: 2rem; font-size: clamp(3.15rem, 14vw, 4.8rem); }
  .process__steps { grid-template-columns: 1fr; }
  .process__steps li { min-height: 0; padding: 1.1rem 0 2rem; border-right: 0; border-bottom: 1px solid rgba(244,242,237,.45); }
  .process__steps li + li { padding-left: 0; padding-top: 1.5rem; }
  .process__steps li:last-child { border-bottom: 0; }
  .process__steps h3 { padding-top: 2.5rem; font-size: 3.4rem; }
  .services-closing { min-height: 90svh; display: flex; flex-direction: column; padding-top: 5rem; }
  .services-closing h2 { width: 100%; min-width: 0; margin: auto 0; font-size: clamp(3.2rem, 14vw, 4.8rem); }
  .services-closing h2 span:nth-child(2) { padding-left: 0; }
  .services-closing h2 span:nth-child(3) { padding-left: 8vw; }
  .services-closing__action { width: 100%; }
  .services-closing footer { margin-top: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
