.mast {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0c100e;
}
.mast-photo {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 35%;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.mast-photo img {
  width: 100%;
  height: 108%;
  object-fit: cover;
  object-position: 55% 52%;
  transform: translateY(calc(-4% + var(--photo-offset, 0px)));
}
.mast:after {
  position: absolute;
  content: "";
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #0b100e 8%,
      #0b100ef8 24%,
      #0b100e7a 47%,
      transparent 69%
    ),
    linear-gradient(0deg, #0c100e75, transparent 24%);
}
.mast-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(495px, 40vw, 640px);
  padding-block: 48px;
}
.mast-copy {
  max-width: 660px;
}
.mast-address {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #d8dfd8;
  margin-bottom: 23px;
}
.mast-address .icon {
  color: var(--accent);
  width: 16px;
}
.mast h1 {
  font-size: clamp(60px, 6.3vw, 98px);
  line-height: 1;
  letter-spacing: -0.065em;
}
.mast h1 em {
  font-style: normal;
  color: var(--accent);
}
.mast-copy > p {
  color: #c3cbc4;
  max-width: 42ch;
  margin-block: 24px 28px;
  font-size: clamp(16px, 1.34vw, 20px);
}
.mast .button-outline {
  background: #111713ba;
}
.mast-case {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  position: absolute;
  bottom: 24px;
  right: 0;
  border: 1px solid #ffffff40;
  border-radius: 100px;
  background: #101812bc;
  color: #fff;
  padding: 9px 15px;
  font-size: 14px;
}
.mast-case svg {
  width: 16px;
}
.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--band);
}
.proof-strip > .container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 20px;
}
.proof-strip .container > div {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
}
.proof-strip .container > div:first-child {
  justify-content: start;
}
.proof-strip .container > div:last-child {
  border: 0;
}
.proof-strip svg {
  color: var(--accent);
}
.proof-strip b {
  color: var(--ink);
  font-weight: 500;
}
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.device-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--panel);
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.25s;
}
.device-tile img {
  width: 100%;
  aspect-ratio: 1.85;
  object-fit: cover;
  transition: transform 0.3s;
}
.device-tile > div {
  padding: 20px 22px;
}
.device-tile p {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 14px;
}
.device-tile span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
}
.job-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}
.job-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.job-card:first-child,
.job-card:nth-child(4) {
  background: var(--raised);
}
.job-card small,
.job-card span {
  color: var(--muted);
  font-size: 14px;
}
.job-card h3 {
  font-size: 23px;
}
.job-card div {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.job-card strong {
  color: var(--accent);
  font-weight: 500;
}
@media (hover: hover) {
  .device-tile:hover,
  .job-card:hover {
    border-color: #638746;
  }
  .device-tile:hover {
    transform: translateY(-3px);
  }
  .device-tile:hover img {
    transform: scale(1.035);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .mast h1,
  .mast-copy > p,
  .mast-copy .actions {
    animation: arrive 0.55s both;
  }
  .mast-copy > p {
    animation-delay: 65ms;
  }
  .mast-copy .actions {
    animation-delay: 100ms;
  }
  .mast-photo {
    animation: image-in 0.65s both;
  }
  @keyframes arrive {
    from {
      transform: translateY(10px);
      opacity: 0.15;
    }
  }
  @keyframes image-in {
    from {
      opacity: 0.5;
    }
  }
}
@media (max-width: 820px) {
  .mast-copy {
    max-width: 58%;
  }
  .mast h1 {
    font-size: clamp(48px, 7.4vw, 68px);
  }
  .mast-photo {
    left: 36%;
  }
  .job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof-strip .container > div {
    gap: 7px;
    font-size: 14px;
  }
  .device-tile > div {
    padding: 16px;
  }
}
@media (max-width: 600px) {
  .mast-inner {
    min-height: 0;
    display: block;
    padding: 27px 0 0;
  }
  .mast-copy {
    max-width: none;
  }
  .mast h1 {
    font-size: clamp(47px, 12vw, 68px);
  }
  .mast-address {
    margin-bottom: 15px;
  }
  .mast-copy > p {
    margin: 14px 0 18px;
    max-width: 38ch;
  }
  .mast .actions {
    gap: 8px;
  }
  .mast .button {
    padding: 10px 13px;
    font-size: 14px;
  }
  .mast .button .icon {
    width: 15px;
  }
  .mast-photo {
    inset: auto 0 0;
    height: clamp(180px, 52vw, 280px);
    mask-image: linear-gradient(180deg, transparent, #000 28%);
  }
  .mast-photo img {
    object-position: 52% 50%;
  }
  .mast:after {
    display: none;
  }
  .mast-case {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: clamp(125px, 35vw, 190px);
    margin-bottom: 14px;
    font-size: 13px;
  }
  .proof-strip > .container {
    padding-block: 13px;
  }
  .proof-strip .container > div,
  .proof-strip .container > div:first-child {
    display: block;
    text-align: center;
    line-height: 1.35;
    font-size: 13px;
  }
  .proof-strip svg {
    display: none;
  }
  .proof-strip b {
    display: block;
  }
  .device-grid {
    grid-template-columns: 1fr;
  }
  .device-tile {
    display: grid;
    grid-template-columns: 0.82fr 1fr;
  }
  .device-tile img {
    height: 100%;
    aspect-ratio: auto;
  }
  .device-tile > div {
    padding: 16px 12px;
  }
  .device-tile p {
    margin: 4px 0 7px;
  }
  .job-card {
    padding: 16px;
    gap: 8px;
  }
  .job-card h3 {
    font-size: 19px;
  }
  .job-card div {
    flex-wrap: wrap;
    gap: 2px;
  }
  .job-grid {
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .mast .actions .icon {
    display: none;
  }
  .mast .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .mast .actions .button {
    padding: 9px 6px;
    line-height: 1.25;
  }
  .device-tile img {
    object-fit: cover;
  }
}
@media (min-width: 601px) {
  .device-tile img {
    aspect-ratio: 1.44;
  }
}

@media (min-width: 821px) {
  .device-grid, .job-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .device-tile, .job-card { grid-column: span 4; }
  .job-card:first-child, .job-card:nth-child(5) { grid-column: span 5; }
  .job-card:nth-child(3), .job-card:nth-child(4) { grid-column: span 3; }
}
