/* ---------- 1. SETTINGS ---------- */
:root {
  /* colors */
  --black: #0b0b0c;
  --white: #ffffff;
  --grey: #d5d7da;
  --grey-mid: #8a8d92;
  --yellow: #fedd00;

  /* fonts */
  --font-display: "Orbitron", sans-serif;
  --font-body: "Chakra Petch", sans-serif;
  --font-mono: "Share Tech Mono", monospace;

  /* sizes */
  /* space between window edge and frame: 110px on big screens, smaller on short ones */
  --page-gap: clamp(24px, min(7vw, 10vh), 110px);
  --border: 10px; /* black border of the screen */
  --radius: 18px; /* roundness of the screen's corners */
  --cut: 18px; /* size of the diagonal cut on the corners */
  /* one distance from the white edge to the content, used on all four sides */
  --edge: 32px;
  --logo-size: 80px; /* header logo */
  --qr-size: 100px; /* footer QR card */
  /* header/footer heights = their biggest item + the same gap above and below */
  --header-band: calc(var(--logo-size) + var(--edge) * 2);
  --footer-band: calc(var(--qr-size) + var(--edge) * 2);
  /* the screen's height (on big scaled screens: the design-size height) */
  --screen-h: 100vh;

  /* space between the page edge and the frame (top and bottom) */
  --page-pad: max(
    64px,
    calc(var(--page-gap) + (var(--screen-h) - var(--page-gap) * 2) * 0.05)
  );
}

/* ---------- 2. BASICS ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* The page is at least as tall as the screen; when the content needs
   more room (narrow screens, where things stack), it grows and scrolls.
   It is never narrower than 320px (narrower windows scroll sideways). */
