/*
  Built on the 402 px wide mobile frame (the Figma frame is 1472 px = 402 px x 3.6617).
  1rem = 10 frame px and scales with the viewport (capped at 440 px wide),
  so the composition keeps its proportions on every phone.
*/
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

:root {
  --stage-w: min(100vw, 440px);
  --ink: #4b4b4b;
  --ink-soft: rgba(75, 75, 75, 0.61);
  --arrow: #b6848b;           /* #883843 at 63% on white, as rendered */
  --arrow-ink: #883843;
  --frame: #e0e0e0;
  --glass: rgba(255, 255, 255, 0.56);
  --glass-hover: rgba(255, 255, 255, 0.66);
  --panel: rgba(255, 255, 255, 0.34);
  --panel-blur: 10px;
  --card-blur: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* icon circle drop shadow, from the original artwork */
  --icon-shadow:
    0.885rem 0.253rem 2.022rem rgba(214, 191, 192, .36),
    3.507rem 1.074rem 3.665rem rgba(214, 191, 192, .31),
    7.898rem 2.401rem 4.960rem rgba(214, 191, 192, .18),
    14.03rem 4.265rem 5.876rem rgba(214, 191, 192, .05),
    21.93rem 6.666rem 6.414rem rgba(214, 191, 192, .01);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: calc(var(--stage-w) / 40.2);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--frame);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
}

/* Desktop / tablet surround: an enlarged, heavily blurred copy of the photo */
body::before {
  content: "";
  position: fixed;
  inset: -10vmax;
  z-index: -1;
  background: var(--photo-blur-img, url("assets/photo-blur.jpg")) center 35% / cover no-repeat;
  filter: blur(40px);
  opacity: 0;
  pointer-events: none;
}

/* ---------------------------------------------------------------- stage */
.stage {
  position: relative;
  isolation: isolate;
  width: 40.2rem;
  min-height: 94.14rem;
  margin: 0 auto;
  padding-bottom: 4.83rem;
  background: var(--frame);
}

/* the original photo with the grey gradient wash (33%) laid over it */
.photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom,
      rgba(129, 129, 129, .33) 0,
      rgba(255, 255, 255, .33) 40.04rem,
      rgba(116, 116, 116, .33) 56.80rem,
      rgba(116, 116, 116, .33) 100%),
    var(--photo-img, url("assets/photo.webp")) var(--photo-x, 0rem) var(--photo-y, 0rem) / var(--photo-size, 100%) auto no-repeat;
}

/* frosted panel behind the links */
.panel {
  position: absolute;
  top: 40.75rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  border-radius: 2.458rem 2.458rem 0 0;
  background: var(--panel);
  -webkit-backdrop-filter: blur(var(--panel-blur));
  backdrop-filter: blur(var(--panel-blur));
}

/* ---------------------------------------------------------------- header */
.brand {
  position: absolute;
  inset: 0 0 auto 0;
  height: 13rem;
  pointer-events: none;
}

.brand__logo,
.brand__tagline {
  position: absolute;
  margin: 0;
  line-height: 0;
}

.brand__logo { left: 11.907rem; top: 2.376rem; width: 16.44rem; }
.brand__tagline { left: 23.40rem; top: 9.64rem; width: 5.08rem; }
.brand__tagline--text {
  left: 23.33rem;
  top: 9.34rem;
  width: auto;
  font-size: 1.22rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- links */
.links {
  padding-top: 44.133rem;
}

.links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.399rem;
}

/* Social card: one reusable component for every platform */
.card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 37.424rem;
  height: 7.914rem;
  margin-left: 1.388rem;
  border-radius: 3.957rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--card-blur));
  backdrop-filter: blur(var(--card-blur));
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color .35s var(--ease),
    transform .35s var(--ease),
    box-shadow .35s var(--ease);
}

.card__icon {
  position: relative;
  flex: none;
  width: 4.51rem;
  height: 4.51rem;
  margin-left: 1.663rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--icon-shadow);
}

.card__icon img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--icon-size, 100%);
  height: var(--icon-size, 100%);
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.card__icon--empty { background: rgba(255, 255, 255, .8); }

.card__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: 2.37rem;
  padding-top: 0.04rem;
}

.card__name {
  position: relative;
  top: 0.08rem;
  font-size: 1.55rem;
  line-height: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
}

