.web-hero {
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 82px);
  padding-top: clamp(55px, 7vw, 105px);
  padding-bottom: clamp(60px, 7vw, 110px);
}

.web-hero h1 {
  font-size: clamp(48px, 5.45vw, 82px);
}

.web-hero .hero-text {
  container: web-intro / inline-size;
}
/* Keep actions stable when the local webfont replaces the fallback font. */
@container web-intro (max-width: 25rem) {
  .web-hero .actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.web-hero .hero-text > p {
  max-width: 51ch;
}

.web-examples {
  min-width: 0;
  isolation: isolate;
}
.web-example-pair {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(22px, 4vw, 58px) 12% clamp(34px, 5vw, 74px) 4%;
  background: linear-gradient(116deg, #131416, #1c191b 65%, #101113);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.web-example-browser {
  width: 100%;
  overflow: hidden;
  background: #25252a;
  border: 1px solid #666067;
  border-radius: 5px;
  box-shadow: 0 9px 18px #0005;
}
.web-browser-bar {
  display: flex;
  gap: 4px;
  height: clamp(12px, 1.45vw, 19px);
  align-items: center;
  padding-left: 8px;
}
.web-browser-bar i {
  width: 4px;
  height: 4px;
  background: #aaa1a3;
  border-radius: 50%;
}
.web-example-browser img,
.web-example-phone img {
  width: 100%;
  height: auto;
}
.web-example-phone {
  position: absolute;
  width: 22%;
  inset: auto 4% 8% auto;
  overflow: hidden;
  border: clamp(3px, .4vw, 5px) solid #292b30;
  border-radius: 13% / 7%;
  outline: 1px solid #757277;
  background: #102525;
  box-shadow: -6px 7px 15px #0006;
}
.web-examples figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .8rem;
}
.web-section-intro {
  max-width: 70ch;
  margin-top: 17px;
}

.web-gallery {
  border-block: 1px solid var(--line);
  background: var(--black);
}

.web-concepts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  margin-top: clamp(30px, 4vw, 58px);
}

.web-concept {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.web-concept > img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  border-bottom: 1px solid var(--line);
}

.web-concept figcaption {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(18px, 2.2vw, 30px);
}

.web-concept figcaption h3 {
  margin: 5px 0 8px;
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.web-concept-industry {
  color: var(--accent);
  font-weight: 660;
  font-size: 12px;
  letter-spacing: 0.07em;
}

.web-view-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}
.gallery-quote {
  margin-top: clamp(22px, 3vw, 40px);
}
.web-view-button, .web-view-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: var(--ink);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
}
.web-view-button:hover, .web-view-close:hover {
  border-color: var(--accent);
}
.device-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 12px;
  flex: none;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.device-icon.desktop::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 1.5px;
  left: 3px;
  bottom: -4px;
  background: currentColor;
}
.device-icon.mobile {
  width: 10px;
  height: 16px;
}
.web-viewer {
  box-sizing: border-box;
  width: min(92vw, 950px);
  max-height: 92vh;
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 68px #0008;
}
.web-viewer::backdrop {
  background: rgb(0 0 0 / 78%);
}
.web-viewer-head {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: clamp(12px, 2vw, 25px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.web-viewer-head p {
  font-size: .78rem;
}
.web-viewer-head h4 {
  margin: 4px 0 0;
  font-size: clamp(17px, 2.3vw, 30px);
  line-height: 1.2;
  letter-spacing: -.03em;
}
.web-viewer-head h4 span {
  color: var(--muted);
  font-weight: 500;
}
.web-view-close {
  flex: none;
}
.web-view-stage {
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
  background: #18191d;
}
.web-view-stage img {
  display: block;
  height: auto;
  border: 1px solid #646069;
  border-radius: 3px;
}
.web-view-stage--desktop img {
  width: 100%;
}
.web-view-stage--mobile img {
  width: min(100%, 260px, 30vh);
  width: min(100%, 260px, 30dvh);
  border: 5px solid #35353a;
  border-radius: 13% / 7%;
  outline: 1px solid #727179;
}
.web-viewer-foot {
  padding: clamp(12px, 2vw, 25px);
  border-top: 1px solid var(--line);
}
/* Browsers without the native Popover API show the examples in the card. */
@supports not selector(:popover-open) {
  .web-view-buttons, .web-view-close { display: none; }
  .web-viewer {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 18px;
  }
  .web-viewer-head { position: static; }
}

.web-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(26px, 5vw, 80px);
  margin-top: clamp(30px, 4vw, 55px);
}

.web-service {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 15px;
  padding-block: 23px;
  border-top: 1px solid var(--line);
}

.web-service h3,
.web-steps h3 {
  margin-bottom: 7px;
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.036em;
}

.web-process {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.web-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(18px, 3vw, 45px);
  padding: 0;
  margin: clamp(30px, 4vw, 55px) 0 20px;
  list-style: none;
}

.web-steps li {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-block: 19px 25px;
}

.web-step-number {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .web-hero {
    gap: 25px;
  }

  .web-hero h1 {
    font-size: clamp(42px, 5.4vw, 58px);
  }
}

@media (max-width: 690px) {
  .web-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 30px 45px;
  }

  .web-hero h1 {
    font-size: clamp(42px, 8.5vw, 58px);
  }

  .web-examples {
    max-width: 560px;
  }

  .web-concepts,
  .web-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .web-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .web-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .web-hero h1 {
    font-size: 38px;
  }
}