body {
  position: relative;
  margin: 0;
  width: 100%;
  min-width: 320px;
  min-height: var(--screen-h);
  display: flex;
  flex-direction: column;
  padding: var(--page-pad) 0;
  overflow-x: hidden;
  background: radial-gradient(
    ellipse at center,
    #ffffff 50%,
    #f8f9fa 75%,
    #f1f2f4 100%
  );
  color: var(--black);
  font-family: var(--font-body);

  -webkit-user-select: none;
  user-select: none;

  input,
  textarea {
    user-select: text;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: -6px; /* was 0 – hides the blurred edges */
  background: url("./background.png") center / cover no-repeat;
  filter: blur(3px);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

p {
  margin: 0;
}

/* =========================================================
   3. BACKGROUND THEME
   ========================================================= */
.background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- corners: black triangles --- */
.corner {
  position: absolute;
  width: 36px;
  height: 36px;
  background: var(--black);
}
.corner-tl {
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.corner-tr {
  top: 0;
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.corner-bl {
  bottom: 0;
  left: 0;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.corner-br {
  bottom: 0;
  right: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* --- handles: dark tabs in the middle of each edge
   (the extra points round off their inner corners) --- */
.handle {
  position: absolute;
  background: var(--black);
}
.handle-top,
.handle-bottom {
  left: 50%;
  width: 300px;
  height: 18px;
  transform: translateX(-50%);
}
.handle-top {
  top: 0;
  clip-path: polygon(
    0 0,
    300px 0,
    285.54px 14.46px,
    283.02px 16.43px,
    280.17px 17.61px,
    277px 18px,
    23px 18px,
    19.83px 17.61px,
    16.98px 16.43px,
    14.46px 14.46px
  );
}
.handle-bottom {
  bottom: 0;
  clip-path: polygon(
    14.46px 3.54px,
    16.98px 1.57px,
    19.83px 0.39px,
    23px 0,
    277px 0,
    280.17px 0.39px,
    283.02px 1.57px,
    285.54px 3.54px,
    300px 18px,
    0 18px
  );
}
.handle-left,
.handle-right {
  top: 50%;
  width: 22px;
  height: 280px;
  transform: translateY(-50%);
}
.handle-left {
  left: 0;
  clip-path: polygon(
    0 0,
    18.77px 22.18px,
    20.56px 24.86px,
    21.64px 27.8px,
    22px 31px,
    22px 249px,
    21.64px 252.2px,
    20.56px 255.14px,
    18.77px 257.82px,
    0 280px
  );
}
.handle-right {
  right: 0;
  clip-path: polygon(
    22px 0,
    3.23px 22.18px,
    1.44px 24.86px,
    0.36px 27.8px,
    0 31px,
    0 249px,
    0.36px 252.2px,
    1.44px 255.14px,
    3.23px 257.82px,
    22px 280px
  );
}

/* =========================================================
   4. FRAME
   ========================================================= */
.frame {
  position: relative;
  z-index: 1;
  /* fills the screen, minus the gap on every side */
  /* 0.9 = frame is 90% of the space inside the gap */
  width: calc((100% - var(--page-gap) * 2) * 0.9);
  /* at least the screen's height; taller when the content needs it */
  min-height: calc((var(--screen-h) - var(--page-gap) * 2) * 0.9);
  margin: auto;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 26px 30px rgba(11, 11, 12, 0.35));
}

/* ---------- 4a. Around the screen ---------- */
.frame-around {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* corners: small double squares just outside each corner */
.frame-corner {
  position: absolute;
  width: 18px;
  height: 6px;
  background:
    linear-gradient(var(--black) 0 0) left / 6px 6px no-repeat,
    linear-gradient(var(--black) 0 0) right / 6px 6px no-repeat;
}
.frame-corner-tl {
  top: -20px;
  left: -26px;
}
.frame-corner-tr {
  top: -20px;
  right: -26px;
}
.frame-corner-bl {
  bottom: -20px;
  left: -26px;
}
.frame-corner-br {
  bottom: -20px;
  right: -26px;
}

/* handles: tabs that grow out of the black border */
.frame-handle {
  position: absolute;
  z-index: 3;
  background: var(--black);
}
.frame-handle-top,
.frame-handle-bottom {
  left: 50%;
  width: 200px;
  height: 11px;
  transform: translateX(-50%);
  background: none;
}
.frame-handle-top {
  top: -10px;
}
.frame-handle-bottom {
  bottom: -10px;
}

/* the tab shape itself */
.frame-handle-top::before,
.frame-handle-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black);
}
.frame-handle-top::before {
  clip-path: polygon(
    9.05px 2.7px,
    11.13px 1.2px,
    13.45px 0.3px,
    16px 0,
    calc(100% - 16px) 0,
    calc(100% - 13.45px) 0.3px,
    calc(100% - 11.13px) 1.2px,
    calc(100% - 9.05px) 2.7px,
    100% 100%,
    0 100%
  );
}
.frame-handle-bottom::before {
  clip-path: polygon(
    0 0,
    100% 0,
    calc(100% - 9.05px) calc(100% - 2.7px),
    calc(100% - 11.13px) calc(100% - 1.2px),
    calc(100% - 13.45px) calc(100% - 0.3px),
    calc(100% - 16px) 100%,
    16px 100%,
    13.45px calc(100% - 0.3px),
    11.13px calc(100% - 1.2px),
    9.05px calc(100% - 2.7px)
  );
}

/* dot grid above the top tab */
.frame-handle-top::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 46px;
  height: 12px;
  transform: translateX(-50%);
  top: -22px;
  background: radial-gradient(var(--black) 1.3px, transparent 1.5px) 0 0 / 6px
    6px;
}

.frame-handle-left,
.frame-handle-right {
  top: 50%;
  width: 9px;
  height: 170px;
  transform: translateY(-50%);
}
.frame-handle-left {
  left: -8px;
  clip-path: polygon(
    0 16px,
    0.27px 13.42px,
    1.07px 11.02px,
    2.4px 8.8px,
    100% 0,
    100% 100%,
    2.4px calc(100% - 8.8px),
    1.07px calc(100% - 11.02px),
    0.27px calc(100% - 13.42px),
    0 calc(100% - 16px)
  );
}
.frame-handle-right {
  right: -8px;
  clip-path: polygon(
    0 0,
    calc(100% - 2.4px) 8.8px,
    calc(100% - 1.07px) 11.02px,
    calc(100% - 0.27px) 13.42px,
    100% 16px,
    100% calc(100% - 16px),
    calc(100% - 0.27px) calc(100% - 13.42px),
    calc(100% - 1.07px) calc(100% - 11.02px),
    calc(100% - 2.4px) calc(100% - 8.8px),
    0 100%
  );
}

/* labels: small texts outside the corners (hidden while empty) */
.frame-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.frame-label:empty {
  display: none;
}
.frame-label-tr {
  top: -48px;
  right: 0;
}
.frame-label-bl {
  bottom: -48px;
  left: 0;
}
.frame-label-br {
  bottom: -48px;
  right: 0;
}

/* top-left label: the yellow "Coming soon" tag */
.frame-label-tl {
  top: -48px;
  left: 20px;
  padding: 5px 12px;
  isolation: isolate;
  background: var(--grey); /* border colour */
  font-family: var(--font-display);
  font-weight: 900;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}
/* the white inside, 1px smaller, same cuts */
.frame-label-tl::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--white);
  clip-path: polygon(
    9.41px 0,
    100% 0,
    100% calc(100% - 9.41px),
    calc(100% - 9.41px) 100%,
    0 100%,
    0 9.41px
  );
}
.label-stripes {
  width: 70px;
  height: 30px;
  background: repeating-linear-gradient(
    135deg,
    var(--black) 0 2px,
    transparent 2px 7px
  );
  opacity: 0.4;
}

/* text and dots in one centered row */
.label-tag {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

/* animated dots: "Coming soon .  ..  ..." */
.label-tag::after {
  content: "...";
  font-size: 26px;
  display: inline-block;
  width: 3ch;
  font-family: var(--font-mono);
  animation: loading-dots 1.6s steps(1, end) infinite;
  line-height: 1;
  margin: -0.35em 0; /* big dots don't make the row taller */
}

@keyframes loading-dots {
  0% {
    clip-path: inset(0 100% 0 0);
  } /* no dots */
  25% {
    clip-path: inset(0 66% 0 0);
  } /* . */
  50% {
    clip-path: inset(0 33% 0 0);
  } /* .. */
  75%,
  100% {
    clip-path: inset(0 0 0 0);
  } /* ... */
}

/* ---------- 4b. The screen: black border, white inside ---------- */
/* outer shape = the black border */
.frame-screen {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  /* top/bottom: header and footer start right at the white edge;
     left/right: the same --edge gap as above the logo and below the QR */
  padding: var(--border) calc(var(--border) + var(--edge));
  overflow: hidden;
  background: var(--black);
  color: var(--black);
  clip-path: polygon(
    calc(var(--cut) - 3.54px) 3.54px,
    calc(var(--cut) - 1.02px) 1.57px,
    calc(var(--cut) + 1.83px) 0.39px,
    calc(var(--cut) + 5px) 0,
    calc(100% - var(--cut) - 5px) 0,
    calc(100% - var(--cut) - 1.83px) 0.39px,
    calc(100% - var(--cut) + 1.02px) 1.57px,
    calc(100% - var(--cut) + 3.54px) 3.54px,
    calc(100% - 3.54px) calc(var(--cut) - 3.54px),
    calc(100% - 1.57px) calc(var(--cut) - 1.02px),
    calc(100% - 0.39px) calc(var(--cut) + 1.83px),
    100% calc(var(--cut) + 5px),
    100% calc(100% - var(--cut) - 5px),
    calc(100% - 0.39px) calc(100% - var(--cut) - 1.83px),
    calc(100% - 1.57px) calc(100% - var(--cut) + 1.02px),
    calc(100% - 3.54px) calc(100% - var(--cut) + 3.54px),
    calc(100% - var(--cut) + 3.54px) calc(100% - 3.54px),
    calc(100% - var(--cut) + 1.02px) calc(100% - 1.57px),
    calc(100% - var(--cut) - 1.83px) calc(100% - 0.39px),
    calc(100% - var(--cut) - 5px) 100%,
    calc(var(--cut) + 5px) 100%,
    calc(var(--cut) + 1.83px) calc(100% - 0.39px),
    calc(var(--cut) - 1.02px) calc(100% - 1.57px),
    calc(var(--cut) - 3.54px) calc(100% - 3.54px),
    3.54px calc(100% - var(--cut) + 3.54px),
    1.57px calc(100% - var(--cut) + 1.02px),
    0.39px calc(100% - var(--cut) - 1.83px),
    0 calc(100% - var(--cut) - 5px),
    0 calc(var(--cut) + 5px),
    0.39px calc(var(--cut) + 1.83px),
    1.57px calc(var(--cut) - 1.02px),
    3.54px calc(var(--cut) - 3.54px)
  );
}

/* inner shape = the white surface */
.frame-screen::before {
  content: "";
  position: absolute;
  inset: var(--border);
  border-radius: calc(var(--radius) - var(--border) / 2);
  background: var(--white);
  clip-path: polygon(
    calc(var(--cut) - 3.54px) 3.54px,
    calc(var(--cut) - 1.02px) 1.57px,
    calc(var(--cut) + 1.83px) 0.39px,
    calc(var(--cut) + 5px) 0,
    calc(100% - var(--cut) - 5px) 0,
    calc(100% - var(--cut) - 1.83px) 0.39px,
    calc(100% - var(--cut) + 1.02px) 1.57px,
    calc(100% - var(--cut) + 3.54px) 3.54px,
    calc(100% - 3.54px) calc(var(--cut) - 3.54px),
    calc(100% - 1.57px) calc(var(--cut) - 1.02px),
    calc(100% - 0.39px) calc(var(--cut) + 1.83px),
    100% calc(var(--cut) + 5px),
    100% calc(100% - var(--cut) - 5px),
    calc(100% - 0.39px) calc(100% - var(--cut) - 1.83px),
    calc(100% - 1.57px) calc(100% - var(--cut) + 1.02px),
    calc(100% - 3.54px) calc(100% - var(--cut) + 3.54px),
    calc(100% - var(--cut) + 3.54px) calc(100% - 3.54px),
    calc(100% - var(--cut) + 1.02px) calc(100% - 1.57px),
    calc(100% - var(--cut) - 1.83px) calc(100% - 0.39px),
    calc(100% - var(--cut) - 5px) 100%,
    calc(var(--cut) + 5px) 100%,
    calc(var(--cut) + 1.83px) calc(100% - 0.39px),
    calc(var(--cut) - 1.02px) calc(100% - 1.57px),
    calc(var(--cut) - 3.54px) calc(100% - 3.54px),
    3.54px calc(100% - var(--cut) + 3.54px),
    1.57px calc(100% - var(--cut) + 1.02px),
    0.39px calc(100% - var(--cut) - 1.83px),
    0 calc(100% - var(--cut) - 5px),
    0 calc(var(--cut) + 5px),
    0.39px calc(var(--cut) + 1.83px),
    1.57px calc(var(--cut) - 1.02px),
    3.54px calc(var(--cut) - 3.54px)
  );
}

/* ---------- 4c. Wallpaper ---------- */
.frame-wallpaper {
  position: absolute;
  inset: var(--border);
  z-index: 0;
  pointer-events: none;
  border-radius: calc(var(--radius) - var(--border) / 2);
  background: url("./background.png") center / cover no-repeat;
  clip-path: polygon(
    calc(var(--cut) - 3.54px) 3.54px,
    calc(var(--cut) - 1.02px) 1.57px,
    calc(var(--cut) + 1.83px) 0.39px,
    calc(var(--cut) + 5px) 0,
    calc(100% - var(--cut) - 5px) 0,
    calc(100% - var(--cut) - 1.83px) 0.39px,
    calc(100% - var(--cut) + 1.02px) 1.57px,
    calc(100% - var(--cut) + 3.54px) 3.54px,
    calc(100% - 3.54px) calc(var(--cut) - 3.54px),
    calc(100% - 1.57px) calc(var(--cut) - 1.02px),
    calc(100% - 0.39px) calc(var(--cut) + 1.83px),
    100% calc(var(--cut) + 5px),
    100% calc(100% - var(--cut) - 5px),
    calc(100% - 0.39px) calc(100% - var(--cut) - 1.83px),
    calc(100% - 1.57px) calc(100% - var(--cut) + 1.02px),
    calc(100% - 3.54px) calc(100% - var(--cut) + 3.54px),
    calc(100% - var(--cut) + 3.54px) calc(100% - 3.54px),
    calc(100% - var(--cut) + 1.02px) calc(100% - 1.57px),
    calc(100% - var(--cut) - 1.83px) calc(100% - 0.39px),
    calc(100% - var(--cut) - 5px) 100%,
    calc(var(--cut) + 5px) 100%,
    calc(var(--cut) + 1.83px) calc(100% - 0.39px),
    calc(var(--cut) - 1.02px) calc(100% - 1.57px),
    calc(var(--cut) - 3.54px) calc(100% - 3.54px),
    3.54px calc(100% - var(--cut) + 3.54px),
    1.57px calc(100% - var(--cut) + 1.02px),
    0.39px calc(100% - var(--cut) - 1.83px),
    0 calc(100% - var(--cut) - 5px),
    0 calc(var(--cut) + 5px),
    0.39px calc(var(--cut) + 1.83px),
    1.57px calc(var(--cut) - 1.02px),
    3.54px calc(var(--cut) - 3.54px)
  );
}

/* layers: wallpaper (0) → robot (1) → header, columns, footer (2) */
.frame-header,
.frame-footer,
.frame-left,
.frame-right {
  position: relative;
  z-index: 2;
}

/* ---------- 4d. Header ---------- */
.frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* fixed-height strip, so everything inside is centered in it */
  height: var(--header-band);
  flex-shrink: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.header-logo img {
  width: var(--logo-size);
  height: var(--logo-size);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-menu {
  display: flex;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* black tabs with cut corners, like on a control panel */
.header-menu a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  background: var(--black);
  color: var(--white);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  transition:
    background 0.2s,
    color 0.2s;
}
.header-menu a:hover {
  color: var(--yellow);
}

/* cart and profile: icon buttons with cut corners
   (the button itself is the black border, ::after is the fill) */
.header-cart,
.header-profile {
  position: relative;
  width: 44px;
  height: 44px;
  isolation: isolate;
  background: var(--black);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}
.header-cart::after,
.header-profile::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: var(--fill);
  clip-path: polygon(
    9.2px 0,
    100% 0,
    100% calc(100% - 9.2px),
    calc(100% - 9.2px) 100%,
    0 100%,
    0 9.2px
  );
  transition: background 0.2s;
}
.header-cart::before,
.header-profile::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: var(--black);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.header-profile::before {
  background: var(--white);
}

.header-cart {
  --fill: var(--white);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M3 4h3l2.5 11h10L21 7H7.2'/%3E%3Ccircle cx='10' cy='19.5' r='1.5'/%3E%3Ccircle cx='17' cy='19.5' r='1.5'/%3E%3C/svg%3E");
}
.header-profile {
  --fill: var(--black);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1-4.5 4-6.5 8-6.5s7 2 8 6.5'/%3E%3C/svg%3E");
}

.header-cart:hover,
.header-profile:hover {
  --fill: var(--yellow);
}
.header-profile:hover::before {
  background: var(--black);
}

/* ---------- 4e. Middle ---------- */
.frame-middle {
  flex: 1;
  min-height: 0;
  display: grid;
  /* side columns never narrower than their cards, so they keep their
     shape: left = founder card (300px), right = stats card
     (290px + 20px padding) */
  grid-template-columns: minmax(300px, 1fr) minmax(0, 1.15fr) minmax(310px, 1fr);
  gap: 32px;
  padding: 24px 0;
}

.frame-left,
.frame-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

/* the picture covers the whole white surface and cuts off
   whatever sticks out, so the robot can grow past the bottom */
.frame-picture {
  position: absolute;
  inset: var(--border);
  border-radius: calc(var(--radius) - var(--border) / 2);
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  clip-path: polygon(
    calc(var(--cut) - 3.54px) 3.54px,
    calc(var(--cut) - 1.02px) 1.57px,
    calc(var(--cut) + 1.83px) 0.39px,
    calc(var(--cut) + 5px) 0,
    calc(100% - var(--cut) - 5px) 0,
    calc(100% - var(--cut) - 1.83px) 0.39px,
    calc(100% - var(--cut) + 1.02px) 1.57px,
    calc(100% - var(--cut) + 3.54px) 3.54px,
    calc(100% - 3.54px) calc(var(--cut) - 3.54px),
    calc(100% - 1.57px) calc(var(--cut) - 1.02px),
    calc(100% - 0.39px) calc(var(--cut) + 1.83px),
    100% calc(var(--cut) + 5px),
    100% calc(100% - var(--cut) - 5px),
    calc(100% - 0.39px) calc(100% - var(--cut) - 1.83px),
    calc(100% - 1.57px) calc(100% - var(--cut) + 1.02px),
    calc(100% - 3.54px) calc(100% - var(--cut) + 3.54px),
    calc(100% - var(--cut) + 3.54px) calc(100% - 3.54px),
    calc(100% - var(--cut) + 1.02px) calc(100% - 1.57px),
    calc(100% - var(--cut) - 1.83px) calc(100% - 0.39px),
    calc(100% - var(--cut) - 5px) 100%,
    calc(var(--cut) + 5px) 100%,
    calc(var(--cut) + 1.83px) calc(100% - 0.39px),
    calc(var(--cut) - 1.02px) calc(100% - 1.57px),
    calc(var(--cut) - 3.54px) calc(100% - 3.54px),
    3.54px calc(100% - var(--cut) + 3.54px),
    1.57px calc(100% - var(--cut) + 1.02px),
    0.39px calc(100% - var(--cut) - 1.83px),
    0 calc(100% - var(--cut) - 5px),
    0 calc(var(--cut) + 5px),
    0.39px calc(var(--cut) + 1.83px),
    1.57px calc(var(--cut) - 1.02px),
    3.54px calc(var(--cut) - 3.54px)
  );
}
/* right column: the experience panel, on the right */
.frame-right {
  grid-column: 3; /* keeps its column now that the picture floats */
  align-items: flex-end;
}

/* robot size and position:
   height = how big it is,
   bottom = how far it sinks below the frame (the rest is hidden) */
.picture-img {
  position: absolute;
  z-index: 1;
  left: 50%;
  height: 140%;
  bottom: -35%;
  transform: translateX(-50%);
  width: auto;
  max-width: none;
}

/* ---------- 4f. Footer ---------- */
.frame-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* fixed-height strip, so everything inside is centered in it */
  height: var(--footer-band);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  --line: var(--grey);
  --fill: var(--white);
  position: relative;
  width: 44px;
  height: 44px;
  isolation: isolate;
  background: var(--line);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}

.footer-social a::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: var(--fill);
  clip-path: polygon(
    9.2px 0,
    100% 0,
    100% calc(100% - 9.2px),
    calc(100% - 9.2px) 100%,
    0 100%,
    0 9.2px
  );
  transition: background 0.2s;
}

