/* Anderbyrne — design + build
   Single-viewport composition built from the Figma frame "Landing V2 — Split" (1440×900).
   Everything scales off the stage: the box the letter A occupies (955×900 in the source
   frame, aspect 1.0611). --u is 1% of stage height, --sw is 1% of stage width. */

:root {
  --bg: #0C0E0D;
  --green: #4ECC8D;
  --orange: #FF7304;
  --cream: #F6F3E5;
  --white: #FFFFFF;

  /* Contain the A: full viewport height on wide screens; the 72.29vw cap keeps the
     rotated words (which overhang the stage left/right) inside squarish windows. */
  --stage-h: min(100svh, 72.29vw);
  --stage-w: calc(var(--stage-h) * 1.0611);
  --u: calc(var(--stage-h) / 100);
  --sw: calc(var(--stage-w) / 100);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

.scene {
  position: relative;
  height: 100svh;
}

/* ---- Stage: the A and the words anchored around it ---- */

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--stage-w);
  height: var(--stage-h);
  transform: translate(-50%, -50%);
}

.letter-a {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.tagline {
  display: contents; /* words position against .stage while staying one paragraph */
}

.word {
  position: absolute;
  font-weight: 700;
  font-size: calc(var(--u) * 14.67); /* 132px on the 900px frame */
  line-height: 1.212;
  white-space: nowrap;
}

/* "design" — anchored to the bottom, sweeping up along the A's left leg */
.word--design {
  left: calc(var(--sw) * 0.57);
  bottom: calc(var(--u) * 4.25);
  color: var(--green);
  text-transform: uppercase;
  transform: rotate(-70deg);
  transform-origin: bottom left;
}

/* "+" — anchored to the top, above "build" */
.word--plus {
  left: calc(var(--sw) * 73.6);
  top: 0;
  color: var(--cream);
}

/* "build" — anchored to the top, reading down along the A's right leg */
.word--build {
  left: calc(var(--sw) * 89.95);
  top: calc(var(--u) * 17.8);
  color: var(--orange);
  transform: rotate(70deg);
  transform-origin: top left;
}

/* ---- Brand: portrait, name, profile links (viewport-anchored, top left) ---- */

.brand {
  position: absolute;
  top: clamp(24px, 8.9svh, 80px);
  left: clamp(20px, 9.5vw, 152px);
}

.brand__portrait {
  display: block;
  width: clamp(72px, 13svh, 117px);
  height: auto;
  margin-left: clamp(8px, 1.9svh, 17px);
  border-radius: 50%;
}

.brand__name {
  margin-top: clamp(10px, 1.8svh, 16px);
  color: var(--white);
  font-size: clamp(19px, 2.9svh, 26px);
  font-weight: 700;
}

.brand__links {
  display: flex;
  gap: clamp(20px, 4.3svh, 39px);
  margin-top: clamp(10px, 1.7svh, 15px);
}

.brand__links a {
  color: var(--cream);
  font-size: clamp(13px, 1.8svh, 16px);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 120ms ease;
}

.brand__links a:hover,
.brand__links a:focus-visible {
  color: var(--green);
}

.brand__links .arrow {
  display: inline-block; /* keeps the arrow outside the underline */
  text-decoration: none;
}

/* ---- Phones (portrait): centered brand above the A; words mirror their gap to it ---- */

@media (max-width: 700px) and (orientation: portrait) {
  :root {
    --stage-h: min(100svh, 75vw); /* smaller A leaves side room for the words */
  }

  .stage {
    top: 55%; /* leaves room for the centered brand block above the A */
  }

  /* DESIGN moves up the A's left slope; its baseline gap to the A matches build's */
  .word--design {
    left: calc(var(--sw) * 3.7);
    bottom: calc(var(--u) * 20);
  }

  .word--build {
    left: calc(var(--sw) * 91.8);
  }

  /* sits on build's angled centerline, extended up-slope past the 'b' */
  .word--plus {
    left: calc(var(--sw) * 75.1);
  }

  .brand {
    left: 50%;
    top: clamp(20px, 5svh, 44px);
    transform: translateX(-50%);
    text-align: center;
  }

  .brand__portrait {
    width: clamp(64px, 21vw, 84px);
    margin-left: auto;
    margin-right: auto;
  }

  .brand__name {
    font-size: 20px;
  }

  .brand__links {
    justify-content: center;
  }
}
