/* ActiveZone footer iceberg v10 r4 — scoped to the section and compact footer. */

.az-footer-iceberg,
.az-footer-iceberg-footer {
  --orange: #ff6200;
  --text: #f5f5f2;
  --pad: clamp(24px, 5vw, 72px);
}

.az-footer-iceberg {
  --ice-width: clamp(300px, 29vw, 410px);
  --ice-height: calc(var(--ice-width) * 1.5);
  --surface-min: 132px;
  --art-top: max(0px, calc(var(--surface-min) - var(--ice-height) * 0.196));
  --scene-height: calc(var(--ice-height) + var(--art-top));
  --water-y: calc(var(--art-top) + var(--ice-height) * 0.196);
  --center: 50%;
  --gap: clamp(28px, 4vw, 64px);
  margin: 0;
  background: #0A0A0A;
  color: var(--text);
  font-family: Commissioner, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-margin-top: calc(var(--header-h, 72px) + 12px);
}

.az-footer-iceberg__wrap {
  width: calc(100% - 2 * var(--pad));
  max-width: 1280px;
  margin-inline: auto;
}

.az-footer-iceberg__intro {
  margin: 0;
  background: var(--orange);
  color: #101110;
  padding: 56px 0 40px;
}

.az-footer-iceberg__title {
  font: 300 clamp(42px, 4.1vw, 60px) / 1.07 Geologica, Arial, sans-serif;
  font-variation-settings: normal;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: none;
}

.az-footer-iceberg__title span {
  display: block;
  color: white;
  text-wrap: balance;
}

.az-footer-iceberg p {
  max-width: none;
}

.az-footer-iceberg__intro p {
  font-size: 17px;
  line-height: 1.55;
  margin: 25px 0 0;
  max-width: 1000px;
}

.az-footer-iceberg__metaphor {
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.45;
}

.az-footer-iceberg__metaphor strong {
  font-size: 1.25em;
  font-weight: 500;
  line-height: 1;
  color: #fff;
}

.az-footer-iceberg__meaning {
  margin-top: 8px;
}

.az-footer-iceberg__stage {
  position: relative;
  isolation: isolate;
  background-color: #0A0A0A;
  background-image: linear-gradient(to bottom, var(--orange) 0, var(--orange) var(--water-y), transparent var(--water-y));
  padding-bottom: 32px;
}