.footer-social a::before {
  content: "";
  position: absolute;
  inset: 11px;
  background: var(--black);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* icons */
.footer-social a[aria-label="Facebook"] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8h3V4h-3c-2.8 0-5 2.2-5 5v2H7v4h2v9h4v-9h3l1-4h-4V9c0-.6.4-1 1-1z'/%3E%3C/svg%3E");
  --brand: #0866ff;
}
.footer-social a[aria-label="Instagram"] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='black' stroke='none'/%3E%3C/svg%3E");
  --brand: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}
.footer-social a[aria-label="YouTube"] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M23 7.2a3 3 0 0 0-2.1-2.1C19 4.6 12 4.6 12 4.6s-7 0-8.9.5A3 3 0 0 0 1 7.2C.5 9.1.5 12 .5 12s0 2.9.5 4.8a3 3 0 0 0 2.1 2.1c1.9.5 8.9.5 8.9.5s7 0 8.9-.5a3 3 0 0 0 2.1-2.1c.5-1.9.5-4.8.5-4.8s0-2.9-.5-4.8zM9.7 15.5v-7l6 3.5z'/%3E%3C/svg%3E");
  --brand: #ff0000;
}
.footer-social a[aria-label="X"] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.9 1.2h3.7l-8 9.2 9.4 12.5h-7.4l-5.8-7.6-6.6 7.6H.5l8.6-9.8L0 1.2h7.6l5.2 6.9zm-1.3 19.5h2L6.5 3.2H4.3z'/%3E%3C/svg%3E");
  --brand: #000000;
}

