.focus {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 3% 50%, #334438 0%, transparent 53%),
    radial-gradient(ellipse at 98% 92%, #262f28 0%, transparent 58%),
    var(--paper);
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5.4vw, 88px);
  align-items: center;
}

.services-intro h2 {
  max-width: 15ch;
  color: var(--white);
  font-size: clamp(2.05rem, 3.7vw, 4rem);
  font-weight: 590;
  letter-spacing: -.058em;
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.folio-mark {
  position: relative;
  display: block;
  width: clamp(92px, 11.5vw, 149px);
  height: clamp(74px, 9vw, 110px);
  margin-top: clamp(25px, 4vw, 55px);
  color: var(--accent);
  opacity: .72;
}

.folio-mark i {
  position: absolute;
  display: block;
  border: 1px solid currentColor;
  border-bottom: 0;
}

.folio-mark i:first-child { inset: 0 31% 0 0; }
.folio-mark i:last-child { inset: 31% 0 0 34%; }

.service-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service {
  display: grid;
  gap: clamp(11px, 1.6vw, 22px);
  min-width: 0;
  padding: clamp(19px, 2.2vw, 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #202a25;
}

.service:first-child,
.service:last-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
}

.service:first-child {
  border-color: #57675b;
  background: linear-gradient(120deg, #314139, #222d27 65%);
}

.service:last-child {
  background: linear-gradient(120deg, #272f2b, #1a231e);
}

.service h3 {
  color: var(--white);
  font-size: clamp(1.35rem, 1.85vw, 1.88rem);
  font-weight: 580;
  line-height: 1.15;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.service-detail p {
  color: var(--muted);
  line-height: 1.57;
}

.service-detail .text-link {
  gap: .55rem;
  margin-top: 3px;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.service-detail .text-link::before {
  content: '';
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.service-detail .text-link:focus-visible,
.contact :focus-visible,
.footer :focus-visible {
  outline-color: var(--accent);
}

.approach {
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper), #202924 53%, var(--paper));
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto;
  align-items: center;
  isolation: isolate;
}

.approach-visual {
  position: relative;
  grid-column: 1 / span 8;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #2b352c;
  box-shadow: 0 22px 46px #10171574;
}

.approach-visual img {
  width: 100%;
  height: clamp(390px, 49vw, 610px);
  object-fit: cover;
  object-position: 50% 55%;
  filter: brightness(.82) saturate(.78);
}

.approach-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 52%, #17231e55);
}

.approach-visual figcaption {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border: 1px solid #c2cdb458;
  border-radius: 5px;
  background: #101715eb;
  color: var(--white);
  font-size: .82rem;
  line-height: 1.38;
}

.approach-copy {
  z-index: 2;
  grid-column: 7 / -1;
  grid-row: 1;
  min-width: 0;
  padding: clamp(28px, 5vw, 76px);
  border: 1px solid #6b786d;
  border-radius: 20px;
  background: #19231fee;
  box-shadow: 0 20px 52px #10171591;
  backdrop-filter: blur(12px);
}

.approach-copy .label {
  margin-bottom: 15px;
  color: var(--accent);
}

.approach-copy h2,
.contact h2 {
  color: var(--white);
  font-weight: 580;
  letter-spacing: -.065em;
  line-height: 1.01;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.approach-copy h2 {
  font-size: clamp(2.25rem, 4.55vw, 5.4rem);
}

.approach-copy > p:last-child {
  max-width: 39ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.63;
}

.contact {
  padding-block: clamp(22px, 4vw, 56px) clamp(52px, 7vw, 100px);
  color: var(--ink);
  background: var(--paper);
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .87fr);
  gap: clamp(26px, 6.3vw, 105px);
  align-items: center;
  padding: clamp(30px, 6.8vw, 105px);
  border: 1px solid #677565;
  border-radius: 21px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 0 100%, #394b3f 0%, transparent 60%),
    linear-gradient(106deg, #293930, #1a2420 73%);
}

.contact-grid::before,
.contact-grid::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -1px;
  width: clamp(130px, 29vw, 435px);
  height: 98%;
  pointer-events: none;
  border: 1px solid #a9b7a23b;
  border-bottom: 0;
}

.contact-grid::before { right: -10%; }
.contact-grid::after { right: -16%; height: 76%; }

.contact h2 {
  max-width: 11ch;
  font-size: clamp(2.5rem, 5.65vw, 6.15rem);
}

.contact-copy > p:first-child {
  color: var(--white);
  font-size: clamp(1.01rem, 1.44vw, 1.25rem);
  line-height: 1.58;
}

.contact .actions {
  flex-wrap: wrap;
  gap: 8px clamp(12px, 1.8vw, 23px);
  margin-block: 21px 11px;
}

.contact .button {
  border-color: var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #181f1a;
  overflow-wrap: anywhere;
}

.contact .button:hover { background: #f0dfb5; }
.contact .text-link { color: var(--white); overflow-wrap: anywhere; }
.contact .form-note { color: var(--muted); }

.footer {
  border-top: 1px solid var(--line);
  background: var(--dark);
  color: var(--ink);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  min-height: 92px;
  padding-block: 16px;
}

.footer-inner .text-link { color: var(--muted); }
.footer-inner .text-link:hover { color: var(--white); }

@media (max-width: 1030px) {
  .services-layout { grid-template-columns: minmax(0, 1fr); }
  .services-intro h2 { max-width: 19ch; }
  .folio-mark { display: none; }
}

@media (max-width: 700px) {
  .approach-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .approach-copy, .approach-visual { grid-column: 1; }
  .approach-copy { grid-row: 1; box-shadow: none; }
  .approach-visual { grid-row: 2; box-shadow: none; }
  .approach-visual img { height: clamp(252px, 62vw, 400px); }
  .approach-visual::after { background: none; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid::before, .contact-grid::after { opacity: .65; }
}

@media (max-width: 550px) {
  .service-index, .service:first-child, .service:last-child {
    grid-template-columns: minmax(0, 1fr);
  }
  .service, .approach-copy { padding: 18px; }
  .service { gap: 8px; }
  .contact-grid { padding: 24px 19px; }
  .contact h2 { max-width: 13ch; }
  .footer .brand { min-height: 44px; }
}