.az-footer-iceberg__sea {
  position: absolute;
  z-index: -2;
  inset: var(--water-y) 0 -2px;
  background: linear-gradient(180deg, #273e5a 0%, #1b314f 37%, #10213c 72%, #050a14 90%, #0A0A0A 100%);
}

.az-footer-iceberg__sea::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 43% 55% at var(--center) 6%, #ffc3842b, transparent 72%);
  mask-image: linear-gradient(to bottom, transparent, #000 80px);
}

.az-footer-iceberg__rays {
  position: absolute;
  z-index: -1;
  left: calc(var(--center) - 50%);
  top: var(--water-y);
  width: 100%;
  height: calc(var(--scene-height) - var(--water-y));
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 65px, #000 70%, transparent);
}

.az-footer-iceberg__rays path {
  fill: url(#az-footer-iceberg-ray);
  filter: blur(8px);
}

.az-footer-iceberg__glow {
  position: absolute;
  z-index: -1;
  left: var(--center);
  top: var(--water-y);
  width: min(760px, 85vw);
  height: calc(var(--scene-height) - var(--water-y));
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 14%, #ffb77520, transparent 68%);
  mask-image: linear-gradient(to bottom, transparent, #000 70px);
  pointer-events: none;
}

.az-footer-iceberg__scene {
  position: absolute;
  inset: 0;
  height: var(--scene-height);
  pointer-events: none;
}

.az-footer-iceberg__art {
  position: absolute;
  z-index: 1;
  top: var(--art-top);
  width: var(--ice-width);
  aspect-ratio: 2 / 3;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 12px 24px #050b1760);
}

.az-footer-iceberg__art img {
  width: 100%;
  height: auto;
}

.az-footer-iceberg__art::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inset(19.6% 0 0);
  background: linear-gradient(180deg, #70add0 0%, #3376a8 48%, #17436f 100%);
  mask-image: url("../assets/footer-iceberg-preview/iceberg.png");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.68;
}

.az-footer-iceberg__details {
  --label-font: clamp(21px, 1.9vw, 27px);
  --title-line: calc(var(--label-font) * 1.16);
  position: relative;
  z-index: 3;
  height: var(--scene-height);
}

.az-footer-iceberg__group,
.az-footer-iceberg__depths {
  display: contents;
}

.az-footer-iceberg__group-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}

.az-footer-iceberg__depth {
  position: absolute;
  top: calc(var(--art-top) + var(--ice-height) * var(--pin-y) - var(--title-line) / 2);
  width: calc((100% - var(--ice-width) - 2 * var(--gap)) / 2);
  list-style: none;
}

.az-footer-iceberg__depth:nth-child(odd) {
  left: 0;
}

.az-footer-iceberg__depth:nth-child(even) {
  right: 0;
}

.az-footer-iceberg__depth--surface {
  color: #101110;
}

.az-footer-iceberg__depth h3 {
  font: 400 var(--label-font) / 1.16 Geologica, Arial, sans-serif;
  font-variation-settings: normal;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

.az-footer-iceberg__depth p {
  font-size: 16px;
  line-height: 1.45;
  margin: 11px 0 0;
  color: #d3dce7;
  max-width: 310px;
}

.az-footer-iceberg__depth--surface p {
  color: #1e1b17;
  margin-top: 8px;
}

.az-footer-iceberg__connectors {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.az-footer-iceberg__connector-line {
  stroke: var(--orange);
  stroke-width: 1.5;
  fill: none;
  vector-effect: non-scaling-stroke;
}

.az-footer-iceberg__connector-dot {
  fill: var(--orange);
}

.az-footer-iceberg__compact-labels {
  display: none;
}

.az-footer-iceberg__connector-line--surface {
  stroke: #101110;
}

.az-footer-iceberg__connector-dot--surface {
  fill: #101110;
}

.az-footer-iceberg-footer {
  flex: none;
  margin: 0;
  padding: 34px 0 24px;
  background: #050a14;
  color: var(--text);
  font-family: Commissioner, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.az-footer-iceberg-footer__wrap {
  width: calc(100% - 2 * var(--pad));
  max-width: 1280px;
  margin-inline: auto;
}

.az-footer-iceberg-footer__main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 32px;
}

.az-footer-iceberg-footer__logo img {
  width: 178px;
  height: auto;
  filter: brightness(0) invert(1);
}

.az-footer-iceberg-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 14px;
}

.az-footer-iceberg-footer nav a,
.az-footer-iceberg-footer__contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.az-footer-iceberg-footer__contacts {
  display: grid;
  justify-content: end;
  font-size: 14px;
}

.az-footer-iceberg-footer__contacts a {
  white-space: nowrap;
}

.az-footer-iceberg-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.az-footer-iceberg-footer a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}

.az-footer-iceberg-footer__legal {
  border-top: 1px solid #879cb62a;
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  color: #99a6b9;
  font-size: 12px;
  line-height: 1.5;
}

.az-footer-iceberg-footer__legal > span {
  margin-right: auto;
}

@media (1025px <= width < 1366px) {
  .az-footer-iceberg {
    --surface-min: 116px;
  }

  .az-footer-iceberg__intro {
    padding-top: 44px;
    padding-bottom: 32px;
  }

  .az-footer-iceberg__intro p {
    font-size: 16px;
  }

  .az-footer-iceberg__depth p {
    font-size: 14px;
    line-height: 1.4;
  }
}

@media (width < 1025px) {
  .az-footer-iceberg,
  .az-footer-iceberg-footer {
    --pad: clamp(24px, 5vw, 48px);
  }

  .az-footer-iceberg {
    --ice-width: clamp(270px, 39vw, 350px);
    --art-top: 0px;
    --center: 50%;
  }

  .az-footer-iceberg__intro {
    padding: 44px 0 30px;
  }

  .az-footer-iceberg__title {
    font-size: clamp(38px, 5.6vw, 54px);
  }

  .az-footer-iceberg__intro p {
    font-size: 16px;
    max-width: 650px;
  }

  .az-footer-iceberg__scene {
    position: relative;
    inset: auto;
    height: calc(var(--ice-height) + 20px);
  }

  .az-footer-iceberg__details {
    display: block;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .az-footer-iceberg__group {
    display: block;
  }

  .az-footer-iceberg__group + .az-footer-iceberg__group {
    margin-top: 34px;
  }

  .az-footer-iceberg__group-title {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    font: 600 14px / 1.4 Commissioner, Arial, sans-serif;
    font-variation-settings: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--orange);
    margin: 0 0 22px;
  }

  .az-footer-iceberg__depths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 48px;
    margin: 0;
    padding: 0;
  }

  .az-footer-iceberg__depth {
    position: static;
    width: auto;
    padding: 0;
    color: var(--text);
  }

  .az-footer-iceberg__depth h3 {
    font-size: 25px;
    text-wrap: initial;
  }

  .az-footer-iceberg__depth p,
  .az-footer-iceberg__depth--surface p {
    font-size: 16px;
    color: #d3dce7;
    margin-top: 9px;
    max-width: 340px;
  }

  .az-footer-iceberg__compact-labels {
    --compact-font: clamp(16px, 2.3vw, 22px);
    --compact-line: calc(var(--compact-font) * 1.16);
    position: absolute;
    z-index: 3;
    inset: 0;
    display: block;
  }

  .az-footer-iceberg__compact-label {
    position: absolute;
    top: calc(var(--art-top) + var(--ice-height) * var(--pin-y) - var(--compact-line) / 2);
    width: calc((100% - var(--ice-width)) / 2 - 12px);
    font: 400 var(--compact-font) / 1.16 Geologica, Arial, sans-serif;
    letter-spacing: -0.035em;
    color: var(--text);
  }

  .az-footer-iceberg__compact-label:nth-child(odd) {
    left: 0;
  }

  .az-footer-iceberg__compact-label:nth-child(even) {
    right: 0;
  }

  .az-footer-iceberg__compact-label--surface {
    color: #101110;
  }
}

@media (width < 601px) {
  .az-footer-iceberg,
  .az-footer-iceberg-footer {
    --pad: 16px;
  }

  .az-footer-iceberg {
    --ice-width: clamp(140px, 42vw, 190px);
    --surface-min: 96px;
    --art-top: max(0px, calc(var(--surface-min) - var(--ice-height) * 0.196));
    --scene-height: calc(var(--ice-height) + var(--art-top));
    --water-y: calc(var(--art-top) + var(--ice-height) * 0.196);
    --center: 50%;
  }

  .az-footer-iceberg__intro {
    padding: 34px 0 24px;
  }

  .az-footer-iceberg__title {
    font-size: clamp(28px, 7.8vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.045em;
  }

  .az-footer-iceberg__intro p {
    font-size: 15px;
    line-height: 1.5;
    margin-top: 18px;
    max-width: 430px;
  }

  .az-footer-iceberg__metaphor {
    font-size: 18px;
  }

  .az-footer-iceberg__scene {
    position: relative;
    inset: auto;
    height: var(--scene-height);
  }

  .az-footer-iceberg__compact-labels {
    --compact-font: clamp(10.5px, 2.9vw, 13px);
    --compact-line: calc(var(--compact-font) * 1.15);
    position: absolute;
    z-index: 3;
    inset: 0;
    display: block;
  }

  .az-footer-iceberg__compact-label {
    position: absolute;
    top: calc(var(--art-top) + var(--ice-height) * var(--pin-y) - var(--compact-line) / 2);
    width: calc((100% - var(--ice-width)) / 2 - 10px);
    font: 500 var(--compact-font) / 1.15 Geologica, Arial, sans-serif;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  }

  .az-footer-iceberg__compact-label:nth-child(odd) {
    left: 0;
    text-align: right;
  }

  .az-footer-iceberg__compact-label:nth-child(even) {
    right: 0;
    text-align: left;
  }

  .az-footer-iceberg__compact-label--surface {
    color: #101110;
    text-shadow: none;
  }

  .az-footer-iceberg__connectors {
    display: block;
  }

  .az-footer-iceberg__details {
    display: block;
    height: auto;
    padding-top: 24px;
  }

  .az-footer-iceberg__group {
    display: block;
  }

  .az-footer-iceberg__group-title {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    font: 700 13px / 1.35 Commissioner, Arial, sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--orange);
    margin: 0 0 16px;
  }

  .az-footer-iceberg__depths {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0;
    padding: 0;
  }

  .az-footer-iceberg__depth {
    position: static;
    width: auto;
    padding: 0;
    color: var(--text);
  }

  .az-footer-iceberg__depth h3 {
    font-size: 19px;
    line-height: 1.2;
    text-wrap: initial;
  }

  .az-footer-iceberg__depth p,
  .az-footer-iceberg__depth--surface p {
    font-size: 14px;
    line-height: 1.45;
    max-width: 440px;
    margin-top: 6px;
    color: #d3dce7;
  }

  .az-footer-iceberg__group + .az-footer-iceberg__group {
    margin-top: 28px;
  }

  .az-footer-iceberg__stage {
    padding-bottom: 28px;
  }

  .az-footer-iceberg-footer {
    padding-top: 28px;
  }

  .az-footer-iceberg-footer__main {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .az-footer-iceberg-footer nav {
    gap: 0 26px;
  }

  .az-footer-iceberg-footer nav a,
  .az-footer-iceberg-footer__contacts a {
    min-height: 40px;
  }

  .az-footer-iceberg-footer__contacts {
    justify-content: start;
  }

  .az-footer-iceberg-footer__legal {
    flex-wrap: wrap;
    justify-content: start;
    gap: 10px 20px;
    margin-top: 24px;
  }

  .az-footer-iceberg-footer__legal > span {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .az-footer-iceberg-footer nav a,
  .az-footer-iceberg-footer__contacts a,
  .az-footer-iceberg-footer__legal a {
    transition: color 0.18s ease;
  }

  .az-footer-iceberg-footer nav a:hover,
  .az-footer-iceberg-footer__contacts a:hover,
  .az-footer-iceberg-footer__legal a:hover {
    color: #ff9a5c;
  }
}