/* hover: each icon gets its own brand colour, icon turns white */
.footer-social a:hover {
  --line: var(--brand);
  --fill: var(--brand);
}
.footer-social a:hover::before {
  background: var(--white);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-menu {
  display: flex;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* black tabs with cut corners, same as the header menu */
.footer-menu a {
  --fill: var(--white);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  background: var(--grey); /* border colour */
  color: var(--black);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  transition: color 0.2s;
}
/* the white inside, 2px smaller, same cuts */
.footer-menu a::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: var(--fill);
  clip-path: polygon(
    8.83px 0,
    100% 0,
    100% calc(100% - 8.83px),
    calc(100% - 8.83px) 100%,
    0 100%,
    0 8.83px
  );
  transition: background 0.2s;
}

/* hover: yellow text, same as the header menu */
.footer-menu a:hover {
  background: var(--grey-mid);
  --fill: var(--black);
  color: var(--yellow);
}

/* selected page: yellow tab, black text */
.footer-menu a[aria-current="page"] {
  background: var(--yellow);
  color: var(--black);
}

/* ---------- 4g. ID card (QR) ---------- */
/* square card inside the footer strip: just the QR code in brackets.
   Its size is --qr-size */
.id-card {
  --id-size: var(--qr-size);
  --bracket: var(--black);
  position: relative;
  flex-shrink: 0;
  width: var(--id-size);
  height: var(--id-size);
  padding: calc(var(--id-size) * 0.12);
  /* matte, see-through grey */
  background: rgba(213, 215, 218, 0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}
.id-card:hover {
  background: rgba(213, 215, 218, 0.8);
}

/* four corner brackets */
.id-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  --l: 10%; /* bracket length */
  --t: 1px; /* bracket thickness */
  background:
    linear-gradient(var(--bracket) 0 0) top left / var(--l) var(--t),
    linear-gradient(var(--bracket) 0 0) top left / var(--t) var(--l),
    linear-gradient(var(--bracket) 0 0) top right / var(--l) var(--t),
    linear-gradient(var(--bracket) 0 0) top right / var(--t) var(--l),
    linear-gradient(var(--bracket) 0 0) bottom left / var(--l) var(--t),
    linear-gradient(var(--bracket) 0 0) bottom left / var(--t) var(--l),
    linear-gradient(var(--bracket) 0 0) bottom right / var(--l) var(--t),
    linear-gradient(var(--bracket) 0 0) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
}

.id-qr {
  width: 100%;
  height: 100%;
}

/* ---------- 4h. Big screens: the whole page scales up ----------
   Above the design size (set in script.js) the page is laid out at
   the design size and then enlarged as one piece, so a 4K screen
   shows exactly the same design, just bigger. */
html.is-scaled {
  --screen-h: calc(100vh / var(--zoom));
  overflow: hidden;
}
html.is-scaled body {
  min-width: 0;
  width: calc(100vw / var(--zoom));
  height: var(--screen-h);
  transform: scale(var(--zoom));
  transform-origin: 0 0;
}

/* =========================================================
   5. KEYBOARD FOCUS
   ========================================================= */
a:focus-visible,
button:focus-visible {
  outline: none;
}

/* =========================================================
   6. SMALLER SCREENS
   ========================================================= */

/* =========================================================
   7. FOUNDER'S MESSAGE CARD (left column of the screen)
   ========================================================= */
.founder {
  position: relative;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  /* frosted glass */
  background: rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  /* whitish glass edge */
  --cut: 14px; /* size of the corner cuts */
  --bw: 2px; /* edge thickness */
  clip-path: polygon(
    var(--cut) 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut)),
    0 var(--cut)
  );
}

.founder::before {
  --in: calc(var(--cut) - var(--bw) * 0.586);
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--grey-mid);
  clip-path: polygon(
    evenodd,
    var(--cut) 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut)),
    0 var(--cut),
    var(--cut) 0,
    calc(var(--bw) + var(--in)) var(--bw),
    calc(100% - var(--bw) - var(--in)) var(--bw),
    calc(100% - var(--bw)) calc(var(--bw) + var(--in)),
    calc(100% - var(--bw)) calc(100% - var(--bw) - var(--in)),
    calc(100% - var(--bw) - var(--in)) calc(100% - var(--bw)),
    calc(var(--bw) + var(--in)) calc(100% - var(--bw)),
    var(--bw) calc(100% - var(--bw) - var(--in)),
    var(--bw) calc(var(--bw) + var(--in)),
    calc(var(--bw) + var(--in)) var(--bw)
  );
}

/* header: yellow tag, online light, age clock */
.founder-head {
  display: flex;
  align-items: stretch;
  gap: 5px;
  height: 18px;
}
.founder-tag {
  display: flex;
  align-items: center;
  padding: 0 8px;
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(
    6px 0,
    100% 0,
    100% calc(100% - 6px),
    calc(100% - 6px) 100%,
    0 100%,
    0 6px
  );
}
/* online light: yellow dot in a black square, glowing on and off */
.founder-online {
  position: relative;
  flex-shrink: 0;
  align-self: center;
  margin-left: auto; /* pushes the light + clock to the right */
  width: 12px;
  height: 12px;
  background: var(--black);
}
.founder-online::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--yellow);
  animation: online-glow 2s ease-in-out infinite;
}
@keyframes online-glow {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 5px 1px rgba(254, 221, 0, 0.9);
  }
  50% {
    opacity: 0.35;
    box-shadow: 0 0 0 0 rgba(254, 221, 0, 0);
  }
}

/* age clock: time since AI Law was founded */
.founder-clock {
  display: flex;
  align-items: center;
  padding: 0 6px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  clip-path: polygon(
    0 0,
    calc(100% - 6px) 0,
    100% 6px,
    100% 100%,
    6px 100%,
    0 calc(100% - 6px)
  );
}

/* photo + name */
.founder-id {
  display: flex;
  align-items: center;
  gap: 14px;
}

.founder-photo {
  position: relative;
  flex-shrink: 0;
  width: 88px;
  height: auto;
}
/* grey offset frame behind the photo */
.founder-photo::before {
  content: "";
  position: absolute;
  inset: 5px -5px -5px 5px;
  background: var(--grey-mid);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}
.founder-photo img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}

.founder-who {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.founder-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
}
.founder-role {
  align-self: flex-start;
  text-align: justify;
  text-align-last: justify;
  padding: 2px 6px;
  line-height: 1.4;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* the message: thin yellow bar on the left, like a quote */
.founder-text {
  padding-left: 10px;
  border-left: 2px solid var(--yellow);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: var(--black);
  text-align: justify;
}

/* =========================================================
   8. MUSIC (bottom of the page, below the frame)
   First a 3D track carousel; once a track is picked,
   the player takes its place. Desktop only.
   ========================================================= */
.music {
  position: absolute;
  z-index: 2;
  left: 50%;
  /* halfway between the frame's bottom handle and the page's bottom handle */
  bottom: calc((var(--page-pad) + 8px) / 2);
  transform: translate(-50%, 50%);
  transform-origin: 50% 50%;
}

/* the SoundCloud player itself stays invisible */
.music-sc {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* ---------- carousel ---------- */
.car {
  display: flex;
  align-items: center;
  gap: 6px;
}
.car.is-hidden {
  display: none;
}
.car-stage {
  position: relative;
  width: 470px;
  height: 78px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.cc {
  --a: max(var(--k), -1 * var(--k)); /* distance from the center */
  position: absolute;
  left: 50%;
  top: 8px;
  width: 132px;
  height: 54px;
  margin-left: -66px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 0;
  text-align: left;
  cursor: pointer;
  /* each card has its own perspective, so every card stays clickable */
  transform: perspective(700px) translateX(calc(var(--k) * 118px))
    translateZ(calc(var(--a) * -90px)) rotateY(calc(var(--k) * -38deg));
  z-index: calc(10 - var(--a));
  opacity: max(0, calc(1 - var(--a) * 0.32));
  /* side cards: the track's artwork, faded under a light glass layer */
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.72),
      rgba(213, 215, 218, 0.6)
    ),
    var(--art, none) center / cover,
    rgba(213, 215, 218, 0.55);
  filter: grayscale(0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  box-shadow: inset 0 0 0 1px rgba(11, 11, 12, 0.25);
  transition:
    transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1),
    opacity 0.45s,
    background 0.3s;
}
/* faint scan lines on every card */
.cc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(11, 11, 12, 0.05) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
}
.cc-t {
  font: 700 10px var(--font-display);
  letter-spacing: 1px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--black);
}
.cc-w {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.cc-w i {
  flex: 1;
  height: calc(var(--h) * 100%);
  background: rgba(11, 11, 12, 0.35);
}
/* the card in front */
.cc.is-active {
  z-index: 10;
  /* front card: the artwork in full colour; a soft shade behind the title */
  background:
    linear-gradient(
      180deg,
      rgba(11, 11, 12, 0.55),
      rgba(11, 11, 12, 0) 55%,
      rgba(11, 11, 12, 0.35)
    ),
    var(--art, none) center / cover,
    #0b0b0c;
  filter: none;
  box-shadow:
    inset 0 0 0 1px var(--yellow),
    0 0 18px rgba(255, 106, 19, 0.45);
}
.cc.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px;
  right: 0;
  height: 2px;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}