.card__handle {
  margin-top: 0.046rem;
  font-size: 1.234rem;
  line-height: 1.5rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.card__go {
  position: absolute;
  right: 1.629rem;
  top: 50%;
  width: 3.592rem;
  height: 3.592rem;
  margin-top: calc(-1.796rem - 0.115rem);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--arrow-ink);
}

.card__go svg {
  width: 1.639rem;
  height: 1.639rem;
  overflow: visible;
  transition: transform .35s var(--ease);
}

@media (hover: hover) {
  .card:hover {
    background: var(--glass-hover);
    transform: translateY(-0.15rem);
    box-shadow: 0 0.8rem 2.4rem rgba(60, 50, 50, 0.07);
  }
  .card:hover .card__go svg {
    transform: translateX(0.25rem);
  }
}

.card:active {
  transform: scale(0.985);
  background: var(--glass-hover);
}

.card:focus-visible {
  outline: 2px solid var(--arrow);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- call-to-action motion */
.links__list > li { --i: 0; }
.links__list > li:nth-child(2) { --i: 1; }
.links__list > li:nth-child(3) { --i: 2; }
.links__list > li:nth-child(4) { --i: 3; }
.links__list > li:nth-child(5) { --i: 4; }
.links__list > li:nth-child(6) { --i: 5; }
.links__list > li:nth-child(7) { --i: 6; }
.links__list > li:nth-child(8) { --i: 7; }

/* 1. cards rise in one after another on load */
.links__list > li {
  animation: card-in .8s var(--ease) backwards;
  animation-delay: calc(.25s + var(--i) * .09s);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(1.8rem) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* 2. a soft light sweep across the glass, card by card */
.card__glass {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.card__glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255, 255, 255, .55) 48%,
    rgba(255, 255, 255, .15) 54%,
    transparent 70%);
  transform: translateX(-120%);
  animation: sheen 7s var(--ease) infinite;
  animation-delay: calc(1.6s + var(--i) * .35s);
  pointer-events: none;
}
@keyframes sheen {
  0%       { transform: translateX(-120%); }
  22%, 100% { transform: translateX(120%); }
}

/* 3. the arrow button "breathes" and nudges toward the link */
.card__go::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(182, 132, 139, .45);
  animation: ring 3.6s ease-out infinite;
  animation-delay: calc(1.2s + var(--i) * .3s);
}
@keyframes ring {
  0%       { box-shadow: 0 0 0 0 rgba(182, 132, 139, .40); }
  35%, 100% { box-shadow: 0 0 0 .9rem rgba(182, 132, 139, 0); }
}
.card__go svg {
  animation: nudge 3.6s var(--ease) infinite;
  animation-delay: calc(1.2s + var(--i) * .3s);
}
@keyframes nudge {
  0%, 30%, 100% { transform: translateX(0); }
  10%           { transform: translateX(.3rem); }
  18%           { transform: translateX(-.05rem); }
}

/* 4. hover / press: the button fills with the arrow colour */
.card__go { transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease); }
@media (hover: hover) {
  .card:hover .card__go {
    background: var(--arrow);
    color: #fff;
    transform: scale(1.06);
  }
  .card:hover .card__go svg,
  .card:hover .card__go::before { animation: none; }
  .card:hover .card__go { --arrow-opacity: 1; }
  .card:hover .card__glass::after { animation-duration: 1.4s; animation-delay: 0s; animation-iteration-count: 1; }
}
.card:active .card__go { background: var(--arrow); color: #fff; --arrow-opacity: 1; }
.card:focus-visible .card__go { background: var(--arrow); color: #fff; --arrow-opacity: 1; }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 480px) {
  body::before { opacity: 0.55; }
  html { background: #dcdcdc; }
  body { padding: 3.2rem 0 4rem; }
  /* the column becomes a framed card over the blurred surround */
  .stage {
    overflow: hidden;
    border-radius: 3.2rem;
    background: var(--frame);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .55),
      0 0.4rem 1.2rem rgba(70, 50, 45, .08),
      0 3rem 8rem rgba(70, 50, 45, .22);
  }
  .panel { border-radius: 2.458rem 2.458rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card__go, .card__go svg { transition: none; }
  .links__list > li, .card__glass::after, .card__go::before, .card__go svg { animation: none !important; }
  .card:hover { transform: none; }
}