.cc.is-active .cc-t {
  color: var(--yellow);
  text-shadow: 0 3px 3px rgba(11, 11, 12);
}
.cc.is-active .cc-w i {
  background: var(--yellow);
}
/* angled arrow keys */
.car-arrow {
  position: relative;
  width: 26px;
  height: 44px;
  border: 0;
  background: var(--black);
  cursor: pointer;
  transition: background 0.2s;
}
.car-l {
  clip-path: polygon(100% 0, 100% 100%, 0 70%, 0 30%);
}
.car-r {
  clip-path: polygon(0 0, 100% 30%, 100% 70%, 0 100%);
}
.car-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border: solid var(--yellow);
  border-width: 0 0 2px 2px;
  transform: translate(-30%, -50%) rotate(45deg);
}
.car-r::before {
  transform: translate(-70%, -50%) rotate(-135deg);
}
.car-arrow:hover {
  background: #2a2a2e;
}

/* ---------- scrolling titles ----------
   A title that is wider than its space slides left and back,
   like on a music player. (script.js marks those with .is-long) */
.cc-t,
.w-title {
  overflow: hidden;
  white-space: nowrap;
}
.mq {
  display: inline-block;
}
/* long titles fade out at the edge instead of being cut sharply */
.is-long {
  -webkit-mask: linear-gradient(90deg, #000 85%, transparent);
  mask: linear-gradient(90deg, #000 85%, transparent);
}
/* the title slides only on the front card and in the player */
.cc.is-active .is-long,
.w-title.is-long {
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.cc.is-active .is-long .mq,
.w-title.is-long .mq {
  animation: marquee var(--dur, 6s) ease-in-out infinite alternate;
}
@keyframes marquee {
  0%,
  5% {
    transform: translateX(0);
  }
  95%,
  100% {
    transform: translateX(var(--shift, 0));
  }
}

/* ---------- player ---------- */
.ply {
  --ply-w: 490px; /* full width of the player: both wings + the round core */
  display: flex;
  align-items: center;
}
.ply[hidden] {
  display: none;
}
.wing {
  position: relative;
  height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  /* one artwork picture stretched across the whole player:
     every part shows its own slice of the same image */
  background:
    linear-gradient(180deg, rgba(11, 11, 12, 0.25), rgba(11, 11, 12, 0.55)),
    var(--art, none) var(--slice, 0) center / var(--ply-w) auto no-repeat,
    #0b0b0c;
  text-shadow: 0 1px 3px rgba(11, 11, 12, 0.9);
  color: var(--black);
  font-weight: 700;
}
/* glowing yellow top edge */
.wing::before {
  content: "";
  position: absolute;
  top: 0;
  height: 2px;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}
.wing-l {
  --slice: 0;
  width: 230px;
  padding: 0 30px 0 16px;
  margin-right: -18px;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 18px) 100%, 0 100%, 0 12px);
}
.wing-l::before {
  left: 12px;
  right: 0;
}
.wing-r {
  --slice: 100%;
  width: 200px;
  padding: 0 16px 0 34px;
  margin-left: -18px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 18px 100%);
}
.wing-r::before {
  left: 0;
  right: 12px;
}
.w-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.w-tag {
  text-shadow: none;
  padding: 1px 5px;
  background: var(--yellow);
  color: var(--black);
  font: 900 7px var(--font-display);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.w-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grey-mid);
}
.music.is-playing .w-live {
  background: var(--yellow);
  box-shadow: 0 0 6px 1px var(--yellow);
  animation: online-glow 2s ease-in-out infinite;
}
.w-title {
  font: 700 12px var(--font-display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
/* segmented progress bar, click to jump */
.w-bar {
  height: 3px;
  cursor: pointer;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.25) 0 6px,
    transparent 6px 8px
  );
}
.w-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 6px,
    transparent 6px 8px
  );
  box-shadow: 0 0 6px rgba(255, 106, 19, 0.6);
}
.w-time {
  display: flex;
  justify-content: space-between;
  font: 9px var(--font-mono);
  letter-spacing: 1px;
  color: var(--grey-mid);
}
.w-time span:first-child {
  color: var(--white);
}

/* round play/pause core with a segmented progress ring */
.hub {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
}
.hub-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hub-ring path {
  fill: rgba(11, 11, 12, 0.25);
}
.hub-ring path.on {
  fill: var(--yellow);
  filter: drop-shadow(0 0 2px rgba(255, 106, 19, 0.9));
}
.hub-dash {
  fill: none;
  stroke: var(--black);
  stroke-width: 0.6;
  stroke-dasharray: 1 3;
  transform-origin: 50% 50%;
}
.music.is-playing .hub-dash {
  animation: hub-spin 12s linear infinite;
}
@keyframes hub-spin {
  to {
    transform: rotate(360deg);
  }
}
.hub-btn {
  position: absolute;
  inset: 18px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  /* round core: its own slice of the same artwork picture */
  background:
    radial-gradient(circle, rgba(11, 11, 12, 0.45), rgba(11, 11, 12, 0.2) 70%),
    var(--art, none) -230px center / var(--ply-w) auto no-repeat,
    #0b0b0c;
  box-shadow:
    0 0 0 2px var(--black),
    0 0 0 4px rgba(255, 106, 19, 0.35),
    0 6px 16px rgba(11, 11, 12, 0.4);
}
/* play triangle (paused) / pause bars (playing) */
.hub-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 20px;
  margin-left: calc(50% - 7px);
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  filter: drop-shadow(0 0 4px rgba(255, 106, 19, 0.8));
}
.music.is-playing .hub-btn::before {
  width: 16px;
  height: 18px;
  margin: auto;
  clip-path: polygon(
    0 0,
    35% 0,
    35% 100%,
    0 100%,
    0 0,
    65% 0,
    100% 0,
    100% 100%,
    65% 100%,
    65% 0
  );
}

.w-ctrl {
  display: flex;
  gap: 6px;
}
.wb {
  position: relative;
  width: 30px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: none;
  cursor: pointer;
  clip-path: polygon(
    5px 0,
    100% 0,
    100% calc(100% - 5px),
    calc(100% - 5px) 100%,
    0 100%,
    0 5px
  );
  transition: background 0.2s;
}
.wb::before {
  content: "";
  position: absolute;
  inset: 5px 8px;
  background: var(--white);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.wb:hover {
  background: var(--yellow);
}
.wb:hover::before {
  background: var(--black);
}
.wb-prev {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h3v16H5zM21 4v16L9 12z'/%3E%3C/svg%3E");
}
.wb-next {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 4h3v16h-3zM3 4v16l12-8z'/%3E%3C/svg%3E");
}

/* repeat: filled yellow while it's on */
.wb-repeat {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M4 11V8h14M15 4l4 4-4 4M20 13v3H6M9 20l-4-4 4-4'/%3E%3C/svg%3E");
}
.wb-repeat:hover {
  background: var(--yellow);
}
.wb-repeat.is-on,
.wb-repeat.is-on:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}
.wb-repeat.is-on::before {
  background: var(--black);
}

/* back to the track list: an "eject" key in yellow */
.wb-list {
  margin-left: auto;
  background: var(--yellow);
  border-color: var(--yellow);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 22 15H2zM2 18h20v3H2z'/%3E%3C/svg%3E");
}

.wb-list::before {
  background: var(--black);
}
/* hover: the eject symbol turns yellow */
.wb-list:hover::before {
  background: var(--yellow);
}

/* mute: equalizer bars that dance while sound is on */
.w-mute {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.w-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.w-eq i {
  width: 3px;
  height: 20%;
  background: var(--yellow);
  box-shadow: 0 0 4px rgba(255, 106, 19, 0.7);
}
.music.is-playing:not(.is-muted) .w-eq i {
  animation: eq 0.9s ease-in-out infinite alternate;
}
.w-eq i:nth-child(2) {
  animation-delay: -0.3s !important;
}
.w-eq i:nth-child(3) {
  animation-delay: -0.6s !important;
}
.w-eq i:nth-child(4) {
  animation-delay: -0.15s !important;
}
.w-eq i:nth-child(5) {
  animation-delay: -0.45s !important;
}
@keyframes eq {
  0% {
    height: 20%;
  }
  50% {
    height: 100%;
  }
  100% {
    height: 45%;
  }
}
.music.is-muted .w-eq i {
  background: var(--grey-mid);
  box-shadow: none;
}
.w-mute-label {
  font: 9px var(--font-mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-mid);
}
.w-mute:hover .w-mute-label {
  color: var(--white);
}

/* =========================================================
   9. EXPERIENCE PANEL (right column of the screen)
   A light grey bezel with cut corners around a dark panel:
   a black title strip, then four rows, each in its own holder
   (icon, label, number, segmented level bar).
   Linked to the founder's card by one line that splits into
   four, one per row (drawn in script.js).
   Under 1100px it sits below the founder's card, and the lines
   run down from the card into it.
   ========================================================= */
/* soft shadow under the cut shape (clip-path cuts off box-shadow,
   so the shadow is drawn by the column around it) */
.frame-right {
  filter: drop-shadow(0 10px 22px rgba(11, 11, 12, 0.28));
}

/* outer shape = the grey bezel.
   --cut-l: big cuts (top-left, bottom-right)
   --cut-s: small cuts (top-right, bottom-left)
   --bz:    bezel thickness */
.stats {
  --cut-l: 20px;
  --cut-s: 9px;
  --bz: 2px;
  position: relative;
  width: 290px;
  max-width: 100%;
  padding: var(--bz);
  color: var(--white);
  background: var(--grey-mid);
  clip-path: polygon(
    var(--cut-l) 0,
    calc(100% - var(--cut-s)) 0,
    100% var(--cut-s),
    100% calc(100% - var(--cut-l)),
    calc(100% - var(--cut-l)) 100%,
    var(--cut-s) 100%,
    0 calc(100% - var(--cut-s)),
    0 var(--cut-l)
  );
}

/* inner shape = the dark panel (same cuts, a little smaller,
   so the bezel is equally thick on the slanted edges too) */
.stats-body {
  --in-l: calc(var(--cut-l) - var(--bz) * 0.586);
  --in-s: calc(var(--cut-s) - var(--bz) * 0.586);
  padding-bottom: 10px;
  background: linear-gradient(160deg, #141416, #0b0b0c 70%);
  clip-path: polygon(
    var(--in-l) 0,
    calc(100% - var(--in-s)) 0,
    100% var(--in-s),
    100% calc(100% - var(--in-l)),
    calc(100% - var(--in-l)) 100%,
    var(--in-s) 100%,
    0 calc(100% - var(--in-s)),
    0 var(--in-l)
  );
}

/* title strip: yellow tag + yellow stripes, thin line under it */
.stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 9px calc(var(--in-l) + 2px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.stats-tag {
  display: flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(
    6px 0,
    100% 0,
    100% calc(100% - 6px),
    calc(100% - 6px) 100%,
    0 100%,
    0 6px
  );
}
.stats-head::after {
  content: "";
  flex-shrink: 0;
  width: 34px;
  height: 8px;
  background: repeating-linear-gradient(
    135deg,
    var(--yellow) 0 2px,
    transparent 2px 5px
  );
}

/* the four rows, each in its own holder */
.stats-list {
  list-style: none;
  margin: 0;
  padding: 10px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Each holder is drawn in two layers, so the thin edge also runs
   along the cut corners:
   the row itself  = the edge colour, cut to shape
   ::before        = the fill, 1px smaller, with the same cuts
   (a 45° cut gets 0.59px shorter on the inner layer, so the edge
   is exactly 1px thick on the slant too).
   --cut-tl / --cut-br = size of the top-left / bottom-right cut */
.stat {
  --cut-tl: 7px;
  --cut-br: 0px;
  --line: #333336; /* edge */
  --fill: #1b1b1d; /* inside */
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  column-gap: 10px;
  padding: 9px 10px 9px;
  background: var(--line);
  clip-path: polygon(
    var(--cut-tl) 0,
    100% 0,
    100% calc(100% - var(--cut-br)),
    calc(100% - var(--cut-br)) 100%,
    0 100%,
    0 var(--cut-tl)
  );
}
.stat::before {
  --in-tl: max(0px, calc(var(--cut-tl) - 0.59px));
  --in-br: max(0px, calc(var(--cut-br) - 0.59px));
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--fill);
  clip-path: polygon(
    var(--in-tl) 0,
    100% 0,
    100% calc(100% - var(--in-br)),
    calc(100% - var(--in-br)) 100%,
    0 100%,
    0 var(--in-tl)
  );
}
/* last row (Fixed price): bottom-right cut too, matching the card */
.stat:last-child {
  --cut-br: 12px;
}

/* small icon key with cut corners, drawn the same two-layer way:
   the key = edge, ::after = fill, ::before = the icon on top */
.stat-ico {
  --cut: 6px;
  --in: calc(var(--cut) - 0.59px);
  position: relative;
  isolation: isolate;
  grid-row: span 2;
  width: 26px;
  height: 26px;
  background: #5b5b5e; /* edge */
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}
.stat-ico::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: #29292b; /* inside */
  clip-path: polygon(
    var(--in) 0,
    100% 0,
    100% calc(100% - var(--in)),
    calc(100% - var(--in)) 100%,
    0 100%,
    0 var(--in)
  );
}
.stat-ico::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--yellow);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.stat-litigation {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M13 3l7 7M9 7l7 7M11 5l-4 4 7 7 4-4M10 12l-7 7 2 2 7-7M13 21h8'/%3E%3C/svg%3E");
}
.stat-business {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M5 21V5l7-3 7 3v16M2 21h20M10 21v-5h4v5M9 8h1M14 8h1M9 12h1M14 12h1'/%3E%3C/svg%3E");
}
.stat-online {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='square'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.stat-price {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M3 3h9l9 9-9 9-9-9z'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3C/svg%3E");
}

.stat-label {
  font: 10px/1.25 var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}

.stat-num {
  font: 900 17px/1 var(--font-display);
  letter-spacing: 1px;
  color: var(--white);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stat-num b {
  font-weight: 900;
}
.stat-num em {
  font-style: normal;
  color: var(--white);
}

/* segmented level bar under the label and number */
.stat-bar {
  grid-column: 2 / -1;
  margin-top: 7px;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2) 0 6px,
    transparent 6px 8px
  );
}
.stat-bar::before {
  content: "";
  display: block;
  width: calc(var(--p, 1) * 100%);
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 6px,
    transparent 6px 8px
  );
  animation: stat-fill 1.6s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}
.stat:nth-child(2) .stat-bar::before {
  animation-delay: 0.15s;
}
.stat:nth-child(3) .stat-bar::before {
  animation-delay: 0.3s;
}
.stat:nth-child(4) .stat-bar::before {
  animation-delay: 0.45s;
}
@keyframes stat-fill {
  from {
    width: 0;
  }
}

/* ---------- the thin lines ---------- */
.links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* same layer as the robot, but under it */
  pointer-events: none;
  overflow: visible;
}
.links .ln {
  fill: none;
  stroke: var(--grey-mid);
  stroke-width: 1.5;
  stroke-linejoin: miter;
}
/* little yellow "electrons" travelling from the card to the panel */
/* little yellow "electrons" travelling from the card to the panel.
   --dot = dot length, --gap = space between dots (per line below) */
.links .ln-flow {
  --dot: 3px;
  --gap: 14px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.5;
  stroke-dasharray: var(--dot) var(--gap);
  animation: link-flow 1.4s linear infinite;
}
/* each line its own spacing: smaller gap = more dots */
.links .ln-flow:nth-of-type(2) {
  --gap: 20px;
} /* line 1 */
.links .ln-flow:nth-of-type(4) {
  --gap: 9px;
} /* line 2 */
.links .ln-flow:nth-of-type(6) {
  --gap: 28px;
} /* line 3 */
.links .ln-flow:nth-of-type(8) {
  --gap: 13px;
} /* line 4 */

@keyframes link-flow {
  to {
    stroke-dashoffset: calc(-1 * (var(--dot) + var(--gap)));
  }
}
.links .node-out,
.links .plug,
.links .chip {
  fill: var(--grey-mid);
}
.links .plug-in {
  fill: var(--yellow);
}
.links .node-in {
  fill: var(--yellow);
}
.links .chip-pin {
  fill: var(--grey-mid);
}
.links .chip-mark {
  fill: var(--yellow);
}
.links .chip-label {
  fill: var(--black);
  font: 12px var(--font-display);
  letter-spacing: 1px;
}
/* round vias at the ends of the dead-end traces */
.links .via {
  fill: var(--white);
  stroke: var(--black);
  stroke-width: 1.5;
}

/* =========================================================
   10. SERVICE PICKER (left) + PRICE GAUGE (right)
   Two slim panels in the same style as the Track record card:
   light bezel, dark body, cut corners.
   Left:  one key per service; the yellow brackets glide to the
          chosen one, its name shows in the strip beside them.
   Right: a segmented tube that fills up to the chosen price
          (the most expensive service = full), one tick per
          service's price, and a digital price readout.
   Desktop only.
   ========================================================= */
.svc {
  --panel-h: 420px; /* panel height */
  --pad: 14px; /* free space above the first / below the last key */
  --side: clamp(16px, 2vw, 40px); /* distance from the page edge */
  --cut-l: 14px; /* big cuts */
  --cut-s: 7px; /* small cuts */
  --bz: 2px; /* bezel thickness */
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 76px;
  height: var(--panel-h);
  transform: translateY(-50%);
  /* soft shadow under the cut shape */
  filter: drop-shadow(0 10px 22px rgba(11, 11, 12, 0.28));
  font-family: var(--font-mono);
  color: var(--white);
}
/* left panel: big cuts top-left / bottom-right (like the stats card),
   right panel: mirrored */
.svc-l {
  left: var(--side);
  --a: var(--cut-l);
  --b: var(--cut-s);
}
.svc-r {
  right: var(--side);
  --a: var(--cut-s);
  --b: var(--cut-l);
}

/* outer shape = light bezel */
.svc-frame {
  height: 100%;
  padding: var(--bz);
  background: var(--grey);
  clip-path: polygon(
    var(--a) 0,
    calc(100% - var(--b)) 0,
    100% var(--b),
    100% calc(100% - var(--a)),
    calc(100% - var(--a)) 100%,
    var(--b) 100%,
    0 calc(100% - var(--b)),
    0 var(--a)
  );
}
/* inner shape = dark body */
.svc-body {
  --ia: calc(var(--a) - var(--bz) * 0.586);
  --ib: calc(var(--b) - var(--bz) * 0.586);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #141416, #0b0b0c 70%);
  clip-path: polygon(
    var(--ia) 0,
    calc(100% - var(--ib)) 0,
    100% var(--ib),
    100% calc(100% - var(--ia)),
    calc(100% - var(--ia)) 100%,
    var(--ib) 100%,
    0 calc(100% - var(--ib)),
    0 var(--ia)
  );
}

/* title strip and foot strip */
.svc-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-head {
  padding: 11px 4px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.svc-tag {
  display: flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  background: var(--yellow);
  color: var(--black);
  font: 900 7.5px var(--font-display);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(
    5px 0,
    100% 0,
    100% calc(100% - 5px),
    calc(100% - 5px) 100%,
    0 100%,
    0 5px
  );
}

/* ---------- left: arrow keys + the service name ---------- */
.svc-mid {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
/* angled arrow keys, like the music carousel's */
.svc-arrow {
  position: relative;
  flex-shrink: 0;
  height: 22px;
  padding: 0;
  border: 0;
  background: #29292b;
  cursor: pointer;
  transition: background 0.2s;
}
.svc-up {
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}
.svc-down {
  clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%);
}
.svc-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border: solid var(--white);
  border-width: 0 0 2px 2px;
  transition: border-color 0.2s;
}
.svc-up::before {
  transform: translate(-50%, -25%) rotate(135deg);
}
.svc-down::before {
  transform: translate(-50%, -75%) rotate(-45deg);
}
.svc-arrow:hover,
.svc-arrow:focus-visible {
  outline: none;
  background: #3a3a3e;
}
.svc-arrow:hover::before,
.svc-arrow:focus-visible::before {
  border-color: var(--yellow);
}

/* the chosen service's name, read bottom to top */
.svc-name {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px 8px;
  background: #1b1b1d;
  box-shadow: inset 0 0 0 1px #333336;
  color: var(--white);
  font: 700 16px/1.35 var(--font-display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  clip-path: polygon(
    0 0,
    calc(100% - 6px) 0,
    100% 6px,
    100% 100%,
    6px 100%,
    0 calc(100% - 6px)
  );
}

.svc-name.is-new span {
  animation: svc-in 0.4s ease-out;
}
@keyframes svc-in {
  from {
    opacity: 0;
    filter: blur(3px);
  }
}

/* ---------- right: the gauge ---------- */
.svc-gauge {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 8px 6px;
}
/* the tube: dark holder with faint empty segments */
.svc-tube {
  position: absolute;
  top: calc(var(--pad) - 3px);
  bottom: calc(var(--pad) - 3px);
  right: 6px;
  width: 14px;
  padding: 3px;
  background:
    repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.08) 0 4px,
        transparent 4px 6px
      )
      content-box,
    #1b1b1d;
  box-shadow: inset 0 0 0 1px #333336;
}
/* the yellow level inside the tube */
.svc-fill {
  position: absolute;
  bottom: var(--pad);
  right: 9px;
  width: 8px;
  height: calc((100% - var(--pad) * 2) * var(--p, 0));
  background: repeating-linear-gradient(
    0deg,
    var(--yellow) 0 4px,
    transparent 4px 6px
  );
  filter: drop-shadow(0 0 3px rgba(255, 106, 19, 0.8));
  transition: height 0.6s cubic-bezier(0.3, 0.7, 0.2, 1);
}
/* level line across the tube */
.svc-r .svc-cursor {
  position: absolute;
  left: 0;
  right: 2px;
  bottom: calc(var(--pad) + (100% - var(--pad) * 2) * var(--p, 0));
  height: 2px;
  transform: translateY(50%);
  background: var(--yellow);
  box-shadow: 0 0 6px var(--yellow);
  pointer-events: none;
  transition: bottom 0.6s cubic-bezier(0.3, 0.7, 0.2, 1);
}
/* small arrow at its left end */
.svc-r .svc-cursor::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 6px;
  height: 8px;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* price ticks: one per service, at the height of its price;
   click one to pick that service */
.svc-marks {
  position: absolute;
  top: var(--pad);
  bottom: var(--pad);
  left: 0;
  width: 24px;
}
.svc-mark {
  position: absolute;
  right: 0;
  bottom: calc(var(--m) * 100%);
  transform: translateY(50%);
  width: 24px;
  height: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.svc-mark::before {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;
  width: 10px;
  height: 2px;
  background: #5b5b5e;
  transition:
    width 0.2s,
    background 0.2s;
}
.svc-mark:hover::before {
  width: 16px;
  background: var(--white);
}
.svc-mark.is-active::before {
  width: 16px;
  background: var(--yellow);
}

/* digital price readout */
.svc-read {
  --cut: 7px; /* NEW: corner size */
  --in: calc(var(--cut) - 0.59px); /* NEW: inner layer's corner size */
  position: relative; /* NEW */
  isolation: isolate; /* NEW */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 0 6px 8px;
  padding: 8px 2px 7px; /* was 7px 2px 6px */
  background: #5b5b5e; /* was #000 — now the edge colour */
  /* box-shadow line removed */
  clip-path: polygon(
    /* was 2 cut corners, now 4 */ var(--cut) 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut)),
    0 var(--cut)
  );
}

/* NEW: the black inside, 1px smaller, same shape */
.svc-read::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: #000;
  clip-path: polygon(
    var(--in) 0,
    calc(100% - var(--in)) 0,
    100% var(--in),
    100% calc(100% - var(--in)),
    calc(100% - var(--in)) 100%,
    var(--in) 100%,
    0 calc(100% - var(--in)),
    0 var(--in)
  );
}
.svc-read b {
  font: 900 16px/1 var(--font-display);
  letter-spacing: 0.5px;
  color: var(--white);
  text-shadow: 0 0 6px rgba(255, 106, 19, 0.6);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* =========================================================
   RESPONSIVE RULES
   ========================================================= */

@media (min-width: 1101px) {
  /* desktop footer: social icons left, menu in the middle, QR right, one row */
  .frame-footer {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "social . menu qr";
    align-items: center;
  }
  /* lets the menu and QR be placed on their own */
  .footer-right {
    display: contents;
  }
  .footer-social {
    grid-area: social;
    justify-self: start;
  }
  .footer-menu {
    grid-area: menu;
  }
  .id-card {
    grid-area: qr;
    justify-self: end;
  }
}

@media (max-width: 1100px) {
  /* step 1 — tablets and small laptops: the founder card moves
     to the center, in front of the robot, with the stats card
     right below it; the desktop-only parts are hidden; the
     "Coming soon" tag gets shorter stripes so it keeps clear
     of the top handle */
  .frame-middle {
    grid-template-columns: minmax(0, 1fr);
    /* room between the two cards for the lines that link them */
    gap: 180px;
    /* grows with the two stacked cards instead of cutting them off */
    min-height: auto;
  }
  .frame-left {
    align-items: center;
  }
  .frame-right {
    grid-column: 1;
    align-items: center;
    padding-right: 0;
  }
  /* same width as the founder card */
  .stats {
    width: 100%;
    max-width: 340px;
  }
  /* the lines now run down from the founder's card into the
     stats card, in front of the robot (cards stay on top) */
  .links {
    z-index: 2;
  }
  /* desktop-only parts: side rulers, music */
  .svc,
  .music {
    display: none;
  }
  .label-stripes {
    width: 36px;
  }

  /* footer goes multi-row already here (the "E-Commerce" tab
     no longer fits in one row): menu, then social icons, then QR */
  .frame-footer {
    flex-direction: column;
    height: auto;
    gap: 16px;
    padding: var(--edge) 0;
  }
  /* lets the menu and QR be ordered together with the icons */
  .footer-right {
    display: contents;
  }
  .footer-menu {
    order: 1;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-social {
    order: 2;
  }
  /* menu and social icons span the full width, like the header */
  .footer-menu,
  .footer-social {
    width: 100%;
  }
  .footer-social a {
    flex: 1;
  }
  /* tabs grow from their text width, so "E-Commerce" stays on one line */
  .footer-menu a {
    flex: 1 1 auto;
    justify-content: center;
    white-space: nowrap;
  }
  .id-card {
    order: 3;
  }
}

@media (max-width: 900px) {
  /* step 2 — below 900: the header goes multi-row.
     Header: logo left + cart and profile right on one row,
     the menu on its own row below, edge to edge with them.
     (The footer already went multi-row at 1100.) The frame
     grows taller when needed and the page scrolls. */
  .frame-header {
    flex-wrap: wrap;
    height: auto;
    gap: 16px 12px;
    padding: var(--edge) 0;
  }
  .header-right {
    display: contents;
  }
  .header-cart {
    margin-left: auto;
  }
  .header-menu {
    order: 1;
    width: 100%;
  }
  /* the tabs share the full row */
  .header-menu a {
    flex: 1;
    justify-content: center;
  }

  .frame-middle {
    min-height: 420px;
    padding: var(--edge) 0;
  }

  /* "Coming soon": smaller tag, no stripes */
  .frame-label-tl {
    padding: 8px 12px;
    font-size: 10px;
  }
  .label-stripes {
    display: none;
  }
  .label-tag::after {
    font-size: 20px;
  }
}

@media (max-width: 760px) {
  /* step 3 — phones: thinner border and a little less inner spacing.
     The gap between frame and page edge stays the same. */
  :root {
    --border: 6px;
    --radius: 12px;
    --edge: 20px;
    --logo-size: 64px;
    --qr-size: 96px;
  }
  /* shorter top/bottom handles and no dot grid,
     so they never run into the "Coming soon" tag */
  .frame-handle-top,
  .frame-handle-bottom {
    width: 120px;
  }
  .frame-handle-top::after {
    display: none;
  }

  /* "Coming soon" centered above the frame */
  .frame-label-tl {
    left: 50%;
    top: calc((var(--page-pad) - 8px) / -2);
    transform: translate(-50%, -50%);
  }

  /* phones: the card fits narrow screens */
  .founder {
    padding: 16px 14px 14px;
  }
  /* when there's no room, the clock drops under the tag */
  .founder-head {
    flex-wrap: wrap;
    height: auto;
    row-gap: 5px;
  }
  .founder-tag,
  .founder-clock {
    height: 18px;
  }
  .founder-id {
    gap: 12px;
  }
  .founder-photo {
    width: clamp(64px, 20vw, 88px);
  }
  .founder-name {
    font-size: clamp(14px, 5vw, 20px);
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  /* small phones: smaller menu tabs so all three fit on one row */
  :root {
    --edge: 14px;
  }
  .header-menu {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .header-menu a {
    padding: 0 9px;
  }
  .footer-menu {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .footer-menu a {
    padding: 0 9px;
  }

  /* small phones: everything stacked and centered:
     clock, philosophy tag, photo, name, degrees, text */
  .founder-head {
    justify-content: center;
    row-gap: 6px;
  }
  /* clock (with its light) first */
  .founder-online {
    order: 1;
    margin-left: 0;
  }
  .founder-clock {
    order: 1;
  }
  /* invisible line break, so the tag goes to its own row */
  .founder-head::before {
    content: "";
    order: 2;
    flex-basis: 100%;
  }
  .founder-tag {
    order: 3;
  }

  /* photo, then name, then degrees, centered */
  .founder-id {
    flex-direction: column;
    align-items: center;
  }
  .founder-who {
    align-items: center;
    text-align: center;
  }
  .founder-role {
    align-self: center;
  }
  .founder-name {
    font-size: clamp(14px, 4.6vw, 18px);
  }
}

@media (max-width: 319px) and (hover: none) {
  /* Phones narrower than 320px would zoom the page out and leave
     an empty gap at the bottom, so there the layout simply fits the screen */
  body {
    min-width: 0;
  }
}

@media (max-height: 819px) {
  /* shorter screens: a slightly smaller music block */
  .music {
    transform: translate(-50%, 50%) scale(0.8);
  }

  /* shorter screens: shorter service / price rulers */
  .svc {
    --panel-h: 360px;
  }

  /* shorter screens: a slimmer panel */
  .stats-head {
    padding-top: 8px;
    padding-bottom: 7px;
  }
  .stats-list {
    padding: 8px 8px 0;
    gap: 5px;
  }
  .stats-body {
    padding-bottom: 8px;
  }
  .stat {
    padding: 6px 9px;
  }
  .stat-num {
    font-size: 15px;
  }
  .stat-bar {
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* people who turn off animations see still "..." */
  .label-tag::after {
    animation: none;
  }

  .founder-online::after {
    animation: none;
  }

  .mq {
    animation: none !important;
  }

  .cc {
    transition: none;
  }
  .music .hub-dash,
  .music .w-eq i,
  .music .w-live {
    animation: none !important;
  }

  .stat-bar::before,
  .links .ln-flow,
  .svc-name.is-new span {
    animation: none;
  }
  .svc-cursor,
  .svc-fill {
    transition: none;
  }
}
